@vitalfit/sdk 0.1.6 → 0.1.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.cjs +295 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +116 -3
- package/dist/index.d.ts +116 -3
- package/dist/index.js +295 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -768,6 +768,9 @@ type InvoiceList = {
|
|
|
768
768
|
status: string;
|
|
769
769
|
total_amount: number;
|
|
770
770
|
};
|
|
771
|
+
type TaxRate = {
|
|
772
|
+
tax_rate: number;
|
|
773
|
+
};
|
|
771
774
|
|
|
772
775
|
type ClientBookingResponse = {
|
|
773
776
|
booking_id: string;
|
|
@@ -906,6 +909,85 @@ type GlobalStat = {
|
|
|
906
909
|
total_last_month: number;
|
|
907
910
|
trend: string;
|
|
908
911
|
};
|
|
912
|
+
type GlobalSalesStats = {
|
|
913
|
+
total_current_month: number;
|
|
914
|
+
total_last_month: number;
|
|
915
|
+
percentage_change: number;
|
|
916
|
+
trend: string;
|
|
917
|
+
};
|
|
918
|
+
type TotalSalesStats = {
|
|
919
|
+
total_sales: number;
|
|
920
|
+
percentage_change: number;
|
|
921
|
+
trend: string;
|
|
922
|
+
};
|
|
923
|
+
type BranchPerformance = {
|
|
924
|
+
label: string;
|
|
925
|
+
value: number;
|
|
926
|
+
percent_change: number;
|
|
927
|
+
status: string;
|
|
928
|
+
trend: string;
|
|
929
|
+
};
|
|
930
|
+
type KPICard = {
|
|
931
|
+
title: string;
|
|
932
|
+
value: number;
|
|
933
|
+
trend_percent: number;
|
|
934
|
+
trend_label: string;
|
|
935
|
+
is_positive: boolean;
|
|
936
|
+
target?: number;
|
|
937
|
+
};
|
|
938
|
+
type HeatmapPoint = {
|
|
939
|
+
day_of_week: number;
|
|
940
|
+
hour: number;
|
|
941
|
+
value: number;
|
|
942
|
+
};
|
|
943
|
+
type FinancialSummaryItem = {
|
|
944
|
+
category: string;
|
|
945
|
+
amount: number;
|
|
946
|
+
};
|
|
947
|
+
type FinancialSummary = {
|
|
948
|
+
items: FinancialSummaryItem[];
|
|
949
|
+
total: number;
|
|
950
|
+
};
|
|
951
|
+
type ClassCapacityStats = {
|
|
952
|
+
class_name: string;
|
|
953
|
+
current_count: number;
|
|
954
|
+
max_capacity: number;
|
|
955
|
+
ratio: string;
|
|
956
|
+
};
|
|
957
|
+
type ClassScheduleItem = {
|
|
958
|
+
class_id: string;
|
|
959
|
+
class_name: string;
|
|
960
|
+
instructor_name: string;
|
|
961
|
+
start_time: string;
|
|
962
|
+
end_time: string;
|
|
963
|
+
max_capacity: number;
|
|
964
|
+
};
|
|
965
|
+
type RecentAttendanceItem = {
|
|
966
|
+
user_name: string;
|
|
967
|
+
check_in_time: string;
|
|
968
|
+
service_name: string;
|
|
969
|
+
};
|
|
970
|
+
type BillingMatrixRow = {
|
|
971
|
+
concept: string;
|
|
972
|
+
values: Record<string, number>;
|
|
973
|
+
total: number;
|
|
974
|
+
};
|
|
975
|
+
type BillingMatrix = {
|
|
976
|
+
branches: string[];
|
|
977
|
+
rows: BillingMatrixRow[];
|
|
978
|
+
totals: Record<string, number>;
|
|
979
|
+
grand_total: number;
|
|
980
|
+
};
|
|
981
|
+
type StackedChartData = {
|
|
982
|
+
label: string;
|
|
983
|
+
new: number;
|
|
984
|
+
recurring: number;
|
|
985
|
+
};
|
|
986
|
+
type CohortRetention = {
|
|
987
|
+
cohort_month: string;
|
|
988
|
+
cohort_size: number;
|
|
989
|
+
retention: number[];
|
|
990
|
+
};
|
|
909
991
|
|
|
910
992
|
type BranchStaff = {
|
|
911
993
|
id: string;
|
|
@@ -1106,6 +1188,7 @@ declare class PackagesService {
|
|
|
1106
1188
|
declare class BillingService {
|
|
1107
1189
|
private client;
|
|
1108
1190
|
constructor(client: Client);
|
|
1191
|
+
getTaxRateByBranch(jwt: string, branchId: string): Promise<TaxRate>;
|
|
1109
1192
|
createInvoice(data: CreateInvoicePayload, jwt: string): Promise<CreateInvoiceResponse>;
|
|
1110
1193
|
getInvoiceByID(invoiceId: string, jwt: string): Promise<DataResponse<InvoiceDetail>>;
|
|
1111
1194
|
AddPaymentToInvoice(data: AddPaymentToInvoicePayload, jwt: string): Promise<AddPaymentToInvoiceResponse>;
|
|
@@ -1135,7 +1218,7 @@ declare class ReportService {
|
|
|
1135
1218
|
client: Client;
|
|
1136
1219
|
constructor(client: Client);
|
|
1137
1220
|
mostUsedServices(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
1138
|
-
salesByCategory(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
1221
|
+
salesByCategory(jwt: string, start: string, end: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1139
1222
|
salesByHour(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
1140
1223
|
salesByPaymentMethod(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
1141
1224
|
topInstructors(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
@@ -1143,6 +1226,36 @@ declare class ReportService {
|
|
|
1143
1226
|
globalStats(jwt: string): Promise<DataResponse<TopBranch[]>>;
|
|
1144
1227
|
totalActiveBranches(jwt: string): Promise<DataResponse<number>>;
|
|
1145
1228
|
totalClients(jwt: string): Promise<DataResponse<number>>;
|
|
1229
|
+
totalSales(jwt: string): Promise<DataResponse<TotalSalesStats>>;
|
|
1230
|
+
todayCheckIns(jwt: string, branchId?: string): Promise<DataResponse<number>>;
|
|
1231
|
+
currentOccupancy(jwt: string, branchId?: string): Promise<DataResponse<number>>;
|
|
1232
|
+
classCapacityRatio(jwt: string, classId: string): Promise<DataResponse<ClassCapacityStats>>;
|
|
1233
|
+
upcomingClassesToday(jwt: string, branchId?: string): Promise<DataResponse<ClassScheduleItem[]>>;
|
|
1234
|
+
recentCheckIns(jwt: string, branchId?: string): Promise<DataResponse<RecentAttendanceItem[]>>;
|
|
1235
|
+
newClientsKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1236
|
+
retentionRateKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1237
|
+
cohortAnalysis(jwt: string, branchId?: string): Promise<DataResponse<CohortRetention[]>>;
|
|
1238
|
+
newVsRecurringChart(jwt: string, branchId?: string): Promise<DataResponse<StackedChartData[]>>;
|
|
1239
|
+
instructorNextClass(jwt: string): Promise<DataResponse<string>>;
|
|
1240
|
+
instructorStudentCountKPI(jwt: string): Promise<DataResponse<KPICard>>;
|
|
1241
|
+
instructorMonthlyClassesCount(jwt: string): Promise<DataResponse<KPICard>>;
|
|
1242
|
+
instructorClassesToday(jwt: string): Promise<DataResponse<ClassScheduleItem[]>>;
|
|
1243
|
+
weeklyRevenueKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1244
|
+
monthlyRecurringRevenueKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1245
|
+
accountsReceivableKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1246
|
+
averageTicketKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1247
|
+
monthlyRevenueChart(jwt: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1248
|
+
billingByBranchMatrix(jwt: string, start?: string, end?: string): Promise<DataResponse<BillingMatrix>>;
|
|
1249
|
+
totalTransactionsKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1250
|
+
monthlyCashFlowChart(jwt: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1251
|
+
averageCLVKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1252
|
+
monthlySalesKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1253
|
+
activeMembersKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1254
|
+
occupancyKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1255
|
+
weeklySalesChart(jwt: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1256
|
+
activityHeatmap(jwt: string, branchId?: string): Promise<DataResponse<HeatmapPoint[]>>;
|
|
1257
|
+
classOccupancyChart(jwt: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1258
|
+
financialSummary(jwt: string, branchId?: string): Promise<DataResponse<FinancialSummary>>;
|
|
1146
1259
|
}
|
|
1147
1260
|
|
|
1148
1261
|
declare class StaffService {
|
|
@@ -1150,7 +1263,7 @@ declare class StaffService {
|
|
|
1150
1263
|
constructor(client: Client);
|
|
1151
1264
|
getStaffBranches(jwt: string): Promise<DataResponse<BranchStaff[]>>;
|
|
1152
1265
|
getManagedBranches(jwt: string): Promise<DataResponse<BranchStaff[]>>;
|
|
1153
|
-
getBranchstaff(branchId: string, jwt: string): Promise<
|
|
1266
|
+
getBranchstaff(branchId: string, jwt: string, { page, limit, sort, search, role, }: UserPaginationOptions): Promise<PaginatedTotal<Staff[]>>;
|
|
1154
1267
|
AssignBranchStaff(branchId: string, staffIds: string[], jwt: string): Promise<void>;
|
|
1155
1268
|
RemoveBranchStaff(branchId: string, staffId: string, jwt: string): Promise<void>;
|
|
1156
1269
|
}
|
|
@@ -1188,4 +1301,4 @@ declare class VitalFit {
|
|
|
1188
1301
|
version(): string;
|
|
1189
1302
|
}
|
|
1190
1303
|
|
|
1191
|
-
export { APIError, type AddPaymentToInvoicePayload, type AddPaymentToInvoiceResponse, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BookClassRequest, type BranchClassInfo, type BranchDetails, type BranchEquipmentInventory, type BranchInfo, type BranchInstructorInfo, type BranchPaymentMethod, type BranchPaymentMethodInfo, type BranchPaymentVisibility, type BranchScheduleResponse, type BranchServicePrice, type BranchStaff, type BranchStatusCount, type CancellationReason, type ChartData, type CheckIn, type CheckInResponse, type ClassBookingCount, type ClientBookingResponse, type ClientInvoice, type ClientMembership, type ClientMembershipDetail, type ClientMembershipItem, type ClientMembershipUser, type ClientProfile, type CreateBanner, type CreateBranchEquipment, type CreateBranchRequest, type CreateBranchServicePriceItem, type CreateCancellationReason, type CreateClassPayload, type CreateEquipment, type CreateInvoiceItem, type CreateInvoicePayload, type CreateInvoiceResponse, type CreateMembershipType, type CreatePackagePayload, type CreatePaymentMethod, type CreatePromotion, type CreateRole, type CreateService, type CreateServiceImage, type DataResponse, type Equipment, type EquipmentCategory, type EquipmentInfo, type EquipmentStatus, type GetUserResponse, type GlobalStat, type Instructor, type InstructorData, type InstructorDataList, type InstructorsSummary, type InvoiceDetail, type InvoiceItemDetail, type InvoiceList, type InvoicePaymentDetail, type LoginRequest, type LoginResponse, type MembershipType, type MembershipTypeDetail, type MembershipsSummary, type Oauth, type OperatingHour, type PackageDetail, type PackageItemDetail, type PackageItemInput, type PackageListItem, type PackagePublicItem, type PaginatedBranch, type PaginatedEquipmentRequest, type PaginatedInstructor, type PaginatedServiceRequest, type PaginatedTotal, type Pagination, type PaginationBranchRequest, type PaginationRequest, type PaginationWithStatus, type PagoMovilConfig, type PaymentConfiguration, type PaymentDetail, type PaymentMethod, type PaymentMethodTypes, type Permission, type Promotion, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type QrToken, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicePublicItem, type ServicesSummary, type SignUpRequest, type Specialty, type Staff, type TopBranch, type UUIDModel, type UpdateBanner, type UpdateBranchEquipmentDetails, type UpdateBranchPaymentMethod, type UpdateBranchRequest, type UpdateBranchServicePrice, type UpdateClassPayload, type UpdateClientMembershipRequest, type UpdateEquipment, type UpdateMembershipType, type UpdateOperatingHour, type UpdatePackagePayload, type UpdateServiceImageManual, type UpdateServiceManual, type UpdateUserRequest, type UpdateUserStaffRequest, type User, type UserApiResponse, UserGender, type UserPaginationOptions, VitalFit, type ZelleConfig, isAPIError, mainCurrencies };
|
|
1304
|
+
export { APIError, type AddPaymentToInvoicePayload, type AddPaymentToInvoiceResponse, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BillingMatrix, type BillingMatrixRow, type BookClassRequest, type BranchClassInfo, type BranchDetails, type BranchEquipmentInventory, type BranchInfo, type BranchInstructorInfo, type BranchPaymentMethod, type BranchPaymentMethodInfo, type BranchPaymentVisibility, type BranchPerformance, type BranchScheduleResponse, type BranchServicePrice, type BranchStaff, type BranchStatusCount, type CancellationReason, type ChartData, type CheckIn, type CheckInResponse, type ClassBookingCount, type ClassCapacityStats, type ClassScheduleItem, type ClientBookingResponse, type ClientInvoice, type ClientMembership, type ClientMembershipDetail, type ClientMembershipItem, type ClientMembershipUser, type ClientProfile, type CohortRetention, type CreateBanner, type CreateBranchEquipment, type CreateBranchRequest, type CreateBranchServicePriceItem, type CreateCancellationReason, type CreateClassPayload, type CreateEquipment, type CreateInvoiceItem, type CreateInvoicePayload, type CreateInvoiceResponse, type CreateMembershipType, type CreatePackagePayload, type CreatePaymentMethod, type CreatePromotion, type CreateRole, type CreateService, type CreateServiceImage, type DataResponse, type Equipment, type EquipmentCategory, type EquipmentInfo, type EquipmentStatus, type FinancialSummary, type FinancialSummaryItem, type GetUserResponse, type GlobalSalesStats, type GlobalStat, type HeatmapPoint, type Instructor, type InstructorData, type InstructorDataList, type InstructorsSummary, type InvoiceDetail, type InvoiceItemDetail, type InvoiceList, type InvoicePaymentDetail, type KPICard, type LoginRequest, type LoginResponse, type MembershipType, type MembershipTypeDetail, type MembershipsSummary, type Oauth, type OperatingHour, type PackageDetail, type PackageItemDetail, type PackageItemInput, type PackageListItem, type PackagePublicItem, type PaginatedBranch, type PaginatedEquipmentRequest, type PaginatedInstructor, type PaginatedServiceRequest, type PaginatedTotal, type Pagination, type PaginationBranchRequest, type PaginationRequest, type PaginationWithStatus, type PagoMovilConfig, type PaymentConfiguration, type PaymentDetail, type PaymentMethod, type PaymentMethodTypes, type Permission, type Promotion, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type QrToken, type RecentAttendanceItem, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicePublicItem, type ServicesSummary, type SignUpRequest, type Specialty, type StackedChartData, type Staff, type TaxRate, type TopBranch, type TotalSalesStats, type UUIDModel, type UpdateBanner, type UpdateBranchEquipmentDetails, type UpdateBranchPaymentMethod, type UpdateBranchRequest, type UpdateBranchServicePrice, type UpdateClassPayload, type UpdateClientMembershipRequest, type UpdateEquipment, type UpdateMembershipType, type UpdateOperatingHour, type UpdatePackagePayload, type UpdateServiceImageManual, type UpdateServiceManual, type UpdateUserRequest, type UpdateUserStaffRequest, type User, type UserApiResponse, UserGender, type UserPaginationOptions, VitalFit, type ZelleConfig, isAPIError, mainCurrencies };
|
package/dist/index.d.ts
CHANGED
|
@@ -768,6 +768,9 @@ type InvoiceList = {
|
|
|
768
768
|
status: string;
|
|
769
769
|
total_amount: number;
|
|
770
770
|
};
|
|
771
|
+
type TaxRate = {
|
|
772
|
+
tax_rate: number;
|
|
773
|
+
};
|
|
771
774
|
|
|
772
775
|
type ClientBookingResponse = {
|
|
773
776
|
booking_id: string;
|
|
@@ -906,6 +909,85 @@ type GlobalStat = {
|
|
|
906
909
|
total_last_month: number;
|
|
907
910
|
trend: string;
|
|
908
911
|
};
|
|
912
|
+
type GlobalSalesStats = {
|
|
913
|
+
total_current_month: number;
|
|
914
|
+
total_last_month: number;
|
|
915
|
+
percentage_change: number;
|
|
916
|
+
trend: string;
|
|
917
|
+
};
|
|
918
|
+
type TotalSalesStats = {
|
|
919
|
+
total_sales: number;
|
|
920
|
+
percentage_change: number;
|
|
921
|
+
trend: string;
|
|
922
|
+
};
|
|
923
|
+
type BranchPerformance = {
|
|
924
|
+
label: string;
|
|
925
|
+
value: number;
|
|
926
|
+
percent_change: number;
|
|
927
|
+
status: string;
|
|
928
|
+
trend: string;
|
|
929
|
+
};
|
|
930
|
+
type KPICard = {
|
|
931
|
+
title: string;
|
|
932
|
+
value: number;
|
|
933
|
+
trend_percent: number;
|
|
934
|
+
trend_label: string;
|
|
935
|
+
is_positive: boolean;
|
|
936
|
+
target?: number;
|
|
937
|
+
};
|
|
938
|
+
type HeatmapPoint = {
|
|
939
|
+
day_of_week: number;
|
|
940
|
+
hour: number;
|
|
941
|
+
value: number;
|
|
942
|
+
};
|
|
943
|
+
type FinancialSummaryItem = {
|
|
944
|
+
category: string;
|
|
945
|
+
amount: number;
|
|
946
|
+
};
|
|
947
|
+
type FinancialSummary = {
|
|
948
|
+
items: FinancialSummaryItem[];
|
|
949
|
+
total: number;
|
|
950
|
+
};
|
|
951
|
+
type ClassCapacityStats = {
|
|
952
|
+
class_name: string;
|
|
953
|
+
current_count: number;
|
|
954
|
+
max_capacity: number;
|
|
955
|
+
ratio: string;
|
|
956
|
+
};
|
|
957
|
+
type ClassScheduleItem = {
|
|
958
|
+
class_id: string;
|
|
959
|
+
class_name: string;
|
|
960
|
+
instructor_name: string;
|
|
961
|
+
start_time: string;
|
|
962
|
+
end_time: string;
|
|
963
|
+
max_capacity: number;
|
|
964
|
+
};
|
|
965
|
+
type RecentAttendanceItem = {
|
|
966
|
+
user_name: string;
|
|
967
|
+
check_in_time: string;
|
|
968
|
+
service_name: string;
|
|
969
|
+
};
|
|
970
|
+
type BillingMatrixRow = {
|
|
971
|
+
concept: string;
|
|
972
|
+
values: Record<string, number>;
|
|
973
|
+
total: number;
|
|
974
|
+
};
|
|
975
|
+
type BillingMatrix = {
|
|
976
|
+
branches: string[];
|
|
977
|
+
rows: BillingMatrixRow[];
|
|
978
|
+
totals: Record<string, number>;
|
|
979
|
+
grand_total: number;
|
|
980
|
+
};
|
|
981
|
+
type StackedChartData = {
|
|
982
|
+
label: string;
|
|
983
|
+
new: number;
|
|
984
|
+
recurring: number;
|
|
985
|
+
};
|
|
986
|
+
type CohortRetention = {
|
|
987
|
+
cohort_month: string;
|
|
988
|
+
cohort_size: number;
|
|
989
|
+
retention: number[];
|
|
990
|
+
};
|
|
909
991
|
|
|
910
992
|
type BranchStaff = {
|
|
911
993
|
id: string;
|
|
@@ -1106,6 +1188,7 @@ declare class PackagesService {
|
|
|
1106
1188
|
declare class BillingService {
|
|
1107
1189
|
private client;
|
|
1108
1190
|
constructor(client: Client);
|
|
1191
|
+
getTaxRateByBranch(jwt: string, branchId: string): Promise<TaxRate>;
|
|
1109
1192
|
createInvoice(data: CreateInvoicePayload, jwt: string): Promise<CreateInvoiceResponse>;
|
|
1110
1193
|
getInvoiceByID(invoiceId: string, jwt: string): Promise<DataResponse<InvoiceDetail>>;
|
|
1111
1194
|
AddPaymentToInvoice(data: AddPaymentToInvoicePayload, jwt: string): Promise<AddPaymentToInvoiceResponse>;
|
|
@@ -1135,7 +1218,7 @@ declare class ReportService {
|
|
|
1135
1218
|
client: Client;
|
|
1136
1219
|
constructor(client: Client);
|
|
1137
1220
|
mostUsedServices(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
1138
|
-
salesByCategory(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
1221
|
+
salesByCategory(jwt: string, start: string, end: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1139
1222
|
salesByHour(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
1140
1223
|
salesByPaymentMethod(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
1141
1224
|
topInstructors(jwt: string, start: string, end: string): Promise<DataResponse<ChartData[]>>;
|
|
@@ -1143,6 +1226,36 @@ declare class ReportService {
|
|
|
1143
1226
|
globalStats(jwt: string): Promise<DataResponse<TopBranch[]>>;
|
|
1144
1227
|
totalActiveBranches(jwt: string): Promise<DataResponse<number>>;
|
|
1145
1228
|
totalClients(jwt: string): Promise<DataResponse<number>>;
|
|
1229
|
+
totalSales(jwt: string): Promise<DataResponse<TotalSalesStats>>;
|
|
1230
|
+
todayCheckIns(jwt: string, branchId?: string): Promise<DataResponse<number>>;
|
|
1231
|
+
currentOccupancy(jwt: string, branchId?: string): Promise<DataResponse<number>>;
|
|
1232
|
+
classCapacityRatio(jwt: string, classId: string): Promise<DataResponse<ClassCapacityStats>>;
|
|
1233
|
+
upcomingClassesToday(jwt: string, branchId?: string): Promise<DataResponse<ClassScheduleItem[]>>;
|
|
1234
|
+
recentCheckIns(jwt: string, branchId?: string): Promise<DataResponse<RecentAttendanceItem[]>>;
|
|
1235
|
+
newClientsKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1236
|
+
retentionRateKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1237
|
+
cohortAnalysis(jwt: string, branchId?: string): Promise<DataResponse<CohortRetention[]>>;
|
|
1238
|
+
newVsRecurringChart(jwt: string, branchId?: string): Promise<DataResponse<StackedChartData[]>>;
|
|
1239
|
+
instructorNextClass(jwt: string): Promise<DataResponse<string>>;
|
|
1240
|
+
instructorStudentCountKPI(jwt: string): Promise<DataResponse<KPICard>>;
|
|
1241
|
+
instructorMonthlyClassesCount(jwt: string): Promise<DataResponse<KPICard>>;
|
|
1242
|
+
instructorClassesToday(jwt: string): Promise<DataResponse<ClassScheduleItem[]>>;
|
|
1243
|
+
weeklyRevenueKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1244
|
+
monthlyRecurringRevenueKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1245
|
+
accountsReceivableKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1246
|
+
averageTicketKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1247
|
+
monthlyRevenueChart(jwt: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1248
|
+
billingByBranchMatrix(jwt: string, start?: string, end?: string): Promise<DataResponse<BillingMatrix>>;
|
|
1249
|
+
totalTransactionsKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1250
|
+
monthlyCashFlowChart(jwt: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1251
|
+
averageCLVKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1252
|
+
monthlySalesKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1253
|
+
activeMembersKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1254
|
+
occupancyKPI(jwt: string, branchId?: string): Promise<DataResponse<KPICard>>;
|
|
1255
|
+
weeklySalesChart(jwt: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1256
|
+
activityHeatmap(jwt: string, branchId?: string): Promise<DataResponse<HeatmapPoint[]>>;
|
|
1257
|
+
classOccupancyChart(jwt: string, branchId?: string): Promise<DataResponse<ChartData[]>>;
|
|
1258
|
+
financialSummary(jwt: string, branchId?: string): Promise<DataResponse<FinancialSummary>>;
|
|
1146
1259
|
}
|
|
1147
1260
|
|
|
1148
1261
|
declare class StaffService {
|
|
@@ -1150,7 +1263,7 @@ declare class StaffService {
|
|
|
1150
1263
|
constructor(client: Client);
|
|
1151
1264
|
getStaffBranches(jwt: string): Promise<DataResponse<BranchStaff[]>>;
|
|
1152
1265
|
getManagedBranches(jwt: string): Promise<DataResponse<BranchStaff[]>>;
|
|
1153
|
-
getBranchstaff(branchId: string, jwt: string): Promise<
|
|
1266
|
+
getBranchstaff(branchId: string, jwt: string, { page, limit, sort, search, role, }: UserPaginationOptions): Promise<PaginatedTotal<Staff[]>>;
|
|
1154
1267
|
AssignBranchStaff(branchId: string, staffIds: string[], jwt: string): Promise<void>;
|
|
1155
1268
|
RemoveBranchStaff(branchId: string, staffId: string, jwt: string): Promise<void>;
|
|
1156
1269
|
}
|
|
@@ -1188,4 +1301,4 @@ declare class VitalFit {
|
|
|
1188
1301
|
version(): string;
|
|
1189
1302
|
}
|
|
1190
1303
|
|
|
1191
|
-
export { APIError, type AddPaymentToInvoicePayload, type AddPaymentToInvoiceResponse, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BookClassRequest, type BranchClassInfo, type BranchDetails, type BranchEquipmentInventory, type BranchInfo, type BranchInstructorInfo, type BranchPaymentMethod, type BranchPaymentMethodInfo, type BranchPaymentVisibility, type BranchScheduleResponse, type BranchServicePrice, type BranchStaff, type BranchStatusCount, type CancellationReason, type ChartData, type CheckIn, type CheckInResponse, type ClassBookingCount, type ClientBookingResponse, type ClientInvoice, type ClientMembership, type ClientMembershipDetail, type ClientMembershipItem, type ClientMembershipUser, type ClientProfile, type CreateBanner, type CreateBranchEquipment, type CreateBranchRequest, type CreateBranchServicePriceItem, type CreateCancellationReason, type CreateClassPayload, type CreateEquipment, type CreateInvoiceItem, type CreateInvoicePayload, type CreateInvoiceResponse, type CreateMembershipType, type CreatePackagePayload, type CreatePaymentMethod, type CreatePromotion, type CreateRole, type CreateService, type CreateServiceImage, type DataResponse, type Equipment, type EquipmentCategory, type EquipmentInfo, type EquipmentStatus, type GetUserResponse, type GlobalStat, type Instructor, type InstructorData, type InstructorDataList, type InstructorsSummary, type InvoiceDetail, type InvoiceItemDetail, type InvoiceList, type InvoicePaymentDetail, type LoginRequest, type LoginResponse, type MembershipType, type MembershipTypeDetail, type MembershipsSummary, type Oauth, type OperatingHour, type PackageDetail, type PackageItemDetail, type PackageItemInput, type PackageListItem, type PackagePublicItem, type PaginatedBranch, type PaginatedEquipmentRequest, type PaginatedInstructor, type PaginatedServiceRequest, type PaginatedTotal, type Pagination, type PaginationBranchRequest, type PaginationRequest, type PaginationWithStatus, type PagoMovilConfig, type PaymentConfiguration, type PaymentDetail, type PaymentMethod, type PaymentMethodTypes, type Permission, type Promotion, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type QrToken, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicePublicItem, type ServicesSummary, type SignUpRequest, type Specialty, type Staff, type TopBranch, type UUIDModel, type UpdateBanner, type UpdateBranchEquipmentDetails, type UpdateBranchPaymentMethod, type UpdateBranchRequest, type UpdateBranchServicePrice, type UpdateClassPayload, type UpdateClientMembershipRequest, type UpdateEquipment, type UpdateMembershipType, type UpdateOperatingHour, type UpdatePackagePayload, type UpdateServiceImageManual, type UpdateServiceManual, type UpdateUserRequest, type UpdateUserStaffRequest, type User, type UserApiResponse, UserGender, type UserPaginationOptions, VitalFit, type ZelleConfig, isAPIError, mainCurrencies };
|
|
1304
|
+
export { APIError, type AddPaymentToInvoicePayload, type AddPaymentToInvoiceResponse, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BillingMatrix, type BillingMatrixRow, type BookClassRequest, type BranchClassInfo, type BranchDetails, type BranchEquipmentInventory, type BranchInfo, type BranchInstructorInfo, type BranchPaymentMethod, type BranchPaymentMethodInfo, type BranchPaymentVisibility, type BranchPerformance, type BranchScheduleResponse, type BranchServicePrice, type BranchStaff, type BranchStatusCount, type CancellationReason, type ChartData, type CheckIn, type CheckInResponse, type ClassBookingCount, type ClassCapacityStats, type ClassScheduleItem, type ClientBookingResponse, type ClientInvoice, type ClientMembership, type ClientMembershipDetail, type ClientMembershipItem, type ClientMembershipUser, type ClientProfile, type CohortRetention, type CreateBanner, type CreateBranchEquipment, type CreateBranchRequest, type CreateBranchServicePriceItem, type CreateCancellationReason, type CreateClassPayload, type CreateEquipment, type CreateInvoiceItem, type CreateInvoicePayload, type CreateInvoiceResponse, type CreateMembershipType, type CreatePackagePayload, type CreatePaymentMethod, type CreatePromotion, type CreateRole, type CreateService, type CreateServiceImage, type DataResponse, type Equipment, type EquipmentCategory, type EquipmentInfo, type EquipmentStatus, type FinancialSummary, type FinancialSummaryItem, type GetUserResponse, type GlobalSalesStats, type GlobalStat, type HeatmapPoint, type Instructor, type InstructorData, type InstructorDataList, type InstructorsSummary, type InvoiceDetail, type InvoiceItemDetail, type InvoiceList, type InvoicePaymentDetail, type KPICard, type LoginRequest, type LoginResponse, type MembershipType, type MembershipTypeDetail, type MembershipsSummary, type Oauth, type OperatingHour, type PackageDetail, type PackageItemDetail, type PackageItemInput, type PackageListItem, type PackagePublicItem, type PaginatedBranch, type PaginatedEquipmentRequest, type PaginatedInstructor, type PaginatedServiceRequest, type PaginatedTotal, type Pagination, type PaginationBranchRequest, type PaginationRequest, type PaginationWithStatus, type PagoMovilConfig, type PaymentConfiguration, type PaymentDetail, type PaymentMethod, type PaymentMethodTypes, type Permission, type Promotion, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type QrToken, type RecentAttendanceItem, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicePublicItem, type ServicesSummary, type SignUpRequest, type Specialty, type StackedChartData, type Staff, type TaxRate, type TopBranch, type TotalSalesStats, type UUIDModel, type UpdateBanner, type UpdateBranchEquipmentDetails, type UpdateBranchPaymentMethod, type UpdateBranchRequest, type UpdateBranchServicePrice, type UpdateClassPayload, type UpdateClientMembershipRequest, type UpdateEquipment, type UpdateMembershipType, type UpdateOperatingHour, type UpdatePackagePayload, type UpdateServiceImageManual, type UpdateServiceManual, type UpdateUserRequest, type UpdateUserStaffRequest, type User, type UserApiResponse, UserGender, type UserPaginationOptions, VitalFit, type ZelleConfig, isAPIError, mainCurrencies };
|