@blackcode_sa/metaestetics-api 1.7.47 → 1.8.0
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/admin/index.d.mts +999 -959
- package/dist/admin/index.d.ts +999 -959
- package/dist/admin/index.js +69 -69
- package/dist/admin/index.mjs +67 -69
- package/dist/index.d.mts +14675 -13040
- package/dist/index.d.ts +14675 -13040
- package/dist/index.js +12224 -14615
- package/dist/index.mjs +12452 -14968
- package/package.json +5 -5
- package/src/admin/index.ts +8 -1
- package/src/index.backup.ts +407 -0
- package/src/index.ts +5 -406
- package/src/services/PATIENTAUTH.MD +197 -0
- package/src/services/__tests__/auth/auth.setup.ts +2 -2
- package/src/services/__tests__/auth.service.test.ts +1 -1
- package/src/services/__tests__/user.service.test.ts +1 -1
- package/src/services/appointment/index.ts +1 -2
- package/src/services/{auth.service.ts → auth/auth.service.ts} +36 -22
- package/src/services/{auth.v2.service.ts → auth/auth.v2.service.ts} +17 -17
- package/src/services/auth/index.ts +2 -16
- package/src/services/calendar/calendar-refactored.service.ts +1 -1
- package/src/services/calendar/index.ts +5 -0
- package/src/services/clinic/index.ts +4 -0
- package/src/services/index.ts +14 -0
- package/src/services/media/index.ts +1 -0
- package/src/services/notifications/index.ts +1 -0
- package/src/services/patient/README.md +48 -0
- package/src/services/patient/To-Do.md +43 -0
- package/src/services/patient/index.ts +2 -0
- package/src/services/patient/patient.service.ts +289 -34
- package/src/services/patient/utils/index.ts +9 -0
- package/src/services/patient/utils/medical.utils.ts +114 -157
- package/src/services/patient/utils/profile.utils.ts +9 -0
- package/src/services/patient/utils/sensitive.utils.ts +79 -14
- package/src/services/patient/utils/token.utils.ts +211 -0
- package/src/services/practitioner/index.ts +1 -0
- package/src/services/procedure/index.ts +1 -0
- package/src/services/reviews/index.ts +1 -0
- package/src/services/user/index.ts +1 -0
- package/src/services/{user.service.ts → user/user.service.ts} +61 -12
- package/src/services/{user.v2.service.ts → user/user.v2.service.ts} +12 -12
- package/src/types/index.ts +42 -42
- package/src/types/patient/index.ts +33 -6
- package/src/types/patient/token.types.ts +61 -0
- package/src/types/user/index.ts +38 -0
- package/src/utils/index.ts +1 -0
- package/src/validations/calendar.schema.ts +6 -45
- package/src/validations/documentation-templates/index.ts +1 -0
- package/src/validations/documentation-templates.schema.ts +1 -1
- package/src/validations/index.ts +20 -0
- package/src/validations/patient/token.schema.ts +29 -0
- package/src/validations/patient.schema.ts +23 -6
- package/src/validations/profile-info.schema.ts +1 -1
- package/src/validations/schemas.ts +24 -24
package/dist/admin/index.js
CHANGED
|
@@ -48,7 +48,9 @@ __export(index_exports, {
|
|
|
48
48
|
NotificationStatus: () => NotificationStatus,
|
|
49
49
|
NotificationType: () => NotificationType,
|
|
50
50
|
NotificationsAdmin: () => NotificationsAdmin,
|
|
51
|
+
PATIENTS_COLLECTION: () => PATIENTS_COLLECTION,
|
|
51
52
|
PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME: () => PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME,
|
|
53
|
+
PATIENT_SENSITIVE_INFO_COLLECTION: () => PATIENT_SENSITIVE_INFO_COLLECTION,
|
|
52
54
|
PatientAggregationService: () => PatientAggregationService,
|
|
53
55
|
PatientInstructionStatus: () => PatientInstructionStatus,
|
|
54
56
|
PatientRequirementOverallStatus: () => PatientRequirementOverallStatus,
|
|
@@ -132,15 +134,7 @@ var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
|
132
134
|
})(MediaType || {});
|
|
133
135
|
var APPOINTMENTS_COLLECTION = "appointments";
|
|
134
136
|
|
|
135
|
-
// src/types/
|
|
136
|
-
var DOCUMENTATION_TEMPLATES_COLLECTION = "documentation-templates";
|
|
137
|
-
var USER_FORMS_SUBCOLLECTION = "user-forms";
|
|
138
|
-
var DOCTOR_FORMS_SUBCOLLECTION = "doctor-forms";
|
|
139
|
-
|
|
140
|
-
// src/types/calendar/index.ts
|
|
141
|
-
var CALENDAR_COLLECTION = "calendar";
|
|
142
|
-
|
|
143
|
-
// src/types/index.ts
|
|
137
|
+
// src/types/user/index.ts
|
|
144
138
|
var UserRole = /* @__PURE__ */ ((UserRole2) => {
|
|
145
139
|
UserRole2["PATIENT"] = "patient";
|
|
146
140
|
UserRole2["PRACTITIONER"] = "practitioner";
|
|
@@ -149,6 +143,70 @@ var UserRole = /* @__PURE__ */ ((UserRole2) => {
|
|
|
149
143
|
return UserRole2;
|
|
150
144
|
})(UserRole || {});
|
|
151
145
|
|
|
146
|
+
// src/types/calendar/index.ts
|
|
147
|
+
var CALENDAR_COLLECTION = "calendar";
|
|
148
|
+
|
|
149
|
+
// src/types/clinic/practitioner-invite.types.ts
|
|
150
|
+
var PractitionerInviteStatus = /* @__PURE__ */ ((PractitionerInviteStatus2) => {
|
|
151
|
+
PractitionerInviteStatus2["PENDING"] = "pending";
|
|
152
|
+
PractitionerInviteStatus2["ACCEPTED"] = "accepted";
|
|
153
|
+
PractitionerInviteStatus2["REJECTED"] = "rejected";
|
|
154
|
+
PractitionerInviteStatus2["CANCELLED"] = "cancelled";
|
|
155
|
+
return PractitionerInviteStatus2;
|
|
156
|
+
})(PractitionerInviteStatus || {});
|
|
157
|
+
|
|
158
|
+
// src/types/clinic/index.ts
|
|
159
|
+
var CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
160
|
+
var CLINIC_ADMINS_COLLECTION = "clinic_admins";
|
|
161
|
+
var CLINICS_COLLECTION = "clinics";
|
|
162
|
+
|
|
163
|
+
// src/types/documentation-templates/index.ts
|
|
164
|
+
var DOCUMENTATION_TEMPLATES_COLLECTION = "documentation-templates";
|
|
165
|
+
var USER_FORMS_SUBCOLLECTION = "user-forms";
|
|
166
|
+
var DOCTOR_FORMS_SUBCOLLECTION = "doctor-forms";
|
|
167
|
+
|
|
168
|
+
// src/types/patient/index.ts
|
|
169
|
+
var PATIENTS_COLLECTION = "patients";
|
|
170
|
+
var PATIENT_SENSITIVE_INFO_COLLECTION = "sensitive-info";
|
|
171
|
+
|
|
172
|
+
// src/types/patient/patient-requirements.ts
|
|
173
|
+
var PatientInstructionStatus = /* @__PURE__ */ ((PatientInstructionStatus2) => {
|
|
174
|
+
PatientInstructionStatus2["PENDING_NOTIFICATION"] = "pendingNotification";
|
|
175
|
+
PatientInstructionStatus2["ACTION_DUE"] = "actionDue";
|
|
176
|
+
PatientInstructionStatus2["ACTION_TAKEN"] = "actionTaken";
|
|
177
|
+
PatientInstructionStatus2["MISSED"] = "missed";
|
|
178
|
+
PatientInstructionStatus2["CANCELLED"] = "cancelled";
|
|
179
|
+
PatientInstructionStatus2["SKIPPED"] = "skipped";
|
|
180
|
+
return PatientInstructionStatus2;
|
|
181
|
+
})(PatientInstructionStatus || {});
|
|
182
|
+
var PatientRequirementOverallStatus = /* @__PURE__ */ ((PatientRequirementOverallStatus2) => {
|
|
183
|
+
PatientRequirementOverallStatus2["ACTIVE"] = "active";
|
|
184
|
+
PatientRequirementOverallStatus2["ALL_INSTRUCTIONS_MET"] = "allInstructionsMet";
|
|
185
|
+
PatientRequirementOverallStatus2["PARTIALLY_COMPLETED"] = "partiallyCompleted";
|
|
186
|
+
PatientRequirementOverallStatus2["FAILED"] = "failed";
|
|
187
|
+
PatientRequirementOverallStatus2["CANCELLED_APPOINTMENT"] = "cancelledAppointment";
|
|
188
|
+
PatientRequirementOverallStatus2["SUPERSEDED_RESCHEDULE"] = "supersededReschedule";
|
|
189
|
+
PatientRequirementOverallStatus2["FAILED_TO_PROCESS"] = "failedToProcess";
|
|
190
|
+
return PatientRequirementOverallStatus2;
|
|
191
|
+
})(PatientRequirementOverallStatus || {});
|
|
192
|
+
var PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME = "patientRequirements";
|
|
193
|
+
|
|
194
|
+
// src/types/practitioner/index.ts
|
|
195
|
+
var PRACTITIONERS_COLLECTION = "practitioners";
|
|
196
|
+
var PractitionerTokenStatus = /* @__PURE__ */ ((PractitionerTokenStatus2) => {
|
|
197
|
+
PractitionerTokenStatus2["ACTIVE"] = "active";
|
|
198
|
+
PractitionerTokenStatus2["USED"] = "used";
|
|
199
|
+
PractitionerTokenStatus2["EXPIRED"] = "expired";
|
|
200
|
+
PractitionerTokenStatus2["REVOKED"] = "revoked";
|
|
201
|
+
return PractitionerTokenStatus2;
|
|
202
|
+
})(PractitionerTokenStatus || {});
|
|
203
|
+
|
|
204
|
+
// src/types/procedure/index.ts
|
|
205
|
+
var PROCEDURES_COLLECTION = "procedures";
|
|
206
|
+
|
|
207
|
+
// src/types/reviews/index.ts
|
|
208
|
+
var REVIEWS_COLLECTION = "reviews";
|
|
209
|
+
|
|
152
210
|
// src/admin/logger/index.ts
|
|
153
211
|
var firebaseFunctionsLogger;
|
|
154
212
|
try {
|
|
@@ -901,39 +959,6 @@ TimestampUtils.serverMode = IS_SERVER_ENV;
|
|
|
901
959
|
|
|
902
960
|
// src/admin/aggregation/clinic/clinic.aggregation.service.ts
|
|
903
961
|
var admin3 = __toESM(require("firebase-admin"));
|
|
904
|
-
|
|
905
|
-
// src/types/practitioner/index.ts
|
|
906
|
-
var PRACTITIONERS_COLLECTION = "practitioners";
|
|
907
|
-
var PractitionerTokenStatus = /* @__PURE__ */ ((PractitionerTokenStatus2) => {
|
|
908
|
-
PractitionerTokenStatus2["ACTIVE"] = "active";
|
|
909
|
-
PractitionerTokenStatus2["USED"] = "used";
|
|
910
|
-
PractitionerTokenStatus2["EXPIRED"] = "expired";
|
|
911
|
-
PractitionerTokenStatus2["REVOKED"] = "revoked";
|
|
912
|
-
return PractitionerTokenStatus2;
|
|
913
|
-
})(PractitionerTokenStatus || {});
|
|
914
|
-
|
|
915
|
-
// src/types/procedure/index.ts
|
|
916
|
-
var PROCEDURES_COLLECTION = "procedures";
|
|
917
|
-
|
|
918
|
-
// src/types/clinic/practitioner-invite.types.ts
|
|
919
|
-
var PractitionerInviteStatus = /* @__PURE__ */ ((PractitionerInviteStatus2) => {
|
|
920
|
-
PractitionerInviteStatus2["PENDING"] = "pending";
|
|
921
|
-
PractitionerInviteStatus2["ACCEPTED"] = "accepted";
|
|
922
|
-
PractitionerInviteStatus2["REJECTED"] = "rejected";
|
|
923
|
-
PractitionerInviteStatus2["CANCELLED"] = "cancelled";
|
|
924
|
-
return PractitionerInviteStatus2;
|
|
925
|
-
})(PractitionerInviteStatus || {});
|
|
926
|
-
|
|
927
|
-
// src/types/clinic/index.ts
|
|
928
|
-
var CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
929
|
-
var CLINIC_ADMINS_COLLECTION = "clinic_admins";
|
|
930
|
-
var CLINICS_COLLECTION = "clinics";
|
|
931
|
-
|
|
932
|
-
// src/types/patient/index.ts
|
|
933
|
-
var PATIENTS_COLLECTION = "patients";
|
|
934
|
-
var PATIENT_SENSITIVE_INFO_COLLECTION = "sensitive-info";
|
|
935
|
-
|
|
936
|
-
// src/admin/aggregation/clinic/clinic.aggregation.service.ts
|
|
937
962
|
var CALENDAR_SUBCOLLECTION_ID = "calendar";
|
|
938
963
|
var ClinicAggregationService = class {
|
|
939
964
|
/**
|
|
@@ -3100,28 +3125,6 @@ var PatientAggregationService = class {
|
|
|
3100
3125
|
// src/admin/aggregation/appointment/appointment.aggregation.service.ts
|
|
3101
3126
|
var admin11 = __toESM(require("firebase-admin"));
|
|
3102
3127
|
|
|
3103
|
-
// src/types/patient/patient-requirements.ts
|
|
3104
|
-
var PatientInstructionStatus = /* @__PURE__ */ ((PatientInstructionStatus2) => {
|
|
3105
|
-
PatientInstructionStatus2["PENDING_NOTIFICATION"] = "pendingNotification";
|
|
3106
|
-
PatientInstructionStatus2["ACTION_DUE"] = "actionDue";
|
|
3107
|
-
PatientInstructionStatus2["ACTION_TAKEN"] = "actionTaken";
|
|
3108
|
-
PatientInstructionStatus2["MISSED"] = "missed";
|
|
3109
|
-
PatientInstructionStatus2["CANCELLED"] = "cancelled";
|
|
3110
|
-
PatientInstructionStatus2["SKIPPED"] = "skipped";
|
|
3111
|
-
return PatientInstructionStatus2;
|
|
3112
|
-
})(PatientInstructionStatus || {});
|
|
3113
|
-
var PatientRequirementOverallStatus = /* @__PURE__ */ ((PatientRequirementOverallStatus2) => {
|
|
3114
|
-
PatientRequirementOverallStatus2["ACTIVE"] = "active";
|
|
3115
|
-
PatientRequirementOverallStatus2["ALL_INSTRUCTIONS_MET"] = "allInstructionsMet";
|
|
3116
|
-
PatientRequirementOverallStatus2["PARTIALLY_COMPLETED"] = "partiallyCompleted";
|
|
3117
|
-
PatientRequirementOverallStatus2["FAILED"] = "failed";
|
|
3118
|
-
PatientRequirementOverallStatus2["CANCELLED_APPOINTMENT"] = "cancelledAppointment";
|
|
3119
|
-
PatientRequirementOverallStatus2["SUPERSEDED_RESCHEDULE"] = "supersededReschedule";
|
|
3120
|
-
PatientRequirementOverallStatus2["FAILED_TO_PROCESS"] = "failedToProcess";
|
|
3121
|
-
return PatientRequirementOverallStatus2;
|
|
3122
|
-
})(PatientRequirementOverallStatus || {});
|
|
3123
|
-
var PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME = "patientRequirements";
|
|
3124
|
-
|
|
3125
3128
|
// src/admin/requirements/patient-requirements.admin.service.ts
|
|
3126
3129
|
var admin8 = __toESM(require("firebase-admin"));
|
|
3127
3130
|
var PatientRequirementsAdminService = class {
|
|
@@ -5476,11 +5479,6 @@ var FilledFormsAggregationService = class {
|
|
|
5476
5479
|
|
|
5477
5480
|
// src/admin/aggregation/reviews/reviews.aggregation.service.ts
|
|
5478
5481
|
var admin13 = __toESM(require("firebase-admin"));
|
|
5479
|
-
|
|
5480
|
-
// src/types/reviews/index.ts
|
|
5481
|
-
var REVIEWS_COLLECTION = "reviews";
|
|
5482
|
-
|
|
5483
|
-
// src/admin/aggregation/reviews/reviews.aggregation.service.ts
|
|
5484
5482
|
var ReviewsAggregationService = class {
|
|
5485
5483
|
/**
|
|
5486
5484
|
* Constructor for ReviewsAggregationService.
|
|
@@ -8612,7 +8610,9 @@ TimestampUtils.enableServerMode();
|
|
|
8612
8610
|
NotificationStatus,
|
|
8613
8611
|
NotificationType,
|
|
8614
8612
|
NotificationsAdmin,
|
|
8613
|
+
PATIENTS_COLLECTION,
|
|
8615
8614
|
PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME,
|
|
8615
|
+
PATIENT_SENSITIVE_INFO_COLLECTION,
|
|
8616
8616
|
PatientAggregationService,
|
|
8617
8617
|
PatientInstructionStatus,
|
|
8618
8618
|
PatientRequirementOverallStatus,
|
package/dist/admin/index.mjs
CHANGED
|
@@ -71,15 +71,7 @@ var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
|
71
71
|
})(MediaType || {});
|
|
72
72
|
var APPOINTMENTS_COLLECTION = "appointments";
|
|
73
73
|
|
|
74
|
-
// src/types/
|
|
75
|
-
var DOCUMENTATION_TEMPLATES_COLLECTION = "documentation-templates";
|
|
76
|
-
var USER_FORMS_SUBCOLLECTION = "user-forms";
|
|
77
|
-
var DOCTOR_FORMS_SUBCOLLECTION = "doctor-forms";
|
|
78
|
-
|
|
79
|
-
// src/types/calendar/index.ts
|
|
80
|
-
var CALENDAR_COLLECTION = "calendar";
|
|
81
|
-
|
|
82
|
-
// src/types/index.ts
|
|
74
|
+
// src/types/user/index.ts
|
|
83
75
|
var UserRole = /* @__PURE__ */ ((UserRole2) => {
|
|
84
76
|
UserRole2["PATIENT"] = "patient";
|
|
85
77
|
UserRole2["PRACTITIONER"] = "practitioner";
|
|
@@ -88,6 +80,70 @@ var UserRole = /* @__PURE__ */ ((UserRole2) => {
|
|
|
88
80
|
return UserRole2;
|
|
89
81
|
})(UserRole || {});
|
|
90
82
|
|
|
83
|
+
// src/types/calendar/index.ts
|
|
84
|
+
var CALENDAR_COLLECTION = "calendar";
|
|
85
|
+
|
|
86
|
+
// src/types/clinic/practitioner-invite.types.ts
|
|
87
|
+
var PractitionerInviteStatus = /* @__PURE__ */ ((PractitionerInviteStatus2) => {
|
|
88
|
+
PractitionerInviteStatus2["PENDING"] = "pending";
|
|
89
|
+
PractitionerInviteStatus2["ACCEPTED"] = "accepted";
|
|
90
|
+
PractitionerInviteStatus2["REJECTED"] = "rejected";
|
|
91
|
+
PractitionerInviteStatus2["CANCELLED"] = "cancelled";
|
|
92
|
+
return PractitionerInviteStatus2;
|
|
93
|
+
})(PractitionerInviteStatus || {});
|
|
94
|
+
|
|
95
|
+
// src/types/clinic/index.ts
|
|
96
|
+
var CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
97
|
+
var CLINIC_ADMINS_COLLECTION = "clinic_admins";
|
|
98
|
+
var CLINICS_COLLECTION = "clinics";
|
|
99
|
+
|
|
100
|
+
// src/types/documentation-templates/index.ts
|
|
101
|
+
var DOCUMENTATION_TEMPLATES_COLLECTION = "documentation-templates";
|
|
102
|
+
var USER_FORMS_SUBCOLLECTION = "user-forms";
|
|
103
|
+
var DOCTOR_FORMS_SUBCOLLECTION = "doctor-forms";
|
|
104
|
+
|
|
105
|
+
// src/types/patient/index.ts
|
|
106
|
+
var PATIENTS_COLLECTION = "patients";
|
|
107
|
+
var PATIENT_SENSITIVE_INFO_COLLECTION = "sensitive-info";
|
|
108
|
+
|
|
109
|
+
// src/types/patient/patient-requirements.ts
|
|
110
|
+
var PatientInstructionStatus = /* @__PURE__ */ ((PatientInstructionStatus2) => {
|
|
111
|
+
PatientInstructionStatus2["PENDING_NOTIFICATION"] = "pendingNotification";
|
|
112
|
+
PatientInstructionStatus2["ACTION_DUE"] = "actionDue";
|
|
113
|
+
PatientInstructionStatus2["ACTION_TAKEN"] = "actionTaken";
|
|
114
|
+
PatientInstructionStatus2["MISSED"] = "missed";
|
|
115
|
+
PatientInstructionStatus2["CANCELLED"] = "cancelled";
|
|
116
|
+
PatientInstructionStatus2["SKIPPED"] = "skipped";
|
|
117
|
+
return PatientInstructionStatus2;
|
|
118
|
+
})(PatientInstructionStatus || {});
|
|
119
|
+
var PatientRequirementOverallStatus = /* @__PURE__ */ ((PatientRequirementOverallStatus2) => {
|
|
120
|
+
PatientRequirementOverallStatus2["ACTIVE"] = "active";
|
|
121
|
+
PatientRequirementOverallStatus2["ALL_INSTRUCTIONS_MET"] = "allInstructionsMet";
|
|
122
|
+
PatientRequirementOverallStatus2["PARTIALLY_COMPLETED"] = "partiallyCompleted";
|
|
123
|
+
PatientRequirementOverallStatus2["FAILED"] = "failed";
|
|
124
|
+
PatientRequirementOverallStatus2["CANCELLED_APPOINTMENT"] = "cancelledAppointment";
|
|
125
|
+
PatientRequirementOverallStatus2["SUPERSEDED_RESCHEDULE"] = "supersededReschedule";
|
|
126
|
+
PatientRequirementOverallStatus2["FAILED_TO_PROCESS"] = "failedToProcess";
|
|
127
|
+
return PatientRequirementOverallStatus2;
|
|
128
|
+
})(PatientRequirementOverallStatus || {});
|
|
129
|
+
var PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME = "patientRequirements";
|
|
130
|
+
|
|
131
|
+
// src/types/practitioner/index.ts
|
|
132
|
+
var PRACTITIONERS_COLLECTION = "practitioners";
|
|
133
|
+
var PractitionerTokenStatus = /* @__PURE__ */ ((PractitionerTokenStatus2) => {
|
|
134
|
+
PractitionerTokenStatus2["ACTIVE"] = "active";
|
|
135
|
+
PractitionerTokenStatus2["USED"] = "used";
|
|
136
|
+
PractitionerTokenStatus2["EXPIRED"] = "expired";
|
|
137
|
+
PractitionerTokenStatus2["REVOKED"] = "revoked";
|
|
138
|
+
return PractitionerTokenStatus2;
|
|
139
|
+
})(PractitionerTokenStatus || {});
|
|
140
|
+
|
|
141
|
+
// src/types/procedure/index.ts
|
|
142
|
+
var PROCEDURES_COLLECTION = "procedures";
|
|
143
|
+
|
|
144
|
+
// src/types/reviews/index.ts
|
|
145
|
+
var REVIEWS_COLLECTION = "reviews";
|
|
146
|
+
|
|
91
147
|
// src/admin/logger/index.ts
|
|
92
148
|
var firebaseFunctionsLogger;
|
|
93
149
|
try {
|
|
@@ -840,39 +896,6 @@ TimestampUtils.serverMode = IS_SERVER_ENV;
|
|
|
840
896
|
|
|
841
897
|
// src/admin/aggregation/clinic/clinic.aggregation.service.ts
|
|
842
898
|
import * as admin3 from "firebase-admin";
|
|
843
|
-
|
|
844
|
-
// src/types/practitioner/index.ts
|
|
845
|
-
var PRACTITIONERS_COLLECTION = "practitioners";
|
|
846
|
-
var PractitionerTokenStatus = /* @__PURE__ */ ((PractitionerTokenStatus2) => {
|
|
847
|
-
PractitionerTokenStatus2["ACTIVE"] = "active";
|
|
848
|
-
PractitionerTokenStatus2["USED"] = "used";
|
|
849
|
-
PractitionerTokenStatus2["EXPIRED"] = "expired";
|
|
850
|
-
PractitionerTokenStatus2["REVOKED"] = "revoked";
|
|
851
|
-
return PractitionerTokenStatus2;
|
|
852
|
-
})(PractitionerTokenStatus || {});
|
|
853
|
-
|
|
854
|
-
// src/types/procedure/index.ts
|
|
855
|
-
var PROCEDURES_COLLECTION = "procedures";
|
|
856
|
-
|
|
857
|
-
// src/types/clinic/practitioner-invite.types.ts
|
|
858
|
-
var PractitionerInviteStatus = /* @__PURE__ */ ((PractitionerInviteStatus2) => {
|
|
859
|
-
PractitionerInviteStatus2["PENDING"] = "pending";
|
|
860
|
-
PractitionerInviteStatus2["ACCEPTED"] = "accepted";
|
|
861
|
-
PractitionerInviteStatus2["REJECTED"] = "rejected";
|
|
862
|
-
PractitionerInviteStatus2["CANCELLED"] = "cancelled";
|
|
863
|
-
return PractitionerInviteStatus2;
|
|
864
|
-
})(PractitionerInviteStatus || {});
|
|
865
|
-
|
|
866
|
-
// src/types/clinic/index.ts
|
|
867
|
-
var CLINIC_GROUPS_COLLECTION = "clinic_groups";
|
|
868
|
-
var CLINIC_ADMINS_COLLECTION = "clinic_admins";
|
|
869
|
-
var CLINICS_COLLECTION = "clinics";
|
|
870
|
-
|
|
871
|
-
// src/types/patient/index.ts
|
|
872
|
-
var PATIENTS_COLLECTION = "patients";
|
|
873
|
-
var PATIENT_SENSITIVE_INFO_COLLECTION = "sensitive-info";
|
|
874
|
-
|
|
875
|
-
// src/admin/aggregation/clinic/clinic.aggregation.service.ts
|
|
876
899
|
var CALENDAR_SUBCOLLECTION_ID = "calendar";
|
|
877
900
|
var ClinicAggregationService = class {
|
|
878
901
|
/**
|
|
@@ -3039,28 +3062,6 @@ var PatientAggregationService = class {
|
|
|
3039
3062
|
// src/admin/aggregation/appointment/appointment.aggregation.service.ts
|
|
3040
3063
|
import * as admin11 from "firebase-admin";
|
|
3041
3064
|
|
|
3042
|
-
// src/types/patient/patient-requirements.ts
|
|
3043
|
-
var PatientInstructionStatus = /* @__PURE__ */ ((PatientInstructionStatus2) => {
|
|
3044
|
-
PatientInstructionStatus2["PENDING_NOTIFICATION"] = "pendingNotification";
|
|
3045
|
-
PatientInstructionStatus2["ACTION_DUE"] = "actionDue";
|
|
3046
|
-
PatientInstructionStatus2["ACTION_TAKEN"] = "actionTaken";
|
|
3047
|
-
PatientInstructionStatus2["MISSED"] = "missed";
|
|
3048
|
-
PatientInstructionStatus2["CANCELLED"] = "cancelled";
|
|
3049
|
-
PatientInstructionStatus2["SKIPPED"] = "skipped";
|
|
3050
|
-
return PatientInstructionStatus2;
|
|
3051
|
-
})(PatientInstructionStatus || {});
|
|
3052
|
-
var PatientRequirementOverallStatus = /* @__PURE__ */ ((PatientRequirementOverallStatus2) => {
|
|
3053
|
-
PatientRequirementOverallStatus2["ACTIVE"] = "active";
|
|
3054
|
-
PatientRequirementOverallStatus2["ALL_INSTRUCTIONS_MET"] = "allInstructionsMet";
|
|
3055
|
-
PatientRequirementOverallStatus2["PARTIALLY_COMPLETED"] = "partiallyCompleted";
|
|
3056
|
-
PatientRequirementOverallStatus2["FAILED"] = "failed";
|
|
3057
|
-
PatientRequirementOverallStatus2["CANCELLED_APPOINTMENT"] = "cancelledAppointment";
|
|
3058
|
-
PatientRequirementOverallStatus2["SUPERSEDED_RESCHEDULE"] = "supersededReschedule";
|
|
3059
|
-
PatientRequirementOverallStatus2["FAILED_TO_PROCESS"] = "failedToProcess";
|
|
3060
|
-
return PatientRequirementOverallStatus2;
|
|
3061
|
-
})(PatientRequirementOverallStatus || {});
|
|
3062
|
-
var PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME = "patientRequirements";
|
|
3063
|
-
|
|
3064
3065
|
// src/admin/requirements/patient-requirements.admin.service.ts
|
|
3065
3066
|
import * as admin8 from "firebase-admin";
|
|
3066
3067
|
var PatientRequirementsAdminService = class {
|
|
@@ -5415,11 +5416,6 @@ var FilledFormsAggregationService = class {
|
|
|
5415
5416
|
|
|
5416
5417
|
// src/admin/aggregation/reviews/reviews.aggregation.service.ts
|
|
5417
5418
|
import * as admin13 from "firebase-admin";
|
|
5418
|
-
|
|
5419
|
-
// src/types/reviews/index.ts
|
|
5420
|
-
var REVIEWS_COLLECTION = "reviews";
|
|
5421
|
-
|
|
5422
|
-
// src/admin/aggregation/reviews/reviews.aggregation.service.ts
|
|
5423
5419
|
var ReviewsAggregationService = class {
|
|
5424
5420
|
/**
|
|
5425
5421
|
* Constructor for ReviewsAggregationService.
|
|
@@ -8550,7 +8546,9 @@ export {
|
|
|
8550
8546
|
NotificationStatus,
|
|
8551
8547
|
NotificationType,
|
|
8552
8548
|
NotificationsAdmin,
|
|
8549
|
+
PATIENTS_COLLECTION,
|
|
8553
8550
|
PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME,
|
|
8551
|
+
PATIENT_SENSITIVE_INFO_COLLECTION,
|
|
8554
8552
|
PatientAggregationService,
|
|
8555
8553
|
PatientInstructionStatus,
|
|
8556
8554
|
PatientRequirementOverallStatus,
|