@gymspace/sdk 1.2.9 → 1.2.11
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.mts +19 -181
- package/dist/index.d.ts +19 -181
- package/dist/index.js +38 -79
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -78
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +36 -4
- package/src/models/index.ts +0 -2
- package/src/models/onboarding.ts +0 -17
- package/src/models/payment-methods.ts +2 -2
- package/src/models/products.ts +2 -10
- package/src/resources/index.ts +0 -2
- package/src/resources/payment-methods.ts +3 -3
- package/src/resources/products.ts +21 -31
- package/src/sdk.ts +7 -6
- package/src/models/evaluations.ts +0 -91
- package/src/models/leads.ts +0 -52
- package/src/resources/evaluations.ts +0 -63
- package/src/resources/leads.ts +0 -48
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { PaginationParams as PaginationParams$1, ListCollaboratorsParams, Collaborator, UpdateCollaboratorDto, UpdateCollaboratorRoleDto, UpdateCollaboratorStatusDto, ActivityQueryParams, ActivityItem, StatsQueryParams, CollaboratorStats, Role, ContractStatus, CreateInvitationDto, Invitation, ValidateByCodeDto, AcceptInvitationDto
|
|
2
|
+
import { PaginationParams as PaginationParams$1, ListCollaboratorsParams, Collaborator, UpdateCollaboratorDto, UpdateCollaboratorRoleDto, UpdateCollaboratorStatusDto, ActivityQueryParams, ActivityItem, StatsQueryParams, CollaboratorStats, Role, ContractStatus, CreateInvitationDto, Invitation, ValidateByCodeDto, AcceptInvitationDto } from '@gymspace/shared';
|
|
3
3
|
export * from '@gymspace/shared';
|
|
4
4
|
|
|
5
5
|
interface GymSpaceConfig {
|
|
@@ -36,6 +36,7 @@ declare class ApiClient {
|
|
|
36
36
|
private axiosInstance;
|
|
37
37
|
private config;
|
|
38
38
|
private refreshToken;
|
|
39
|
+
private onTokenRefreshed?;
|
|
39
40
|
getAccessToken(): string | null;
|
|
40
41
|
constructor(config: GymSpaceConfig);
|
|
41
42
|
private setupInterceptors;
|
|
@@ -50,6 +51,14 @@ declare class ApiClient {
|
|
|
50
51
|
setAuthToken(token: string): void;
|
|
51
52
|
setRefreshToken(token: string | null): void;
|
|
52
53
|
getRefreshToken(): string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Set callback for when tokens are refreshed by backend
|
|
56
|
+
*/
|
|
57
|
+
setOnTokenRefreshed(callback: (accessToken: string, refreshToken?: string) => void): void;
|
|
58
|
+
/**
|
|
59
|
+
* Get the token refresh callback
|
|
60
|
+
*/
|
|
61
|
+
getOnTokenRefreshed(): ((accessToken: string, refreshToken?: string) => void) | undefined;
|
|
53
62
|
setGymId(gymId: string): void;
|
|
54
63
|
clearAuth(): void;
|
|
55
64
|
getBaseUrl(): string;
|
|
@@ -1024,99 +1033,6 @@ declare class DashboardResource extends BaseResource {
|
|
|
1024
1033
|
getCheckInsList(params?: DateRangeParams): Promise<CheckInsList>;
|
|
1025
1034
|
}
|
|
1026
1035
|
|
|
1027
|
-
interface CreateEvaluationDto {
|
|
1028
|
-
gymClientId: string;
|
|
1029
|
-
weight: number;
|
|
1030
|
-
height: number;
|
|
1031
|
-
bodyFatPercentage?: number;
|
|
1032
|
-
muscleMassPercentage?: number;
|
|
1033
|
-
measurements?: EvaluationMeasurements;
|
|
1034
|
-
healthMetrics?: EvaluationHealthMetrics;
|
|
1035
|
-
performanceMetrics?: EvaluationPerformanceMetrics;
|
|
1036
|
-
notes?: string;
|
|
1037
|
-
goals?: string;
|
|
1038
|
-
recommendations?: string;
|
|
1039
|
-
}
|
|
1040
|
-
interface UpdateEvaluationDto {
|
|
1041
|
-
gymClientId?: string;
|
|
1042
|
-
weight?: number;
|
|
1043
|
-
height?: number;
|
|
1044
|
-
bodyFatPercentage?: number;
|
|
1045
|
-
muscleMassPercentage?: number;
|
|
1046
|
-
measurements?: EvaluationMeasurements;
|
|
1047
|
-
healthMetrics?: EvaluationHealthMetrics;
|
|
1048
|
-
performanceMetrics?: EvaluationPerformanceMetrics;
|
|
1049
|
-
notes?: string;
|
|
1050
|
-
goals?: string;
|
|
1051
|
-
recommendations?: string;
|
|
1052
|
-
}
|
|
1053
|
-
interface EvaluationMeasurements {
|
|
1054
|
-
chest?: number;
|
|
1055
|
-
waist?: number;
|
|
1056
|
-
hips?: number;
|
|
1057
|
-
leftArm?: number;
|
|
1058
|
-
rightArm?: number;
|
|
1059
|
-
leftThigh?: number;
|
|
1060
|
-
rightThigh?: number;
|
|
1061
|
-
[key: string]: number | undefined;
|
|
1062
|
-
}
|
|
1063
|
-
interface EvaluationHealthMetrics {
|
|
1064
|
-
bloodPressure?: string;
|
|
1065
|
-
restingHeartRate?: number;
|
|
1066
|
-
vo2Max?: number;
|
|
1067
|
-
[key: string]: any;
|
|
1068
|
-
}
|
|
1069
|
-
interface EvaluationPerformanceMetrics {
|
|
1070
|
-
benchPress?: number;
|
|
1071
|
-
squat?: number;
|
|
1072
|
-
deadlift?: number;
|
|
1073
|
-
[key: string]: number | undefined;
|
|
1074
|
-
}
|
|
1075
|
-
interface Evaluation {
|
|
1076
|
-
id: string;
|
|
1077
|
-
gymId: string;
|
|
1078
|
-
gymClientId: string;
|
|
1079
|
-
evaluatorId: string;
|
|
1080
|
-
evaluationDate: string;
|
|
1081
|
-
weight: number;
|
|
1082
|
-
height: number;
|
|
1083
|
-
bmi: number;
|
|
1084
|
-
bodyFatPercentage?: number;
|
|
1085
|
-
muscleMassPercentage?: number;
|
|
1086
|
-
measurements?: EvaluationMeasurements;
|
|
1087
|
-
healthMetrics?: EvaluationHealthMetrics;
|
|
1088
|
-
performanceMetrics?: EvaluationPerformanceMetrics;
|
|
1089
|
-
notes?: string;
|
|
1090
|
-
goals?: string;
|
|
1091
|
-
recommendations?: string;
|
|
1092
|
-
createdAt: string;
|
|
1093
|
-
updatedAt: string;
|
|
1094
|
-
}
|
|
1095
|
-
interface GetClientEvaluationsParams extends PaginationQueryDto {
|
|
1096
|
-
}
|
|
1097
|
-
interface EvaluationReport {
|
|
1098
|
-
evaluation: Evaluation;
|
|
1099
|
-
client: any;
|
|
1100
|
-
previousEvaluation?: Evaluation;
|
|
1101
|
-
evolution?: {
|
|
1102
|
-
weight: number;
|
|
1103
|
-
bodyFat: number;
|
|
1104
|
-
muscleMass: number;
|
|
1105
|
-
measurements: Record<string, number>;
|
|
1106
|
-
};
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
declare class EvaluationsResource extends BaseResource {
|
|
1110
|
-
private basePath;
|
|
1111
|
-
createEvaluation(data: CreateEvaluationDto, options?: RequestOptions): Promise<Evaluation>;
|
|
1112
|
-
getEvaluation(id: string, options?: RequestOptions): Promise<Evaluation>;
|
|
1113
|
-
updateEvaluation(id: string, data: UpdateEvaluationDto, options?: RequestOptions): Promise<Evaluation>;
|
|
1114
|
-
deleteEvaluation(id: string, options?: RequestOptions): Promise<void>;
|
|
1115
|
-
getClientEvaluations(clientId: string, params?: GetClientEvaluationsParams, options?: RequestOptions): Promise<PaginatedResponseDto<Evaluation>>;
|
|
1116
|
-
getGymEvaluationStats(options?: RequestOptions): Promise<any>;
|
|
1117
|
-
generateEvaluationReport(id: string, options?: RequestOptions): Promise<EvaluationReport>;
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
1036
|
interface CreateCheckInDto {
|
|
1121
1037
|
gymClientId: string;
|
|
1122
1038
|
notes?: string;
|
|
@@ -1214,64 +1130,6 @@ declare class InvitationsResource extends BaseResource {
|
|
|
1214
1130
|
cancelInvitation(id: string, options?: RequestOptions): Promise<void>;
|
|
1215
1131
|
}
|
|
1216
1132
|
|
|
1217
|
-
interface CreateLeadDto {
|
|
1218
|
-
name: string;
|
|
1219
|
-
email: string;
|
|
1220
|
-
phone: string;
|
|
1221
|
-
gymId: string;
|
|
1222
|
-
message?: string;
|
|
1223
|
-
source?: string;
|
|
1224
|
-
metadata?: Record<string, any>;
|
|
1225
|
-
}
|
|
1226
|
-
interface UpdateLeadDto {
|
|
1227
|
-
status?: LeadStatus;
|
|
1228
|
-
notes?: string;
|
|
1229
|
-
assignedToUserId?: string;
|
|
1230
|
-
metadata?: Record<string, any>;
|
|
1231
|
-
}
|
|
1232
|
-
interface Lead {
|
|
1233
|
-
id: string;
|
|
1234
|
-
gymId: string;
|
|
1235
|
-
name: string;
|
|
1236
|
-
email: string;
|
|
1237
|
-
phone: string;
|
|
1238
|
-
status: LeadStatus;
|
|
1239
|
-
source?: string;
|
|
1240
|
-
message?: string;
|
|
1241
|
-
notes?: string;
|
|
1242
|
-
assignedToUserId?: string;
|
|
1243
|
-
convertedToClientId?: string;
|
|
1244
|
-
metadata?: Record<string, any>;
|
|
1245
|
-
createdAt: string;
|
|
1246
|
-
updatedAt: string;
|
|
1247
|
-
}
|
|
1248
|
-
interface SearchLeadsParams extends PaginationQueryDto {
|
|
1249
|
-
status?: LeadStatus;
|
|
1250
|
-
search?: string;
|
|
1251
|
-
assignedToUserId?: string;
|
|
1252
|
-
startDate?: string;
|
|
1253
|
-
endDate?: string;
|
|
1254
|
-
}
|
|
1255
|
-
interface LeadStats {
|
|
1256
|
-
total: number;
|
|
1257
|
-
byStatus: Record<LeadStatus, number>;
|
|
1258
|
-
conversionRate: number;
|
|
1259
|
-
averageResponseTime: number;
|
|
1260
|
-
bySource: Record<string, number>;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
declare class LeadsResource extends BaseResource {
|
|
1264
|
-
private basePath;
|
|
1265
|
-
createLead(data: CreateLeadDto, options?: RequestOptions): Promise<Lead>;
|
|
1266
|
-
searchLeads(params?: SearchLeadsParams, options?: RequestOptions): Promise<PaginatedResponseDto<Lead>>;
|
|
1267
|
-
getLead(id: string, options?: RequestOptions): Promise<Lead>;
|
|
1268
|
-
updateLead(id: string, data: UpdateLeadDto, options?: RequestOptions): Promise<Lead>;
|
|
1269
|
-
getLeadStats(options?: RequestOptions): Promise<LeadStats>;
|
|
1270
|
-
convertLead(id: string, options?: RequestOptions): Promise<{
|
|
1271
|
-
clientId: string;
|
|
1272
|
-
}>;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
1133
|
/**
|
|
1276
1134
|
* Asset models for file management
|
|
1277
1135
|
*/
|
|
@@ -1556,33 +1414,17 @@ interface CheckInSystemFeatures {
|
|
|
1556
1414
|
trackCheckInTime: boolean;
|
|
1557
1415
|
allowMultiplePerDay: boolean;
|
|
1558
1416
|
}
|
|
1559
|
-
interface EvaluationSystemFeatures {
|
|
1560
|
-
enabled: boolean;
|
|
1561
|
-
trackMeasurements: boolean;
|
|
1562
|
-
trackBodyComposition: boolean;
|
|
1563
|
-
trackPerformance: boolean;
|
|
1564
|
-
defaultFrequencyDays: number;
|
|
1565
|
-
}
|
|
1566
|
-
interface LeadManagementFeatures {
|
|
1567
|
-
enabled: boolean;
|
|
1568
|
-
publicCatalogListing: boolean;
|
|
1569
|
-
enableOnlineForm: boolean;
|
|
1570
|
-
autoAssignLeads: boolean;
|
|
1571
|
-
}
|
|
1572
1417
|
interface NotificationSettings {
|
|
1573
1418
|
emailEnabled: boolean;
|
|
1574
1419
|
smsEnabled: boolean;
|
|
1575
1420
|
welcomeEmails: boolean;
|
|
1576
1421
|
contractExpiryAlerts: boolean;
|
|
1577
|
-
evaluationReminders: boolean;
|
|
1578
1422
|
}
|
|
1579
1423
|
interface ConfigureFeaturesData {
|
|
1580
1424
|
gymId: string;
|
|
1581
1425
|
clientManagement: ClientManagementFeatures;
|
|
1582
1426
|
membershipManagement: MembershipManagementFeatures;
|
|
1583
1427
|
checkInSystem: CheckInSystemFeatures;
|
|
1584
|
-
evaluationSystem: EvaluationSystemFeatures;
|
|
1585
|
-
leadManagement: LeadManagementFeatures;
|
|
1586
1428
|
notifications: NotificationSettings;
|
|
1587
1429
|
}
|
|
1588
1430
|
interface CompleteGuidedSetupData {
|
|
@@ -1676,12 +1518,9 @@ interface CreateProductDto {
|
|
|
1676
1518
|
description?: string;
|
|
1677
1519
|
price: number;
|
|
1678
1520
|
stock?: number;
|
|
1679
|
-
minStock?: number;
|
|
1680
|
-
maxStock?: number;
|
|
1681
1521
|
categoryId?: string;
|
|
1682
1522
|
imageId?: string;
|
|
1683
1523
|
status?: 'active' | 'inactive';
|
|
1684
|
-
trackInventory?: 'none' | 'simple' | 'advanced' | 'capacity';
|
|
1685
1524
|
}
|
|
1686
1525
|
interface CreateServiceDto {
|
|
1687
1526
|
name: string;
|
|
@@ -1695,12 +1534,9 @@ interface UpdateProductDto {
|
|
|
1695
1534
|
description?: string;
|
|
1696
1535
|
price?: number;
|
|
1697
1536
|
stock?: number;
|
|
1698
|
-
minStock?: number;
|
|
1699
|
-
maxStock?: number;
|
|
1700
1537
|
categoryId?: string;
|
|
1701
1538
|
imageId?: string;
|
|
1702
1539
|
status?: 'active' | 'inactive';
|
|
1703
|
-
trackInventory?: 'none' | 'simple' | 'advanced' | 'capacity';
|
|
1704
1540
|
}
|
|
1705
1541
|
interface UpdateStockDto {
|
|
1706
1542
|
quantity: number;
|
|
@@ -1739,7 +1575,7 @@ interface Product {
|
|
|
1739
1575
|
saleItems: number;
|
|
1740
1576
|
};
|
|
1741
1577
|
}
|
|
1742
|
-
interface SearchProductsParams
|
|
1578
|
+
interface SearchProductsParams {
|
|
1743
1579
|
search?: string;
|
|
1744
1580
|
categoryId?: string;
|
|
1745
1581
|
type?: 'Product' | 'Service';
|
|
@@ -1780,7 +1616,7 @@ declare class ProductsResource extends BaseResource {
|
|
|
1780
1616
|
deleteCategory(id: string, options?: RequestOptions): Promise<void>;
|
|
1781
1617
|
createProduct(data: CreateProductDto, options?: RequestOptions): Promise<Product>;
|
|
1782
1618
|
createService(data: CreateServiceDto, options?: RequestOptions): Promise<Product>;
|
|
1783
|
-
searchProducts(params?: SearchProductsParams, options?: RequestOptions): Promise<
|
|
1619
|
+
searchProducts(params?: SearchProductsParams, options?: RequestOptions): Promise<Product[]>;
|
|
1784
1620
|
getProduct(id: string, options?: RequestOptions): Promise<Product>;
|
|
1785
1621
|
updateProduct(id: string, data: UpdateProductDto, options?: RequestOptions): Promise<Product>;
|
|
1786
1622
|
deleteProduct(id: string, options?: RequestOptions): Promise<void>;
|
|
@@ -2267,7 +2103,7 @@ interface PaymentMethod {
|
|
|
2267
2103
|
email: string;
|
|
2268
2104
|
} | null;
|
|
2269
2105
|
}
|
|
2270
|
-
interface SearchPaymentMethodsParams
|
|
2106
|
+
interface SearchPaymentMethodsParams {
|
|
2271
2107
|
search?: string;
|
|
2272
2108
|
enabledOnly?: boolean;
|
|
2273
2109
|
code?: string;
|
|
@@ -2281,7 +2117,7 @@ interface PaymentMethodStats {
|
|
|
2281
2117
|
declare class PaymentMethodsResource extends BaseResource {
|
|
2282
2118
|
private basePath;
|
|
2283
2119
|
createPaymentMethod(data: CreatePaymentMethodDto, options?: RequestOptions): Promise<PaymentMethod>;
|
|
2284
|
-
searchPaymentMethods(params?: SearchPaymentMethodsParams, options?: RequestOptions): Promise<
|
|
2120
|
+
searchPaymentMethods(params?: SearchPaymentMethodsParams, options?: RequestOptions): Promise<PaymentMethod[]>;
|
|
2285
2121
|
getPaymentMethod(id: string, options?: RequestOptions): Promise<PaymentMethod>;
|
|
2286
2122
|
updatePaymentMethod(id: string, data: UpdatePaymentMethodDto, options?: RequestOptions): Promise<PaymentMethod>;
|
|
2287
2123
|
deletePaymentMethod(id: string, options?: RequestOptions): Promise<void>;
|
|
@@ -2492,10 +2328,8 @@ declare class GymSpaceSdk {
|
|
|
2492
2328
|
membershipPlans: MembershipPlansResource;
|
|
2493
2329
|
contracts: ContractsResource;
|
|
2494
2330
|
dashboard: DashboardResource;
|
|
2495
|
-
evaluations: EvaluationsResource;
|
|
2496
2331
|
checkIns: CheckInsResource;
|
|
2497
2332
|
invitations: InvitationsResource;
|
|
2498
|
-
leads: LeadsResource;
|
|
2499
2333
|
assets: AssetsResource;
|
|
2500
2334
|
files: FilesResource;
|
|
2501
2335
|
publicCatalog: PublicCatalogResource;
|
|
@@ -2543,6 +2377,10 @@ declare class GymSpaceSdk {
|
|
|
2543
2377
|
* Automatically uses Expo fetch if set
|
|
2544
2378
|
*/
|
|
2545
2379
|
createAgentFetch(): (path: string, options?: RequestInit) => Promise<Response>;
|
|
2380
|
+
/**
|
|
2381
|
+
* Set callback for when tokens are refreshed by backend
|
|
2382
|
+
*/
|
|
2383
|
+
setOnTokenRefreshed(callback: (accessToken: string, refreshToken?: string) => void): void;
|
|
2546
2384
|
/**
|
|
2547
2385
|
* Get the underlying API client
|
|
2548
2386
|
*/
|
|
@@ -2576,4 +2414,4 @@ declare class NetworkError extends GymSpaceError {
|
|
|
2576
2414
|
constructor(message?: string);
|
|
2577
2415
|
}
|
|
2578
2416
|
|
|
2579
|
-
export { type ActivateRenewalDto, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BusinessHours, type CancelSubscriptionDto, type CatalogGym, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInListResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, ClientsResource, type CollaboratorRoleDto, CollaboratorsResource, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, ContractsResource, type ContractsRevenue, type CreateCheckInDto, type CreateClientDto, type CreateContractDto, type
|
|
2417
|
+
export { type ActivateRenewalDto, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BusinessHours, type CancelSubscriptionDto, type CatalogGym, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInListResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, ClientsResource, type CollaboratorRoleDto, CollaboratorsResource, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, ContractsResource, type ContractsRevenue, type CreateCheckInDto, type CreateClientDto, type CreateContractDto, type CreateGymDto, type CreateMembershipPlanDto, type CreatePaymentMethodDto, type CreateProductCategoryDto, type CreateProductDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CurrentSessionResponse, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DisconnectResponse, type ExpiringContract, type FileResponseDto, FilesResource, type FreezeContractDto, type GetCheckInStatsParams, type GetClientCheckInHistoryParams, type GetContractsParams, type GetFeaturedGymsParams, type GetGymInvitationsParams, type GetMembershipPlansParams, type Gym, type GymAmenities, type GymSchedule, type GymSettings, type GymSocialMedia, type GymSpaceConfig, GymSpaceError, GymSpaceSdk, type GymStats, GymsResource, HealthResource, type HealthResponse, type InitializeConnectionResponse, type InvitationValidationResponse, InvitationsResource, type ListContactsResponse, type LoginDto, type LoginResponseDto, type MembershipManagementFeatures, type MembershipPlan, type MembershipPlanStats, MembershipPlansResource, NetworkError, type NewClients, NotFoundError, type NotificationSettings, OnboardingResource, type OnboardingResponse, type OnboardingStatus, OnboardingStep, type Organization, type OrganizationAdminDetails, type OrganizationStats, type OrganizationWithDetails, OrganizationsResource, type PaginatedResponse, type PaginatedResponseDto, type PaginationParams, type PaginationQueryDto, type PaySaleDto, type PaymentMethod, type PaymentMethodStats, PaymentMethodsResource, type PermissionsGroup, type PreviewTemplateResponse, type PriceDto, type PricingDto, type Product, type ProductCategory, ProductsResource, PublicCatalogResource, type ReadyResponse, type RegisterCollaboratorDto, type RegisterOwnerDto, type RenewContractDto, type RequestOptions, type RequestPasswordResetDto, type RequestPasswordResetResponseDto, type ResendResetCodeDto, type ResendResetCodeResponseDto, type ResendVerificationDto, type ResetPasswordDto, type ResetPasswordResponseDto, RolesResource, type Sale, type SaleItem, type SaleItemDto, SalesResource, type SalesRevenue, type SalesStats, type SearchCatalogParams, type SearchCheckInsParams, type SearchClientsParams, type SearchPaymentMethodsParams, type SearchProductsParams, type SearchSalesParams, type SearchSuppliersParams, type SearchTemplatesDto, type SearchWhatsAppMessagesDto, type SendWhatsAppMessageDto, type SocialMedia, type StartOnboardingData, type StartOnboardingResponse, type StockMovement, type Subscription, type SubscriptionHistoryDto, type SubscriptionPlan, type SubscriptionPlanDto, SubscriptionPlansResource, type SubscriptionStatusDto, SubscriptionsResource, type Supplier, SuppliersResource, type SuppliersStats, type TimeSlot, type TopSellingProduct, type UpdateClientDto, type UpdateGymDto, type UpdateGymScheduleDto, type UpdateGymSettingsData, type UpdateGymSocialMediaDto, type UpdateMembershipPlanDto, type UpdateOrganizationDto, type UpdatePaymentMethodDto, type UpdatePaymentStatusDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { PaginationParams as PaginationParams$1, ListCollaboratorsParams, Collaborator, UpdateCollaboratorDto, UpdateCollaboratorRoleDto, UpdateCollaboratorStatusDto, ActivityQueryParams, ActivityItem, StatsQueryParams, CollaboratorStats, Role, ContractStatus, CreateInvitationDto, Invitation, ValidateByCodeDto, AcceptInvitationDto
|
|
2
|
+
import { PaginationParams as PaginationParams$1, ListCollaboratorsParams, Collaborator, UpdateCollaboratorDto, UpdateCollaboratorRoleDto, UpdateCollaboratorStatusDto, ActivityQueryParams, ActivityItem, StatsQueryParams, CollaboratorStats, Role, ContractStatus, CreateInvitationDto, Invitation, ValidateByCodeDto, AcceptInvitationDto } from '@gymspace/shared';
|
|
3
3
|
export * from '@gymspace/shared';
|
|
4
4
|
|
|
5
5
|
interface GymSpaceConfig {
|
|
@@ -36,6 +36,7 @@ declare class ApiClient {
|
|
|
36
36
|
private axiosInstance;
|
|
37
37
|
private config;
|
|
38
38
|
private refreshToken;
|
|
39
|
+
private onTokenRefreshed?;
|
|
39
40
|
getAccessToken(): string | null;
|
|
40
41
|
constructor(config: GymSpaceConfig);
|
|
41
42
|
private setupInterceptors;
|
|
@@ -50,6 +51,14 @@ declare class ApiClient {
|
|
|
50
51
|
setAuthToken(token: string): void;
|
|
51
52
|
setRefreshToken(token: string | null): void;
|
|
52
53
|
getRefreshToken(): string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Set callback for when tokens are refreshed by backend
|
|
56
|
+
*/
|
|
57
|
+
setOnTokenRefreshed(callback: (accessToken: string, refreshToken?: string) => void): void;
|
|
58
|
+
/**
|
|
59
|
+
* Get the token refresh callback
|
|
60
|
+
*/
|
|
61
|
+
getOnTokenRefreshed(): ((accessToken: string, refreshToken?: string) => void) | undefined;
|
|
53
62
|
setGymId(gymId: string): void;
|
|
54
63
|
clearAuth(): void;
|
|
55
64
|
getBaseUrl(): string;
|
|
@@ -1024,99 +1033,6 @@ declare class DashboardResource extends BaseResource {
|
|
|
1024
1033
|
getCheckInsList(params?: DateRangeParams): Promise<CheckInsList>;
|
|
1025
1034
|
}
|
|
1026
1035
|
|
|
1027
|
-
interface CreateEvaluationDto {
|
|
1028
|
-
gymClientId: string;
|
|
1029
|
-
weight: number;
|
|
1030
|
-
height: number;
|
|
1031
|
-
bodyFatPercentage?: number;
|
|
1032
|
-
muscleMassPercentage?: number;
|
|
1033
|
-
measurements?: EvaluationMeasurements;
|
|
1034
|
-
healthMetrics?: EvaluationHealthMetrics;
|
|
1035
|
-
performanceMetrics?: EvaluationPerformanceMetrics;
|
|
1036
|
-
notes?: string;
|
|
1037
|
-
goals?: string;
|
|
1038
|
-
recommendations?: string;
|
|
1039
|
-
}
|
|
1040
|
-
interface UpdateEvaluationDto {
|
|
1041
|
-
gymClientId?: string;
|
|
1042
|
-
weight?: number;
|
|
1043
|
-
height?: number;
|
|
1044
|
-
bodyFatPercentage?: number;
|
|
1045
|
-
muscleMassPercentage?: number;
|
|
1046
|
-
measurements?: EvaluationMeasurements;
|
|
1047
|
-
healthMetrics?: EvaluationHealthMetrics;
|
|
1048
|
-
performanceMetrics?: EvaluationPerformanceMetrics;
|
|
1049
|
-
notes?: string;
|
|
1050
|
-
goals?: string;
|
|
1051
|
-
recommendations?: string;
|
|
1052
|
-
}
|
|
1053
|
-
interface EvaluationMeasurements {
|
|
1054
|
-
chest?: number;
|
|
1055
|
-
waist?: number;
|
|
1056
|
-
hips?: number;
|
|
1057
|
-
leftArm?: number;
|
|
1058
|
-
rightArm?: number;
|
|
1059
|
-
leftThigh?: number;
|
|
1060
|
-
rightThigh?: number;
|
|
1061
|
-
[key: string]: number | undefined;
|
|
1062
|
-
}
|
|
1063
|
-
interface EvaluationHealthMetrics {
|
|
1064
|
-
bloodPressure?: string;
|
|
1065
|
-
restingHeartRate?: number;
|
|
1066
|
-
vo2Max?: number;
|
|
1067
|
-
[key: string]: any;
|
|
1068
|
-
}
|
|
1069
|
-
interface EvaluationPerformanceMetrics {
|
|
1070
|
-
benchPress?: number;
|
|
1071
|
-
squat?: number;
|
|
1072
|
-
deadlift?: number;
|
|
1073
|
-
[key: string]: number | undefined;
|
|
1074
|
-
}
|
|
1075
|
-
interface Evaluation {
|
|
1076
|
-
id: string;
|
|
1077
|
-
gymId: string;
|
|
1078
|
-
gymClientId: string;
|
|
1079
|
-
evaluatorId: string;
|
|
1080
|
-
evaluationDate: string;
|
|
1081
|
-
weight: number;
|
|
1082
|
-
height: number;
|
|
1083
|
-
bmi: number;
|
|
1084
|
-
bodyFatPercentage?: number;
|
|
1085
|
-
muscleMassPercentage?: number;
|
|
1086
|
-
measurements?: EvaluationMeasurements;
|
|
1087
|
-
healthMetrics?: EvaluationHealthMetrics;
|
|
1088
|
-
performanceMetrics?: EvaluationPerformanceMetrics;
|
|
1089
|
-
notes?: string;
|
|
1090
|
-
goals?: string;
|
|
1091
|
-
recommendations?: string;
|
|
1092
|
-
createdAt: string;
|
|
1093
|
-
updatedAt: string;
|
|
1094
|
-
}
|
|
1095
|
-
interface GetClientEvaluationsParams extends PaginationQueryDto {
|
|
1096
|
-
}
|
|
1097
|
-
interface EvaluationReport {
|
|
1098
|
-
evaluation: Evaluation;
|
|
1099
|
-
client: any;
|
|
1100
|
-
previousEvaluation?: Evaluation;
|
|
1101
|
-
evolution?: {
|
|
1102
|
-
weight: number;
|
|
1103
|
-
bodyFat: number;
|
|
1104
|
-
muscleMass: number;
|
|
1105
|
-
measurements: Record<string, number>;
|
|
1106
|
-
};
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
declare class EvaluationsResource extends BaseResource {
|
|
1110
|
-
private basePath;
|
|
1111
|
-
createEvaluation(data: CreateEvaluationDto, options?: RequestOptions): Promise<Evaluation>;
|
|
1112
|
-
getEvaluation(id: string, options?: RequestOptions): Promise<Evaluation>;
|
|
1113
|
-
updateEvaluation(id: string, data: UpdateEvaluationDto, options?: RequestOptions): Promise<Evaluation>;
|
|
1114
|
-
deleteEvaluation(id: string, options?: RequestOptions): Promise<void>;
|
|
1115
|
-
getClientEvaluations(clientId: string, params?: GetClientEvaluationsParams, options?: RequestOptions): Promise<PaginatedResponseDto<Evaluation>>;
|
|
1116
|
-
getGymEvaluationStats(options?: RequestOptions): Promise<any>;
|
|
1117
|
-
generateEvaluationReport(id: string, options?: RequestOptions): Promise<EvaluationReport>;
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
1036
|
interface CreateCheckInDto {
|
|
1121
1037
|
gymClientId: string;
|
|
1122
1038
|
notes?: string;
|
|
@@ -1214,64 +1130,6 @@ declare class InvitationsResource extends BaseResource {
|
|
|
1214
1130
|
cancelInvitation(id: string, options?: RequestOptions): Promise<void>;
|
|
1215
1131
|
}
|
|
1216
1132
|
|
|
1217
|
-
interface CreateLeadDto {
|
|
1218
|
-
name: string;
|
|
1219
|
-
email: string;
|
|
1220
|
-
phone: string;
|
|
1221
|
-
gymId: string;
|
|
1222
|
-
message?: string;
|
|
1223
|
-
source?: string;
|
|
1224
|
-
metadata?: Record<string, any>;
|
|
1225
|
-
}
|
|
1226
|
-
interface UpdateLeadDto {
|
|
1227
|
-
status?: LeadStatus;
|
|
1228
|
-
notes?: string;
|
|
1229
|
-
assignedToUserId?: string;
|
|
1230
|
-
metadata?: Record<string, any>;
|
|
1231
|
-
}
|
|
1232
|
-
interface Lead {
|
|
1233
|
-
id: string;
|
|
1234
|
-
gymId: string;
|
|
1235
|
-
name: string;
|
|
1236
|
-
email: string;
|
|
1237
|
-
phone: string;
|
|
1238
|
-
status: LeadStatus;
|
|
1239
|
-
source?: string;
|
|
1240
|
-
message?: string;
|
|
1241
|
-
notes?: string;
|
|
1242
|
-
assignedToUserId?: string;
|
|
1243
|
-
convertedToClientId?: string;
|
|
1244
|
-
metadata?: Record<string, any>;
|
|
1245
|
-
createdAt: string;
|
|
1246
|
-
updatedAt: string;
|
|
1247
|
-
}
|
|
1248
|
-
interface SearchLeadsParams extends PaginationQueryDto {
|
|
1249
|
-
status?: LeadStatus;
|
|
1250
|
-
search?: string;
|
|
1251
|
-
assignedToUserId?: string;
|
|
1252
|
-
startDate?: string;
|
|
1253
|
-
endDate?: string;
|
|
1254
|
-
}
|
|
1255
|
-
interface LeadStats {
|
|
1256
|
-
total: number;
|
|
1257
|
-
byStatus: Record<LeadStatus, number>;
|
|
1258
|
-
conversionRate: number;
|
|
1259
|
-
averageResponseTime: number;
|
|
1260
|
-
bySource: Record<string, number>;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
declare class LeadsResource extends BaseResource {
|
|
1264
|
-
private basePath;
|
|
1265
|
-
createLead(data: CreateLeadDto, options?: RequestOptions): Promise<Lead>;
|
|
1266
|
-
searchLeads(params?: SearchLeadsParams, options?: RequestOptions): Promise<PaginatedResponseDto<Lead>>;
|
|
1267
|
-
getLead(id: string, options?: RequestOptions): Promise<Lead>;
|
|
1268
|
-
updateLead(id: string, data: UpdateLeadDto, options?: RequestOptions): Promise<Lead>;
|
|
1269
|
-
getLeadStats(options?: RequestOptions): Promise<LeadStats>;
|
|
1270
|
-
convertLead(id: string, options?: RequestOptions): Promise<{
|
|
1271
|
-
clientId: string;
|
|
1272
|
-
}>;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
1133
|
/**
|
|
1276
1134
|
* Asset models for file management
|
|
1277
1135
|
*/
|
|
@@ -1556,33 +1414,17 @@ interface CheckInSystemFeatures {
|
|
|
1556
1414
|
trackCheckInTime: boolean;
|
|
1557
1415
|
allowMultiplePerDay: boolean;
|
|
1558
1416
|
}
|
|
1559
|
-
interface EvaluationSystemFeatures {
|
|
1560
|
-
enabled: boolean;
|
|
1561
|
-
trackMeasurements: boolean;
|
|
1562
|
-
trackBodyComposition: boolean;
|
|
1563
|
-
trackPerformance: boolean;
|
|
1564
|
-
defaultFrequencyDays: number;
|
|
1565
|
-
}
|
|
1566
|
-
interface LeadManagementFeatures {
|
|
1567
|
-
enabled: boolean;
|
|
1568
|
-
publicCatalogListing: boolean;
|
|
1569
|
-
enableOnlineForm: boolean;
|
|
1570
|
-
autoAssignLeads: boolean;
|
|
1571
|
-
}
|
|
1572
1417
|
interface NotificationSettings {
|
|
1573
1418
|
emailEnabled: boolean;
|
|
1574
1419
|
smsEnabled: boolean;
|
|
1575
1420
|
welcomeEmails: boolean;
|
|
1576
1421
|
contractExpiryAlerts: boolean;
|
|
1577
|
-
evaluationReminders: boolean;
|
|
1578
1422
|
}
|
|
1579
1423
|
interface ConfigureFeaturesData {
|
|
1580
1424
|
gymId: string;
|
|
1581
1425
|
clientManagement: ClientManagementFeatures;
|
|
1582
1426
|
membershipManagement: MembershipManagementFeatures;
|
|
1583
1427
|
checkInSystem: CheckInSystemFeatures;
|
|
1584
|
-
evaluationSystem: EvaluationSystemFeatures;
|
|
1585
|
-
leadManagement: LeadManagementFeatures;
|
|
1586
1428
|
notifications: NotificationSettings;
|
|
1587
1429
|
}
|
|
1588
1430
|
interface CompleteGuidedSetupData {
|
|
@@ -1676,12 +1518,9 @@ interface CreateProductDto {
|
|
|
1676
1518
|
description?: string;
|
|
1677
1519
|
price: number;
|
|
1678
1520
|
stock?: number;
|
|
1679
|
-
minStock?: number;
|
|
1680
|
-
maxStock?: number;
|
|
1681
1521
|
categoryId?: string;
|
|
1682
1522
|
imageId?: string;
|
|
1683
1523
|
status?: 'active' | 'inactive';
|
|
1684
|
-
trackInventory?: 'none' | 'simple' | 'advanced' | 'capacity';
|
|
1685
1524
|
}
|
|
1686
1525
|
interface CreateServiceDto {
|
|
1687
1526
|
name: string;
|
|
@@ -1695,12 +1534,9 @@ interface UpdateProductDto {
|
|
|
1695
1534
|
description?: string;
|
|
1696
1535
|
price?: number;
|
|
1697
1536
|
stock?: number;
|
|
1698
|
-
minStock?: number;
|
|
1699
|
-
maxStock?: number;
|
|
1700
1537
|
categoryId?: string;
|
|
1701
1538
|
imageId?: string;
|
|
1702
1539
|
status?: 'active' | 'inactive';
|
|
1703
|
-
trackInventory?: 'none' | 'simple' | 'advanced' | 'capacity';
|
|
1704
1540
|
}
|
|
1705
1541
|
interface UpdateStockDto {
|
|
1706
1542
|
quantity: number;
|
|
@@ -1739,7 +1575,7 @@ interface Product {
|
|
|
1739
1575
|
saleItems: number;
|
|
1740
1576
|
};
|
|
1741
1577
|
}
|
|
1742
|
-
interface SearchProductsParams
|
|
1578
|
+
interface SearchProductsParams {
|
|
1743
1579
|
search?: string;
|
|
1744
1580
|
categoryId?: string;
|
|
1745
1581
|
type?: 'Product' | 'Service';
|
|
@@ -1780,7 +1616,7 @@ declare class ProductsResource extends BaseResource {
|
|
|
1780
1616
|
deleteCategory(id: string, options?: RequestOptions): Promise<void>;
|
|
1781
1617
|
createProduct(data: CreateProductDto, options?: RequestOptions): Promise<Product>;
|
|
1782
1618
|
createService(data: CreateServiceDto, options?: RequestOptions): Promise<Product>;
|
|
1783
|
-
searchProducts(params?: SearchProductsParams, options?: RequestOptions): Promise<
|
|
1619
|
+
searchProducts(params?: SearchProductsParams, options?: RequestOptions): Promise<Product[]>;
|
|
1784
1620
|
getProduct(id: string, options?: RequestOptions): Promise<Product>;
|
|
1785
1621
|
updateProduct(id: string, data: UpdateProductDto, options?: RequestOptions): Promise<Product>;
|
|
1786
1622
|
deleteProduct(id: string, options?: RequestOptions): Promise<void>;
|
|
@@ -2267,7 +2103,7 @@ interface PaymentMethod {
|
|
|
2267
2103
|
email: string;
|
|
2268
2104
|
} | null;
|
|
2269
2105
|
}
|
|
2270
|
-
interface SearchPaymentMethodsParams
|
|
2106
|
+
interface SearchPaymentMethodsParams {
|
|
2271
2107
|
search?: string;
|
|
2272
2108
|
enabledOnly?: boolean;
|
|
2273
2109
|
code?: string;
|
|
@@ -2281,7 +2117,7 @@ interface PaymentMethodStats {
|
|
|
2281
2117
|
declare class PaymentMethodsResource extends BaseResource {
|
|
2282
2118
|
private basePath;
|
|
2283
2119
|
createPaymentMethod(data: CreatePaymentMethodDto, options?: RequestOptions): Promise<PaymentMethod>;
|
|
2284
|
-
searchPaymentMethods(params?: SearchPaymentMethodsParams, options?: RequestOptions): Promise<
|
|
2120
|
+
searchPaymentMethods(params?: SearchPaymentMethodsParams, options?: RequestOptions): Promise<PaymentMethod[]>;
|
|
2285
2121
|
getPaymentMethod(id: string, options?: RequestOptions): Promise<PaymentMethod>;
|
|
2286
2122
|
updatePaymentMethod(id: string, data: UpdatePaymentMethodDto, options?: RequestOptions): Promise<PaymentMethod>;
|
|
2287
2123
|
deletePaymentMethod(id: string, options?: RequestOptions): Promise<void>;
|
|
@@ -2492,10 +2328,8 @@ declare class GymSpaceSdk {
|
|
|
2492
2328
|
membershipPlans: MembershipPlansResource;
|
|
2493
2329
|
contracts: ContractsResource;
|
|
2494
2330
|
dashboard: DashboardResource;
|
|
2495
|
-
evaluations: EvaluationsResource;
|
|
2496
2331
|
checkIns: CheckInsResource;
|
|
2497
2332
|
invitations: InvitationsResource;
|
|
2498
|
-
leads: LeadsResource;
|
|
2499
2333
|
assets: AssetsResource;
|
|
2500
2334
|
files: FilesResource;
|
|
2501
2335
|
publicCatalog: PublicCatalogResource;
|
|
@@ -2543,6 +2377,10 @@ declare class GymSpaceSdk {
|
|
|
2543
2377
|
* Automatically uses Expo fetch if set
|
|
2544
2378
|
*/
|
|
2545
2379
|
createAgentFetch(): (path: string, options?: RequestInit) => Promise<Response>;
|
|
2380
|
+
/**
|
|
2381
|
+
* Set callback for when tokens are refreshed by backend
|
|
2382
|
+
*/
|
|
2383
|
+
setOnTokenRefreshed(callback: (accessToken: string, refreshToken?: string) => void): void;
|
|
2546
2384
|
/**
|
|
2547
2385
|
* Get the underlying API client
|
|
2548
2386
|
*/
|
|
@@ -2576,4 +2414,4 @@ declare class NetworkError extends GymSpaceError {
|
|
|
2576
2414
|
constructor(message?: string);
|
|
2577
2415
|
}
|
|
2578
2416
|
|
|
2579
|
-
export { type ActivateRenewalDto, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BusinessHours, type CancelSubscriptionDto, type CatalogGym, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInListResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, ClientsResource, type CollaboratorRoleDto, CollaboratorsResource, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, ContractsResource, type ContractsRevenue, type CreateCheckInDto, type CreateClientDto, type CreateContractDto, type
|
|
2417
|
+
export { type ActivateRenewalDto, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BusinessHours, type CancelSubscriptionDto, type CatalogGym, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInListResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, ClientsResource, type CollaboratorRoleDto, CollaboratorsResource, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, ContractsResource, type ContractsRevenue, type CreateCheckInDto, type CreateClientDto, type CreateContractDto, type CreateGymDto, type CreateMembershipPlanDto, type CreatePaymentMethodDto, type CreateProductCategoryDto, type CreateProductDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CurrentSessionResponse, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DisconnectResponse, type ExpiringContract, type FileResponseDto, FilesResource, type FreezeContractDto, type GetCheckInStatsParams, type GetClientCheckInHistoryParams, type GetContractsParams, type GetFeaturedGymsParams, type GetGymInvitationsParams, type GetMembershipPlansParams, type Gym, type GymAmenities, type GymSchedule, type GymSettings, type GymSocialMedia, type GymSpaceConfig, GymSpaceError, GymSpaceSdk, type GymStats, GymsResource, HealthResource, type HealthResponse, type InitializeConnectionResponse, type InvitationValidationResponse, InvitationsResource, type ListContactsResponse, type LoginDto, type LoginResponseDto, type MembershipManagementFeatures, type MembershipPlan, type MembershipPlanStats, MembershipPlansResource, NetworkError, type NewClients, NotFoundError, type NotificationSettings, OnboardingResource, type OnboardingResponse, type OnboardingStatus, OnboardingStep, type Organization, type OrganizationAdminDetails, type OrganizationStats, type OrganizationWithDetails, OrganizationsResource, type PaginatedResponse, type PaginatedResponseDto, type PaginationParams, type PaginationQueryDto, type PaySaleDto, type PaymentMethod, type PaymentMethodStats, PaymentMethodsResource, type PermissionsGroup, type PreviewTemplateResponse, type PriceDto, type PricingDto, type Product, type ProductCategory, ProductsResource, PublicCatalogResource, type ReadyResponse, type RegisterCollaboratorDto, type RegisterOwnerDto, type RenewContractDto, type RequestOptions, type RequestPasswordResetDto, type RequestPasswordResetResponseDto, type ResendResetCodeDto, type ResendResetCodeResponseDto, type ResendVerificationDto, type ResetPasswordDto, type ResetPasswordResponseDto, RolesResource, type Sale, type SaleItem, type SaleItemDto, SalesResource, type SalesRevenue, type SalesStats, type SearchCatalogParams, type SearchCheckInsParams, type SearchClientsParams, type SearchPaymentMethodsParams, type SearchProductsParams, type SearchSalesParams, type SearchSuppliersParams, type SearchTemplatesDto, type SearchWhatsAppMessagesDto, type SendWhatsAppMessageDto, type SocialMedia, type StartOnboardingData, type StartOnboardingResponse, type StockMovement, type Subscription, type SubscriptionHistoryDto, type SubscriptionPlan, type SubscriptionPlanDto, SubscriptionPlansResource, type SubscriptionStatusDto, SubscriptionsResource, type Supplier, SuppliersResource, type SuppliersStats, type TimeSlot, type TopSellingProduct, type UpdateClientDto, type UpdateGymDto, type UpdateGymScheduleDto, type UpdateGymSettingsData, type UpdateGymSocialMediaDto, type UpdateMembershipPlanDto, type UpdateOrganizationDto, type UpdatePaymentMethodDto, type UpdatePaymentStatusDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };
|