@blackcode_sa/metaestetics-api 1.4.18 → 1.5.1
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 +7900 -4726
- package/dist/index.d.ts +7900 -4726
- package/dist/index.js +3029 -111
- package/dist/index.mjs +3059 -111
- package/package.json +4 -3
- package/src/index.ts +57 -2
- package/src/services/calendar/calendar-refactored.service.ts +1531 -0
- package/src/services/calendar/calendar.service.ts +1077 -0
- package/src/services/calendar/synced-calendars.service.ts +743 -0
- package/src/services/calendar/utils/appointment.utils.ts +314 -0
- package/src/services/calendar/utils/calendar-event.utils.ts +510 -0
- package/src/services/calendar/utils/clinic.utils.ts +237 -0
- package/src/services/calendar/utils/docs.utils.ts +157 -0
- package/src/services/calendar/utils/google-calendar.utils.ts +697 -0
- package/src/services/calendar/utils/index.ts +8 -0
- package/src/services/calendar/utils/patient.utils.ts +198 -0
- package/src/services/calendar/utils/practitioner.utils.ts +221 -0
- package/src/services/calendar/utils/synced-calendar.utils.ts +472 -0
- package/src/services/practitioner/practitioner.service.ts +346 -1
- package/src/types/calendar/index.ts +187 -0
- package/src/types/calendar/synced-calendar.types.ts +66 -0
- package/src/types/clinic/index.ts +1 -12
- package/src/types/index.ts +4 -0
- package/src/types/practitioner/index.ts +81 -0
- package/src/types/profile/index.ts +39 -0
- package/src/validations/calendar.schema.ts +223 -0
- package/src/validations/practitioner.schema.ts +66 -0
- package/src/validations/profile-info.schema.ts +41 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blackcode_sa/metaestetics-api",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"description": "Firebase authentication service with anonymous upgrade support",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -84,14 +84,15 @@
|
|
|
84
84
|
"@types/jest": "^29.5.14",
|
|
85
85
|
"@types/node": "^20.17.13",
|
|
86
86
|
"@types/react": "~18.3.12",
|
|
87
|
+
"expo-crypto": "^14.0.0",
|
|
87
88
|
"firebase-mock": "^2.3.2",
|
|
88
89
|
"jest": "^29.7.0",
|
|
89
90
|
"ts-jest": "^29.2.5",
|
|
90
91
|
"tsup": "^8.3.5",
|
|
91
|
-
"typescript": "^5.7.3"
|
|
92
|
-
"expo-crypto": "^14.0.0"
|
|
92
|
+
"typescript": "^5.7.3"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
+
"axios": "^1.8.3",
|
|
95
96
|
"expo-server-sdk": "^3.13.0",
|
|
96
97
|
"firebase-admin": "^13.0.2",
|
|
97
98
|
"geofire-common": "^6.0.0",
|
package/src/index.ts
CHANGED
|
@@ -22,6 +22,8 @@ export {
|
|
|
22
22
|
DocumentationTemplateService,
|
|
23
23
|
FilledDocumentService,
|
|
24
24
|
} from "./services/documentation-templates";
|
|
25
|
+
export { CalendarServiceV2 } from "./services/calendar/calendar-refactored.service";
|
|
26
|
+
export { SyncedCalendarsService } from "./services/calendar/synced-calendars.service";
|
|
25
27
|
|
|
26
28
|
// Types
|
|
27
29
|
export type { User, UserRole, CreateUserData, FirebaseUser } from "./types";
|
|
@@ -35,6 +37,11 @@ export * from "./validations/practitioner.schema";
|
|
|
35
37
|
export * from "./validations/clinic.schema";
|
|
36
38
|
export * from "./validations/patient/medical-info.schema";
|
|
37
39
|
export * from "./validations/documentation-templates.schema";
|
|
40
|
+
export * from "./validations/calendar.schema";
|
|
41
|
+
export {
|
|
42
|
+
practitionerProfileInfoSchema,
|
|
43
|
+
patientProfileInfoSchema,
|
|
44
|
+
} from "./validations/profile-info.schema";
|
|
38
45
|
export { FirebaseErrorCode } from "./errors/firebase.errors";
|
|
39
46
|
|
|
40
47
|
// Notification types
|
|
@@ -115,8 +122,17 @@ export type {
|
|
|
115
122
|
PractitionerClinicProcedures,
|
|
116
123
|
PractitionerReview,
|
|
117
124
|
PractitionerWorkingHours,
|
|
125
|
+
PractitionerClinicWorkingHours,
|
|
126
|
+
CreateDraftPractitionerData,
|
|
127
|
+
PractitionerToken,
|
|
128
|
+
CreatePractitionerTokenData,
|
|
129
|
+
} from "./types/practitioner";
|
|
130
|
+
export {
|
|
131
|
+
PRACTITIONERS_COLLECTION,
|
|
132
|
+
REGISTER_TOKENS_COLLECTION,
|
|
133
|
+
PractitionerStatus,
|
|
134
|
+
PractitionerTokenStatus,
|
|
118
135
|
} from "./types/practitioner";
|
|
119
|
-
export { PRACTITIONERS_COLLECTION } from "./types/practitioner";
|
|
120
136
|
|
|
121
137
|
// Clinic types
|
|
122
138
|
export type {
|
|
@@ -136,7 +152,6 @@ export type {
|
|
|
136
152
|
ClinicReview,
|
|
137
153
|
ClinicAdminSignupData,
|
|
138
154
|
ContactPerson,
|
|
139
|
-
ClinicInfo,
|
|
140
155
|
AdminToken,
|
|
141
156
|
AdminInfo,
|
|
142
157
|
CreateAdminTokenData,
|
|
@@ -159,6 +174,46 @@ export {
|
|
|
159
174
|
SubscriptionModel,
|
|
160
175
|
} from "./types/clinic";
|
|
161
176
|
|
|
177
|
+
// Profile info types
|
|
178
|
+
export type {
|
|
179
|
+
ClinicInfo,
|
|
180
|
+
PractitionerProfileInfo,
|
|
181
|
+
PatientProfileInfo,
|
|
182
|
+
} from "./types/profile";
|
|
183
|
+
|
|
184
|
+
// Calendar types
|
|
185
|
+
export type {
|
|
186
|
+
CalendarEvent,
|
|
187
|
+
CalendarEventTime,
|
|
188
|
+
CreateCalendarEventData,
|
|
189
|
+
UpdateCalendarEventData,
|
|
190
|
+
TimeSlot,
|
|
191
|
+
ProcedureInfo,
|
|
192
|
+
ProcedureCategorization,
|
|
193
|
+
SyncedCalendarEvent,
|
|
194
|
+
CreateAppointmentParams,
|
|
195
|
+
UpdateAppointmentParams,
|
|
196
|
+
} from "./types/calendar";
|
|
197
|
+
|
|
198
|
+
export {
|
|
199
|
+
CalendarEventStatus,
|
|
200
|
+
CalendarEventType,
|
|
201
|
+
CalendarSyncStatus,
|
|
202
|
+
CALENDAR_COLLECTION,
|
|
203
|
+
} from "./types/calendar";
|
|
204
|
+
|
|
205
|
+
// Synced calendar types
|
|
206
|
+
export type {
|
|
207
|
+
SyncedCalendar,
|
|
208
|
+
CreateSyncedCalendarData,
|
|
209
|
+
UpdateSyncedCalendarData,
|
|
210
|
+
} from "./types/calendar/synced-calendar.types";
|
|
211
|
+
|
|
212
|
+
export {
|
|
213
|
+
SyncedCalendarProvider,
|
|
214
|
+
SYNCED_CALENDARS_COLLECTION,
|
|
215
|
+
} from "./types/calendar/synced-calendar.types";
|
|
216
|
+
|
|
162
217
|
// Certification types
|
|
163
218
|
|
|
164
219
|
// Brand types
|