@blackcode_sa/metaestetics-api 1.6.6 → 1.6.8
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 +124 -13
- package/dist/index.d.ts +124 -13
- package/dist/index.js +14 -2
- package/dist/index.mjs +13 -2
- package/package.json +1 -1
- package/src/admin/index.ts +1 -5
- package/src/validations/notification.schema.ts +18 -2
package/dist/index.d.mts
CHANGED
|
@@ -7713,7 +7713,7 @@ declare const preRequirementNotificationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
7713
7713
|
isRead: z.ZodBoolean;
|
|
7714
7714
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7715
7715
|
}, {
|
|
7716
|
-
notificationType: z.ZodLiteral<NotificationType.
|
|
7716
|
+
notificationType: z.ZodLiteral<NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE>;
|
|
7717
7717
|
treatmentId: z.ZodString;
|
|
7718
7718
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
7719
7719
|
deadline: z.ZodAny;
|
|
@@ -7721,7 +7721,7 @@ declare const preRequirementNotificationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
7721
7721
|
status: NotificationStatus;
|
|
7722
7722
|
title: string;
|
|
7723
7723
|
requirements: string[];
|
|
7724
|
-
notificationType: NotificationType.
|
|
7724
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
7725
7725
|
treatmentId: string;
|
|
7726
7726
|
userId: string;
|
|
7727
7727
|
notificationTokens: string[];
|
|
@@ -7737,7 +7737,7 @@ declare const preRequirementNotificationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
7737
7737
|
status: NotificationStatus;
|
|
7738
7738
|
title: string;
|
|
7739
7739
|
requirements: string[];
|
|
7740
|
-
notificationType: NotificationType.
|
|
7740
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
7741
7741
|
treatmentId: string;
|
|
7742
7742
|
userId: string;
|
|
7743
7743
|
notificationTokens: string[];
|
|
@@ -7767,7 +7767,7 @@ declare const postRequirementNotificationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
7767
7767
|
isRead: z.ZodBoolean;
|
|
7768
7768
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7769
7769
|
}, {
|
|
7770
|
-
notificationType: z.ZodLiteral<NotificationType.
|
|
7770
|
+
notificationType: z.ZodLiteral<NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE>;
|
|
7771
7771
|
treatmentId: z.ZodString;
|
|
7772
7772
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
7773
7773
|
deadline: z.ZodAny;
|
|
@@ -7775,7 +7775,7 @@ declare const postRequirementNotificationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
7775
7775
|
status: NotificationStatus;
|
|
7776
7776
|
title: string;
|
|
7777
7777
|
requirements: string[];
|
|
7778
|
-
notificationType: NotificationType.
|
|
7778
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
7779
7779
|
treatmentId: string;
|
|
7780
7780
|
userId: string;
|
|
7781
7781
|
notificationTokens: string[];
|
|
@@ -7791,7 +7791,7 @@ declare const postRequirementNotificationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
7791
7791
|
status: NotificationStatus;
|
|
7792
7792
|
title: string;
|
|
7793
7793
|
requirements: string[];
|
|
7794
|
-
notificationType: NotificationType.
|
|
7794
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
7795
7795
|
treatmentId: string;
|
|
7796
7796
|
userId: string;
|
|
7797
7797
|
notificationTokens: string[];
|
|
@@ -7804,6 +7804,64 @@ declare const postRequirementNotificationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
7804
7804
|
deadline?: any;
|
|
7805
7805
|
notificationTime?: any;
|
|
7806
7806
|
}>;
|
|
7807
|
+
/**
|
|
7808
|
+
* Validaciona šema za requirement instruction notification
|
|
7809
|
+
* Ovo je nova schema koja se odnosi na RequirementInstructionDueNotification
|
|
7810
|
+
*/
|
|
7811
|
+
declare const requirementInstructionDueNotificationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
7812
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7813
|
+
userId: z.ZodString;
|
|
7814
|
+
notificationTime: z.ZodAny;
|
|
7815
|
+
notificationType: z.ZodNativeEnum<typeof NotificationType>;
|
|
7816
|
+
notificationTokens: z.ZodArray<z.ZodString, "many">;
|
|
7817
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
7818
|
+
createdAt: z.ZodOptional<z.ZodAny>;
|
|
7819
|
+
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
7820
|
+
title: z.ZodString;
|
|
7821
|
+
body: z.ZodString;
|
|
7822
|
+
isRead: z.ZodBoolean;
|
|
7823
|
+
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7824
|
+
}, {
|
|
7825
|
+
notificationType: z.ZodLiteral<NotificationType.REQUIREMENT_INSTRUCTION_DUE>;
|
|
7826
|
+
appointmentId: z.ZodString;
|
|
7827
|
+
patientRequirementInstanceId: z.ZodString;
|
|
7828
|
+
instructionId: z.ZodString;
|
|
7829
|
+
originalRequirementId: z.ZodOptional<z.ZodString>;
|
|
7830
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7831
|
+
status: NotificationStatus;
|
|
7832
|
+
title: string;
|
|
7833
|
+
appointmentId: string;
|
|
7834
|
+
notificationType: NotificationType.REQUIREMENT_INSTRUCTION_DUE;
|
|
7835
|
+
userId: string;
|
|
7836
|
+
notificationTokens: string[];
|
|
7837
|
+
body: string;
|
|
7838
|
+
isRead: boolean;
|
|
7839
|
+
userRole: UserRole;
|
|
7840
|
+
patientRequirementInstanceId: string;
|
|
7841
|
+
instructionId: string;
|
|
7842
|
+
id?: string | undefined;
|
|
7843
|
+
createdAt?: any;
|
|
7844
|
+
updatedAt?: any;
|
|
7845
|
+
notificationTime?: any;
|
|
7846
|
+
originalRequirementId?: string | undefined;
|
|
7847
|
+
}, {
|
|
7848
|
+
status: NotificationStatus;
|
|
7849
|
+
title: string;
|
|
7850
|
+
appointmentId: string;
|
|
7851
|
+
notificationType: NotificationType.REQUIREMENT_INSTRUCTION_DUE;
|
|
7852
|
+
userId: string;
|
|
7853
|
+
notificationTokens: string[];
|
|
7854
|
+
body: string;
|
|
7855
|
+
isRead: boolean;
|
|
7856
|
+
userRole: UserRole;
|
|
7857
|
+
patientRequirementInstanceId: string;
|
|
7858
|
+
instructionId: string;
|
|
7859
|
+
id?: string | undefined;
|
|
7860
|
+
createdAt?: any;
|
|
7861
|
+
updatedAt?: any;
|
|
7862
|
+
notificationTime?: any;
|
|
7863
|
+
originalRequirementId?: string | undefined;
|
|
7864
|
+
}>;
|
|
7807
7865
|
/**
|
|
7808
7866
|
* Validaciona šema za appointment reminder notifikaciju
|
|
7809
7867
|
*/
|
|
@@ -7935,7 +7993,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7935
7993
|
isRead: z.ZodBoolean;
|
|
7936
7994
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7937
7995
|
}, {
|
|
7938
|
-
notificationType: z.ZodLiteral<NotificationType.
|
|
7996
|
+
notificationType: z.ZodLiteral<NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE>;
|
|
7939
7997
|
treatmentId: z.ZodString;
|
|
7940
7998
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
7941
7999
|
deadline: z.ZodAny;
|
|
@@ -7943,7 +8001,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7943
8001
|
status: NotificationStatus;
|
|
7944
8002
|
title: string;
|
|
7945
8003
|
requirements: string[];
|
|
7946
|
-
notificationType: NotificationType.
|
|
8004
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
7947
8005
|
treatmentId: string;
|
|
7948
8006
|
userId: string;
|
|
7949
8007
|
notificationTokens: string[];
|
|
@@ -7959,7 +8017,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7959
8017
|
status: NotificationStatus;
|
|
7960
8018
|
title: string;
|
|
7961
8019
|
requirements: string[];
|
|
7962
|
-
notificationType: NotificationType.
|
|
8020
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
7963
8021
|
treatmentId: string;
|
|
7964
8022
|
userId: string;
|
|
7965
8023
|
notificationTokens: string[];
|
|
@@ -7985,7 +8043,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7985
8043
|
isRead: z.ZodBoolean;
|
|
7986
8044
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7987
8045
|
}, {
|
|
7988
|
-
notificationType: z.ZodLiteral<NotificationType.
|
|
8046
|
+
notificationType: z.ZodLiteral<NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE>;
|
|
7989
8047
|
treatmentId: z.ZodString;
|
|
7990
8048
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
7991
8049
|
deadline: z.ZodAny;
|
|
@@ -7993,7 +8051,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7993
8051
|
status: NotificationStatus;
|
|
7994
8052
|
title: string;
|
|
7995
8053
|
requirements: string[];
|
|
7996
|
-
notificationType: NotificationType.
|
|
8054
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
7997
8055
|
treatmentId: string;
|
|
7998
8056
|
userId: string;
|
|
7999
8057
|
notificationTokens: string[];
|
|
@@ -8009,7 +8067,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
8009
8067
|
status: NotificationStatus;
|
|
8010
8068
|
title: string;
|
|
8011
8069
|
requirements: string[];
|
|
8012
|
-
notificationType: NotificationType.
|
|
8070
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
8013
8071
|
treatmentId: string;
|
|
8014
8072
|
userId: string;
|
|
8015
8073
|
notificationTokens: string[];
|
|
@@ -8034,6 +8092,59 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
8034
8092
|
body: z.ZodString;
|
|
8035
8093
|
isRead: z.ZodBoolean;
|
|
8036
8094
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
8095
|
+
}, {
|
|
8096
|
+
notificationType: z.ZodLiteral<NotificationType.REQUIREMENT_INSTRUCTION_DUE>;
|
|
8097
|
+
appointmentId: z.ZodString;
|
|
8098
|
+
patientRequirementInstanceId: z.ZodString;
|
|
8099
|
+
instructionId: z.ZodString;
|
|
8100
|
+
originalRequirementId: z.ZodOptional<z.ZodString>;
|
|
8101
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8102
|
+
status: NotificationStatus;
|
|
8103
|
+
title: string;
|
|
8104
|
+
appointmentId: string;
|
|
8105
|
+
notificationType: NotificationType.REQUIREMENT_INSTRUCTION_DUE;
|
|
8106
|
+
userId: string;
|
|
8107
|
+
notificationTokens: string[];
|
|
8108
|
+
body: string;
|
|
8109
|
+
isRead: boolean;
|
|
8110
|
+
userRole: UserRole;
|
|
8111
|
+
patientRequirementInstanceId: string;
|
|
8112
|
+
instructionId: string;
|
|
8113
|
+
id?: string | undefined;
|
|
8114
|
+
createdAt?: any;
|
|
8115
|
+
updatedAt?: any;
|
|
8116
|
+
notificationTime?: any;
|
|
8117
|
+
originalRequirementId?: string | undefined;
|
|
8118
|
+
}, {
|
|
8119
|
+
status: NotificationStatus;
|
|
8120
|
+
title: string;
|
|
8121
|
+
appointmentId: string;
|
|
8122
|
+
notificationType: NotificationType.REQUIREMENT_INSTRUCTION_DUE;
|
|
8123
|
+
userId: string;
|
|
8124
|
+
notificationTokens: string[];
|
|
8125
|
+
body: string;
|
|
8126
|
+
isRead: boolean;
|
|
8127
|
+
userRole: UserRole;
|
|
8128
|
+
patientRequirementInstanceId: string;
|
|
8129
|
+
instructionId: string;
|
|
8130
|
+
id?: string | undefined;
|
|
8131
|
+
createdAt?: any;
|
|
8132
|
+
updatedAt?: any;
|
|
8133
|
+
notificationTime?: any;
|
|
8134
|
+
originalRequirementId?: string | undefined;
|
|
8135
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8136
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8137
|
+
userId: z.ZodString;
|
|
8138
|
+
notificationTime: z.ZodAny;
|
|
8139
|
+
notificationType: z.ZodNativeEnum<typeof NotificationType>;
|
|
8140
|
+
notificationTokens: z.ZodArray<z.ZodString, "many">;
|
|
8141
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
8142
|
+
createdAt: z.ZodOptional<z.ZodAny>;
|
|
8143
|
+
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
8144
|
+
title: z.ZodString;
|
|
8145
|
+
body: z.ZodString;
|
|
8146
|
+
isRead: z.ZodBoolean;
|
|
8147
|
+
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
8037
8148
|
}, {
|
|
8038
8149
|
notificationType: z.ZodLiteral<NotificationType.APPOINTMENT_REMINDER>;
|
|
8039
8150
|
appointmentId: z.ZodString;
|
|
@@ -18966,4 +19077,4 @@ declare const createReviewSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18966
19077
|
} | undefined;
|
|
18967
19078
|
}>;
|
|
18968
19079
|
|
|
18969
|
-
export { APPOINTMENTS_COLLECTION, 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 Appointment, type AppointmentReminderNotification, AppointmentService, AppointmentStatus, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarSyncStatus, type Category, CategoryService, 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, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateAppointmentData, type CreateAppointmentParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DateRange, 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_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PROCEDURES_COLLECTION, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, PatientRequirementsService, type PatientSensitiveInfo, PatientService, PaymentStatus, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureCategorization, ProcedureFamily, type ProcedureInfo, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type Product, ProductService, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RequesterInfo, type Requirement, RequirementType, type Review, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type Subcategory, SubcategoryService, SubscriptionModel, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, TechnologyService, type TimeSlot, TimeUnit, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateProcedureData, type UpdateSyncedCalendarData, 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, calendarEventSchema, calendarEventTimeSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicLocationSchema, clinicReviewInfoSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createAppointmentSchema, createCalendarEventSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicReviewSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createDraftPractitionerSchema, createFilledDocumentDataSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerReviewSchema, createPractitionerSchema, createPractitionerTokenSchema, createProcedureReviewSchema, createReviewSchema, createUserOptionsSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, filledDocumentSchema, filledDocumentStatusSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicWorkingHoursSchema, practitionerProfileInfoSchema, practitionerReviewInfoSchema, practitionerReviewSchema, practitionerSchema, practitionerSignupSchema, practitionerTokenSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, procedureCategorizationSchema, procedureInfoSchema, procedureReviewInfoSchema, procedureReviewSchema, requesterInfoSchema, reviewSchema, searchAppointmentsSchema, searchPatientsSchema, syncedCalendarEventSchema, timeSlotSchema, timestampSchema, updateAllergySchema, updateAppointmentSchema, updateBlockingConditionSchema, updateCalendarEventSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateFilledDocumentDataSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
|
19080
|
+
export { APPOINTMENTS_COLLECTION, 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 Appointment, type AppointmentReminderNotification, AppointmentService, AppointmentStatus, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarSyncStatus, type Category, CategoryService, 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, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateAppointmentData, type CreateAppointmentParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DateRange, 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_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PROCEDURES_COLLECTION, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, PatientRequirementsService, type PatientSensitiveInfo, PatientService, PaymentStatus, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureCategorization, ProcedureFamily, type ProcedureInfo, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type Product, ProductService, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RequesterInfo, type Requirement, RequirementType, type Review, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type Subcategory, SubcategoryService, SubscriptionModel, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, TechnologyService, type TimeSlot, TimeUnit, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateProcedureData, type UpdateSyncedCalendarData, 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, calendarEventSchema, calendarEventTimeSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicLocationSchema, clinicReviewInfoSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createAppointmentSchema, createCalendarEventSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicReviewSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createDraftPractitionerSchema, createFilledDocumentDataSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerReviewSchema, createPractitionerSchema, createPractitionerTokenSchema, createProcedureReviewSchema, createReviewSchema, createUserOptionsSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, filledDocumentSchema, filledDocumentStatusSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicWorkingHoursSchema, practitionerProfileInfoSchema, practitionerReviewInfoSchema, practitionerReviewSchema, practitionerSchema, practitionerSignupSchema, practitionerTokenSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, procedureCategorizationSchema, procedureInfoSchema, procedureReviewInfoSchema, procedureReviewSchema, requesterInfoSchema, requirementInstructionDueNotificationSchema, reviewSchema, searchAppointmentsSchema, searchPatientsSchema, syncedCalendarEventSchema, timeSlotSchema, timestampSchema, updateAllergySchema, updateAppointmentSchema, updateBlockingConditionSchema, updateCalendarEventSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateFilledDocumentDataSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -7713,7 +7713,7 @@ declare const preRequirementNotificationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
7713
7713
|
isRead: z.ZodBoolean;
|
|
7714
7714
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7715
7715
|
}, {
|
|
7716
|
-
notificationType: z.ZodLiteral<NotificationType.
|
|
7716
|
+
notificationType: z.ZodLiteral<NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE>;
|
|
7717
7717
|
treatmentId: z.ZodString;
|
|
7718
7718
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
7719
7719
|
deadline: z.ZodAny;
|
|
@@ -7721,7 +7721,7 @@ declare const preRequirementNotificationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
7721
7721
|
status: NotificationStatus;
|
|
7722
7722
|
title: string;
|
|
7723
7723
|
requirements: string[];
|
|
7724
|
-
notificationType: NotificationType.
|
|
7724
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
7725
7725
|
treatmentId: string;
|
|
7726
7726
|
userId: string;
|
|
7727
7727
|
notificationTokens: string[];
|
|
@@ -7737,7 +7737,7 @@ declare const preRequirementNotificationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
7737
7737
|
status: NotificationStatus;
|
|
7738
7738
|
title: string;
|
|
7739
7739
|
requirements: string[];
|
|
7740
|
-
notificationType: NotificationType.
|
|
7740
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
7741
7741
|
treatmentId: string;
|
|
7742
7742
|
userId: string;
|
|
7743
7743
|
notificationTokens: string[];
|
|
@@ -7767,7 +7767,7 @@ declare const postRequirementNotificationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
7767
7767
|
isRead: z.ZodBoolean;
|
|
7768
7768
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7769
7769
|
}, {
|
|
7770
|
-
notificationType: z.ZodLiteral<NotificationType.
|
|
7770
|
+
notificationType: z.ZodLiteral<NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE>;
|
|
7771
7771
|
treatmentId: z.ZodString;
|
|
7772
7772
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
7773
7773
|
deadline: z.ZodAny;
|
|
@@ -7775,7 +7775,7 @@ declare const postRequirementNotificationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
7775
7775
|
status: NotificationStatus;
|
|
7776
7776
|
title: string;
|
|
7777
7777
|
requirements: string[];
|
|
7778
|
-
notificationType: NotificationType.
|
|
7778
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
7779
7779
|
treatmentId: string;
|
|
7780
7780
|
userId: string;
|
|
7781
7781
|
notificationTokens: string[];
|
|
@@ -7791,7 +7791,7 @@ declare const postRequirementNotificationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
7791
7791
|
status: NotificationStatus;
|
|
7792
7792
|
title: string;
|
|
7793
7793
|
requirements: string[];
|
|
7794
|
-
notificationType: NotificationType.
|
|
7794
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
7795
7795
|
treatmentId: string;
|
|
7796
7796
|
userId: string;
|
|
7797
7797
|
notificationTokens: string[];
|
|
@@ -7804,6 +7804,64 @@ declare const postRequirementNotificationSchema: z.ZodObject<z.objectUtil.extend
|
|
|
7804
7804
|
deadline?: any;
|
|
7805
7805
|
notificationTime?: any;
|
|
7806
7806
|
}>;
|
|
7807
|
+
/**
|
|
7808
|
+
* Validaciona šema za requirement instruction notification
|
|
7809
|
+
* Ovo je nova schema koja se odnosi na RequirementInstructionDueNotification
|
|
7810
|
+
*/
|
|
7811
|
+
declare const requirementInstructionDueNotificationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
7812
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7813
|
+
userId: z.ZodString;
|
|
7814
|
+
notificationTime: z.ZodAny;
|
|
7815
|
+
notificationType: z.ZodNativeEnum<typeof NotificationType>;
|
|
7816
|
+
notificationTokens: z.ZodArray<z.ZodString, "many">;
|
|
7817
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
7818
|
+
createdAt: z.ZodOptional<z.ZodAny>;
|
|
7819
|
+
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
7820
|
+
title: z.ZodString;
|
|
7821
|
+
body: z.ZodString;
|
|
7822
|
+
isRead: z.ZodBoolean;
|
|
7823
|
+
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7824
|
+
}, {
|
|
7825
|
+
notificationType: z.ZodLiteral<NotificationType.REQUIREMENT_INSTRUCTION_DUE>;
|
|
7826
|
+
appointmentId: z.ZodString;
|
|
7827
|
+
patientRequirementInstanceId: z.ZodString;
|
|
7828
|
+
instructionId: z.ZodString;
|
|
7829
|
+
originalRequirementId: z.ZodOptional<z.ZodString>;
|
|
7830
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7831
|
+
status: NotificationStatus;
|
|
7832
|
+
title: string;
|
|
7833
|
+
appointmentId: string;
|
|
7834
|
+
notificationType: NotificationType.REQUIREMENT_INSTRUCTION_DUE;
|
|
7835
|
+
userId: string;
|
|
7836
|
+
notificationTokens: string[];
|
|
7837
|
+
body: string;
|
|
7838
|
+
isRead: boolean;
|
|
7839
|
+
userRole: UserRole;
|
|
7840
|
+
patientRequirementInstanceId: string;
|
|
7841
|
+
instructionId: string;
|
|
7842
|
+
id?: string | undefined;
|
|
7843
|
+
createdAt?: any;
|
|
7844
|
+
updatedAt?: any;
|
|
7845
|
+
notificationTime?: any;
|
|
7846
|
+
originalRequirementId?: string | undefined;
|
|
7847
|
+
}, {
|
|
7848
|
+
status: NotificationStatus;
|
|
7849
|
+
title: string;
|
|
7850
|
+
appointmentId: string;
|
|
7851
|
+
notificationType: NotificationType.REQUIREMENT_INSTRUCTION_DUE;
|
|
7852
|
+
userId: string;
|
|
7853
|
+
notificationTokens: string[];
|
|
7854
|
+
body: string;
|
|
7855
|
+
isRead: boolean;
|
|
7856
|
+
userRole: UserRole;
|
|
7857
|
+
patientRequirementInstanceId: string;
|
|
7858
|
+
instructionId: string;
|
|
7859
|
+
id?: string | undefined;
|
|
7860
|
+
createdAt?: any;
|
|
7861
|
+
updatedAt?: any;
|
|
7862
|
+
notificationTime?: any;
|
|
7863
|
+
originalRequirementId?: string | undefined;
|
|
7864
|
+
}>;
|
|
7807
7865
|
/**
|
|
7808
7866
|
* Validaciona šema za appointment reminder notifikaciju
|
|
7809
7867
|
*/
|
|
@@ -7935,7 +7993,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7935
7993
|
isRead: z.ZodBoolean;
|
|
7936
7994
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7937
7995
|
}, {
|
|
7938
|
-
notificationType: z.ZodLiteral<NotificationType.
|
|
7996
|
+
notificationType: z.ZodLiteral<NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE>;
|
|
7939
7997
|
treatmentId: z.ZodString;
|
|
7940
7998
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
7941
7999
|
deadline: z.ZodAny;
|
|
@@ -7943,7 +8001,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7943
8001
|
status: NotificationStatus;
|
|
7944
8002
|
title: string;
|
|
7945
8003
|
requirements: string[];
|
|
7946
|
-
notificationType: NotificationType.
|
|
8004
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
7947
8005
|
treatmentId: string;
|
|
7948
8006
|
userId: string;
|
|
7949
8007
|
notificationTokens: string[];
|
|
@@ -7959,7 +8017,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7959
8017
|
status: NotificationStatus;
|
|
7960
8018
|
title: string;
|
|
7961
8019
|
requirements: string[];
|
|
7962
|
-
notificationType: NotificationType.
|
|
8020
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
7963
8021
|
treatmentId: string;
|
|
7964
8022
|
userId: string;
|
|
7965
8023
|
notificationTokens: string[];
|
|
@@ -7985,7 +8043,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7985
8043
|
isRead: z.ZodBoolean;
|
|
7986
8044
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
7987
8045
|
}, {
|
|
7988
|
-
notificationType: z.ZodLiteral<NotificationType.
|
|
8046
|
+
notificationType: z.ZodLiteral<NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE>;
|
|
7989
8047
|
treatmentId: z.ZodString;
|
|
7990
8048
|
requirements: z.ZodArray<z.ZodString, "many">;
|
|
7991
8049
|
deadline: z.ZodAny;
|
|
@@ -7993,7 +8051,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
7993
8051
|
status: NotificationStatus;
|
|
7994
8052
|
title: string;
|
|
7995
8053
|
requirements: string[];
|
|
7996
|
-
notificationType: NotificationType.
|
|
8054
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
7997
8055
|
treatmentId: string;
|
|
7998
8056
|
userId: string;
|
|
7999
8057
|
notificationTokens: string[];
|
|
@@ -8009,7 +8067,7 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
8009
8067
|
status: NotificationStatus;
|
|
8010
8068
|
title: string;
|
|
8011
8069
|
requirements: string[];
|
|
8012
|
-
notificationType: NotificationType.
|
|
8070
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
8013
8071
|
treatmentId: string;
|
|
8014
8072
|
userId: string;
|
|
8015
8073
|
notificationTokens: string[];
|
|
@@ -8034,6 +8092,59 @@ declare const notificationSchema: z.ZodDiscriminatedUnion<"notificationType", [z
|
|
|
8034
8092
|
body: z.ZodString;
|
|
8035
8093
|
isRead: z.ZodBoolean;
|
|
8036
8094
|
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
8095
|
+
}, {
|
|
8096
|
+
notificationType: z.ZodLiteral<NotificationType.REQUIREMENT_INSTRUCTION_DUE>;
|
|
8097
|
+
appointmentId: z.ZodString;
|
|
8098
|
+
patientRequirementInstanceId: z.ZodString;
|
|
8099
|
+
instructionId: z.ZodString;
|
|
8100
|
+
originalRequirementId: z.ZodOptional<z.ZodString>;
|
|
8101
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8102
|
+
status: NotificationStatus;
|
|
8103
|
+
title: string;
|
|
8104
|
+
appointmentId: string;
|
|
8105
|
+
notificationType: NotificationType.REQUIREMENT_INSTRUCTION_DUE;
|
|
8106
|
+
userId: string;
|
|
8107
|
+
notificationTokens: string[];
|
|
8108
|
+
body: string;
|
|
8109
|
+
isRead: boolean;
|
|
8110
|
+
userRole: UserRole;
|
|
8111
|
+
patientRequirementInstanceId: string;
|
|
8112
|
+
instructionId: string;
|
|
8113
|
+
id?: string | undefined;
|
|
8114
|
+
createdAt?: any;
|
|
8115
|
+
updatedAt?: any;
|
|
8116
|
+
notificationTime?: any;
|
|
8117
|
+
originalRequirementId?: string | undefined;
|
|
8118
|
+
}, {
|
|
8119
|
+
status: NotificationStatus;
|
|
8120
|
+
title: string;
|
|
8121
|
+
appointmentId: string;
|
|
8122
|
+
notificationType: NotificationType.REQUIREMENT_INSTRUCTION_DUE;
|
|
8123
|
+
userId: string;
|
|
8124
|
+
notificationTokens: string[];
|
|
8125
|
+
body: string;
|
|
8126
|
+
isRead: boolean;
|
|
8127
|
+
userRole: UserRole;
|
|
8128
|
+
patientRequirementInstanceId: string;
|
|
8129
|
+
instructionId: string;
|
|
8130
|
+
id?: string | undefined;
|
|
8131
|
+
createdAt?: any;
|
|
8132
|
+
updatedAt?: any;
|
|
8133
|
+
notificationTime?: any;
|
|
8134
|
+
originalRequirementId?: string | undefined;
|
|
8135
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8136
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8137
|
+
userId: z.ZodString;
|
|
8138
|
+
notificationTime: z.ZodAny;
|
|
8139
|
+
notificationType: z.ZodNativeEnum<typeof NotificationType>;
|
|
8140
|
+
notificationTokens: z.ZodArray<z.ZodString, "many">;
|
|
8141
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
8142
|
+
createdAt: z.ZodOptional<z.ZodAny>;
|
|
8143
|
+
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
8144
|
+
title: z.ZodString;
|
|
8145
|
+
body: z.ZodString;
|
|
8146
|
+
isRead: z.ZodBoolean;
|
|
8147
|
+
userRole: z.ZodNativeEnum<typeof UserRole>;
|
|
8037
8148
|
}, {
|
|
8038
8149
|
notificationType: z.ZodLiteral<NotificationType.APPOINTMENT_REMINDER>;
|
|
8039
8150
|
appointmentId: z.ZodString;
|
|
@@ -18966,4 +19077,4 @@ declare const createReviewSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18966
19077
|
} | undefined;
|
|
18967
19078
|
}>;
|
|
18968
19079
|
|
|
18969
|
-
export { APPOINTMENTS_COLLECTION, 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 Appointment, type AppointmentReminderNotification, AppointmentService, AppointmentStatus, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarSyncStatus, type Category, CategoryService, 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, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateAppointmentData, type CreateAppointmentParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DateRange, 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_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PROCEDURES_COLLECTION, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, PatientRequirementsService, type PatientSensitiveInfo, PatientService, PaymentStatus, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureCategorization, ProcedureFamily, type ProcedureInfo, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type Product, ProductService, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RequesterInfo, type Requirement, RequirementType, type Review, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type Subcategory, SubcategoryService, SubscriptionModel, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, TechnologyService, type TimeSlot, TimeUnit, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateProcedureData, type UpdateSyncedCalendarData, 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, calendarEventSchema, calendarEventTimeSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicLocationSchema, clinicReviewInfoSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createAppointmentSchema, createCalendarEventSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicReviewSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createDraftPractitionerSchema, createFilledDocumentDataSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerReviewSchema, createPractitionerSchema, createPractitionerTokenSchema, createProcedureReviewSchema, createReviewSchema, createUserOptionsSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, filledDocumentSchema, filledDocumentStatusSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicWorkingHoursSchema, practitionerProfileInfoSchema, practitionerReviewInfoSchema, practitionerReviewSchema, practitionerSchema, practitionerSignupSchema, practitionerTokenSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, procedureCategorizationSchema, procedureInfoSchema, procedureReviewInfoSchema, procedureReviewSchema, requesterInfoSchema, reviewSchema, searchAppointmentsSchema, searchPatientsSchema, syncedCalendarEventSchema, timeSlotSchema, timestampSchema, updateAllergySchema, updateAppointmentSchema, updateBlockingConditionSchema, updateCalendarEventSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateFilledDocumentDataSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
|
19080
|
+
export { APPOINTMENTS_COLLECTION, 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 Appointment, type AppointmentReminderNotification, AppointmentService, AppointmentStatus, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarSyncStatus, type Category, CategoryService, 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, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateAppointmentData, type CreateAppointmentParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DateRange, 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_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PROCEDURES_COLLECTION, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, PatientRequirementsService, type PatientSensitiveInfo, PatientService, PaymentStatus, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureCategorization, ProcedureFamily, type ProcedureInfo, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type Product, ProductService, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RequesterInfo, type Requirement, RequirementType, type Review, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type Subcategory, SubcategoryService, SubscriptionModel, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, TechnologyService, type TimeSlot, TimeUnit, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateProcedureData, type UpdateSyncedCalendarData, 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, calendarEventSchema, calendarEventTimeSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicLocationSchema, clinicReviewInfoSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createAppointmentSchema, createCalendarEventSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicReviewSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createDraftPractitionerSchema, createFilledDocumentDataSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerReviewSchema, createPractitionerSchema, createPractitionerTokenSchema, createProcedureReviewSchema, createReviewSchema, createUserOptionsSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, filledDocumentSchema, filledDocumentStatusSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicWorkingHoursSchema, practitionerProfileInfoSchema, practitionerReviewInfoSchema, practitionerReviewSchema, practitionerSchema, practitionerSignupSchema, practitionerTokenSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, procedureCategorizationSchema, procedureInfoSchema, procedureReviewInfoSchema, procedureReviewSchema, requesterInfoSchema, requirementInstructionDueNotificationSchema, reviewSchema, searchAppointmentsSchema, searchPatientsSchema, syncedCalendarEventSchema, timeSlotSchema, timestampSchema, updateAllergySchema, updateAppointmentSchema, updateBlockingConditionSchema, updateCalendarEventSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateFilledDocumentDataSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
package/dist/index.js
CHANGED
|
@@ -204,6 +204,7 @@ __export(index_exports, {
|
|
|
204
204
|
procedureReviewInfoSchema: () => procedureReviewInfoSchema,
|
|
205
205
|
procedureReviewSchema: () => procedureReviewSchema,
|
|
206
206
|
requesterInfoSchema: () => requesterInfoSchema,
|
|
207
|
+
requirementInstructionDueNotificationSchema: () => requirementInstructionDueNotificationSchema,
|
|
207
208
|
reviewSchema: () => reviewSchema,
|
|
208
209
|
searchAppointmentsSchema: () => searchAppointmentsSchema,
|
|
209
210
|
searchPatientsSchema: () => searchPatientsSchema,
|
|
@@ -14085,19 +14086,28 @@ var baseNotificationSchema = import_zod24.z.object({
|
|
|
14085
14086
|
userRole: import_zod24.z.nativeEnum(UserRole)
|
|
14086
14087
|
});
|
|
14087
14088
|
var preRequirementNotificationSchema = baseNotificationSchema.extend({
|
|
14088
|
-
notificationType: import_zod24.z.literal("
|
|
14089
|
+
notificationType: import_zod24.z.literal("preRequirementInstructionDue" /* PRE_REQUIREMENT_INSTRUCTION_DUE */),
|
|
14089
14090
|
treatmentId: import_zod24.z.string(),
|
|
14090
14091
|
requirements: import_zod24.z.array(import_zod24.z.string()),
|
|
14091
14092
|
deadline: import_zod24.z.any()
|
|
14092
14093
|
// Timestamp
|
|
14093
14094
|
});
|
|
14094
14095
|
var postRequirementNotificationSchema = baseNotificationSchema.extend({
|
|
14095
|
-
notificationType: import_zod24.z.literal(
|
|
14096
|
+
notificationType: import_zod24.z.literal(
|
|
14097
|
+
"postRequirementInstructionDue" /* POST_REQUIREMENT_INSTRUCTION_DUE */
|
|
14098
|
+
),
|
|
14096
14099
|
treatmentId: import_zod24.z.string(),
|
|
14097
14100
|
requirements: import_zod24.z.array(import_zod24.z.string()),
|
|
14098
14101
|
deadline: import_zod24.z.any()
|
|
14099
14102
|
// Timestamp
|
|
14100
14103
|
});
|
|
14104
|
+
var requirementInstructionDueNotificationSchema = baseNotificationSchema.extend({
|
|
14105
|
+
notificationType: import_zod24.z.literal("requirementInstructionDue" /* REQUIREMENT_INSTRUCTION_DUE */),
|
|
14106
|
+
appointmentId: import_zod24.z.string(),
|
|
14107
|
+
patientRequirementInstanceId: import_zod24.z.string(),
|
|
14108
|
+
instructionId: import_zod24.z.string(),
|
|
14109
|
+
originalRequirementId: import_zod24.z.string().optional()
|
|
14110
|
+
});
|
|
14101
14111
|
var appointmentReminderNotificationSchema = baseNotificationSchema.extend({
|
|
14102
14112
|
notificationType: import_zod24.z.literal("appointmentReminder" /* APPOINTMENT_REMINDER */),
|
|
14103
14113
|
appointmentId: import_zod24.z.string(),
|
|
@@ -14116,6 +14126,7 @@ var appointmentNotificationSchema = baseNotificationSchema.extend({
|
|
|
14116
14126
|
var notificationSchema = import_zod24.z.discriminatedUnion("notificationType", [
|
|
14117
14127
|
preRequirementNotificationSchema,
|
|
14118
14128
|
postRequirementNotificationSchema,
|
|
14129
|
+
requirementInstructionDueNotificationSchema,
|
|
14119
14130
|
appointmentReminderNotificationSchema,
|
|
14120
14131
|
appointmentNotificationSchema
|
|
14121
14132
|
]);
|
|
@@ -14327,6 +14338,7 @@ var RequirementType = /* @__PURE__ */ ((RequirementType2) => {
|
|
|
14327
14338
|
procedureReviewInfoSchema,
|
|
14328
14339
|
procedureReviewSchema,
|
|
14329
14340
|
requesterInfoSchema,
|
|
14341
|
+
requirementInstructionDueNotificationSchema,
|
|
14330
14342
|
reviewSchema,
|
|
14331
14343
|
searchAppointmentsSchema,
|
|
14332
14344
|
searchPatientsSchema,
|
package/dist/index.mjs
CHANGED
|
@@ -14247,19 +14247,28 @@ var baseNotificationSchema = z24.object({
|
|
|
14247
14247
|
userRole: z24.nativeEnum(UserRole)
|
|
14248
14248
|
});
|
|
14249
14249
|
var preRequirementNotificationSchema = baseNotificationSchema.extend({
|
|
14250
|
-
notificationType: z24.literal("
|
|
14250
|
+
notificationType: z24.literal("preRequirementInstructionDue" /* PRE_REQUIREMENT_INSTRUCTION_DUE */),
|
|
14251
14251
|
treatmentId: z24.string(),
|
|
14252
14252
|
requirements: z24.array(z24.string()),
|
|
14253
14253
|
deadline: z24.any()
|
|
14254
14254
|
// Timestamp
|
|
14255
14255
|
});
|
|
14256
14256
|
var postRequirementNotificationSchema = baseNotificationSchema.extend({
|
|
14257
|
-
notificationType: z24.literal(
|
|
14257
|
+
notificationType: z24.literal(
|
|
14258
|
+
"postRequirementInstructionDue" /* POST_REQUIREMENT_INSTRUCTION_DUE */
|
|
14259
|
+
),
|
|
14258
14260
|
treatmentId: z24.string(),
|
|
14259
14261
|
requirements: z24.array(z24.string()),
|
|
14260
14262
|
deadline: z24.any()
|
|
14261
14263
|
// Timestamp
|
|
14262
14264
|
});
|
|
14265
|
+
var requirementInstructionDueNotificationSchema = baseNotificationSchema.extend({
|
|
14266
|
+
notificationType: z24.literal("requirementInstructionDue" /* REQUIREMENT_INSTRUCTION_DUE */),
|
|
14267
|
+
appointmentId: z24.string(),
|
|
14268
|
+
patientRequirementInstanceId: z24.string(),
|
|
14269
|
+
instructionId: z24.string(),
|
|
14270
|
+
originalRequirementId: z24.string().optional()
|
|
14271
|
+
});
|
|
14263
14272
|
var appointmentReminderNotificationSchema = baseNotificationSchema.extend({
|
|
14264
14273
|
notificationType: z24.literal("appointmentReminder" /* APPOINTMENT_REMINDER */),
|
|
14265
14274
|
appointmentId: z24.string(),
|
|
@@ -14278,6 +14287,7 @@ var appointmentNotificationSchema = baseNotificationSchema.extend({
|
|
|
14278
14287
|
var notificationSchema = z24.discriminatedUnion("notificationType", [
|
|
14279
14288
|
preRequirementNotificationSchema,
|
|
14280
14289
|
postRequirementNotificationSchema,
|
|
14290
|
+
requirementInstructionDueNotificationSchema,
|
|
14281
14291
|
appointmentReminderNotificationSchema,
|
|
14282
14292
|
appointmentNotificationSchema
|
|
14283
14293
|
]);
|
|
@@ -14488,6 +14498,7 @@ export {
|
|
|
14488
14498
|
procedureReviewInfoSchema,
|
|
14489
14499
|
procedureReviewSchema,
|
|
14490
14500
|
requesterInfoSchema,
|
|
14501
|
+
requirementInstructionDueNotificationSchema,
|
|
14491
14502
|
reviewSchema,
|
|
14492
14503
|
searchAppointmentsSchema,
|
|
14493
14504
|
searchPatientsSchema,
|
package/package.json
CHANGED
package/src/admin/index.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { NotificationsAdmin } from "./notifications/notifications.admin";
|
|
2
|
-
|
|
3
|
-
Notification,
|
|
4
|
-
NotificationStatus,
|
|
5
|
-
NotificationType,
|
|
6
|
-
} from "../types/notifications";
|
|
2
|
+
|
|
7
3
|
import { UserRole } from "../types";
|
|
8
4
|
// Import types needed by admin consumers (like Cloud Functions)
|
|
9
5
|
import { Clinic, ClinicLocation } from "../types/clinic";
|
|
@@ -24,7 +24,7 @@ export const baseNotificationSchema = z.object({
|
|
|
24
24
|
* Validaciona šema za pre-requirement notifikaciju
|
|
25
25
|
*/
|
|
26
26
|
export const preRequirementNotificationSchema = baseNotificationSchema.extend({
|
|
27
|
-
notificationType: z.literal(NotificationType.
|
|
27
|
+
notificationType: z.literal(NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE),
|
|
28
28
|
treatmentId: z.string(),
|
|
29
29
|
requirements: z.array(z.string()),
|
|
30
30
|
deadline: z.any(), // Timestamp
|
|
@@ -34,12 +34,27 @@ export const preRequirementNotificationSchema = baseNotificationSchema.extend({
|
|
|
34
34
|
* Validaciona šema za post-requirement notifikaciju
|
|
35
35
|
*/
|
|
36
36
|
export const postRequirementNotificationSchema = baseNotificationSchema.extend({
|
|
37
|
-
notificationType: z.literal(
|
|
37
|
+
notificationType: z.literal(
|
|
38
|
+
NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE
|
|
39
|
+
),
|
|
38
40
|
treatmentId: z.string(),
|
|
39
41
|
requirements: z.array(z.string()),
|
|
40
42
|
deadline: z.any(), // Timestamp
|
|
41
43
|
});
|
|
42
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Validaciona šema za requirement instruction notification
|
|
47
|
+
* Ovo je nova schema koja se odnosi na RequirementInstructionDueNotification
|
|
48
|
+
*/
|
|
49
|
+
export const requirementInstructionDueNotificationSchema =
|
|
50
|
+
baseNotificationSchema.extend({
|
|
51
|
+
notificationType: z.literal(NotificationType.REQUIREMENT_INSTRUCTION_DUE),
|
|
52
|
+
appointmentId: z.string(),
|
|
53
|
+
patientRequirementInstanceId: z.string(),
|
|
54
|
+
instructionId: z.string(),
|
|
55
|
+
originalRequirementId: z.string().optional(),
|
|
56
|
+
});
|
|
57
|
+
|
|
43
58
|
/**
|
|
44
59
|
* Validaciona šema za appointment reminder notifikaciju
|
|
45
60
|
*/
|
|
@@ -69,6 +84,7 @@ export const appointmentNotificationSchema = baseNotificationSchema.extend({
|
|
|
69
84
|
export const notificationSchema = z.discriminatedUnion("notificationType", [
|
|
70
85
|
preRequirementNotificationSchema,
|
|
71
86
|
postRequirementNotificationSchema,
|
|
87
|
+
requirementInstructionDueNotificationSchema,
|
|
72
88
|
appointmentReminderNotificationSchema,
|
|
73
89
|
appointmentNotificationSchema,
|
|
74
90
|
]);
|