@deadair/sdk 0.83.1 → 0.84.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5209,7 +5209,7 @@ var ScheduleClient = class {
5209
5209
  }
5210
5210
  /**
5211
5211
  * @name Update schedule slot
5212
- * @description Rewrites a slot. Takes effect at its next boundary rather than immediately
5212
+ * @description Rewrites a slot. Takes effect at its next boundary rather than immediately; to change the show on air too, when it is this slot's, apply the slot afterwards with `POST /schedule/{id}/apply`
5213
5213
  */
5214
5214
  async updateScheduleSlot(id, body) {
5215
5215
  const result = await this.fetch(`/schedule/${encodeURIComponent(id)}`, {
@@ -5231,6 +5231,16 @@ var ScheduleClient = class {
5231
5231
  });
5232
5232
  return await parseJson(result);
5233
5233
  }
5234
+ /**
5235
+ * @name Apply schedule slot to air
5236
+ * @description Applies a slot, as it is saved now, to the show on air, which must be that slot's. Its name, brief, period, moods, rules and host change in place and the broadcast carries on; the records still planned are chosen again against the new programme, and the ones already planned keep playing until the new set is ready. A change to its source, mode, end or co-hosts cannot be made mid-show and waits for the slot's next occurrence
5237
+ */
5238
+ async applyScheduleSlotToAir(id) {
5239
+ const result = await this.fetch(`/schedule/${encodeURIComponent(id)}/apply`, {
5240
+ method: "POST"
5241
+ });
5242
+ return await parseJson(result);
5243
+ }
5234
5244
  /**
5235
5245
  * @name Read slot playlist position
5236
5246
  * @description The record a slot that resumes its playlist will open on next time, or nothing when it would start from the top