@blackcode_sa/metaestetics-api 1.5.43 → 1.5.45

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.ts CHANGED
@@ -4743,8 +4743,8 @@ declare class PatientService extends BaseService {
4743
4743
  uploadProfilePhoto(patientId: string, file: File): Promise<string>;
4744
4744
  updateProfilePhoto(patientId: string, file: File): Promise<string>;
4745
4745
  deleteProfilePhoto(patientId: string): Promise<void>;
4746
- updatePatientProfile(patientId: string, data: Partial<Omit<PatientProfile, 'id' | 'createdAt' | 'updatedAt'>>): Promise<PatientProfile>;
4747
- updatePatientProfileByUserRef(userRef: string, data: Partial<Omit<PatientProfile, 'id' | 'createdAt' | 'updatedAt'>>): Promise<PatientProfile>;
4746
+ updatePatientProfile(patientId: string, data: Partial<Omit<PatientProfile, "id" | "createdAt" | "updatedAt">>): Promise<PatientProfile>;
4747
+ updatePatientProfileByUserRef(userRef: string, data: Partial<Omit<PatientProfile, "id" | "createdAt" | "updatedAt">>): Promise<PatientProfile>;
4748
4748
  /**
4749
4749
  * Searches for patient profiles based on clinic/practitioner association.
4750
4750
  * Requires information about the requester for security checks.
@@ -4766,6 +4766,32 @@ declare class PatientService extends BaseService {
4766
4766
  limit?: number;
4767
4767
  startAfter?: string;
4768
4768
  }): Promise<PatientProfile[]>;
4769
+ /**
4770
+ * Gets all patients associated with a specific practitioner.
4771
+ *
4772
+ * @param {string} practitionerId - ID of the practitioner whose patients to retrieve
4773
+ * @param {Object} options - Optional parameters for pagination
4774
+ * @param {number} options.limit - Maximum number of profiles to return
4775
+ * @param {string} options.startAfter - The ID of the document to start after (for pagination)
4776
+ * @returns {Promise<PatientProfile[]>} A promise resolving to an array of patient profiles
4777
+ */
4778
+ getPatientsByPractitioner(practitionerId: string, options?: {
4779
+ limit?: number;
4780
+ startAfter?: string;
4781
+ }): Promise<PatientProfile[]>;
4782
+ /**
4783
+ * Gets all patients associated with a specific clinic.
4784
+ *
4785
+ * @param {string} clinicId - ID of the clinic whose patients to retrieve
4786
+ * @param {Object} options - Optional parameters for pagination
4787
+ * @param {number} options.limit - Maximum number of profiles to return
4788
+ * @param {string} options.startAfter - The ID of the document to start after (for pagination)
4789
+ * @returns {Promise<PatientProfile[]>} A promise resolving to an array of patient profiles
4790
+ */
4791
+ getPatientsByClinic(clinicId: string, options?: {
4792
+ limit?: number;
4793
+ startAfter?: string;
4794
+ }): Promise<PatientProfile[]>;
4769
4795
  }
4770
4796
 
4771
4797
  declare class ClinicGroupService extends BaseService {
@@ -6374,6 +6400,18 @@ declare class AppointmentService extends BaseService {
6374
6400
  * @param clinicService Clinic service instance
6375
6401
  */
6376
6402
  constructor(db: Firestore, auth: Auth, app: FirebaseApp, calendarService: CalendarServiceV2, patientService: PatientService, practitionerService: PractitionerService, clinicService: ClinicService);
6403
+ /**
6404
+ * Test method using the callable function version of getAvailableBookingSlots
6405
+ * For development and testing purposes only - not for production use
6406
+ *
6407
+ * @param clinicId ID of the clinic
6408
+ * @param practitionerId ID of the practitioner
6409
+ * @param procedureId ID of the procedure
6410
+ * @param startDate Start date of the time range to check
6411
+ * @param endDate End date of the time range to check
6412
+ * @returns Test result from the callable function
6413
+ */
6414
+ testGetAvailableBookingSlots(clinicId: string, practitionerId: string, procedureId: string, startDate: Date, endDate: Date): Promise<any>;
6377
6415
  /**
6378
6416
  * Gets available booking slots for a specific clinic, practitioner, and procedure.
6379
6417
  *