@deadair/sdk 0.13.3 → 0.15.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.
@@ -1,7 +1,23 @@
1
1
  import type { SdkFetch } from '../sdk-options.js';
2
+ import type { BreakArtworkList } from './types/art.types.js';
2
3
  export declare class ArtClient {
3
4
  private fetch;
4
5
  constructor(fetch: SdkFetch);
6
+ /**
7
+ * @name List break artwork
8
+ * @description Every kind the station holds a picture for
9
+ */
10
+ listBreakArtwork(): Promise<BreakArtworkList>;
11
+ /**
12
+ * @name Replace break artwork
13
+ * @description Puts an operator's own picture behind a kind of break. The id does not change, so a URL already on the wire keeps working and the ETag is what says the picture moved
14
+ */
15
+ replaceBreakArtwork(kind: string, body: FormData): Promise<BreakArtworkList>;
16
+ /**
17
+ * @name Revert break artwork
18
+ * @description Puts the picture this repository ships back. The shipped file is read at this moment rather than copied at install, so an upgrade that improved it is what comes back
19
+ */
20
+ revertBreakArtwork(kind: string): Promise<BreakArtworkList>;
5
21
  /**
6
22
  * @name Get art
7
23
  * @description The bytes of one cached image, addressed by its id alone
@@ -1 +1 @@
1
- {"version":3,"file":"art.client.d.ts","sourceRoot":"","sources":["../../src/art/art.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,qBAAa,SAAS;IACN,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAC3B;QACI,MAAM,EAAE,GAAG,CAAC;QACZ,WAAW,EAAE,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,CAAC;QACrE,IAAI,EAAE,IAAI,CAAC;QACX,OAAO,EAAE;YAAE,YAAY,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACrD,GACD;QAAE,MAAM,EAAE,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AAE,MAAM,EAAE,GAAG,CAAA;KAAE,CACpB;IAkBD;;;OAGG;IACG,UAAU,CACZ,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,GACjB,OAAO,CACJ;QACI,MAAM,EAAE,GAAG,CAAC;QACZ,WAAW,EAAE,YAAY,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,CAAC;QACrE,IAAI,EAAE,IAAI,CAAC;QACX,OAAO,EAAE;YAAE,YAAY,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACrD,GACD;QAAE,MAAM,EAAE,GAAG,CAAA;KAAE,CACpB;CAiBJ"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The picture one KIND of break wears -- a weather forecast, a news bulletin -- as the console draws
3
+ * it.
4
+ *
5
+ * Only kinds the station actually holds bytes for are listed. A kind with no picture is a break
6
+ * wearing the station's logo on the mount and nothing in a listener's app, which is what every break
7
+ * did before this existed and is not a row worth drawing
8
+ * generated from [BreakArtwork](../../../../../apps/api/data/contracts/art/art.types.ck#L13)
9
+ */
10
+ export interface BreakArtwork {
11
+ /** `segments.kind`, which is what decides which break wears this: `weather`, `news`, or whatever an operator wrote on a format-clock band */
12
+ kind: string;
13
+ /** Where the station serves it, as a path under the API root. The same shape and the same route a record's cover uses */
14
+ url: string;
15
+ /** Whether these are the bytes this repository ships or ones somebody uploaded over them */
16
+ source: 'shipped' | 'operator';
17
+ /** Whether this repository ships a picture for this kind, which is whether reverting has anywhere to go */
18
+ hasShipped: boolean;
19
+ }
20
+ /**
21
+ * A picture arriving from the browser, as multipart form parts.
22
+ *
23
+ * Documentation rather than validation: a multipart body reaches the service as the raw parser and
24
+ * the generated client types the body as `FormData`, so nothing checks this shape. It says what to
25
+ * send
26
+ * generated from [BreakArtworkUpload](../../../../../apps/api/data/contracts/art/art.types.ck#L30)
27
+ */
28
+ export interface BreakArtworkUpload {
29
+ /** The image itself. jpeg, png, webp or gif, decided by its BYTES rather than by its name or its declared type, and at most 4 MB */
30
+ file: Blob;
31
+ }
32
+ /**
33
+ * Every kind the station holds a picture for, kind by kind
34
+ * generated from [BreakArtworkList](../../../../../apps/api/data/contracts/art/art.types.ck#L21)
35
+ */
36
+ export interface BreakArtworkList {
37
+ breaks: BreakArtwork[];
38
+ }
39
+ //# sourceMappingURL=art.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"art.types.d.ts","sourceRoot":"","sources":["../../../src/art/types/art.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY;IACzB,6IAA6I;IAC7I,IAAI,EAAE,MAAM,CAAC;IACb,yHAAyH;IACzH,GAAG,EAAE,MAAM,CAAC;IACZ,4FAA4F;IAC5F,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC;IAC/B,2GAA2G;IAC3G,UAAU,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAC/B,oIAAoI;IACpI,IAAI,EAAE,IAAI,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,YAAY,EAAE,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export * from './art.types.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/art/types/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC"}
@@ -6,6 +6,7 @@ import { CatalogClient } from './catalog/catalog.client.js';
6
6
  import { ChartsClient } from './charts/charts.client.js';
7
7
  import { DirectorClient } from './director/director.client.js';
8
8
  import { HistoryClient } from './history/history.client.js';
9
+ import { NarrationsClient } from './narrations/narrations.client.js';
9
10
  import { NewsClient } from './news/news.client.js';
10
11
  import { NowplayingClient } from './nowplaying/nowplaying.client.js';
11
12
  import { OnboardingClient } from './onboarding/onboarding.client.js';
@@ -30,6 +31,7 @@ export declare class DeadairSdk {
30
31
  readonly charts: ChartsClient;
31
32
  readonly director: DirectorClient;
32
33
  readonly history: HistoryClient;
34
+ readonly narrations: NarrationsClient;
33
35
  readonly news: NewsClient;
34
36
  readonly nowplaying: NowplayingClient;
35
37
  readonly onboarding: OnboardingClient;
@@ -1 +1 @@
1
- {"version":3,"file":"deadair.sdk.d.ts","sourceRoot":"","sources":["../src/deadair.sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cA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ChC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;gBAElB,OAAO,EAAE,UAAU;CA2BlC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './activity/activity.client.js';
2
2
  export * from './activity/types/index.js';
3
3
  export * from './art/art.client.js';
4
+ export * from './art/types/index.js';
4
5
  export * from './authentication/authentication.apikeys.client.js';
5
6
  export * from './authentication/authentication.client.js';
6
7
  export * from './authentication/authentication.factor.client.js';
@@ -15,6 +16,8 @@ export * from './director/director.client.js';
15
16
  export * from './director/types/index.js';
16
17
  export * from './history/history.client.js';
17
18
  export * from './history/types/index.js';
19
+ export * from './narrations/narrations.client.js';
20
+ export * from './narrations/types/index.js';
18
21
  export * from './news/news.client.js';
19
22
  export * from './news/types/index.js';
20
23
  export * from './nowplaying/nowplaying.client.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc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 /**
173
+ * @name List break artwork
174
+ * @description Every kind the station holds a picture for
175
+ */
176
+ async listBreakArtwork() {
177
+ const result = await this.fetch(`/art/breaks`, {
178
+ method: "GET"
179
+ });
180
+ return await parseJson(result);
181
+ }
182
+ /**
183
+ * @name Replace break artwork
184
+ * @description Puts an operator's own picture behind a kind of break. The id does not change, so a URL already on the wire keeps working and the ETag is what says the picture moved
185
+ */
186
+ async replaceBreakArtwork(kind, body) {
187
+ const result = await this.fetch(`/art/breaks/${encodeURIComponent(kind)}`, {
188
+ method: "POST",
189
+ body
190
+ });
191
+ return await parseJson(result);
192
+ }
193
+ /**
194
+ * @name Revert break artwork
195
+ * @description Puts the picture this repository ships back. The shipped file is read at this moment rather than copied at install, so an upgrade that improved it is what comes back
196
+ */
197
+ async revertBreakArtwork(kind) {
198
+ const result = await this.fetch(`/art/breaks/${encodeURIComponent(kind)}`, {
199
+ method: "DELETE"
200
+ });
201
+ return await parseJson(result);
202
+ }
172
203
  /**
173
204
  * @name Get art
174
205
  * @description The bytes of one cached image, addressed by its id alone
@@ -1535,6 +1566,57 @@ var HistoryClient = class {
1535
1566
  }
1536
1567
  };
1537
1568
 
1569
+ // src/narrations/narrations.client.ts
1570
+ var NarrationsClient = class {
1571
+ static {
1572
+ __name(this, "NarrationsClient");
1573
+ }
1574
+ fetch;
1575
+ constructor(fetch2) {
1576
+ this.fetch = fetch2;
1577
+ }
1578
+ /**
1579
+ * @name List series
1580
+ * @description Every series every installed narration plugin offers
1581
+ */
1582
+ async listSeries() {
1583
+ const result = await this.fetch(`/narrations/series`, {
1584
+ method: "GET"
1585
+ });
1586
+ return await parseJson(result);
1587
+ }
1588
+ /**
1589
+ * @name List pieces
1590
+ * @description The pieces the station knows about, in their series' own order, with what it has done with each
1591
+ */
1592
+ async listPieces(query) {
1593
+ const qs = buildQueryString(query);
1594
+ const result = await this.fetch(`/narrations/pieces${qs}`, {
1595
+ method: "GET"
1596
+ });
1597
+ return await parseJson(result);
1598
+ }
1599
+ /**
1600
+ * @name Render piece
1601
+ * @description Has one piece spoken now, rather than waiting for its slot to come near
1602
+ */
1603
+ async renderPiece(id) {
1604
+ const result = await this.fetch(`/narrations/pieces/${encodeURIComponent(id)}/render`, {
1605
+ method: "POST"
1606
+ });
1607
+ return await parseJson(result);
1608
+ }
1609
+ /**
1610
+ * @name Refresh narrations
1611
+ * @description Reads every series again, in the background, rather than waiting for the next scheduled refresh
1612
+ */
1613
+ async refreshNarrations() {
1614
+ await this.fetch(`/narrations/refresh`, {
1615
+ method: "POST"
1616
+ });
1617
+ }
1618
+ };
1619
+
1538
1620
  // src/news/news.client.ts
1539
1621
  var NewsClient = class {
1540
1622
  static {
@@ -3576,6 +3658,7 @@ var DeadairSdk = class {
3576
3658
  charts;
3577
3659
  director;
3578
3660
  history;
3661
+ narrations;
3579
3662
  news;
3580
3663
  nowplaying;
3581
3664
  onboarding;
@@ -3601,6 +3684,7 @@ var DeadairSdk = class {
3601
3684
  this.charts = new ChartsClient(sdkFetch);
3602
3685
  this.director = new DirectorClient(sdkFetch);
3603
3686
  this.history = new HistoryClient(sdkFetch);
3687
+ this.narrations = new NarrationsClient(sdkFetch);
3604
3688
  this.news = new NewsClient(sdkFetch);
3605
3689
  this.nowplaying = new NowplayingClient(sdkFetch);
3606
3690
  this.onboarding = new OnboardingClient(sdkFetch);
@@ -3631,6 +3715,7 @@ export {
3631
3715
  DeadairSdk,
3632
3716
  DirectorClient,
3633
3717
  HistoryClient,
3718
+ NarrationsClient,
3634
3719
  NewsClient,
3635
3720
  NowplayingClient,
3636
3721
  OnboardingClient,