@vitalfit/sdk 0.0.60 → 0.0.62
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 +127 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -4
- package/dist/index.d.ts +54 -4
- package/dist/index.js +125 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -406,6 +406,17 @@ type MembershipsSummary = {
|
|
|
406
406
|
actives: number;
|
|
407
407
|
inactives: number;
|
|
408
408
|
};
|
|
409
|
+
type PublicMembershipResponse = {
|
|
410
|
+
membership_type_id: string;
|
|
411
|
+
name: string;
|
|
412
|
+
description: string;
|
|
413
|
+
duration_days: number;
|
|
414
|
+
price: number;
|
|
415
|
+
base_currency: string;
|
|
416
|
+
ref_price: string;
|
|
417
|
+
ref_currency: string;
|
|
418
|
+
is_active: boolean;
|
|
419
|
+
};
|
|
409
420
|
|
|
410
421
|
type BranchInfo = {
|
|
411
422
|
address: string;
|
|
@@ -639,6 +650,38 @@ type UpdatePackagePayload = {
|
|
|
639
650
|
startAt: string;
|
|
640
651
|
};
|
|
641
652
|
|
|
653
|
+
declare const mainCurrencies: {
|
|
654
|
+
code: string;
|
|
655
|
+
name: string;
|
|
656
|
+
symbol: string;
|
|
657
|
+
}[];
|
|
658
|
+
|
|
659
|
+
type ClientBookingResponse = {
|
|
660
|
+
booking_id: string;
|
|
661
|
+
branch_name: string;
|
|
662
|
+
class_id: string;
|
|
663
|
+
ends_at: string;
|
|
664
|
+
instructor: string;
|
|
665
|
+
service_name: string;
|
|
666
|
+
starts_at: string;
|
|
667
|
+
};
|
|
668
|
+
type BranchScheduleResponse = {
|
|
669
|
+
branch_id: string;
|
|
670
|
+
class_id: string;
|
|
671
|
+
created_at: string;
|
|
672
|
+
ends_at: string;
|
|
673
|
+
instructor_id: string;
|
|
674
|
+
is_visible: boolean;
|
|
675
|
+
max_capacity: number;
|
|
676
|
+
notes: string;
|
|
677
|
+
service_id: string;
|
|
678
|
+
starts_at: string;
|
|
679
|
+
updated_at: string;
|
|
680
|
+
};
|
|
681
|
+
type BookClassRequest = {
|
|
682
|
+
user_id: string;
|
|
683
|
+
};
|
|
684
|
+
|
|
642
685
|
declare class AuthService {
|
|
643
686
|
private client;
|
|
644
687
|
constructor(client: Client);
|
|
@@ -740,6 +783,7 @@ declare class MembershipService {
|
|
|
740
783
|
getMembershipTypeByID(membershipTypeId: string, jwt: string): Promise<DataResponse<MembershipType>>;
|
|
741
784
|
updateMembershipType(membershipTypeId: string, data: UpdateMembershipType, jwt: string): Promise<void>;
|
|
742
785
|
deleteMembershipType(membershipTypeId: string, jwt: string): Promise<void>;
|
|
786
|
+
publicGetMemberships(jwt: string, { page, limit, sort, search }: PaginationRequest, currency: string): Promise<PaginatedTotal<PublicMembershipResponse[]>>;
|
|
743
787
|
}
|
|
744
788
|
|
|
745
789
|
declare class PublicService {
|
|
@@ -785,9 +829,9 @@ declare class ScheduleService {
|
|
|
785
829
|
constructor(client: Client);
|
|
786
830
|
ListBranchesClass(branchID: string, jwt: string): Promise<DataResponse<BranchClassInfo[]>>;
|
|
787
831
|
CreateClass(branchID: string, data: CreateClassPayload, jwt: string): Promise<void>;
|
|
788
|
-
GetClassByID(
|
|
789
|
-
UpdateClass(
|
|
790
|
-
DeleteClass(
|
|
832
|
+
GetClassByID(classID: string, jwt: string): Promise<DataResponse<BranchClassInfo>>;
|
|
833
|
+
UpdateClass(classID: string, data: UpdateClassPayload, jwt: string): Promise<void>;
|
|
834
|
+
DeleteClass(classID: string, jwt: string): Promise<void>;
|
|
791
835
|
}
|
|
792
836
|
|
|
793
837
|
declare class PackagesService {
|
|
@@ -800,6 +844,11 @@ declare class PackagesService {
|
|
|
800
844
|
deletePackage(packageId: string, jwt: string): Promise<void>;
|
|
801
845
|
}
|
|
802
846
|
|
|
847
|
+
declare class BillingService {
|
|
848
|
+
private client;
|
|
849
|
+
constructor(client: Client);
|
|
850
|
+
}
|
|
851
|
+
|
|
803
852
|
declare class APIError extends Error {
|
|
804
853
|
status: number;
|
|
805
854
|
messages: string[];
|
|
@@ -823,9 +872,10 @@ declare class VitalFit {
|
|
|
823
872
|
equipment: EquipmentService;
|
|
824
873
|
schedule: ScheduleService;
|
|
825
874
|
packages: PackagesService;
|
|
875
|
+
billing: BillingService;
|
|
826
876
|
constructor(isDevMode: boolean, origin?: string);
|
|
827
877
|
static getInstance(isDevMode?: boolean): VitalFit;
|
|
828
878
|
version(): string;
|
|
829
879
|
}
|
|
830
880
|
|
|
831
|
-
export { APIError, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BranchClassInfo, type BranchDetails, type BranchEquipmentInventory, type BranchInfo, type BranchInstructorInfo, type BranchPaymentMethod, type BranchPaymentMethodInfo, type BranchPaymentVisibility, type BranchServicePrice, type BranchStatusCount, 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 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -406,6 +406,17 @@ type MembershipsSummary = {
|
|
|
406
406
|
actives: number;
|
|
407
407
|
inactives: number;
|
|
408
408
|
};
|
|
409
|
+
type PublicMembershipResponse = {
|
|
410
|
+
membership_type_id: string;
|
|
411
|
+
name: string;
|
|
412
|
+
description: string;
|
|
413
|
+
duration_days: number;
|
|
414
|
+
price: number;
|
|
415
|
+
base_currency: string;
|
|
416
|
+
ref_price: string;
|
|
417
|
+
ref_currency: string;
|
|
418
|
+
is_active: boolean;
|
|
419
|
+
};
|
|
409
420
|
|
|
410
421
|
type BranchInfo = {
|
|
411
422
|
address: string;
|
|
@@ -639,6 +650,38 @@ type UpdatePackagePayload = {
|
|
|
639
650
|
startAt: string;
|
|
640
651
|
};
|
|
641
652
|
|
|
653
|
+
declare const mainCurrencies: {
|
|
654
|
+
code: string;
|
|
655
|
+
name: string;
|
|
656
|
+
symbol: string;
|
|
657
|
+
}[];
|
|
658
|
+
|
|
659
|
+
type ClientBookingResponse = {
|
|
660
|
+
booking_id: string;
|
|
661
|
+
branch_name: string;
|
|
662
|
+
class_id: string;
|
|
663
|
+
ends_at: string;
|
|
664
|
+
instructor: string;
|
|
665
|
+
service_name: string;
|
|
666
|
+
starts_at: string;
|
|
667
|
+
};
|
|
668
|
+
type BranchScheduleResponse = {
|
|
669
|
+
branch_id: string;
|
|
670
|
+
class_id: string;
|
|
671
|
+
created_at: string;
|
|
672
|
+
ends_at: string;
|
|
673
|
+
instructor_id: string;
|
|
674
|
+
is_visible: boolean;
|
|
675
|
+
max_capacity: number;
|
|
676
|
+
notes: string;
|
|
677
|
+
service_id: string;
|
|
678
|
+
starts_at: string;
|
|
679
|
+
updated_at: string;
|
|
680
|
+
};
|
|
681
|
+
type BookClassRequest = {
|
|
682
|
+
user_id: string;
|
|
683
|
+
};
|
|
684
|
+
|
|
642
685
|
declare class AuthService {
|
|
643
686
|
private client;
|
|
644
687
|
constructor(client: Client);
|
|
@@ -740,6 +783,7 @@ declare class MembershipService {
|
|
|
740
783
|
getMembershipTypeByID(membershipTypeId: string, jwt: string): Promise<DataResponse<MembershipType>>;
|
|
741
784
|
updateMembershipType(membershipTypeId: string, data: UpdateMembershipType, jwt: string): Promise<void>;
|
|
742
785
|
deleteMembershipType(membershipTypeId: string, jwt: string): Promise<void>;
|
|
786
|
+
publicGetMemberships(jwt: string, { page, limit, sort, search }: PaginationRequest, currency: string): Promise<PaginatedTotal<PublicMembershipResponse[]>>;
|
|
743
787
|
}
|
|
744
788
|
|
|
745
789
|
declare class PublicService {
|
|
@@ -785,9 +829,9 @@ declare class ScheduleService {
|
|
|
785
829
|
constructor(client: Client);
|
|
786
830
|
ListBranchesClass(branchID: string, jwt: string): Promise<DataResponse<BranchClassInfo[]>>;
|
|
787
831
|
CreateClass(branchID: string, data: CreateClassPayload, jwt: string): Promise<void>;
|
|
788
|
-
GetClassByID(
|
|
789
|
-
UpdateClass(
|
|
790
|
-
DeleteClass(
|
|
832
|
+
GetClassByID(classID: string, jwt: string): Promise<DataResponse<BranchClassInfo>>;
|
|
833
|
+
UpdateClass(classID: string, data: UpdateClassPayload, jwt: string): Promise<void>;
|
|
834
|
+
DeleteClass(classID: string, jwt: string): Promise<void>;
|
|
791
835
|
}
|
|
792
836
|
|
|
793
837
|
declare class PackagesService {
|
|
@@ -800,6 +844,11 @@ declare class PackagesService {
|
|
|
800
844
|
deletePackage(packageId: string, jwt: string): Promise<void>;
|
|
801
845
|
}
|
|
802
846
|
|
|
847
|
+
declare class BillingService {
|
|
848
|
+
private client;
|
|
849
|
+
constructor(client: Client);
|
|
850
|
+
}
|
|
851
|
+
|
|
803
852
|
declare class APIError extends Error {
|
|
804
853
|
status: number;
|
|
805
854
|
messages: string[];
|
|
@@ -823,9 +872,10 @@ declare class VitalFit {
|
|
|
823
872
|
equipment: EquipmentService;
|
|
824
873
|
schedule: ScheduleService;
|
|
825
874
|
packages: PackagesService;
|
|
875
|
+
billing: BillingService;
|
|
826
876
|
constructor(isDevMode: boolean, origin?: string);
|
|
827
877
|
static getInstance(isDevMode?: boolean): VitalFit;
|
|
828
878
|
version(): string;
|
|
829
879
|
}
|
|
830
880
|
|
|
831
|
-
export { APIError, type BankTransferConfig, type Banner, type BannerResponse, type BaseModel, type BranchClassInfo, type BranchDetails, type BranchEquipmentInventory, type BranchInfo, type BranchInstructorInfo, type BranchPaymentMethod, type BranchPaymentMethodInfo, type BranchPaymentVisibility, type BranchServicePrice, type BranchStatusCount, 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 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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -676,6 +676,7 @@ var MembershipService = class {
|
|
|
676
676
|
this.getMembershipTypeByID = this.getMembershipTypeByID.bind(this);
|
|
677
677
|
this.updateMembershipType = this.updateMembershipType.bind(this);
|
|
678
678
|
this.deleteMembershipType = this.deleteMembershipType.bind(this);
|
|
679
|
+
this.publicGetMemberships = this.publicGetMemberships.bind(this);
|
|
679
680
|
}
|
|
680
681
|
async createMembershipType(data, jwt) {
|
|
681
682
|
await this.client.post({
|
|
@@ -724,6 +725,20 @@ var MembershipService = class {
|
|
|
724
725
|
jwt
|
|
725
726
|
});
|
|
726
727
|
}
|
|
728
|
+
async publicGetMemberships(jwt, { page = 10, limit = 10, sort = "desc", search }, currency) {
|
|
729
|
+
const response = await this.client.get({
|
|
730
|
+
url: "/public/membership-plans",
|
|
731
|
+
jwt,
|
|
732
|
+
params: {
|
|
733
|
+
currency,
|
|
734
|
+
page,
|
|
735
|
+
limit,
|
|
736
|
+
sort,
|
|
737
|
+
search
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
return response;
|
|
741
|
+
}
|
|
727
742
|
};
|
|
728
743
|
|
|
729
744
|
// src/services/public.ts
|
|
@@ -971,33 +986,33 @@ var ScheduleService = class {
|
|
|
971
986
|
}
|
|
972
987
|
async ListBranchesClass(branchID, jwt) {
|
|
973
988
|
const response = await this.client.get({
|
|
974
|
-
url: `/branches/${branchID}/
|
|
989
|
+
url: `/branches/${branchID}/schedule`,
|
|
975
990
|
jwt
|
|
976
991
|
});
|
|
977
992
|
return response;
|
|
978
993
|
}
|
|
979
994
|
async CreateClass(branchID, data, jwt) {
|
|
980
995
|
await this.client.post({
|
|
981
|
-
url: `/branches/${branchID}/
|
|
996
|
+
url: `/branches/${branchID}/schedule`,
|
|
982
997
|
jwt,
|
|
983
998
|
data
|
|
984
999
|
});
|
|
985
1000
|
}
|
|
986
|
-
async GetClassByID(
|
|
1001
|
+
async GetClassByID(classID, jwt) {
|
|
987
1002
|
const response = await this.client.get({
|
|
988
1003
|
url: `/schedule/${classID}`,
|
|
989
1004
|
jwt
|
|
990
1005
|
});
|
|
991
1006
|
return response;
|
|
992
1007
|
}
|
|
993
|
-
async UpdateClass(
|
|
1008
|
+
async UpdateClass(classID, data, jwt) {
|
|
994
1009
|
await this.client.put({
|
|
995
1010
|
url: `/schedule${classID}`,
|
|
996
1011
|
jwt,
|
|
997
1012
|
data
|
|
998
1013
|
});
|
|
999
1014
|
}
|
|
1000
|
-
async DeleteClass(
|
|
1015
|
+
async DeleteClass(classID, jwt) {
|
|
1001
1016
|
await this.client.delete({
|
|
1002
1017
|
url: `/schedule/${classID}`,
|
|
1003
1018
|
jwt
|
|
@@ -1058,6 +1073,14 @@ var PackagesService = class {
|
|
|
1058
1073
|
}
|
|
1059
1074
|
};
|
|
1060
1075
|
|
|
1076
|
+
// src/services/billing.ts
|
|
1077
|
+
var BillingService = class {
|
|
1078
|
+
client;
|
|
1079
|
+
constructor(client) {
|
|
1080
|
+
this.client = client;
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1061
1084
|
// src/types/auth.ts
|
|
1062
1085
|
var UserGender = /* @__PURE__ */ ((UserGender2) => {
|
|
1063
1086
|
UserGender2["male"] = "male";
|
|
@@ -1066,6 +1089,98 @@ var UserGender = /* @__PURE__ */ ((UserGender2) => {
|
|
|
1066
1089
|
return UserGender2;
|
|
1067
1090
|
})(UserGender || {});
|
|
1068
1091
|
|
|
1092
|
+
// src/types/billing.ts
|
|
1093
|
+
var mainCurrencies = [
|
|
1094
|
+
// --- Monedas G10 (Más negociadas) ---
|
|
1095
|
+
{
|
|
1096
|
+
code: "USD",
|
|
1097
|
+
name: "D\xF3lar Estadounidense",
|
|
1098
|
+
symbol: "$"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
code: "EUR",
|
|
1102
|
+
name: "Euro",
|
|
1103
|
+
symbol: "\u20AC"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
code: "JPY",
|
|
1107
|
+
name: "Yen Japon\xE9s",
|
|
1108
|
+
symbol: "\xA5"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
code: "GBP",
|
|
1112
|
+
name: "Libra Esterlina",
|
|
1113
|
+
symbol: "\xA3"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
code: "AUD",
|
|
1117
|
+
name: "D\xF3lar Australiano",
|
|
1118
|
+
symbol: "A$"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
code: "CAD",
|
|
1122
|
+
name: "D\xF3lar Canadiense",
|
|
1123
|
+
symbol: "C$"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
code: "CHF",
|
|
1127
|
+
name: "Franco Suizo",
|
|
1128
|
+
symbol: "Fr"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
code: "CNY",
|
|
1132
|
+
name: "Yuan Chino",
|
|
1133
|
+
symbol: "\xA5"
|
|
1134
|
+
},
|
|
1135
|
+
// --- Monedas Relevantes (Latinoamérica) ---
|
|
1136
|
+
{
|
|
1137
|
+
code: "VES",
|
|
1138
|
+
name: "Bol\xEDvar Soberano",
|
|
1139
|
+
symbol: "Bs."
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
code: "BRL",
|
|
1143
|
+
name: "Real Brasile\xF1o",
|
|
1144
|
+
symbol: "R$"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
code: "MXN",
|
|
1148
|
+
name: "Peso Mexicano",
|
|
1149
|
+
symbol: "$"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
code: "ARS",
|
|
1153
|
+
name: "Peso Argentino",
|
|
1154
|
+
symbol: "$"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
code: "COP",
|
|
1158
|
+
name: "Peso Colombiano",
|
|
1159
|
+
symbol: "$"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
code: "CLP",
|
|
1163
|
+
name: "Peso Chileno",
|
|
1164
|
+
symbol: "$"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
code: "PEN",
|
|
1168
|
+
name: "Sol Peruano",
|
|
1169
|
+
symbol: "S/"
|
|
1170
|
+
},
|
|
1171
|
+
// --- Otras monedas importantes ---
|
|
1172
|
+
{
|
|
1173
|
+
code: "INR",
|
|
1174
|
+
name: "Rupia India",
|
|
1175
|
+
symbol: "\u20B9"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
code: "RUB",
|
|
1179
|
+
name: "Rublo Ruso",
|
|
1180
|
+
symbol: "\u20BD"
|
|
1181
|
+
}
|
|
1182
|
+
];
|
|
1183
|
+
|
|
1069
1184
|
// src/index.ts
|
|
1070
1185
|
var VitalFit = class _VitalFit {
|
|
1071
1186
|
static instance;
|
|
@@ -1083,6 +1198,7 @@ var VitalFit = class _VitalFit {
|
|
|
1083
1198
|
equipment;
|
|
1084
1199
|
schedule;
|
|
1085
1200
|
packages;
|
|
1201
|
+
billing;
|
|
1086
1202
|
constructor(isDevMode, origin) {
|
|
1087
1203
|
this.client = new Client(isDevMode, origin);
|
|
1088
1204
|
this.auth = new AuthService(this.client);
|
|
@@ -1098,6 +1214,7 @@ var VitalFit = class _VitalFit {
|
|
|
1098
1214
|
this.equipment = new EquipmentService(this.client);
|
|
1099
1215
|
this.schedule = new ScheduleService(this.client);
|
|
1100
1216
|
this.packages = new PackagesService(this.client);
|
|
1217
|
+
this.billing = new BillingService(this.client);
|
|
1101
1218
|
}
|
|
1102
1219
|
static getInstance(isDevMode = false) {
|
|
1103
1220
|
if (!_VitalFit.instance) {
|
|
@@ -1106,13 +1223,14 @@ var VitalFit = class _VitalFit {
|
|
|
1106
1223
|
return _VitalFit.instance;
|
|
1107
1224
|
}
|
|
1108
1225
|
version() {
|
|
1109
|
-
return "0.0.
|
|
1226
|
+
return "0.0.62";
|
|
1110
1227
|
}
|
|
1111
1228
|
};
|
|
1112
1229
|
export {
|
|
1113
1230
|
APIError,
|
|
1114
1231
|
UserGender,
|
|
1115
1232
|
VitalFit,
|
|
1116
|
-
isAPIError
|
|
1233
|
+
isAPIError,
|
|
1234
|
+
mainCurrencies
|
|
1117
1235
|
};
|
|
1118
1236
|
//# sourceMappingURL=index.js.map
|