@vitalfit/sdk 0.0.68 → 0.0.69

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
@@ -521,6 +521,20 @@ type ServicesSummary = {
521
521
  actives: number;
522
522
  featured: number;
523
523
  };
524
+ type ServicePublicItem = ServiceFullDetail & {
525
+ lowest_price_member: number;
526
+ lowest_price_no_member: number;
527
+ base_currency: string;
528
+ ref_lowest_price_member: string;
529
+ ref_lowest_price_no_member: string;
530
+ ref_base_currency: string;
531
+ };
532
+ type PublicPaginationService = PaginationRequest & {
533
+ currency: string;
534
+ category: string;
535
+ price: number;
536
+ sortby: string;
537
+ };
524
538
 
525
539
  type EquipmentCategory = 'Cardio' | 'Strength' | 'FreeWeight' | 'Functional' | 'Accessory';
526
540
  type Equipment = {
@@ -649,6 +663,14 @@ type UpdatePackagePayload = {
649
663
  price: number;
650
664
  startAt: string;
651
665
  };
666
+ type PackagePublicItem = Omit<PackageListItem, 'createdAt' | 'updatedAt'> & {
667
+ base_currency: string;
668
+ ref_price: string;
669
+ ref_currency: string;
670
+ };
671
+ type PublicPaginatedPackage = PaginationRequest & {
672
+ currency: string;
673
+ };
652
674
 
653
675
  declare const mainCurrencies: {
654
676
  code: string;
@@ -682,6 +704,85 @@ type BookClassRequest = {
682
704
  user_id: string;
683
705
  };
684
706
 
707
+ type CreateInvoiceItem = {
708
+ item_id: string;
709
+ item_type: 'membership' | 'service' | 'package' | string;
710
+ quantity: number;
711
+ };
712
+ type CreateInvoicePayload = {
713
+ branch_id: string;
714
+ items: CreateInvoiceItem[];
715
+ user_id: string | null;
716
+ };
717
+ type CreateInvoiceResponse = {
718
+ invoice_id: string;
719
+ message: string;
720
+ };
721
+ type AddPaymentToInvoicePayload = {
722
+ amount_paid: number;
723
+ currency_paid: string;
724
+ invoice_id: string;
725
+ payment_method_id: string;
726
+ receipt_url: string;
727
+ transaction_id: string;
728
+ };
729
+ type AddPaymentToInvoiceResponse = {
730
+ message: string;
731
+ payment_id: string;
732
+ };
733
+ type InvoiceItemDetail = {
734
+ invoice_item_id: string;
735
+ quantity: number;
736
+ unit_price: string;
737
+ discount_applied: string;
738
+ tax_rate: string;
739
+ tax_amount: string;
740
+ subtotal: string;
741
+ total_line: string;
742
+ membership_type_id?: string;
743
+ service_id?: string;
744
+ package_id?: string;
745
+ };
746
+ type InvoicePaymentDetail = {
747
+ payment_id: string;
748
+ payment_date: string;
749
+ amount_paid: string;
750
+ currency_paid: string;
751
+ amount_base: string;
752
+ exchange_rate: string;
753
+ payment_method_id: string;
754
+ transaction_id: string;
755
+ status: string;
756
+ receipt_url: string;
757
+ };
758
+ type InvoiceDetail = {
759
+ invoice_id: string;
760
+ user_id: string;
761
+ branch_id: string;
762
+ invoice_number: string;
763
+ issue_date: string;
764
+ due_date: string;
765
+ sub_total: string;
766
+ tax: string;
767
+ total_amount: string;
768
+ status: string;
769
+ created_at: string;
770
+ invoice_items: InvoiceItemDetail[];
771
+ payments: InvoicePaymentDetail[];
772
+ };
773
+ type PaymentDetail = {
774
+ payment_id: string;
775
+ payment_date: string;
776
+ amount_paid: string;
777
+ currency_paid: string;
778
+ amount_base: string;
779
+ exchange_rate: string;
780
+ payment_method_id: string;
781
+ transaction_id: string;
782
+ status: string;
783
+ receipt_url: string;
784
+ };
785
+
685
786
  declare class AuthService {
686
787
  private client;
687
788
  constructor(client: Client);
@@ -707,6 +808,7 @@ declare class UserService {
707
808
  GetUserByID(userId: string, jwt: string): Promise<DataResponse<GetUserResponse>>;
708
809
  updateUserClient(userId: string, data: UpdateUserRequest, jwt: string): Promise<void>;
709
810
  updateUserStaff(userId: string, data: UpdateUserStaffRequest, jwt: string): Promise<void>;
811
+ deleteUser(userId: string, jwt: string): Promise<void>;
710
812
  }
711
813
 
712
814
  declare class BranchService {
@@ -790,6 +892,9 @@ declare class PublicService {
790
892
  private client;
791
893
  constructor(client: Client);
792
894
  getBranchMap(jwt: string): Promise<DataResponse<BranchInfo[]>>;
895
+ getServices({ page, limit, currency, category, price, sortby, search, sort, }: PublicPaginationService): Promise<PaginatedTotal<ServicePublicItem[]>>;
896
+ getPackages({ page, limit, currency, }: PublicPaginatedPackage): Promise<PaginatedTotal<PackagePublicItem[]>>;
897
+ getBranchServices({ page, limit, currency, category, price, sortby, search, sort, }: PublicPaginationService, branchId: string): Promise<PaginatedTotal<ServicePublicItem[]>>;
793
898
  }
794
899
 
795
900
  declare class ProductsService {
@@ -847,6 +952,11 @@ declare class PackagesService {
847
952
  declare class BillingService {
848
953
  private client;
849
954
  constructor(client: Client);
955
+ createInvoice(data: CreateInvoicePayload, jwt: string): Promise<CreateInvoiceResponse>;
956
+ getInvoiceByID(invoiceId: string, jwt: string): Promise<DataResponse<InvoiceDetail>>;
957
+ AddPaymentToInvoice(data: AddPaymentToInvoicePayload, jwt: string): Promise<AddPaymentToInvoiceResponse>;
958
+ getPaymentByID(paymentId: string, jwt: string): Promise<DataResponse<PaymentDetail>>;
959
+ updatePaymentStatus(paymentId: string, status: string, jwt: string): Promise<void>;
850
960
  }
851
961
 
852
962
  declare class APIError extends Error {
@@ -878,4 +988,4 @@ declare class VitalFit {
878
988
  version(): string;
879
989
  }
880
990
 
881
- export { APIError, 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 BranchStatusCount, type ClientBookingResponse, type ClientProfile, type CreateBanner, type CreateBranchEquipment, type CreateBranchRequest, type CreateBranchServicePriceItem, type CreateClassPayload, type CreateEquipment, type CreateMembershipType, type CreatePackagePayload, type CreatePaymentMethod, type CreateRole, type CreateService, type CreateServiceImage, type DataResponse, type Equipment, type EquipmentCategory, type EquipmentInfo, type EquipmentStatus, type GetUserResponse, type Instructor, type InstructorData, type InstructorDataList, type InstructorsSummary, type LoginRequest, type LoginResponse, type MembershipType, type MembershipsSummary, type OperatingHour, type PackageDetail, type PackageItemDetail, type PackageItemInput, type PackageListItem, type PaginatedBranch, type PaginatedEquipmentRequest, type PaginatedInstructor, type PaginatedServiceRequest, type PaginatedTotal, type Pagination, type PaginationBranchRequest, type PaginationRequest, type PagoMovilConfig, type PaymentConfiguration, type PaymentMethod, type PaymentMethodTypes, type Permission, type PublicMembershipResponse, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicesSummary, type SignUpRequest, type Specialty, type UUIDModel, type UpdateBanner, type UpdateBranchEquipmentDetails, type UpdateBranchPaymentMethod, type UpdateBranchRequest, type UpdateBranchServicePrice, type UpdateClassPayload, 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 };
991
+ 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 BranchStatusCount, type ClientBookingResponse, type ClientProfile, type CreateBanner, type CreateBranchEquipment, type CreateBranchRequest, type CreateBranchServicePriceItem, type CreateClassPayload, type CreateEquipment, type CreateInvoiceItem, type CreateInvoicePayload, type CreateInvoiceResponse, type CreateMembershipType, type CreatePackagePayload, type CreatePaymentMethod, type CreateRole, type CreateService, type CreateServiceImage, type DataResponse, type Equipment, type EquipmentCategory, type EquipmentInfo, type EquipmentStatus, type GetUserResponse, type Instructor, type InstructorData, type InstructorDataList, type InstructorsSummary, type InvoiceDetail, type InvoiceItemDetail, type InvoicePaymentDetail, type LoginRequest, type LoginResponse, type MembershipType, type MembershipsSummary, 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 PagoMovilConfig, type PaymentConfiguration, type PaymentDetail, type PaymentMethod, type PaymentMethodTypes, type Permission, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicePublicItem, type ServicesSummary, type SignUpRequest, type Specialty, type UUIDModel, type UpdateBanner, type UpdateBranchEquipmentDetails, type UpdateBranchPaymentMethod, type UpdateBranchRequest, type UpdateBranchServicePrice, type UpdateClassPayload, 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
@@ -521,6 +521,20 @@ type ServicesSummary = {
521
521
  actives: number;
522
522
  featured: number;
523
523
  };
524
+ type ServicePublicItem = ServiceFullDetail & {
525
+ lowest_price_member: number;
526
+ lowest_price_no_member: number;
527
+ base_currency: string;
528
+ ref_lowest_price_member: string;
529
+ ref_lowest_price_no_member: string;
530
+ ref_base_currency: string;
531
+ };
532
+ type PublicPaginationService = PaginationRequest & {
533
+ currency: string;
534
+ category: string;
535
+ price: number;
536
+ sortby: string;
537
+ };
524
538
 
525
539
  type EquipmentCategory = 'Cardio' | 'Strength' | 'FreeWeight' | 'Functional' | 'Accessory';
526
540
  type Equipment = {
@@ -649,6 +663,14 @@ type UpdatePackagePayload = {
649
663
  price: number;
650
664
  startAt: string;
651
665
  };
666
+ type PackagePublicItem = Omit<PackageListItem, 'createdAt' | 'updatedAt'> & {
667
+ base_currency: string;
668
+ ref_price: string;
669
+ ref_currency: string;
670
+ };
671
+ type PublicPaginatedPackage = PaginationRequest & {
672
+ currency: string;
673
+ };
652
674
 
653
675
  declare const mainCurrencies: {
654
676
  code: string;
@@ -682,6 +704,85 @@ type BookClassRequest = {
682
704
  user_id: string;
683
705
  };
684
706
 
707
+ type CreateInvoiceItem = {
708
+ item_id: string;
709
+ item_type: 'membership' | 'service' | 'package' | string;
710
+ quantity: number;
711
+ };
712
+ type CreateInvoicePayload = {
713
+ branch_id: string;
714
+ items: CreateInvoiceItem[];
715
+ user_id: string | null;
716
+ };
717
+ type CreateInvoiceResponse = {
718
+ invoice_id: string;
719
+ message: string;
720
+ };
721
+ type AddPaymentToInvoicePayload = {
722
+ amount_paid: number;
723
+ currency_paid: string;
724
+ invoice_id: string;
725
+ payment_method_id: string;
726
+ receipt_url: string;
727
+ transaction_id: string;
728
+ };
729
+ type AddPaymentToInvoiceResponse = {
730
+ message: string;
731
+ payment_id: string;
732
+ };
733
+ type InvoiceItemDetail = {
734
+ invoice_item_id: string;
735
+ quantity: number;
736
+ unit_price: string;
737
+ discount_applied: string;
738
+ tax_rate: string;
739
+ tax_amount: string;
740
+ subtotal: string;
741
+ total_line: string;
742
+ membership_type_id?: string;
743
+ service_id?: string;
744
+ package_id?: string;
745
+ };
746
+ type InvoicePaymentDetail = {
747
+ payment_id: string;
748
+ payment_date: string;
749
+ amount_paid: string;
750
+ currency_paid: string;
751
+ amount_base: string;
752
+ exchange_rate: string;
753
+ payment_method_id: string;
754
+ transaction_id: string;
755
+ status: string;
756
+ receipt_url: string;
757
+ };
758
+ type InvoiceDetail = {
759
+ invoice_id: string;
760
+ user_id: string;
761
+ branch_id: string;
762
+ invoice_number: string;
763
+ issue_date: string;
764
+ due_date: string;
765
+ sub_total: string;
766
+ tax: string;
767
+ total_amount: string;
768
+ status: string;
769
+ created_at: string;
770
+ invoice_items: InvoiceItemDetail[];
771
+ payments: InvoicePaymentDetail[];
772
+ };
773
+ type PaymentDetail = {
774
+ payment_id: string;
775
+ payment_date: string;
776
+ amount_paid: string;
777
+ currency_paid: string;
778
+ amount_base: string;
779
+ exchange_rate: string;
780
+ payment_method_id: string;
781
+ transaction_id: string;
782
+ status: string;
783
+ receipt_url: string;
784
+ };
785
+
685
786
  declare class AuthService {
686
787
  private client;
687
788
  constructor(client: Client);
@@ -707,6 +808,7 @@ declare class UserService {
707
808
  GetUserByID(userId: string, jwt: string): Promise<DataResponse<GetUserResponse>>;
708
809
  updateUserClient(userId: string, data: UpdateUserRequest, jwt: string): Promise<void>;
709
810
  updateUserStaff(userId: string, data: UpdateUserStaffRequest, jwt: string): Promise<void>;
811
+ deleteUser(userId: string, jwt: string): Promise<void>;
710
812
  }
711
813
 
712
814
  declare class BranchService {
@@ -790,6 +892,9 @@ declare class PublicService {
790
892
  private client;
791
893
  constructor(client: Client);
792
894
  getBranchMap(jwt: string): Promise<DataResponse<BranchInfo[]>>;
895
+ getServices({ page, limit, currency, category, price, sortby, search, sort, }: PublicPaginationService): Promise<PaginatedTotal<ServicePublicItem[]>>;
896
+ getPackages({ page, limit, currency, }: PublicPaginatedPackage): Promise<PaginatedTotal<PackagePublicItem[]>>;
897
+ getBranchServices({ page, limit, currency, category, price, sortby, search, sort, }: PublicPaginationService, branchId: string): Promise<PaginatedTotal<ServicePublicItem[]>>;
793
898
  }
794
899
 
795
900
  declare class ProductsService {
@@ -847,6 +952,11 @@ declare class PackagesService {
847
952
  declare class BillingService {
848
953
  private client;
849
954
  constructor(client: Client);
955
+ createInvoice(data: CreateInvoicePayload, jwt: string): Promise<CreateInvoiceResponse>;
956
+ getInvoiceByID(invoiceId: string, jwt: string): Promise<DataResponse<InvoiceDetail>>;
957
+ AddPaymentToInvoice(data: AddPaymentToInvoicePayload, jwt: string): Promise<AddPaymentToInvoiceResponse>;
958
+ getPaymentByID(paymentId: string, jwt: string): Promise<DataResponse<PaymentDetail>>;
959
+ updatePaymentStatus(paymentId: string, status: string, jwt: string): Promise<void>;
850
960
  }
851
961
 
852
962
  declare class APIError extends Error {
@@ -878,4 +988,4 @@ declare class VitalFit {
878
988
  version(): string;
879
989
  }
880
990
 
881
- export { APIError, 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 BranchStatusCount, type ClientBookingResponse, type ClientProfile, type CreateBanner, type CreateBranchEquipment, type CreateBranchRequest, type CreateBranchServicePriceItem, type CreateClassPayload, type CreateEquipment, type CreateMembershipType, type CreatePackagePayload, type CreatePaymentMethod, type CreateRole, type CreateService, type CreateServiceImage, type DataResponse, type Equipment, type EquipmentCategory, type EquipmentInfo, type EquipmentStatus, type GetUserResponse, type Instructor, type InstructorData, type InstructorDataList, type InstructorsSummary, type LoginRequest, type LoginResponse, type MembershipType, type MembershipsSummary, type OperatingHour, type PackageDetail, type PackageItemDetail, type PackageItemInput, type PackageListItem, type PaginatedBranch, type PaginatedEquipmentRequest, type PaginatedInstructor, type PaginatedServiceRequest, type PaginatedTotal, type Pagination, type PaginationBranchRequest, type PaginationRequest, type PagoMovilConfig, type PaymentConfiguration, type PaymentMethod, type PaymentMethodTypes, type Permission, type PublicMembershipResponse, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicesSummary, type SignUpRequest, type Specialty, type UUIDModel, type UpdateBanner, type UpdateBranchEquipmentDetails, type UpdateBranchPaymentMethod, type UpdateBranchRequest, type UpdateBranchServicePrice, type UpdateClassPayload, 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 };
991
+ 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 BranchStatusCount, type ClientBookingResponse, type ClientProfile, type CreateBanner, type CreateBranchEquipment, type CreateBranchRequest, type CreateBranchServicePriceItem, type CreateClassPayload, type CreateEquipment, type CreateInvoiceItem, type CreateInvoicePayload, type CreateInvoiceResponse, type CreateMembershipType, type CreatePackagePayload, type CreatePaymentMethod, type CreateRole, type CreateService, type CreateServiceImage, type DataResponse, type Equipment, type EquipmentCategory, type EquipmentInfo, type EquipmentStatus, type GetUserResponse, type Instructor, type InstructorData, type InstructorDataList, type InstructorsSummary, type InvoiceDetail, type InvoiceItemDetail, type InvoicePaymentDetail, type LoginRequest, type LoginResponse, type MembershipType, type MembershipsSummary, 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 PagoMovilConfig, type PaymentConfiguration, type PaymentDetail, type PaymentMethod, type PaymentMethodTypes, type Permission, type PublicMembershipResponse, type PublicPaginatedPackage, type PublicPaginationService, type Role, type RoleResponse, type ServiceCategoryInfo, type ServiceFullDetail, type ServiceImageResponse, type ServicePublicItem, type ServicesSummary, type SignUpRequest, type Specialty, type UUIDModel, type UpdateBanner, type UpdateBranchEquipmentDetails, type UpdateBranchPaymentMethod, type UpdateBranchRequest, type UpdateBranchServicePrice, type UpdateClassPayload, 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.js CHANGED
@@ -222,6 +222,7 @@ var UserService = class {
222
222
  this.GetUserByID = this.GetUserByID.bind(this);
223
223
  this.updateUserClient = this.updateUserClient.bind(this);
224
224
  this.updateUserStaff = this.updateUserStaff.bind(this);
225
+ this.deleteUser = this.deleteUser.bind(this);
225
226
  }
226
227
  async getStaffUsers({ search, role }, jwt) {
227
228
  const response = await this.client.get({
@@ -277,6 +278,12 @@ var UserService = class {
277
278
  data
278
279
  });
279
280
  }
281
+ async deleteUser(userId, jwt) {
282
+ await this.client.delete({
283
+ url: `/user/${userId}`,
284
+ jwt
285
+ });
286
+ }
280
287
  };
281
288
 
282
289
  // src/services/branch.ts
@@ -743,6 +750,9 @@ var PublicService = class {
743
750
  constructor(client) {
744
751
  this.client = client;
745
752
  this.getBranchMap = this.getBranchMap.bind(this);
753
+ this.getServices = this.getServices.bind(this);
754
+ this.getPackages = this.getPackages.bind(this);
755
+ this.getBranchServices = this.getBranchServices.bind(this);
746
756
  }
747
757
  async getBranchMap(jwt) {
748
758
  const response = await this.client.get({
@@ -751,6 +761,71 @@ var PublicService = class {
751
761
  });
752
762
  return response;
753
763
  }
764
+ async getServices({
765
+ page = 1,
766
+ limit = 10,
767
+ currency,
768
+ category,
769
+ price,
770
+ sortby,
771
+ search,
772
+ sort = "desc"
773
+ }) {
774
+ const response = await this.client.get({
775
+ url: "/public/services",
776
+ params: {
777
+ page,
778
+ limit,
779
+ currency,
780
+ category,
781
+ price,
782
+ sortby,
783
+ search,
784
+ sort
785
+ }
786
+ });
787
+ return response;
788
+ }
789
+ async getPackages({
790
+ page = 1,
791
+ limit = 10,
792
+ currency
793
+ }) {
794
+ const response = await this.client.get({
795
+ url: "/public/packages",
796
+ params: {
797
+ page,
798
+ limit,
799
+ currency
800
+ }
801
+ });
802
+ return response;
803
+ }
804
+ async getBranchServices({
805
+ page = 1,
806
+ limit = 10,
807
+ currency,
808
+ category,
809
+ price,
810
+ sortby,
811
+ search,
812
+ sort = "desc"
813
+ }, branchId) {
814
+ const response = await this.client.get({
815
+ url: `/public/branches/${branchId}/services`,
816
+ params: {
817
+ page,
818
+ limit,
819
+ currency,
820
+ category,
821
+ price,
822
+ sortby,
823
+ search,
824
+ sort
825
+ }
826
+ });
827
+ return response;
828
+ }
754
829
  };
755
830
 
756
831
  // src/services/products.ts
@@ -1074,6 +1149,50 @@ var BillingService = class {
1074
1149
  client;
1075
1150
  constructor(client) {
1076
1151
  this.client = client;
1152
+ this.createInvoice = this.createInvoice.bind(this);
1153
+ this.AddPaymentToInvoice = this.AddPaymentToInvoice.bind(this);
1154
+ this.getInvoiceByID = this.getInvoiceByID.bind(this);
1155
+ this.getPaymentByID = this.getPaymentByID.bind(this);
1156
+ this.updatePaymentStatus = this.updatePaymentStatus.bind(this);
1157
+ }
1158
+ async createInvoice(data, jwt) {
1159
+ const response = await this.client.post({
1160
+ url: "/billing/invoices",
1161
+ jwt,
1162
+ data
1163
+ });
1164
+ return response;
1165
+ }
1166
+ async getInvoiceByID(invoiceId, jwt) {
1167
+ const response = await this.client.get({
1168
+ url: `/billing/invoices/${invoiceId}`,
1169
+ jwt
1170
+ });
1171
+ return response;
1172
+ }
1173
+ async AddPaymentToInvoice(data, jwt) {
1174
+ const response = await this.client.post({
1175
+ url: "/billing/invoices/payment",
1176
+ jwt,
1177
+ data
1178
+ });
1179
+ return response;
1180
+ }
1181
+ async getPaymentByID(paymentId, jwt) {
1182
+ const response = await this.client.get({
1183
+ url: `/billing/payments/${paymentId}`,
1184
+ jwt
1185
+ });
1186
+ return response;
1187
+ }
1188
+ async updatePaymentStatus(paymentId, status, jwt) {
1189
+ await this.client.patch({
1190
+ url: `/billing/payments/${paymentId}/status`,
1191
+ jwt,
1192
+ data: {
1193
+ status
1194
+ }
1195
+ });
1077
1196
  }
1078
1197
  };
1079
1198
 
@@ -1219,7 +1338,7 @@ var VitalFit = class _VitalFit {
1219
1338
  return _VitalFit.instance;
1220
1339
  }
1221
1340
  version() {
1222
- return "0.0.68";
1341
+ return "0.0.69";
1223
1342
  }
1224
1343
  };
1225
1344
  export {