@deadair/sdk 0.61.0 → 0.62.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 +10 -0
- package/dist/index.js.map +1 -1
- package/dist/requests/requests.client.d.ts +5 -0
- package/dist/requests/requests.client.d.ts.map +1 -1
- package/dist/requests/types/requests.types.d.ts +4 -0
- package/dist/requests/types/requests.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4458,6 +4458,16 @@ var RequestsClient = class {
|
|
|
4458
4458
|
});
|
|
4459
4459
|
return reviveListenerRequestList(await parseJson(result));
|
|
4460
4460
|
}
|
|
4461
|
+
/**
|
|
4462
|
+
* @name Insist on request
|
|
4463
|
+
* @description Ask again for a record the station turned down for its own taste, overruling it. Only your own request, only one marked `overrulable`, and only once. Answers with the NEW request this makes, decided like any other: it can still wait for an operator, or be refused for who is asking or how full the line is
|
|
4464
|
+
*/
|
|
4465
|
+
async insistOnRequest(id) {
|
|
4466
|
+
const result = await this.fetch(`/requests/${encodeURIComponent(id)}/insist`, {
|
|
4467
|
+
method: "POST"
|
|
4468
|
+
});
|
|
4469
|
+
return reviveListenerRequest(await parseJson(result));
|
|
4470
|
+
}
|
|
4461
4471
|
/**
|
|
4462
4472
|
* @name Grant request
|
|
4463
4473
|
* @description Let a waiting request through. It goes into the running order once its audio is here
|