@blackcode_sa/metaestetics-api 1.5.7 → 1.5.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blackcode_sa/metaestetics-api",
3
3
  "private": false,
4
- "version": "1.5.7",
4
+ "version": "1.5.9",
5
5
  "description": "Firebase authentication service with anonymous upgrade support",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { UserRole } from './types';
2
- import { Category } from './backoffice/types/category.types';
1
+ import { UserRole } from "./types";
2
+ import { Category } from "./backoffice/types/category.types";
3
3
 
4
4
  // Firebase
5
5
  export {
@@ -8,43 +8,50 @@ export {
8
8
  getFirebaseAuth,
9
9
  getFirebaseDB,
10
10
  getFirebaseApp,
11
- } from './config/firebase';
11
+ } from "./config/firebase";
12
12
 
13
13
  // Services
14
- export { AuthService } from './services/auth.service';
15
- export { UserService } from './services/user.service';
16
- export { NotificationService } from './services/notifications/notification.service';
17
- export { PatientService } from './services/patient/patient.service';
18
- export { PractitionerService } from './services/practitioner/practitioner.service';
19
- export { ProcedureService } from './services/procedure/procedure.service';
20
- export { ClinicService } from './services/clinic/clinic.service';
21
- export { ClinicAdminService } from './services/clinic/clinic-admin.service';
22
- export { ClinicGroupService } from './services/clinic/clinic-group.service';
14
+ export { AuthService } from "./services/auth.service";
15
+ export { UserService } from "./services/user.service";
16
+ export { NotificationService } from "./services/notifications/notification.service";
17
+ export { PatientService } from "./services/patient/patient.service";
18
+ export { PractitionerService } from "./services/practitioner/practitioner.service";
19
+ export { ProcedureService } from "./services/procedure/procedure.service";
20
+ export { ClinicService } from "./services/clinic/clinic.service";
21
+ export { ClinicAdminService } from "./services/clinic/clinic-admin.service";
22
+ export { ClinicGroupService } from "./services/clinic/clinic-group.service";
23
23
  export {
24
24
  DocumentationTemplateService,
25
25
  FilledDocumentService,
26
- } from './services/documentation-templates';
27
- export { CalendarServiceV2 } from './services/calendar/calendar-refactored.service';
28
- export { SyncedCalendarsService } from './services/calendar/synced-calendars.service';
26
+ } from "./services/documentation-templates";
27
+ export { CalendarServiceV2 } from "./services/calendar/calendar-refactored.service";
28
+ export { SyncedCalendarsService } from "./services/calendar/synced-calendars.service";
29
+
30
+ // Backoffice services
31
+ export { BrandService } from "./backoffice/services/brand.service";
32
+ export { CategoryService } from "./backoffice/services/category.service";
33
+ export { SubcategoryService } from "./backoffice/services/subcategory.service";
34
+ export { TechnologyService } from "./backoffice/services/technology.service";
35
+ export { ProductService } from "./backoffice/services/product.service";
29
36
 
30
37
  // Types
31
- export type { User, UserRole, CreateUserData, FirebaseUser } from './types';
32
- export { AUTH_ERRORS } from './errors/auth.errors';
33
- export { USER_ERRORS } from './errors/user.errors';
34
- export type { AuthError } from './errors/auth.errors';
35
- export * from './validations/schemas';
36
- export * from './validations/notification.schema';
37
- export * from './validations/patient.schema';
38
- export * from './validations/practitioner.schema';
39
- export * from './validations/clinic.schema';
40
- export * from './validations/patient/medical-info.schema';
41
- export * from './validations/documentation-templates.schema';
42
- export * from './validations/calendar.schema';
38
+ export type { User, UserRole, CreateUserData, FirebaseUser } from "./types";
39
+ export { AUTH_ERRORS } from "./errors/auth.errors";
40
+ export { USER_ERRORS } from "./errors/user.errors";
41
+ export type { AuthError } from "./errors/auth.errors";
42
+ export * from "./validations/schemas";
43
+ export * from "./validations/notification.schema";
44
+ export * from "./validations/patient.schema";
45
+ export * from "./validations/practitioner.schema";
46
+ export * from "./validations/clinic.schema";
47
+ export * from "./validations/patient/medical-info.schema";
48
+ export * from "./validations/documentation-templates.schema";
49
+ export * from "./validations/calendar.schema";
43
50
  export {
44
51
  practitionerProfileInfoSchema,
45
52
  patientProfileInfoSchema,
46
- } from './validations/profile-info.schema';
47
- export { FirebaseErrorCode } from './errors/firebase.errors';
53
+ } from "./validations/profile-info.schema";
54
+ export { FirebaseErrorCode } from "./errors/firebase.errors";
48
55
 
49
56
  // Notification types
50
57
  export type {
@@ -54,8 +61,8 @@ export type {
54
61
  PostRequirementNotification,
55
62
  AppointmentReminderNotification,
56
63
  AppointmentNotification,
57
- } from './types/notifications';
58
- export { NotificationType, NotificationStatus } from './types/notifications';
64
+ } from "./types/notifications";
65
+ export { NotificationType, NotificationStatus } from "./types/notifications";
59
66
 
60
67
  // Patient types
61
68
  export type {
@@ -89,7 +96,7 @@ export type {
89
96
  UpdateMedicationData,
90
97
  Allergy,
91
98
  PatientProfileComplete,
92
- } from './types/patient';
99
+ } from "./types/patient";
93
100
  export {
94
101
  Gender,
95
102
  PATIENTS_COLLECTION,
@@ -98,10 +105,13 @@ export {
98
105
  PATIENT_LOCATION_INFO_COLLECTION,
99
106
  PATIENT_MEDICAL_HISTORY_COLLECTION,
100
107
  PATIENT_APPOINTMENTS_COLLECTION,
101
- } from './types/patient';
108
+ } from "./types/patient";
102
109
 
103
110
  // Allergy tipovi
104
- export type { AllergyTypeWithSubtype, AllergySubtype } from './types/patient/allergies';
111
+ export type {
112
+ AllergyTypeWithSubtype,
113
+ AllergySubtype,
114
+ } from "./types/patient/allergies";
105
115
 
106
116
  export {
107
117
  AllergyType,
@@ -109,7 +119,7 @@ export {
109
119
  FoodAllergySubtype,
110
120
  EnvironmentalAllergySubtype,
111
121
  CosmeticAllergySubtype,
112
- } from './types/patient/allergies';
122
+ } from "./types/patient/allergies";
113
123
 
114
124
  // Practitioner types
115
125
  export type {
@@ -125,13 +135,13 @@ export type {
125
135
  CreateDraftPractitionerData,
126
136
  PractitionerToken,
127
137
  CreatePractitionerTokenData,
128
- } from './types/practitioner';
138
+ } from "./types/practitioner";
129
139
  export {
130
140
  PRACTITIONERS_COLLECTION,
131
141
  REGISTER_TOKENS_COLLECTION,
132
142
  PractitionerStatus,
133
143
  PractitionerTokenStatus,
134
- } from './types/practitioner';
144
+ } from "./types/practitioner";
135
145
 
136
146
  // Clinic types
137
147
  export type {
@@ -160,7 +170,7 @@ export type {
160
170
  CreateDefaultClinicGroupData,
161
171
  ClinicGroupSetupData,
162
172
  ClinicBranchSetupData,
163
- } from './types/clinic';
173
+ } from "./types/clinic";
164
174
  export {
165
175
  CLINICS_COLLECTION,
166
176
  CLINIC_GROUPS_COLLECTION,
@@ -171,10 +181,14 @@ export {
171
181
  ClinicPhotoTag,
172
182
  AdminTokenStatus,
173
183
  SubscriptionModel,
174
- } from './types/clinic';
184
+ } from "./types/clinic";
175
185
 
176
186
  // Profile info types
177
- export type { ClinicInfo, PractitionerProfileInfo, PatientProfileInfo } from './types/profile';
187
+ export type {
188
+ ClinicInfo,
189
+ PractitionerProfileInfo,
190
+ PatientProfileInfo,
191
+ } from "./types/profile";
178
192
 
179
193
  // Calendar types
180
194
  export type {
@@ -188,59 +202,62 @@ export type {
188
202
  SyncedCalendarEvent,
189
203
  CreateAppointmentParams,
190
204
  UpdateAppointmentParams,
191
- } from './types/calendar';
205
+ } from "./types/calendar";
192
206
 
193
207
  export {
194
208
  CalendarEventStatus,
195
209
  CalendarEventType,
196
210
  CalendarSyncStatus,
197
211
  CALENDAR_COLLECTION,
198
- } from './types/calendar';
212
+ } from "./types/calendar";
199
213
 
200
214
  // Synced calendar types
201
215
  export type {
202
216
  SyncedCalendar,
203
217
  CreateSyncedCalendarData,
204
218
  UpdateSyncedCalendarData,
205
- } from './types/calendar/synced-calendar.types';
219
+ } from "./types/calendar/synced-calendar.types";
206
220
 
207
221
  export {
208
222
  SyncedCalendarProvider,
209
223
  SYNCED_CALENDARS_COLLECTION,
210
- } from './types/calendar/synced-calendar.types';
224
+ } from "./types/calendar/synced-calendar.types";
211
225
 
212
226
  // Certification types
213
227
 
214
228
  // Brand types
215
- export type { Brand } from './backoffice/types/brand.types';
229
+ export type { Brand } from "./backoffice/types/brand.types";
216
230
 
217
231
  // Category types
218
- export type { Category } from './backoffice/types/category.types';
232
+ export type { Category } from "./backoffice/types/category.types";
219
233
 
220
234
  // Product types
221
- export type { Product } from './backoffice/types/product.types';
235
+ export type { Product } from "./backoffice/types/product.types";
222
236
 
223
237
  // Requirement types
224
- export type { Requirement } from './backoffice/types/requirement.types';
238
+ export type { Requirement } from "./backoffice/types/requirement.types";
225
239
 
226
240
  // Subcategory types
227
- export type { Subcategory } from './backoffice/types/subcategory.types';
241
+ export type { Subcategory } from "./backoffice/types/subcategory.types";
228
242
 
229
243
  // Technology types
230
- export type { Technology } from './backoffice/types/technology.types';
244
+ export type { Technology } from "./backoffice/types/technology.types";
231
245
 
232
246
  // Pricing enums
233
- export { PricingMeasure, Currency } from './backoffice/types/static/pricing.types';
247
+ export {
248
+ PricingMeasure,
249
+ Currency,
250
+ } from "./backoffice/types/static/pricing.types";
234
251
 
235
252
  // Static types
236
- export { BlockingCondition } from './backoffice/types/static/blocking-condition.types';
253
+ export { BlockingCondition } from "./backoffice/types/static/blocking-condition.types";
237
254
  export {
238
255
  CertificationSpecialty,
239
256
  CertificationLevel,
240
- } from './backoffice/types/static/certification.types';
241
- export { Contraindication } from './backoffice/types/static/contraindication.types';
242
- export { ProcedureFamily } from './backoffice/types/static/procedure-family.types';
243
- export { TreatmentBenefit } from './backoffice/types/static/treatment-benefit.types';
257
+ } from "./backoffice/types/static/certification.types";
258
+ export { Contraindication } from "./backoffice/types/static/contraindication.types";
259
+ export { ProcedureFamily } from "./backoffice/types/static/procedure-family.types";
260
+ export { TreatmentBenefit } from "./backoffice/types/static/treatment-benefit.types";
244
261
 
245
262
  // Documentation Templates types
246
263
  export type {
@@ -249,12 +266,23 @@ export type {
249
266
  UpdateDocumentTemplateData,
250
267
  DocumentElement,
251
268
  FilledDocument,
252
- } from './types/documentation-templates';
269
+ } from "./types/documentation-templates";
253
270
  export {
254
271
  DocumentElementType,
255
272
  HeadingLevel,
256
273
  ListType,
257
274
  DynamicVariable,
258
275
  FilledDocumentStatus,
259
- } from './types/documentation-templates';
260
- export { DOCUMENTATION_TEMPLATES_COLLECTION, FILLED_DOCUMENTS_COLLECTION } from './types';
276
+ } from "./types/documentation-templates";
277
+ export {
278
+ DOCUMENTATION_TEMPLATES_COLLECTION,
279
+ FILLED_DOCUMENTS_COLLECTION,
280
+ } from "./types";
281
+
282
+ // Procedure types
283
+ export type {
284
+ Procedure,
285
+ CreateProcedureData,
286
+ UpdateProcedureData,
287
+ } from "./types/procedure";
288
+ export { PROCEDURES_COLLECTION } from "./types/procedure";