evo360-types 1.3.757 → 1.3.759

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.
@@ -40,14 +40,14 @@ export declare const zTagSchema: z.ZodObject<{
40
40
  name: string;
41
41
  hidden: boolean;
42
42
  base?: boolean | undefined;
43
- category?: string | null | undefined;
44
43
  color?: string | undefined;
44
+ category?: string | null | undefined;
45
45
  }, {
46
46
  name: string;
47
47
  hidden: boolean;
48
48
  base?: boolean | undefined;
49
- category?: string | null | undefined;
50
49
  color?: string | undefined;
50
+ category?: string | null | undefined;
51
51
  }>;
52
52
  export declare const zAddressSchema: z.ZodObject<{
53
53
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -23,6 +23,13 @@ export declare const ExternalObjectTypeEnum: {
23
23
  * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
24
24
  */
25
25
  readonly Teleconsultation: "teleconsultation";
26
+ /**
27
+ * Agenda do evo-med da qual o paciente tem (ou teve) appointment. O `id` é o doc
28
+ * id do calendar (o mesmo do path `calendars/{id}`), NÃO o campo
29
+ * `IMedCalendar.calendarId`. Ver `IMedCalendarExternalLink`.
30
+ * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
31
+ */
32
+ readonly MedCalendar: "med_calendar";
26
33
  };
27
34
  export type ExternalObjectType = (typeof ExternalObjectTypeEnum)[keyof typeof ExternalObjectTypeEnum];
28
35
  /**
@@ -92,6 +99,11 @@ export declare const ExternalLinkSourceEnum: {
92
99
  * feat-193): pode CONFIRMAR; o humano segue podendo rejeitar/rebaixar.
93
100
  */
94
101
  readonly Hubia: "hubia";
102
+ /**
103
+ * Gravado pela replicação appointment → paciente (`PatientReplicationHandler`):
104
+ * hoje só o link `med_calendar`. Espelhado em `zExternalLinkSourceSchema`.
105
+ */
106
+ readonly AppointmentReplication: "appointment_replication";
95
107
  };
96
108
  export type ExternalLinkSource = (typeof ExternalLinkSourceEnum)[keyof typeof ExternalLinkSourceEnum];
97
109
  /**
@@ -177,3 +189,18 @@ export interface IExternalLink {
177
189
  owner?: ExternalOwnerSystem;
178
190
  [key: string]: unknown;
179
191
  }
192
+ /**
193
+ * Link `med_calendar` no `externalLinks` do paciente: uma entrada por agenda em que
194
+ * ele tem/teve appointment. Nasce na replicação do appointment e NUNCA é removido
195
+ * (fica mesmo com o appointment excluído). `name`/`color`/`adapter` são cópia do
196
+ * calendar, mantida pela replicação do calendar (`CalendarReplication`).
197
+ */
198
+ export interface IMedCalendarExternalLink extends IExternalLink {
199
+ type: typeof ExternalObjectTypeEnum.MedCalendar;
200
+ /** `IMedCalendar.display_name`. */
201
+ name?: string | null;
202
+ /** `IMedCalendar.color`. */
203
+ color?: string | null;
204
+ /** `IMedCalendar.integration.adapter_id`; `null` = agenda sem integração. */
205
+ adapter?: string | null;
206
+ }
@@ -27,6 +27,13 @@ exports.ExternalObjectTypeEnum = {
27
27
  * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
28
28
  */
29
29
  Teleconsultation: "teleconsultation",
30
+ /**
31
+ * Agenda do evo-med da qual o paciente tem (ou teve) appointment. O `id` é o doc
32
+ * id do calendar (o mesmo do path `calendars/{id}`), NÃO o campo
33
+ * `IMedCalendar.calendarId`. Ver `IMedCalendarExternalLink`.
34
+ * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
35
+ */
36
+ MedCalendar: "med_calendar",
30
37
  };
31
38
  /**
32
39
  * feat-125 — sistema DONO do objeto vinculado, quando ele não vive no tenant.
@@ -92,6 +99,11 @@ exports.ExternalLinkSourceEnum = {
92
99
  * feat-193): pode CONFIRMAR; o humano segue podendo rejeitar/rebaixar.
93
100
  */
94
101
  Hubia: "hubia",
102
+ /**
103
+ * Gravado pela replicação appointment → paciente (`PatientReplicationHandler`):
104
+ * hoje só o link `med_calendar`. Espelhado em `zExternalLinkSourceSchema`.
105
+ */
106
+ AppointmentReplication: "appointment_replication",
95
107
  };
96
108
  /**
97
109
  * feat-193 — par de relação (chave neutra de gênero). O rótulo exibido vem do
@@ -27,6 +27,13 @@ export const ExternalObjectTypeEnum = {
27
27
  * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
28
28
  */
29
29
  Teleconsultation: "teleconsultation",
30
+ /**
31
+ * Agenda do evo-med da qual o paciente tem (ou teve) appointment. O `id` é o doc
32
+ * id do calendar (o mesmo do path `calendars/{id}`), NÃO o campo
33
+ * `IMedCalendar.calendarId`. Ver `IMedCalendarExternalLink`.
34
+ * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
35
+ */
36
+ MedCalendar: "med_calendar",
30
37
  } as const;
31
38
 
32
39
  export type ExternalObjectType =
@@ -108,6 +115,11 @@ export const ExternalLinkSourceEnum = {
108
115
  * feat-193): pode CONFIRMAR; o humano segue podendo rejeitar/rebaixar.
109
116
  */
110
117
  Hubia: "hubia",
118
+ /**
119
+ * Gravado pela replicação appointment → paciente (`PatientReplicationHandler`):
120
+ * hoje só o link `med_calendar`. Espelhado em `zExternalLinkSourceSchema`.
121
+ */
122
+ AppointmentReplication: "appointment_replication",
111
123
  } as const;
112
124
 
113
125
  export type ExternalLinkSource =
@@ -207,3 +219,19 @@ export interface IExternalLink {
207
219
  owner?: ExternalOwnerSystem;
208
220
  [key: string]: unknown;
209
221
  }
222
+
223
+ /**
224
+ * Link `med_calendar` no `externalLinks` do paciente: uma entrada por agenda em que
225
+ * ele tem/teve appointment. Nasce na replicação do appointment e NUNCA é removido
226
+ * (fica mesmo com o appointment excluído). `name`/`color`/`adapter` são cópia do
227
+ * calendar, mantida pela replicação do calendar (`CalendarReplication`).
228
+ */
229
+ export interface IMedCalendarExternalLink extends IExternalLink {
230
+ type: typeof ExternalObjectTypeEnum.MedCalendar;
231
+ /** `IMedCalendar.display_name`. */
232
+ name?: string | null;
233
+ /** `IMedCalendar.color`. */
234
+ color?: string | null;
235
+ /** `IMedCalendar.integration.adapter_id`; `null` = agenda sem integração. */
236
+ adapter?: string | null;
237
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.757",
3
+ "version": "1.3.759",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",