@blackcode_sa/metaestetics-api 1.12.6 → 1.12.7
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.mts +98 -1
- package/dist/index.d.ts +98 -1
- package/dist/index.js +1019 -891
- package/dist/index.mjs +779 -644
- package/package.json +1 -2
- package/src/services/clinic/billing-transactions.service.ts +214 -0
- package/src/services/clinic/clinic-group.service.ts +99 -102
- package/src/services/clinic/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -5077,6 +5077,7 @@ declare class ClinicAdminService extends BaseService {
|
|
|
5077
5077
|
|
|
5078
5078
|
declare class ClinicGroupService extends BaseService {
|
|
5079
5079
|
private clinicAdminService;
|
|
5080
|
+
private billingTransactionsService;
|
|
5080
5081
|
constructor(db: Firestore, auth: Auth, app: FirebaseApp, clinicAdminService: ClinicAdminService);
|
|
5081
5082
|
/**
|
|
5082
5083
|
* Kreira novu grupaciju klinika
|
|
@@ -5156,6 +5157,44 @@ declare class ClinicGroupService extends BaseService {
|
|
|
5156
5157
|
* @returns The updated clinic group
|
|
5157
5158
|
*/
|
|
5158
5159
|
completeOnboarding(groupId: string): Promise<ClinicGroup>;
|
|
5160
|
+
/**
|
|
5161
|
+
* Get billing transactions for a clinic group
|
|
5162
|
+
*
|
|
5163
|
+
* @param groupId - The clinic group ID
|
|
5164
|
+
* @param options - Query options for pagination and filtering
|
|
5165
|
+
* @returns Promise with billing transactions and pagination info
|
|
5166
|
+
*/
|
|
5167
|
+
getBillingTransactions(groupId: string, options?: {
|
|
5168
|
+
limit?: number;
|
|
5169
|
+
startAfter?: any;
|
|
5170
|
+
transactionType?: BillingTransactionType;
|
|
5171
|
+
}): Promise<{
|
|
5172
|
+
transactions: BillingTransaction[];
|
|
5173
|
+
lastDoc: any;
|
|
5174
|
+
hasMore: boolean;
|
|
5175
|
+
}>;
|
|
5176
|
+
/**
|
|
5177
|
+
* Get recent billing transactions for a clinic group (last 10)
|
|
5178
|
+
*
|
|
5179
|
+
* @param groupId - The clinic group ID
|
|
5180
|
+
* @returns Promise with recent billing transactions
|
|
5181
|
+
*/
|
|
5182
|
+
getRecentBillingTransactions(groupId: string): Promise<BillingTransaction[]>;
|
|
5183
|
+
/**
|
|
5184
|
+
* Get subscription-related billing transactions for a clinic group
|
|
5185
|
+
*
|
|
5186
|
+
* @param groupId - The clinic group ID
|
|
5187
|
+
* @param options - Query options for pagination
|
|
5188
|
+
* @returns Promise with subscription transactions and pagination info
|
|
5189
|
+
*/
|
|
5190
|
+
getSubscriptionTransactions(groupId: string, options?: {
|
|
5191
|
+
limit?: number;
|
|
5192
|
+
startAfter?: any;
|
|
5193
|
+
}): Promise<{
|
|
5194
|
+
transactions: BillingTransaction[];
|
|
5195
|
+
lastDoc: any;
|
|
5196
|
+
hasMore: boolean;
|
|
5197
|
+
}>;
|
|
5159
5198
|
}
|
|
5160
5199
|
|
|
5161
5200
|
declare class ClinicService extends BaseService {
|
|
@@ -6633,6 +6672,64 @@ declare class PractitionerInviteService extends BaseService {
|
|
|
6633
6672
|
private findExistingInvite;
|
|
6634
6673
|
}
|
|
6635
6674
|
|
|
6675
|
+
/**
|
|
6676
|
+
* Service for managing billing transactions
|
|
6677
|
+
* Provides read-only access to billing transaction history
|
|
6678
|
+
*/
|
|
6679
|
+
declare class BillingTransactionsService extends BaseService {
|
|
6680
|
+
private readonly BILLING_TRANSACTIONS_COLLECTION;
|
|
6681
|
+
/**
|
|
6682
|
+
* Get billing transactions for a clinic group with pagination
|
|
6683
|
+
* @param clinicGroupId - The clinic group ID
|
|
6684
|
+
* @param options - Query options
|
|
6685
|
+
* @returns Promise with transactions and pagination info
|
|
6686
|
+
*/
|
|
6687
|
+
getBillingTransactions(clinicGroupId: string, options?: {
|
|
6688
|
+
limit?: number;
|
|
6689
|
+
startAfter?: DocumentSnapshot;
|
|
6690
|
+
transactionType?: BillingTransactionType;
|
|
6691
|
+
}): Promise<{
|
|
6692
|
+
transactions: BillingTransaction[];
|
|
6693
|
+
lastDoc: DocumentSnapshot | null;
|
|
6694
|
+
hasMore: boolean;
|
|
6695
|
+
}>;
|
|
6696
|
+
/**
|
|
6697
|
+
* Get recent billing transactions (last 10)
|
|
6698
|
+
* @param clinicGroupId - The clinic group ID
|
|
6699
|
+
* @returns Promise with recent transactions
|
|
6700
|
+
*/
|
|
6701
|
+
getRecentBillingTransactions(clinicGroupId: string): Promise<BillingTransaction[]>;
|
|
6702
|
+
/**
|
|
6703
|
+
* Get billing transactions by type
|
|
6704
|
+
* @param clinicGroupId - The clinic group ID
|
|
6705
|
+
* @param transactionType - The transaction type to filter by
|
|
6706
|
+
* @param options - Additional query options
|
|
6707
|
+
* @returns Promise with filtered transactions
|
|
6708
|
+
*/
|
|
6709
|
+
getBillingTransactionsByType(clinicGroupId: string, transactionType: BillingTransactionType, options?: {
|
|
6710
|
+
limit?: number;
|
|
6711
|
+
startAfter?: DocumentSnapshot;
|
|
6712
|
+
}): Promise<{
|
|
6713
|
+
transactions: BillingTransaction[];
|
|
6714
|
+
lastDoc: DocumentSnapshot | null;
|
|
6715
|
+
hasMore: boolean;
|
|
6716
|
+
}>;
|
|
6717
|
+
/**
|
|
6718
|
+
* Get subscription-related transactions only
|
|
6719
|
+
* @param clinicGroupId - The clinic group ID
|
|
6720
|
+
* @param options - Query options
|
|
6721
|
+
* @returns Promise with subscription transactions
|
|
6722
|
+
*/
|
|
6723
|
+
getSubscriptionTransactions(clinicGroupId: string, options?: {
|
|
6724
|
+
limit?: number;
|
|
6725
|
+
startAfter?: DocumentSnapshot;
|
|
6726
|
+
}): Promise<{
|
|
6727
|
+
transactions: BillingTransaction[];
|
|
6728
|
+
lastDoc: DocumentSnapshot | null;
|
|
6729
|
+
hasMore: boolean;
|
|
6730
|
+
}>;
|
|
6731
|
+
}
|
|
6732
|
+
|
|
6636
6733
|
declare class NotificationService extends BaseService {
|
|
6637
6734
|
/**
|
|
6638
6735
|
* Kreira novu notifikaciju
|
|
@@ -6806,4 +6903,4 @@ declare const getFirebaseApp: () => Promise<FirebaseApp>;
|
|
|
6806
6903
|
declare const getFirebaseStorage: () => Promise<FirebaseStorage>;
|
|
6807
6904
|
declare const getFirebaseFunctions: () => Promise<Functions>;
|
|
6808
6905
|
|
|
6809
|
-
export { APPOINTMENTS_COLLECTION, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type Appointment, type AppointmentCancelledNotification, type AppointmentMediaItem, type AppointmentMetadata, type AppointmentReminderNotification, type AppointmentRescheduledProposalNotification, AppointmentService, AppointmentStatus, type AppointmentStatusChangeNotification, AuthService, type BaseDocumentElement, type BaseNotification, BaseService, type BeforeAfterPerZone, type BillingInfo, type BillingPerZone, type BillingTransaction, BillingTransactionType, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, ConstantsService, type ContactPerson, Contraindication, type ContraindicationDynamic, CosmeticAllergySubtype, type CreateAdminTokenData, 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, DEFAULT_MEDICAL_INFO, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DynamicTextElement, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, 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 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, type Notification, NotificationService, NotificationStatus, NotificationType, 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_INVITES_COLLECTION, PROCEDURES_COLLECTION, type ParagraphElement, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, type PatientRequirementsFilters, PatientRequirementsService, type PatientReviewInfo, type PatientSensitiveInfo, PatientService, type PatientToken, PatientTokenStatus, type PaymentConfirmationNotification, PaymentStatus, type PlanDetails, type PostRequirementNotification, PracticeType, type Practitioner, 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 ProcedureCategorization, type ProcedureExtendedInfo, ProcedureFamily, type ProcedureInfo, type ProcedureProduct, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type ProcedureSummaryInfo, type Product, ProductService, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type RequesterInfo, type Requirement, type RequirementInstructionDueNotification, RequirementType, type Review, type ReviewRequestNotification, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type StripeTransactionData, type Subcategory, SubcategoryService, SubscriptionModel, SubscriptionStatus, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeSlot, TimeUnit, TreatmentBenefit, type TreatmentBenefitDynamic, USERS_COLLECTION, USER_FORMS_SUBCOLLECTION, 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, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseFunctions, getFirebaseInstance, getFirebaseStorage, initializeFirebase };
|
|
6906
|
+
export { APPOINTMENTS_COLLECTION, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type Appointment, type AppointmentCancelledNotification, type AppointmentMediaItem, type AppointmentMetadata, type AppointmentReminderNotification, type AppointmentRescheduledProposalNotification, AppointmentService, AppointmentStatus, type AppointmentStatusChangeNotification, AuthService, type BaseDocumentElement, type BaseNotification, BaseService, type BeforeAfterPerZone, type BillingInfo, type BillingPerZone, type BillingTransaction, BillingTransactionType, BillingTransactionsService, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, ConstantsService, type ContactPerson, Contraindication, type ContraindicationDynamic, CosmeticAllergySubtype, type CreateAdminTokenData, 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, DEFAULT_MEDICAL_INFO, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DynamicTextElement, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, 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 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, type Notification, NotificationService, NotificationStatus, NotificationType, 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_INVITES_COLLECTION, PROCEDURES_COLLECTION, type ParagraphElement, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, type PatientRequirementsFilters, PatientRequirementsService, type PatientReviewInfo, type PatientSensitiveInfo, PatientService, type PatientToken, PatientTokenStatus, type PaymentConfirmationNotification, PaymentStatus, type PlanDetails, type PostRequirementNotification, PracticeType, type Practitioner, 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 ProcedureCategorization, type ProcedureExtendedInfo, ProcedureFamily, type ProcedureInfo, type ProcedureProduct, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type ProcedureSummaryInfo, type Product, ProductService, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type RequesterInfo, type Requirement, type RequirementInstructionDueNotification, RequirementType, type Review, type ReviewRequestNotification, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type StripeTransactionData, type Subcategory, SubcategoryService, SubscriptionModel, SubscriptionStatus, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeSlot, TimeUnit, TreatmentBenefit, type TreatmentBenefitDynamic, USERS_COLLECTION, USER_FORMS_SUBCOLLECTION, 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, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseFunctions, getFirebaseInstance, getFirebaseStorage, initializeFirebase };
|
package/dist/index.d.ts
CHANGED
|
@@ -5077,6 +5077,7 @@ declare class ClinicAdminService extends BaseService {
|
|
|
5077
5077
|
|
|
5078
5078
|
declare class ClinicGroupService extends BaseService {
|
|
5079
5079
|
private clinicAdminService;
|
|
5080
|
+
private billingTransactionsService;
|
|
5080
5081
|
constructor(db: Firestore, auth: Auth, app: FirebaseApp, clinicAdminService: ClinicAdminService);
|
|
5081
5082
|
/**
|
|
5082
5083
|
* Kreira novu grupaciju klinika
|
|
@@ -5156,6 +5157,44 @@ declare class ClinicGroupService extends BaseService {
|
|
|
5156
5157
|
* @returns The updated clinic group
|
|
5157
5158
|
*/
|
|
5158
5159
|
completeOnboarding(groupId: string): Promise<ClinicGroup>;
|
|
5160
|
+
/**
|
|
5161
|
+
* Get billing transactions for a clinic group
|
|
5162
|
+
*
|
|
5163
|
+
* @param groupId - The clinic group ID
|
|
5164
|
+
* @param options - Query options for pagination and filtering
|
|
5165
|
+
* @returns Promise with billing transactions and pagination info
|
|
5166
|
+
*/
|
|
5167
|
+
getBillingTransactions(groupId: string, options?: {
|
|
5168
|
+
limit?: number;
|
|
5169
|
+
startAfter?: any;
|
|
5170
|
+
transactionType?: BillingTransactionType;
|
|
5171
|
+
}): Promise<{
|
|
5172
|
+
transactions: BillingTransaction[];
|
|
5173
|
+
lastDoc: any;
|
|
5174
|
+
hasMore: boolean;
|
|
5175
|
+
}>;
|
|
5176
|
+
/**
|
|
5177
|
+
* Get recent billing transactions for a clinic group (last 10)
|
|
5178
|
+
*
|
|
5179
|
+
* @param groupId - The clinic group ID
|
|
5180
|
+
* @returns Promise with recent billing transactions
|
|
5181
|
+
*/
|
|
5182
|
+
getRecentBillingTransactions(groupId: string): Promise<BillingTransaction[]>;
|
|
5183
|
+
/**
|
|
5184
|
+
* Get subscription-related billing transactions for a clinic group
|
|
5185
|
+
*
|
|
5186
|
+
* @param groupId - The clinic group ID
|
|
5187
|
+
* @param options - Query options for pagination
|
|
5188
|
+
* @returns Promise with subscription transactions and pagination info
|
|
5189
|
+
*/
|
|
5190
|
+
getSubscriptionTransactions(groupId: string, options?: {
|
|
5191
|
+
limit?: number;
|
|
5192
|
+
startAfter?: any;
|
|
5193
|
+
}): Promise<{
|
|
5194
|
+
transactions: BillingTransaction[];
|
|
5195
|
+
lastDoc: any;
|
|
5196
|
+
hasMore: boolean;
|
|
5197
|
+
}>;
|
|
5159
5198
|
}
|
|
5160
5199
|
|
|
5161
5200
|
declare class ClinicService extends BaseService {
|
|
@@ -6633,6 +6672,64 @@ declare class PractitionerInviteService extends BaseService {
|
|
|
6633
6672
|
private findExistingInvite;
|
|
6634
6673
|
}
|
|
6635
6674
|
|
|
6675
|
+
/**
|
|
6676
|
+
* Service for managing billing transactions
|
|
6677
|
+
* Provides read-only access to billing transaction history
|
|
6678
|
+
*/
|
|
6679
|
+
declare class BillingTransactionsService extends BaseService {
|
|
6680
|
+
private readonly BILLING_TRANSACTIONS_COLLECTION;
|
|
6681
|
+
/**
|
|
6682
|
+
* Get billing transactions for a clinic group with pagination
|
|
6683
|
+
* @param clinicGroupId - The clinic group ID
|
|
6684
|
+
* @param options - Query options
|
|
6685
|
+
* @returns Promise with transactions and pagination info
|
|
6686
|
+
*/
|
|
6687
|
+
getBillingTransactions(clinicGroupId: string, options?: {
|
|
6688
|
+
limit?: number;
|
|
6689
|
+
startAfter?: DocumentSnapshot;
|
|
6690
|
+
transactionType?: BillingTransactionType;
|
|
6691
|
+
}): Promise<{
|
|
6692
|
+
transactions: BillingTransaction[];
|
|
6693
|
+
lastDoc: DocumentSnapshot | null;
|
|
6694
|
+
hasMore: boolean;
|
|
6695
|
+
}>;
|
|
6696
|
+
/**
|
|
6697
|
+
* Get recent billing transactions (last 10)
|
|
6698
|
+
* @param clinicGroupId - The clinic group ID
|
|
6699
|
+
* @returns Promise with recent transactions
|
|
6700
|
+
*/
|
|
6701
|
+
getRecentBillingTransactions(clinicGroupId: string): Promise<BillingTransaction[]>;
|
|
6702
|
+
/**
|
|
6703
|
+
* Get billing transactions by type
|
|
6704
|
+
* @param clinicGroupId - The clinic group ID
|
|
6705
|
+
* @param transactionType - The transaction type to filter by
|
|
6706
|
+
* @param options - Additional query options
|
|
6707
|
+
* @returns Promise with filtered transactions
|
|
6708
|
+
*/
|
|
6709
|
+
getBillingTransactionsByType(clinicGroupId: string, transactionType: BillingTransactionType, options?: {
|
|
6710
|
+
limit?: number;
|
|
6711
|
+
startAfter?: DocumentSnapshot;
|
|
6712
|
+
}): Promise<{
|
|
6713
|
+
transactions: BillingTransaction[];
|
|
6714
|
+
lastDoc: DocumentSnapshot | null;
|
|
6715
|
+
hasMore: boolean;
|
|
6716
|
+
}>;
|
|
6717
|
+
/**
|
|
6718
|
+
* Get subscription-related transactions only
|
|
6719
|
+
* @param clinicGroupId - The clinic group ID
|
|
6720
|
+
* @param options - Query options
|
|
6721
|
+
* @returns Promise with subscription transactions
|
|
6722
|
+
*/
|
|
6723
|
+
getSubscriptionTransactions(clinicGroupId: string, options?: {
|
|
6724
|
+
limit?: number;
|
|
6725
|
+
startAfter?: DocumentSnapshot;
|
|
6726
|
+
}): Promise<{
|
|
6727
|
+
transactions: BillingTransaction[];
|
|
6728
|
+
lastDoc: DocumentSnapshot | null;
|
|
6729
|
+
hasMore: boolean;
|
|
6730
|
+
}>;
|
|
6731
|
+
}
|
|
6732
|
+
|
|
6636
6733
|
declare class NotificationService extends BaseService {
|
|
6637
6734
|
/**
|
|
6638
6735
|
* Kreira novu notifikaciju
|
|
@@ -6806,4 +6903,4 @@ declare const getFirebaseApp: () => Promise<FirebaseApp>;
|
|
|
6806
6903
|
declare const getFirebaseStorage: () => Promise<FirebaseStorage>;
|
|
6807
6904
|
declare const getFirebaseFunctions: () => Promise<Functions>;
|
|
6808
6905
|
|
|
6809
|
-
export { APPOINTMENTS_COLLECTION, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type Appointment, type AppointmentCancelledNotification, type AppointmentMediaItem, type AppointmentMetadata, type AppointmentReminderNotification, type AppointmentRescheduledProposalNotification, AppointmentService, AppointmentStatus, type AppointmentStatusChangeNotification, AuthService, type BaseDocumentElement, type BaseNotification, BaseService, type BeforeAfterPerZone, type BillingInfo, type BillingPerZone, type BillingTransaction, BillingTransactionType, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, ConstantsService, type ContactPerson, Contraindication, type ContraindicationDynamic, CosmeticAllergySubtype, type CreateAdminTokenData, 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, DEFAULT_MEDICAL_INFO, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DynamicTextElement, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, 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 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, type Notification, NotificationService, NotificationStatus, NotificationType, 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_INVITES_COLLECTION, PROCEDURES_COLLECTION, type ParagraphElement, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, type PatientRequirementsFilters, PatientRequirementsService, type PatientReviewInfo, type PatientSensitiveInfo, PatientService, type PatientToken, PatientTokenStatus, type PaymentConfirmationNotification, PaymentStatus, type PlanDetails, type PostRequirementNotification, PracticeType, type Practitioner, 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 ProcedureCategorization, type ProcedureExtendedInfo, ProcedureFamily, type ProcedureInfo, type ProcedureProduct, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type ProcedureSummaryInfo, type Product, ProductService, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type RequesterInfo, type Requirement, type RequirementInstructionDueNotification, RequirementType, type Review, type ReviewRequestNotification, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type StripeTransactionData, type Subcategory, SubcategoryService, SubscriptionModel, SubscriptionStatus, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeSlot, TimeUnit, TreatmentBenefit, type TreatmentBenefitDynamic, USERS_COLLECTION, USER_FORMS_SUBCOLLECTION, 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, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseFunctions, getFirebaseInstance, getFirebaseStorage, initializeFirebase };
|
|
6906
|
+
export { APPOINTMENTS_COLLECTION, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type Appointment, type AppointmentCancelledNotification, type AppointmentMediaItem, type AppointmentMetadata, type AppointmentReminderNotification, type AppointmentRescheduledProposalNotification, AppointmentService, AppointmentStatus, type AppointmentStatusChangeNotification, AuthService, type BaseDocumentElement, type BaseNotification, BaseService, type BeforeAfterPerZone, type BillingInfo, type BillingPerZone, type BillingTransaction, BillingTransactionType, BillingTransactionsService, type BinaryChoiceElement, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarServiceV3, CalendarSyncStatus, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, type ClinicReviewInfo, ClinicService, ClinicTag, type ClinicTags, ConstantsService, type ContactPerson, Contraindication, type ContraindicationDynamic, CosmeticAllergySubtype, type CreateAdminTokenData, 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, DEFAULT_MEDICAL_INFO, DOCTOR_FORMS_SUBCOLLECTION, DOCUMENTATION_TEMPLATES_COLLECTION, type DatePickerElement, type DateRange, type DigitalSignatureElement, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, type DynamicTextElement, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, 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 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, type Notification, NotificationService, NotificationStatus, NotificationType, 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_INVITES_COLLECTION, PROCEDURES_COLLECTION, type ParagraphElement, type PatientClinic, type PatientDoctor, PatientInstructionStatus, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileForDoctor, type PatientProfileInfo, type PatientRequirementInstance, type PatientRequirementInstruction, PatientRequirementOverallStatus, type PatientRequirementsFilters, PatientRequirementsService, type PatientReviewInfo, type PatientSensitiveInfo, PatientService, type PatientToken, PatientTokenStatus, type PaymentConfirmationNotification, PaymentStatus, type PlanDetails, type PostRequirementNotification, PracticeType, type Practitioner, 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 ProcedureCategorization, type ProcedureExtendedInfo, ProcedureFamily, type ProcedureInfo, type ProcedureProduct, type ProcedureReview, type ProcedureReviewInfo, ProcedureService, type ProcedureSummaryInfo, type Product, ProductService, type ProposedWorkingHours, REGISTER_TOKENS_COLLECTION, REVIEWS_COLLECTION, type RatingScaleElement, type RequesterInfo, type Requirement, type RequirementInstructionDueNotification, RequirementType, type Review, type ReviewRequestNotification, ReviewService, SYNCED_CALENDARS_COLLECTION, type SearchAppointmentsParams, type SearchCalendarEventsParams, SearchLocationEnum, type SearchPatientsParams, type SignatureElement, type SingleChoiceElement, type StripeTransactionData, type Subcategory, SubcategoryService, SubscriptionModel, SubscriptionStatus, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, type TechnologyDocumentationTemplate, TechnologyService, type TextInputElement, type TimeSlot, TimeUnit, TreatmentBenefit, type TreatmentBenefitDynamic, USERS_COLLECTION, USER_FORMS_SUBCOLLECTION, 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, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseFunctions, getFirebaseInstance, getFirebaseStorage, initializeFirebase };
|