hvp-shared 13.5.0 → 13.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -109,7 +109,7 @@ exports.STANDARD_V3 = {
|
|
|
109
109
|
dimensions: [
|
|
110
110
|
{
|
|
111
111
|
id: "branch",
|
|
112
|
-
weight:
|
|
112
|
+
weight: 8,
|
|
113
113
|
label: "Sucursal",
|
|
114
114
|
description: 'Sucursal detectada por colorId del evento: 11 (Tomato/rojo) = Urban, 9 (Blueberry/azul) = Harbor, 3 (Grape/morado) = Montejo. Si el evento usa el color por defecto, falla esta dimensión. Atención: hay tonos parecidos en GCal — fíjate en el colorId exacto en el drawer si dudas.',
|
|
115
115
|
},
|
|
@@ -139,9 +139,9 @@ exports.STANDARD_V3 = {
|
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
id: "scheduler",
|
|
142
|
-
weight:
|
|
142
|
+
weight: 12,
|
|
143
143
|
label: "Iniciales de quien agendó",
|
|
144
|
-
description: 'Iniciales (col_code) del colaborador que agendó la cita, dentro de la descripción. Formatos válidos: "AGENDO XZA", "AG YMP", "AGENDADO POR SLR".
|
|
144
|
+
description: 'Iniciales (col_code) del colaborador que agendó la cita, dentro de la descripción. Formatos válidos: "AGENDO XZA", "AG YMP", "AGENDADO POR SLR". Crítico para rastrear responsable de la calidad de la agenda.',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
id: "context",
|
|
@@ -99,6 +99,24 @@ export interface DiagnosticResult {
|
|
|
99
99
|
isPreferredVet: boolean;
|
|
100
100
|
/** True iff event has extendedProperties.private (HVP-created). */
|
|
101
101
|
isHvpCreated: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* GCal event creation timestamp (ISO datetime, UTC) — ground truth of when
|
|
104
|
+
* the appointment was actually scheduled, independent of any text annotation
|
|
105
|
+
* like "AGENDO XYZ 16 MAYO" in the description. Null if missing from API.
|
|
106
|
+
*/
|
|
107
|
+
eventCreatedAt: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Raw event description as it appears in Google Calendar — unprocessed,
|
|
110
|
+
* line-break-preserved. Used by the dashboard's detail view to show what
|
|
111
|
+
* recepción actually typed (vs. the inferred fields). Null if empty.
|
|
112
|
+
*/
|
|
113
|
+
rawDescription: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Raw GCal colorId — numeric string like "11" (Tomato) or "9" (Blueberry).
|
|
116
|
+
* Used by the dashboard's detail view to disambiguate visually similar
|
|
117
|
+
* tones. Null if event uses the default color.
|
|
118
|
+
*/
|
|
119
|
+
colorId: string | null;
|
|
102
120
|
}
|
|
103
121
|
/**
|
|
104
122
|
* Excluded event — does not have a score.
|
|
@@ -147,6 +165,16 @@ export interface DiagnoseAppointmentsResponse {
|
|
|
147
165
|
preferredCount: number;
|
|
148
166
|
avgScore: number;
|
|
149
167
|
}>;
|
|
168
|
+
/**
|
|
169
|
+
* Per-scheduler breakdown — col_code of the colaborador who annotated the
|
|
170
|
+
* appointment (`AGENDO XYZ ...`). The `unknown` bucket captures events with
|
|
171
|
+
* no scheduler annotation — typically the largest, and the most actionable
|
|
172
|
+
* gap to close.
|
|
173
|
+
*/
|
|
174
|
+
bySchedule: Record<string, {
|
|
175
|
+
count: number;
|
|
176
|
+
avgScore: number;
|
|
177
|
+
}>;
|
|
150
178
|
/** Detailed results per evaluated event (paginated by caller — capped at 500 in response for now). */
|
|
151
179
|
results: DiagnosticResult[];
|
|
152
180
|
/** Detailed excluded events (capped at 100). */
|