| Name | What it does | Code |
|---|---|---|
| Back office | Leads, waitlist, customer totals, operators and website statistics | convex/backoffice.ts, convex/leads.ts, convex/waitlist.ts, convex/analytics.ts |
| Demo videos | Video scenes, presenter clips, the recording queue and publishing | convex/demoVideos.ts, convex/avatars.ts, convex/avatarsNode.ts, convex/lib/heygen.ts, convex/lib/demoTiming.ts, convex/lib/googleSlides.ts, convex/lib/voiceMarkup.ts |
| HTTP endpoints | Entry points for the website, both runners and the stub APIs | convex/http.ts |
| Schedules | Starts the integration sync every 15 minutes and the waitlist sync every 5 | convex/crons.ts |
10 relationships and where each is in the code
10 relationships and where each is in the code
| From | To | What for | How | Found in |
|---|---|---|---|---|
| Back office | Back office | Leads, waitlist, customers and statistics | WebSocket | App.tsx:84, App.tsx:85 and 17 more |
| Back office | Demo videos | Edits scenes, queues work and publishes | WebSocket | academy.tsx:250, avatars.tsx:28 and 50 more |
| Website | HTTP endpoints | Sends enquiries to /leads | HTTPS | _worker.js:24 |
| Back office | Clerk | Reads organisations; reads, invites and rejects the waitlist | HTTPS | backoffice.ts:253, waitlist.ts:18 |
| Demo videos | Clerk | Gets a test sign-in token for a recording | HTTPS | demoVideos.ts:444 |
| Back office | Plausible | Reads website statistics | HTTPS | analytics.ts:20 |
| Schedules | Back office | Copies the waitlist every 5 minutes | Scheduled | crons.ts:8, crons.ts:9 |
| HTTP endpoints | Demo videos | Hands out jobs and saves results | http.ts:4, http.ts:148 and 3 more | |
| HTTP endpoints | Back office | Saves enquiries | http.ts:50 | |
| Back office | Demo videos | Reuses its operator check | analytics.ts:13, waitlist.ts:82 |
Functions
Back office: 22 functions
Back office: 22 functions
| Function | Kind | Who can call it | Called from |
|---|---|---|---|
analytics.plausible | action | Operator | Leads and customers |
backoffice.me | query | No check found | App shell |
backoffice.ensureMe | mutation | No check found | App shell |
backoffice.countPage | internalQuery | Internal only | Back office |
backoffice.saveTotals | internalMutation | Internal only | Back office |
backoffice.countOrganisations | internalAction | Internal only | Schedules |
backoffice.overview | query | Operator | App shell, Leads and customers |
backoffice.organisations | query | Operator | Leads and customers |
backoffice.leads | query | Operator | Leads and customers |
backoffice.setLeadStatus | mutation | Operator admin | Leads and customers |
backoffice.operators | query | Operator | Leads and customers |
backoffice.inviteOperator | mutation | Operator admin | Leads and customers |
backoffice.setOperator | mutation | Operator admin | Leads and customers |
backoffice.checkOperator | internalQuery | Internal only | Back office |
backoffice.storagePage | internalQuery | Internal only | Back office |
backoffice.organisationStorage | action | Operator | Leads and customers |
backoffice.clerkOrganisations | action | Operator | Academy, Leads and customers, Settings and sandboxes |
leads.submit | internalMutation | Internal only | HTTP endpoints |
waitlist.entries | query | Operator | Leads and customers |
waitlist.save | internalMutation | Internal only | Back office |
waitlist.sync | internalAction | Internal only | Schedules |
waitlist.refresh | action | Operator | Leads and customers |

