@vitalfit/sdk 0.3.3 → 0.3.4
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 +38 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +38 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -426,6 +426,10 @@ type Banner = {
|
|
|
426
426
|
link_url?: string;
|
|
427
427
|
name?: string;
|
|
428
428
|
};
|
|
429
|
+
type RandomBanner = {
|
|
430
|
+
image_url: string;
|
|
431
|
+
service_id: string;
|
|
432
|
+
};
|
|
429
433
|
type Promotion = {
|
|
430
434
|
code: string;
|
|
431
435
|
created_at: string;
|
|
@@ -947,6 +951,22 @@ type CheckInResponse = {
|
|
|
947
951
|
message: string;
|
|
948
952
|
service_name: string;
|
|
949
953
|
};
|
|
954
|
+
type AttendanceHistory = {
|
|
955
|
+
attendance_id: string;
|
|
956
|
+
user_id: string;
|
|
957
|
+
user_name: string;
|
|
958
|
+
service_id: string;
|
|
959
|
+
service_name: string;
|
|
960
|
+
check_in_time: string;
|
|
961
|
+
status: string;
|
|
962
|
+
};
|
|
963
|
+
type ServiceUsage = {
|
|
964
|
+
attendance_id: string;
|
|
965
|
+
service_id: string;
|
|
966
|
+
service_name: string;
|
|
967
|
+
check_in_time: string;
|
|
968
|
+
status: string;
|
|
969
|
+
};
|
|
950
970
|
|
|
951
971
|
type ChartData = {
|
|
952
972
|
hour?: number;
|
|
@@ -1095,6 +1115,23 @@ type AuditLog = {
|
|
|
1095
1115
|
user_id: string;
|
|
1096
1116
|
};
|
|
1097
1117
|
|
|
1118
|
+
type UnreadCountResponse = {
|
|
1119
|
+
count: number;
|
|
1120
|
+
};
|
|
1121
|
+
type BroadcastRequest = {
|
|
1122
|
+
title: string;
|
|
1123
|
+
message: string;
|
|
1124
|
+
};
|
|
1125
|
+
type NotificationResponse = {
|
|
1126
|
+
id: string;
|
|
1127
|
+
title: string;
|
|
1128
|
+
message: string;
|
|
1129
|
+
type: string;
|
|
1130
|
+
is_read: boolean;
|
|
1131
|
+
metadata: Record<string, any>;
|
|
1132
|
+
created_at: string;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1098
1135
|
declare class AuthService {
|
|
1099
1136
|
private client;
|
|
1100
1137
|
constructor(client: Client);
|
|
@@ -1207,6 +1244,7 @@ declare class MarketingService {
|
|
|
1207
1244
|
getPromotionByID(promotionId: string, jwt: string): Promise<DataResponse<Promotion>>;
|
|
1208
1245
|
updatePromotion(promotionId: string, promotionData: CreatePromotion, jwt: string): Promise<void>;
|
|
1209
1246
|
deletePromotion(promotionId: string, jwt: string): Promise<void>;
|
|
1247
|
+
getRandomBanner(): Promise<DataResponse<RandomBanner>>;
|
|
1210
1248
|
}
|
|
1211
1249
|
|
|
1212
1250
|
declare class MembershipService {
|
|
@@ -1324,6 +1362,8 @@ declare class AccessService {
|
|
|
1324
1362
|
private client;
|
|
1325
1363
|
constructor(client: Client);
|
|
1326
1364
|
checkIn(jwt: string, data: CheckIn): Promise<CheckInResponse>;
|
|
1365
|
+
getClientAttendanceHistory(jwt: string, userId: string, start?: string, end?: string, { page, limit, sort }?: PaginationRequest): Promise<PaginatedTotal<AttendanceHistory[]>>;
|
|
1366
|
+
getClientServiceUsage(jwt: string, userId: string, start?: string, end?: string, { page, limit, sort }?: PaginationRequest): Promise<PaginatedTotal<ServiceUsage[]>>;
|
|
1327
1367
|
}
|
|
1328
1368
|
|
|
1329
1369
|
declare class ReportService {
|
|
@@ -1442,4 +1482,4 @@ declare class VitalFit {
|
|
|
1442
1482
|
version(): string;
|
|
1443
1483
|
}
|
|
1444
1484
|
|
|
1445
|
-
export { APIError, type AddPaymentToInvoicePayload, type AddPaymentToInvoiceResponse, type AddToWishlistRequest, type AuditLog, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BillingMatrix, type BillingMatrixRow, type BookClassRequest, type BookingParticipant, 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 CreateFiscalDocumentRequest, 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 ExchangeRateResponse, type FinancialSummary, type FinancialSummaryItem, type FiscalDocument, 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 MedicalProfile, 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 Policy, type Promotion, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type QrToken, type RecentAttendanceItem, type RenewTokenRequest, 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, type UserSession, VitalFit, type WishlistItemResponse, type ZelleConfig, isAPIError, mainCurrencies, type updatePolicy };
|
|
1485
|
+
export { APIError, type AddPaymentToInvoicePayload, type AddPaymentToInvoiceResponse, type AddToWishlistRequest, type AttendanceHistory, type AuditLog, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BillingMatrix, type BillingMatrixRow, type BookClassRequest, type BookingParticipant, 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 BroadcastRequest, 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 CreateFiscalDocumentRequest, 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 ExchangeRateResponse, type FinancialSummary, type FinancialSummaryItem, type FiscalDocument, 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 MedicalProfile, type MembershipType, type MembershipTypeDetail, type MembershipsSummary, type NotificationResponse, 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 Policy, type Promotion, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type QrToken, type RandomBanner, type RecentAttendanceItem, type RenewTokenRequest, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicePublicItem, type ServiceUsage, type ServicesSummary, type SignUpRequest, type Specialty, type StackedChartData, type Staff, type TaxRate, type TopBranch, type TotalSalesStats, type UUIDModel, type UnreadCountResponse, 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, type UserSession, VitalFit, type WishlistItemResponse, type ZelleConfig, isAPIError, mainCurrencies, type updatePolicy };
|
package/dist/index.d.ts
CHANGED
|
@@ -426,6 +426,10 @@ type Banner = {
|
|
|
426
426
|
link_url?: string;
|
|
427
427
|
name?: string;
|
|
428
428
|
};
|
|
429
|
+
type RandomBanner = {
|
|
430
|
+
image_url: string;
|
|
431
|
+
service_id: string;
|
|
432
|
+
};
|
|
429
433
|
type Promotion = {
|
|
430
434
|
code: string;
|
|
431
435
|
created_at: string;
|
|
@@ -947,6 +951,22 @@ type CheckInResponse = {
|
|
|
947
951
|
message: string;
|
|
948
952
|
service_name: string;
|
|
949
953
|
};
|
|
954
|
+
type AttendanceHistory = {
|
|
955
|
+
attendance_id: string;
|
|
956
|
+
user_id: string;
|
|
957
|
+
user_name: string;
|
|
958
|
+
service_id: string;
|
|
959
|
+
service_name: string;
|
|
960
|
+
check_in_time: string;
|
|
961
|
+
status: string;
|
|
962
|
+
};
|
|
963
|
+
type ServiceUsage = {
|
|
964
|
+
attendance_id: string;
|
|
965
|
+
service_id: string;
|
|
966
|
+
service_name: string;
|
|
967
|
+
check_in_time: string;
|
|
968
|
+
status: string;
|
|
969
|
+
};
|
|
950
970
|
|
|
951
971
|
type ChartData = {
|
|
952
972
|
hour?: number;
|
|
@@ -1095,6 +1115,23 @@ type AuditLog = {
|
|
|
1095
1115
|
user_id: string;
|
|
1096
1116
|
};
|
|
1097
1117
|
|
|
1118
|
+
type UnreadCountResponse = {
|
|
1119
|
+
count: number;
|
|
1120
|
+
};
|
|
1121
|
+
type BroadcastRequest = {
|
|
1122
|
+
title: string;
|
|
1123
|
+
message: string;
|
|
1124
|
+
};
|
|
1125
|
+
type NotificationResponse = {
|
|
1126
|
+
id: string;
|
|
1127
|
+
title: string;
|
|
1128
|
+
message: string;
|
|
1129
|
+
type: string;
|
|
1130
|
+
is_read: boolean;
|
|
1131
|
+
metadata: Record<string, any>;
|
|
1132
|
+
created_at: string;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1098
1135
|
declare class AuthService {
|
|
1099
1136
|
private client;
|
|
1100
1137
|
constructor(client: Client);
|
|
@@ -1207,6 +1244,7 @@ declare class MarketingService {
|
|
|
1207
1244
|
getPromotionByID(promotionId: string, jwt: string): Promise<DataResponse<Promotion>>;
|
|
1208
1245
|
updatePromotion(promotionId: string, promotionData: CreatePromotion, jwt: string): Promise<void>;
|
|
1209
1246
|
deletePromotion(promotionId: string, jwt: string): Promise<void>;
|
|
1247
|
+
getRandomBanner(): Promise<DataResponse<RandomBanner>>;
|
|
1210
1248
|
}
|
|
1211
1249
|
|
|
1212
1250
|
declare class MembershipService {
|
|
@@ -1324,6 +1362,8 @@ declare class AccessService {
|
|
|
1324
1362
|
private client;
|
|
1325
1363
|
constructor(client: Client);
|
|
1326
1364
|
checkIn(jwt: string, data: CheckIn): Promise<CheckInResponse>;
|
|
1365
|
+
getClientAttendanceHistory(jwt: string, userId: string, start?: string, end?: string, { page, limit, sort }?: PaginationRequest): Promise<PaginatedTotal<AttendanceHistory[]>>;
|
|
1366
|
+
getClientServiceUsage(jwt: string, userId: string, start?: string, end?: string, { page, limit, sort }?: PaginationRequest): Promise<PaginatedTotal<ServiceUsage[]>>;
|
|
1327
1367
|
}
|
|
1328
1368
|
|
|
1329
1369
|
declare class ReportService {
|
|
@@ -1442,4 +1482,4 @@ declare class VitalFit {
|
|
|
1442
1482
|
version(): string;
|
|
1443
1483
|
}
|
|
1444
1484
|
|
|
1445
|
-
export { APIError, type AddPaymentToInvoicePayload, type AddPaymentToInvoiceResponse, type AddToWishlistRequest, type AuditLog, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BillingMatrix, type BillingMatrixRow, type BookClassRequest, type BookingParticipant, 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 CreateFiscalDocumentRequest, 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 ExchangeRateResponse, type FinancialSummary, type FinancialSummaryItem, type FiscalDocument, 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 MedicalProfile, 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 Policy, type Promotion, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type QrToken, type RecentAttendanceItem, type RenewTokenRequest, 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, type UserSession, VitalFit, type WishlistItemResponse, type ZelleConfig, isAPIError, mainCurrencies, type updatePolicy };
|
|
1485
|
+
export { APIError, type AddPaymentToInvoicePayload, type AddPaymentToInvoiceResponse, type AddToWishlistRequest, type AttendanceHistory, type AuditLog, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BillingMatrix, type BillingMatrixRow, type BookClassRequest, type BookingParticipant, 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 BroadcastRequest, 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 CreateFiscalDocumentRequest, 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 ExchangeRateResponse, type FinancialSummary, type FinancialSummaryItem, type FiscalDocument, 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 MedicalProfile, type MembershipType, type MembershipTypeDetail, type MembershipsSummary, type NotificationResponse, 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 Policy, type Promotion, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type QrToken, type RandomBanner, type RecentAttendanceItem, type RenewTokenRequest, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicePublicItem, type ServiceUsage, type ServicesSummary, type SignUpRequest, type Specialty, type StackedChartData, type Staff, type TaxRate, type TopBranch, type TotalSalesStats, type UUIDModel, type UnreadCountResponse, 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, type UserSession, VitalFit, type WishlistItemResponse, type ZelleConfig, isAPIError, mainCurrencies, type updatePolicy };
|
package/dist/index.js
CHANGED
|
@@ -831,6 +831,7 @@ var MarketingService = class {
|
|
|
831
831
|
this.getPromotionByID = this.getPromotionByID.bind(this);
|
|
832
832
|
this.updatePromotion = this.updatePromotion.bind(this);
|
|
833
833
|
this.deletePromotion = this.deletePromotion.bind(this);
|
|
834
|
+
this.getRandomBanner = this.getRandomBanner.bind(this);
|
|
834
835
|
}
|
|
835
836
|
async createBanners(BannerData, jwt) {
|
|
836
837
|
await this.client.post({
|
|
@@ -906,6 +907,12 @@ var MarketingService = class {
|
|
|
906
907
|
jwt
|
|
907
908
|
});
|
|
908
909
|
}
|
|
910
|
+
async getRandomBanner() {
|
|
911
|
+
const response = await this.client.get({
|
|
912
|
+
url: "/marketing/banners/random"
|
|
913
|
+
});
|
|
914
|
+
return response;
|
|
915
|
+
}
|
|
909
916
|
};
|
|
910
917
|
|
|
911
918
|
// src/services/memberships.ts
|
|
@@ -1674,6 +1681,8 @@ var AccessService = class {
|
|
|
1674
1681
|
constructor(client) {
|
|
1675
1682
|
this.client = client;
|
|
1676
1683
|
this.checkIn = this.checkIn.bind(this);
|
|
1684
|
+
this.getClientAttendanceHistory = this.getClientAttendanceHistory.bind(this);
|
|
1685
|
+
this.getClientServiceUsage = this.getClientServiceUsage.bind(this);
|
|
1677
1686
|
}
|
|
1678
1687
|
async checkIn(jwt, data) {
|
|
1679
1688
|
const response = await this.client.post({
|
|
@@ -1683,6 +1692,34 @@ var AccessService = class {
|
|
|
1683
1692
|
});
|
|
1684
1693
|
return response;
|
|
1685
1694
|
}
|
|
1695
|
+
async getClientAttendanceHistory(jwt, userId, start, end, { page = 1, limit = 10, sort = "desc" } = {}) {
|
|
1696
|
+
const response = await this.client.get({
|
|
1697
|
+
url: `/clients/${userId}/attendance-history`,
|
|
1698
|
+
jwt,
|
|
1699
|
+
params: {
|
|
1700
|
+
start_date: start,
|
|
1701
|
+
end_date: end,
|
|
1702
|
+
page,
|
|
1703
|
+
limit,
|
|
1704
|
+
sort
|
|
1705
|
+
}
|
|
1706
|
+
});
|
|
1707
|
+
return response;
|
|
1708
|
+
}
|
|
1709
|
+
async getClientServiceUsage(jwt, userId, start, end, { page = 1, limit = 10, sort = "desc" } = {}) {
|
|
1710
|
+
const response = await this.client.get({
|
|
1711
|
+
url: `/clients/${userId}/service-usage`,
|
|
1712
|
+
jwt,
|
|
1713
|
+
params: {
|
|
1714
|
+
start_date: start,
|
|
1715
|
+
end_date: end,
|
|
1716
|
+
page,
|
|
1717
|
+
limit,
|
|
1718
|
+
sort
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1721
|
+
return response;
|
|
1722
|
+
}
|
|
1686
1723
|
};
|
|
1687
1724
|
|
|
1688
1725
|
// src/services/reports.ts
|
|
@@ -2408,7 +2445,7 @@ var VitalFit = class _VitalFit {
|
|
|
2408
2445
|
return _VitalFit.instance;
|
|
2409
2446
|
}
|
|
2410
2447
|
version() {
|
|
2411
|
-
return "0.3.
|
|
2448
|
+
return "0.3.4";
|
|
2412
2449
|
}
|
|
2413
2450
|
};
|
|
2414
2451
|
export {
|