@deadair/sdk 0.10.0 → 0.11.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.
@@ -94,5 +94,10 @@ export declare class DirectorClient {
94
94
  * @description Drops an item that has not been handed to the player yet
95
95
  */
96
96
  removeARunningOrderItem(itemId: string): Promise<StationOrder>;
97
+ /**
98
+ * @name Skip to a running order item
99
+ * @description Makes a record further down the running order the next thing heard. Everything still to come in front of it is marked skipped, anything the player was already holding from in front of it is taken back, and the item on air is cut. Only a record can be skipped to, and only one still to come
100
+ */
101
+ skipToARunningOrderItem(itemId: string): Promise<StationOrder>;
97
102
  }
98
103
  //# sourceMappingURL=director.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"director.client.d.ts","sourceRoot":"","sources":["../../src/director/director.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EACR,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACf,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,cAAc;IACX,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,aAAa,CAAC;IAK9C;;;OAGG;IACG,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IASnE;;;OAGG;IACG,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAS/E;;;OAGG;IACG,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAA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CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC;IASnF;;;OAGG;IACG,8BAA8B,IAAI,OAAO,CAAC,UAAU,CAAC;IAK3D;;;OAGG;IACG,sBAAsB,IAAI,OAAO,CAAC,YAAY,CAAC;IAKrD;;;OAGG;IACG,4BAA4B,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC;IASvF;;;OAGG;IACG,2BAA2B,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;IASpF;;;OAGG;IACG,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;IAS9F;;;OAGG;IACG,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAKpE;;;OAGG;IACG,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAIvE"}
package/dist/index.js CHANGED
@@ -1440,6 +1440,16 @@ var DirectorClient = class {
1440
1440
  });
1441
1441
  return await parseJson(result);
1442
1442
  }
1443
+ /**
1444
+ * @name Skip to a running order item
1445
+ * @description Makes a record further down the running order the next thing heard. Everything still to come in front of it is marked skipped, anything the player was already holding from in front of it is taken back, and the item on air is cut. Only a record can be skipped to, and only one still to come
1446
+ */
1447
+ async skipToARunningOrderItem(itemId) {
1448
+ const result = await this.fetch(`/director/air/items/${encodeURIComponent(itemId)}/skip-to`, {
1449
+ method: "POST"
1450
+ });
1451
+ return await parseJson(result);
1452
+ }
1443
1453
  };
1444
1454
 
1445
1455
  // src/history/types/history.types.ts
@@ -1991,6 +2001,24 @@ var PlaylistsClient = class {
1991
2001
  });
1992
2002
  return await parseJson(result);
1993
2003
  }
2004
+ /**
2005
+ * @name Hide playlist
2006
+ * @description Hides one playlist from this station: the listing marks it hidden, the pickers stop offering it and the library sync stops reading it. Hiding one already hidden changes nothing
2007
+ */
2008
+ async hidePlaylist(pluginId, playlistId) {
2009
+ await this.fetch(`/playlists/${encodeURIComponent(pluginId)}/${encodeURIComponent(playlistId)}/hidden`, {
2010
+ method: "PUT"
2011
+ });
2012
+ }
2013
+ /**
2014
+ * @name Show playlist
2015
+ * @description Shows a hidden playlist again. Showing one that is not hidden changes nothing
2016
+ */
2017
+ async showPlaylist(pluginId, playlistId) {
2018
+ await this.fetch(`/playlists/${encodeURIComponent(pluginId)}/${encodeURIComponent(playlistId)}/hidden`, {
2019
+ method: "DELETE"
2020
+ });
2021
+ }
1994
2022
  };
1995
2023
 
1996
2024
  // src/playout/playout.client.ts