Skip to content

SCAL-295232 Add Liveboard schedule webhook example - #74

Merged
prathum-pandey-ts merged 2 commits into
mainfrom
SCAL-295232-liveboard-schedule-webhook
Oct 21, 2026
Merged

prathum-pandey-ts merged 2 commits into
mainfrom
SCAL-295232-liveboard-schedule-webhook

Conversation

@prathum-pandey-ts

Copy link
Copy Markdown
Collaborator

Summary

Adds rest-api/liveboard-schedule-webhook, a receiver for ThoughtSpot Liveboard schedule webhooks that uploads the exported files to Google Drive.
It follows the existing KPI monitor webhook example (starters/kpi-monitor/slack-webhook-typescript).
This example walks the whole path, from setup to a file in Drive.

Adds rest-api/liveboard-schedule-webhook: a receiver for ThoughtSpot
LIVEBOARD_SCHEDULE webhooks that uploads the exported files to Google
Drive. Follows the KPI monitor webhook example in starters/kpi-monitor.

- src/main.ts: Express receiver for direct (multipart) and S3 storage
  deliveries. Optional bearer token check, ack within 5 s, dedupe on
  msgUniqueId for 24 h, per-file retries with backoff for S3 reads and
  Drive uploads, graceful shutdown, and delivery-supplied names kept out
  of file paths
- src/setup.ts: storage-config, create-webhook, route-schedules and
  validate via @thoughtspot/rest-api-sdk
- src/demo.ts: npm run dev (StackBlitz demo) and npm test (smoke run)
  using sample deliveries from the payload docs
- package-lock.json resolves to the public npm registry
@snyk-io

snyk-io Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

⛔ Snyk checks have failed. 3 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (3)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
⛔ Code Security 0 3 0 0 3 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Comment thread rest-api/liveboard-schedule-webhook/src/main.ts
Comment thread rest-api/liveboard-schedule-webhook/src/main.ts
Comment thread rest-api/liveboard-schedule-webhook/src/main.ts
Show how to point the webhook at a temporary webhook.site URL to see a
raw delivery before running the receiver, with the free tier's limits:
public, 7 days or 100 requests, 10 MB per request, and only the last
attachment of a direct-mode delivery shown.
@prathum-pandey-ts
prathum-pandey-ts merged commit 746949a into main Oct 21, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants