evo360-types 1.2.26 → 1.2.28
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.
- package/dist/apps/evo-med/people/zod-schemas.d.ts +6 -0
- package/dist/apps/evo-med/people/zod-schemas.js +2 -0
- package/dist/apps/evo-med/people/zod-schemas.ts +2 -0
- package/dist/types/evo-med/dic/index.d.ts +8 -1
- package/dist/types/evo-med/dic/index.js +8 -1
- package/dist/types/evo-med/dic/index.ts +9 -1
- package/dist/types/evo-med/people/index.d.ts +4 -2
- package/dist/types/evo-med/people/index.ts +3 -1
- package/package.json +1 -1
|
@@ -113,6 +113,8 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
113
113
|
ref?: any;
|
|
114
114
|
}>, "many">>>;
|
|
115
115
|
date_joining: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
116
|
+
company_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
117
|
+
companyRef: z.ZodAny;
|
|
116
118
|
department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
119
|
departmentRef: z.ZodAny;
|
|
118
120
|
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -241,6 +243,8 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
241
243
|
ref?: any;
|
|
242
244
|
}>, "many">>>;
|
|
243
245
|
date_joining: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
246
|
+
company_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
247
|
+
companyRef: z.ZodAny;
|
|
244
248
|
department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
249
|
departmentRef: z.ZodAny;
|
|
246
250
|
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -369,6 +373,8 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
369
373
|
ref?: any;
|
|
370
374
|
}>, "many">>>;
|
|
371
375
|
date_joining: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
376
|
+
company_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
377
|
+
companyRef: z.ZodAny;
|
|
372
378
|
department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
373
379
|
departmentRef: z.ZodAny;
|
|
374
380
|
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -39,6 +39,8 @@ exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from Profil
|
|
|
39
39
|
specialties: zod_1.z.array(exports.zProfessionalSpecialtySchema).nullable().optional(),
|
|
40
40
|
offices: zod_1.z.array(exports.zProfessionalOfficeSchema).nullable().optional(),
|
|
41
41
|
date_joining: zod_1.z.date().nullable().optional(),
|
|
42
|
+
company_name: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
43
|
+
companyRef: zod_1.z.any(),
|
|
42
44
|
department_name: zod_1.z.string().max(255).nullable().optional(),
|
|
43
45
|
departmentRef: zod_1.z.any(),
|
|
44
46
|
address: zod_schemas_2.zAddressSchema.nullable().optional(),
|
|
@@ -52,6 +52,8 @@ export const zProfessionalSchema = zProfileSchema // Extend from ProfileSchema
|
|
|
52
52
|
specialties: z.array(zProfessionalSpecialtySchema).nullable().optional(),
|
|
53
53
|
offices: z.array(zProfessionalOfficeSchema).nullable().optional(),
|
|
54
54
|
date_joining: z.date().nullable().optional(),
|
|
55
|
+
company_name: z.string().max(255).nullable().optional().default(""),
|
|
56
|
+
companyRef: z.any(),
|
|
55
57
|
department_name: z.string().max(255).nullable().optional(),
|
|
56
58
|
departmentRef: z.any(),
|
|
57
59
|
address: zAddressSchema.nullable().optional(),
|
|
@@ -99,10 +99,17 @@ export interface IChronicCondition extends IFireDoc {
|
|
|
99
99
|
medications?: IMedication[] | null;
|
|
100
100
|
notes?: string | null;
|
|
101
101
|
}
|
|
102
|
+
export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
|
|
103
|
+
export declare enum IAllergyKind {
|
|
104
|
+
Food = "Food",
|
|
105
|
+
Drug = "Drug",
|
|
106
|
+
Insect = "Insect",
|
|
107
|
+
Other = "Other"
|
|
108
|
+
}
|
|
102
109
|
export interface IAllergy extends IFireDoc {
|
|
103
110
|
code: string;
|
|
104
111
|
name: string;
|
|
105
|
-
kind?:
|
|
112
|
+
kind?: AllergyKind | null;
|
|
106
113
|
}
|
|
107
114
|
export interface IMedicalCouncil extends IFireDoc {
|
|
108
115
|
name: string;
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.IAppointmentStatusType = exports.IMedDicAction = void 0;
|
|
17
|
+
exports.IAllergyKind = exports.IAppointmentStatusType = exports.IMedDicAction = void 0;
|
|
18
18
|
__exportStar(require("../../evo-people/fb_collections"), exports);
|
|
19
19
|
var IMedDicAction;
|
|
20
20
|
(function (IMedDicAction) {
|
|
@@ -49,3 +49,10 @@ var IAppointmentStatusType;
|
|
|
49
49
|
IAppointmentStatusType["Canceled"] = "cx";
|
|
50
50
|
IAppointmentStatusType["NoShow"] = "ns";
|
|
51
51
|
})(IAppointmentStatusType || (exports.IAppointmentStatusType = IAppointmentStatusType = {}));
|
|
52
|
+
var IAllergyKind;
|
|
53
|
+
(function (IAllergyKind) {
|
|
54
|
+
IAllergyKind["Food"] = "Food";
|
|
55
|
+
IAllergyKind["Drug"] = "Drug";
|
|
56
|
+
IAllergyKind["Insect"] = "Insect";
|
|
57
|
+
IAllergyKind["Other"] = "Other";
|
|
58
|
+
})(IAllergyKind || (exports.IAllergyKind = IAllergyKind = {}));
|
|
@@ -137,10 +137,18 @@ export interface IChronicCondition extends IFireDoc {
|
|
|
137
137
|
notes?: string | null; // Observações adicionais
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
|
|
141
|
+
export enum IAllergyKind {
|
|
142
|
+
Food = "Food",
|
|
143
|
+
Drug = "Drug",
|
|
144
|
+
Insect = "Insect",
|
|
145
|
+
Other = "Other",
|
|
146
|
+
}
|
|
147
|
+
|
|
140
148
|
export interface IAllergy extends IFireDoc {
|
|
141
149
|
code: string;
|
|
142
150
|
name: string;
|
|
143
|
-
kind?:
|
|
151
|
+
kind?: AllergyKind | null;
|
|
144
152
|
}
|
|
145
153
|
|
|
146
154
|
export interface IMedicalCouncil extends IFireDoc {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "../fb_collections";
|
|
2
2
|
import { IProfile } from "../../evo-people";
|
|
3
3
|
import type { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
|
|
4
|
-
import {
|
|
4
|
+
import { IMedication } from "../dic";
|
|
5
5
|
export type MedPeopleAction = "CREATE_PROFESSIONAL" | "DELETE_PROFESSIONAL" | "UPDATE_PROFESSIONAL" | "UPDATE_PROFESSIONAL_PHOTO" | "UPDATE_PROFESSIONAL_PROFILE" | "UPDATE_PROFESSIONAL_PASSWORD" | "UPDATE_PROFESSIONAL_REPORT_TO" | "UPDATE_PROFESSIONAL_DEPARTMENT" | "UPDATE_PROFESSIONAL_OFFICE" | "UPDATE_PROFESSIONAL_COMPANY" | "UPDATE_PROFESSIONAL_JOB_TITLE" | "UPDATE_PROFESSIONAL_WORK_EMAIL" | "UPDATE_PROFESSIONAL_STATUS";
|
|
6
6
|
export declare enum IMedPeopleAction {
|
|
7
7
|
Create_professional = "CREATE_PROFESSIONAL",
|
|
@@ -51,6 +51,8 @@ export interface IProfessional extends IProfile {
|
|
|
51
51
|
specialties?: IProfessionalSpecialty[] | null;
|
|
52
52
|
offices?: IProfessionalOffice[] | null;
|
|
53
53
|
date_joining?: Date | null;
|
|
54
|
+
company_name?: string | null;
|
|
55
|
+
companyRef?: FirestoreDocumentReference;
|
|
54
56
|
department_name?: string | null;
|
|
55
57
|
departmentRef?: FirestoreDocumentReference;
|
|
56
58
|
address?: IAddress | null;
|
|
@@ -113,7 +115,7 @@ export interface IPatient extends IProfile {
|
|
|
113
115
|
height_cm?: number | null;
|
|
114
116
|
weight_kg?: number | null;
|
|
115
117
|
blood_type?: BloodType | null;
|
|
116
|
-
allergies?:
|
|
118
|
+
allergies?: IPatientAllergy[] | null;
|
|
117
119
|
chronic_conditions?: IPatientChronicCondition[] | null;
|
|
118
120
|
tags?: ITag[] | null;
|
|
119
121
|
userRef?: FirestoreDocumentReference;
|
|
@@ -88,6 +88,8 @@ export interface IProfessional extends IProfile {
|
|
|
88
88
|
specialties?: IProfessionalSpecialty[] | null;
|
|
89
89
|
offices?: IProfessionalOffice[] | null;
|
|
90
90
|
date_joining?: Date | null;
|
|
91
|
+
company_name?: string | null;
|
|
92
|
+
companyRef?: FirestoreDocumentReference;
|
|
91
93
|
department_name?: string | null;
|
|
92
94
|
departmentRef?: FirestoreDocumentReference;
|
|
93
95
|
address?: IAddress | null;
|
|
@@ -176,7 +178,7 @@ export interface IPatient extends IProfile {
|
|
|
176
178
|
height_cm?: number | null; // Altura em centímetros
|
|
177
179
|
weight_kg?: number | null; // Peso em kg
|
|
178
180
|
blood_type?: BloodType | null; // Tipo sanguíneo
|
|
179
|
-
allergies?:
|
|
181
|
+
allergies?: IPatientAllergy[] | null; // Lista de alergias conhecidas
|
|
180
182
|
chronic_conditions?: IPatientChronicCondition[] | null; // Lista de doenças crônicas do paciente
|
|
181
183
|
tags?: ITag[] | null;
|
|
182
184
|
userRef?: FirestoreDocumentReference;
|