@blackcode_sa/metaestetics-api 1.13.4 → 1.13.6
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 +35 -29
- package/dist/admin/index.d.ts +35 -29
- package/dist/admin/index.js +217 -1
- package/dist/admin/index.mjs +217 -1
- package/dist/index.d.mts +16 -29
- package/dist/index.d.ts +16 -29
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +3 -1
- package/src/admin/aggregation/clinic/clinic.aggregation.service.ts +265 -2
- package/src/types/clinic/index.ts +16 -7
- package/src/validations/clinic.schema.ts +1 -0
package/dist/admin/index.mjs
CHANGED
|
@@ -4326,8 +4326,9 @@ var ClinicAggregationService = class {
|
|
|
4326
4326
|
* Removes clinic from practitioners when a clinic is deleted.
|
|
4327
4327
|
* @param practitionerIds IDs of practitioners associated with the clinic.
|
|
4328
4328
|
* @param clinicId The ID of the deleted clinic.
|
|
4329
|
+
* @param checkAndDeactivateDoctors If true, checks if doctors have remaining active clinics and deactivates them if not.
|
|
4329
4330
|
*/
|
|
4330
|
-
async removeClinicFromPractitioners(practitionerIds, clinicId) {
|
|
4331
|
+
async removeClinicFromPractitioners(practitionerIds, clinicId, checkAndDeactivateDoctors = false) {
|
|
4331
4332
|
if (!practitionerIds || practitionerIds.length === 0) {
|
|
4332
4333
|
console.log(
|
|
4333
4334
|
"[ClinicAggregationService] No practitioner IDs provided for clinic removal. Skipping."
|
|
@@ -4335,6 +4336,7 @@ var ClinicAggregationService = class {
|
|
|
4335
4336
|
return;
|
|
4336
4337
|
}
|
|
4337
4338
|
const batch = this.db.batch();
|
|
4339
|
+
const practitionersToCheck = [];
|
|
4338
4340
|
console.log(
|
|
4339
4341
|
`[ClinicAggregationService] Starting batch removal of Clinic (ID: ${clinicId}) from ${practitionerIds.length} practitioners.`
|
|
4340
4342
|
);
|
|
@@ -4356,6 +4358,9 @@ var ClinicAggregationService = class {
|
|
|
4356
4358
|
clinicsInfo: filteredClinicsInfo,
|
|
4357
4359
|
updatedAt: admin7.firestore.FieldValue.serverTimestamp()
|
|
4358
4360
|
});
|
|
4361
|
+
if (checkAndDeactivateDoctors) {
|
|
4362
|
+
practitionersToCheck.push(practitionerId);
|
|
4363
|
+
}
|
|
4359
4364
|
}
|
|
4360
4365
|
}
|
|
4361
4366
|
try {
|
|
@@ -4363,6 +4368,11 @@ var ClinicAggregationService = class {
|
|
|
4363
4368
|
console.log(
|
|
4364
4369
|
`[ClinicAggregationService] Successfully removed Clinic (ID: ${clinicId}) from ${practitionerIds.length} practitioners.`
|
|
4365
4370
|
);
|
|
4371
|
+
if (checkAndDeactivateDoctors && practitionersToCheck.length > 0) {
|
|
4372
|
+
await this.checkAndDeactivateDoctorsWithNoActiveClinics(
|
|
4373
|
+
practitionersToCheck
|
|
4374
|
+
);
|
|
4375
|
+
}
|
|
4366
4376
|
} catch (error) {
|
|
4367
4377
|
console.error(
|
|
4368
4378
|
`[ClinicAggregationService] Error committing batch removal for Clinic (ID: ${clinicId}) from practitioners:`,
|
|
@@ -4371,6 +4381,161 @@ var ClinicAggregationService = class {
|
|
|
4371
4381
|
throw error;
|
|
4372
4382
|
}
|
|
4373
4383
|
}
|
|
4384
|
+
/**
|
|
4385
|
+
* Checks if practitioners have any remaining active clinics and deactivates them if not.
|
|
4386
|
+
* @param practitionerIds IDs of practitioners to check
|
|
4387
|
+
*/
|
|
4388
|
+
async checkAndDeactivateDoctorsWithNoActiveClinics(practitionerIds) {
|
|
4389
|
+
if (!practitionerIds || practitionerIds.length === 0) {
|
|
4390
|
+
return;
|
|
4391
|
+
}
|
|
4392
|
+
console.log(
|
|
4393
|
+
`[ClinicAggregationService] Checking ${practitionerIds.length} practitioners for remaining active clinics.`
|
|
4394
|
+
);
|
|
4395
|
+
const batch = this.db.batch();
|
|
4396
|
+
let deactivationCount = 0;
|
|
4397
|
+
for (const practitionerId of practitionerIds) {
|
|
4398
|
+
const practitionerRef = this.db.collection(PRACTITIONERS_COLLECTION).doc(practitionerId);
|
|
4399
|
+
const practitionerDoc = await practitionerRef.get();
|
|
4400
|
+
if (!practitionerDoc.exists) {
|
|
4401
|
+
continue;
|
|
4402
|
+
}
|
|
4403
|
+
const practitionerData = practitionerDoc.data();
|
|
4404
|
+
const clinicIds = (practitionerData == null ? void 0 : practitionerData.clinics) || [];
|
|
4405
|
+
if (clinicIds.length === 0) {
|
|
4406
|
+
console.log(
|
|
4407
|
+
`[ClinicAggregationService] Practitioner ${practitionerId} has no remaining clinics. Deactivating.`
|
|
4408
|
+
);
|
|
4409
|
+
batch.update(practitionerRef, {
|
|
4410
|
+
isActive: false,
|
|
4411
|
+
updatedAt: admin7.firestore.FieldValue.serverTimestamp()
|
|
4412
|
+
});
|
|
4413
|
+
deactivationCount++;
|
|
4414
|
+
} else {
|
|
4415
|
+
const clinicRefs = clinicIds.map(
|
|
4416
|
+
(id) => this.db.collection(CLINICS_COLLECTION).doc(id)
|
|
4417
|
+
);
|
|
4418
|
+
const clinicDocs = await Promise.all(
|
|
4419
|
+
clinicRefs.map((ref) => ref.get())
|
|
4420
|
+
);
|
|
4421
|
+
const hasActiveClinic = clinicDocs.some(
|
|
4422
|
+
(doc3) => {
|
|
4423
|
+
var _a;
|
|
4424
|
+
return doc3.exists && ((_a = doc3.data()) == null ? void 0 : _a.isActive) === true;
|
|
4425
|
+
}
|
|
4426
|
+
);
|
|
4427
|
+
if (!hasActiveClinic) {
|
|
4428
|
+
console.log(
|
|
4429
|
+
`[ClinicAggregationService] Practitioner ${practitionerId} has no remaining active clinics. Deactivating.`
|
|
4430
|
+
);
|
|
4431
|
+
batch.update(practitionerRef, {
|
|
4432
|
+
isActive: false,
|
|
4433
|
+
updatedAt: admin7.firestore.FieldValue.serverTimestamp()
|
|
4434
|
+
});
|
|
4435
|
+
deactivationCount++;
|
|
4436
|
+
}
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
if (deactivationCount > 0) {
|
|
4440
|
+
try {
|
|
4441
|
+
await batch.commit();
|
|
4442
|
+
console.log(
|
|
4443
|
+
`[ClinicAggregationService] Successfully deactivated ${deactivationCount} practitioners with no remaining active clinics.`
|
|
4444
|
+
);
|
|
4445
|
+
} catch (error) {
|
|
4446
|
+
console.error(
|
|
4447
|
+
`[ClinicAggregationService] Error deactivating practitioners:`,
|
|
4448
|
+
error
|
|
4449
|
+
);
|
|
4450
|
+
throw error;
|
|
4451
|
+
}
|
|
4452
|
+
} else {
|
|
4453
|
+
console.log(
|
|
4454
|
+
`[ClinicAggregationService] All practitioners have remaining active clinics. No deactivations needed.`
|
|
4455
|
+
);
|
|
4456
|
+
}
|
|
4457
|
+
}
|
|
4458
|
+
/**
|
|
4459
|
+
* Checks if practitioners were deactivated because they had no active clinics,
|
|
4460
|
+
* and reactivates them if this clinic was their only clinic.
|
|
4461
|
+
* @param practitionerIds IDs of practitioners associated with the reactivated clinic
|
|
4462
|
+
* @param clinicId ID of the reactivated clinic
|
|
4463
|
+
*/
|
|
4464
|
+
async checkAndReactivateDoctorsForClinic(practitionerIds, clinicId) {
|
|
4465
|
+
if (!practitionerIds || practitionerIds.length === 0) {
|
|
4466
|
+
return;
|
|
4467
|
+
}
|
|
4468
|
+
console.log(
|
|
4469
|
+
`[ClinicAggregationService] Checking ${practitionerIds.length} practitioners for reactivation after clinic ${clinicId} was reactivated.`
|
|
4470
|
+
);
|
|
4471
|
+
const batch = this.db.batch();
|
|
4472
|
+
let reactivationCount = 0;
|
|
4473
|
+
for (const practitionerId of practitionerIds) {
|
|
4474
|
+
const practitionerRef = this.db.collection(PRACTITIONERS_COLLECTION).doc(practitionerId);
|
|
4475
|
+
const practitionerDoc = await practitionerRef.get();
|
|
4476
|
+
if (!practitionerDoc.exists) {
|
|
4477
|
+
continue;
|
|
4478
|
+
}
|
|
4479
|
+
const practitionerData = practitionerDoc.data();
|
|
4480
|
+
if ((practitionerData == null ? void 0 : practitionerData.isActive) === false) {
|
|
4481
|
+
const clinicIds = (practitionerData == null ? void 0 : practitionerData.clinics) || [];
|
|
4482
|
+
if (clinicIds.includes(clinicId)) {
|
|
4483
|
+
const otherClinicIds = clinicIds.filter((id) => id !== clinicId);
|
|
4484
|
+
if (otherClinicIds.length === 0) {
|
|
4485
|
+
console.log(
|
|
4486
|
+
`[ClinicAggregationService] Practitioner ${practitionerId} was deactivated because clinic ${clinicId} was their only clinic. Reactivating.`
|
|
4487
|
+
);
|
|
4488
|
+
batch.update(practitionerRef, {
|
|
4489
|
+
isActive: true,
|
|
4490
|
+
updatedAt: admin7.firestore.FieldValue.serverTimestamp()
|
|
4491
|
+
});
|
|
4492
|
+
reactivationCount++;
|
|
4493
|
+
} else {
|
|
4494
|
+
const otherClinicRefs = otherClinicIds.map(
|
|
4495
|
+
(id) => this.db.collection(CLINICS_COLLECTION).doc(id)
|
|
4496
|
+
);
|
|
4497
|
+
const otherClinicDocs = await Promise.all(
|
|
4498
|
+
otherClinicRefs.map((ref) => ref.get())
|
|
4499
|
+
);
|
|
4500
|
+
const hasOtherActiveClinic = otherClinicDocs.some(
|
|
4501
|
+
(doc3) => {
|
|
4502
|
+
var _a;
|
|
4503
|
+
return doc3.exists && ((_a = doc3.data()) == null ? void 0 : _a.isActive) === true;
|
|
4504
|
+
}
|
|
4505
|
+
);
|
|
4506
|
+
if (!hasOtherActiveClinic) {
|
|
4507
|
+
console.log(
|
|
4508
|
+
`[ClinicAggregationService] Practitioner ${practitionerId} has no other active clinics. Reactivating because clinic ${clinicId} was reactivated.`
|
|
4509
|
+
);
|
|
4510
|
+
batch.update(practitionerRef, {
|
|
4511
|
+
isActive: true,
|
|
4512
|
+
updatedAt: admin7.firestore.FieldValue.serverTimestamp()
|
|
4513
|
+
});
|
|
4514
|
+
reactivationCount++;
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4520
|
+
if (reactivationCount > 0) {
|
|
4521
|
+
try {
|
|
4522
|
+
await batch.commit();
|
|
4523
|
+
console.log(
|
|
4524
|
+
`[ClinicAggregationService] Successfully reactivated ${reactivationCount} practitioners.`
|
|
4525
|
+
);
|
|
4526
|
+
} catch (error) {
|
|
4527
|
+
console.error(
|
|
4528
|
+
`[ClinicAggregationService] Error reactivating practitioners:`,
|
|
4529
|
+
error
|
|
4530
|
+
);
|
|
4531
|
+
throw error;
|
|
4532
|
+
}
|
|
4533
|
+
} else {
|
|
4534
|
+
console.log(
|
|
4535
|
+
`[ClinicAggregationService] No practitioners needed reactivation.`
|
|
4536
|
+
);
|
|
4537
|
+
}
|
|
4538
|
+
}
|
|
4374
4539
|
/**
|
|
4375
4540
|
* Inactivates all procedures associated with a deleted clinic
|
|
4376
4541
|
* @param procedureIds IDs of procedures associated with the clinic
|
|
@@ -4406,6 +4571,57 @@ var ClinicAggregationService = class {
|
|
|
4406
4571
|
throw error;
|
|
4407
4572
|
}
|
|
4408
4573
|
}
|
|
4574
|
+
/**
|
|
4575
|
+
* Reactivates all procedures associated with a reactivated clinic
|
|
4576
|
+
* Only reactivates procedures that still exist (haven't been deleted)
|
|
4577
|
+
* @param procedureIds IDs of procedures associated with the clinic
|
|
4578
|
+
*/
|
|
4579
|
+
async reactivateProceduresForClinic(procedureIds) {
|
|
4580
|
+
if (!procedureIds || procedureIds.length === 0) {
|
|
4581
|
+
console.log(
|
|
4582
|
+
"[ClinicAggregationService] No procedure IDs provided for reactivation. Skipping."
|
|
4583
|
+
);
|
|
4584
|
+
return;
|
|
4585
|
+
}
|
|
4586
|
+
const batch = this.db.batch();
|
|
4587
|
+
let reactivationCount = 0;
|
|
4588
|
+
console.log(
|
|
4589
|
+
`[ClinicAggregationService] Starting reactivation of ${procedureIds.length} procedures.`
|
|
4590
|
+
);
|
|
4591
|
+
for (const procedureId of procedureIds) {
|
|
4592
|
+
const procedureRef = this.db.collection(PROCEDURES_COLLECTION).doc(procedureId);
|
|
4593
|
+
const procedureDoc = await procedureRef.get();
|
|
4594
|
+
if (procedureDoc.exists) {
|
|
4595
|
+
batch.update(procedureRef, {
|
|
4596
|
+
isActive: true,
|
|
4597
|
+
updatedAt: admin7.firestore.FieldValue.serverTimestamp()
|
|
4598
|
+
});
|
|
4599
|
+
reactivationCount++;
|
|
4600
|
+
} else {
|
|
4601
|
+
console.log(
|
|
4602
|
+
`[ClinicAggregationService] Procedure ${procedureId} no longer exists. Skipping reactivation.`
|
|
4603
|
+
);
|
|
4604
|
+
}
|
|
4605
|
+
}
|
|
4606
|
+
if (reactivationCount > 0) {
|
|
4607
|
+
try {
|
|
4608
|
+
await batch.commit();
|
|
4609
|
+
console.log(
|
|
4610
|
+
`[ClinicAggregationService] Successfully reactivated ${reactivationCount} procedures.`
|
|
4611
|
+
);
|
|
4612
|
+
} catch (error) {
|
|
4613
|
+
console.error(
|
|
4614
|
+
`[ClinicAggregationService] Error committing batch reactivation of procedures:`,
|
|
4615
|
+
error
|
|
4616
|
+
);
|
|
4617
|
+
throw error;
|
|
4618
|
+
}
|
|
4619
|
+
} else {
|
|
4620
|
+
console.log(
|
|
4621
|
+
`[ClinicAggregationService] No procedures to reactivate (all may have been deleted).`
|
|
4622
|
+
);
|
|
4623
|
+
}
|
|
4624
|
+
}
|
|
4409
4625
|
/**
|
|
4410
4626
|
* Removes clinic from clinic group when a clinic is deleted
|
|
4411
4627
|
* @param clinicGroupId ID of the parent clinic group
|
package/dist/index.d.mts
CHANGED
|
@@ -5007,6 +5007,14 @@ interface ClinicLocation {
|
|
|
5007
5007
|
geohash?: string | null;
|
|
5008
5008
|
tz?: string | null;
|
|
5009
5009
|
}
|
|
5010
|
+
/**
|
|
5011
|
+
* Interface for a break period during working hours
|
|
5012
|
+
*/
|
|
5013
|
+
interface Break {
|
|
5014
|
+
title?: string;
|
|
5015
|
+
start: string;
|
|
5016
|
+
end: string;
|
|
5017
|
+
}
|
|
5010
5018
|
/**
|
|
5011
5019
|
* Interface for working hours
|
|
5012
5020
|
*/
|
|
@@ -5014,58 +5022,37 @@ interface WorkingHours {
|
|
|
5014
5022
|
monday: {
|
|
5015
5023
|
open: string;
|
|
5016
5024
|
close: string;
|
|
5017
|
-
breaks?:
|
|
5018
|
-
start: string;
|
|
5019
|
-
end: string;
|
|
5020
|
-
}[];
|
|
5025
|
+
breaks?: Break[];
|
|
5021
5026
|
} | null;
|
|
5022
5027
|
tuesday: {
|
|
5023
5028
|
open: string;
|
|
5024
5029
|
close: string;
|
|
5025
|
-
breaks?:
|
|
5026
|
-
start: string;
|
|
5027
|
-
end: string;
|
|
5028
|
-
}[];
|
|
5030
|
+
breaks?: Break[];
|
|
5029
5031
|
} | null;
|
|
5030
5032
|
wednesday: {
|
|
5031
5033
|
open: string;
|
|
5032
5034
|
close: string;
|
|
5033
|
-
breaks?:
|
|
5034
|
-
start: string;
|
|
5035
|
-
end: string;
|
|
5036
|
-
}[];
|
|
5035
|
+
breaks?: Break[];
|
|
5037
5036
|
} | null;
|
|
5038
5037
|
thursday: {
|
|
5039
5038
|
open: string;
|
|
5040
5039
|
close: string;
|
|
5041
|
-
breaks?:
|
|
5042
|
-
start: string;
|
|
5043
|
-
end: string;
|
|
5044
|
-
}[];
|
|
5040
|
+
breaks?: Break[];
|
|
5045
5041
|
} | null;
|
|
5046
5042
|
friday: {
|
|
5047
5043
|
open: string;
|
|
5048
5044
|
close: string;
|
|
5049
|
-
breaks?:
|
|
5050
|
-
start: string;
|
|
5051
|
-
end: string;
|
|
5052
|
-
}[];
|
|
5045
|
+
breaks?: Break[];
|
|
5053
5046
|
} | null;
|
|
5054
5047
|
saturday: {
|
|
5055
5048
|
open: string;
|
|
5056
5049
|
close: string;
|
|
5057
|
-
breaks?:
|
|
5058
|
-
start: string;
|
|
5059
|
-
end: string;
|
|
5060
|
-
}[];
|
|
5050
|
+
breaks?: Break[];
|
|
5061
5051
|
} | null;
|
|
5062
5052
|
sunday: {
|
|
5063
5053
|
open: string;
|
|
5064
5054
|
close: string;
|
|
5065
|
-
breaks?:
|
|
5066
|
-
start: string;
|
|
5067
|
-
end: string;
|
|
5068
|
-
}[];
|
|
5055
|
+
breaks?: Break[];
|
|
5069
5056
|
} | null;
|
|
5070
5057
|
}
|
|
5071
5058
|
/**
|
|
@@ -9109,4 +9096,4 @@ declare const getFirebaseApp: () => Promise<FirebaseApp>;
|
|
|
9109
9096
|
declare const getFirebaseStorage: () => Promise<FirebaseStorage>;
|
|
9110
9097
|
declare const getFirebaseFunctions: () => Promise<Functions>;
|
|
9111
9098
|
|
|
9112
|
-
export { AESTHETIC_ANALYSIS_COLLECTION, ANALYTICS_COLLECTION, APPOINTMENTS_COLLECTION, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type AestheticAnalysis, type AestheticAnalysisStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, AnalyticsCloudService, type AnalyticsDateRange, type AnalyticsFilters, type AnalyticsMetadata, type AnalyticsPeriod, AnalyticsService, type Appointment, type AppointmentCancelledNotification, type AppointmentMediaItem, type AppointmentMetadata, type AppointmentProductMetadata, type AppointmentReminderNotification, type AppointmentRescheduledProposalNotification, AppointmentService, AppointmentStatus, type AppointmentStatusChangeNotification, type AppointmentTrend, type AssessmentScales, AuthService, type BaseDocumentElement, type BaseMetrics, type BaseNotification, BaseService, type BeforeAfterPerZone, type BillingInfo, type BillingPerZone, type BillingTransaction, BillingTransactionType, BillingTransactionsService, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CANCELLATION_ANALYTICS_SUBCOLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_ANALYTICS_SUBCOLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type CancellationMetrics, type CancellationRateTrend, type CancellationReasonStats, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicAnalytics, type ClinicBranchSetupData, type ClinicComparisonMetrics, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ClinicalFindingDetail, type ClinicalFindings, ConstantsService, type ContactPerson, Contraindication, type ContraindicationDynamic, CosmeticAllergySubtype, type CostPerPatientMetrics, type CreateAdminTokenData, type CreateAestheticAnalysisData, type CreateAppointmentData, type CreateAppointmentHttpData, type CreateAppointmentParams, type CreateBillingTransactionData, type CreateBlockingEventParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreateManualPatientData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePatientTokenData, type CreatePractitionerData, type CreatePractitionerInviteData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DASHBOARD_ANALYTICS_SUBCOLLECTION, DEFAULT_MEDICAL_INFO, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DashboardAnalytics, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DurationTrend, type DynamicTextElement, DynamicVariable, type EmergencyContact, type EntityType, EnvironmentalAllergySubtype, type ExtendedProcedureInfo, ExternalCalendarService, FILLED_DOCUMENTS_COLLECTION, type FileUploadElement, type FilledDocument, type FilledDocumentFileValue, FilledDocumentService, FilledDocumentStatus, type FinalBilling, type FirebaseUser, FoodAllergySubtype, type FormReminderNotification, type FormSubmissionConfirmationNotification, type GamificationInfo, Gender, type GeneralMessageNotification, type GroupedAnalyticsBase, type GroupedPatientBehaviorMetrics, type GroupedPatientRetentionMetrics, type GroupedPractitionerPerformanceMetrics, type GroupedProcedurePerformanceMetrics, type GroupedProductUsageMetrics, type GroupedRevenueMetrics, type GroupedTimeEfficiencyMetrics, type GroupingPeriod, type HeadingElement, HeadingLevel, INVITE_TOKENS_COLLECTION, Language, type LinkedFormInfo, type ListElement, ListType, type LocationData, MEDIA_METADATA_COLLECTION, MediaAccessLevel, type MediaMetadata, type MediaResource, MediaService, MediaType, MedicationAllergySubtype, type MultipleChoiceElement, NOTIFICATIONS_COLLECTION, NO_SHOW_ANALYTICS_SUBCOLLECTION, type NextStepsRecommendation, type NoShowMetrics, type Notification, NotificationService, NotificationStatus, NotificationType, type OverallReviewAverages, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PRACTITIONER_ANALYTICS_SUBCOLLECTION, PRACTITIONER_INVITES_COLLECTION, PROCEDURES_COLLECTION, PROCEDURE_ANALYTICS_SUBCOLLECTION, type ParagraphElement, type PatientAnalytics, type PatientClinic, type PatientDoctor, type PatientGoals, PatientInstructionStatus, type PatientLifetimeValueMetrics, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, type PatientRequirementsFilters, PatientRequirementsService, type PatientRetentionMetrics, type PatientReviewInfo, type PatientSensitiveInfo, PatientService, type PatientToken, PatientTokenStatus, type PaymentConfirmationNotification, PaymentStatus, type PaymentStatusBreakdown, type PlanDetails, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerAnalytics, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerInvite, type PractitionerInviteFilters, PractitionerInviteService, PractitionerInviteStatus, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureAnalytics, type ProcedureCategorization, type ProcedureExtendedInfo, ProcedureFamily, type ProcedureInfo, type ProcedurePopularity, type ProcedureProduct, type ProcedureProfitability, type ProcedureRecommendationNotification, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type ProcedureSummaryInfo, type Product, type ProductRevenueMetrics, ProductService, type ProductUsageByProcedure, type ProductUsageMetrics, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVENUE_ANALYTICS_SUBCOLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type ReadStoredAnalyticsOptions, type RecommendedProcedure, type RequesterInfo, type Requirement, type RequirementInstructionDueNotification, type RequirementSourceProcedure, RequirementType, type RevenueMetrics, type RevenueTrend, type Review, type ReviewAnalyticsMetrics, ReviewAnalyticsService, type ReviewDetail, type ReviewMetrics, type ReviewRequestNotification, ReviewService, type ReviewTrend, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type StoredCancellationMetrics, type StoredClinicAnalytics, type StoredDashboardAnalytics, type StoredNoShowMetrics, type StoredPractitionerAnalytics, type StoredProcedureAnalytics, type StoredRevenueMetrics, type StoredTimeEfficiencyMetrics, type StripeTransactionData, type Subcategory, SubcategoryService, SubscriptionModel, SubscriptionStatus, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, TIME_EFFICIENCY_ANALYTICS_SUBCOLLECTION, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeEfficiencyMetrics, type TimeSlot, TimeUnit, TreatmentBenefit, type TreatmentBenefitDynamic, type TrendPeriod, USERS_COLLECTION, USER_FORMS_SUBCOLLECTION, type UpdateAestheticAnalysisData, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateBlockingEventParams, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdatePractitionerInviteData, type UpdateProcedureData, type UpdateSyncedCalendarData, type UpdateVitalStatsData, type User, UserRole, UserService, type VitalStats, type WorkingHours, type ZoneItemData, type ZonePhotoUploadData, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseFunctions, getFirebaseInstance, getFirebaseStorage, initializeFirebase };
|
|
9099
|
+
export { AESTHETIC_ANALYSIS_COLLECTION, ANALYTICS_COLLECTION, APPOINTMENTS_COLLECTION, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type AestheticAnalysis, type AestheticAnalysisStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, AnalyticsCloudService, type AnalyticsDateRange, type AnalyticsFilters, type AnalyticsMetadata, type AnalyticsPeriod, AnalyticsService, type Appointment, type AppointmentCancelledNotification, type AppointmentMediaItem, type AppointmentMetadata, type AppointmentProductMetadata, type AppointmentReminderNotification, type AppointmentRescheduledProposalNotification, AppointmentService, AppointmentStatus, type AppointmentStatusChangeNotification, type AppointmentTrend, type AssessmentScales, AuthService, type BaseDocumentElement, type BaseMetrics, type BaseNotification, BaseService, type BeforeAfterPerZone, type BillingInfo, type BillingPerZone, type BillingTransaction, BillingTransactionType, BillingTransactionsService, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, type Break, CALENDAR_COLLECTION, CANCELLATION_ANALYTICS_SUBCOLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_ANALYTICS_SUBCOLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type CancellationMetrics, type CancellationRateTrend, type CancellationReasonStats, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicAnalytics, type ClinicBranchSetupData, type ClinicComparisonMetrics, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ClinicalFindingDetail, type ClinicalFindings, ConstantsService, type ContactPerson, Contraindication, type ContraindicationDynamic, CosmeticAllergySubtype, type CostPerPatientMetrics, type CreateAdminTokenData, type CreateAestheticAnalysisData, type CreateAppointmentData, type CreateAppointmentHttpData, type CreateAppointmentParams, type CreateBillingTransactionData, type CreateBlockingEventParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreateManualPatientData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePatientTokenData, type CreatePractitionerData, type CreatePractitionerInviteData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DASHBOARD_ANALYTICS_SUBCOLLECTION, DEFAULT_MEDICAL_INFO, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DashboardAnalytics, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DurationTrend, type DynamicTextElement, DynamicVariable, type EmergencyContact, type EntityType, EnvironmentalAllergySubtype, type ExtendedProcedureInfo, ExternalCalendarService, FILLED_DOCUMENTS_COLLECTION, type FileUploadElement, type FilledDocument, type FilledDocumentFileValue, FilledDocumentService, FilledDocumentStatus, type FinalBilling, type FirebaseUser, FoodAllergySubtype, type FormReminderNotification, type FormSubmissionConfirmationNotification, type GamificationInfo, Gender, type GeneralMessageNotification, type GroupedAnalyticsBase, type GroupedPatientBehaviorMetrics, type GroupedPatientRetentionMetrics, type GroupedPractitionerPerformanceMetrics, type GroupedProcedurePerformanceMetrics, type GroupedProductUsageMetrics, type GroupedRevenueMetrics, type GroupedTimeEfficiencyMetrics, type GroupingPeriod, type HeadingElement, HeadingLevel, INVITE_TOKENS_COLLECTION, Language, type LinkedFormInfo, type ListElement, ListType, type LocationData, MEDIA_METADATA_COLLECTION, MediaAccessLevel, type MediaMetadata, type MediaResource, MediaService, MediaType, MedicationAllergySubtype, type MultipleChoiceElement, NOTIFICATIONS_COLLECTION, NO_SHOW_ANALYTICS_SUBCOLLECTION, type NextStepsRecommendation, type NoShowMetrics, type Notification, NotificationService, NotificationStatus, NotificationType, type OverallReviewAverages, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PRACTITIONER_ANALYTICS_SUBCOLLECTION, PRACTITIONER_INVITES_COLLECTION, PROCEDURES_COLLECTION, PROCEDURE_ANALYTICS_SUBCOLLECTION, type ParagraphElement, type PatientAnalytics, type PatientClinic, type PatientDoctor, type PatientGoals, PatientInstructionStatus, type PatientLifetimeValueMetrics, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, type PatientRequirementsFilters, PatientRequirementsService, type PatientRetentionMetrics, type PatientReviewInfo, type PatientSensitiveInfo, PatientService, type PatientToken, PatientTokenStatus, type PaymentConfirmationNotification, PaymentStatus, type PaymentStatusBreakdown, type PlanDetails, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerAnalytics, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerInvite, type PractitionerInviteFilters, PractitionerInviteService, PractitionerInviteStatus, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureAnalytics, type ProcedureCategorization, type ProcedureExtendedInfo, ProcedureFamily, type ProcedureInfo, type ProcedurePopularity, type ProcedureProduct, type ProcedureProfitability, type ProcedureRecommendationNotification, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type ProcedureSummaryInfo, type Product, type ProductRevenueMetrics, ProductService, type ProductUsageByProcedure, type ProductUsageMetrics, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVENUE_ANALYTICS_SUBCOLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type ReadStoredAnalyticsOptions, type RecommendedProcedure, type RequesterInfo, type Requirement, type RequirementInstructionDueNotification, type RequirementSourceProcedure, RequirementType, type RevenueMetrics, type RevenueTrend, type Review, type ReviewAnalyticsMetrics, ReviewAnalyticsService, type ReviewDetail, type ReviewMetrics, type ReviewRequestNotification, ReviewService, type ReviewTrend, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type StoredCancellationMetrics, type StoredClinicAnalytics, type StoredDashboardAnalytics, type StoredNoShowMetrics, type StoredPractitionerAnalytics, type StoredProcedureAnalytics, type StoredRevenueMetrics, type StoredTimeEfficiencyMetrics, type StripeTransactionData, type Subcategory, SubcategoryService, SubscriptionModel, SubscriptionStatus, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, TIME_EFFICIENCY_ANALYTICS_SUBCOLLECTION, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeEfficiencyMetrics, type TimeSlot, TimeUnit, TreatmentBenefit, type TreatmentBenefitDynamic, type TrendPeriod, USERS_COLLECTION, USER_FORMS_SUBCOLLECTION, type UpdateAestheticAnalysisData, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateBlockingEventParams, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdatePractitionerInviteData, type UpdateProcedureData, type UpdateSyncedCalendarData, type UpdateVitalStatsData, type User, UserRole, UserService, type VitalStats, type WorkingHours, type ZoneItemData, type ZonePhotoUploadData, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseFunctions, getFirebaseInstance, getFirebaseStorage, initializeFirebase };
|
package/dist/index.d.ts
CHANGED
|
@@ -5007,6 +5007,14 @@ interface ClinicLocation {
|
|
|
5007
5007
|
geohash?: string | null;
|
|
5008
5008
|
tz?: string | null;
|
|
5009
5009
|
}
|
|
5010
|
+
/**
|
|
5011
|
+
* Interface for a break period during working hours
|
|
5012
|
+
*/
|
|
5013
|
+
interface Break {
|
|
5014
|
+
title?: string;
|
|
5015
|
+
start: string;
|
|
5016
|
+
end: string;
|
|
5017
|
+
}
|
|
5010
5018
|
/**
|
|
5011
5019
|
* Interface for working hours
|
|
5012
5020
|
*/
|
|
@@ -5014,58 +5022,37 @@ interface WorkingHours {
|
|
|
5014
5022
|
monday: {
|
|
5015
5023
|
open: string;
|
|
5016
5024
|
close: string;
|
|
5017
|
-
breaks?:
|
|
5018
|
-
start: string;
|
|
5019
|
-
end: string;
|
|
5020
|
-
}[];
|
|
5025
|
+
breaks?: Break[];
|
|
5021
5026
|
} | null;
|
|
5022
5027
|
tuesday: {
|
|
5023
5028
|
open: string;
|
|
5024
5029
|
close: string;
|
|
5025
|
-
breaks?:
|
|
5026
|
-
start: string;
|
|
5027
|
-
end: string;
|
|
5028
|
-
}[];
|
|
5030
|
+
breaks?: Break[];
|
|
5029
5031
|
} | null;
|
|
5030
5032
|
wednesday: {
|
|
5031
5033
|
open: string;
|
|
5032
5034
|
close: string;
|
|
5033
|
-
breaks?:
|
|
5034
|
-
start: string;
|
|
5035
|
-
end: string;
|
|
5036
|
-
}[];
|
|
5035
|
+
breaks?: Break[];
|
|
5037
5036
|
} | null;
|
|
5038
5037
|
thursday: {
|
|
5039
5038
|
open: string;
|
|
5040
5039
|
close: string;
|
|
5041
|
-
breaks?:
|
|
5042
|
-
start: string;
|
|
5043
|
-
end: string;
|
|
5044
|
-
}[];
|
|
5040
|
+
breaks?: Break[];
|
|
5045
5041
|
} | null;
|
|
5046
5042
|
friday: {
|
|
5047
5043
|
open: string;
|
|
5048
5044
|
close: string;
|
|
5049
|
-
breaks?:
|
|
5050
|
-
start: string;
|
|
5051
|
-
end: string;
|
|
5052
|
-
}[];
|
|
5045
|
+
breaks?: Break[];
|
|
5053
5046
|
} | null;
|
|
5054
5047
|
saturday: {
|
|
5055
5048
|
open: string;
|
|
5056
5049
|
close: string;
|
|
5057
|
-
breaks?:
|
|
5058
|
-
start: string;
|
|
5059
|
-
end: string;
|
|
5060
|
-
}[];
|
|
5050
|
+
breaks?: Break[];
|
|
5061
5051
|
} | null;
|
|
5062
5052
|
sunday: {
|
|
5063
5053
|
open: string;
|
|
5064
5054
|
close: string;
|
|
5065
|
-
breaks?:
|
|
5066
|
-
start: string;
|
|
5067
|
-
end: string;
|
|
5068
|
-
}[];
|
|
5055
|
+
breaks?: Break[];
|
|
5069
5056
|
} | null;
|
|
5070
5057
|
}
|
|
5071
5058
|
/**
|
|
@@ -9109,4 +9096,4 @@ declare const getFirebaseApp: () => Promise<FirebaseApp>;
|
|
|
9109
9096
|
declare const getFirebaseStorage: () => Promise<FirebaseStorage>;
|
|
9110
9097
|
declare const getFirebaseFunctions: () => Promise<Functions>;
|
|
9111
9098
|
|
|
9112
|
-
export { AESTHETIC_ANALYSIS_COLLECTION, ANALYTICS_COLLECTION, APPOINTMENTS_COLLECTION, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type AestheticAnalysis, type AestheticAnalysisStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, AnalyticsCloudService, type AnalyticsDateRange, type AnalyticsFilters, type AnalyticsMetadata, type AnalyticsPeriod, AnalyticsService, type Appointment, type AppointmentCancelledNotification, type AppointmentMediaItem, type AppointmentMetadata, type AppointmentProductMetadata, type AppointmentReminderNotification, type AppointmentRescheduledProposalNotification, AppointmentService, AppointmentStatus, type AppointmentStatusChangeNotification, type AppointmentTrend, type AssessmentScales, AuthService, type BaseDocumentElement, type BaseMetrics, type BaseNotification, BaseService, type BeforeAfterPerZone, type BillingInfo, type BillingPerZone, type BillingTransaction, BillingTransactionType, BillingTransactionsService, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CANCELLATION_ANALYTICS_SUBCOLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_ANALYTICS_SUBCOLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type CancellationMetrics, type CancellationRateTrend, type CancellationReasonStats, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicAnalytics, type ClinicBranchSetupData, type ClinicComparisonMetrics, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ClinicalFindingDetail, type ClinicalFindings, ConstantsService, type ContactPerson, Contraindication, type ContraindicationDynamic, CosmeticAllergySubtype, type CostPerPatientMetrics, type CreateAdminTokenData, type CreateAestheticAnalysisData, type CreateAppointmentData, type CreateAppointmentHttpData, type CreateAppointmentParams, type CreateBillingTransactionData, type CreateBlockingEventParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreateManualPatientData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePatientTokenData, type CreatePractitionerData, type CreatePractitionerInviteData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DASHBOARD_ANALYTICS_SUBCOLLECTION, DEFAULT_MEDICAL_INFO, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DashboardAnalytics, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DurationTrend, type DynamicTextElement, DynamicVariable, type EmergencyContact, type EntityType, EnvironmentalAllergySubtype, type ExtendedProcedureInfo, ExternalCalendarService, FILLED_DOCUMENTS_COLLECTION, type FileUploadElement, type FilledDocument, type FilledDocumentFileValue, FilledDocumentService, FilledDocumentStatus, type FinalBilling, type FirebaseUser, FoodAllergySubtype, type FormReminderNotification, type FormSubmissionConfirmationNotification, type GamificationInfo, Gender, type GeneralMessageNotification, type GroupedAnalyticsBase, type GroupedPatientBehaviorMetrics, type GroupedPatientRetentionMetrics, type GroupedPractitionerPerformanceMetrics, type GroupedProcedurePerformanceMetrics, type GroupedProductUsageMetrics, type GroupedRevenueMetrics, type GroupedTimeEfficiencyMetrics, type GroupingPeriod, type HeadingElement, HeadingLevel, INVITE_TOKENS_COLLECTION, Language, type LinkedFormInfo, type ListElement, ListType, type LocationData, MEDIA_METADATA_COLLECTION, MediaAccessLevel, type MediaMetadata, type MediaResource, MediaService, MediaType, MedicationAllergySubtype, type MultipleChoiceElement, NOTIFICATIONS_COLLECTION, NO_SHOW_ANALYTICS_SUBCOLLECTION, type NextStepsRecommendation, type NoShowMetrics, type Notification, NotificationService, NotificationStatus, NotificationType, type OverallReviewAverages, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PRACTITIONER_ANALYTICS_SUBCOLLECTION, PRACTITIONER_INVITES_COLLECTION, PROCEDURES_COLLECTION, PROCEDURE_ANALYTICS_SUBCOLLECTION, type ParagraphElement, type PatientAnalytics, type PatientClinic, type PatientDoctor, type PatientGoals, PatientInstructionStatus, type PatientLifetimeValueMetrics, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, type PatientRequirementsFilters, PatientRequirementsService, type PatientRetentionMetrics, type PatientReviewInfo, type PatientSensitiveInfo, PatientService, type PatientToken, PatientTokenStatus, type PaymentConfirmationNotification, PaymentStatus, type PaymentStatusBreakdown, type PlanDetails, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerAnalytics, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerInvite, type PractitionerInviteFilters, PractitionerInviteService, PractitionerInviteStatus, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureAnalytics, type ProcedureCategorization, type ProcedureExtendedInfo, ProcedureFamily, type ProcedureInfo, type ProcedurePopularity, type ProcedureProduct, type ProcedureProfitability, type ProcedureRecommendationNotification, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type ProcedureSummaryInfo, type Product, type ProductRevenueMetrics, ProductService, type ProductUsageByProcedure, type ProductUsageMetrics, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVENUE_ANALYTICS_SUBCOLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type ReadStoredAnalyticsOptions, type RecommendedProcedure, type RequesterInfo, type Requirement, type RequirementInstructionDueNotification, type RequirementSourceProcedure, RequirementType, type RevenueMetrics, type RevenueTrend, type Review, type ReviewAnalyticsMetrics, ReviewAnalyticsService, type ReviewDetail, type ReviewMetrics, type ReviewRequestNotification, ReviewService, type ReviewTrend, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type StoredCancellationMetrics, type StoredClinicAnalytics, type StoredDashboardAnalytics, type StoredNoShowMetrics, type StoredPractitionerAnalytics, type StoredProcedureAnalytics, type StoredRevenueMetrics, type StoredTimeEfficiencyMetrics, type StripeTransactionData, type Subcategory, SubcategoryService, SubscriptionModel, SubscriptionStatus, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, TIME_EFFICIENCY_ANALYTICS_SUBCOLLECTION, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeEfficiencyMetrics, type TimeSlot, TimeUnit, TreatmentBenefit, type TreatmentBenefitDynamic, type TrendPeriod, USERS_COLLECTION, USER_FORMS_SUBCOLLECTION, type UpdateAestheticAnalysisData, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateBlockingEventParams, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdatePractitionerInviteData, type UpdateProcedureData, type UpdateSyncedCalendarData, type UpdateVitalStatsData, type User, UserRole, UserService, type VitalStats, type WorkingHours, type ZoneItemData, type ZonePhotoUploadData, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseFunctions, getFirebaseInstance, getFirebaseStorage, initializeFirebase };
|
|
9099
|
+
export { AESTHETIC_ANALYSIS_COLLECTION, ANALYTICS_COLLECTION, APPOINTMENTS_COLLECTION, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type AestheticAnalysis, type AestheticAnalysisStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, AnalyticsCloudService, type AnalyticsDateRange, type AnalyticsFilters, type AnalyticsMetadata, type AnalyticsPeriod, AnalyticsService, type Appointment, type AppointmentCancelledNotification, type AppointmentMediaItem, type AppointmentMetadata, type AppointmentProductMetadata, type AppointmentReminderNotification, type AppointmentRescheduledProposalNotification, AppointmentService, AppointmentStatus, type AppointmentStatusChangeNotification, type AppointmentTrend, type AssessmentScales, AuthService, type BaseDocumentElement, type BaseMetrics, type BaseNotification, BaseService, type BeforeAfterPerZone, type BillingInfo, type BillingPerZone, type BillingTransaction, BillingTransactionType, BillingTransactionsService, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, type Break, CALENDAR_COLLECTION, CANCELLATION_ANALYTICS_SUBCOLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_ANALYTICS_SUBCOLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type CancellationMetrics, type CancellationRateTrend, type CancellationReasonStats, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicAnalytics, type ClinicBranchSetupData, type ClinicComparisonMetrics, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, type ClinicalFindingDetail, type ClinicalFindings, ConstantsService, type ContactPerson, Contraindication, type ContraindicationDynamic, CosmeticAllergySubtype, type CostPerPatientMetrics, type CreateAdminTokenData, type CreateAestheticAnalysisData, type CreateAppointmentData, type CreateAppointmentHttpData, type CreateAppointmentParams, type CreateBillingTransactionData, type CreateBlockingEventParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreateManualPatientData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePatientTokenData, type CreatePractitionerData, type CreatePractitionerInviteData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DASHBOARD_ANALYTICS_SUBCOLLECTION, DEFAULT_MEDICAL_INFO, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DashboardAnalytics, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DurationTrend, type DynamicTextElement, DynamicVariable, type EmergencyContact, type EntityType, EnvironmentalAllergySubtype, type ExtendedProcedureInfo, ExternalCalendarService, FILLED_DOCUMENTS_COLLECTION, type FileUploadElement, type FilledDocument, type FilledDocumentFileValue, FilledDocumentService, FilledDocumentStatus, type FinalBilling, type FirebaseUser, FoodAllergySubtype, type FormReminderNotification, type FormSubmissionConfirmationNotification, type GamificationInfo, Gender, type GeneralMessageNotification, type GroupedAnalyticsBase, type GroupedPatientBehaviorMetrics, type GroupedPatientRetentionMetrics, type GroupedPractitionerPerformanceMetrics, type GroupedProcedurePerformanceMetrics, type GroupedProductUsageMetrics, type GroupedRevenueMetrics, type GroupedTimeEfficiencyMetrics, type GroupingPeriod, type HeadingElement, HeadingLevel, INVITE_TOKENS_COLLECTION, Language, type LinkedFormInfo, type ListElement, ListType, type LocationData, MEDIA_METADATA_COLLECTION, MediaAccessLevel, type MediaMetadata, type MediaResource, MediaService, MediaType, MedicationAllergySubtype, type MultipleChoiceElement, NOTIFICATIONS_COLLECTION, NO_SHOW_ANALYTICS_SUBCOLLECTION, type NextStepsRecommendation, type NoShowMetrics, type Notification, NotificationService, NotificationStatus, NotificationType, type OverallReviewAverages, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_REQUIREMENTS_SUBCOLLECTION_NAME, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PRACTITIONER_ANALYTICS_SUBCOLLECTION, PRACTITIONER_INVITES_COLLECTION, PROCEDURES_COLLECTION, PROCEDURE_ANALYTICS_SUBCOLLECTION, type ParagraphElement, type PatientAnalytics, type PatientClinic, type PatientDoctor, type PatientGoals, PatientInstructionStatus, type PatientLifetimeValueMetrics, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, type PatientRequirementsFilters, PatientRequirementsService, type PatientRetentionMetrics, type PatientReviewInfo, type PatientSensitiveInfo, PatientService, type PatientToken, PatientTokenStatus, type PaymentConfirmationNotification, PaymentStatus, type PaymentStatusBreakdown, type PlanDetails, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerAnalytics, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerInvite, type PractitionerInviteFilters, PractitionerInviteService, PractitionerInviteStatus, type PractitionerProfileInfo, type PractitionerReview, type PractitionerReviewInfo, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureAnalytics, type ProcedureCategorization, type ProcedureExtendedInfo, ProcedureFamily, type ProcedureInfo, type ProcedurePopularity, type ProcedureProduct, type ProcedureProfitability, type ProcedureRecommendationNotification, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type ProcedureSummaryInfo, type Product, type ProductRevenueMetrics, ProductService, type ProductUsageByProcedure, type ProductUsageMetrics, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVENUE_ANALYTICS_SUBCOLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type ReadStoredAnalyticsOptions, type RecommendedProcedure, type RequesterInfo, type Requirement, type RequirementInstructionDueNotification, type RequirementSourceProcedure, RequirementType, type RevenueMetrics, type RevenueTrend, type Review, type ReviewAnalyticsMetrics, ReviewAnalyticsService, type ReviewDetail, type ReviewMetrics, type ReviewRequestNotification, ReviewService, type ReviewTrend, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type StoredCancellationMetrics, type StoredClinicAnalytics, type StoredDashboardAnalytics, type StoredNoShowMetrics, type StoredPractitionerAnalytics, type StoredProcedureAnalytics, type StoredRevenueMetrics, type StoredTimeEfficiencyMetrics, type StripeTransactionData, type Subcategory, SubcategoryService, SubscriptionModel, SubscriptionStatus, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, TIME_EFFICIENCY_ANALYTICS_SUBCOLLECTION, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeEfficiencyMetrics, type TimeSlot, TimeUnit, TreatmentBenefit, type TreatmentBenefitDynamic, type TrendPeriod, USERS_COLLECTION, USER_FORMS_SUBCOLLECTION, type UpdateAestheticAnalysisData, type UpdateAllergyData, type UpdateAppointmentData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateBlockingEventParams, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdatePractitionerInviteData, type UpdateProcedureData, type UpdateSyncedCalendarData, type UpdateVitalStatsData, type User, UserRole, UserService, type VitalStats, type WorkingHours, type ZoneItemData, type ZonePhotoUploadData, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseFunctions, getFirebaseInstance, getFirebaseStorage, initializeFirebase };
|
package/dist/index.js
CHANGED
|
@@ -8299,6 +8299,7 @@ var workingHoursTimeSchema = import_zod10.z.object({
|
|
|
8299
8299
|
close: import_zod10.z.string(),
|
|
8300
8300
|
breaks: import_zod10.z.array(
|
|
8301
8301
|
import_zod10.z.object({
|
|
8302
|
+
title: import_zod10.z.string().optional(),
|
|
8302
8303
|
start: import_zod10.z.string(),
|
|
8303
8304
|
end: import_zod10.z.string()
|
|
8304
8305
|
})
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blackcode_sa/metaestetics-api",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.6",
|
|
5
5
|
"description": "Firebase authentication service with anonymous upgrade support",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
@@ -104,6 +104,8 @@
|
|
|
104
104
|
"zod": "^3.24.1"
|
|
105
105
|
},
|
|
106
106
|
"optionalDependencies": {
|
|
107
|
+
"@esbuild/win32-x64": "^0.27.0",
|
|
108
|
+
"@rollup/rollup-win32-x64-msvc": "^4.53.3",
|
|
107
109
|
"firebase-functions": "^6.2.0"
|
|
108
110
|
},
|
|
109
111
|
"jest": {
|