evo360-types 1.3.690 → 1.3.695

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.
@@ -699,6 +699,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
699
699
  display_name: z.ZodNullable<z.ZodString>;
700
700
  source: z.ZodEnum<["ui_omni", "ui_calendar", "hubia", "mcp"]>;
701
701
  }, z.ZodTypeAny, "passthrough">>>>;
702
+ hubia_proposal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
703
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
703
704
  name: z.ZodString;
704
705
  color: z.ZodOptional<z.ZodString>;
@@ -1065,6 +1066,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
1065
1066
  display_name: z.ZodNullable<z.ZodString>;
1066
1067
  source: z.ZodEnum<["ui_omni", "ui_calendar", "hubia", "mcp"]>;
1067
1068
  }, z.ZodTypeAny, "passthrough">>>>;
1069
+ hubia_proposal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1068
1070
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1069
1071
  name: z.ZodString;
1070
1072
  color: z.ZodOptional<z.ZodString>;
@@ -1431,6 +1433,7 @@ export declare const zAppointmentSchema: z.ZodObject<{
1431
1433
  display_name: z.ZodNullable<z.ZodString>;
1432
1434
  source: z.ZodEnum<["ui_omni", "ui_calendar", "hubia", "mcp"]>;
1433
1435
  }, z.ZodTypeAny, "passthrough">>>>;
1436
+ hubia_proposal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1434
1437
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1435
1438
  name: z.ZodString;
1436
1439
  color: z.ZodOptional<z.ZodString>;
@@ -248,6 +248,8 @@ exports.zAppointmentSchema = zod_schemas_1.zFireDocSchema
248
248
  status_external_id: zod_1.z.coerce.string().nullable().optional(),
249
249
  // feat-193 F4 — solicitante. Local (a agenda externa não conhece o campo).
250
250
  requested_by: exports.zAppointmentRequestedBySchema.nullable().optional(),
251
+ // feat-271 F2 — proposta da HubIA que originou o agendamento (aceita pela secretária).
252
+ hubia_proposal_id: zod_1.z.string().nullable().optional(),
251
253
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
252
254
  })
253
255
  .passthrough();
@@ -275,6 +275,9 @@ export const zAppointmentSchema = zFireDocSchema
275
275
  // feat-193 F4 — solicitante. Local (a agenda externa não conhece o campo).
276
276
  requested_by: zAppointmentRequestedBySchema.nullable().optional(),
277
277
 
278
+ // feat-271 F2 — proposta da HubIA que originou o agendamento (aceita pela secretária).
279
+ hubia_proposal_id: z.string().nullable().optional(),
280
+
278
281
  tags: z.array(zTagSchema).nullable().optional(),
279
282
  })
280
283
  .passthrough();
@@ -1627,6 +1627,10 @@ export declare const zPatientSchema: z.ZodObject<{
1627
1627
  }>, "many">>>;
1628
1628
  capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
1629
1629
  userRef: z.ZodAny;
1630
+ /** feat-269 — lápide/rastro de fusão de pacientes (explícitos: typo não entra calado). */
1631
+ merged_into: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1632
+ merged_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1633
+ merged_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1630
1634
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1631
1635
  id: z.ZodString;
1632
1636
  ref: z.ZodAny;
@@ -2290,6 +2294,10 @@ export declare const zPatientSchema: z.ZodObject<{
2290
2294
  }>, "many">>>;
2291
2295
  capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
2292
2296
  userRef: z.ZodAny;
2297
+ /** feat-269 — lápide/rastro de fusão de pacientes (explícitos: typo não entra calado). */
2298
+ merged_into: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2299
+ merged_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2300
+ merged_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2293
2301
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2294
2302
  id: z.ZodString;
2295
2303
  ref: z.ZodAny;
@@ -2953,4 +2961,8 @@ export declare const zPatientSchema: z.ZodObject<{
2953
2961
  }>, "many">>>;
2954
2962
  capture_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
2955
2963
  userRef: z.ZodAny;
2964
+ /** feat-269 — lápide/rastro de fusão de pacientes (explícitos: typo não entra calado). */
2965
+ merged_into: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2966
+ merged_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2967
+ merged_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2956
2968
  }, z.ZodTypeAny, "passthrough">>;
@@ -164,5 +164,9 @@ exports.zPatientSchema = zod_schemas_4.zProfileSchema // Extend from ProfileSche
164
164
  tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
165
165
  capture_data: zod_schemas_2.zCaptureDataMapSchema.nullable().optional(),
166
166
  userRef: zod_1.z.any(),
167
+ /** feat-269 — lápide/rastro de fusão de pacientes (explícitos: typo não entra calado). */
168
+ merged_into: zod_1.z.string().nullable().optional(),
169
+ merged_at: zod_1.z.coerce.date().nullable().optional(),
170
+ merged_from: zod_1.z.array(zod_1.z.string()).optional(),
167
171
  })
168
172
  .passthrough();
@@ -186,5 +186,9 @@ export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
186
186
  tags: z.array(zTagSchema).nullable().optional(),
187
187
  capture_data: zCaptureDataMapSchema.nullable().optional(),
188
188
  userRef: z.any(),
189
+ /** feat-269 — lápide/rastro de fusão de pacientes (explícitos: typo não entra calado). */
190
+ merged_into: z.string().nullable().optional(),
191
+ merged_at: z.coerce.date().nullable().optional(),
192
+ merged_from: z.array(z.string()).optional(),
189
193
  })
190
194
  .passthrough();
@@ -225,6 +225,8 @@ export interface IAppointment extends IFireDoc {
225
225
  draftExpirationMinutes?: number | null;
226
226
  /** feat-193 F4 — solicitante do agendamento. Ver `IAppointmentRequestedBy`. */
227
227
  requested_by?: IAppointmentRequestedBy | null;
228
+ /** feat-271 F2 — proposta da HubIA (evento `hubia_proposal` na thread) que originou este agendamento. */
229
+ hubia_proposal_id?: string | null;
228
230
  tags?: ITag[] | null;
229
231
  [key: string]: unknown;
230
232
  }
@@ -293,6 +293,9 @@ export interface IAppointment extends IFireDoc {
293
293
  /** feat-193 F4 — solicitante do agendamento. Ver `IAppointmentRequestedBy`. */
294
294
  requested_by?: IAppointmentRequestedBy | null;
295
295
 
296
+ /** feat-271 F2 — proposta da HubIA (evento `hubia_proposal` na thread) que originou este agendamento. */
297
+ hubia_proposal_id?: string | null;
298
+
296
299
  tags?: ITag[] | null;
297
300
  [key: string]: unknown; // index signature
298
301
  }
@@ -193,5 +193,11 @@ export interface IPatient extends IProfile {
193
193
  /** Campos complementares (code → valor), validados contra o dicionário `dics/patients/capture-data` (feat-196). */
194
194
  capture_data?: CaptureDataMap | null;
195
195
  userRef?: FirestoreDocumentReference;
196
+ /** feat-269 — lápide de fusão: id do paciente sobrevivente. */
197
+ merged_into?: string | null;
198
+ /** feat-269 — instante da fusão (junto com `merged_into`). */
199
+ merged_at?: Date | null;
200
+ /** feat-269 — ids dos pacientes absorvidos por este (sobrevivente). */
201
+ merged_from?: string[];
196
202
  [key: string]: unknown;
197
203
  }
@@ -259,5 +259,11 @@ export interface IPatient extends IProfile {
259
259
  /** Campos complementares (code → valor), validados contra o dicionário `dics/patients/capture-data` (feat-196). */
260
260
  capture_data?: CaptureDataMap | null;
261
261
  userRef?: FirestoreDocumentReference;
262
+ /** feat-269 — lápide de fusão: id do paciente sobrevivente. */
263
+ merged_into?: string | null;
264
+ /** feat-269 — instante da fusão (junto com `merged_into`). */
265
+ merged_at?: Date | null;
266
+ /** feat-269 — ids dos pacientes absorvidos por este (sobrevivente). */
267
+ merged_from?: string[];
262
268
  [key: string]: unknown; // index signature
263
269
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.690",
3
+ "version": "1.3.695",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",