@withpotter/inquiry — module reference

A support module — it mounts no HTTP routes of its own but contributes the internal building blocks below. See the package internal architecture for how the layers fit together.

Internals

Entities

Sequelize models owned by this module.

Inquiry — table inquiries

FieldType
idstring
tenantIdstring
tenantTenant
inquiryNumberstring
typeInquiryType
statusInquiryStatus
priorityInquiryPriority
sourceInquirySource
memberIdstring | null
memberMember
emailstring
namestring | null
phonestring | null
companystring | null
subjectstring
messagestring
assignedTostring | null
assignedAtDate | null
responsestring | null
respondedAtDate | null
respondedBystring | null
quotedAmountnumber | null
quoteExpiresAtDate | null
quoteAcceptedboolean
internalNotestring | null
metadataInquiryMetadata
tagsstring[]
createdAtDate
updatedAtDate
viewedAtDate | null
convertedAtDate | null
closedAtDate | null
followUpDateDate | null
followUpCompleteboolean

Repositories

Data-access classes wrapping the entities.

InquiryRepository

findByTenant · updateByTenant · findByInquiryNumber · findByEmail · findByMember · findUnassigned · findByAssignee · findNeedingFollowUp · list · getStats · countNew · countUnassigned · countOverdueFollowUps

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.