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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zInsuranceSchema = exports.zInsurancePaymentTypeSchema = exports.zMedicalCouncilSchema = exports.zMedicalCouncilUFSchema = exports.zAllergySchema = exports.zAllergyKindSchema = exports.zChronicConditionSchema = exports.zSeveritySchema = exports.zMedicationSchema = exports.zAppointmentTypeSchema = exports.zAppointmentStatusSchema = exports.zDicAppointmentTypeBaseSchema = exports.zDicAppointmentStatusTypeSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zSpecialtySchema = exports.zSpecialtyTypeSchema = void 0;
3
+ exports.zInsuranceSchema = exports.zInsurancePaymentTypeSchema = exports.zAttachmentCategorySchema = exports.zPatientAttachmentBaseCategorySchema = exports.zMedicalCouncilSchema = exports.zMedicalCouncilUFSchema = exports.zAllergySchema = exports.zAllergyKindSchema = exports.zChronicConditionSchema = exports.zSeveritySchema = exports.zMedicationSchema = exports.zAppointmentTypeSchema = exports.zAppointmentStatusSchema = exports.zDicAppointmentTypeBaseSchema = exports.zDicAppointmentStatusTypeSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zSpecialtySchema = exports.zSpecialtyTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  exports.zSpecialtyTypeSchema = zod_schemas_1.zFireDocSchema
@@ -162,6 +162,45 @@ exports.zMedicalCouncilSchema = zod_schemas_1.zFireDocSchema
162
162
  country: zod_1.z.string().min(1).max(255).nullable().optional().default("Brasil"),
163
163
  })
164
164
  .passthrough();
165
+ exports.zPatientAttachmentBaseCategorySchema = zod_1.z.enum([
166
+ "identification_document",
167
+ "insurance_card",
168
+ "medical_exam",
169
+ "prescription",
170
+ "medical_report",
171
+ "payment_receipt",
172
+ "invoice",
173
+ "referral_letter",
174
+ "consent_form",
175
+ "authorization_form",
176
+ "sick_leave_certificate",
177
+ "treatment_plan",
178
+ "clinical_image",
179
+ "anamnesis_form",
180
+ "patient_form",
181
+ "insurance_authorization",
182
+ "lab_result",
183
+ "imaging_exam",
184
+ "surgical_document",
185
+ "discharge_summary",
186
+ "medication_list",
187
+ "vaccination_record",
188
+ "legal_document",
189
+ "administrative_document",
190
+ "other",
191
+ ]);
192
+ exports.zAttachmentCategorySchema = zod_schemas_1.zFireDocSchema
193
+ .extend({
194
+ display_name: zod_1.z.string().min(1).max(255),
195
+ base_category: exports.zPatientAttachmentBaseCategorySchema,
196
+ color: zod_1.z
197
+ .string()
198
+ .regex(/^#[0-9A-Fa-f]{6}$/)
199
+ .optional(),
200
+ order: zod_1.z.number().min(0).max(10000).optional(),
201
+ external_id: zod_1.z.string().nullable().optional(),
202
+ })
203
+ .passthrough();
165
204
  // Schema para InsurancePaymentType
166
205
  exports.zInsurancePaymentTypeSchema = zod_1.z.enum(["patient", "insurance"]);
167
206
  exports.zInsuranceSchema = zod_schemas_1.zFireDocSchema
@@ -176,6 +176,47 @@ export const zMedicalCouncilSchema = zFireDocSchema
176
176
  })
177
177
  .passthrough();
178
178
 
179
+ export const zPatientAttachmentBaseCategorySchema = z.enum([
180
+ "identification_document",
181
+ "insurance_card",
182
+ "medical_exam",
183
+ "prescription",
184
+ "medical_report",
185
+ "payment_receipt",
186
+ "invoice",
187
+ "referral_letter",
188
+ "consent_form",
189
+ "authorization_form",
190
+ "sick_leave_certificate",
191
+ "treatment_plan",
192
+ "clinical_image",
193
+ "anamnesis_form",
194
+ "patient_form",
195
+ "insurance_authorization",
196
+ "lab_result",
197
+ "imaging_exam",
198
+ "surgical_document",
199
+ "discharge_summary",
200
+ "medication_list",
201
+ "vaccination_record",
202
+ "legal_document",
203
+ "administrative_document",
204
+ "other",
205
+ ]);
206
+
207
+ export const zAttachmentCategorySchema = zFireDocSchema
208
+ .extend({
209
+ display_name: z.string().min(1).max(255),
210
+ base_category: zPatientAttachmentBaseCategorySchema,
211
+ color: z
212
+ .string()
213
+ .regex(/^#[0-9A-Fa-f]{6}$/)
214
+ .optional(),
215
+ order: z.number().min(0).max(10000).optional(),
216
+ external_id: z.string().nullable().optional(),
217
+ })
218
+ .passthrough();
219
+
179
220
  // Schema para InsurancePaymentType
180
221
  export const zInsurancePaymentTypeSchema = z.enum(["patient", "insurance"]);
181
222
 
@@ -182,14 +182,14 @@ export declare const zInsuranceCompanySchema: z.ZodObject<{
182
182
  name: string;
183
183
  hidden: boolean;
184
184
  base?: boolean | undefined;
185
- category?: string | null | undefined;
186
185
  color?: string | undefined;
186
+ category?: string | null | undefined;
187
187
  }, {
188
188
  name: string;
189
189
  hidden: boolean;
190
190
  base?: boolean | undefined;
191
- category?: string | null | undefined;
192
191
  color?: string | undefined;
192
+ category?: string | null | undefined;
193
193
  }>, "many">>>;
194
194
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
195
195
  id: z.ZodString;
@@ -309,14 +309,14 @@ export declare const zInsuranceCompanySchema: z.ZodObject<{
309
309
  name: string;
310
310
  hidden: boolean;
311
311
  base?: boolean | undefined;
312
- category?: string | null | undefined;
313
312
  color?: string | undefined;
313
+ category?: string | null | undefined;
314
314
  }, {
315
315
  name: string;
316
316
  hidden: boolean;
317
317
  base?: boolean | undefined;
318
- category?: string | null | undefined;
319
318
  color?: string | undefined;
319
+ category?: string | null | undefined;
320
320
  }>, "many">>>;
321
321
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
322
322
  id: z.ZodString;
@@ -436,13 +436,13 @@ export declare const zInsuranceCompanySchema: z.ZodObject<{
436
436
  name: string;
437
437
  hidden: boolean;
438
438
  base?: boolean | undefined;
439
- category?: string | null | undefined;
440
439
  color?: string | undefined;
440
+ category?: string | null | undefined;
441
441
  }, {
442
442
  name: string;
443
443
  hidden: boolean;
444
444
  base?: boolean | undefined;
445
- category?: string | null | undefined;
446
445
  color?: string | undefined;
446
+ category?: string | null | undefined;
447
447
  }>, "many">>>;
448
448
  }, z.ZodTypeAny, "passthrough">>;