Skip to content

SCAL-295232 Add Liveboard schedule webhook example - #74

Open
prathum-pandey-ts wants to merge 1 commit into
mainfrom
SCAL-295232-liveboard-schedule-webhook
Open

prathum-pandey-ts wants to merge 1 commit 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

This branch has not been deployed

No deployments
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.

1 participant