JobTypeAvailabilityClass
Stentor API Reference / stentor-models/src / JobTypeAvailabilityClass
Interface: JobTypeAvailabilityClass
Defined in: packages/stentor-models/src/Services/CrmService.ts:69
A deterministic mapping from an FSM/CRM job type to an availability class.
This is the symmetric counterpart to CrmServiceAvailabilitySettings.delayedJobTypes, which is also keyed on the FSM job-type id: delayedJobTypes pushes a job type further out, this maps a job type onto a class (which may pull it in β e.g. same-day for emergency work).
Propertiesβ
jobTypeIdβ
jobTypeId:
string
Defined in: packages/stentor-models/src/Services/CrmService.ts:73
The FSM/CRM job type id, stringified (ServiceTitan job type ids are numbers).
classIdβ
classId:
string
Defined in: packages/stentor-models/src/Services/CrmService.ts:77
AvailabilityClass.id
jobTypeName?β
optionaljobTypeName?:string
Defined in: packages/stentor-models/src/Services/CrmService.ts:81
Denormalized for display in Studio. Not used for matching.
source?β
optionalsource?:"AI"|"USER"
Defined in: packages/stentor-models/src/Services/CrmService.ts:85
Provenance: "AI" = suggested by the class suggester, "USER" = confirmed/edited by a human.