@vitalfit/sdk 0.3.3 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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,26 @@ type CheckInResponse = {
947
951
  message: string;
948
952
  service_name: string;
949
953
  };
954
+ type ServiceUsage = {
955
+ attendance_id: string;
956
+ service_id: string;
957
+ service_name: string;
958
+ branch_id?: string;
959
+ branch_name?: string;
960
+ check_in_time: string;
961
+ status: string;
962
+ };
963
+ type AttendanceHistory = {
964
+ attendance_id: string;
965
+ user_id: string;
966
+ user_name: string;
967
+ service_id: string;
968
+ service_name: string;
969
+ class_name?: string;
970
+ class_time?: string;
971
+ check_in_time: string;
972
+ status: string;
973
+ };
950
974
 
951
975
  type ChartData = {
952
976
  hour?: number;
@@ -1095,6 +1119,23 @@ type AuditLog = {
1095
1119
  user_id: string;
1096
1120
  };
1097
1121
 
1122
+ type UnreadCountResponse = {
1123
+ count: number;
1124
+ };
1125
+ type BroadcastRequest = {
1126
+ title: string;
1127
+ message: string;
1128
+ };
1129
+ type NotificationResponse = {
1130
+ id: string;
1131
+ title: string;
1132
+ message: string;
1133
+ type: string;
1134
+ is_read: boolean;
1135
+ metadata: Record<string, any>;
1136
+ created_at: string;
1137
+ };
1138
+
1098
1139
  declare class AuthService {
1099
1140
  private client;
1100
1141
  constructor(client: Client);
@@ -1207,6 +1248,7 @@ declare class MarketingService {
1207
1248
  getPromotionByID(promotionId: string, jwt: string): Promise<DataResponse<Promotion>>;
1208
1249
  updatePromotion(promotionId: string, promotionData: CreatePromotion, jwt: string): Promise<void>;
1209
1250
  deletePromotion(promotionId: string, jwt: string): Promise<void>;
1251
+ getRandomBanner(): Promise<DataResponse<RandomBanner>>;
1210
1252
  }
1211
1253
 
1212
1254
  declare class MembershipService {
@@ -1324,6 +1366,8 @@ declare class AccessService {
1324
1366
  private client;
1325
1367
  constructor(client: Client);
1326
1368
  checkIn(jwt: string, data: CheckIn): Promise<CheckInResponse>;
1369
+ getClientAttendanceHistory(jwt: string, userId: string, start?: string, end?: string, { page, limit, sort }?: PaginationRequest): Promise<PaginatedTotal<AttendanceHistory[]>>;
1370
+ getClientServiceUsage(jwt: string, userId: string, start?: string, end?: string, { page, limit, sort }?: PaginationRequest): Promise<PaginatedTotal<ServiceUsage[]>>;
1327
1371
  }
1328
1372
 
1329
1373
  declare class ReportService {
@@ -1406,6 +1450,16 @@ declare class AuditService {
1406
1450
  getUserLogs(jwt: string, userId: string, { page, limit, sort, search }: PaginationRequest): Promise<PaginatedTotal<AuditLog[]>>;
1407
1451
  }
1408
1452
 
1453
+ declare class NotificationService {
1454
+ private client;
1455
+ constructor(client: Client);
1456
+ getNotifications(jwt: string): Promise<DataResponse<NotificationResponse[]>>;
1457
+ getUnreadCount(jwt: string): Promise<UnreadCountResponse>;
1458
+ markAsRead(notificationId: string, jwt: string): Promise<void>;
1459
+ markAllAsRead(jwt: string): Promise<void>;
1460
+ sendBroadcast(data: BroadcastRequest, jwt: string): Promise<void>;
1461
+ }
1462
+
1409
1463
  declare class APIError extends Error {
1410
1464
  status: number;
1411
1465
  messages: string[];
@@ -1437,9 +1491,10 @@ declare class VitalFit {
1437
1491
  wishList: WishListService;
1438
1492
  policy: PolicyService;
1439
1493
  audit: AuditService;
1494
+ notification: NotificationService;
1440
1495
  constructor(isDevMode: boolean, origin?: string);
1441
1496
  static getInstance(isDevMode?: boolean): VitalFit;
1442
1497
  version(): string;
1443
1498
  }
1444
1499
 
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 };
1500
+ 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,26 @@ type CheckInResponse = {
947
951
  message: string;
948
952
  service_name: string;
949
953
  };
954
+ type ServiceUsage = {
955
+ attendance_id: string;
956
+ service_id: string;
957
+ service_name: string;
958
+ branch_id?: string;
959
+ branch_name?: string;
960
+ check_in_time: string;
961
+ status: string;
962
+ };
963
+ type AttendanceHistory = {
964
+ attendance_id: string;
965
+ user_id: string;
966
+ user_name: string;
967
+ service_id: string;
968
+ service_name: string;
969
+ class_name?: string;
970
+ class_time?: string;
971
+ check_in_time: string;
972
+ status: string;
973
+ };
950
974
 
951
975
  type ChartData = {
952
976
  hour?: number;
@@ -1095,6 +1119,23 @@ type AuditLog = {
1095
1119
  user_id: string;
1096
1120
  };
1097
1121
 
1122
+ type UnreadCountResponse = {
1123
+ count: number;
1124
+ };
1125
+ type BroadcastRequest = {
1126
+ title: string;
1127
+ message: string;
1128
+ };
1129
+ type NotificationResponse = {
1130
+ id: string;
1131
+ title: string;
1132
+ message: string;
1133
+ type: string;
1134
+ is_read: boolean;
1135
+ metadata: Record<string, any>;
1136
+ created_at: string;
1137
+ };
1138
+
1098
1139
  declare class AuthService {
1099
1140
  private client;
1100
1141
  constructor(client: Client);
@@ -1207,6 +1248,7 @@ declare class MarketingService {
1207
1248
  getPromotionByID(promotionId: string, jwt: string): Promise<DataResponse<Promotion>>;
1208
1249
  updatePromotion(promotionId: string, promotionData: CreatePromotion, jwt: string): Promise<void>;
1209
1250
  deletePromotion(promotionId: string, jwt: string): Promise<void>;
1251
+ getRandomBanner(): Promise<DataResponse<RandomBanner>>;
1210
1252
  }
1211
1253
 
1212
1254
  declare class MembershipService {
@@ -1324,6 +1366,8 @@ declare class AccessService {
1324
1366
  private client;
1325
1367
  constructor(client: Client);
1326
1368
  checkIn(jwt: string, data: CheckIn): Promise<CheckInResponse>;
1369
+ getClientAttendanceHistory(jwt: string, userId: string, start?: string, end?: string, { page, limit, sort }?: PaginationRequest): Promise<PaginatedTotal<AttendanceHistory[]>>;
1370
+ getClientServiceUsage(jwt: string, userId: string, start?: string, end?: string, { page, limit, sort }?: PaginationRequest): Promise<PaginatedTotal<ServiceUsage[]>>;
1327
1371
  }
1328
1372
 
1329
1373
  declare class ReportService {
@@ -1406,6 +1450,16 @@ declare class AuditService {
1406
1450
  getUserLogs(jwt: string, userId: string, { page, limit, sort, search }: PaginationRequest): Promise<PaginatedTotal<AuditLog[]>>;
1407
1451
  }
1408
1452
 
1453
+ declare class NotificationService {
1454
+ private client;
1455
+ constructor(client: Client);
1456
+ getNotifications(jwt: string): Promise<DataResponse<NotificationResponse[]>>;
1457
+ getUnreadCount(jwt: string): Promise<UnreadCountResponse>;
1458
+ markAsRead(notificationId: string, jwt: string): Promise<void>;
1459
+ markAllAsRead(jwt: string): Promise<void>;
1460
+ sendBroadcast(data: BroadcastRequest, jwt: string): Promise<void>;
1461
+ }
1462
+
1409
1463
  declare class APIError extends Error {
1410
1464
  status: number;
1411
1465
  messages: string[];
@@ -1437,9 +1491,10 @@ declare class VitalFit {
1437
1491
  wishList: WishListService;
1438
1492
  policy: PolicyService;
1439
1493
  audit: AuditService;
1494
+ notification: NotificationService;
1440
1495
  constructor(isDevMode: boolean, origin?: string);
1441
1496
  static getInstance(isDevMode?: boolean): VitalFit;
1442
1497
  version(): string;
1443
1498
  }
1444
1499
 
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 };
1500
+ 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
@@ -2252,6 +2289,52 @@ var AuditService = class {
2252
2289
  }
2253
2290
  };
2254
2291
 
2292
+ // src/services/notifications.ts
2293
+ var NotificationService = class {
2294
+ client;
2295
+ constructor(client) {
2296
+ this.client = client;
2297
+ this.getNotifications = this.getNotifications.bind(this);
2298
+ this.getUnreadCount = this.getUnreadCount.bind(this);
2299
+ this.markAsRead = this.markAsRead.bind(this);
2300
+ this.markAllAsRead = this.markAllAsRead.bind(this);
2301
+ this.sendBroadcast = this.sendBroadcast.bind(this);
2302
+ }
2303
+ async getNotifications(jwt) {
2304
+ const response = await this.client.get({
2305
+ url: "/notifications",
2306
+ jwt
2307
+ });
2308
+ return response;
2309
+ }
2310
+ async getUnreadCount(jwt) {
2311
+ const response = await this.client.get({
2312
+ url: "/notifications/unread-count",
2313
+ jwt
2314
+ });
2315
+ return response;
2316
+ }
2317
+ async markAsRead(notificationId, jwt) {
2318
+ await this.client.patch({
2319
+ url: `/notifications/${notificationId}/read`,
2320
+ jwt
2321
+ });
2322
+ }
2323
+ async markAllAsRead(jwt) {
2324
+ await this.client.patch({
2325
+ url: "/notifications/read-all",
2326
+ jwt
2327
+ });
2328
+ }
2329
+ async sendBroadcast(data, jwt) {
2330
+ await this.client.post({
2331
+ url: "/notifications/broadcast",
2332
+ jwt,
2333
+ data
2334
+ });
2335
+ }
2336
+ };
2337
+
2255
2338
  // src/types/auth.ts
2256
2339
  var UserGender = /* @__PURE__ */ ((UserGender2) => {
2257
2340
  UserGender2["male"] = "male";
@@ -2377,6 +2460,7 @@ var VitalFit = class _VitalFit {
2377
2460
  wishList;
2378
2461
  policy;
2379
2462
  audit;
2463
+ notification;
2380
2464
  constructor(isDevMode, origin) {
2381
2465
  this.client = new Client(isDevMode, origin);
2382
2466
  this.auth = new AuthService(this.client);
@@ -2400,6 +2484,7 @@ var VitalFit = class _VitalFit {
2400
2484
  this.wishList = new WishListService(this.client);
2401
2485
  this.policy = new PolicyService(this.client);
2402
2486
  this.audit = new AuditService(this.client);
2487
+ this.notification = new NotificationService(this.client);
2403
2488
  }
2404
2489
  static getInstance(isDevMode = false) {
2405
2490
  if (!_VitalFit.instance) {
@@ -2408,7 +2493,7 @@ var VitalFit = class _VitalFit {
2408
2493
  return _VitalFit.instance;
2409
2494
  }
2410
2495
  version() {
2411
- return "0.3.3";
2496
+ return "0.3.6";
2412
2497
  }
2413
2498
  };
2414
2499
  export {