@blackcode_sa/metaestetics-api 1.4.15 → 1.4.17
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/index.d.mts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +40 -0
- package/dist/index.mjs +39 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/services/auth.service.ts +18 -1
- package/src/types/clinic/index.ts +6 -1
- package/src/types/clinic/preferences.types.ts +40 -0
package/dist/index.d.mts
CHANGED
|
@@ -865,6 +865,32 @@ declare enum ClinicTag {
|
|
|
865
865
|
NIGHT_SHIFT = "night_shift",
|
|
866
866
|
HOLIDAY_HOURS = "holiday_hours"
|
|
867
867
|
}
|
|
868
|
+
/**
|
|
869
|
+
* Enum for clinic photo tags
|
|
870
|
+
* Used to categorize photos of different areas/parts of the clinic
|
|
871
|
+
*/
|
|
872
|
+
declare enum ClinicPhotoTag {
|
|
873
|
+
BUILDING_EXTERIOR = "building_exterior",
|
|
874
|
+
ENTRANCE = "entrance",
|
|
875
|
+
PARKING = "parking",
|
|
876
|
+
RECEPTION = "reception",
|
|
877
|
+
WAITING_ROOM = "waiting_room",
|
|
878
|
+
HALLWAY = "hallway",
|
|
879
|
+
EXAM_ROOM = "exam_room",
|
|
880
|
+
TREATMENT_ROOM = "treatment_room",
|
|
881
|
+
LABORATORY = "laboratory",
|
|
882
|
+
XRAY_ROOM = "xray_room",
|
|
883
|
+
ULTRASOUND_ROOM = "ultrasound_room",
|
|
884
|
+
DENTAL_OFFICE = "dental_office",
|
|
885
|
+
OPERATING_ROOM = "operating_room",
|
|
886
|
+
RECOVERY_ROOM = "recovery_room",
|
|
887
|
+
MEDICAL_EQUIPMENT = "medical_equipment",
|
|
888
|
+
PHARMACY = "pharmacy",
|
|
889
|
+
CAFETERIA = "cafeteria",
|
|
890
|
+
CHILDREN_AREA = "children_area",
|
|
891
|
+
STAFF = "staff",
|
|
892
|
+
OTHER = "other"
|
|
893
|
+
}
|
|
868
894
|
|
|
869
895
|
declare const CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
870
896
|
declare const CLINIC_ADMINS_COLLECTION = "clinic_admins";
|
|
@@ -11904,4 +11930,4 @@ interface Technology {
|
|
|
11904
11930
|
updatedAt: Date;
|
|
11905
11931
|
}
|
|
11906
11932
|
|
|
11907
|
-
export { AUTH_ERRORS, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type AppointmentNotification, type AppointmentReminderNotification, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type Category, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, type ClinicReview, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, FILLED_DOCUMENTS_COLLECTION, type FilledDocument, FilledDocumentService, FilledDocumentStatus, FirebaseErrorCode, type FirebaseUser, FoodAllergySubtype, type GamificationInfo, Gender, HeadingLevel, Language, ListType, type LocationData, MedicationAllergySubtype, type Notification, NotificationService, NotificationStatus, NotificationType, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, type PatientClinic, type PatientDoctor, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientSensitiveInfo, PatientService, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerReview, PractitionerService, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, ProcedureFamily, type Product, type Requirement, type ReviewInfo, type ServiceInfo, type Subcategory, SubscriptionModel, type Technology, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateBlockingConditionData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateVitalStatsData, type User, UserRole, UserService, type ValidationSchema, type VitalStats, type WorkingHours, addAllergySchema, addBlockingConditionSchema, addContraindicationSchema, addMedicationSchema, addressDataSchema, adminInfoSchema, adminTokenSchema, allergySchema, allergySubtypeSchema, appointmentNotificationSchema, appointmentReminderNotificationSchema, baseNotificationSchema, blockingConditionSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicInfoSchema, clinicLocationSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerSchema, createUserOptionsSchema, doctorInfoSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicProceduresSchema, practitionerReviewSchema, practitionerSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, reviewInfoSchema, serviceInfoSchema, timestampSchema, updateAllergySchema, updateBlockingConditionSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
|
11933
|
+
export { AUTH_ERRORS, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type AppointmentNotification, type AppointmentReminderNotification, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type Category, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, FILLED_DOCUMENTS_COLLECTION, type FilledDocument, FilledDocumentService, FilledDocumentStatus, FirebaseErrorCode, type FirebaseUser, FoodAllergySubtype, type GamificationInfo, Gender, HeadingLevel, Language, ListType, type LocationData, MedicationAllergySubtype, type Notification, NotificationService, NotificationStatus, NotificationType, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, type PatientClinic, type PatientDoctor, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientSensitiveInfo, PatientService, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerReview, PractitionerService, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, ProcedureFamily, type Product, type Requirement, type ReviewInfo, type ServiceInfo, type Subcategory, SubscriptionModel, type Technology, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateBlockingConditionData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateVitalStatsData, type User, UserRole, UserService, type ValidationSchema, type VitalStats, type WorkingHours, addAllergySchema, addBlockingConditionSchema, addContraindicationSchema, addMedicationSchema, addressDataSchema, adminInfoSchema, adminTokenSchema, allergySchema, allergySubtypeSchema, appointmentNotificationSchema, appointmentReminderNotificationSchema, baseNotificationSchema, blockingConditionSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicInfoSchema, clinicLocationSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerSchema, createUserOptionsSchema, doctorInfoSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicProceduresSchema, practitionerReviewSchema, practitionerSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, reviewInfoSchema, serviceInfoSchema, timestampSchema, updateAllergySchema, updateBlockingConditionSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -865,6 +865,32 @@ declare enum ClinicTag {
|
|
|
865
865
|
NIGHT_SHIFT = "night_shift",
|
|
866
866
|
HOLIDAY_HOURS = "holiday_hours"
|
|
867
867
|
}
|
|
868
|
+
/**
|
|
869
|
+
* Enum for clinic photo tags
|
|
870
|
+
* Used to categorize photos of different areas/parts of the clinic
|
|
871
|
+
*/
|
|
872
|
+
declare enum ClinicPhotoTag {
|
|
873
|
+
BUILDING_EXTERIOR = "building_exterior",
|
|
874
|
+
ENTRANCE = "entrance",
|
|
875
|
+
PARKING = "parking",
|
|
876
|
+
RECEPTION = "reception",
|
|
877
|
+
WAITING_ROOM = "waiting_room",
|
|
878
|
+
HALLWAY = "hallway",
|
|
879
|
+
EXAM_ROOM = "exam_room",
|
|
880
|
+
TREATMENT_ROOM = "treatment_room",
|
|
881
|
+
LABORATORY = "laboratory",
|
|
882
|
+
XRAY_ROOM = "xray_room",
|
|
883
|
+
ULTRASOUND_ROOM = "ultrasound_room",
|
|
884
|
+
DENTAL_OFFICE = "dental_office",
|
|
885
|
+
OPERATING_ROOM = "operating_room",
|
|
886
|
+
RECOVERY_ROOM = "recovery_room",
|
|
887
|
+
MEDICAL_EQUIPMENT = "medical_equipment",
|
|
888
|
+
PHARMACY = "pharmacy",
|
|
889
|
+
CAFETERIA = "cafeteria",
|
|
890
|
+
CHILDREN_AREA = "children_area",
|
|
891
|
+
STAFF = "staff",
|
|
892
|
+
OTHER = "other"
|
|
893
|
+
}
|
|
868
894
|
|
|
869
895
|
declare const CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
870
896
|
declare const CLINIC_ADMINS_COLLECTION = "clinic_admins";
|
|
@@ -11904,4 +11930,4 @@ interface Technology {
|
|
|
11904
11930
|
updatedAt: Date;
|
|
11905
11931
|
}
|
|
11906
11932
|
|
|
11907
|
-
export { AUTH_ERRORS, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type AppointmentNotification, type AppointmentReminderNotification, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type Category, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, type ClinicReview, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, FILLED_DOCUMENTS_COLLECTION, type FilledDocument, FilledDocumentService, FilledDocumentStatus, FirebaseErrorCode, type FirebaseUser, FoodAllergySubtype, type GamificationInfo, Gender, HeadingLevel, Language, ListType, type LocationData, MedicationAllergySubtype, type Notification, NotificationService, NotificationStatus, NotificationType, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, type PatientClinic, type PatientDoctor, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientSensitiveInfo, PatientService, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerReview, PractitionerService, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, ProcedureFamily, type Product, type Requirement, type ReviewInfo, type ServiceInfo, type Subcategory, SubscriptionModel, type Technology, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateBlockingConditionData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateVitalStatsData, type User, UserRole, UserService, type ValidationSchema, type VitalStats, type WorkingHours, addAllergySchema, addBlockingConditionSchema, addContraindicationSchema, addMedicationSchema, addressDataSchema, adminInfoSchema, adminTokenSchema, allergySchema, allergySubtypeSchema, appointmentNotificationSchema, appointmentReminderNotificationSchema, baseNotificationSchema, blockingConditionSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicInfoSchema, clinicLocationSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerSchema, createUserOptionsSchema, doctorInfoSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicProceduresSchema, practitionerReviewSchema, practitionerSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, reviewInfoSchema, serviceInfoSchema, timestampSchema, updateAllergySchema, updateBlockingConditionSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
|
11933
|
+
export { AUTH_ERRORS, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type AppointmentNotification, type AppointmentReminderNotification, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type Category, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, FILLED_DOCUMENTS_COLLECTION, type FilledDocument, FilledDocumentService, FilledDocumentStatus, FirebaseErrorCode, type FirebaseUser, FoodAllergySubtype, type GamificationInfo, Gender, HeadingLevel, Language, ListType, type LocationData, MedicationAllergySubtype, type Notification, NotificationService, NotificationStatus, NotificationType, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, type PatientClinic, type PatientDoctor, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientSensitiveInfo, PatientService, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerReview, PractitionerService, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, ProcedureFamily, type Product, type Requirement, type ReviewInfo, type ServiceInfo, type Subcategory, SubscriptionModel, type Technology, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateBlockingConditionData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateVitalStatsData, type User, UserRole, UserService, type ValidationSchema, type VitalStats, type WorkingHours, addAllergySchema, addBlockingConditionSchema, addContraindicationSchema, addMedicationSchema, addressDataSchema, adminInfoSchema, adminTokenSchema, allergySchema, allergySubtypeSchema, appointmentNotificationSchema, appointmentReminderNotificationSchema, baseNotificationSchema, blockingConditionSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicInfoSchema, clinicLocationSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerSchema, createUserOptionsSchema, doctorInfoSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicProceduresSchema, practitionerReviewSchema, practitionerSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, reviewInfoSchema, serviceInfoSchema, timestampSchema, updateAllergySchema, updateBlockingConditionSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __export(index_exports, {
|
|
|
32
32
|
CertificationSpecialty: () => CertificationSpecialty,
|
|
33
33
|
ClinicAdminService: () => ClinicAdminService,
|
|
34
34
|
ClinicGroupService: () => ClinicGroupService,
|
|
35
|
+
ClinicPhotoTag: () => ClinicPhotoTag,
|
|
35
36
|
ClinicService: () => ClinicService,
|
|
36
37
|
ClinicTag: () => ClinicTag,
|
|
37
38
|
Contraindication: () => Contraindication,
|
|
@@ -2245,6 +2246,29 @@ var ClinicTag = /* @__PURE__ */ ((ClinicTag4) => {
|
|
|
2245
2246
|
ClinicTag4["HOLIDAY_HOURS"] = "holiday_hours";
|
|
2246
2247
|
return ClinicTag4;
|
|
2247
2248
|
})(ClinicTag || {});
|
|
2249
|
+
var ClinicPhotoTag = /* @__PURE__ */ ((ClinicPhotoTag2) => {
|
|
2250
|
+
ClinicPhotoTag2["BUILDING_EXTERIOR"] = "building_exterior";
|
|
2251
|
+
ClinicPhotoTag2["ENTRANCE"] = "entrance";
|
|
2252
|
+
ClinicPhotoTag2["PARKING"] = "parking";
|
|
2253
|
+
ClinicPhotoTag2["RECEPTION"] = "reception";
|
|
2254
|
+
ClinicPhotoTag2["WAITING_ROOM"] = "waiting_room";
|
|
2255
|
+
ClinicPhotoTag2["HALLWAY"] = "hallway";
|
|
2256
|
+
ClinicPhotoTag2["EXAM_ROOM"] = "exam_room";
|
|
2257
|
+
ClinicPhotoTag2["TREATMENT_ROOM"] = "treatment_room";
|
|
2258
|
+
ClinicPhotoTag2["LABORATORY"] = "laboratory";
|
|
2259
|
+
ClinicPhotoTag2["XRAY_ROOM"] = "xray_room";
|
|
2260
|
+
ClinicPhotoTag2["ULTRASOUND_ROOM"] = "ultrasound_room";
|
|
2261
|
+
ClinicPhotoTag2["DENTAL_OFFICE"] = "dental_office";
|
|
2262
|
+
ClinicPhotoTag2["OPERATING_ROOM"] = "operating_room";
|
|
2263
|
+
ClinicPhotoTag2["RECOVERY_ROOM"] = "recovery_room";
|
|
2264
|
+
ClinicPhotoTag2["MEDICAL_EQUIPMENT"] = "medical_equipment";
|
|
2265
|
+
ClinicPhotoTag2["PHARMACY"] = "pharmacy";
|
|
2266
|
+
ClinicPhotoTag2["CAFETERIA"] = "cafeteria";
|
|
2267
|
+
ClinicPhotoTag2["CHILDREN_AREA"] = "children_area";
|
|
2268
|
+
ClinicPhotoTag2["STAFF"] = "staff";
|
|
2269
|
+
ClinicPhotoTag2["OTHER"] = "other";
|
|
2270
|
+
return ClinicPhotoTag2;
|
|
2271
|
+
})(ClinicPhotoTag || {});
|
|
2248
2272
|
|
|
2249
2273
|
// src/types/clinic/index.ts
|
|
2250
2274
|
var CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
@@ -5307,6 +5331,21 @@ var AuthService = class extends BaseService {
|
|
|
5307
5331
|
);
|
|
5308
5332
|
throw adminCreationError;
|
|
5309
5333
|
}
|
|
5334
|
+
try {
|
|
5335
|
+
console.log("[AUTH] Updating user with admin profile reference");
|
|
5336
|
+
user = await this.userService.updateUser(firebaseUser.uid, {
|
|
5337
|
+
adminProfile: adminProfile.id
|
|
5338
|
+
});
|
|
5339
|
+
console.log(
|
|
5340
|
+
"[AUTH] User updated with admin profile reference successfully"
|
|
5341
|
+
);
|
|
5342
|
+
} catch (userUpdateError) {
|
|
5343
|
+
console.error(
|
|
5344
|
+
"[AUTH] Failed to update user with admin profile:",
|
|
5345
|
+
userUpdateError
|
|
5346
|
+
);
|
|
5347
|
+
throw userUpdateError;
|
|
5348
|
+
}
|
|
5310
5349
|
const createClinicGroupData = {
|
|
5311
5350
|
name: data.clinicGroupData.name,
|
|
5312
5351
|
hqLocation: data.clinicGroupData.hqLocation,
|
|
@@ -6400,6 +6439,7 @@ var notificationSchema = import_zod16.z.discriminatedUnion("notificationType", [
|
|
|
6400
6439
|
CertificationSpecialty,
|
|
6401
6440
|
ClinicAdminService,
|
|
6402
6441
|
ClinicGroupService,
|
|
6442
|
+
ClinicPhotoTag,
|
|
6403
6443
|
ClinicService,
|
|
6404
6444
|
ClinicTag,
|
|
6405
6445
|
Contraindication,
|
package/dist/index.mjs
CHANGED
|
@@ -2173,6 +2173,29 @@ var ClinicTag = /* @__PURE__ */ ((ClinicTag4) => {
|
|
|
2173
2173
|
ClinicTag4["HOLIDAY_HOURS"] = "holiday_hours";
|
|
2174
2174
|
return ClinicTag4;
|
|
2175
2175
|
})(ClinicTag || {});
|
|
2176
|
+
var ClinicPhotoTag = /* @__PURE__ */ ((ClinicPhotoTag2) => {
|
|
2177
|
+
ClinicPhotoTag2["BUILDING_EXTERIOR"] = "building_exterior";
|
|
2178
|
+
ClinicPhotoTag2["ENTRANCE"] = "entrance";
|
|
2179
|
+
ClinicPhotoTag2["PARKING"] = "parking";
|
|
2180
|
+
ClinicPhotoTag2["RECEPTION"] = "reception";
|
|
2181
|
+
ClinicPhotoTag2["WAITING_ROOM"] = "waiting_room";
|
|
2182
|
+
ClinicPhotoTag2["HALLWAY"] = "hallway";
|
|
2183
|
+
ClinicPhotoTag2["EXAM_ROOM"] = "exam_room";
|
|
2184
|
+
ClinicPhotoTag2["TREATMENT_ROOM"] = "treatment_room";
|
|
2185
|
+
ClinicPhotoTag2["LABORATORY"] = "laboratory";
|
|
2186
|
+
ClinicPhotoTag2["XRAY_ROOM"] = "xray_room";
|
|
2187
|
+
ClinicPhotoTag2["ULTRASOUND_ROOM"] = "ultrasound_room";
|
|
2188
|
+
ClinicPhotoTag2["DENTAL_OFFICE"] = "dental_office";
|
|
2189
|
+
ClinicPhotoTag2["OPERATING_ROOM"] = "operating_room";
|
|
2190
|
+
ClinicPhotoTag2["RECOVERY_ROOM"] = "recovery_room";
|
|
2191
|
+
ClinicPhotoTag2["MEDICAL_EQUIPMENT"] = "medical_equipment";
|
|
2192
|
+
ClinicPhotoTag2["PHARMACY"] = "pharmacy";
|
|
2193
|
+
ClinicPhotoTag2["CAFETERIA"] = "cafeteria";
|
|
2194
|
+
ClinicPhotoTag2["CHILDREN_AREA"] = "children_area";
|
|
2195
|
+
ClinicPhotoTag2["STAFF"] = "staff";
|
|
2196
|
+
ClinicPhotoTag2["OTHER"] = "other";
|
|
2197
|
+
return ClinicPhotoTag2;
|
|
2198
|
+
})(ClinicPhotoTag || {});
|
|
2176
2199
|
|
|
2177
2200
|
// src/types/clinic/index.ts
|
|
2178
2201
|
var CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
@@ -5284,6 +5307,21 @@ var AuthService = class extends BaseService {
|
|
|
5284
5307
|
);
|
|
5285
5308
|
throw adminCreationError;
|
|
5286
5309
|
}
|
|
5310
|
+
try {
|
|
5311
|
+
console.log("[AUTH] Updating user with admin profile reference");
|
|
5312
|
+
user = await this.userService.updateUser(firebaseUser.uid, {
|
|
5313
|
+
adminProfile: adminProfile.id
|
|
5314
|
+
});
|
|
5315
|
+
console.log(
|
|
5316
|
+
"[AUTH] User updated with admin profile reference successfully"
|
|
5317
|
+
);
|
|
5318
|
+
} catch (userUpdateError) {
|
|
5319
|
+
console.error(
|
|
5320
|
+
"[AUTH] Failed to update user with admin profile:",
|
|
5321
|
+
userUpdateError
|
|
5322
|
+
);
|
|
5323
|
+
throw userUpdateError;
|
|
5324
|
+
}
|
|
5287
5325
|
const createClinicGroupData = {
|
|
5288
5326
|
name: data.clinicGroupData.name,
|
|
5289
5327
|
hqLocation: data.clinicGroupData.hqLocation,
|
|
@@ -6414,6 +6452,7 @@ export {
|
|
|
6414
6452
|
CertificationSpecialty,
|
|
6415
6453
|
ClinicAdminService,
|
|
6416
6454
|
ClinicGroupService,
|
|
6455
|
+
ClinicPhotoTag,
|
|
6417
6456
|
ClinicService,
|
|
6418
6457
|
ClinicTag,
|
|
6419
6458
|
Contraindication,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -110,7 +110,7 @@ export class AuthService extends BaseService {
|
|
|
110
110
|
async signUpClinicAdmin(data: ClinicAdminSignupData): Promise<{
|
|
111
111
|
user: User;
|
|
112
112
|
clinicGroup: ClinicGroup;
|
|
113
|
-
clinicAdmin: ClinicAdmin;
|
|
113
|
+
clinicAdmin: ClinicAdmin;
|
|
114
114
|
}> {
|
|
115
115
|
try {
|
|
116
116
|
console.log("[AUTH] Starting clinic admin signup process", {
|
|
@@ -243,6 +243,23 @@ export class AuthService extends BaseService {
|
|
|
243
243
|
throw adminCreationError;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
+
// Update user document with admin profile reference
|
|
247
|
+
try {
|
|
248
|
+
console.log("[AUTH] Updating user with admin profile reference");
|
|
249
|
+
user = await this.userService.updateUser(firebaseUser.uid, {
|
|
250
|
+
adminProfile: adminProfile.id,
|
|
251
|
+
});
|
|
252
|
+
console.log(
|
|
253
|
+
"[AUTH] User updated with admin profile reference successfully"
|
|
254
|
+
);
|
|
255
|
+
} catch (userUpdateError) {
|
|
256
|
+
console.error(
|
|
257
|
+
"[AUTH] Failed to update user with admin profile:",
|
|
258
|
+
userUpdateError
|
|
259
|
+
);
|
|
260
|
+
throw userUpdateError;
|
|
261
|
+
}
|
|
262
|
+
|
|
246
263
|
// Then create clinic group
|
|
247
264
|
const createClinicGroupData: CreateClinicGroupData = {
|
|
248
265
|
name: data.clinicGroupData.name,
|
|
@@ -10,7 +10,12 @@ export const CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
|
10
10
|
export const CLINIC_ADMINS_COLLECTION = "clinic_admins";
|
|
11
11
|
export const CLINICS_COLLECTION = "clinics";
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
PracticeType,
|
|
15
|
+
Language,
|
|
16
|
+
ClinicTag,
|
|
17
|
+
ClinicPhotoTag,
|
|
18
|
+
} from "./preferences.types";
|
|
14
19
|
|
|
15
20
|
export * from "./preferences.types";
|
|
16
21
|
|
|
@@ -99,3 +99,43 @@ export enum ClinicTag {
|
|
|
99
99
|
NIGHT_SHIFT = "night_shift",
|
|
100
100
|
HOLIDAY_HOURS = "holiday_hours",
|
|
101
101
|
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Enum for clinic photo tags
|
|
105
|
+
* Used to categorize photos of different areas/parts of the clinic
|
|
106
|
+
*/
|
|
107
|
+
export enum ClinicPhotoTag {
|
|
108
|
+
// Exterior
|
|
109
|
+
BUILDING_EXTERIOR = "building_exterior",
|
|
110
|
+
ENTRANCE = "entrance",
|
|
111
|
+
PARKING = "parking",
|
|
112
|
+
|
|
113
|
+
// Interior common areas
|
|
114
|
+
RECEPTION = "reception",
|
|
115
|
+
WAITING_ROOM = "waiting_room",
|
|
116
|
+
HALLWAY = "hallway",
|
|
117
|
+
|
|
118
|
+
// Medical areas
|
|
119
|
+
EXAM_ROOM = "exam_room",
|
|
120
|
+
TREATMENT_ROOM = "treatment_room",
|
|
121
|
+
LABORATORY = "laboratory",
|
|
122
|
+
XRAY_ROOM = "xray_room",
|
|
123
|
+
ULTRASOUND_ROOM = "ultrasound_room",
|
|
124
|
+
DENTAL_OFFICE = "dental_office",
|
|
125
|
+
OPERATING_ROOM = "operating_room",
|
|
126
|
+
RECOVERY_ROOM = "recovery_room",
|
|
127
|
+
|
|
128
|
+
// Equipment
|
|
129
|
+
MEDICAL_EQUIPMENT = "medical_equipment",
|
|
130
|
+
|
|
131
|
+
// Amenities
|
|
132
|
+
PHARMACY = "pharmacy",
|
|
133
|
+
CAFETERIA = "cafeteria",
|
|
134
|
+
CHILDREN_AREA = "children_area",
|
|
135
|
+
|
|
136
|
+
// Staff
|
|
137
|
+
STAFF = "staff",
|
|
138
|
+
|
|
139
|
+
// Other
|
|
140
|
+
OTHER = "other",
|
|
141
|
+
}
|