@deadair/sdk 0.69.0 → 0.70.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/deadair.sdk.d.ts +2 -0
- package/dist/deadair.sdk.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +193 -87
- package/dist/index.js.map +1 -1
- package/dist/metrics/metrics.client.d.ts +17 -0
- package/dist/metrics/metrics.client.d.ts.map +1 -0
- package/dist/metrics/types/index.d.ts +2 -0
- package/dist/metrics/types/index.d.ts.map +1 -0
- package/dist/metrics/types/metrics.types.d.ts +115 -0
- package/dist/metrics/types/metrics.types.d.ts.map +1 -0
- package/dist/settings/types/settings.types.d.ts +1 -1
- package/dist/settings/types/settings.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2260,6 +2260,103 @@ var MessagingClient = class {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
};
|
|
2262
2262
|
|
|
2263
|
+
// src/metrics/types/metrics.types.ts
|
|
2264
|
+
import { DateTime as DateTime10 } from "luxon";
|
|
2265
|
+
var __dt10 = /* @__PURE__ */ __name((v, path) => {
|
|
2266
|
+
if (typeof v !== "string") {
|
|
2267
|
+
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2268
|
+
}
|
|
2269
|
+
const d = DateTime10.fromISO(v);
|
|
2270
|
+
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2271
|
+
return d;
|
|
2272
|
+
}, "__dt");
|
|
2273
|
+
function reviveMetricSeriesQuery(raw) {
|
|
2274
|
+
const __o0 = raw;
|
|
2275
|
+
__o0["from"] = __dt10(__o0["from"], "MetricSeriesQuery.from");
|
|
2276
|
+
__o0["to"] = __dt10(__o0["to"], "MetricSeriesQuery.to");
|
|
2277
|
+
return raw;
|
|
2278
|
+
}
|
|
2279
|
+
__name(reviveMetricSeriesQuery, "reviveMetricSeriesQuery");
|
|
2280
|
+
function reviveMetricPoint(raw) {
|
|
2281
|
+
const __o0 = raw;
|
|
2282
|
+
__o0["at"] = __dt10(__o0["at"], "MetricPoint.at");
|
|
2283
|
+
return raw;
|
|
2284
|
+
}
|
|
2285
|
+
__name(reviveMetricPoint, "reviveMetricPoint");
|
|
2286
|
+
function reviveMetricName(raw) {
|
|
2287
|
+
const __o0 = raw;
|
|
2288
|
+
__o0["lastSeen"] = __dt10(__o0["lastSeen"], "MetricName.lastSeen");
|
|
2289
|
+
return raw;
|
|
2290
|
+
}
|
|
2291
|
+
__name(reviveMetricName, "reviveMetricName");
|
|
2292
|
+
function reviveMetricSeries(raw) {
|
|
2293
|
+
const __o0 = raw;
|
|
2294
|
+
{
|
|
2295
|
+
const __a1 = __o0["points"];
|
|
2296
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
2297
|
+
reviveMetricPoint(__a1[__i2]);
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
return raw;
|
|
2301
|
+
}
|
|
2302
|
+
__name(reviveMetricSeries, "reviveMetricSeries");
|
|
2303
|
+
function reviveMetricNames(raw) {
|
|
2304
|
+
const __o0 = raw;
|
|
2305
|
+
{
|
|
2306
|
+
const __a1 = __o0["names"];
|
|
2307
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
2308
|
+
reviveMetricName(__a1[__i2]);
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
return raw;
|
|
2312
|
+
}
|
|
2313
|
+
__name(reviveMetricNames, "reviveMetricNames");
|
|
2314
|
+
function reviveMetricSeriesPage(raw) {
|
|
2315
|
+
const __o0 = raw;
|
|
2316
|
+
__o0["from"] = __dt10(__o0["from"], "MetricSeriesPage.from");
|
|
2317
|
+
__o0["to"] = __dt10(__o0["to"], "MetricSeriesPage.to");
|
|
2318
|
+
{
|
|
2319
|
+
const __a1 = __o0["series"];
|
|
2320
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
2321
|
+
reviveMetricSeries(__a1[__i2]);
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
return raw;
|
|
2325
|
+
}
|
|
2326
|
+
__name(reviveMetricSeriesPage, "reviveMetricSeriesPage");
|
|
2327
|
+
|
|
2328
|
+
// src/metrics/metrics.client.ts
|
|
2329
|
+
var MetricsClient = class {
|
|
2330
|
+
static {
|
|
2331
|
+
__name(this, "MetricsClient");
|
|
2332
|
+
}
|
|
2333
|
+
fetch;
|
|
2334
|
+
constructor(fetch2) {
|
|
2335
|
+
this.fetch = fetch2;
|
|
2336
|
+
}
|
|
2337
|
+
/**
|
|
2338
|
+
* @name Read metric series
|
|
2339
|
+
* @description Trends over a range, at minute resolution for two days or less and hourly beyond
|
|
2340
|
+
*/
|
|
2341
|
+
async readMetricSeries(query) {
|
|
2342
|
+
const qs = buildQueryString(query);
|
|
2343
|
+
const result = await this.fetch(`/metrics/series${qs}`, {
|
|
2344
|
+
method: "GET"
|
|
2345
|
+
});
|
|
2346
|
+
return reviveMetricSeriesPage(await parseJson(result));
|
|
2347
|
+
}
|
|
2348
|
+
/**
|
|
2349
|
+
* @name Read metric names
|
|
2350
|
+
* @description Every metric the station holds, with its labels and when it was last measured
|
|
2351
|
+
*/
|
|
2352
|
+
async readMetricNames() {
|
|
2353
|
+
const result = await this.fetch(`/metrics/names`, {
|
|
2354
|
+
method: "GET"
|
|
2355
|
+
});
|
|
2356
|
+
return reviveMetricNames(await parseJson(result));
|
|
2357
|
+
}
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2263
2360
|
// src/narrations/narrations.client.ts
|
|
2264
2361
|
var NarrationsClient = class {
|
|
2265
2362
|
static {
|
|
@@ -2375,32 +2472,32 @@ var NowplayingClient = class {
|
|
|
2375
2472
|
};
|
|
2376
2473
|
|
|
2377
2474
|
// src/oauth/types/oauth.types.ts
|
|
2378
|
-
import { DateTime as
|
|
2379
|
-
var
|
|
2475
|
+
import { DateTime as DateTime11 } from "luxon";
|
|
2476
|
+
var __dt11 = /* @__PURE__ */ __name((v, path) => {
|
|
2380
2477
|
if (typeof v !== "string") {
|
|
2381
2478
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2382
2479
|
}
|
|
2383
|
-
const d =
|
|
2480
|
+
const d = DateTime11.fromISO(v);
|
|
2384
2481
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2385
2482
|
return d;
|
|
2386
2483
|
}, "__dt");
|
|
2387
2484
|
function reviveOAuthGrant(raw) {
|
|
2388
2485
|
const __o0 = raw;
|
|
2389
|
-
__o0["createdAt"] =
|
|
2486
|
+
__o0["createdAt"] = __dt11(__o0["createdAt"], "OAuthGrant.createdAt");
|
|
2390
2487
|
if (__o0["lastUsedAt"] != null) {
|
|
2391
|
-
__o0["lastUsedAt"] =
|
|
2488
|
+
__o0["lastUsedAt"] = __dt11(__o0["lastUsedAt"], "OAuthGrant.lastUsedAt");
|
|
2392
2489
|
}
|
|
2393
2490
|
return raw;
|
|
2394
2491
|
}
|
|
2395
2492
|
__name(reviveOAuthGrant, "reviveOAuthGrant");
|
|
2396
2493
|
function reviveOAuthClientSummary(raw) {
|
|
2397
2494
|
const __o0 = raw;
|
|
2398
|
-
__o0["createdAt"] =
|
|
2495
|
+
__o0["createdAt"] = __dt11(__o0["createdAt"], "OAuthClientSummary.createdAt");
|
|
2399
2496
|
if (__o0["lastUsedAt"] != null) {
|
|
2400
|
-
__o0["lastUsedAt"] =
|
|
2497
|
+
__o0["lastUsedAt"] = __dt11(__o0["lastUsedAt"], "OAuthClientSummary.lastUsedAt");
|
|
2401
2498
|
}
|
|
2402
2499
|
if (__o0["expiresAt"] != null) {
|
|
2403
|
-
__o0["expiresAt"] =
|
|
2500
|
+
__o0["expiresAt"] = __dt11(__o0["expiresAt"], "OAuthClientSummary.expiresAt");
|
|
2404
2501
|
}
|
|
2405
2502
|
return raw;
|
|
2406
2503
|
}
|
|
@@ -2569,18 +2666,18 @@ var OnboardingClient = class {
|
|
|
2569
2666
|
};
|
|
2570
2667
|
|
|
2571
2668
|
// src/outputs/types/outputs.types.ts
|
|
2572
|
-
import { DateTime as
|
|
2573
|
-
var
|
|
2669
|
+
import { DateTime as DateTime12 } from "luxon";
|
|
2670
|
+
var __dt12 = /* @__PURE__ */ __name((v, path) => {
|
|
2574
2671
|
if (typeof v !== "string") {
|
|
2575
2672
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2576
2673
|
}
|
|
2577
|
-
const d =
|
|
2674
|
+
const d = DateTime12.fromISO(v);
|
|
2578
2675
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2579
2676
|
return d;
|
|
2580
2677
|
}, "__dt");
|
|
2581
2678
|
function reviveOutputCast(raw) {
|
|
2582
2679
|
const __o0 = raw;
|
|
2583
|
-
__o0["startedAt"] =
|
|
2680
|
+
__o0["startedAt"] = __dt12(__o0["startedAt"], "OutputCast.startedAt");
|
|
2584
2681
|
return raw;
|
|
2585
2682
|
}
|
|
2586
2683
|
__name(reviveOutputCast, "reviveOutputCast");
|
|
@@ -3123,18 +3220,18 @@ var PersonasClient = class {
|
|
|
3123
3220
|
};
|
|
3124
3221
|
|
|
3125
3222
|
// src/playlists/types/playlists.types.ts
|
|
3126
|
-
import { DateTime as
|
|
3127
|
-
var
|
|
3223
|
+
import { DateTime as DateTime13 } from "luxon";
|
|
3224
|
+
var __dt13 = /* @__PURE__ */ __name((v, path) => {
|
|
3128
3225
|
if (typeof v !== "string") {
|
|
3129
3226
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3130
3227
|
}
|
|
3131
|
-
const d =
|
|
3228
|
+
const d = DateTime13.fromISO(v);
|
|
3132
3229
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3133
3230
|
return d;
|
|
3134
3231
|
}, "__dt");
|
|
3135
3232
|
function reviveCatalogPlaylistSource(raw) {
|
|
3136
3233
|
const __o0 = raw;
|
|
3137
|
-
__o0["listedAt"] =
|
|
3234
|
+
__o0["listedAt"] = __dt13(__o0["listedAt"], "CatalogPlaylistSource.listedAt");
|
|
3138
3235
|
return raw;
|
|
3139
3236
|
}
|
|
3140
3237
|
__name(reviveCatalogPlaylistSource, "reviveCatalogPlaylistSource");
|
|
@@ -3153,19 +3250,19 @@ function reviveCatalogPlaylistPage(raw) {
|
|
|
3153
3250
|
__name(reviveCatalogPlaylistPage, "reviveCatalogPlaylistPage");
|
|
3154
3251
|
|
|
3155
3252
|
// src/playlists/types/station.playlists.types.ts
|
|
3156
|
-
import { DateTime as
|
|
3157
|
-
var
|
|
3253
|
+
import { DateTime as DateTime14 } from "luxon";
|
|
3254
|
+
var __dt14 = /* @__PURE__ */ __name((v, path) => {
|
|
3158
3255
|
if (typeof v !== "string") {
|
|
3159
3256
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3160
3257
|
}
|
|
3161
|
-
const d =
|
|
3258
|
+
const d = DateTime14.fromISO(v);
|
|
3162
3259
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3163
3260
|
return d;
|
|
3164
3261
|
}, "__dt");
|
|
3165
3262
|
function reviveStationPlaylist(raw) {
|
|
3166
3263
|
const __o0 = raw;
|
|
3167
|
-
__o0["createdAt"] =
|
|
3168
|
-
__o0["updatedAt"] =
|
|
3264
|
+
__o0["createdAt"] = __dt14(__o0["createdAt"], "StationPlaylist.createdAt");
|
|
3265
|
+
__o0["updatedAt"] = __dt14(__o0["updatedAt"], "StationPlaylist.updatedAt");
|
|
3169
3266
|
return raw;
|
|
3170
3267
|
}
|
|
3171
3268
|
__name(reviveStationPlaylist, "reviveStationPlaylist");
|
|
@@ -3463,22 +3560,22 @@ var PlayoutClient = class {
|
|
|
3463
3560
|
};
|
|
3464
3561
|
|
|
3465
3562
|
// src/plugins/types/plugins.types.ts
|
|
3466
|
-
import { DateTime as
|
|
3467
|
-
var
|
|
3563
|
+
import { DateTime as DateTime15 } from "luxon";
|
|
3564
|
+
var __dt15 = /* @__PURE__ */ __name((v, path) => {
|
|
3468
3565
|
if (typeof v !== "string") {
|
|
3469
3566
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3470
3567
|
}
|
|
3471
|
-
const d =
|
|
3568
|
+
const d = DateTime15.fromISO(v);
|
|
3472
3569
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3473
3570
|
return d;
|
|
3474
3571
|
}, "__dt");
|
|
3475
3572
|
function revivePluginSummary(raw) {
|
|
3476
3573
|
const __o0 = raw;
|
|
3477
3574
|
if (__o0["firstEnabledAt"] != null) {
|
|
3478
|
-
__o0["firstEnabledAt"] =
|
|
3575
|
+
__o0["firstEnabledAt"] = __dt15(__o0["firstEnabledAt"], "PluginSummary.firstEnabledAt");
|
|
3479
3576
|
}
|
|
3480
3577
|
if (__o0["nextProbeAt"] != null) {
|
|
3481
|
-
__o0["nextProbeAt"] =
|
|
3578
|
+
__o0["nextProbeAt"] = __dt15(__o0["nextProbeAt"], "PluginSummary.nextProbeAt");
|
|
3482
3579
|
}
|
|
3483
3580
|
return raw;
|
|
3484
3581
|
}
|
|
@@ -3733,31 +3830,31 @@ var PluginsClient = class {
|
|
|
3733
3830
|
};
|
|
3734
3831
|
|
|
3735
3832
|
// src/productions/types/productions.types.ts
|
|
3736
|
-
import { DateTime as
|
|
3737
|
-
var
|
|
3833
|
+
import { DateTime as DateTime16 } from "luxon";
|
|
3834
|
+
var __dt16 = /* @__PURE__ */ __name((v, path) => {
|
|
3738
3835
|
if (typeof v !== "string") {
|
|
3739
3836
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3740
3837
|
}
|
|
3741
|
-
const d =
|
|
3838
|
+
const d = DateTime16.fromISO(v);
|
|
3742
3839
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3743
3840
|
return d;
|
|
3744
3841
|
}, "__dt");
|
|
3745
3842
|
function reviveProduction(raw) {
|
|
3746
3843
|
const __o0 = raw;
|
|
3747
3844
|
if (__o0["scheduledFor"] != null) {
|
|
3748
|
-
__o0["scheduledFor"] =
|
|
3845
|
+
__o0["scheduledFor"] = __dt16(__o0["scheduledFor"], "Production.scheduledFor");
|
|
3749
3846
|
}
|
|
3750
3847
|
if (__o0["cancelledAt"] != null) {
|
|
3751
|
-
__o0["cancelledAt"] =
|
|
3848
|
+
__o0["cancelledAt"] = __dt16(__o0["cancelledAt"], "Production.cancelledAt");
|
|
3752
3849
|
}
|
|
3753
|
-
__o0["createdAt"] =
|
|
3850
|
+
__o0["createdAt"] = __dt16(__o0["createdAt"], "Production.createdAt");
|
|
3754
3851
|
return raw;
|
|
3755
3852
|
}
|
|
3756
3853
|
__name(reviveProduction, "reviveProduction");
|
|
3757
3854
|
function reviveProductionRequest(raw) {
|
|
3758
3855
|
const __o0 = raw;
|
|
3759
3856
|
if (__o0["scheduledFor"] != null) {
|
|
3760
|
-
__o0["scheduledFor"] =
|
|
3857
|
+
__o0["scheduledFor"] = __dt16(__o0["scheduledFor"], "ProductionRequest.scheduledFor");
|
|
3761
3858
|
}
|
|
3762
3859
|
return raw;
|
|
3763
3860
|
}
|
|
@@ -3775,25 +3872,25 @@ function reviveProductionList(raw) {
|
|
|
3775
3872
|
__name(reviveProductionList, "reviveProductionList");
|
|
3776
3873
|
|
|
3777
3874
|
// src/podcasts/types/podcasts.types.ts
|
|
3778
|
-
import { DateTime as
|
|
3779
|
-
var
|
|
3875
|
+
import { DateTime as DateTime17 } from "luxon";
|
|
3876
|
+
var __dt17 = /* @__PURE__ */ __name((v, path) => {
|
|
3780
3877
|
if (typeof v !== "string") {
|
|
3781
3878
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3782
3879
|
}
|
|
3783
|
-
const d =
|
|
3880
|
+
const d = DateTime17.fromISO(v);
|
|
3784
3881
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3785
3882
|
return d;
|
|
3786
3883
|
}, "__dt");
|
|
3787
3884
|
function reviveOwnShow(raw) {
|
|
3788
3885
|
const __o0 = raw;
|
|
3789
|
-
__o0["createdAt"] =
|
|
3886
|
+
__o0["createdAt"] = __dt17(__o0["createdAt"], "OwnShow.createdAt");
|
|
3790
3887
|
return raw;
|
|
3791
3888
|
}
|
|
3792
3889
|
__name(reviveOwnShow, "reviveOwnShow");
|
|
3793
3890
|
function reviveOwnEpisodeRequest(raw) {
|
|
3794
3891
|
const __o0 = raw;
|
|
3795
3892
|
if (__o0["airAt"] != null) {
|
|
3796
|
-
__o0["airAt"] =
|
|
3893
|
+
__o0["airAt"] = __dt17(__o0["airAt"], "OwnEpisodeRequest.airAt");
|
|
3797
3894
|
}
|
|
3798
3895
|
return raw;
|
|
3799
3896
|
}
|
|
@@ -3989,25 +4086,25 @@ var ProductionsClient = class {
|
|
|
3989
4086
|
};
|
|
3990
4087
|
|
|
3991
4088
|
// src/render/types/render.types.ts
|
|
3992
|
-
import { DateTime as
|
|
3993
|
-
var
|
|
4089
|
+
import { DateTime as DateTime18 } from "luxon";
|
|
4090
|
+
var __dt18 = /* @__PURE__ */ __name((v, path) => {
|
|
3994
4091
|
if (typeof v !== "string") {
|
|
3995
4092
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3996
4093
|
}
|
|
3997
|
-
const d =
|
|
4094
|
+
const d = DateTime18.fromISO(v);
|
|
3998
4095
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3999
4096
|
return d;
|
|
4000
4097
|
}, "__dt");
|
|
4001
4098
|
function reviveScriptAttempt(raw) {
|
|
4002
4099
|
const __o0 = raw;
|
|
4003
|
-
__o0["at"] =
|
|
4100
|
+
__o0["at"] = __dt18(__o0["at"], "ScriptAttempt.at");
|
|
4004
4101
|
return raw;
|
|
4005
4102
|
}
|
|
4006
4103
|
__name(reviveScriptAttempt, "reviveScriptAttempt");
|
|
4007
4104
|
function revivePad(raw) {
|
|
4008
4105
|
const __o0 = raw;
|
|
4009
4106
|
if (__o0["lastUsedAt"] != null) {
|
|
4010
|
-
__o0["lastUsedAt"] =
|
|
4107
|
+
__o0["lastUsedAt"] = __dt18(__o0["lastUsedAt"], "Pad.lastUsedAt");
|
|
4011
4108
|
}
|
|
4012
4109
|
return raw;
|
|
4013
4110
|
}
|
|
@@ -4505,33 +4602,33 @@ var RenderClient = class {
|
|
|
4505
4602
|
};
|
|
4506
4603
|
|
|
4507
4604
|
// src/requests/types/requests.types.ts
|
|
4508
|
-
import { DateTime as
|
|
4509
|
-
var
|
|
4605
|
+
import { DateTime as DateTime19 } from "luxon";
|
|
4606
|
+
var __dt19 = /* @__PURE__ */ __name((v, path) => {
|
|
4510
4607
|
if (typeof v !== "string") {
|
|
4511
4608
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4512
4609
|
}
|
|
4513
|
-
const d =
|
|
4610
|
+
const d = DateTime19.fromISO(v);
|
|
4514
4611
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4515
4612
|
return d;
|
|
4516
4613
|
}, "__dt");
|
|
4517
4614
|
function revivePartyPass(raw) {
|
|
4518
4615
|
const __o0 = raw;
|
|
4519
|
-
__o0["createdAt"] =
|
|
4520
|
-
__o0["expiresAt"] =
|
|
4616
|
+
__o0["createdAt"] = __dt19(__o0["createdAt"], "PartyPass.createdAt");
|
|
4617
|
+
__o0["expiresAt"] = __dt19(__o0["expiresAt"], "PartyPass.expiresAt");
|
|
4521
4618
|
return raw;
|
|
4522
4619
|
}
|
|
4523
4620
|
__name(revivePartyPass, "revivePartyPass");
|
|
4524
4621
|
function revivePartyGuestSession(raw) {
|
|
4525
4622
|
const __o0 = raw;
|
|
4526
|
-
__o0["expiresAt"] =
|
|
4623
|
+
__o0["expiresAt"] = __dt19(__o0["expiresAt"], "PartyGuestSession.expiresAt");
|
|
4527
4624
|
return raw;
|
|
4528
4625
|
}
|
|
4529
4626
|
__name(revivePartyGuestSession, "revivePartyGuestSession");
|
|
4530
4627
|
function reviveListenerRequest(raw) {
|
|
4531
4628
|
const __o0 = raw;
|
|
4532
|
-
__o0["createdAt"] =
|
|
4629
|
+
__o0["createdAt"] = __dt19(__o0["createdAt"], "ListenerRequest.createdAt");
|
|
4533
4630
|
if (__o0["airedAt"] != null) {
|
|
4534
|
-
__o0["airedAt"] =
|
|
4631
|
+
__o0["airedAt"] = __dt19(__o0["airedAt"], "ListenerRequest.airedAt");
|
|
4535
4632
|
}
|
|
4536
4633
|
return raw;
|
|
4537
4634
|
}
|
|
@@ -4863,19 +4960,19 @@ var SettingsClient = class {
|
|
|
4863
4960
|
};
|
|
4864
4961
|
|
|
4865
4962
|
// src/station/types/logs.types.ts
|
|
4866
|
-
import { DateTime as
|
|
4867
|
-
var
|
|
4963
|
+
import { DateTime as DateTime20 } from "luxon";
|
|
4964
|
+
var __dt20 = /* @__PURE__ */ __name((v, path) => {
|
|
4868
4965
|
if (typeof v !== "string") {
|
|
4869
4966
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4870
4967
|
}
|
|
4871
|
-
const d =
|
|
4968
|
+
const d = DateTime20.fromISO(v);
|
|
4872
4969
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4873
4970
|
return d;
|
|
4874
4971
|
}, "__dt");
|
|
4875
4972
|
function reviveLogSource(raw) {
|
|
4876
4973
|
const __o0 = raw;
|
|
4877
4974
|
if (__o0["lastWriteAt"] != null) {
|
|
4878
|
-
__o0["lastWriteAt"] =
|
|
4975
|
+
__o0["lastWriteAt"] = __dt20(__o0["lastWriteAt"], "LogSource.lastWriteAt");
|
|
4879
4976
|
}
|
|
4880
4977
|
return raw;
|
|
4881
4978
|
}
|
|
@@ -4893,12 +4990,12 @@ function reviveLogSourceList(raw) {
|
|
|
4893
4990
|
__name(reviveLogSourceList, "reviveLogSourceList");
|
|
4894
4991
|
|
|
4895
4992
|
// src/station/types/station.types.ts
|
|
4896
|
-
import { DateTime as
|
|
4897
|
-
var
|
|
4993
|
+
import { DateTime as DateTime21 } from "luxon";
|
|
4994
|
+
var __dt21 = /* @__PURE__ */ __name((v, path) => {
|
|
4898
4995
|
if (typeof v !== "string") {
|
|
4899
4996
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4900
4997
|
}
|
|
4901
|
-
const d =
|
|
4998
|
+
const d = DateTime21.fromISO(v);
|
|
4902
4999
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4903
5000
|
return d;
|
|
4904
5001
|
}, "__dt");
|
|
@@ -4906,22 +5003,22 @@ var __dtf = /* @__PURE__ */ __name((v, path, fmt) => {
|
|
|
4906
5003
|
if (typeof v !== "string") {
|
|
4907
5004
|
throw new TypeError(`ContractKit: expected a string at '${path}' in format ${fmt}, received ${typeof v}.`);
|
|
4908
5005
|
}
|
|
4909
|
-
const d =
|
|
5006
|
+
const d = DateTime21.fromFormat(v, fmt);
|
|
4910
5007
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' does not match format ${fmt}.`);
|
|
4911
5008
|
return d;
|
|
4912
5009
|
}, "__dtf");
|
|
4913
5010
|
function reviveStationHeartbeat(raw) {
|
|
4914
5011
|
const __o0 = raw;
|
|
4915
|
-
__o0["startedAt"] =
|
|
5012
|
+
__o0["startedAt"] = __dt21(__o0["startedAt"], "StationHeartbeat.startedAt");
|
|
4916
5013
|
if (__o0["lastBeat"] != null) {
|
|
4917
|
-
__o0["lastBeat"] =
|
|
5014
|
+
__o0["lastBeat"] = __dt21(__o0["lastBeat"], "StationHeartbeat.lastBeat");
|
|
4918
5015
|
}
|
|
4919
5016
|
return raw;
|
|
4920
5017
|
}
|
|
4921
5018
|
__name(reviveStationHeartbeat, "reviveStationHeartbeat");
|
|
4922
5019
|
function reviveStationModelHolder(raw) {
|
|
4923
5020
|
const __o0 = raw;
|
|
4924
|
-
__o0["heldSince"] =
|
|
5021
|
+
__o0["heldSince"] = __dt21(__o0["heldSince"], "StationModelHolder.heldSince");
|
|
4925
5022
|
return raw;
|
|
4926
5023
|
}
|
|
4927
5024
|
__name(reviveStationModelHolder, "reviveStationModelHolder");
|
|
@@ -4950,7 +5047,7 @@ function reviveStationReleases(raw) {
|
|
|
4950
5047
|
}
|
|
4951
5048
|
}
|
|
4952
5049
|
if (__o0["checkedAt"] != null) {
|
|
4953
|
-
__o0["checkedAt"] =
|
|
5050
|
+
__o0["checkedAt"] = __dt21(__o0["checkedAt"], "StationReleases.checkedAt");
|
|
4954
5051
|
}
|
|
4955
5052
|
{
|
|
4956
5053
|
const __a3 = __o0["available"];
|
|
@@ -4963,7 +5060,7 @@ function reviveStationReleases(raw) {
|
|
|
4963
5060
|
__name(reviveStationReleases, "reviveStationReleases");
|
|
4964
5061
|
function reviveStationCheckup(raw) {
|
|
4965
5062
|
const __o0 = raw;
|
|
4966
|
-
__o0["readAt"] =
|
|
5063
|
+
__o0["readAt"] = __dt21(__o0["readAt"], "StationCheckup.readAt");
|
|
4967
5064
|
if (__o0["heartbeats"] != null) {
|
|
4968
5065
|
{
|
|
4969
5066
|
const __a1 = __o0["heartbeats"];
|
|
@@ -4980,24 +5077,24 @@ function reviveStationCheckup(raw) {
|
|
|
4980
5077
|
__name(reviveStationCheckup, "reviveStationCheckup");
|
|
4981
5078
|
|
|
4982
5079
|
// src/station/types/traces.types.ts
|
|
4983
|
-
import { DateTime as
|
|
4984
|
-
var
|
|
5080
|
+
import { DateTime as DateTime22 } from "luxon";
|
|
5081
|
+
var __dt22 = /* @__PURE__ */ __name((v, path) => {
|
|
4985
5082
|
if (typeof v !== "string") {
|
|
4986
5083
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4987
5084
|
}
|
|
4988
|
-
const d =
|
|
5085
|
+
const d = DateTime22.fromISO(v);
|
|
4989
5086
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4990
5087
|
return d;
|
|
4991
5088
|
}, "__dt");
|
|
4992
5089
|
function reviveTraceDecision(raw) {
|
|
4993
5090
|
const __o0 = raw;
|
|
4994
|
-
__o0["at"] =
|
|
5091
|
+
__o0["at"] = __dt22(__o0["at"], "TraceDecision.at");
|
|
4995
5092
|
return raw;
|
|
4996
5093
|
}
|
|
4997
5094
|
__name(reviveTraceDecision, "reviveTraceDecision");
|
|
4998
5095
|
function reviveTraceSpan(raw) {
|
|
4999
5096
|
const __o0 = raw;
|
|
5000
|
-
__o0["at"] =
|
|
5097
|
+
__o0["at"] = __dt22(__o0["at"], "TraceSpan.at");
|
|
5001
5098
|
return raw;
|
|
5002
5099
|
}
|
|
5003
5100
|
__name(reviveTraceSpan, "reviveTraceSpan");
|
|
@@ -5153,18 +5250,18 @@ var StationClient = class {
|
|
|
5153
5250
|
};
|
|
5154
5251
|
|
|
5155
5252
|
// src/storage/types/storage.types.ts
|
|
5156
|
-
import { DateTime as
|
|
5157
|
-
var
|
|
5253
|
+
import { DateTime as DateTime23 } from "luxon";
|
|
5254
|
+
var __dt23 = /* @__PURE__ */ __name((v, path) => {
|
|
5158
5255
|
if (typeof v !== "string") {
|
|
5159
5256
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5160
5257
|
}
|
|
5161
|
-
const d =
|
|
5258
|
+
const d = DateTime23.fromISO(v);
|
|
5162
5259
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5163
5260
|
return d;
|
|
5164
5261
|
}, "__dt");
|
|
5165
5262
|
function reviveStorageReport(raw) {
|
|
5166
5263
|
const __o0 = raw;
|
|
5167
|
-
__o0["readAt"] =
|
|
5264
|
+
__o0["readAt"] = __dt23(__o0["readAt"], "StorageReport.readAt");
|
|
5168
5265
|
return raw;
|
|
5169
5266
|
}
|
|
5170
5267
|
__name(reviveStorageReport, "reviveStorageReport");
|
|
@@ -5342,27 +5439,27 @@ var TopicsClient = class {
|
|
|
5342
5439
|
};
|
|
5343
5440
|
|
|
5344
5441
|
// src/users/types/users.types.ts
|
|
5345
|
-
import { DateTime as
|
|
5346
|
-
var
|
|
5442
|
+
import { DateTime as DateTime24 } from "luxon";
|
|
5443
|
+
var __dt24 = /* @__PURE__ */ __name((v, path) => {
|
|
5347
5444
|
if (typeof v !== "string") {
|
|
5348
5445
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5349
5446
|
}
|
|
5350
|
-
const d =
|
|
5447
|
+
const d = DateTime24.fromISO(v);
|
|
5351
5448
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5352
5449
|
return d;
|
|
5353
5450
|
}, "__dt");
|
|
5354
5451
|
function reviveUserSummary(raw) {
|
|
5355
5452
|
const __o0 = raw;
|
|
5356
|
-
__o0["createdAt"] =
|
|
5453
|
+
__o0["createdAt"] = __dt24(__o0["createdAt"], "UserSummary.createdAt");
|
|
5357
5454
|
if (__o0["lastSignInAt"] != null) {
|
|
5358
|
-
__o0["lastSignInAt"] =
|
|
5455
|
+
__o0["lastSignInAt"] = __dt24(__o0["lastSignInAt"], "UserSummary.lastSignInAt");
|
|
5359
5456
|
}
|
|
5360
5457
|
return raw;
|
|
5361
5458
|
}
|
|
5362
5459
|
__name(reviveUserSummary, "reviveUserSummary");
|
|
5363
5460
|
function reviveUserSignIn(raw) {
|
|
5364
5461
|
const __o0 = raw;
|
|
5365
|
-
__o0["occurredAt"] =
|
|
5462
|
+
__o0["occurredAt"] = __dt24(__o0["occurredAt"], "UserSignIn.occurredAt");
|
|
5366
5463
|
return raw;
|
|
5367
5464
|
}
|
|
5368
5465
|
__name(reviveUserSignIn, "reviveUserSignIn");
|
|
@@ -5397,30 +5494,30 @@ function reviveUserDetail(raw) {
|
|
|
5397
5494
|
__name(reviveUserDetail, "reviveUserDetail");
|
|
5398
5495
|
|
|
5399
5496
|
// src/users/types/invitations.types.ts
|
|
5400
|
-
import { DateTime as
|
|
5401
|
-
var
|
|
5497
|
+
import { DateTime as DateTime25 } from "luxon";
|
|
5498
|
+
var __dt25 = /* @__PURE__ */ __name((v, path) => {
|
|
5402
5499
|
if (typeof v !== "string") {
|
|
5403
5500
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5404
5501
|
}
|
|
5405
|
-
const d =
|
|
5502
|
+
const d = DateTime25.fromISO(v);
|
|
5406
5503
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5407
5504
|
return d;
|
|
5408
5505
|
}, "__dt");
|
|
5409
5506
|
function reviveInvitationDetails(raw) {
|
|
5410
5507
|
const __o0 = raw;
|
|
5411
|
-
__o0["expiresAt"] =
|
|
5508
|
+
__o0["expiresAt"] = __dt25(__o0["expiresAt"], "InvitationDetails.expiresAt");
|
|
5412
5509
|
return raw;
|
|
5413
5510
|
}
|
|
5414
5511
|
__name(reviveInvitationDetails, "reviveInvitationDetails");
|
|
5415
5512
|
function reviveInvitation(raw) {
|
|
5416
5513
|
const __o0 = raw;
|
|
5417
|
-
__o0["createdAt"] =
|
|
5418
|
-
__o0["expiresAt"] =
|
|
5514
|
+
__o0["createdAt"] = __dt25(__o0["createdAt"], "Invitation.createdAt");
|
|
5515
|
+
__o0["expiresAt"] = __dt25(__o0["expiresAt"], "Invitation.expiresAt");
|
|
5419
5516
|
if (__o0["acceptedAt"] != null) {
|
|
5420
|
-
__o0["acceptedAt"] =
|
|
5517
|
+
__o0["acceptedAt"] = __dt25(__o0["acceptedAt"], "Invitation.acceptedAt");
|
|
5421
5518
|
}
|
|
5422
5519
|
if (__o0["revokedAt"] != null) {
|
|
5423
|
-
__o0["revokedAt"] =
|
|
5520
|
+
__o0["revokedAt"] = __dt25(__o0["revokedAt"], "Invitation.revokedAt");
|
|
5424
5521
|
}
|
|
5425
5522
|
return raw;
|
|
5426
5523
|
}
|
|
@@ -5625,6 +5722,7 @@ var DeadairSdk = class {
|
|
|
5625
5722
|
history;
|
|
5626
5723
|
languages;
|
|
5627
5724
|
messaging;
|
|
5725
|
+
metrics;
|
|
5628
5726
|
narrations;
|
|
5629
5727
|
news;
|
|
5630
5728
|
nowplaying;
|
|
@@ -5658,6 +5756,7 @@ var DeadairSdk = class {
|
|
|
5658
5756
|
this.history = new HistoryClient(sdkFetch);
|
|
5659
5757
|
this.languages = new LanguagesClient(sdkFetch);
|
|
5660
5758
|
this.messaging = new MessagingClient(sdkFetch);
|
|
5759
|
+
this.metrics = new MetricsClient(sdkFetch);
|
|
5661
5760
|
this.narrations = new NarrationsClient(sdkFetch);
|
|
5662
5761
|
this.news = new NewsClient(sdkFetch);
|
|
5663
5762
|
this.nowplaying = new NowplayingClient(sdkFetch);
|
|
@@ -5696,6 +5795,7 @@ export {
|
|
|
5696
5795
|
HistoryClient,
|
|
5697
5796
|
LanguagesClient,
|
|
5698
5797
|
MessagingClient,
|
|
5798
|
+
MetricsClient,
|
|
5699
5799
|
NarrationsClient,
|
|
5700
5800
|
NewsClient,
|
|
5701
5801
|
NowplayingClient,
|
|
@@ -5787,6 +5887,12 @@ export {
|
|
|
5787
5887
|
reviveMessagingLink,
|
|
5788
5888
|
reviveMessagingLinkCode,
|
|
5789
5889
|
reviveMessagingLinkList,
|
|
5890
|
+
reviveMetricName,
|
|
5891
|
+
reviveMetricNames,
|
|
5892
|
+
reviveMetricPoint,
|
|
5893
|
+
reviveMetricSeries,
|
|
5894
|
+
reviveMetricSeriesPage,
|
|
5895
|
+
reviveMetricSeriesQuery,
|
|
5790
5896
|
reviveMfaEnrollFidoStartResponse,
|
|
5791
5897
|
reviveMfaEnrollPhoneStartResponse,
|
|
5792
5898
|
reviveMfaRequiredResponse,
|