@blackcode_sa/metaestetics-api 1.8.0 → 1.8.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.
Files changed (40) hide show
  1. package/dist/admin/index.d.mts +956 -848
  2. package/dist/admin/index.d.ts +956 -848
  3. package/dist/admin/index.js +7215 -6757
  4. package/dist/admin/index.mjs +7215 -6754
  5. package/dist/backoffice/index.d.mts +1418 -1418
  6. package/dist/backoffice/index.d.ts +1418 -1418
  7. package/dist/backoffice/index.js +1464 -1454
  8. package/dist/backoffice/index.mjs +1509 -1499
  9. package/dist/index.d.mts +5565 -5565
  10. package/dist/index.d.ts +5565 -5565
  11. package/dist/index.js +9229 -9225
  12. package/dist/index.mjs +9324 -9320
  13. package/package.json +1 -1
  14. package/src/admin/aggregation/appointment/index.ts +1 -0
  15. package/src/admin/aggregation/clinic/index.ts +1 -0
  16. package/src/admin/aggregation/forms/index.ts +1 -0
  17. package/src/admin/aggregation/index.ts +8 -0
  18. package/src/admin/aggregation/patient/index.ts +1 -0
  19. package/src/admin/aggregation/practitioner/index.ts +1 -0
  20. package/src/admin/aggregation/practitioner-invite/index.ts +1 -0
  21. package/src/admin/aggregation/procedure/index.ts +1 -0
  22. package/src/admin/aggregation/reviews/index.ts +1 -0
  23. package/src/admin/booking/index.ts +1 -1
  24. package/src/admin/calendar/index.ts +1 -0
  25. package/src/admin/documentation-templates/index.ts +1 -0
  26. package/src/admin/free-consultation/index.ts +1 -0
  27. package/src/admin/index.ts +18 -120
  28. package/src/admin/mailing/appointment/index.ts +1 -0
  29. package/src/admin/mailing/index.ts +1 -2
  30. package/src/admin/mailing/practitionerInvite/index.ts +1 -0
  31. package/src/admin/notifications/index.ts +1 -0
  32. package/src/admin/requirements/index.ts +1 -0
  33. package/src/admin/users/index.ts +1 -0
  34. package/src/admin/users/user-profile.admin.ts +1 -0
  35. package/src/backoffice/constants/index.ts +1 -0
  36. package/src/backoffice/errors/index.ts +1 -0
  37. package/src/backoffice/index.ts +5 -14
  38. package/src/backoffice/services/index.ts +7 -0
  39. package/src/backoffice/validations/index.ts +1 -0
  40. package/src/services/index.ts +12 -14
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blackcode_sa/metaestetics-api",
3
3
  "private": false,
4
- "version": "1.8.0",
4
+ "version": "1.8.1",
5
5
  "description": "Firebase authentication service with anonymous upgrade support",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -0,0 +1 @@
1
+ export * from "./appointment.aggregation.service";
@@ -0,0 +1 @@
1
+ export * from "./clinic.aggregation.service";
@@ -0,0 +1 @@
1
+ export * from "./filled-forms.aggregation.service";
@@ -0,0 +1,8 @@
1
+ export * from "./appointment";
2
+ export * from "./clinic";
3
+ export * from "./forms";
4
+ export * from "./patient";
5
+ export * from "./practitioner";
6
+ export * from "./practitioner-invite";
7
+ export * from "./procedure";
8
+ export * from "./reviews";
@@ -0,0 +1 @@
1
+ export * from "./patient.aggregation.service";
@@ -0,0 +1 @@
1
+ export * from "./practitioner.aggregation.service";
@@ -0,0 +1 @@
1
+ export * from "./practitioner-invite.aggregation.service";
@@ -0,0 +1 @@
1
+ export * from "./procedure.aggregation.service";
@@ -0,0 +1 @@
1
+ export * from "./reviews.aggregation.service";
@@ -1,3 +1,3 @@
1
1
  export * from "./booking.types";
2
2
  export * from "./booking.calculator";
3
- export { BookingAdmin } from "./booking.admin";
3
+ export * from "./booking.admin";
@@ -0,0 +1 @@
1
+ export * from "./calendar.admin.service";
@@ -0,0 +1 @@
1
+ export * from "./document-manager.admin";
@@ -0,0 +1 @@
1
+ export * from "./free-consultation-utils.admin";
@@ -1,47 +1,6 @@
1
- import { NotificationsAdmin } from "./notifications/notifications.admin";
2
- import * as admin from "firebase-admin";
3
- import { TimestampUtils } from "../utils/TimestampUtils";
1
+ import { TimestampUtils } from "../utils/";
4
2
 
5
- import { UserRole } from "../types";
6
- // Import types needed by admin consumers (like Cloud Functions)
7
- import { Clinic, ClinicLocation } from "../types/clinic";
8
- import { ClinicInfo } from "../types/profile";
9
- import {
10
- Practitioner,
11
- PractitionerToken,
12
- PractitionerTokenStatus,
13
- } from "../types/practitioner";
14
- import {
15
- PractitionerInvite,
16
- PractitionerInviteStatus,
17
- } from "../types/clinic/practitioner-invite.types";
18
- import { DoctorInfo } from "../types/clinic";
19
- import { Procedure, ProcedureSummaryInfo } from "../types/procedure";
20
- import { PatientProfile, PatientSensitiveInfo } from "../types/patient";
21
- import { Appointment, AppointmentStatus } from "../types/appointment";
22
-
23
- // Explicitly import the services to re-export them by name
24
- import { ClinicAggregationService } from "./aggregation/clinic/clinic.aggregation.service";
25
- import { PractitionerAggregationService } from "./aggregation/practitioner/practitioner.aggregation.service";
26
- import { PractitionerInviteAggregationService } from "./aggregation/practitioner-invite/practitioner-invite.aggregation.service";
27
- import { ProcedureAggregationService } from "./aggregation/procedure/procedure.aggregation.service";
28
- import { PatientAggregationService } from "./aggregation/patient/patient.aggregation.service";
29
- import { AppointmentAggregationService } from "./aggregation/appointment/appointment.aggregation.service";
30
- import { FilledFormsAggregationService } from "./aggregation/forms/filled-forms.aggregation.service";
31
- import { ReviewsAggregationService } from "./aggregation/reviews/reviews.aggregation.service";
32
-
33
- // Import mailing services
34
- import { BaseMailingService } from "./mailing/base.mailing.service";
35
- import { PractitionerInviteMailingService } from "./mailing/practitionerInvite/practitionerInvite.mailing";
36
- import { ExistingPractitionerInviteMailingService } from "./mailing/practitionerInvite/existing-practitioner-invite.mailing";
37
-
38
- // Import booking services
39
- import { BookingAdmin } from "./booking/booking.admin";
40
-
41
- // Import patient requirements services
42
- import { PatientRequirementsAdminService } from "./requirements/patient-requirements.admin.service";
43
-
44
- // Re-export types
3
+ // Re-export types needed by Cloud Functions consuming this module
45
4
  export type {
46
5
  Notification,
47
6
  BaseNotification,
@@ -49,15 +8,11 @@ export type {
49
8
  PostRequirementNotification,
50
9
  AppointmentReminderNotification,
51
10
  } from "../types/notifications";
52
-
53
- // Re-export patient types
54
11
  export type { PatientProfile, PatientSensitiveInfo } from "../types/patient";
55
12
  export {
56
13
  PATIENTS_COLLECTION,
57
14
  PATIENT_SENSITIVE_INFO_COLLECTION,
58
15
  } from "../types/patient";
59
-
60
- // Re-export types needed by cloud functions
61
16
  export type { Clinic, ClinicLocation } from "../types/clinic";
62
17
  export type { ClinicInfo } from "../types/profile";
63
18
  export type { Practitioner, PractitionerToken } from "../types/practitioner";
@@ -75,96 +30,39 @@ export {
75
30
  NotificationStatus,
76
31
  NOTIFICATIONS_COLLECTION,
77
32
  } from "../types/notifications";
78
- export { UserRole } from "../types";
33
+ export { UserRole } from "../types/user";
79
34
  export { PractitionerTokenStatus } from "../types/practitioner";
80
35
  export { PractitionerInviteStatus } from "../types/clinic/practitioner-invite.types";
81
36
  export { AppointmentStatus } from "../types/appointment";
82
37
 
83
- // Export admin classes/services explicitly by name
84
- export {
85
- NotificationsAdmin,
86
- ClinicAggregationService,
87
- PractitionerAggregationService,
88
- PractitionerInviteAggregationService,
89
- ProcedureAggregationService,
90
- PatientAggregationService,
91
- AppointmentAggregationService,
92
- PatientRequirementsAdminService,
93
- FilledFormsAggregationService,
94
- ReviewsAggregationService,
95
- };
96
-
97
- // Export mailing services
98
- export {
99
- BaseMailingService,
100
- PractitionerInviteMailingService,
101
- ExistingPractitionerInviteMailingService,
102
- };
103
-
104
38
  // Export mailing service interfaces
105
39
  export type {
106
40
  ExistingPractitionerInviteEmailData,
107
41
  ClinicAdminNotificationData,
108
- } from "./mailing/practitionerInvite/existing-practitioner-invite.mailing";
109
-
110
- // Export booking services
111
- export { BookingAdmin };
112
-
113
- // Also export booking types
114
- export * from "./booking/booking.types";
42
+ } from "./mailing/practitionerInvite/";
115
43
 
116
- // Re-export types needed by admin services that might not be covered by general type exports
117
- export type {
118
- PatientRequirementInstance,
119
- PatientRequirementInstruction,
120
- } from "../types/patient/patient-requirements";
121
- export {
122
- PatientInstructionStatus,
123
- PatientRequirementOverallStatus,
124
- PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME,
125
- } from "../types/patient/patient-requirements";
44
+ // Re-export types needed by admin services
45
+ export type * from "../types/patient/patient-requirements";
46
+ export * from "../types/patient/patient-requirements";
126
47
 
127
48
  /**
128
49
  * Main entry point for the Admin module.
129
50
  * This module contains services and utilities intended for administrative tasks,
130
- * background processing, and potentially direct use by admin interfaces or Cloud Functions.
51
+ * background processing, and direct use by Cloud Functions.
131
52
  */
132
-
133
- // --- Aggregation Services --- //
134
- // Placeholder: export * from "./aggregation/practitioner/practitioner.aggregation.service";
135
- // Placeholder: export * from "./aggregation/procedure/procedure.aggregation.service";
136
- // Placeholder: export * from "./aggregation/patient/patient.aggregation.service";
137
-
138
- // --- Other Admin Services/Utilities (Add as needed) --- //
139
- // Example: export * from './user-management/user-management.service';
140
- // Example: export * from './reporting/reporting.service';
141
-
142
53
  console.log("[Admin Module] Initialized and services exported.");
143
54
 
144
- // Note: Ensure that services exported here are properly initialized
145
- // if they have dependencies (like Firestore db) that need to be injected.
146
- // The initialization pattern might differ depending on how this module is consumed
147
- // (e.g., within a larger NestJS app vs. standalone Cloud Functions).
148
-
149
55
  // Initialize TimestampUtils for server-side use
150
56
  TimestampUtils.enableServerMode();
151
57
 
152
- // Export all admin services that are needed
153
- export * from "./booking/booking.admin";
154
- export * from "./booking/booking.calculator";
155
- export * from "./booking/booking.types";
156
- export * from "./calendar/calendar.admin.service";
157
- export * from "./documentation-templates/document-manager.admin";
58
+ // Export all services and utilities from the admin sub-modules.
59
+ export * from "./aggregation";
60
+ export * from "./booking";
61
+ export * from "./calendar";
62
+ export * from "./documentation-templates";
63
+ export * from "./free-consultation";
158
64
  export * from "./logger";
159
- export * from "./mailing/appointment/appointment.mailing.service";
160
- export * from "./notifications/notifications.admin";
161
- export * from "./requirements/patient-requirements.admin.service";
162
- export * from "./aggregation/appointment/appointment.aggregation.service";
163
- export * from "./aggregation/forms/filled-forms.aggregation.service";
164
- export * from "./aggregation/reviews/reviews.aggregation.service";
165
- // Re-export types that Cloud Functions might need direct access to
166
- export * from "../types/appointment";
167
- // Add other types as needed
168
-
169
- // Export free consultation utilities
170
- export * from "./free-consultation/free-consultation-utils.admin";
65
+ export * from "./mailing";
66
+ export * from "./notifications";
67
+ export * from "./requirements";
68
+ export * from "./users";
@@ -0,0 +1 @@
1
+ export * from "./appointment.mailing.service";
@@ -1,4 +1,3 @@
1
1
  export * from "./base.mailing.service";
2
2
  export * from "./practitionerInvite";
3
- export * from "./practitionerInvite/practitionerInvite.mailing";
4
- export * from "./appointment/appointment.mailing.service";
3
+ export * from "./appointment";
@@ -1 +1,2 @@
1
1
  export * from "./practitionerInvite.mailing";
2
+ export * from "./existing-practitioner-invite.mailing";
@@ -0,0 +1 @@
1
+ export * from "./notifications.admin";
@@ -0,0 +1 @@
1
+ export * from "./patient-requirements.admin.service";
@@ -0,0 +1 @@
1
+ export * from "./user-profile.admin";
@@ -123,6 +123,7 @@ export class UserProfileAdminService {
123
123
  },
124
124
  isActive: true,
125
125
  isVerified: false,
126
+ isManual: false,
126
127
  doctors: [],
127
128
  clinics: [],
128
129
  doctorIds: [],
@@ -0,0 +1 @@
1
+ export * from "./certification.constants";
@@ -0,0 +1 @@
1
+ export * from "./backoffice.errors";
@@ -1,14 +1,5 @@
1
- // Export types
2
- export * from "./types";
3
- export * from "./constants/certification.constants";
4
- export * from "./errors/backoffice.errors";
5
- export * from "./validations/schemas";
6
-
7
- // Export services
8
- export { CategoryService } from "./services/category.service";
9
- export { SubcategoryService } from "./services/subcategory.service";
10
- export { TechnologyService } from "./services/technology.service";
11
- export { RequirementService } from "./services/requirement.service";
12
- export { BrandService } from "./services/brand.service";
13
- export { ProductService } from "./services/product.service";
14
- export { DocumentationTemplateService } from "./services/documentation-template.service";
1
+ export * from "./services/";
2
+ export * from "./types/";
3
+ export * from "./validations/";
4
+ export * from "./constants/";
5
+ export * from "./errors/";
@@ -0,0 +1,7 @@
1
+ export * from "./brand.service";
2
+ export * from "./category.service";
3
+ export * from "./documentation-template.service";
4
+ export * from "./product.service";
5
+ export * from "./requirement.service";
6
+ export * from "./subcategory.service";
7
+ export * from "./technology.service";
@@ -0,0 +1 @@
1
+ export * from "./schemas";
@@ -1,14 +1,12 @@
1
- export * from "./auth/";
2
- export * from "./user/";
3
-
4
- // export * from "./base.service";
5
- export * from "./appointment/";
6
- export * from "./calendar/";
7
- export * from "./clinic/";
8
- export * from "./documentation-templates/";
9
- export * from "./media/";
10
- export * from "./notifications/";
11
- export * from "./patient/";
12
- export * from "./practitioner/";
13
- export * from "./procedure/";
14
- export * from "./reviews/";
1
+ export * from "./appointment";
2
+ export * from "./auth";
3
+ export * from "./calendar";
4
+ export * from "./clinic";
5
+ export * from "./documentation-templates";
6
+ export * from "./media";
7
+ export * from "./notifications";
8
+ export * from "./patient";
9
+ export * from "./practitioner";
10
+ export * from "./procedure";
11
+ export * from "./reviews";
12
+ export * from "./base.service";