Skip to main content

JobTypeAvailabilityClass

Stentor API Reference


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?​

optional jobTypeName?: string

Defined in: packages/stentor-models/src/Services/CrmService.ts:81

Denormalized for display in Studio. Not used for matching.


source?​

optional source?: "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.