Newer
Older
/* eslint-disable */
/*
* This file was auto-generated by `make update-types` at 2024-01-25 00:54:34.794Z.
* DO NOT make changes to this file.
*/
export interface paths {
'/api/v1/categories/': {
/** List all categories. */
get: operations['categories_list']
/** Create a new category. */
post: operations['categories_create']
}
'/api/v1/categories/{id}/': {
/** Retrieve a single category. */
get: operations['categories_retrieve']
/** Update an existing category. */
put: operations['categories_update']
/** Delete an existing category. */
delete: operations['categories_destroy']
/** Partially update an existing category. */
patch: operations['categories_partial_update']
}
/** List all funding categories. */
get: operations['funding_categories_list']
/** Create a new funding category. */
post: operations['funding_categories_create']
/** Retrieve a single funding category. */
get: operations['funding_categories_retrieve']
/** Update an existing funding category. */
put: operations['funding_categories_update']
/** Delete an existing funding category. */
delete: operations['funding_categories_destroy']
/** Partially update an existing funding category. */
patch: operations['funding_categories_partial_update']
}
'/api/v1/hosts/': {
/** List all hosts. */
get: operations['hosts_list']
/** Create a new host. */
post: operations['hosts_create']
}
'/api/v1/hosts/{id}/': {
/** Retrieve a single host. */
get: operations['hosts_retrieve']
/** Update an existing host. */
put: operations['hosts_update']
/** Delete an existing host. */
delete: operations['hosts_destroy']
/** Partially update an existing host. */
patch: operations['hosts_partial_update']
}
/**
* Create a new image.
* @description Create an Image instance. Any user can create an image.
*/
post: operations['images_create']
}
'/api/v1/images/{id}/': {
/** Retrieve a single image. */
/**
* Update an existing image.
* @description Only `alt_text`, `credits`, and `ppoi` can be updated.
*/
/**
* Delete an existing image.
* @description Destroy an Image instance. Only the owner can delete an image.
*/
/**
* Partially update an existing image.
* @description Only `alt_text`, `credits`, and `ppoi` can be updated.
*/
patch: operations['images_partial_update']
}
'/api/v1/languages/': {
/** List all languages. */
get: operations['languages_list']
/** Create a new language. */
post: operations['languages_create']
}
'/api/v1/languages/{id}/': {
/** Retrieve a single language. */
get: operations['languages_retrieve']
/** Update an existing language. */
put: operations['languages_update']
/** Delete an existing language. */
delete: operations['languages_destroy']
/** Partially update an existing language. */
patch: operations['languages_partial_update']
}
/** Partially update an existing license type. */
patch: operations['licenses_partial_update']
}
'/api/v1/link-types/': {
/** List all link types. */
get: operations['link_types_list']
/** Create a new link type. */
post: operations['link_types_create']
}
'/api/v1/link-types/{id}/': {
/** Retrieve a single link type. */
get: operations['link_types_retrieve']
/** Update an existing link type. */
put: operations['link_types_update']
/** Delete an existing link type. */
delete: operations['link_types_destroy']
/** Partially update an existing link type. */
patch: operations['link_types_partial_update']
}
'/api/v1/music-focus/': {
/** List all music focuses. */
/** Create a new music focus. */
/** Retrieve a single music focus. */
/** Update an existing music focus. */
/** Delete an existing music focus. */
delete: operations['music_focus_destroy']
/** Partially update an existing music focus. */
patch: operations['music_focus_partial_update']
}
'/api/v1/notes/': {
/** List all notes. */
get: operations['notes_list']
/** Create a new note. */
post: operations['notes_create']
}
'/api/v1/notes/{id}/': {
/** Retrieve a single note. */
get: operations['notes_retrieve']
/** Update an existing note. */
put: operations['notes_update']
/** Delete an existing note. */
delete: operations['notes_destroy']
/**
* Partially update an existing note.
* @description Only admins can partially update existing notes.
*/
patch: operations['notes_partial_update']
}
'/api/v1/rrules/': {
/** List all rrule. */
get: operations['rrules_list']
post: operations['rrules_create']
}
'/api/v1/rrules/{id}/': {
/** Retrieve a single rrule. */
get: operations['rrules_retrieve']
put: operations['rrules_update']
delete: operations['rrules_destroy']
patch: operations['rrules_partial_update']
}
'/api/v1/schedules/': {
/** List all schedules. */
get: operations['schedules_list']
/**
* Create a new schedule.
* @description Create a schedule, generate timeslots, test for collisions and resolve them
* (including notes).
*
* Note that creating or updating a schedule is the only way to create timeslots.
*
* Only admins may add schedules.
*
* The projected timeslots defined by the schedule are matched against existing
* timeslots. The API will return an object that contains
*
* * the schedule's data,
* * projected timeslots,
* * detected collisions,
* * and possible solutions.
*
* As long as no `solutions` object has been set or unresolved collisions exist,
* no data is written to the database. A schedule is only created if at least
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
* one timeslot was generated by it.
*
* In order to resolve any possible conflicts, the client must submit a new request with
* a solution for each conflict. Possible solutions are listed as part of the projected
* timeslot in the `solution_choices` array. In a best-case scenario with no detected
* conflicts an empty solutions object will suffice. For more details on the individual
* types of solutions see the SolutionChoicesEnum.
*
* **Please note**:
* If there's more than one collision for a projected timeslot, only `theirs` and `ours`
* are currently supported as solutions.
*/
post: operations['schedules_create']
}
'/api/v1/schedules/{id}/': {
/** Retrieve a single schedule. */
get: operations['schedules_retrieve']
/**
* Update an existing schedule.
* @description Update a schedule, generate timeslots, test for collisions and resolve
* them including notes.
*
* Only admins may update schedules.
*/
put: operations['schedules_update']
/**
* Delete an existing schedule.
* @description Only admins may delete schedules.
*/
delete: operations['schedules_destroy']
/** Partially update an existing schedule. */
patch: operations['schedules_partial_update']
}
'/api/v1/schema/': {
/**
* @description OpenApi3 schema for this API. Format can be selected via content negotiation.
*
* - YAML: application/vnd.oai.openapi
* - JSON: application/vnd.oai.openapi+json
*/
get: operations['schema_retrieve']
}
'/api/v1/shows/': {
/** List all shows. */
get: operations['shows_list']
/**
* Create a new show.
* @description Only admins may create a show.
*/
post: operations['shows_create']
}
'/api/v1/shows/{id}/': {
/** Retrieve a single show. */
get: operations['shows_retrieve']
/**
* Update an existing show.
* @description Non-admin users may only update shows they own.
*/
put: operations['shows_update']
/**
* Delete an existing show.
* @description Only admins may delete shows.
*/
delete: operations['shows_destroy']
/** Partially update an existing show. */
patch: operations['shows_partial_update']
}
'/api/v1/shows/{show_pk}/notes/': {
/** List all notes. */
get: operations['shows_notes_list']
/** Create a new note. */
post: operations['shows_notes_create']
}
'/api/v1/shows/{show_pk}/notes/{id}/': {
/** Retrieve a single note. */
get: operations['shows_notes_retrieve']
/** Update an existing note. */
put: operations['shows_notes_update']
/** Delete an existing note. */
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
delete: operations['shows_notes_destroy']
/**
* Partially update an existing note.
* @description Only admins can partially update existing notes.
*/
patch: operations['shows_notes_partial_update']
}
'/api/v1/shows/{show_pk}/schedules/': {
/** List all schedules. */
get: operations['shows_schedules_list']
/**
* Create a new schedule.
* @description Create a schedule, generate timeslots, test for collisions and resolve them
* (including notes).
*
* Note that creating or updating a schedule is the only way to create timeslots.
*
* Only admins may add schedules.
*
* The projected timeslots defined by the schedule are matched against existing
* timeslots. The API will return an object that contains
*
* * the schedule's data,
* * projected timeslots,
* * detected collisions,
* * and possible solutions.
*
* As long as no `solutions` object has been set or unresolved collisions exist,
* no data is written to the database. A schedule is only created if at least
* one timeslot was generated by it.
*
* In order to resolve any possible conflicts, the client must submit a new request with
* a solution for each conflict. Possible solutions are listed as part of the projected
* timeslot in the `solution_choices` array. In a best-case scenario with no detected
* conflicts an empty solutions object will suffice. For more details on the individual
* types of solutions see the SolutionChoicesEnum.
*
* **Please note**:
* If there's more than one collision for a projected timeslot, only `theirs` and `ours`
* are currently supported as solutions.
*/
post: operations['shows_schedules_create']
}
'/api/v1/shows/{show_pk}/schedules/{id}/': {
/** Retrieve a single schedule. */
get: operations['shows_schedules_retrieve']
/**
* Update an existing schedule.
* @description Update a schedule, generate timeslots, test for collisions and resolve
* them including notes.
*
* Only admins may update schedules.
*/
put: operations['shows_schedules_update']
/**
* Delete an existing schedule.
* @description Only admins may delete schedules.
*/
delete: operations['shows_schedules_destroy']
/** Partially update an existing schedule. */
patch: operations['shows_schedules_partial_update']
}
'/api/v1/shows/{show_pk}/schedules/{schedule_pk}/timeslots/': {
/**
* List all timeslots.
* @description
* By default, only timeslots ranging from now + 60 days will be displayed.
* You may override this default overriding start and/or end parameter.
*/
get: operations['shows_schedules_timeslots_list']
}
'/api/v1/shows/{show_pk}/schedules/{schedule_pk}/timeslots/{id}/': {
/** Retrieve a single timeslot. */
get: operations['shows_schedules_timeslots_retrieve']
/** Update an existing timeslot. */
put: operations['shows_schedules_timeslots_update']
/**
* Delete an existing timeslot.
* @description Only admins may delete timeslots.
*/
delete: operations['shows_schedules_timeslots_destroy']
/** Partially update an existing timeslot. */
patch: operations['shows_schedules_timeslots_partial_update']
}
'/api/v1/shows/{show_pk}/schedules/{schedule_pk}/timeslots/{timeslot_pk}/note/': {
/** List all notes. */
get: operations['shows_schedules_timeslots_note_list']
/** Create a new note. */
post: operations['shows_schedules_timeslots_note_create']
}
'/api/v1/shows/{show_pk}/schedules/{schedule_pk}/timeslots/{timeslot_pk}/note/{id}/': {
/** Retrieve a single note. */
get: operations['shows_schedules_timeslots_note_retrieve']
/** Update an existing note. */
put: operations['shows_schedules_timeslots_note_update']
/** Delete an existing note. */
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
delete: operations['shows_schedules_timeslots_note_destroy']
/**
* Partially update an existing note.
* @description Only admins can partially update existing notes.
*/
patch: operations['shows_schedules_timeslots_note_partial_update']
}
'/api/v1/shows/{show_pk}/timeslots/': {
/**
* List all timeslots.
* @description
* By default, only timeslots ranging from now + 60 days will be displayed.
* You may override this default overriding start and/or end parameter.
*/
get: operations['shows_timeslots_list']
}
'/api/v1/shows/{show_pk}/timeslots/{id}/': {
/** Retrieve a single timeslot. */
get: operations['shows_timeslots_retrieve']
/** Update an existing timeslot. */
put: operations['shows_timeslots_update']
/**
* Delete an existing timeslot.
* @description Only admins may delete timeslots.
*/
delete: operations['shows_timeslots_destroy']
/** Partially update an existing timeslot. */
patch: operations['shows_timeslots_partial_update']
}
'/api/v1/shows/{show_pk}/timeslots/{timeslot_pk}/note/': {
/** List all notes. */
get: operations['shows_timeslots_note_list']
/** Create a new note. */
post: operations['shows_timeslots_note_create']
}
'/api/v1/shows/{show_pk}/timeslots/{timeslot_pk}/note/{id}/': {
/** Retrieve a single note. */
get: operations['shows_timeslots_note_retrieve']
/** Update an existing note. */
put: operations['shows_timeslots_note_update']
/** Delete an existing note. */
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
delete: operations['shows_timeslots_note_destroy']
/**
* Partially update an existing note.
* @description Only admins can partially update existing notes.
*/
patch: operations['shows_timeslots_note_partial_update']
}
'/api/v1/timeslots/': {
/**
* List all timeslots.
* @description
* By default, only timeslots ranging from now + 60 days will be displayed.
* You may override this default overriding start and/or end parameter.
*/
get: operations['timeslots_list']
}
'/api/v1/timeslots/{id}/': {
/** Retrieve a single timeslot. */
get: operations['timeslots_retrieve']
/** Update an existing timeslot. */
put: operations['timeslots_update']
/**
* Delete an existing timeslot.
* @description Only admins may delete timeslots.
*/
delete: operations['timeslots_destroy']
/** Partially update an existing timeslot. */
patch: operations['timeslots_partial_update']
}
'/api/v1/topics/': {
/** List all topics. */
get: operations['topics_list']
/** Create a new topic. */
post: operations['topics_create']
}
'/api/v1/topics/{id}/': {
/** Retrieve a single topic. */
get: operations['topics_retrieve']
/** Update an existing topic. */
put: operations['topics_update']
/** Delete an existing topic. */
delete: operations['topics_destroy']
/** Partially update an existing topic. */
patch: operations['topics_partial_update']
}
'/api/v1/types/': {
/** List all types. */
get: operations['types_list']
/** Create a new type. */
post: operations['types_create']
}
'/api/v1/types/{id}/': {
/** Retrieve a single type. */
get: operations['types_retrieve']
/** Update an existing type. */
put: operations['types_update']
/** Delete an existing type. */
delete: operations['types_destroy']
/** Partially update an existing type. */
patch: operations['types_partial_update']
}
'/api/v1/users/': {
/**
* List all users.
* @description The returned list of records will only contain a single record for non-admin users which is their own user account.
*/
get: operations['users_list']
/**
* Create a new user.
* @description Only admins may create users.
*/
post: operations['users_create']
}
'/api/v1/users/{id}/': {
/**
* Retrieve a single user.
* @description Non-admin users may only retrieve their own user record.
*/
get: operations['users_retrieve']
/**
* Update an existing user.
* @description Non-admin users may only update their own user record.
*/
put: operations['users_update']
/**
* Partially update an existing user.
* @description Non-admin users may only update their own user record.
*/
patch: operations['users_partial_update']
}
}
export type webhooks = Record<string, never>
export interface components {
schemas: {
/**
* @description * `1` - first
* * `2` - second
* * `3` - third
* * `4` - fourth
* * `5` - fifth
* * `-1` - last
* @enum {integer}
*/
BySetPosEnum: 1 | 2 | 3 | 4 | 5 | -1
/**
* @description **0**: Monday
*
*
* **1**: Tuesday
*
*
* **2**: Wednesday
*
*
* **3**: Thursday
*
*
* **4**: Friday
*
*
* **5**: Saturday
*
*
* **6**: Sunday
* @enum {integer}
*/
ByWeekdayEnum: 0 | 1 | 2 | 3 | 4 | 5 | 6
/**
* @description * `None` -
* * `0,1,2,3,4` - business days
* * `5,6` - weekends
* @enum {unknown}
*/
ByWeekdaysEnum: '0,1,2,3,4' | '5,6'
Category: {
}
Collision: {
id: number
/** Format: date-time */
start: string
/** Format: date-time */
end: string
playlistId: number | null
showId: number
showName: string
repetitionOfId: number | null
scheduleId: number
memo: string
}
DryRunTimeSlot: {
id: number | null
scheduleId: number | null
playlistId: number | null
/** Format: date */
start: string
/** Format: date */
end: string
repetitionOfId: number | null
memo: string
}
Error: {
message: string
code: string | null
}
/**
* @description * `0` - once
* * `1` - monthly
* * `2` - weekly
* * `3` - daily
* @enum {integer}
*/
FreqEnum: 0 | 1 | 2 | 3
FundingCategory: {
id: number
}
Host: {
imageId?: number | null
isActive?: boolean
links?: components['schemas']['HostLink'][]
name: string
createdAt: string
createdBy: string
updatedAt: string | null
updatedBy: string
}
HostLink: {
/** Format: uri */
url: string
}
altText?: string
credits?: string
/** Format: uri */
image?: string | null
thumbnails: readonly {
/** Format: double */
width: number
/** Format: double */
height: number
url: string
}[]
Language: {
id: number
License: {
id: number
/** @description Identifier of the license */
identifier: string
/** @description Name of the license */
needsAuthor?: boolean
requiresExpressPermissionForPublication?: boolean
/** Format: uri */
url?: string
/** @description Name of the link type */
name: string
/** @description Type of the link */
type: string
}
MusicFocus: {
id: number
}
Note: {
id: number
imageId?: number | null
links?: components['schemas']['NoteLink'][]
ownerId: number
playlistId?: number
summary?: string
/** Format: date-time */
createdAt: string
createdBy: string
updatedAt: string | null
updatedBy: string
}
NoteLink: {
/** Format: uri */
url: string
}
PaginatedHostList: {
/** @example 123 */
count?: number
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=400&limit=100
*/
next?: string | null
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=200&limit=100
*/
previous?: string | null
results?: components['schemas']['Host'][]
}
PaginatedImageList: {
/** @example 123 */
count?: number
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=400&limit=100
*/
next?: string | null
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=200&limit=100
*/
previous?: string | null
results?: components['schemas']['Image'][]
}
PaginatedNoteList: {
/** @example 123 */
count?: number
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=400&limit=100
*/
next?: string | null
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=200&limit=100
*/
previous?: string | null
results?: components['schemas']['Note'][]
}
PaginatedScheduleList: {
/** @example 123 */
count?: number
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=400&limit=100
*/
next?: string | null
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=200&limit=100
*/
previous?: string | null
results?: components['schemas']['Schedule'][]
}
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
PaginatedShowList: {
/** @example 123 */
count?: number
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=400&limit=100
*/
next?: string | null
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=200&limit=100
*/
previous?: string | null
results?: components['schemas']['Show'][]
}
PaginatedTimeSlotList: {
/** @example 123 */
count?: number
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=400&limit=100
*/
next?: string | null
/**
* Format: uri
* @example http://api.example.org/accounts/?offset=200&limit=100
*/
previous?: string | null
results?: components['schemas']['TimeSlot'][]
}
PatchedCategory: {
id?: number
}
PatchedFundingCategory: {
id?: number
}
PatchedHost: {
id?: number
imageId?: number | null
isActive?: boolean
links?: components['schemas']['HostLink'][]
name?: string
createdAt?: string
createdBy?: string
updatedAt?: string | null
updatedBy?: string
altText?: string
credits?: string
/** Format: uri */
height?: number | null
thumbnails?: readonly {
/** Format: double */
width: number
/** Format: double */
height: number
url: string
}[]
width?: number | null
}
PatchedLanguage: {
id?: number
PatchedLicense: {
id?: number
/** @description Identifier of the license */
identifier?: string
/** @description Name of the license */
needsAuthor?: boolean
requiresExpressPermissionForPublication?: boolean
/** Format: uri */
url?: string
/** @description Name of the link type */
name?: string
/** @description Type of the link */
type?: string
}
PatchedMusicFocus: {
id?: number
}
PatchedNote: {
contributorIds?: number[]
id?: number
imageId?: number | null
links?: components['schemas']['NoteLink'][]
ownerId?: number
playlistId?: number
slug?: string
summary?: string
tags?: string
timeslotId?: number
/** Format: date-time */
createdAt?: string
createdBy?: string
updatedAt?: string | null
updatedBy?: string
bySetPos?: components['schemas']['BySetPosEnum'] | components['schemas']['NullEnum'] | null
byWeekdays?:
| components['schemas']['ByWeekdaysEnum']
| components['schemas']['NullEnum']
| null
/** @description How many occurrences should be generated. */
count?: number | null
freq?: components['schemas']['FreqEnum']
/**
* @description The interval between each freq iteration.
* @default 1
*/
interval?: number
}
PatchedScheduleCreateUpdateRequest: {
schedule?: components['schemas']['ScheduleInRequest']
solutions?: {
[key: string]:
| 'theirs'
| 'ours'
| 'theirs-start'
| 'ours-start'
| 'theirs-end'
| 'ours-end'
| 'theirs-both'
| 'ours-both'
}
notes?: {
}
playlists?: {
}
}
PatchedShow: {
categoryIds?: number[]
cbaSeriesId?: number | null
defaultPlaylistId?: number | null
description?: string
/** Format: email */
email?: string | null
fundingCategoryId?: number
hostIds?: number[]
imageId?: number | null
internalNote?: string
isActive?: boolean
isPublic?: boolean
languageIds?: number[]
links?: components['schemas']['HostLink'][]
logoId?: number | null
musicFocusIds?: number[]
ownerIds?: number[]
predecessorId?: number | null
shortDescription?: string
topicIds?: number[]
typeId?: number
createdAt?: string
createdBy?: string
updatedAt?: string | null
updatedBy?: string
}
PatchedTimeSlot: {
memo?: string
playlistId?: number | null
repetitionOfId?: number | null
/** Format: date-time */
end?: string
/** Format: date-time */
start?: string
}
PatchedTopic: {
id?: number
}
PatchedType: {
id?: number
}
PatchedUser: {
/**
* Format: email
*/
email?: string
* Active
* @description Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
* Staff status
* @description Designates whether the user can log into this admin site.
* Superuser status
* @description Designates that this user has all permissions without explicitly assigning them.
isSuperuser?: boolean
lastName?: string
password?: string
profile?: components['schemas']['Profile']
/** @description Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. */
}
Profile: {
/** CBA Token */
createdAt: string
createdBy: string
updatedAt: string | null
updatedBy: string
}
ProjectedTimeSlot: {
hash: string
/** Format: date-time */
start: string
/** Format: date-time */
end: string
collisions: components['schemas']['Collision'][]
error: string | null
solutionChoices: components['schemas']['SolutionChoicesEnum'][]
bySetPos: components['schemas']['BySetPosEnum'] | components['schemas']['NullEnum'] | null
byWeekdays: components['schemas']['ByWeekdaysEnum'] | components['schemas']['NullEnum'] | null
/** @description How many occurrences should be generated. */
count: number | null
freq: components['schemas']['FreqEnum']
id: number
/**
* @description The interval between each freq iteration.
* @default 1
*/
interval: number
name: string
}
Schedule: {
/** @description Whether to add add_days_no but skipping the weekends. E.g. if weekday is Friday, the date returned will be the next Monday. */
addBusinessDaysOnly?: boolean
/** @description Add a number of days to the generated dates. This can be useful for repetitions, like 'On the following day'. */
addDaysNo?: number | null
/**
* @description Number of the Weekday.
*
* * `0` - Monday
* * `1` - Tuesday
* * `2` - Wednesday
* * `3` - Thursday
* * `4` - Friday
* * `5` - Saturday
* * `6` - Sunday
*/
byWeekday?: components['schemas']['ByWeekdayEnum'] | components['schemas']['NullEnum'] | null
/** @description A tank ID in case the timeslot's playlist_id is empty. */
defaultPlaylistId?: number | null
/**
* Format: time
* @description End time of schedule.
*/
/**
* Format: date
/** @description Whether the schedule is a repetition. */
* Format: date
* @description End date of schedule.
lastDate?: string | null
/** @description Show the schedule belongs to. */
/**
* Format: time
* @description Start time of schedule.
*/
}
ScheduleConflictResponse: {
projected: components['schemas']['ProjectedTimeSlot'][]
solutions: {
[key: string]:
| 'theirs'
| 'ours'
| 'theirs-start'
| 'ours-start'
| 'theirs-end'
| 'ours-end'
| 'theirs-both'
| 'ours-both'
}
notes: {
}
playlists: {
}
schedule: components['schemas']['UnsavedSchedule']
}
ScheduleCreateUpdateRequest: {
schedule: components['schemas']['ScheduleInRequest']
solutions?: {
[key: string]:
| 'theirs'
| 'ours'
| 'theirs-start'
| 'ours-start'
| 'theirs-end'
| 'ours-end'
| 'theirs-both'
| 'ours-both'
}
notes?: {
}
playlists?: {
}
}
ScheduleDryRunResponse: {
created: components['schemas']['DryRunTimeSlot'][]
updated: components['schemas']['DryRunTimeSlot'][]
deleted: components['schemas']['DryRunTimeSlot'][]
}
ScheduleInRequest: {
/** @description Whether to add add_days_no but skipping the weekends. E.g. if weekday is Friday, the date returned will be the next Monday. */
addBusinessDaysOnly?: boolean
/** @description Add a number of days to the generated dates. This can be useful for repetitions, like 'On the following day'. */
addDaysNo?: number | null
/**
* @description Number of the Weekday.
*
* * `0` - Monday
* * `1` - Tuesday
* * `2` - Wednesday
* * `3` - Thursday
* * `4` - Friday
* * `5` - Saturday
* * `6` - Sunday
*/
byWeekday?: components['schemas']['ByWeekdayEnum'] | components['schemas']['NullEnum'] | null
/** @description A tank ID in case the timeslot's playlist_id is empty. */
defaultPlaylistId?: number | null
/** @description Whether to simulate the database changes. If true, no database changes will occur. Instead a list of objects that would be created, updated and deleted if dryrun was false will be returned. */
dryrun?: boolean
/**
* Format: time
* @description End time of schedule.
*/
/**
* Format: date
/** @description Whether the schedule is a repetition. */
* Format: date
* @description End date of schedule.
lastDate?: string | null
/** @description Show the schedule belongs to. */
/**
* Format: time
* @description Start time of schedule.
*/
}
ScheduleResponse: {
projected: components['schemas']['ProjectedTimeSlot'][]
solutions: {
[key: string]:
| 'theirs'
| 'ours'
| 'theirs-start'
| 'ours-start'
| 'theirs-end'
| 'ours-end'
| 'theirs-both'
| 'ours-both'
}
notes: {
}
playlists: {
}
schedule: components['schemas']['Schedule']
}
Show: {
categoryIds: number[]
cbaSeriesId?: number | null
defaultPlaylistId?: number | null
description?: string
/** Format: email */
email?: string | null
fundingCategoryId: number
hostIds: number[]
imageId?: number | null
internalNote?: string
isActive?: boolean
isPublic?: boolean
languageIds: number[]
links?: components['schemas']['HostLink'][]
logoId?: number | null
musicFocusIds: number[]
ownerIds: number[]
predecessorId?: number | null
shortDescription: string
topicIds: number[]
typeId: number
createdAt: string
createdBy: string
updatedAt: string | null
updatedBy: string
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
}
/**
* @description **theirs**: Discard projected timeslot. Keep existing timeslot(s).
*
*
* **ours**: Create projected timeslot. Delete existing timeslot(s).
*
*
* **theirs-start**: Keep existing timeslot. Create projected timeslot with start time of existing end.
*
*
* **ours-start**: Create projected timeslot. Change end of existing timeslot to projected start time.
*
*
* **theirs-end**: Keep existing timeslot. Create projected timeslot with end of existing start time.
*
*
* **ours-end**: Create projected timeslot. Change start of existing timeslot to projected end time.
*
*
* **theirs-both**: Keep existing timeslot. Create two projected timeslots with end of existing start and start of existing end.
*
*
* **ours-both**: Create projected timeslot. Split existing timeslot into two:
*
* * set existing end time to projected start,
* * create another timeslot with start = projected end and end = existing end.
* @enum {string}
*/
SolutionChoicesEnum:
| 'theirs'
| 'ours'
| 'theirs-start'
| 'ours-start'
| 'theirs-end'
| 'ours-end'
| 'theirs-both'
| 'ours-both'
TimeSlot: {
memo?: string
playlistId?: number | null
repetitionOfId?: number | null
/** Format: date-time */
end: string
/** Format: date-time */
start: string
}
Topic: {
id: number
}
Type: {
id: number
}
UnsavedSchedule: {
/** @description Whether to add add_days_no but skipping the weekends. E.g. if weekday is Friday, the date returned will be the next Monday. */
addBusinessDaysOnly?: boolean
/** @description Add a number of days to the generated dates. This can be useful for repetitions, like 'On the following day'. */
addDaysNo?: number | null
/**
* @description Number of the Weekday.
*
* * `0` - Monday
* * `1` - Tuesday
* * `2` - Wednesday
* * `3` - Thursday
* * `4` - Friday
* * `5` - Saturday
* * `6` - Sunday
*/
byWeekday?: components['schemas']['ByWeekdayEnum'] | components['schemas']['NullEnum'] | null
/** @description A tank ID in case the timeslot's playlist_id is empty. */
defaultPlaylistId?: number | null
/**
* Format: time
* @description End time of schedule.
*/
/**
* Format: date
/** @description Whether the schedule is a repetition. */
* Format: date
* @description End date of schedule.
lastDate?: string | null
/** @description Show the schedule belongs to. */
/**
* Format: time
* @description Start time of schedule.
*/
}
User: {
/**
* Format: email
*/
email?: string
* Active
* @description Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
* Staff status
* @description Designates whether the user can log into this admin site.
* Superuser status
* @description Designates that this user has all permissions without explicitly assigning them.
isSuperuser?: boolean
lastName?: string
password: string
profile?: components['schemas']['Profile']
/** @description Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. */
}
}
responses: never
parameters: never
requestBodies: never
headers: never
pathItems: never
}
export type $defs = Record<string, never>
export type external = Record<string, never>
export interface operations {
categories_list: {
responses: {
200: {
content: {
'application/json': components['schemas']['Category'][]
}
}
}
}
/** Create a new category. */
categories_create: {
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Category']
'multipart/form-data': components['schemas']['Category']
'application/json': components['schemas']['Category']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Category']
}
}
}
}
/** Retrieve a single category. */
categories_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this category. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Category']
}
}
}
}
/** Update an existing category. */
categories_update: {
parameters: {
path: {
/** @description A unique integer value identifying this category. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Category']
'multipart/form-data': components['schemas']['Category']
'application/json': components['schemas']['Category']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Category']
}
}
}
}
/** Delete an existing category. */
categories_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this category. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing category. */
categories_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this category. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedCategory']
'multipart/form-data': components['schemas']['PatchedCategory']
'application/json': components['schemas']['PatchedCategory']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Category']
}
}
}
}
/** List all funding categories. */
funding_categories_list: {
responses: {
200: {
content: {
'application/json': components['schemas']['FundingCategory'][]
}
}
}
}
/** Create a new funding category. */
funding_categories_create: {
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['FundingCategory']
'multipart/form-data': components['schemas']['FundingCategory']
'application/json': components['schemas']['FundingCategory']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['FundingCategory']
}
}
}
}
/** Retrieve a single funding category. */
funding_categories_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this funding category. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['FundingCategory']
}
}
}
}
/** Update an existing funding category. */
funding_categories_update: {
parameters: {
path: {
/** @description A unique integer value identifying this funding category. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['FundingCategory']
'multipart/form-data': components['schemas']['FundingCategory']
'application/json': components['schemas']['FundingCategory']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['FundingCategory']
}
}
}
}
/** Delete an existing funding category. */
funding_categories_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this funding category. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing funding category. */
funding_categories_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this funding category. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedFundingCategory']
'multipart/form-data': components['schemas']['PatchedFundingCategory']
'application/json': components['schemas']['PatchedFundingCategory']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['FundingCategory']
}
}
}
}
/** @description Number of results to return per page. */
/** @description The initial index from which to return the results. */
offset?: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedHostList']
}
}
}
}
hosts_create: {
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Host']
'multipart/form-data': components['schemas']['Host']
'application/json': components['schemas']['Host']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Host']
}
}
}
}
/** Retrieve a single host. */
hosts_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this host. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Host']
}
}
}
}
/** Update an existing host. */
hosts_update: {
parameters: {
path: {
/** @description A unique integer value identifying this host. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Host']
'multipart/form-data': components['schemas']['Host']
'application/json': components['schemas']['Host']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Host']
}
}
}
}
/** Delete an existing host. */
hosts_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this host. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing host. */
hosts_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this host. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedHost']
'multipart/form-data': components['schemas']['PatchedHost']
'application/json': components['schemas']['PatchedHost']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Host']
}
}
}
}
/** @description Number of results to return per page. */
/** @description The initial index from which to return the results. */
offset?: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedImageList']
}
}
}
}
/**
* Create a new image.
* @description Create an Image instance. Any user can create an image.
*/
content: {
'application/x-www-form-urlencoded': components['schemas']['Image']
'multipart/form-data': components['schemas']['Image']
'application/json': components['schemas']['Image']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Image']
}
}
}
}
/** Retrieve a single image. */
parameters: {
path: {
/** @description A unique integer value identifying this image. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Image']
}
}
}
}
/**
* Update an existing image.
* @description Only `alt_text`, `credits`, and `ppoi` can be updated.
*/
parameters: {
path: {
/** @description A unique integer value identifying this image. */
id: number
}
}
content: {
'application/x-www-form-urlencoded': components['schemas']['Image']
'multipart/form-data': components['schemas']['Image']
'application/json': components['schemas']['Image']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Image']
}
}
}
}
/**
* Delete an existing image.
* @description Destroy an Image instance. Only the owner can delete an image.
*/
parameters: {
path: {
/** @description A unique integer value identifying this image. */
id: number
}
}
responses: {
/** @description No response body */
/**
* Partially update an existing image.
* @description Only `alt_text`, `credits`, and `ppoi` can be updated.
*/
parameters: {
path: {
/** @description A unique integer value identifying this image. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedImage']
'multipart/form-data': components['schemas']['PatchedImage']
'application/json': components['schemas']['PatchedImage']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Image']
}
}
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Language'][]
}
}
}
}
/** Create a new language. */
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Language']
'multipart/form-data': components['schemas']['Language']
'application/json': components['schemas']['Language']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Language']
}
}
}
}
/** Retrieve a single language. */
parameters: {
path: {
/** @description A unique integer value identifying this language. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Language']
}
}
}
}
/** Update an existing language. */
parameters: {
path: {
/** @description A unique integer value identifying this language. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Language']
'multipart/form-data': components['schemas']['Language']
'application/json': components['schemas']['Language']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Language']
}
}
}
}
/** Delete an existing language. */
parameters: {
path: {
/** @description A unique integer value identifying this language. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing language. */
parameters: {
path: {
/** @description A unique integer value identifying this language. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedLanguage']
'multipart/form-data': components['schemas']['PatchedLanguage']
'application/json': components['schemas']['PatchedLanguage']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Language']
}
}
}
}
/** List all license types. */
responses: {
200: {
content: {
'application/json': components['schemas']['License'][]
}
}
}
}
/** Create a new license type. */
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['License']
'multipart/form-data': components['schemas']['License']
'application/json': components['schemas']['License']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['License']
}
}
}
}
/** Retrieve a single license type. */
parameters: {
path: {
/** @description A unique integer value identifying this license. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['License']
}
}
}
}
/** Update an existing license type. */
parameters: {
path: {
/** @description A unique integer value identifying this license. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['License']
'multipart/form-data': components['schemas']['License']
'application/json': components['schemas']['License']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['License']
}
}
}
}
/** Delete an existing license type. */
parameters: {
path: {
/** @description A unique integer value identifying this license. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing license type. */
parameters: {
path: {
/** @description A unique integer value identifying this license. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedLicense']
'multipart/form-data': components['schemas']['PatchedLicense']
'application/json': components['schemas']['PatchedLicense']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['License']
}
}
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['LinkType'][]
}
}
}
}
/** Create a new link type. */
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['LinkType']
'multipart/form-data': components['schemas']['LinkType']
'application/json': components['schemas']['LinkType']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['LinkType']
}
}
}
}
/** Retrieve a single link type. */
parameters: {
path: {
/** @description A unique integer value identifying this link type. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['LinkType']
}
}
}
}
/** Update an existing link type. */
parameters: {
path: {
/** @description A unique integer value identifying this link type. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['LinkType']
'multipart/form-data': components['schemas']['LinkType']
'application/json': components['schemas']['LinkType']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['LinkType']
}
}
}
}
/** Delete an existing link type. */
parameters: {
path: {
/** @description A unique integer value identifying this link type. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing link type. */
parameters: {
path: {
/** @description A unique integer value identifying this link type. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedLinkType']
'multipart/form-data': components['schemas']['PatchedLinkType']
'application/json': components['schemas']['PatchedLinkType']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['LinkType']
}
}
}
}
/** List all music focuses. */
responses: {
200: {
content: {
'application/json': components['schemas']['MusicFocus'][]
}
}
}
}
/** Create a new music focus. */
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['MusicFocus']
'multipart/form-data': components['schemas']['MusicFocus']
'application/json': components['schemas']['MusicFocus']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['MusicFocus']
}
}
}
}
/** Retrieve a single music focus. */
parameters: {
path: {
/** @description A unique integer value identifying this music focus. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['MusicFocus']
}
}
}
}
/** Update an existing music focus. */
parameters: {
/** @description A unique integer value identifying this music focus. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['MusicFocus']
'multipart/form-data': components['schemas']['MusicFocus']
'application/json': components['schemas']['MusicFocus']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['MusicFocus']
}
}
}
}
/** Delete an existing music focus. */
parameters: {
path: {
/** @description A unique integer value identifying this music focus. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing music focus. */
parameters: {
path: {
/** @description A unique integer value identifying this music focus. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedMusicFocus']
'multipart/form-data': components['schemas']['PatchedMusicFocus']
'application/json': components['schemas']['PatchedMusicFocus']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['MusicFocus']
}
}
}
}
notes_list: {
/** @description Return only notes matching the specified id(s). */
/** @description Number of results to return per page. */
limit?: number
/** @description The initial index from which to return the results. */
offset?: number
/** @description Return only notes that belong to the specified owner(s). */
/** @description Return only notes that belong to the specified show(s). */
/** @description Return only notes by show the specified owner(s): all notes the user may edit. */
/** @description Return only notes that belong to the specified timeslot(s). */
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedNoteList']
}
}
}
}
notes_create: {
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Note']
'multipart/form-data': components['schemas']['Note']
'application/json': components['schemas']['Note']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Retrieve a single note. */
notes_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Update an existing note. */
notes_update: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Note']
'multipart/form-data': components['schemas']['Note']
'application/json': components['schemas']['Note']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Delete an existing note. */
notes_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
responses: {
/** @description No response body */
/**
* Partially update an existing note.
* @description Only admins can partially update existing notes.
*/
notes_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedNote']
'multipart/form-data': components['schemas']['PatchedNote']
'application/json': components['schemas']['PatchedNote']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
rrules_list: {
responses: {
200: {
content: {
'application/json': components['schemas']['RRule'][]
}
}
}
}
rrules_create: {
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['RRule']
'multipart/form-data': components['schemas']['RRule']
'application/json': components['schemas']['RRule']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['RRule']
}
}
}
}
/** Retrieve a single rrule. */
rrules_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this recurrence rule. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['RRule']
}
}
}
}
rrules_update: {
parameters: {
path: {
/** @description A unique integer value identifying this recurrence rule. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['RRule']
'multipart/form-data': components['schemas']['RRule']
'application/json': components['schemas']['RRule']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['RRule']
}
}
}
}
rrules_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this recurrence rule. */
id: number
}
}
responses: {
/** @description No response body */
}
}
rrules_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this recurrence rule. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedRRule']
'multipart/form-data': components['schemas']['PatchedRRule']
'application/json': components['schemas']['PatchedRRule']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['RRule']
}
}
}
}
schedules_list: {
parameters: {
query?: {
/** @description Number of results to return per page. */
limit?: number
/** @description The initial index from which to return the results. */
offset?: number
/** @description Return only schedules that belong to the specified show(s). */
showIds?: number[]
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedScheduleList']
}
}
}
}
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
/**
* Create a new schedule.
* @description Create a schedule, generate timeslots, test for collisions and resolve them
* (including notes).
*
* Note that creating or updating a schedule is the only way to create timeslots.
*
* Only admins may add schedules.
*
* The projected timeslots defined by the schedule are matched against existing
* timeslots. The API will return an object that contains
*
* * the schedule's data,
* * projected timeslots,
* * detected collisions,
* * and possible solutions.
*
* As long as no `solutions` object has been set or unresolved collisions exist,
* no data is written to the database. A schedule is only created if at least
* one timeslot was generated by it.
*
* In order to resolve any possible conflicts, the client must submit a new request with
* a solution for each conflict. Possible solutions are listed as part of the projected
* timeslot in the `solution_choices` array. In a best-case scenario with no detected
* conflicts an empty solutions object will suffice. For more details on the individual
* types of solutions see the SolutionChoicesEnum.
*
* **Please note**:
* If there's more than one collision for a projected timeslot, only `theirs` and `ours`
* are currently supported as solutions.
*/
schedules_create: {
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['ScheduleCreateUpdateRequest']
'multipart/form-data': components['schemas']['ScheduleCreateUpdateRequest']
'application/json': components['schemas']['ScheduleCreateUpdateRequest']
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
}
}
responses: {
/** @description Signals the successful creation of the schedule and of the projected timeslots. */
201: {
content: {
'application/json': components['schemas']['ScheduleResponse']
}
}
/** @description Returns the list of timeslots that would be created, updated and deleted if the schedule request would not have been sent with the dryrun flag. */
202: {
content: {
'application/json': components['schemas']['ScheduleDryRunResponse']
}
}
/**
* @description
* Returned in case the request contained invalid data.
*
* This may happen if:
* * the last date is before the start date (`no-start-after-end`),
* in which case you should correct either the start or until date.
* * The start and last date are the same (`no-same-day-start-and-end`).
* This is only allowed for single timeslots with the recurrence rule
* set to `once`. You should fix either the start or until date.
* * The number of conflicts and solutions aren’t the same
* (`one-solution-per-conflict`). Only one solution is allowed per conflict,
* so you either offered too many or not enough solutions for any reported
* conflicts.
* * The referenced recurrence rule does not exist.
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
*/
400: {
content: {
'application/json': components['schemas']['Error']
}
}
/** @description Returned in case the request contained no or invalid authenticated data or the authenticated user does not have authorization to perform the requested operation. */
403: {
content: {
'application/json': components['schemas']['Error']
}
}
/**
* @description
* Returns the list of projected timeslots and any collisions that may have
* been found for existing timeslots.
*
* Errors on projected timeslots may include:
* * 'This change on the timeslot is not allowed.'
* When adding: There was a change in the schedule's data during conflict
* resolution.
* When updating: Fields 'start', 'end', 'by_weekday' or 'rrule' have changed,
* which is not allowed.
* * 'No solution given': No solution was provided for the conflict in
* `solutions`. Provide a value of `solution_choices`.
* * 'Given solution is not accepted for this conflict.':
* The solution has a value which is not part of `solution_choices`.
* Provide a value of `solution_choices` (at least `ours` or `theirs`).
*/
409: {
content: {
'application/json': components['schemas']['ScheduleConflictResponse']
}
}
}
}
/** Retrieve a single schedule. */
schedules_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this schedule. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Schedule']
}
}
}
}
/**
* Update an existing schedule.
* @description Update a schedule, generate timeslots, test for collisions and resolve
* them including notes.
*
* Only admins may update schedules.
*/
schedules_update: {
parameters: {
path: {
/** @description A unique integer value identifying this schedule. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['ScheduleCreateUpdateRequest']
'multipart/form-data': components['schemas']['ScheduleCreateUpdateRequest']
'application/json': components['schemas']['ScheduleCreateUpdateRequest']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['ScheduleCreateUpdateRequest']
}
}
}
}
/**
* Delete an existing schedule.
* @description Only admins may delete schedules.
*/
schedules_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this schedule. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing schedule. */
schedules_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this schedule. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedScheduleCreateUpdateRequest']
'multipart/form-data': components['schemas']['PatchedScheduleCreateUpdateRequest']
'application/json': components['schemas']['PatchedScheduleCreateUpdateRequest']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['ScheduleCreateUpdateRequest']
}
}
}
}
/**
* @description OpenApi3 schema for this API. Format can be selected via content negotiation.
*
* - YAML: application/vnd.oai.openapi
* - JSON: application/vnd.oai.openapi+json
*/
schema_retrieve: {
query?: {
format?: 'json' | 'yaml'
lang?:
| 'af'
| 'ar'
| 'ar-dz'
| 'ast'
| 'az'
| 'be'
| 'bg'
| 'bn'
| 'br'
| 'bs'
| 'ca'
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
| 'cs'
| 'cy'
| 'da'
| 'de'
| 'dsb'
| 'el'
| 'en'
| 'en-au'
| 'en-gb'
| 'eo'
| 'es'
| 'es-ar'
| 'es-co'
| 'es-mx'
| 'es-ni'
| 'es-ve'
| 'et'
| 'eu'
| 'fa'
| 'fi'
| 'fr'
| 'fy'
| 'ga'
| 'gd'
| 'gl'
| 'he'
| 'hi'
| 'hr'
| 'hsb'
| 'hu'
| 'hy'
| 'ia'
| 'id'
| 'ig'
| 'io'
| 'is'
| 'it'
| 'ja'
| 'ka'
| 'kab'
| 'kk'
| 'km'
| 'kn'
| 'ko'
| 'ky'
| 'lb'
| 'lt'
| 'lv'
| 'mk'
| 'ml'
| 'mn'
| 'mr'
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
| 'my'
| 'nb'
| 'ne'
| 'nl'
| 'nn'
| 'os'
| 'pa'
| 'pl'
| 'pt'
| 'pt-br'
| 'ro'
| 'ru'
| 'sk'
| 'sl'
| 'sq'
| 'sr'
| 'sr-latn'
| 'sv'
| 'sw'
| 'ta'
| 'te'
| 'tg'
| 'th'
| 'tk'
| 'tr'
| 'tt'
| 'udm'
| 'uk'
| 'ur'
| 'uz'
| 'vi'
| 'zh-hans'
| 'zh-hant'
}
}
responses: {
200: {
content: {
'application/vnd.oai.openapi': {
}
'application/yaml': {
}
'application/vnd.oai.openapi+json': {
}
'application/json': {
}
}
}
}
}
shows_list: {
/** @description Return only shows of the given category or categories. */
/** @description Return only shows of the given category slug. */
/** @description Return only shows assigned to the given host(s). */
/** @description Return only currently running shows (with timeslots in the future) if true or past or upcoming shows if false. */
/** @description Return only shows that are public/non-public. */
/** @description Return only shows of the given language(s). */
/** @description Number of results to return per page. */
limit?: number
/** @description Return only shows with given music focus(es). */
musicFocusIds?: number[]
/** @description Return only shows with the give music focus slug. */
/** @description The initial index from which to return the results. */
offset?: number
/**
* @description Order shows by the given field(s).
*
* * `name` - Name
*/
order?: (
| '-id'
| '-is_active'
| '-is_owner'
| '-name'
| '-slug'
| '-updated_at'
| '-updated_by'
| 'id'
| 'is_active'
| 'is_owner'
| 'name'
| 'slug'
| 'updated_at'
| 'updated_by'
)[]
/** @description Return only shows that belong to the given owner(s). */
/** @description A search term. */
search?: string
/** @description Return only shows of the given topic(s). */
/** @description Return only shows of the given topic slug. */
/** @description Return only shows of a given type. */
/** @description Return only shows of the given type slug. */
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedShowList']
}
}
}
}
/**
* Create a new show.
* @description Only admins may create a show.
*/
shows_create: {
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Show']
'multipart/form-data': components['schemas']['Show']
'application/json': components['schemas']['Show']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Show']
}
}
}
}
/** Retrieve a single show. */
shows_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this show. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Show']
}
}
}
}
/**
* Update an existing show.
* @description Non-admin users may only update shows they own.
*/
shows_update: {
parameters: {
path: {
/** @description A unique integer value identifying this show. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Show']
'multipart/form-data': components['schemas']['Show']
'application/json': components['schemas']['Show']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Show']
}
}
}
}
/**
* Delete an existing show.
* @description Only admins may delete shows.
*/
shows_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this show. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing show. */
shows_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this show. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedShow']
'multipart/form-data': components['schemas']['PatchedShow']
'application/json': components['schemas']['PatchedShow']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Show']
}
}
}
}
shows_notes_list: {
parameters: {
query?: {
/** @description Return only notes matching the specified id(s). */
/** @description Number of results to return per page. */
limit?: number
/** @description The initial index from which to return the results. */
offset?: number
/** @description Return only notes that belong to the specified owner(s). */
/** @description Return only notes that belong to the specified show(s). */
/** @description Return only notes by show the specified owner(s): all notes the user may edit. */
/** @description Return only notes that belong to the specified timeslot(s). */
}
path: {
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedNoteList']
}
}
}
}
shows_notes_create: {
parameters: {
path: {
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Note']
'multipart/form-data': components['schemas']['Note']
'application/json': components['schemas']['Note']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Retrieve a single note. */
shows_notes_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Update an existing note. */
shows_notes_update: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Note']
'multipart/form-data': components['schemas']['Note']
'application/json': components['schemas']['Note']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Delete an existing note. */
shows_notes_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
responses: {
/** @description No response body */
/**
* Partially update an existing note.
* @description Only admins can partially update existing notes.
*/
shows_notes_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedNote']
'multipart/form-data': components['schemas']['PatchedNote']
'application/json': components['schemas']['PatchedNote']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
shows_schedules_list: {
parameters: {
query?: {
/** @description Number of results to return per page. */
limit?: number
/** @description The initial index from which to return the results. */
offset?: number
/** @description Return only schedules that belong to the specified show(s). */
showIds?: number[]
}
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedScheduleList']
}
}
}
}
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
/**
* Create a new schedule.
* @description Create a schedule, generate timeslots, test for collisions and resolve them
* (including notes).
*
* Note that creating or updating a schedule is the only way to create timeslots.
*
* Only admins may add schedules.
*
* The projected timeslots defined by the schedule are matched against existing
* timeslots. The API will return an object that contains
*
* * the schedule's data,
* * projected timeslots,
* * detected collisions,
* * and possible solutions.
*
* As long as no `solutions` object has been set or unresolved collisions exist,
* no data is written to the database. A schedule is only created if at least
* one timeslot was generated by it.
*
* In order to resolve any possible conflicts, the client must submit a new request with
* a solution for each conflict. Possible solutions are listed as part of the projected
* timeslot in the `solution_choices` array. In a best-case scenario with no detected
* conflicts an empty solutions object will suffice. For more details on the individual
* types of solutions see the SolutionChoicesEnum.
*
* **Please note**:
* If there's more than one collision for a projected timeslot, only `theirs` and `ours`
* are currently supported as solutions.
*/
shows_schedules_create: {
parameters: {
path: {
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['ScheduleCreateUpdateRequest']
'multipart/form-data': components['schemas']['ScheduleCreateUpdateRequest']
'application/json': components['schemas']['ScheduleCreateUpdateRequest']
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
}
}
responses: {
/** @description Signals the successful creation of the schedule and of the projected timeslots. */
201: {
content: {
'application/json': components['schemas']['ScheduleResponse']
}
}
/** @description Returns the list of timeslots that would be created, updated and deleted if the schedule request would not have been sent with the dryrun flag. */
202: {
content: {
'application/json': components['schemas']['ScheduleDryRunResponse']
}
}
/**
* @description
* Returned in case the request contained invalid data.
*
* This may happen if:
* * the last date is before the start date (`no-start-after-end`),
* in which case you should correct either the start or until date.
* * The start and last date are the same (`no-same-day-start-and-end`).
* This is only allowed for single timeslots with the recurrence rule
* set to `once`. You should fix either the start or until date.
* * The number of conflicts and solutions aren’t the same
* (`one-solution-per-conflict`). Only one solution is allowed per conflict,
* so you either offered too many or not enough solutions for any reported
* conflicts.
* * The referenced recurrence rule does not exist.
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
*/
400: {
content: {
'application/json': components['schemas']['Error']
}
}
/** @description Returned in case the request contained no or invalid authenticated data or the authenticated user does not have authorization to perform the requested operation. */
403: {
content: {
'application/json': components['schemas']['Error']
}
}
/**
* @description
* Returns the list of projected timeslots and any collisions that may have
* been found for existing timeslots.
*
* Errors on projected timeslots may include:
* * 'This change on the timeslot is not allowed.'
* When adding: There was a change in the schedule's data during conflict
* resolution.
* When updating: Fields 'start', 'end', 'by_weekday' or 'rrule' have changed,
* which is not allowed.
* * 'No solution given': No solution was provided for the conflict in
* `solutions`. Provide a value of `solution_choices`.
* * 'Given solution is not accepted for this conflict.':
* The solution has a value which is not part of `solution_choices`.
* Provide a value of `solution_choices` (at least `ours` or `theirs`).
*/
409: {
content: {
'application/json': components['schemas']['ScheduleConflictResponse']
}
}
}
}
/** Retrieve a single schedule. */
shows_schedules_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this schedule. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Schedule']
}
}
}
}
/**
* Update an existing schedule.
* @description Update a schedule, generate timeslots, test for collisions and resolve
* them including notes.
*
* Only admins may update schedules.
*/
shows_schedules_update: {
parameters: {
path: {
/** @description A unique integer value identifying this schedule. */
id: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['ScheduleCreateUpdateRequest']
'multipart/form-data': components['schemas']['ScheduleCreateUpdateRequest']
'application/json': components['schemas']['ScheduleCreateUpdateRequest']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['ScheduleCreateUpdateRequest']
}
}
}
}
/**
* Delete an existing schedule.
* @description Only admins may delete schedules.
*/
shows_schedules_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this schedule. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing schedule. */
shows_schedules_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this schedule. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedScheduleCreateUpdateRequest']
'multipart/form-data': components['schemas']['PatchedScheduleCreateUpdateRequest']
'application/json': components['schemas']['PatchedScheduleCreateUpdateRequest']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['ScheduleCreateUpdateRequest']
}
}
}
}
/**
* List all timeslots.
* @description
* By default, only timeslots ranging from now + 60 days will be displayed.
* You may override this default overriding start and/or end parameter.
*/
shows_schedules_timeslots_list: {
parameters: {
query?: {
/** @description Only returns timeslots that end on or before the specified date. By default, this is set to value of the start filter + 60 days. */
end?: string
/** @description Number of results to return per page. */
limit?: number
/** @description The initial index from which to return the results. */
offset?: number
* * `-repetition_of` - Repetition of (descending)
order?: (
| '-end'
| '-id'
| '-memo'
| '-note'
| '-playlist_id'
| '-repetition_of'
| '-repetitions'
| '-schedule'
| '-start'
| 'end'
| 'id'
| 'memo'
| 'note'
| 'playlist_id'
| 'schedule'
| 'start'
)[]
/** @description Return only timeslots that belong to the specified schedule(s). */
scheduleIds?: number[]
/** @description Return only timeslots that belong to the specified show(s). */
showIds?: number[]
/** @description Only returns timeslots after that start on or after the specified date. By default, this is set to the current date. */
start?: string
/** @description Returns the 10 nearest timeslots around the specified datetime. If specified without a datetime value the current date and time is assumed. */
surrounding?: string
}
path: {
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedTimeSlotList']
}
}
}
}
/** Retrieve a single timeslot. */
shows_schedules_timeslots_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this time slot. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['TimeSlot']
}
}
}
}
/** Update an existing timeslot. */
shows_schedules_timeslots_update: {
parameters: {
path: {
/** @description A unique integer value identifying this time slot. */
id: number
content: {
'application/x-www-form-urlencoded': components['schemas']['TimeSlot']
'multipart/form-data': components['schemas']['TimeSlot']
'application/json': components['schemas']['TimeSlot']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['TimeSlot']
}
}
}
}
/**
* Delete an existing timeslot.
* @description Only admins may delete timeslots.
*/
shows_schedules_timeslots_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this time slot. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing timeslot. */
shows_schedules_timeslots_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this time slot. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedTimeSlot']
'multipart/form-data': components['schemas']['PatchedTimeSlot']
'application/json': components['schemas']['PatchedTimeSlot']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['TimeSlot']
}
}
}
}
shows_schedules_timeslots_note_list: {
parameters: {
query?: {
/** @description Return only notes matching the specified id(s). */
/** @description Number of results to return per page. */
limit?: number
/** @description The initial index from which to return the results. */
offset?: number
/** @description Return only notes that belong to the specified owner(s). */
/** @description Return only notes that belong to the specified show(s). */
/** @description Return only notes by show the specified owner(s): all notes the user may edit. */
/** @description Return only notes that belong to the specified timeslot(s). */
}
path: {
schedulePk: number
showPk: string
timeslotPk: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedNoteList']
}
}
}
}
shows_schedules_timeslots_note_create: {
parameters: {
path: {
schedulePk: number
showPk: string
timeslotPk: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Note']
'multipart/form-data': components['schemas']['Note']
'application/json': components['schemas']['Note']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Retrieve a single note. */
shows_schedules_timeslots_note_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
schedulePk: number
showPk: string
timeslotPk: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Update an existing note. */
shows_schedules_timeslots_note_update: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
schedulePk: number
showPk: string
timeslotPk: number
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Note']
'multipart/form-data': components['schemas']['Note']
'application/json': components['schemas']['Note']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Delete an existing note. */
shows_schedules_timeslots_note_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
schedulePk: number
showPk: string
timeslotPk: number
}
}
responses: {
/** @description No response body */
/**
* Partially update an existing note.
* @description Only admins can partially update existing notes.
*/
shows_schedules_timeslots_note_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
schedulePk: number
showPk: string
timeslotPk: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedNote']
'multipart/form-data': components['schemas']['PatchedNote']
'application/json': components['schemas']['PatchedNote']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/**
* List all timeslots.
* @description
* By default, only timeslots ranging from now + 60 days will be displayed.
* You may override this default overriding start and/or end parameter.
*/
shows_timeslots_list: {
parameters: {
query?: {
/** @description Only returns timeslots that end on or before the specified date. By default, this is set to value of the start filter + 60 days. */
end?: string
/** @description Number of results to return per page. */
limit?: number
/** @description The initial index from which to return the results. */
offset?: number
* * `-repetition_of` - Repetition of (descending)
order?: (
| '-end'
| '-id'
| '-memo'
| '-note'
| '-playlist_id'
| '-repetition_of'
| '-repetitions'
| '-schedule'
| '-start'
| 'end'
| 'id'
| 'memo'
| 'note'
| 'playlist_id'
| 'schedule'
| 'start'
)[]
/** @description Return only timeslots that belong to the specified schedule(s). */
scheduleIds?: number[]
/** @description Return only timeslots that belong to the specified show(s). */
showIds?: number[]
/** @description Only returns timeslots after that start on or after the specified date. By default, this is set to the current date. */
start?: string
/** @description Returns the 10 nearest timeslots around the specified datetime. If specified without a datetime value the current date and time is assumed. */
surrounding?: string
}
path: {
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedTimeSlotList']
}
}
}
}
/** Retrieve a single timeslot. */
shows_timeslots_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this time slot. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['TimeSlot']
}
}
}
}
/** Update an existing timeslot. */
shows_timeslots_update: {
parameters: {
path: {
/** @description A unique integer value identifying this time slot. */
id: number
content: {
'application/x-www-form-urlencoded': components['schemas']['TimeSlot']
'multipart/form-data': components['schemas']['TimeSlot']
'application/json': components['schemas']['TimeSlot']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['TimeSlot']
}
}
}
}
/**
* Delete an existing timeslot.
* @description Only admins may delete timeslots.
*/
shows_timeslots_destroy: {
parameters: {
path: {
/** @description A unique integer value identifying this time slot. */
id: number
}
}
responses: {
/** @description No response body */
/** Partially update an existing timeslot. */
shows_timeslots_partial_update: {
parameters: {
path: {
/** @description A unique integer value identifying this time slot. */
id: number
}
}
requestBody?: {
content: {
'application/x-www-form-urlencoded': components['schemas']['PatchedTimeSlot']
'multipart/form-data': components['schemas']['PatchedTimeSlot']
'application/json': components['schemas']['PatchedTimeSlot']
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['TimeSlot']
}
}
}
}
shows_timeslots_note_list: {
parameters: {
query?: {
/** @description Return only notes matching the specified id(s). */
/** @description Number of results to return per page. */
limit?: number
/** @description The initial index from which to return the results. */
offset?: number
/** @description Return only notes that belong to the specified owner(s). */
/** @description Return only notes that belong to the specified show(s). */
/** @description Return only notes by show the specified owner(s): all notes the user may edit. */
/** @description Return only notes that belong to the specified timeslot(s). */
}
path: {
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['PaginatedNoteList']
}
}
}
}
shows_timeslots_note_create: {
parameters: {
path: {
}
}
requestBody: {
content: {
'application/x-www-form-urlencoded': components['schemas']['Note']
'multipart/form-data': components['schemas']['Note']
'application/json': components['schemas']['Note']
}
}
responses: {
201: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
/** Retrieve a single note. */
shows_timeslots_note_retrieve: {
parameters: {
path: {
/** @description A unique integer value identifying this note. */
id: number
}
}
responses: {
200: {
content: {
'application/json': components['schemas']['Note']
}
}
}
}
Loading
Loading full blame...