@deadair/sdk 0.45.0 → 0.46.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/index.js
CHANGED
|
@@ -3545,6 +3545,12 @@ var __dt15 = /* @__PURE__ */ __name((v, path) => {
|
|
|
3545
3545
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3546
3546
|
return d;
|
|
3547
3547
|
}, "__dt");
|
|
3548
|
+
function reviveScriptAttempt(raw) {
|
|
3549
|
+
const __o0 = raw;
|
|
3550
|
+
__o0["at"] = __dt15(__o0["at"], "ScriptAttempt.at");
|
|
3551
|
+
return raw;
|
|
3552
|
+
}
|
|
3553
|
+
__name(reviveScriptAttempt, "reviveScriptAttempt");
|
|
3548
3554
|
function revivePad(raw) {
|
|
3549
3555
|
const __o0 = raw;
|
|
3550
3556
|
if (__o0["lastUsedAt"] != null) {
|
|
@@ -3553,34 +3559,28 @@ function revivePad(raw) {
|
|
|
3553
3559
|
return raw;
|
|
3554
3560
|
}
|
|
3555
3561
|
__name(revivePad, "revivePad");
|
|
3556
|
-
function
|
|
3557
|
-
const __o0 = raw;
|
|
3558
|
-
__o0["at"] = __dt15(__o0["at"], "ScriptAttempt.at");
|
|
3559
|
-
return raw;
|
|
3560
|
-
}
|
|
3561
|
-
__name(reviveScriptAttempt, "reviveScriptAttempt");
|
|
3562
|
-
function revivePadList(raw) {
|
|
3562
|
+
function reviveScriptHistoryPage(raw) {
|
|
3563
3563
|
const __o0 = raw;
|
|
3564
3564
|
{
|
|
3565
|
-
const __a1 = __o0["
|
|
3565
|
+
const __a1 = __o0["attempts"];
|
|
3566
3566
|
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
3567
|
-
|
|
3567
|
+
reviveScriptAttempt(__a1[__i2]);
|
|
3568
3568
|
}
|
|
3569
3569
|
}
|
|
3570
3570
|
return raw;
|
|
3571
3571
|
}
|
|
3572
|
-
__name(
|
|
3573
|
-
function
|
|
3572
|
+
__name(reviveScriptHistoryPage, "reviveScriptHistoryPage");
|
|
3573
|
+
function revivePadList(raw) {
|
|
3574
3574
|
const __o0 = raw;
|
|
3575
3575
|
{
|
|
3576
|
-
const __a1 = __o0["
|
|
3576
|
+
const __a1 = __o0["pads"];
|
|
3577
3577
|
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
3578
|
-
|
|
3578
|
+
revivePad(__a1[__i2]);
|
|
3579
3579
|
}
|
|
3580
3580
|
}
|
|
3581
3581
|
return raw;
|
|
3582
3582
|
}
|
|
3583
|
-
__name(
|
|
3583
|
+
__name(revivePadList, "revivePadList");
|
|
3584
3584
|
|
|
3585
3585
|
// src/render/render.client.ts
|
|
3586
3586
|
var RenderClient = class {
|
|
@@ -3955,6 +3955,20 @@ var RenderClient = class {
|
|
|
3955
3955
|
});
|
|
3956
3956
|
return revivePadList(await parseJson(result));
|
|
3957
3957
|
}
|
|
3958
|
+
/**
|
|
3959
|
+
* @name Set pad use
|
|
3960
|
+
* @description Says where in a break a sound may land and when to reach for it. Answers the whole rack
|
|
3961
|
+
*/
|
|
3962
|
+
async setPadUse(id, body) {
|
|
3963
|
+
const result = await this.fetch(`/pads/${encodeURIComponent(id)}/use`, {
|
|
3964
|
+
method: "PUT",
|
|
3965
|
+
headers: {
|
|
3966
|
+
"Content-Type": "application/json"
|
|
3967
|
+
},
|
|
3968
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
3969
|
+
});
|
|
3970
|
+
return revivePadList(await parseJson(result));
|
|
3971
|
+
}
|
|
3958
3972
|
/**
|
|
3959
3973
|
* @name Get pad audio
|
|
3960
3974
|
* @description The sound itself, so an operator can hear what they dropped in
|