@deadair/sdk 0.78.1 → 0.80.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/catalog/catalog.client.d.ts +31 -1
- package/dist/catalog/catalog.client.d.ts.map +1 -1
- package/dist/catalog/types/catalog.types.d.ts +142 -63
- package/dist/catalog/types/catalog.types.d.ts.map +1 -1
- package/dist/director/director.client.d.ts +11 -1
- package/dist/director/director.client.d.ts.map +1 -1
- package/dist/director/types/director.types.d.ts +10 -0
- package/dist/director/types/director.types.d.ts.map +1 -1
- package/dist/history/history.client.d.ts +6 -1
- package/dist/history/history.client.d.ts.map +1 -1
- package/dist/history/types/history.types.d.ts +59 -0
- package/dist/history/types/history.types.d.ts.map +1 -1
- package/dist/index.js +225 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.types.d.ts","sourceRoot":"","sources":["../../../src/history/types/history.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAUjC;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,0FAA0F;IAC1F,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,gLAAgL;IAChL,OAAO,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oKAAoK;IACpK,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kKAAkK;IAClK,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,+GAA+G;AAC/G,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAIlE;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sQAAsQ;IACtQ,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,8GAA8G;AAC9G,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,WAAW,GAAG,WAAW,CAS/D"}
|
|
1
|
+
{"version":3,"file":"history.types.d.ts","sourceRoot":"","sources":["../../../src/history/types/history.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAUjC;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,0FAA0F;IAC1F,OAAO,EAAE,QAAQ,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,gLAAgL;IAChL,OAAO,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oKAAoK;IACpK,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kKAAkK;IAClK,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,+GAA+G;AAC/G,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAIlE;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sQAAsQ;IACtQ,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEtF;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kHAAkH;IAClH,KAAK,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,6GAA6G;AAC7G,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,CAM5D;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,8GAA8G;AAC9G,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,WAAW,GAAG,WAAW,CAS/D;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,+FAA+F;IAC/F,EAAE,EAAE,QAAQ,CAAC;IACb,mIAAmI;IACnI,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sHAAsH;IACtH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,6GAA6G;AAC7G,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,CAO5D;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,4GAA4G;AAC5G,wBAAgB,eAAe,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,CASzD"}
|
package/dist/index.js
CHANGED
|
@@ -1047,6 +1047,44 @@ function reviveTrackBinding(raw) {
|
|
|
1047
1047
|
return raw;
|
|
1048
1048
|
}
|
|
1049
1049
|
__name(reviveTrackBinding, "reviveTrackBinding");
|
|
1050
|
+
function reviveTrackPlay(raw) {
|
|
1051
|
+
const __o0 = raw;
|
|
1052
|
+
__o0["airedAt"] = __dt4(__o0["airedAt"], "TrackPlay.airedAt");
|
|
1053
|
+
return raw;
|
|
1054
|
+
}
|
|
1055
|
+
__name(reviveTrackPlay, "reviveTrackPlay");
|
|
1056
|
+
function reviveFactClaim(raw) {
|
|
1057
|
+
const __o0 = raw;
|
|
1058
|
+
if (__o0["lastUsedAt"] != null) {
|
|
1059
|
+
__o0["lastUsedAt"] = __dt4(__o0["lastUsedAt"], "FactClaim.lastUsedAt");
|
|
1060
|
+
}
|
|
1061
|
+
return raw;
|
|
1062
|
+
}
|
|
1063
|
+
__name(reviveFactClaim, "reviveFactClaim");
|
|
1064
|
+
function reviveArtist(raw) {
|
|
1065
|
+
const __o0 = raw;
|
|
1066
|
+
if (__o0["suspendedUntil"] != null) {
|
|
1067
|
+
__o0["suspendedUntil"] = __dt4(__o0["suspendedUntil"], "Artist.suspendedUntil");
|
|
1068
|
+
}
|
|
1069
|
+
return raw;
|
|
1070
|
+
}
|
|
1071
|
+
__name(reviveArtist, "reviveArtist");
|
|
1072
|
+
function reviveAlbum(raw) {
|
|
1073
|
+
const __o0 = raw;
|
|
1074
|
+
if (__o0["suspendedUntil"] != null) {
|
|
1075
|
+
__o0["suspendedUntil"] = __dt4(__o0["suspendedUntil"], "Album.suspendedUntil");
|
|
1076
|
+
}
|
|
1077
|
+
return raw;
|
|
1078
|
+
}
|
|
1079
|
+
__name(reviveAlbum, "reviveAlbum");
|
|
1080
|
+
function reviveTrack(raw) {
|
|
1081
|
+
const __o0 = raw;
|
|
1082
|
+
if (__o0["suspendedUntil"] != null) {
|
|
1083
|
+
__o0["suspendedUntil"] = __dt4(__o0["suspendedUntil"], "Track.suspendedUntil");
|
|
1084
|
+
}
|
|
1085
|
+
return raw;
|
|
1086
|
+
}
|
|
1087
|
+
__name(reviveTrack, "reviveTrack");
|
|
1050
1088
|
function reviveTrackAnalysis(raw) {
|
|
1051
1089
|
const __o0 = raw;
|
|
1052
1090
|
if (__o0["analyzedAt"] != null) {
|
|
@@ -1058,22 +1096,36 @@ function reviveTrackAnalysis(raw) {
|
|
|
1058
1096
|
return raw;
|
|
1059
1097
|
}
|
|
1060
1098
|
__name(reviveTrackAnalysis, "reviveTrackAnalysis");
|
|
1061
|
-
function
|
|
1099
|
+
function reviveArtistPage(raw) {
|
|
1062
1100
|
const __o0 = raw;
|
|
1063
|
-
|
|
1101
|
+
{
|
|
1102
|
+
const __a1 = __o0["data"];
|
|
1103
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
1104
|
+
reviveArtist(__a1[__i2]);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1064
1107
|
return raw;
|
|
1065
1108
|
}
|
|
1066
|
-
__name(
|
|
1067
|
-
function
|
|
1109
|
+
__name(reviveArtistPage, "reviveArtistPage");
|
|
1110
|
+
function reviveAlbumPage(raw) {
|
|
1068
1111
|
const __o0 = raw;
|
|
1069
|
-
|
|
1070
|
-
|
|
1112
|
+
{
|
|
1113
|
+
const __a1 = __o0["data"];
|
|
1114
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
1115
|
+
reviveAlbum(__a1[__i2]);
|
|
1116
|
+
}
|
|
1071
1117
|
}
|
|
1072
1118
|
return raw;
|
|
1073
1119
|
}
|
|
1074
|
-
__name(
|
|
1120
|
+
__name(reviveAlbumPage, "reviveAlbumPage");
|
|
1121
|
+
function reviveTrackRow(raw) {
|
|
1122
|
+
reviveTrack(raw);
|
|
1123
|
+
return raw;
|
|
1124
|
+
}
|
|
1125
|
+
__name(reviveTrackRow, "reviveTrackRow");
|
|
1075
1126
|
function reviveTrackDetail(raw) {
|
|
1076
1127
|
const __o0 = raw;
|
|
1128
|
+
reviveTrack(raw);
|
|
1077
1129
|
{
|
|
1078
1130
|
const __a1 = __o0["bindings"];
|
|
1079
1131
|
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
@@ -1125,6 +1177,17 @@ function reviveAlbumEnrichmentSource(raw) {
|
|
|
1125
1177
|
return raw;
|
|
1126
1178
|
}
|
|
1127
1179
|
__name(reviveAlbumEnrichmentSource, "reviveAlbumEnrichmentSource");
|
|
1180
|
+
function reviveTrackPage(raw) {
|
|
1181
|
+
const __o0 = raw;
|
|
1182
|
+
{
|
|
1183
|
+
const __a1 = __o0["data"];
|
|
1184
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
1185
|
+
reviveTrackRow(__a1[__i2]);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
return raw;
|
|
1189
|
+
}
|
|
1190
|
+
__name(reviveTrackPage, "reviveTrackPage");
|
|
1128
1191
|
function reviveTrackLyricsSources(raw) {
|
|
1129
1192
|
const __o0 = raw;
|
|
1130
1193
|
{
|
|
@@ -1206,7 +1269,7 @@ var CatalogClient = class {
|
|
|
1206
1269
|
const result = await this.fetch(`/catalog/artists${qs}`, {
|
|
1207
1270
|
method: "GET"
|
|
1208
1271
|
});
|
|
1209
|
-
return await parseJson(result);
|
|
1272
|
+
return reviveArtistPage(await parseJson(result));
|
|
1210
1273
|
}
|
|
1211
1274
|
/**
|
|
1212
1275
|
* @name Get artist
|
|
@@ -1216,7 +1279,7 @@ var CatalogClient = class {
|
|
|
1216
1279
|
const result = await this.fetch(`/catalog/artists/${encodeURIComponent(id)}`, {
|
|
1217
1280
|
method: "GET"
|
|
1218
1281
|
});
|
|
1219
|
-
return await parseJson(result);
|
|
1282
|
+
return reviveArtist(await parseJson(result));
|
|
1220
1283
|
}
|
|
1221
1284
|
/**
|
|
1222
1285
|
* @name Get artist enrichment
|
|
@@ -1237,7 +1300,7 @@ var CatalogClient = class {
|
|
|
1237
1300
|
const result = await this.fetch(`/catalog/artists/${encodeURIComponent(id)}/albums${qs}`, {
|
|
1238
1301
|
method: "GET"
|
|
1239
1302
|
});
|
|
1240
|
-
return await parseJson(result);
|
|
1303
|
+
return reviveAlbumPage(await parseJson(result));
|
|
1241
1304
|
}
|
|
1242
1305
|
/**
|
|
1243
1306
|
* @name Rate artist
|
|
@@ -1251,7 +1314,7 @@ var CatalogClient = class {
|
|
|
1251
1314
|
},
|
|
1252
1315
|
body: JSON.stringify(body, bigIntReplacer)
|
|
1253
1316
|
});
|
|
1254
|
-
return await parseJson(result);
|
|
1317
|
+
return reviveArtist(await parseJson(result));
|
|
1255
1318
|
}
|
|
1256
1319
|
/** @name List albums */
|
|
1257
1320
|
async listAlbums(query) {
|
|
@@ -1259,14 +1322,14 @@ var CatalogClient = class {
|
|
|
1259
1322
|
const result = await this.fetch(`/catalog/albums${qs}`, {
|
|
1260
1323
|
method: "GET"
|
|
1261
1324
|
});
|
|
1262
|
-
return await parseJson(result);
|
|
1325
|
+
return reviveAlbumPage(await parseJson(result));
|
|
1263
1326
|
}
|
|
1264
1327
|
/** @name Get album */
|
|
1265
1328
|
async getAlbum(id) {
|
|
1266
1329
|
const result = await this.fetch(`/catalog/albums/${encodeURIComponent(id)}`, {
|
|
1267
1330
|
method: "GET"
|
|
1268
1331
|
});
|
|
1269
|
-
return await parseJson(result);
|
|
1332
|
+
return reviveAlbum(await parseJson(result));
|
|
1270
1333
|
}
|
|
1271
1334
|
/**
|
|
1272
1335
|
* @name Get album enrichment
|
|
@@ -1287,7 +1350,7 @@ var CatalogClient = class {
|
|
|
1287
1350
|
const result = await this.fetch(`/catalog/albums/${encodeURIComponent(id)}/tracks${qs}`, {
|
|
1288
1351
|
method: "GET"
|
|
1289
1352
|
});
|
|
1290
|
-
return await parseJson(result);
|
|
1353
|
+
return reviveTrackPage(await parseJson(result));
|
|
1291
1354
|
}
|
|
1292
1355
|
/**
|
|
1293
1356
|
* @name Rate album
|
|
@@ -1301,7 +1364,7 @@ var CatalogClient = class {
|
|
|
1301
1364
|
},
|
|
1302
1365
|
body: JSON.stringify(body, bigIntReplacer)
|
|
1303
1366
|
});
|
|
1304
|
-
return await parseJson(result);
|
|
1367
|
+
return reviveAlbum(await parseJson(result));
|
|
1305
1368
|
}
|
|
1306
1369
|
/**
|
|
1307
1370
|
* @name Get track
|
|
@@ -1437,7 +1500,7 @@ var CatalogClient = class {
|
|
|
1437
1500
|
const result = await this.fetch(`/catalog/tracks${qs}`, {
|
|
1438
1501
|
method: "GET"
|
|
1439
1502
|
});
|
|
1440
|
-
return await parseJson(result);
|
|
1503
|
+
return reviveTrackPage(await parseJson(result));
|
|
1441
1504
|
}
|
|
1442
1505
|
/**
|
|
1443
1506
|
* @name Rate track
|
|
@@ -1451,7 +1514,79 @@ var CatalogClient = class {
|
|
|
1451
1514
|
},
|
|
1452
1515
|
body: JSON.stringify(body, bigIntReplacer)
|
|
1453
1516
|
});
|
|
1454
|
-
return await parseJson(result);
|
|
1517
|
+
return reviveTrack(await parseJson(result));
|
|
1518
|
+
}
|
|
1519
|
+
/**
|
|
1520
|
+
* @name Suspend artist
|
|
1521
|
+
* @description Keep this artist, and every record they are credited on, off the station for a number of days. Nothing already in the running order is taken out; a suspension stops it being chosen again, and lapses by itself
|
|
1522
|
+
*/
|
|
1523
|
+
async suspendArtist(id, body) {
|
|
1524
|
+
const result = await this.fetch(`/catalog/artists/${encodeURIComponent(id)}/suspension`, {
|
|
1525
|
+
method: "PUT",
|
|
1526
|
+
headers: {
|
|
1527
|
+
"Content-Type": "application/json"
|
|
1528
|
+
},
|
|
1529
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
1530
|
+
});
|
|
1531
|
+
return reviveArtist(await parseJson(result));
|
|
1532
|
+
}
|
|
1533
|
+
/**
|
|
1534
|
+
* @name Lift artist suspension
|
|
1535
|
+
* @description End a suspension now. Something not suspended is answered as it stands rather than refused
|
|
1536
|
+
*/
|
|
1537
|
+
async liftArtistSuspension(id) {
|
|
1538
|
+
const result = await this.fetch(`/catalog/artists/${encodeURIComponent(id)}/suspension`, {
|
|
1539
|
+
method: "DELETE"
|
|
1540
|
+
});
|
|
1541
|
+
return reviveArtist(await parseJson(result));
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* @name Suspend album
|
|
1545
|
+
* @description Keep this release, and every record on it, off the station for a number of days. Nothing already in the running order is taken out; a suspension stops it being chosen again, and lapses by itself
|
|
1546
|
+
*/
|
|
1547
|
+
async suspendAlbum(id, body) {
|
|
1548
|
+
const result = await this.fetch(`/catalog/albums/${encodeURIComponent(id)}/suspension`, {
|
|
1549
|
+
method: "PUT",
|
|
1550
|
+
headers: {
|
|
1551
|
+
"Content-Type": "application/json"
|
|
1552
|
+
},
|
|
1553
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
1554
|
+
});
|
|
1555
|
+
return reviveAlbum(await parseJson(result));
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* @name Lift album suspension
|
|
1559
|
+
* @description End a suspension now. Something not suspended is answered as it stands rather than refused
|
|
1560
|
+
*/
|
|
1561
|
+
async liftAlbumSuspension(id) {
|
|
1562
|
+
const result = await this.fetch(`/catalog/albums/${encodeURIComponent(id)}/suspension`, {
|
|
1563
|
+
method: "DELETE"
|
|
1564
|
+
});
|
|
1565
|
+
return reviveAlbum(await parseJson(result));
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
* @name Suspend track
|
|
1569
|
+
* @description Keep this record off the station for a number of days. Nothing already in the running order is taken out; a suspension stops it being chosen again, and lapses by itself
|
|
1570
|
+
*/
|
|
1571
|
+
async suspendTrack(id, body) {
|
|
1572
|
+
const result = await this.fetch(`/catalog/tracks/${encodeURIComponent(id)}/suspension`, {
|
|
1573
|
+
method: "PUT",
|
|
1574
|
+
headers: {
|
|
1575
|
+
"Content-Type": "application/json"
|
|
1576
|
+
},
|
|
1577
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
1578
|
+
});
|
|
1579
|
+
return reviveTrack(await parseJson(result));
|
|
1580
|
+
}
|
|
1581
|
+
/**
|
|
1582
|
+
* @name Lift track suspension
|
|
1583
|
+
* @description End a suspension now. Something not suspended is answered as it stands rather than refused
|
|
1584
|
+
*/
|
|
1585
|
+
async liftTrackSuspension(id) {
|
|
1586
|
+
const result = await this.fetch(`/catalog/tracks/${encodeURIComponent(id)}/suspension`, {
|
|
1587
|
+
method: "DELETE"
|
|
1588
|
+
});
|
|
1589
|
+
return reviveTrack(await parseJson(result));
|
|
1455
1590
|
}
|
|
1456
1591
|
};
|
|
1457
1592
|
|
|
@@ -1728,6 +1863,30 @@ var DirectorClient = class {
|
|
|
1728
1863
|
});
|
|
1729
1864
|
return await parseJson(result);
|
|
1730
1865
|
}
|
|
1866
|
+
/**
|
|
1867
|
+
* @name Keep the station quiet
|
|
1868
|
+
* @description Keeps the station's own breaks off the air for the next so many records, and takes out the ones already planned across them. Asking again replaces the count
|
|
1869
|
+
*/
|
|
1870
|
+
async keepTheStationQuiet(body) {
|
|
1871
|
+
const result = await this.fetch(`/director/air/quiet`, {
|
|
1872
|
+
method: "PUT",
|
|
1873
|
+
headers: {
|
|
1874
|
+
"Content-Type": "application/json"
|
|
1875
|
+
},
|
|
1876
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
1877
|
+
});
|
|
1878
|
+
return await parseJson(result);
|
|
1879
|
+
}
|
|
1880
|
+
/**
|
|
1881
|
+
* @name End the quiet spell
|
|
1882
|
+
* @description Ends a quiet spell now, so the station talks again at its next break. A station that is not quiet is unchanged rather than refused
|
|
1883
|
+
*/
|
|
1884
|
+
async endTheQuietSpell() {
|
|
1885
|
+
const result = await this.fetch(`/director/air/quiet`, {
|
|
1886
|
+
method: "DELETE"
|
|
1887
|
+
});
|
|
1888
|
+
return await parseJson(result);
|
|
1889
|
+
}
|
|
1731
1890
|
/**
|
|
1732
1891
|
* @name Shuffle the running order
|
|
1733
1892
|
* @description Shuffles the records not yet handed to the player, and plants the breaks again around the new sequence. The head is already in the player's hands and is left alone
|
|
@@ -2058,6 +2217,14 @@ function reviveHistoryEntry(raw) {
|
|
|
2058
2217
|
return raw;
|
|
2059
2218
|
}
|
|
2060
2219
|
__name(reviveHistoryEntry, "reviveHistoryEntry");
|
|
2220
|
+
function reviveAsRunQuery(raw) {
|
|
2221
|
+
const __o0 = raw;
|
|
2222
|
+
if (__o0["until"] != null) {
|
|
2223
|
+
__o0["until"] = __dt7(__o0["until"], "AsRunQuery.until");
|
|
2224
|
+
}
|
|
2225
|
+
return raw;
|
|
2226
|
+
}
|
|
2227
|
+
__name(reviveAsRunQuery, "reviveAsRunQuery");
|
|
2061
2228
|
function reviveHistoryPage(raw) {
|
|
2062
2229
|
const __o0 = raw;
|
|
2063
2230
|
{
|
|
@@ -2069,6 +2236,26 @@ function reviveHistoryPage(raw) {
|
|
|
2069
2236
|
return raw;
|
|
2070
2237
|
}
|
|
2071
2238
|
__name(reviveHistoryPage, "reviveHistoryPage");
|
|
2239
|
+
function reviveAsRunEntry(raw) {
|
|
2240
|
+
const __o0 = raw;
|
|
2241
|
+
__o0["at"] = __dt7(__o0["at"], "AsRunEntry.at");
|
|
2242
|
+
if (__o0["endedAt"] != null) {
|
|
2243
|
+
__o0["endedAt"] = __dt7(__o0["endedAt"], "AsRunEntry.endedAt");
|
|
2244
|
+
}
|
|
2245
|
+
return raw;
|
|
2246
|
+
}
|
|
2247
|
+
__name(reviveAsRunEntry, "reviveAsRunEntry");
|
|
2248
|
+
function reviveAsRunPage(raw) {
|
|
2249
|
+
const __o0 = raw;
|
|
2250
|
+
{
|
|
2251
|
+
const __a1 = __o0["entries"];
|
|
2252
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
2253
|
+
reviveAsRunEntry(__a1[__i2]);
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
return raw;
|
|
2257
|
+
}
|
|
2258
|
+
__name(reviveAsRunPage, "reviveAsRunPage");
|
|
2072
2259
|
|
|
2073
2260
|
// src/history/history.client.ts
|
|
2074
2261
|
var HistoryClient = class {
|
|
@@ -2090,6 +2277,17 @@ var HistoryClient = class {
|
|
|
2090
2277
|
});
|
|
2091
2278
|
return reviveHistoryPage(await parseJson(result));
|
|
2092
2279
|
}
|
|
2280
|
+
/**
|
|
2281
|
+
* @name Read as-run log
|
|
2282
|
+
* @description The as-run log, newest first, one page at a time
|
|
2283
|
+
*/
|
|
2284
|
+
async readAsRunLog(query) {
|
|
2285
|
+
const qs = buildQueryString(query);
|
|
2286
|
+
const result = await this.fetch(`/history/as-run${qs}`, {
|
|
2287
|
+
method: "GET"
|
|
2288
|
+
});
|
|
2289
|
+
return reviveAsRunPage(await parseJson(result));
|
|
2290
|
+
}
|
|
2093
2291
|
};
|
|
2094
2292
|
|
|
2095
2293
|
// src/languages/types/languages.types.ts
|
|
@@ -5863,14 +6061,21 @@ export {
|
|
|
5863
6061
|
readContentType,
|
|
5864
6062
|
reviveActivityEntry,
|
|
5865
6063
|
reviveActivityPage,
|
|
6064
|
+
reviveAlbum,
|
|
5866
6065
|
reviveAlbumEnrichmentDetail,
|
|
5867
6066
|
reviveAlbumEnrichmentSource,
|
|
6067
|
+
reviveAlbumPage,
|
|
5868
6068
|
reviveApiKey,
|
|
5869
6069
|
reviveApiKeyCreate,
|
|
5870
6070
|
reviveApiKeyIssued,
|
|
5871
6071
|
reviveApiKeyList,
|
|
6072
|
+
reviveArtist,
|
|
5872
6073
|
reviveArtistEnrichmentDetail,
|
|
5873
6074
|
reviveArtistEnrichmentSource,
|
|
6075
|
+
reviveArtistPage,
|
|
6076
|
+
reviveAsRunEntry,
|
|
6077
|
+
reviveAsRunPage,
|
|
6078
|
+
reviveAsRunQuery,
|
|
5874
6079
|
reviveAuthenticationFactorRegistrationResponse,
|
|
5875
6080
|
reviveAuthenticationLoginStartResponse,
|
|
5876
6081
|
reviveAuthenticationRegistration,
|
|
@@ -5973,6 +6178,7 @@ export {
|
|
|
5973
6178
|
reviveTraceDetail,
|
|
5974
6179
|
reviveTraceSpan,
|
|
5975
6180
|
reviveTracesPage,
|
|
6181
|
+
reviveTrack,
|
|
5976
6182
|
reviveTrackAnalysis,
|
|
5977
6183
|
reviveTrackBinding,
|
|
5978
6184
|
reviveTrackDetail,
|
|
@@ -5980,7 +6186,9 @@ export {
|
|
|
5980
6186
|
reviveTrackEnrichmentSource,
|
|
5981
6187
|
reviveTrackLyricsSource,
|
|
5982
6188
|
reviveTrackLyricsSources,
|
|
6189
|
+
reviveTrackPage,
|
|
5983
6190
|
reviveTrackPlay,
|
|
6191
|
+
reviveTrackRow,
|
|
5984
6192
|
reviveUserDetail,
|
|
5985
6193
|
reviveUserPage,
|
|
5986
6194
|
reviveUserSignIn,
|