hvp-shared 13.5.0 → 13.6.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,12 @@ 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;
|
|
102
108
|
}
|
|
103
109
|
/**
|
|
104
110
|
* Excluded event — does not have a score.
|
|
@@ -147,6 +153,16 @@ export interface DiagnoseAppointmentsResponse {
|
|
|
147
153
|
preferredCount: number;
|
|
148
154
|
avgScore: number;
|
|
149
155
|
}>;
|
|
156
|
+
/**
|
|
157
|
+
* Per-scheduler breakdown — col_code of the colaborador who annotated the
|
|
158
|
+
* appointment (`AGENDO XYZ ...`). The `unknown` bucket captures events with
|
|
159
|
+
* no scheduler annotation — typically the largest, and the most actionable
|
|
160
|
+
* gap to close.
|
|
161
|
+
*/
|
|
162
|
+
bySchedule: Record<string, {
|
|
163
|
+
count: number;
|
|
164
|
+
avgScore: number;
|
|
165
|
+
}>;
|
|
150
166
|
/** Detailed results per evaluated event (paginated by caller — capped at 500 in response for now). */
|
|
151
167
|
results: DiagnosticResult[];
|
|
152
168
|
/** Detailed excluded events (capped at 100). */
|