Sale reference
7 pages, 44 routes, 44 connections and 0 CLI commands, generated from the declarations of Sale without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 15
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Client book handoff | sale.book.transfer | detail | /view/sale/book/transfer/{transfer_id} | 0 | sale.leads | Book transfer | hidden |
| Offer a client book | sale.book.transfer.create | editor | /view/sale/book/transfer/create | 0 | sale.leads | Book transfer | hidden |
| Lead | sale.lead | detail | /view/sale/lead/{lead_id} | 0 | sale.leads | Lead | hidden |
| New lead | sale.lead.editor | editor | /view/sale/lead/create | 0 | sale.leads | Lead | hidden |
| Edit lead | sale.lead.editor | editor | /view/sale/lead/{lead_id}/edit | 0 | sale.leads | Lead | hidden |
| Organization | sale.organization | detail | /view/sale/org/{entity_id} | 0 | sale.leads | Organization | hidden |
| Book report | sale.report | detail | /view/sale/report | 0 | sale.leads | hidden | |
| Email sending | sale.sending | editor | /view/sale/sending | 0 | sale.prospects | hidden | |
| Dashboard | sale.workbench | dashboard | /view/sale | 0 | in navigation | ||
| List | sale.leads | list | /view/sale/list | 20 | Lead | in navigation | |
| Front desk | sale.desk | custom | /view/sale/desk | 24 | in navigation | ||
| Outreach workbench | sale.outreach | custom | /view/sale/outreach | 25 | in navigation | ||
| Booking inbox | sale.bookings | custom | /view/sale/bookings | 26 | in navigation | ||
| Pipeline | sale.pipeline | custom | /view/sale/board | 60 | Lead | in navigation | |
| Find customers | sale.prospects | custom | /view/sale/prospects | 61 | in navigation |
Connections · 44
Sale.AppointmentProject
Record one Schedule appointment change as the practice's appointment projection, keyed by practice and booking id and linked to the customer's lead in that practice's book. Only Schedule's in-process appointment feed may call it; a revision no newer than the one held changes nothing, and no lead stage, follow-up or outreach is touched.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required | |||
| booking_id | required | |||
| revision | required | |||
| state | required |
- Output keysale.result
- Classificationreal
Sale.Appointments
Read one lead's appointments in its owner's book: the next live visit, the upcoming ones, and earlier or changed visits with their history.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required |
- Output keysale.result
- Classificationroute_handler
- GET /sale/appointmentsHTTP route
Sale.Board
Return sale leads grouped into pipeline columns.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | optional | |||
| source | optional | |||
| avatar | optional | |||
| query | optional | |||
| limit | optional | |||
| column_limit | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/boardHTTP route
Sale.BookTransfer
Offer, accept, withdraw or read a transfer of a client's leads (a reach book's growth:{client} leads, a site's site:{site}: form leads) from the caller's book to another account's. Only the receiver accepts; accepting moves each lead with its list memberships and observations and re-drafts its unsent drafts for the receiver to review. A lead the receiver already holds is never merged.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| step | required | |||
| to_owner | optional | |||
| client | optional | |||
| site_id | optional | |||
| transfer_id | optional |
- Output keysale.result
- Classificationreal
- POST /sale/book/transferHTTP route
Sale.BookingInbox
Read the caller's booking inbox: Jane notices and Schedule visits that reached no lead in their book, with the reason and the leads that could be theirs, change notices that found no booking, and the cancellations and moves of the last 30 days with each lead's stage and drafts since.
- Output keysale.result
- Classificationroute_handler
- GET /sale/bookings/inboxHTTP route
Sale.BookingReconcile
Act on one row of the caller's booking inbox: join a booking to a lead in their book (resolve), file a Jane notice's patient as a lead and join it (add_lead), match again against the book as it stands (retry, every row when no id is named), or set a Jane or change notice aside (dismiss). Joining never sets a follow-up or drafts outreach, and a retry that finds nothing writes nothing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| op | required | |||
| source | optional | |||
| id | optional | |||
| lead_id | optional |
- Output keysale.result
- Classificationreal
- POST /sale/bookings/reconcileHTTP route
Sale.CallLead
Place one scripted voice call to a lead through Messaging.Send, filling a library call script's variables from the lead. Messaging enforces suppression and, for sales scripts, recorded consent. The attempt is logged on the lead's timeline with its call id.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required | |||
| script_id | required | |||
| request_id | required | |||
| from | optional | |||
| company_name | optional | |||
| company_city | optional | |||
| bindings | optional |
- Output keysale.result
- Classificationreal
- POST /sale/lead/callHTTP route
Sale.EnrichLead
Enrich a persisted sale lead and append a SaleLog vertex.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required | |||
| force | optional |
- Output keysale.result
- Classificationreal
- POST /sale/lead/enrichHTTP route
Sale.FrontDesk
Read the caller's practice day (date, YYYY-MM-DD, on the practice's clock; today when omitted): the visits that start that day with their state, the requests waiting on a decision, the customers whose reply or inquiry is unanswered, and the cancellations and moves of the week ending that day. No email, phone, intake answer, note or manage token is returned.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| date | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/deskHTTP route
Sale.GraphProspects
List business nodes already ingested into the knowledge graph.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| website_host | optional | |||
| query | optional | |||
| source | optional | |||
| limit | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/graph/prospectsHTTP route
Sale.GrowthProgress
Read owner-scoped source-linked Growth progress and current acquisition exclusions.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| client | required | |||
| target_ids | required |
- Output keysale.result
- Classificationroute_handler
- POST /sale/growth/progressHTTP route
Sale.GrowthProgressSave
Record owner-reported relationship progress on an existing imported lead and its timeline, atomically and with revision-bound replay protection; never send or qualify a deal.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| client | required | |||
| run | required | |||
| target_id | required | |||
| expected_revision | required | |||
| verdict | required | |||
| reason | optional | |||
| channel | optional |
- Output keysale.result
- Classificationreal
- POST /sale/growth/progress/saveHTTP route
Sale.ImportGraphLead
Import a knowledge graph business node into the sale pipeline.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| node_key | required |
- Output keysale.result
- Classificationconflict
- POST /sale/graph/importHTTP route
Sale.ImportProspects
Preview or import bounded caller-owned prospect batches with identity conflict receipts.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| source | required | |||
| records | required | |||
| cohort | optional | |||
| list_id | optional | |||
| list_role | optional | |||
| preview | optional | |||
| owner_id | optional | |||
| for_client | optional |
- Output keysale.result
- Classificationreal
- POST /sale/prospects/importHTTP route
Sale.ImportProviderLead
Import a provider business record into the sale pipeline.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provider_id | required | |||
| record | required |
- Output keysale.result
- Classificationreal
- POST /sale/provider/importHTTP route
Sale.LeadBrief
Write a call-prep brief for one lead through Intelligence.Complete (prompt sale.lead_brief.v1) from the facts recorded on it, never its email addresses or phone numbers, and keep it on the lead with the SHA-256 of its evidence, prompt and text. The same evidence answers with the stored brief unless `refresh` is set; a failed or empty answer writes nothing. The lead's owner only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required | |||
| refresh | optional |
- Output keysale.result
- Classificationreal
- POST /sale/lead/briefHTTP route
Sale.LeadList
List sale leads from the HyperDB graph with simple filters.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| status | optional | |||
| owner_id | optional | |||
| source | optional | |||
| referred_by | optional | |||
| tag | optional | |||
| avatar | optional | |||
| focus | optional | |||
| sort | optional | |||
| query | optional | |||
| limit | optional | |||
| collection | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/leadsHTTP route
Sale.LeadOptOut
The owner records that one of their leads asked to stop (a reply saying unsubscribe): Messaging suppresses the address on the owner's sales list and every lead of the owner's at that address is marked opted out. Sends nothing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required |
- Output keysale.result
- Classificationreal
- POST /sale/leads/opt-outHTTP route
Sale.LeadTimeline
Return one sale lead and its activity log timeline.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required | |||
| limit | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/lead/timelineHTTP route
Sale.LeadUpsert
Create or update a sale lead as a HyperDB SaleLead vertex.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | required | |||
| lead_id | optional | |||
| optional | ||||
| phone | optional | |||
| status | optional | |||
| source | optional | |||
| referred_by | optional | |||
| owner_id | optional |
- Output keysale.result
- Classificationreal
- POST /sale/leadHTTP route
Sale.LinkOrganization
Link one of the caller's leads to a Knowledge organization. The organization is found by identifier first (one the owner gives, then the lead's LEI, SEC CIK, UEI, EIN, organization NPI and website domain), through Knowledge.Entity reads that carry nothing about the lead; a link on a name alone needs entity_id and confirm_name. Writes nothing to Knowledge. The lead's owner only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required | |||
| entity_id | optional | |||
| scheme | optional | |||
| value | optional | |||
| confirm_name | optional |
- Output keysale.result
- Classificationreal
- POST /sale/lead/organizationHTTP route
Sale.LogActivity
Log a note, call, email, meeting or task on a lead and set or clear its follow-up.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required | |||
| kind | optional | |||
| body | optional | |||
| outcome | optional | |||
| follow_up_in_days | optional |
- Output keysale.result
- Classificationreal
- POST /sale/lead/activityHTTP route
Sale.MoveLead
Move a sale lead between pipeline stages and append a timeline event.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required | |||
| stage | required | |||
| note | optional |
- Output keysale.result
- Classificationreal
- POST /sale/lead/stageHTTP route
Sale.OutreachActionCreate
Save caller-owned outreach content with immutable recipient/list evidence and idempotent request identity.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required | |||
| lead_id | required | |||
| list_id | required | |||
| channel | required | |||
| subject | optional | |||
| body | required | |||
| request_id | required | |||
| for_client | optional |
- Output keysale.result
- Classificationreal
- POST /sale/outreach-actions/createHTTP route
Sale.OutreachActionPreview
Draw one of the caller's email drafts as the letter Sale.OutreachActionSend would mail, from their sender identity; nothing is sent or recorded.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required | |||
| action_id | required |
- Output keysale.result
- Classificationroute_handler
- GET /sale/outreach-actions/previewHTTP route
Sale.OutreachActionRecord
Record one approved draft from the caller's book as delivered by hand (a card or letter mailed, a call placed with its outcome, a text or social message sent, or an email sent from the owner's own mailbox when its words already carry the sender's postal address and an opt-out line) under the same checks as a send, optionally dated earlier by delivered_at, touch the lead and set its next follow-up; any other email draft is refused and a replay writes nothing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required | |||
| action_id | required | |||
| expected_revision | required | |||
| outcome | optional | |||
| note | optional | |||
| follow_up_in_days | optional | |||
| delivered_at | optional |
- Output keysale.result
- Classificationreal
- POST /sale/outreach-actions/recordHTTP route
Sale.OutreachActionReview
Approve or reject saved content with revision and current-evidence checks; grants no contact permission or delivery authority.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required | |||
| action_id | required | |||
| expected_revision | required | |||
| decision | required | |||
| for_client | optional |
- Output keysale.result
- Classificationreal
- POST /sale/outreach-actions/reviewHTTP route
Sale.OutreachActionSend
Send one approved email draft from the caller's book through Email.SendBatch under the caller's own email provider account and sender profile (CAN-SPAM footer, unsubscribe link, suppression first), and record the delivery on the draft and the lead; a replay sends nothing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required | |||
| action_id | required | |||
| expected_revision | required |
- Output keysale.result
- Classificationreal
- POST /sale/outreach-actions/sendHTTP route
Sale.OutreachActions
Read the caller's persisted outreach content drafts and review history; nothing is sent.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | optional | |||
| lead_id | optional | |||
| list_id | optional | |||
| limit | optional | |||
| after | optional | |||
| for_client | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/outreach-actionsHTTP route
Sale.OutreachFollowUps
Queue the next email of each of the caller's sent outreach threads that has gone after_days without a reply, as an unsent draft that still needs review and an explicit send; a thread stops at max_touches, at a reply, or once the lead moves past contacted. dry_run reports without writing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required | |||
| after_days | optional | |||
| max_touches | optional | |||
| body | optional | |||
| bodies | optional | |||
| then | optional | |||
| then_body | optional | |||
| limit | optional | |||
| dry_run | optional |
- Output keysale.result
- Classificationreal
- POST /sale/outreach-actions/follow-upsHTTP route
Sale.OutreachWorkbench
Read the caller's outreach actions as one queue across channels: drafts to review, approved actions to send or place, those blocked now (opted out, won, listed, answered) and those done, each with the reason it is due, how it would go out and its result; plus the activities the owner recorded by hand. Nothing is sent or changed.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| channel | optional | |||
| queue | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/outreach/workbenchHTTP route
Sale.PartnershipSave
Record a community-specific partnership revision on an existing lead's timeline.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required | |||
| org_id | required | |||
| expected_revision | required | |||
| stage | required | |||
| next_action | required | |||
| action_owner | required | |||
| category | optional | |||
| partner_value | optional | |||
| community_value | optional | |||
| commitment | optional | |||
| notes | optional |
- Output keysale.result
- Classificationreal
- POST /sale/lead/partnershipHTTP route
Sale.ProspectMemberships
Read caller-owned prospect/customer/exclusion list memberships with stable pagination.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_ids | optional | |||
| list_id | optional | |||
| list_role | optional | |||
| limit | optional | |||
| after | optional | |||
| include_leads | optional | |||
| expected_snapshot | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/prospects/membershipsHTTP route
Sale.ProviderSearch
Search provider-backed business records for sale prospecting.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| provider_id | required | |||
| query | optional | |||
| location | optional | |||
| latitude | optional | |||
| longitude | optional | |||
| radius | optional | |||
| category | optional | |||
| limit | optional |
- Output keysale.result
- Classificationroute_handler
- POST /sale/provider/searchHTTP route
- POST /sale/provider/syncHTTP route
Sale.ReferralReferenceIssue
Issue the referral code for one partner lead in the caller's book, optionally for one outreach action made for that partner. One partner and action keep one code; asking again answers the code already issued. An enquiry or booking carrying the code is credited to that partner in this book only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| partner_lead_id | required | |||
| action_id | optional | |||
| label | optional |
- Output keysale.result
- Classificationreal
- POST /sale/referrals/referenceHTTP route
Sale.ReferralReport
Count, per referral partner in the caller's book, the enquiries, booking requests, confirmed bookings and attended visits credited to it on an owner-confirmed referral or a referral code. Counts only; naming one partner answers that partner's counts alone.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| partner_lead_id | optional |
- Output keysale.result
- Classificationroute_handler
- GET /sale/referrals/reportHTTP route
Sale.SenderProfile
Read or set the caller's sender identity for outreach email: name, business, from address and the postal address CAN-SPAM requires.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| action | optional | |||
| name | optional | |||
| business | optional | |||
| optional | ||||
| postal_address | optional | |||
| reply_to | optional |
- Output keysale.result
- Classificationreal
- POST /sale/senderHTTP route
Sale.SendingSetup
Set up the caller's own outreach sending: save a provider key to their own Messaging.SenderAccount, check it with the provider (reading only) against their sender address, forget it, or read what is still missing; never answers a key.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| op | optional | |||
| provider | optional | |||
| api_key | optional | |||
| secret_key | optional | |||
| domain | optional | |||
| region | optional | |||
| message_stream | optional | |||
| track | optional |
- Output keysale.result
- Classificationreal
- POST /sale/sendingHTTP route
Sale.SequenceList
List caller-owned follow-up sequences.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required |
- Output keysale.result
- Classificationroute_handler
- GET /sale/sequences/listHTTP route
Sale.SequenceSave
Save or update a caller-owned outreach follow-up sequence recipe.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| owner_id | required | |||
| name | optional | |||
| id | optional | |||
| enabled | optional | |||
| after_days | optional | |||
| max_touches | optional | |||
| body | optional | |||
| bodies | optional | |||
| then | optional | |||
| then_body | optional |
- Output keysale.result
- Classificationreal
- POST /sale/sequences/saveHTTP route
Sale.SequenceTick
Run enabled follow-up sequences to draft due follow-ups for review (never sends automatically).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| limit | optional |
- Output keysale.result
- Classificationreal
- POST /sale/sequences/tickHTTP route
Sale.Status
Sale pipeline health and lead counts from the HyperDB graph.
- Output keysale.result
- Classificationroute_handler
- GET /sale/statusHTTP route
Sale.UnlinkOrganization
Clear the organization link on one of the caller's leads and note it on the timeline. The lead's owner only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lead_id | required |
- Output keysale.result
- Classificationreal
- POST /sale/lead/organization/unlinkHTTP route
Sale.ViewPatch
Live SSR patch for the Sale board summary strip.
- Output keysale.result
- Classificationroute_handler
- GET /sale/board/patchHTTP route
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerSale
- SQL projectionnone · DDL declarations: 0
- SaleAppointment
- SaleLead
- SaleLog
- SaleObservedBooking
- SaleObservedBookingChange
- SaleOutreachAction
- SaleOutreachSequence
- SaleProspectMembership
- SaleProspectObservation
- SaleReferralReference
- SaleSenderProfile
- SaleAppointment
- SaleBookTransfer
- SaleLead
- SaleLog
- SaleObservedBooking
- SaleObservedBookingChange
- SaleOutreachAction
- SaleOutreachSequence
- SaleProspectMembership
- SaleProspectObservation
- SaleReferralReference
- SaleSenderCheck
- SaleSenderProfile
- None declared.
- None declared.
- None declared.
- No model warnings were reported.
Capabilities and dependencies
- Protocol
- View
Structure review · 4
- Book transfer · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Lead · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Organization · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Sale · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)