@deadair/sdk 0.64.0 → 0.65.0

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
@@ -4785,6 +4785,25 @@ var ScheduleClient = class {
4785
4785
  });
4786
4786
  return await parseJson(result);
4787
4787
  }
4788
+ /**
4789
+ * @name Read slot playlist position
4790
+ * @description The record a slot that resumes its playlist will open on next time, or nothing when it would start from the top
4791
+ */
4792
+ async readSlotPlaylistPosition(id) {
4793
+ const result = await this.fetch(`/schedule/${encodeURIComponent(id)}/playlist-position`, {
4794
+ method: "GET"
4795
+ });
4796
+ return await parseJson(result);
4797
+ }
4798
+ /**
4799
+ * @name Restart slot playlist
4800
+ * @description Forgets where a slot got to in its playlist, so it starts from the top the next time it opens
4801
+ */
4802
+ async restartSlotPlaylist(id) {
4803
+ await this.fetch(`/schedule/${encodeURIComponent(id)}/playlist-position`, {
4804
+ method: "DELETE"
4805
+ });
4806
+ }
4788
4807
  };
4789
4808
 
4790
4809
  // src/settings/settings.client.ts