@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
| Field | Type |
|---|---|
id | string |
tenantId | string |
tenant | Tenant |
inquiryNumber | string |
type | InquiryType |
status | InquiryStatus |
priority | InquiryPriority |
source | InquirySource |
memberId | string | null |
member | Member |
email | string |
name | string | null |
phone | string | null |
company | string | null |
subject | string |
message | string |
assignedTo | string | null |
assignedAt | Date | null |
response | string | null |
respondedAt | Date | null |
respondedBy | string | null |
quotedAmount | number | null |
quoteExpiresAt | Date | null |
quoteAccepted | boolean |
internalNote | string | null |
metadata | InquiryMetadata |
tags | string[] |
createdAt | Date |
updatedAt | Date |
viewedAt | Date | null |
convertedAt | Date | null |
closedAt | Date | null |
followUpDate | Date | null |
followUpComplete | boolean |
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.