@blackcode_sa/metaestetics-api 1.8.0 → 1.8.2
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 +956 -848
- package/dist/admin/index.d.ts +956 -848
- package/dist/admin/index.js +7215 -6757
- package/dist/admin/index.mjs +7215 -6754
- package/dist/backoffice/index.d.mts +1418 -1418
- package/dist/backoffice/index.d.ts +1418 -1418
- package/dist/backoffice/index.js +1464 -1454
- package/dist/backoffice/index.mjs +1509 -1499
- package/dist/index.d.mts +5565 -5565
- package/dist/index.d.ts +5565 -5565
- package/dist/index.js +5834 -3388
- package/dist/index.mjs +6374 -3873
- package/package.json +1 -1
- package/src/admin/aggregation/appointment/index.ts +1 -0
- package/src/admin/aggregation/clinic/index.ts +1 -0
- package/src/admin/aggregation/forms/index.ts +1 -0
- package/src/admin/aggregation/index.ts +8 -0
- package/src/admin/aggregation/patient/index.ts +1 -0
- package/src/admin/aggregation/practitioner/index.ts +1 -0
- package/src/admin/aggregation/practitioner-invite/index.ts +1 -0
- package/src/admin/aggregation/procedure/index.ts +1 -0
- package/src/admin/aggregation/reviews/index.ts +1 -0
- package/src/admin/booking/index.ts +1 -1
- package/src/admin/calendar/index.ts +1 -0
- package/src/admin/documentation-templates/index.ts +1 -0
- package/src/admin/free-consultation/index.ts +1 -0
- package/src/admin/index.ts +18 -120
- package/src/admin/mailing/appointment/index.ts +1 -0
- package/src/admin/mailing/index.ts +1 -2
- package/src/admin/mailing/practitionerInvite/index.ts +1 -0
- package/src/admin/notifications/index.ts +1 -0
- package/src/admin/requirements/index.ts +1 -0
- package/src/admin/users/index.ts +1 -0
- package/src/admin/users/user-profile.admin.ts +1 -0
- package/src/backoffice/constants/index.ts +1 -0
- package/src/backoffice/errors/index.ts +1 -0
- package/src/backoffice/index.ts +5 -14
- package/src/backoffice/services/index.ts +7 -0
- package/src/backoffice/validations/index.ts +1 -0
- package/src/index.backup.ts +1 -1
- package/src/services/appointment/appointment.service.ts +1 -1
- package/src/services/calendar/index.ts +1 -1
- package/src/services/index.ts +13 -14
- /package/src/services/calendar/{calendar-refactored.service.ts → calendar.v2.service.ts} +0 -0
package/package.json
CHANGED
|
@@ -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 @@
|
|
|
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";
|
|
@@ -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";
|
package/src/admin/index.ts
CHANGED
|
@@ -1,47 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as admin from "firebase-admin";
|
|
3
|
-
import { TimestampUtils } from "../utils/TimestampUtils";
|
|
1
|
+
import { TimestampUtils } from "../utils/";
|
|
4
2
|
|
|
5
|
-
|
|
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/
|
|
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
|
|
117
|
-
export type
|
|
118
|
-
|
|
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
|
|
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
|
|
153
|
-
export * from "./
|
|
154
|
-
export * from "./booking
|
|
155
|
-
export * from "./
|
|
156
|
-
export * from "./
|
|
157
|
-
export * from "./
|
|
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
|
|
160
|
-
export * from "./notifications
|
|
161
|
-
export * from "./requirements
|
|
162
|
-
export * from "./
|
|
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";
|
|
@@ -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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./certification.constants";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./backoffice.errors";
|
package/src/backoffice/index.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export * from "./types";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
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";
|
package/src/index.backup.ts
CHANGED
|
@@ -30,7 +30,7 @@ export {
|
|
|
30
30
|
DocumentationTemplateService,
|
|
31
31
|
FilledDocumentService,
|
|
32
32
|
} from "./services/documentation-templates";
|
|
33
|
-
export { CalendarServiceV2 } from "./services/calendar/calendar
|
|
33
|
+
export { CalendarServiceV2 } from "./services/calendar/calendar.v2.service";
|
|
34
34
|
export { CalendarServiceV3 } from "./services/calendar/calendar.v3.service";
|
|
35
35
|
export { SyncedCalendarsService } from "./services/calendar/synced-calendars.service";
|
|
36
36
|
export { ReviewService } from "./services/reviews/reviews.service";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "../../validations/appointment.schema";
|
|
40
40
|
|
|
41
41
|
// Import other services needed (dependency injection pattern)
|
|
42
|
-
import { CalendarServiceV2 } from "../calendar/calendar
|
|
42
|
+
import { CalendarServiceV2 } from "../calendar/calendar.v2.service";
|
|
43
43
|
import { PatientService } from "../patient/patient.service";
|
|
44
44
|
import { PractitionerService } from "../practitioner/practitioner.service";
|
|
45
45
|
import { ClinicService } from "../clinic/clinic.service";
|
package/src/services/index.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
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 "./user";
|
|
13
|
+
export * from "./base.service";
|
|
File without changes
|