glitchgrab 1.62.2 → 1.62.3
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/README.md +13 -0
- package/dist/server.d.mts +14 -0
- package/dist/server.d.ts +14 -0
- package/dist/server.js +3 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +3 -0
- package/dist/server.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -382,6 +382,19 @@ A caller your key added is rung only on phones they confirmed with press 1 — n
|
|
|
382
382
|
|
|
383
383
|
`ringPhone` omitted = their Default. While a call is still `DIALING`, `lastCall.ringingPhone` is the phone ringing now; `ringingIndex` above 0 means a backup.
|
|
384
384
|
|
|
385
|
+
### Call another number, and see who missed it
|
|
386
|
+
|
|
387
|
+
`toPhone` rings a different number for one call — the follow-up's saved `phone` stays as it is, and it isn't checked against other follow-ups. (`phone` still rewrites the saved number.)
|
|
388
|
+
|
|
389
|
+
```ts
|
|
390
|
+
await dialFollowUp(owner.id, { operator: { email: "admin@you.in" }, toPhone: "98200 00000" });
|
|
391
|
+
|
|
392
|
+
const detail = await getFollowUp(owner.id);
|
|
393
|
+
// detail.calls[i].to → "+919820000000", the number rung
|
|
394
|
+
// detail.calls[i].missedBy → "operator" (none of your phones picked up) | "customer" | null
|
|
395
|
+
// detail.calls[i].operatorName → who placed it
|
|
396
|
+
```
|
|
397
|
+
|
|
385
398
|
## What keyboard shortcuts are available?
|
|
386
399
|
|
|
387
400
|
Once `GlitchgrabProvider` is mounted, these shortcuts work globally:
|
package/dist/server.d.mts
CHANGED
|
@@ -685,6 +685,16 @@ interface FollowUpCall {
|
|
|
685
685
|
ringingIndex: number | null;
|
|
686
686
|
/** That phone. While `status` is "DIALING" it is the one ringing right now. */
|
|
687
687
|
ringingPhone: string | null;
|
|
688
|
+
/** E.164 number the call rang — `toPhone` when the dial sent one, else the follow-up's phone (#666). */
|
|
689
|
+
to: string | null;
|
|
690
|
+
/**
|
|
691
|
+
* Who didn't pick up a NO_ANSWER outbound call (#666): "operator" = none of
|
|
692
|
+
* the operator's phones (backups included), "customer" = the operator
|
|
693
|
+
* answered and the customer didn't. Null otherwise, and on older calls.
|
|
694
|
+
*/
|
|
695
|
+
missedBy: "operator" | "customer" | null;
|
|
696
|
+
/** Who placed it. Null on inbound calls. */
|
|
697
|
+
operatorName: string | null;
|
|
688
698
|
/** Shared with you — calls dialled from a follow-up are; an inbound call is once the owner shares it. */
|
|
689
699
|
shared: boolean;
|
|
690
700
|
overview: string | null;
|
|
@@ -768,10 +778,14 @@ declare function setFollowUpBooking(externalId: string, booking: {
|
|
|
768
778
|
* them with {@link getOperatorRingNumbers}); omitted = their Default. If that
|
|
769
779
|
* phone isn't picked up, their backups ring in order (`ringNumbers`). A
|
|
770
780
|
* refusal carries `code` — see {@link RingErrorCode}.
|
|
781
|
+
*
|
|
782
|
+
* `toPhone` dials another number for this one call and leaves the follow-up's
|
|
783
|
+
* saved `phone` alone (#666); `phone` rewrites the saved number.
|
|
771
784
|
*/
|
|
772
785
|
declare function dialFollowUp(externalId: string, call: {
|
|
773
786
|
operator: FollowUpOperator;
|
|
774
787
|
phone?: string;
|
|
788
|
+
toPhone?: string;
|
|
775
789
|
name?: string;
|
|
776
790
|
lineId?: string;
|
|
777
791
|
ringPhone?: string;
|
package/dist/server.d.ts
CHANGED
|
@@ -685,6 +685,16 @@ interface FollowUpCall {
|
|
|
685
685
|
ringingIndex: number | null;
|
|
686
686
|
/** That phone. While `status` is "DIALING" it is the one ringing right now. */
|
|
687
687
|
ringingPhone: string | null;
|
|
688
|
+
/** E.164 number the call rang — `toPhone` when the dial sent one, else the follow-up's phone (#666). */
|
|
689
|
+
to: string | null;
|
|
690
|
+
/**
|
|
691
|
+
* Who didn't pick up a NO_ANSWER outbound call (#666): "operator" = none of
|
|
692
|
+
* the operator's phones (backups included), "customer" = the operator
|
|
693
|
+
* answered and the customer didn't. Null otherwise, and on older calls.
|
|
694
|
+
*/
|
|
695
|
+
missedBy: "operator" | "customer" | null;
|
|
696
|
+
/** Who placed it. Null on inbound calls. */
|
|
697
|
+
operatorName: string | null;
|
|
688
698
|
/** Shared with you — calls dialled from a follow-up are; an inbound call is once the owner shares it. */
|
|
689
699
|
shared: boolean;
|
|
690
700
|
overview: string | null;
|
|
@@ -768,10 +778,14 @@ declare function setFollowUpBooking(externalId: string, booking: {
|
|
|
768
778
|
* them with {@link getOperatorRingNumbers}); omitted = their Default. If that
|
|
769
779
|
* phone isn't picked up, their backups ring in order (`ringNumbers`). A
|
|
770
780
|
* refusal carries `code` — see {@link RingErrorCode}.
|
|
781
|
+
*
|
|
782
|
+
* `toPhone` dials another number for this one call and leaves the follow-up's
|
|
783
|
+
* saved `phone` alone (#666); `phone` rewrites the saved number.
|
|
771
784
|
*/
|
|
772
785
|
declare function dialFollowUp(externalId: string, call: {
|
|
773
786
|
operator: FollowUpOperator;
|
|
774
787
|
phone?: string;
|
|
788
|
+
toPhone?: string;
|
|
775
789
|
name?: string;
|
|
776
790
|
lineId?: string;
|
|
777
791
|
ringPhone?: string;
|
package/dist/server.js
CHANGED
|
@@ -792,6 +792,9 @@ function readFollowUpDetail(value) {
|
|
|
792
792
|
durationSec: numberOrNull(c.durationSec),
|
|
793
793
|
ringingIndex: numberOrNull(c.ringingIndex),
|
|
794
794
|
ringingPhone: stringOrNull(c.ringingPhone),
|
|
795
|
+
to: stringOrNull(c.to),
|
|
796
|
+
missedBy: c.missedBy === "operator" || c.missedBy === "customer" ? c.missedBy : null,
|
|
797
|
+
operatorName: stringOrNull(c.operatorName),
|
|
795
798
|
shared: c.shared === true,
|
|
796
799
|
overview: stringOrNull(c.overview),
|
|
797
800
|
recordingUrl: stringOrNull(c.recordingUrl)
|