evo360-types 1.3.363 → 1.3.365

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.
Files changed (31) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +6 -6
  2. package/dist/apps/evo-chat/contact/zod-schemas.d.ts +6 -6
  3. package/dist/apps/evo-chat/dic/ticket-close/zod-schemas.d.ts +12 -12
  4. package/dist/apps/evo-chat/message/zod-schemas.d.ts +6 -6
  5. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +18 -18
  6. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +6 -6
  7. package/dist/apps/evo-med/appointment/zod-schemas.d.ts +6 -6
  8. package/dist/apps/evo-med/calendar/zod-schemas.d.ts +6 -6
  9. package/dist/apps/evo-med/dic/zod-schemas.d.ts +50 -6
  10. package/dist/apps/evo-med/dic/zod-schemas.js +40 -1
  11. package/dist/apps/evo-med/dic/zod-schemas.ts +41 -0
  12. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +6 -6
  13. package/dist/apps/evo-med/people/zod-schemas.d.ts +497 -12
  14. package/dist/apps/evo-med/people/zod-schemas.js +34 -4
  15. package/dist/apps/evo-med/people/zod-schemas.ts +33 -0
  16. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +12 -12
  17. package/dist/apps/evo-people/zod-schemas.d.ts +24 -24
  18. package/dist/apps/evo-survey/zod-schemas.d.ts +58 -58
  19. package/dist/apps/evo-task/zod-schemas.d.ts +54 -54
  20. package/dist/apps/shared/zod-schemas.d.ts +2 -2
  21. package/dist/types/evo-integrations/index.d.ts +1 -1
  22. package/dist/types/evo-integrations/index.ts +1 -0
  23. package/dist/types/evo-med/dic/index.d.ts +40 -2
  24. package/dist/types/evo-med/dic/index.js +34 -1
  25. package/dist/types/evo-med/dic/index.ts +49 -1
  26. package/dist/types/evo-med/fb_collections.d.ts +2 -0
  27. package/dist/types/evo-med/fb_collections.js +3 -1
  28. package/dist/types/evo-med/fb_collections.ts +3 -0
  29. package/dist/types/evo-med/people/index.d.ts +23 -2
  30. package/dist/types/evo-med/people/index.ts +21 -1
  31. package/package.json +1 -1
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zPatientSchema = exports.zAppointmentCountersSchema = exports.zPatientChronicConditionSchema = exports.zPatientAllergySchema = exports.zBloodTypeSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.zProfessionalOfficeSchema = exports.zProfessionalSpecialtySchema = exports.zProfessionalCouncilSchema = exports.zProfessionalStatusSchema = void 0;
3
+ exports.zPatientSchema = exports.zPatientAttachmentSchema = exports.zPatientAttachmentUploadedBySchema = exports.zAppointmentCountersSchema = exports.zPatientChronicConditionSchema = exports.zPatientAllergySchema = exports.zBloodTypeSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.zProfessionalOfficeSchema = exports.zProfessionalSpecialtySchema = exports.zProfessionalCouncilSchema = exports.zProfessionalStatusSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../dic/zod-schemas");
6
6
  const zod_schemas_2 = require("../../shared/zod-schemas");
7
- const zod_schemas_3 = require("../../evo-people/zod-schemas");
7
+ const zod_schemas_3 = require("../../evo-task/zod-schemas");
8
+ const zod_schemas_4 = require("../../evo-people/zod-schemas");
8
9
  // Define Zod schemas for IProfessionalSpecialty, IProfessional, and IPatient
9
10
  exports.zProfessionalStatusSchema = zod_1.z.enum([
10
11
  "active",
@@ -28,7 +29,7 @@ exports.zProfessionalOfficeSchema = zod_1.z.object({
28
29
  name: zod_1.z.string().min(1).max(255),
29
30
  ref: zod_1.z.any(),
30
31
  });
31
- exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSchema
32
+ exports.zProfessionalSchema = zod_schemas_4.zProfileSchema // Extend from ProfileSchema
32
33
  .extend({
33
34
  external_id: zod_1.z.string().nullable().optional(),
34
35
  status: exports.zProfessionalStatusSchema.default("draft"),
@@ -87,7 +88,34 @@ exports.zAppointmentCountersSchema = zod_1.z
87
88
  deleted: zod_1.z.number().optional(),
88
89
  })
89
90
  .passthrough();
90
- exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSchema
91
+ exports.zPatientAttachmentUploadedBySchema = zod_1.z
92
+ .object({
93
+ userId: zod_1.z.string(),
94
+ displayName: zod_1.z.string(),
95
+ })
96
+ .passthrough();
97
+ exports.zPatientAttachmentSchema = zod_1.z
98
+ .object({
99
+ id: zod_1.z.string().min(1),
100
+ filename: zod_1.z.string().min(1),
101
+ originalFilename: zod_1.z.string().min(1),
102
+ contentType: zod_1.z.string().min(1),
103
+ size: zod_1.z.number().int().nonnegative(),
104
+ storagePath: zod_1.z.string().min(1),
105
+ category: zod_1.z.string().min(1),
106
+ baseCategory: zod_schemas_1.zPatientAttachmentBaseCategorySchema,
107
+ categoryColor: zod_1.z
108
+ .string()
109
+ .regex(/^#[0-9A-Fa-f]{6}$/)
110
+ .optional(),
111
+ externalLinks: zod_1.z.array(zod_schemas_3.zExternalLinkSchema).optional(),
112
+ externalLinkKeys: zod_1.z.array(zod_1.z.string()).optional(),
113
+ uploadedBy: exports.zPatientAttachmentUploadedBySchema.optional(),
114
+ uploadedAt: zod_1.z.coerce.date(),
115
+ updatedAt: zod_1.z.coerce.date().optional(),
116
+ })
117
+ .passthrough();
118
+ exports.zPatientSchema = zod_schemas_4.zProfileSchema // Extend from ProfileSchema
91
119
  .extend({
92
120
  external_id: zod_1.z.string().nullable().optional(),
93
121
  social_id: zod_1.z.string().nullable().optional(),
@@ -109,6 +137,8 @@ exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSche
109
137
  .optional(),
110
138
  notes: zod_1.z.string().nullable().optional(),
111
139
  appointmentCounters: exports.zAppointmentCountersSchema.nullable().optional(),
140
+ attachments: zod_1.z.array(exports.zPatientAttachmentSchema).nullable().optional(),
141
+ attachmentExternalLinkKeys: zod_1.z.array(zod_1.z.string()).nullable().optional(),
112
142
  tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
113
143
  userRef: zod_1.z.any(),
114
144
  })
@@ -3,6 +3,7 @@ import {
3
3
  zAllergyKindSchema,
4
4
  zMedicalCouncilUFSchema,
5
5
  zMedicationSchema,
6
+ zPatientAttachmentBaseCategorySchema,
6
7
  zSeveritySchema,
7
8
  } from "../dic/zod-schemas";
8
9
  import {
@@ -10,6 +11,7 @@ import {
10
11
  zContactSchema,
11
12
  zTagSchema,
12
13
  } from "../../shared/zod-schemas";
14
+ import { zExternalLinkSchema } from "../../evo-task/zod-schemas";
13
15
  import { zProfileSchema } from "../../evo-people/zod-schemas";
14
16
 
15
17
  // Define Zod schemas for IProfessionalSpecialty, IProfessional, and IPatient
@@ -105,6 +107,35 @@ export const zAppointmentCountersSchema = z
105
107
  })
106
108
  .passthrough();
107
109
 
110
+ export const zPatientAttachmentUploadedBySchema = z
111
+ .object({
112
+ userId: z.string(),
113
+ displayName: z.string(),
114
+ })
115
+ .passthrough();
116
+
117
+ export const zPatientAttachmentSchema = z
118
+ .object({
119
+ id: z.string().min(1),
120
+ filename: z.string().min(1),
121
+ originalFilename: z.string().min(1),
122
+ contentType: z.string().min(1),
123
+ size: z.number().int().nonnegative(),
124
+ storagePath: z.string().min(1),
125
+ category: z.string().min(1),
126
+ baseCategory: zPatientAttachmentBaseCategorySchema,
127
+ categoryColor: z
128
+ .string()
129
+ .regex(/^#[0-9A-Fa-f]{6}$/)
130
+ .optional(),
131
+ externalLinks: z.array(zExternalLinkSchema).optional(),
132
+ externalLinkKeys: z.array(z.string()).optional(),
133
+ uploadedBy: zPatientAttachmentUploadedBySchema.optional(),
134
+ uploadedAt: z.coerce.date(),
135
+ updatedAt: z.coerce.date().optional(),
136
+ })
137
+ .passthrough();
138
+
108
139
  export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
109
140
  .extend({
110
141
  external_id: z.string().nullable().optional(),
@@ -127,6 +158,8 @@ export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
127
158
  .optional(),
128
159
  notes: z.string().nullable().optional(),
129
160
  appointmentCounters: zAppointmentCountersSchema.nullable().optional(),
161
+ attachments: z.array(zPatientAttachmentSchema).nullable().optional(),
162
+ attachmentExternalLinkKeys: z.array(z.string()).nullable().optional(),
130
163
  tags: z.array(zTagSchema).nullable().optional(),
131
164
  userRef: z.any(),
132
165
  })
@@ -22,14 +22,14 @@ export declare const zProcedureTypeSchema: z.ZodObject<{
22
22
  name: string;
23
23
  hidden: boolean;
24
24
  base?: boolean | undefined;
25
- category?: string | null | undefined;
26
25
  color?: string | undefined;
26
+ category?: string | null | undefined;
27
27
  }, {
28
28
  name: string;
29
29
  hidden: boolean;
30
30
  base?: boolean | undefined;
31
- category?: string | null | undefined;
32
31
  color?: string | undefined;
32
+ category?: string | null | undefined;
33
33
  }>, "many">>>;
34
34
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
35
35
  id: z.ZodString;
@@ -52,14 +52,14 @@ export declare const zProcedureTypeSchema: z.ZodObject<{
52
52
  name: string;
53
53
  hidden: boolean;
54
54
  base?: boolean | undefined;
55
- category?: string | null | undefined;
56
55
  color?: string | undefined;
56
+ category?: string | null | undefined;
57
57
  }, {
58
58
  name: string;
59
59
  hidden: boolean;
60
60
  base?: boolean | undefined;
61
- category?: string | null | undefined;
62
61
  color?: string | undefined;
62
+ category?: string | null | undefined;
63
63
  }>, "many">>>;
64
64
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65
65
  id: z.ZodString;
@@ -82,14 +82,14 @@ export declare const zProcedureTypeSchema: z.ZodObject<{
82
82
  name: string;
83
83
  hidden: boolean;
84
84
  base?: boolean | undefined;
85
- category?: string | null | undefined;
86
85
  color?: string | undefined;
86
+ category?: string | null | undefined;
87
87
  }, {
88
88
  name: string;
89
89
  hidden: boolean;
90
90
  base?: boolean | undefined;
91
- category?: string | null | undefined;
92
91
  color?: string | undefined;
92
+ category?: string | null | undefined;
93
93
  }>, "many">>>;
94
94
  }, z.ZodTypeAny, "passthrough">>;
95
95
  export declare const zProcedureSchema: z.ZodObject<{
@@ -125,14 +125,14 @@ export declare const zProcedureSchema: z.ZodObject<{
125
125
  name: string;
126
126
  hidden: boolean;
127
127
  base?: boolean | undefined;
128
- category?: string | null | undefined;
129
128
  color?: string | undefined;
129
+ category?: string | null | undefined;
130
130
  }, {
131
131
  name: string;
132
132
  hidden: boolean;
133
133
  base?: boolean | undefined;
134
- category?: string | null | undefined;
135
134
  color?: string | undefined;
135
+ category?: string | null | undefined;
136
136
  }>, "many">>>;
137
137
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
138
138
  id: z.ZodString;
@@ -167,14 +167,14 @@ export declare const zProcedureSchema: z.ZodObject<{
167
167
  name: string;
168
168
  hidden: boolean;
169
169
  base?: boolean | undefined;
170
- category?: string | null | undefined;
171
170
  color?: string | undefined;
171
+ category?: string | null | undefined;
172
172
  }, {
173
173
  name: string;
174
174
  hidden: boolean;
175
175
  base?: boolean | undefined;
176
- category?: string | null | undefined;
177
176
  color?: string | undefined;
177
+ category?: string | null | undefined;
178
178
  }>, "many">>>;
179
179
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
180
180
  id: z.ZodString;
@@ -209,13 +209,13 @@ export declare const zProcedureSchema: z.ZodObject<{
209
209
  name: string;
210
210
  hidden: boolean;
211
211
  base?: boolean | undefined;
212
- category?: string | null | undefined;
213
212
  color?: string | undefined;
213
+ category?: string | null | undefined;
214
214
  }, {
215
215
  name: string;
216
216
  hidden: boolean;
217
217
  base?: boolean | undefined;
218
- category?: string | null | undefined;
219
218
  color?: string | undefined;
219
+ category?: string | null | undefined;
220
220
  }>, "many">>>;
221
221
  }, z.ZodTypeAny, "passthrough">>;
@@ -93,14 +93,14 @@ export declare const zEmployeeSchema: z.ZodObject<{
93
93
  name: string;
94
94
  hidden: boolean;
95
95
  base?: boolean | undefined;
96
- category?: string | null | undefined;
97
96
  color?: string | undefined;
97
+ category?: string | null | undefined;
98
98
  }, {
99
99
  name: string;
100
100
  hidden: boolean;
101
101
  base?: boolean | undefined;
102
- category?: string | null | undefined;
103
102
  color?: string | undefined;
103
+ category?: string | null | undefined;
104
104
  }>, "many">>>;
105
105
  userRef: z.ZodAny;
106
106
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -146,14 +146,14 @@ export declare const zEmployeeSchema: z.ZodObject<{
146
146
  name: string;
147
147
  hidden: boolean;
148
148
  base?: boolean | undefined;
149
- category?: string | null | undefined;
150
149
  color?: string | undefined;
150
+ category?: string | null | undefined;
151
151
  }, {
152
152
  name: string;
153
153
  hidden: boolean;
154
154
  base?: boolean | undefined;
155
- category?: string | null | undefined;
156
155
  color?: string | undefined;
156
+ category?: string | null | undefined;
157
157
  }>, "many">>>;
158
158
  userRef: z.ZodAny;
159
159
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -199,14 +199,14 @@ export declare const zEmployeeSchema: z.ZodObject<{
199
199
  name: string;
200
200
  hidden: boolean;
201
201
  base?: boolean | undefined;
202
- category?: string | null | undefined;
203
202
  color?: string | undefined;
203
+ category?: string | null | undefined;
204
204
  }, {
205
205
  name: string;
206
206
  hidden: boolean;
207
207
  base?: boolean | undefined;
208
- category?: string | null | undefined;
209
208
  color?: string | undefined;
209
+ category?: string | null | undefined;
210
210
  }>, "many">>>;
211
211
  userRef: z.ZodAny;
212
212
  }, z.ZodTypeAny, "passthrough">>;
@@ -236,14 +236,14 @@ export declare const zDepartmentSchema: z.ZodObject<{
236
236
  name: string;
237
237
  hidden: boolean;
238
238
  base?: boolean | undefined;
239
- category?: string | null | undefined;
240
239
  color?: string | undefined;
240
+ category?: string | null | undefined;
241
241
  }, {
242
242
  name: string;
243
243
  hidden: boolean;
244
244
  base?: boolean | undefined;
245
- category?: string | null | undefined;
246
245
  color?: string | undefined;
246
+ category?: string | null | undefined;
247
247
  }>, "many">>>;
248
248
  chat_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
249
249
  chat_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -273,14 +273,14 @@ export declare const zDepartmentSchema: z.ZodObject<{
273
273
  name: string;
274
274
  hidden: boolean;
275
275
  base?: boolean | undefined;
276
- category?: string | null | undefined;
277
276
  color?: string | undefined;
277
+ category?: string | null | undefined;
278
278
  }, {
279
279
  name: string;
280
280
  hidden: boolean;
281
281
  base?: boolean | undefined;
282
- category?: string | null | undefined;
283
282
  color?: string | undefined;
283
+ category?: string | null | undefined;
284
284
  }>, "many">>>;
285
285
  chat_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
286
286
  chat_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -310,14 +310,14 @@ export declare const zDepartmentSchema: z.ZodObject<{
310
310
  name: string;
311
311
  hidden: boolean;
312
312
  base?: boolean | undefined;
313
- category?: string | null | undefined;
314
313
  color?: string | undefined;
314
+ category?: string | null | undefined;
315
315
  }, {
316
316
  name: string;
317
317
  hidden: boolean;
318
318
  base?: boolean | undefined;
319
- category?: string | null | undefined;
320
319
  color?: string | undefined;
320
+ category?: string | null | undefined;
321
321
  }>, "many">>>;
322
322
  chat_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
323
323
  chat_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -359,14 +359,14 @@ export declare const zOfficeSchema: z.ZodObject<{
359
359
  name: string;
360
360
  hidden: boolean;
361
361
  base?: boolean | undefined;
362
- category?: string | null | undefined;
363
362
  color?: string | undefined;
363
+ category?: string | null | undefined;
364
364
  }, {
365
365
  name: string;
366
366
  hidden: boolean;
367
367
  base?: boolean | undefined;
368
- category?: string | null | undefined;
369
368
  color?: string | undefined;
369
+ category?: string | null | undefined;
370
370
  }>, "many">>>;
371
371
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
372
372
  id: z.ZodString;
@@ -405,14 +405,14 @@ export declare const zOfficeSchema: z.ZodObject<{
405
405
  name: string;
406
406
  hidden: boolean;
407
407
  base?: boolean | undefined;
408
- category?: string | null | undefined;
409
408
  color?: string | undefined;
409
+ category?: string | null | undefined;
410
410
  }, {
411
411
  name: string;
412
412
  hidden: boolean;
413
413
  base?: boolean | undefined;
414
- category?: string | null | undefined;
415
414
  color?: string | undefined;
415
+ category?: string | null | undefined;
416
416
  }>, "many">>>;
417
417
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
418
418
  id: z.ZodString;
@@ -451,14 +451,14 @@ export declare const zOfficeSchema: z.ZodObject<{
451
451
  name: string;
452
452
  hidden: boolean;
453
453
  base?: boolean | undefined;
454
- category?: string | null | undefined;
455
454
  color?: string | undefined;
455
+ category?: string | null | undefined;
456
456
  }, {
457
457
  name: string;
458
458
  hidden: boolean;
459
459
  base?: boolean | undefined;
460
- category?: string | null | undefined;
461
460
  color?: string | undefined;
461
+ category?: string | null | undefined;
462
462
  }>, "many">>>;
463
463
  }, z.ZodTypeAny, "passthrough">>;
464
464
  export declare const zCompanySchema: z.ZodObject<{
@@ -485,14 +485,14 @@ export declare const zCompanySchema: z.ZodObject<{
485
485
  name: string;
486
486
  hidden: boolean;
487
487
  base?: boolean | undefined;
488
- category?: string | null | undefined;
489
488
  color?: string | undefined;
489
+ category?: string | null | undefined;
490
490
  }, {
491
491
  name: string;
492
492
  hidden: boolean;
493
493
  base?: boolean | undefined;
494
- category?: string | null | undefined;
495
494
  color?: string | undefined;
495
+ category?: string | null | undefined;
496
496
  }>, "many">>>;
497
497
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
498
498
  id: z.ZodString;
@@ -518,14 +518,14 @@ export declare const zCompanySchema: z.ZodObject<{
518
518
  name: string;
519
519
  hidden: boolean;
520
520
  base?: boolean | undefined;
521
- category?: string | null | undefined;
522
521
  color?: string | undefined;
522
+ category?: string | null | undefined;
523
523
  }, {
524
524
  name: string;
525
525
  hidden: boolean;
526
526
  base?: boolean | undefined;
527
- category?: string | null | undefined;
528
527
  color?: string | undefined;
528
+ category?: string | null | undefined;
529
529
  }>, "many">>>;
530
530
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
531
531
  id: z.ZodString;
@@ -551,13 +551,13 @@ export declare const zCompanySchema: z.ZodObject<{
551
551
  name: string;
552
552
  hidden: boolean;
553
553
  base?: boolean | undefined;
554
- category?: string | null | undefined;
555
554
  color?: string | undefined;
555
+ category?: string | null | undefined;
556
556
  }, {
557
557
  name: string;
558
558
  hidden: boolean;
559
559
  base?: boolean | undefined;
560
- category?: string | null | undefined;
561
560
  color?: string | undefined;
561
+ category?: string | null | undefined;
562
562
  }>, "many">>>;
563
563
  }, z.ZodTypeAny, "passthrough">>;