@deadair/sdk 0.63.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/director/types/rules.types.d.ts +6 -6
- package/dist/director/types/rules.types.d.ts.map +1 -1
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/schedule/schedule.client.d.ts +11 -1
- package/dist/schedule/schedule.client.d.ts.map +1 -1
- package/dist/schedule/types/schedule.types.d.ts +14 -0
- package/dist/schedule/types/schedule.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@ import { DateTime } from 'luxon';
|
|
|
7
7
|
*/
|
|
8
8
|
export interface BlockRule {
|
|
9
9
|
id: string;
|
|
10
|
-
/** `genre` refuses any record tagged with this genre or a kind of it (`Punk Rock` under `Punk`, never `Pop` under `Pop Punk`, never `Trap` under `Rap`). `tag` refuses a record carrying exactly this tag */
|
|
11
|
-
field: 'genre' | 'tag';
|
|
12
|
-
/** The genre or tag, as you would write it */
|
|
10
|
+
/** `genre` refuses any record tagged with this genre or a kind of it (`Punk Rock` under `Punk`, never `Pop` under `Pop Punk`, never `Trap` under `Rap`). `tag` refuses a record carrying exactly this tag. `version` refuses a version of a record, read from the markers on its title and album: `live` refuses a live recording ("War Pigs - Live", anything from "Live in Nottingham"), and never a title that merely says the word ("Live Wire") */
|
|
11
|
+
field: 'genre' | 'tag' | 'version';
|
|
12
|
+
/** The genre or tag, as you would write it. For a `version` rule, the version: `live` is the only one */
|
|
13
13
|
value: string;
|
|
14
14
|
/** First day it holds, as `MM-DD`. With `seasonTo`; a season starting after it ends wraps the year end */
|
|
15
15
|
seasonFrom?: string;
|
|
@@ -29,9 +29,9 @@ export interface BlockRule {
|
|
|
29
29
|
inForce: boolean;
|
|
30
30
|
}
|
|
31
31
|
export interface BlockRuleInput {
|
|
32
|
-
/** `genre` refuses any record tagged with this genre or a kind of it (`Punk Rock` under `Punk`, never `Pop` under `Pop Punk`, never `Trap` under `Rap`). `tag` refuses a record carrying exactly this tag */
|
|
33
|
-
field: 'genre' | 'tag';
|
|
34
|
-
/** The genre or tag, as you would write it */
|
|
32
|
+
/** `genre` refuses any record tagged with this genre or a kind of it (`Punk Rock` under `Punk`, never `Pop` under `Pop Punk`, never `Trap` under `Rap`). `tag` refuses a record carrying exactly this tag. `version` refuses a version of a record, read from the markers on its title and album: `live` refuses a live recording ("War Pigs - Live", anything from "Live in Nottingham"), and never a title that merely says the word ("Live Wire") */
|
|
33
|
+
field: 'genre' | 'tag' | 'version';
|
|
34
|
+
/** The genre or tag, as you would write it. For a `version` rule, the version: `live` is the only one */
|
|
35
35
|
value: string;
|
|
36
36
|
/** First day it holds, as `MM-DD`. With `seasonTo`; a season starting after it ends wraps the year end */
|
|
37
37
|
seasonFrom?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.types.d.ts","sourceRoot":"","sources":["../../../src/director/types/rules.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAUjC;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"rules.types.d.ts","sourceRoot":"","sources":["../../../src/director/types/rules.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAUjC;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,wbAAwb;IACxb,KAAK,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;IACnC,yGAAyG;IACzG,KAAK,EAAE,MAAM,CAAC;IACd,0GAA0G;IAC1G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iHAAiH;IACjH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C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,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,gHAAgH;AAChH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,aAAa,CASrE;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,iFAAiF;IACjF,KAAK,CAAC,EAAE,UAAU,CAAC;CACtB;AAED,oHAAoH;AACpH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,iBAAiB,GAAG,iBAAiB,CAMjF"}
|
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
|