Skip to content
1 viewer
View

Sale reference

7 pages, 44 routes, 44 connections and 0 CLI commands, generated from the declarations of Sale without reading storage or running anything.

AboutCode

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

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Client book handoffsale.book.transferdetail/view/sale/book/transfer/{transfer_id}0sale.leadsBook transferhidden
Offer a client booksale.book.transfer.createeditor/view/sale/book/transfer/create0sale.leadsBook transferhidden
Leadsale.leaddetail/view/sale/lead/{lead_id}0sale.leadsLeadhidden
New leadsale.lead.editoreditor/view/sale/lead/create0sale.leadsLeadhidden
Edit leadsale.lead.editoreditor/view/sale/lead/{lead_id}/edit0sale.leadsLeadhidden
Organizationsale.organizationdetail/view/sale/org/{entity_id}0sale.leadsOrganizationhidden
Book reportsale.reportdetail/view/sale/report0sale.leadshidden
Email sendingsale.sendingeditor/view/sale/sending0sale.prospectshidden
Dashboardsale.workbenchdashboard/view/sale0in navigation
Listsale.leadslist/view/sale/list20Leadin navigation
Front desksale.deskcustom/view/sale/desk24in navigation
Outreach workbenchsale.outreachcustom/view/sale/outreach25in navigation
Booking inboxsale.bookingscustom/view/sale/bookings26in navigation
Pipelinesale.pipelinecustom/view/sale/board60Leadin navigation
Find customerssale.prospectscustom/view/sale/prospects61in navigation
15 rows

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.

Sale.AppointmentProject input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
booking_idrequired
revisionrequired
staterequired
4 rows
Calls and output
  • 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.

Sale.Appointments input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
1 row
Calls and output
  • Output keysale.result
  • Classificationroute_handler
  • GET /sale/appointmentsHTTP route

Sale.Board

Return sale leads grouped into pipeline columns.

Sale.Board input
FieldTypeRequiredDescriptionAllowed
owner_idoptional
sourceoptional
avataroptional
queryoptional
limitoptional
column_limitoptional
6 rows
Calls and output
  • 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.

Sale.BookTransfer input
FieldTypeRequiredDescriptionAllowed
steprequired
to_owneroptional
clientoptional
site_idoptional
transfer_idoptional
5 rows
Calls and output
  • 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.

Calls and output
  • 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.

Sale.BookingReconcile input
FieldTypeRequiredDescriptionAllowed
oprequired
sourceoptional
idoptional
lead_idoptional
4 rows
Calls and output
  • 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.

Sale.CallLead input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
script_idrequired
request_idrequired
fromoptional
company_nameoptional
company_cityoptional
bindingsoptional
7 rows
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/lead/callHTTP route

Sale.EnrichLead

Enrich a persisted sale lead and append a SaleLog vertex.

Sale.EnrichLead input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
forceoptional
2 rows
Calls and output
  • 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.

Sale.FrontDesk input
FieldTypeRequiredDescriptionAllowed
dateoptional
1 row
Calls and output
  • Output keysale.result
  • Classificationroute_handler
  • GET /sale/deskHTTP route

Sale.GraphProspects

List business nodes already ingested into the knowledge graph.

Sale.GraphProspects input
FieldTypeRequiredDescriptionAllowed
website_hostoptional
queryoptional
sourceoptional
limitoptional
4 rows
Calls and output
  • Output keysale.result
  • Classificationroute_handler
  • GET /sale/graph/prospectsHTTP route

Sale.GrowthProgress

Read owner-scoped source-linked Growth progress and current acquisition exclusions.

Sale.GrowthProgress input
FieldTypeRequiredDescriptionAllowed
clientrequired
target_idsrequired
2 rows
Calls and output
  • 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.

Sale.GrowthProgressSave input
FieldTypeRequiredDescriptionAllowed
clientrequired
runrequired
target_idrequired
expected_revisionrequired
verdictrequired
reasonoptional
channeloptional
7 rows
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/growth/progress/saveHTTP route

Sale.ImportGraphLead

Import a knowledge graph business node into the sale pipeline.

Sale.ImportGraphLead input
FieldTypeRequiredDescriptionAllowed
node_keyrequired
1 row
Calls and output
  • Output keysale.result
  • Classificationconflict
  • POST /sale/graph/importHTTP route

Sale.ImportProspects

Preview or import bounded caller-owned prospect batches with identity conflict receipts.

Sale.ImportProspects input
FieldTypeRequiredDescriptionAllowed
sourcerequired
recordsrequired
cohortoptional
list_idoptional
list_roleoptional
previewoptional
owner_idoptional
for_clientoptional
8 rows
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/prospects/importHTTP route

Sale.ImportProviderLead

Import a provider business record into the sale pipeline.

Sale.ImportProviderLead input
FieldTypeRequiredDescriptionAllowed
provider_idrequired
recordrequired
2 rows
Calls and output
  • 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.

Sale.LeadBrief input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
refreshoptional
2 rows
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/lead/briefHTTP route

Sale.LeadList

List sale leads from the HyperDB graph with simple filters.

Sale.LeadList input
FieldTypeRequiredDescriptionAllowed
statusoptional
owner_idoptional
sourceoptional
referred_byoptional
tagoptional
avataroptional
focusoptional
sortoptional
queryoptional
limitoptional
collectionoptional
11 rows
Calls and output
  • 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.

Sale.LeadOptOut input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
1 row
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/leads/opt-outHTTP route

Sale.LeadTimeline

Return one sale lead and its activity log timeline.

Sale.LeadTimeline input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
limitoptional
2 rows
Calls and output
  • Output keysale.result
  • Classificationroute_handler
  • GET /sale/lead/timelineHTTP route

Sale.LeadUpsert

Create or update a sale lead as a HyperDB SaleLead vertex.

Sale.LeadUpsert input
FieldTypeRequiredDescriptionAllowed
namerequired
lead_idoptional
emailoptional
phoneoptional
statusoptional
sourceoptional
referred_byoptional
owner_idoptional
8 rows
Calls and output
  • 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.

Sale.LinkOrganization input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
entity_idoptional
schemeoptional
valueoptional
confirm_nameoptional
5 rows
Calls and output
  • 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.

Sale.LogActivity input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
kindoptional
bodyoptional
outcomeoptional
follow_up_in_daysoptional
5 rows
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/lead/activityHTTP route

Sale.MoveLead

Move a sale lead between pipeline stages and append a timeline event.

Sale.MoveLead input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
stagerequired
noteoptional
3 rows
Calls and output
  • 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.

Sale.OutreachActionCreate input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
lead_idrequired
list_idrequired
channelrequired
subjectoptional
bodyrequired
request_idrequired
for_clientoptional
8 rows
Calls and output
  • 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.

Sale.OutreachActionPreview input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
action_idrequired
2 rows
Calls and output
  • 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.

Sale.OutreachActionRecord input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
action_idrequired
expected_revisionrequired
outcomeoptional
noteoptional
follow_up_in_daysoptional
delivered_atoptional
7 rows
Calls and output
  • 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.

Sale.OutreachActionReview input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
action_idrequired
expected_revisionrequired
decisionrequired
for_clientoptional
5 rows
Calls and output
  • 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.

Sale.OutreachActionSend input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
action_idrequired
expected_revisionrequired
3 rows
Calls and output
  • 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.

Sale.OutreachActions input
FieldTypeRequiredDescriptionAllowed
owner_idoptional
lead_idoptional
list_idoptional
limitoptional
afteroptional
for_clientoptional
6 rows
Calls and output
  • 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.

Sale.OutreachFollowUps input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
after_daysoptional
max_touchesoptional
bodyoptional
bodiesoptional
thenoptional
then_bodyoptional
limitoptional
dry_runoptional
9 rows
Calls and output
  • 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.

Sale.OutreachWorkbench input
FieldTypeRequiredDescriptionAllowed
channeloptional
queueoptional
2 rows
Calls and output
  • Output keysale.result
  • Classificationroute_handler
  • GET /sale/outreach/workbenchHTTP route

Sale.PartnershipSave

Record a community-specific partnership revision on an existing lead's timeline.

Sale.PartnershipSave input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
org_idrequired
expected_revisionrequired
stagerequired
next_actionrequired
action_ownerrequired
categoryoptional
partner_valueoptional
community_valueoptional
commitmentoptional
notesoptional
11 rows
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/lead/partnershipHTTP route

Sale.ProspectMemberships

Read caller-owned prospect/customer/exclusion list memberships with stable pagination.

Sale.ProspectMemberships input
FieldTypeRequiredDescriptionAllowed
lead_idsoptional
list_idoptional
list_roleoptional
limitoptional
afteroptional
include_leadsoptional
expected_snapshotoptional
7 rows
Calls and output
  • Output keysale.result
  • Classificationroute_handler
  • GET /sale/prospects/membershipsHTTP route

Sale.ProviderSearch

Search provider-backed business records for sale prospecting.

Sale.ProviderSearch input
FieldTypeRequiredDescriptionAllowed
provider_idrequired
queryoptional
locationoptional
latitudeoptional
longitudeoptional
radiusoptional
categoryoptional
limitoptional
8 rows
Calls and output
  • 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.

Sale.ReferralReferenceIssue input
FieldTypeRequiredDescriptionAllowed
partner_lead_idrequired
action_idoptional
labeloptional
3 rows
Calls and output
  • 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.

Sale.ReferralReport input
FieldTypeRequiredDescriptionAllowed
partner_lead_idoptional
1 row
Calls and output
  • 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.

Sale.SenderProfile input
FieldTypeRequiredDescriptionAllowed
actionoptional
nameoptional
businessoptional
emailoptional
postal_addressoptional
reply_tooptional
6 rows
Calls and output
  • 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.

Sale.SendingSetup input
FieldTypeRequiredDescriptionAllowed
opoptional
provideroptional
api_keyoptional
secret_keyoptional
domainoptional
regionoptional
message_streamoptional
trackoptional
8 rows
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/sendingHTTP route

Sale.SequenceList

List caller-owned follow-up sequences.

Sale.SequenceList input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
1 row
Calls and output
  • Output keysale.result
  • Classificationroute_handler
  • GET /sale/sequences/listHTTP route

Sale.SequenceSave

Save or update a caller-owned outreach follow-up sequence recipe.

Sale.SequenceSave input
FieldTypeRequiredDescriptionAllowed
owner_idrequired
nameoptional
idoptional
enabledoptional
after_daysoptional
max_touchesoptional
bodyoptional
bodiesoptional
thenoptional
then_bodyoptional
10 rows
Calls and output
  • 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).

Sale.SequenceTick input
FieldTypeRequiredDescriptionAllowed
limitoptional
1 row
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/sequences/tickHTTP route

Sale.Status

Sale pipeline health and lead counts from the HyperDB graph.

Calls and output
  • 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.

Sale.UnlinkOrganization input
FieldTypeRequiredDescriptionAllowed
lead_idrequired
1 row
Calls and output
  • Output keysale.result
  • Classificationreal
  • POST /sale/lead/organization/unlinkHTTP route

Sale.ViewPatch

Live SSR patch for the Sale board summary strip.

Calls and output
  • Output keysale.result
  • Classificationroute_handler
  • GET /sale/board/patchHTTP route

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerSale
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
  • SaleAppointment
  • SaleLead
  • SaleLog
  • SaleObservedBooking
  • SaleObservedBookingChange
  • SaleOutreachAction
  • SaleOutreachSequence
  • SaleProspectMembership
  • SaleProspectObservation
  • SaleReferralReference
  • SaleSenderProfile
Hyper vertex kinds written
  • SaleAppointment
  • SaleBookTransfer
  • SaleLead
  • SaleLog
  • SaleObservedBooking
  • SaleObservedBookingChange
  • SaleOutreachAction
  • SaleOutreachSequence
  • SaleProspectMembership
  • SaleProspectObservation
  • SaleReferralReference
  • SaleSenderCheck
  • SaleSenderProfile
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Protocol
  • View

Structure review · 4

Warnings · 4