mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
surface new per-deal workflow fields on HubspotDeal type
This commit is contained in:
parent
486427f73d
commit
998f36f1df
2 changed files with 29 additions and 0 deletions
|
|
@ -69,12 +69,26 @@ function mapDbRowToHubspotDeal(row: DealRow): HubspotDeal {
|
|||
measuresLodgementDate: d.measuresLodgementDate,
|
||||
fullLodgementDate: d.lodgementDate,
|
||||
confirmedSurveyDate: d.confirmedSurveyDate,
|
||||
confirmedSurveyTime: d.confirmedSurveyTime,
|
||||
surveyedDate: d.surveyedDate,
|
||||
designType: d.dealType,
|
||||
eiScore: d.eiScore,
|
||||
eiScorePotential: d.eiScorePotential,
|
||||
epcSapScore: d.epcSapScore,
|
||||
epcSapScorePotential: d.epcSapScorePotential,
|
||||
// New per-deal workflow fields
|
||||
surveyType: d.surveyType,
|
||||
measuresForPibiOrdered: d.measuresForPibiOrdered,
|
||||
pibiOrderDate: d.pibiOrderDate,
|
||||
pibiCompletedDate: d.pibiCompletedDate,
|
||||
propertyHaltedDate: d.propertyHaltedDate,
|
||||
propertyHaltedReason: d.propertyHaltedReason,
|
||||
technicalApprovedMeasuresForInstall: d.technicalApprovedMeasuresForInstall,
|
||||
// domna_survey_type column does not exist on the schema yet (slice 7) —
|
||||
// surface null and let the drawer fall back to the legacy boolean.
|
||||
domnaSurveyType: null,
|
||||
domnaSurveyRequired: d.domnaSurveyRequired,
|
||||
domnaSurveyDate: d.domnaSurveyDate,
|
||||
createdAt: d.createdAt,
|
||||
updatedAt: d.updatedAt,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ export type HubspotDeal = {
|
|||
measuresLodgementDate: Date | null;
|
||||
fullLodgementDate: Date | null;
|
||||
confirmedSurveyDate: Date | null;
|
||||
confirmedSurveyTime: string | null;
|
||||
surveyedDate: Date | null;
|
||||
designType: string | null;
|
||||
eiScore: string | null;
|
||||
|
|
@ -52,6 +53,20 @@ export type HubspotDeal = {
|
|||
epcSapScore: string | null;
|
||||
epcSapScorePotential: string | null;
|
||||
|
||||
// ── New per-deal workflow fields (issue #249 slice) ────────────────────
|
||||
surveyType: string | null;
|
||||
measuresForPibiOrdered: string | null;
|
||||
pibiOrderDate: Date | null;
|
||||
pibiCompletedDate: Date | null;
|
||||
propertyHaltedDate: Date | null;
|
||||
propertyHaltedReason: string | null;
|
||||
technicalApprovedMeasuresForInstall: string | null;
|
||||
// domnaSurveyType is the new text column added in slice 7. It may not yet
|
||||
// exist in the schema; until then the legacy boolean is used as a fallback.
|
||||
domnaSurveyType: string | null;
|
||||
domnaSurveyRequired: boolean | null;
|
||||
domnaSurveyDate: Date | null;
|
||||
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue