@deadair/sdk 0.9.0 → 0.11.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.
@@ -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"}
@@ -34,7 +34,7 @@ export type StationOnEnd = 'extend' | 'repeat' | 'stop';
34
34
  export type StationItemState = 'planned' | 'handed' | 'airing' | 'played' | 'skipped' | 'unavailable' | 'removed';
35
35
  /**
36
36
  * Change who is presenting the broadcast that is on air
37
- * generated from [SetStationHostInput](../../../../../apps/api/data/contracts/director/director.types.ck#L94)
37
+ * generated from [SetStationHostInput](../../../../../apps/api/data/contracts/director/director.types.ck#L96)
38
38
  */
39
39
  export interface SetStationHostInput {
40
40
  /** Who hosts it from here on. Absent hands it back to whichever persona the station has on air, which is what a broadcast that never named one already does */
@@ -42,7 +42,7 @@ export interface SetStationHostInput {
42
42
  }
43
43
  /**
44
44
  * Put something the station says into the running order
45
- * generated from [AddStationSegmentInput](../../../../../apps/api/data/contracts/director/director.types.ck#L98)
45
+ * generated from [AddStationSegmentInput](../../../../../apps/api/data/contracts/director/director.types.ck#L100)
46
46
  */
47
47
  export interface AddStationSegmentInput {
48
48
  segmentId: string;
@@ -53,7 +53,7 @@ export interface AddStationSegmentInput {
53
53
  }
54
54
  /**
55
55
  * Put a catalog record into the running order. Refused at the door — 404 for a record the catalog does not hold, 422 for one whose audio is not local yet — rather than accepted and left to fail when it comes round
56
- * generated from [AddStationTrackInput](../../../../../apps/api/data/contracts/director/director.types.ck#L104)
56
+ * generated from [AddStationTrackInput](../../../../../apps/api/data/contracts/director/director.types.ck#L106)
57
57
  */
58
58
  export interface AddStationTrackInput {
59
59
  trackId: string;
@@ -62,21 +62,21 @@ export interface AddStationTrackInput {
62
62
  }
63
63
  /**
64
64
  * Move an item within the running order
65
- * generated from [MoveStationItemInput](../../../../../apps/api/data/contracts/director/director.types.ck#L109)
65
+ * generated from [MoveStationItemInput](../../../../../apps/api/data/contracts/director/director.types.ck#L111)
66
66
  */
67
67
  export interface MoveStationItemInput {
68
68
  toIndex: number;
69
69
  }
70
70
  /**
71
71
  * Add tracks to the running order now, rather than waiting for it to run short
72
- * generated from [ExtendStationInput](../../../../../apps/api/data/contracts/director/director.types.ck#L113)
72
+ * generated from [ExtendStationInput](../../../../../apps/api/data/contracts/director/director.types.ck#L115)
73
73
  */
74
74
  export interface ExtendStationInput {
75
75
  count?: number;
76
76
  }
77
77
  /**
78
78
  * Throw away everything the player is not already holding and programme it again. Unlike a shuffle, the records themselves change; unlike putting the station on air, the broadcast continues
79
- * generated from [ReplanStationInput](../../../../../apps/api/data/contracts/director/director.types.ck#L117)
79
+ * generated from [ReplanStationInput](../../../../../apps/api/data/contracts/director/director.types.ck#L119)
80
80
  */
81
81
  export interface ReplanStationInput {
82
82
  /** How many records to programme. Absent is roughly an hour */
@@ -117,7 +117,7 @@ export interface StationAir {
117
117
  }
118
118
  /**
119
119
  * Put the station on air, building its running order from the top
120
- * generated from [PutOnAirInput](../../../../../apps/api/data/contracts/director/director.types.ck#L79)
120
+ * generated from [PutOnAirInput](../../../../../apps/api/data/contracts/director/director.types.ck#L80)
121
121
  */
122
122
  export interface PutOnAirInput {
123
123
  /** The plugin whose playlist to build from. Absent starts empty and lets the station generate its own programming */
@@ -140,6 +140,8 @@ export interface PutOnAirInput {
140
140
  eraTo?: number;
141
141
  /** Whether somebody phones in during this broadcast. A call is a short programme rather than a break: a few turns in a few voices, entering the running order as one block, spaced by `rotation.callinEveryMinutes`. Absent takes the station's own setting, which is off */
142
142
  callins?: boolean;
143
+ /** Whether records that sound like the ones on this playlist are mixed in among them, one every `rotation.mixInEvery` records, found through the similarity plugin. The playlist still plays in full and in its own order around them. Absent takes the station's own setting, which is off. A setlist and a feature never have anything mixed in */
144
+ mixInSimilar?: boolean;
143
145
  mode?: StationMode;
144
146
  onEnd?: StationOnEnd;
145
147
  }
@@ -173,6 +175,8 @@ export interface StationOrderItem {
173
175
  albumId?: string;
174
176
  /** What the station thinks of this record, read as the order is drawn rather than stored on it. Absent on a segment, and on a record the catalog has never seen */
175
177
  rating?: Rating;
178
+ /** The station chose this record to sound like the playlist around it, rather than the playlist naming it. Absent on everything the playlist named, and on a segment */
179
+ mixedIn?: boolean;
176
180
  /** Which segment this plays. Present only on a segment */
177
181
  segmentId?: string;
178
182
  segmentState?: 'planned' | 'writing' | 'written' | 'rendering' | 'ready' | 'failed' | 'gone';
@@ -187,7 +191,7 @@ export interface StationOrderItem {
187
191
  }
188
192
  /**
189
193
  * The station's live running order: what is airing, item by item
190
- * generated from [StationOrder](../../../../../apps/api/data/contracts/director/director.types.ck#L65)
194
+ * generated from [StationOrder](../../../../../apps/api/data/contracts/director/director.types.ck#L66)
191
195
  */
192
196
  export interface StationOrder {
193
197
  /** What is on, for a console to draw. A label for this broadcast rather than the name of a stored object */
@@ -1 +1 @@
1
- {"version":3,"file":"director.types.d.ts","sourceRoot":"","sources":["../../../src/director/types/director.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7D;;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OAAO,CAAC;IAClB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC7F,+HAA+H;IAC/H,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6HAA6H;IAC7H,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wJAAwJ;IACxJ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,4GAA4G;IAC5G,IAAI,EAAE,MAAM,CAAC;IACb,oMAAoM;IACpM,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mHAAmH;IACnH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;IACpB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+MAA+M;IAC/M,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
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