evo360-types 1.3.363 → 1.3.364
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-activity/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-chat/contact/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-chat/dic/ticket-close/zod-schemas.d.ts +12 -12
- package/dist/apps/evo-chat/message/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-crm/dic/zod-schemas.d.ts +18 -18
- package/dist/apps/evo-crm/lead/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-med/appointment/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-med/calendar/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +50 -6
- package/dist/apps/evo-med/dic/zod-schemas.js +40 -1
- package/dist/apps/evo-med/dic/zod-schemas.ts +41 -0
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-med/people/zod-schemas.d.ts +497 -12
- package/dist/apps/evo-med/people/zod-schemas.js +34 -4
- package/dist/apps/evo-med/people/zod-schemas.ts +33 -0
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +12 -12
- package/dist/apps/evo-people/zod-schemas.d.ts +24 -24
- package/dist/apps/evo-survey/zod-schemas.d.ts +58 -58
- package/dist/apps/evo-task/zod-schemas.d.ts +54 -54
- package/dist/apps/shared/zod-schemas.d.ts +2 -2
- package/dist/types/evo-med/dic/index.d.ts +40 -2
- package/dist/types/evo-med/dic/index.js +34 -1
- package/dist/types/evo-med/dic/index.ts +49 -1
- package/dist/types/evo-med/fb_collections.d.ts +2 -0
- package/dist/types/evo-med/fb_collections.js +3 -1
- package/dist/types/evo-med/fb_collections.ts +3 -0
- package/dist/types/evo-med/people/index.d.ts +23 -2
- package/dist/types/evo-med/people/index.ts +21 -1
- package/package.json +1 -1
|
@@ -12,6 +12,8 @@ export declare const PROCEDURES_TYPES_COLLECTION = "procedures-types";
|
|
|
12
12
|
export declare const PROCEDURES_COLLECTION = "procedures";
|
|
13
13
|
export declare const COUNCILS = "councils";
|
|
14
14
|
export declare const MEDICAL_COUNCILS_COLLECTION = "medical-councils";
|
|
15
|
+
export declare const ATTACHMENT_CATEGORIES = "attachment_categories";
|
|
16
|
+
export declare const ATTACHMENT_CATEGORIES_COLLECTION = "attachment_categories";
|
|
15
17
|
export declare const SOURCES = "sources";
|
|
16
18
|
export declare const PATIENT_SOURCES_COLLECTION = "patient_sources";
|
|
17
19
|
export declare const APPOINTMENTS = "appointments";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CHRONIC_CONDITIONS_COLLECTION = exports.ALLERGIES_COLLECTION = exports.DISEASES = exports.APPOINTMENTS_COLLECTION = exports.APPOINTMENT_REQUEST_TYPES_COLLECTION = exports.APPOINTMENT_TYPES_COLLECTION = exports.APPOINTMENT_STATUSES_COLLECTION = exports.APPOINTMENT_SOURCES_COLLECTION = exports.APPOINTMENTS = exports.PATIENT_SOURCES_COLLECTION = exports.SOURCES = exports.MEDICAL_COUNCILS_COLLECTION = exports.COUNCILS = exports.PROCEDURES_COLLECTION = exports.PROCEDURES_TYPES_COLLECTION = exports.PROCEDURES = exports.SPECIALTIES_COLLECTION = exports.SPECIALTIES_TYPES_COLLECTION = exports.SPECIALTIES = exports.DICS_COLLECTION = exports.CALENDARS_COLLECTION = exports.INSURANCES_COLLECTION = exports.PATIENTS_COLLECTION = exports.PROFESSIONALS_COLLECTION = exports.EVO_MED_APP = void 0;
|
|
3
|
+
exports.CHRONIC_CONDITIONS_COLLECTION = exports.ALLERGIES_COLLECTION = exports.DISEASES = exports.APPOINTMENTS_COLLECTION = exports.APPOINTMENT_REQUEST_TYPES_COLLECTION = exports.APPOINTMENT_TYPES_COLLECTION = exports.APPOINTMENT_STATUSES_COLLECTION = exports.APPOINTMENT_SOURCES_COLLECTION = exports.APPOINTMENTS = exports.PATIENT_SOURCES_COLLECTION = exports.SOURCES = exports.ATTACHMENT_CATEGORIES_COLLECTION = exports.ATTACHMENT_CATEGORIES = exports.MEDICAL_COUNCILS_COLLECTION = exports.COUNCILS = exports.PROCEDURES_COLLECTION = exports.PROCEDURES_TYPES_COLLECTION = exports.PROCEDURES = exports.SPECIALTIES_COLLECTION = exports.SPECIALTIES_TYPES_COLLECTION = exports.SPECIALTIES = exports.DICS_COLLECTION = exports.CALENDARS_COLLECTION = exports.INSURANCES_COLLECTION = exports.PATIENTS_COLLECTION = exports.PROFESSIONALS_COLLECTION = exports.EVO_MED_APP = void 0;
|
|
4
4
|
//EVO Med Application Doc
|
|
5
5
|
exports.EVO_MED_APP = "evo-med";
|
|
6
6
|
//people
|
|
@@ -20,6 +20,8 @@ exports.PROCEDURES_TYPES_COLLECTION = "procedures-types";
|
|
|
20
20
|
exports.PROCEDURES_COLLECTION = "procedures";
|
|
21
21
|
exports.COUNCILS = "councils";
|
|
22
22
|
exports.MEDICAL_COUNCILS_COLLECTION = "medical-councils";
|
|
23
|
+
exports.ATTACHMENT_CATEGORIES = "attachment_categories";
|
|
24
|
+
exports.ATTACHMENT_CATEGORIES_COLLECTION = "attachment_categories";
|
|
23
25
|
exports.SOURCES = "sources";
|
|
24
26
|
exports.PATIENT_SOURCES_COLLECTION = "patient_sources";
|
|
25
27
|
exports.APPOINTMENTS = "appointments";
|
|
@@ -23,6 +23,9 @@ export const PROCEDURES_COLLECTION = "procedures";
|
|
|
23
23
|
export const COUNCILS = "councils";
|
|
24
24
|
export const MEDICAL_COUNCILS_COLLECTION = "medical-councils";
|
|
25
25
|
|
|
26
|
+
export const ATTACHMENT_CATEGORIES = "attachment_categories";
|
|
27
|
+
export const ATTACHMENT_CATEGORIES_COLLECTION = "attachment_categories";
|
|
28
|
+
|
|
26
29
|
export const SOURCES = "sources";
|
|
27
30
|
export const PATIENT_SOURCES_COLLECTION = "patient_sources";
|
|
28
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "../fb_collections";
|
|
2
2
|
import { IProfile } from "../../evo-people";
|
|
3
|
-
import type { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
|
|
4
|
-
import { IMedication } from "../dic";
|
|
3
|
+
import type { FirestoreDocumentReference, IAddress, IContact, IExternalLink, ITag } from "../../shared";
|
|
4
|
+
import { IMedication, PatientAttachmentBaseCategory } from "../dic";
|
|
5
5
|
export declare const EvoMedProfessionalPermissions: {
|
|
6
6
|
readonly List: "evo_med_people_professional_read";
|
|
7
7
|
readonly Get: "evo_med_people_professional_read";
|
|
@@ -123,6 +123,25 @@ export interface IPatientAllergy {
|
|
|
123
123
|
ref?: FirestoreDocumentReference;
|
|
124
124
|
severity?: Severity | null;
|
|
125
125
|
}
|
|
126
|
+
export interface IPatientAttachment {
|
|
127
|
+
id: string;
|
|
128
|
+
filename: string;
|
|
129
|
+
originalFilename: string;
|
|
130
|
+
contentType: string;
|
|
131
|
+
size: number;
|
|
132
|
+
storagePath: string;
|
|
133
|
+
category: string;
|
|
134
|
+
baseCategory: PatientAttachmentBaseCategory;
|
|
135
|
+
categoryColor?: string;
|
|
136
|
+
externalLinks?: IExternalLink[];
|
|
137
|
+
externalLinkKeys?: string[];
|
|
138
|
+
uploadedBy?: {
|
|
139
|
+
userId: string;
|
|
140
|
+
displayName: string;
|
|
141
|
+
};
|
|
142
|
+
uploadedAt: Date;
|
|
143
|
+
updatedAt?: Date;
|
|
144
|
+
}
|
|
126
145
|
export interface IAppointmentCounters {
|
|
127
146
|
statusBase?: Record<string, number>;
|
|
128
147
|
appointmentBaseType?: Record<string, number>;
|
|
@@ -147,6 +166,8 @@ export interface IPatient extends IProfile {
|
|
|
147
166
|
chronic_conditions?: IPatientChronicCondition[] | null;
|
|
148
167
|
notes?: string | null;
|
|
149
168
|
appointmentCounters?: IAppointmentCounters | null;
|
|
169
|
+
attachments?: IPatientAttachment[] | null;
|
|
170
|
+
attachmentExternalLinkKeys?: string[] | null;
|
|
150
171
|
tags?: ITag[] | null;
|
|
151
172
|
userRef?: FirestoreDocumentReference;
|
|
152
173
|
[key: string]: unknown;
|
|
@@ -4,9 +4,10 @@ import type {
|
|
|
4
4
|
FirestoreDocumentReference,
|
|
5
5
|
IAddress,
|
|
6
6
|
IContact,
|
|
7
|
+
IExternalLink,
|
|
7
8
|
ITag,
|
|
8
9
|
} from "../../shared";
|
|
9
|
-
import { IMedication } from "../dic";
|
|
10
|
+
import { IMedication, PatientAttachmentBaseCategory } from "../dic";
|
|
10
11
|
|
|
11
12
|
// Permissões para o médico
|
|
12
13
|
export const EvoMedProfessionalPermissions = {
|
|
@@ -185,6 +186,23 @@ export interface IPatientAllergy {
|
|
|
185
186
|
severity?: Severity | null; // Nível de gravidade
|
|
186
187
|
}
|
|
187
188
|
|
|
189
|
+
export interface IPatientAttachment {
|
|
190
|
+
id: string;
|
|
191
|
+
filename: string;
|
|
192
|
+
originalFilename: string;
|
|
193
|
+
contentType: string;
|
|
194
|
+
size: number;
|
|
195
|
+
storagePath: string;
|
|
196
|
+
category: string;
|
|
197
|
+
baseCategory: PatientAttachmentBaseCategory;
|
|
198
|
+
categoryColor?: string;
|
|
199
|
+
externalLinks?: IExternalLink[];
|
|
200
|
+
externalLinkKeys?: string[];
|
|
201
|
+
uploadedBy?: { userId: string; displayName: string };
|
|
202
|
+
uploadedAt: Date;
|
|
203
|
+
updatedAt?: Date;
|
|
204
|
+
}
|
|
205
|
+
|
|
188
206
|
// Interface para contadores de appointments (usada em Patient e Calendar)
|
|
189
207
|
export interface IAppointmentCounters {
|
|
190
208
|
statusBase?: Record<string, number>; // Contadores por statusBase (ex: scheduled, in_progress, cancelled, etc.)
|
|
@@ -213,6 +231,8 @@ export interface IPatient extends IProfile {
|
|
|
213
231
|
notes?: string | null; // Anotações sobre o paciente
|
|
214
232
|
// Contadores de appointments
|
|
215
233
|
appointmentCounters?: IAppointmentCounters | null;
|
|
234
|
+
attachments?: IPatientAttachment[] | null;
|
|
235
|
+
attachmentExternalLinkKeys?: string[] | null;
|
|
216
236
|
tags?: ITag[] | null;
|
|
217
237
|
userRef?: FirestoreDocumentReference;
|
|
218
238
|
[key: string]: unknown; // index signature
|