@gymspace/sdk 1.9.1 → 1.9.3

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 CHANGED
@@ -1,8 +1,30 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { PaginationParams as PaginationParams$1, ListCollaboratorsParams, Collaborator, UpdateCollaboratorDto, UpdateCollaboratorRoleDto, UpdateCollaboratorStatusDto, ActivityQueryParams, ActivityItem, StatsQueryParams, CollaboratorStats, Role, ContractStatus, CancellationReason, SuspensionType, CreateInvitationDto, Invitation, ValidateByCodeDto, ValidateByTokenDto, AcceptInvitationDto, BulkMessage, BulkMessageVariable } from '@gymspace/shared';
2
+ import { TemplateCode as TemplateCode$2, ListCollaboratorsParams, Collaborator, UpdateCollaboratorDto, UpdateCollaboratorRoleDto, UpdateCollaboratorStatusDto, ActivityQueryParams, ActivityItem, StatsQueryParams, CollaboratorStats, Role, ContractStatus, ContractInstallmentStatus, CancellationReason, SuspensionType, CreateInvitationDto, Invitation, ValidateByCodeDto, ValidateByTokenDto, AcceptInvitationDto, BulkMessage, BulkMessageVariable, FeatureType } from '@gymspace/shared';
3
3
  export * from '@gymspace/shared';
4
4
  export { BulkMessage, BulkMessageVariable } from '@gymspace/shared';
5
5
 
6
+ declare class GymSpaceError extends Error {
7
+ statusCode?: number;
8
+ code?: string;
9
+ details?: any;
10
+ constructor(message: string, statusCode?: number, code?: string, details?: any);
11
+ }
12
+ declare class AuthenticationError extends GymSpaceError {
13
+ constructor(message?: string);
14
+ }
15
+ declare class AuthorizationError extends GymSpaceError {
16
+ constructor(message?: string);
17
+ }
18
+ declare class NotFoundError extends GymSpaceError {
19
+ constructor(resource: string, id?: string);
20
+ }
21
+ declare class ValidationError extends GymSpaceError {
22
+ constructor(message: string, errors?: any);
23
+ }
24
+ declare class NetworkError extends GymSpaceError {
25
+ constructor(message?: string);
26
+ }
27
+
6
28
  interface GymSpaceConfig {
7
29
  baseURL: string;
8
30
  apiKey?: string;
@@ -12,6 +34,7 @@ interface GymSpaceConfig {
12
34
  }
13
35
  interface RequestOptions {
14
36
  gymId?: string;
37
+ gymContextMode?: 'scoped' | 'global';
15
38
  headers?: Record<string, string>;
16
39
  skipAuth?: boolean;
17
40
  }
@@ -31,14 +54,17 @@ interface PaginatedResponse<T> {
31
54
  };
32
55
  }
33
56
  type PaginatedResponseDto<T> = PaginatedResponse<T>;
34
-
35
- type PaginationQueryDto = PaginationParams$1;
57
+ type PaginationQueryDto = PaginationParams;
36
58
 
37
59
  declare class ApiClient {
38
60
  private axiosInstance;
39
61
  private config;
40
62
  private refreshToken;
63
+ private rememberMe;
41
64
  private onTokenRefreshed?;
65
+ private onAuthFailure?;
66
+ private isRefreshing;
67
+ private failedRequestsQueue;
42
68
  getAccessToken(): string | null;
43
69
  constructor(config: GymSpaceConfig);
44
70
  private setupInterceptors;
@@ -53,6 +79,14 @@ declare class ApiClient {
53
79
  setAuthToken(token: string): void;
54
80
  setRefreshToken(token: string | null): void;
55
81
  getRefreshToken(): string | null;
82
+ /**
83
+ * Set rememberMe preference from login response
84
+ */
85
+ setRememberMe(value: boolean): void;
86
+ /**
87
+ * Get rememberMe preference
88
+ */
89
+ getRememberMe(): boolean | null;
56
90
  /**
57
91
  * Set callback for when tokens are refreshed by backend
58
92
  */
@@ -61,9 +95,31 @@ declare class ApiClient {
61
95
  * Get the token refresh callback
62
96
  */
63
97
  getOnTokenRefreshed(): ((accessToken: string, refreshToken?: string) => void) | undefined;
98
+ /**
99
+ * Set callback for when authentication fails irrecoverably
100
+ */
101
+ setOnAuthFailure(callback: (error: AuthenticationError) => void): void;
64
102
  setGymId(gymId: string): void;
65
103
  clearAuth(): void;
66
104
  getBaseUrl(): string;
105
+ /**
106
+ * Get config for creating scoped SDK instances
107
+ * Exposes minimal config needed without exposing internal structure
108
+ */
109
+ getConfigForScoped(): {
110
+ baseURL: string;
111
+ apiKey?: string;
112
+ refreshToken?: string;
113
+ headers?: Record<string, string>;
114
+ };
115
+ /**
116
+ * Get axios instance defaults for scoped SDK
117
+ */
118
+ getAxiosDefaults(): Record<string, unknown>;
119
+ /**
120
+ * Set common headers on axios instance (for scoped SDK setup)
121
+ */
122
+ setCommonHeaders(headers: Record<string, string>): void;
67
123
  }
68
124
 
69
125
  interface RegisterOwnerDto {
@@ -80,6 +136,7 @@ interface RegisterOwnerDto {
80
136
  interface LoginDto {
81
137
  email: string;
82
138
  password: string;
139
+ rememberMe?: boolean;
83
140
  }
84
141
  interface LoginResponseDto {
85
142
  access_token: string;
@@ -167,9 +224,7 @@ interface CollaboratorRoleDto {
167
224
  gymId: string;
168
225
  gymName: string;
169
226
  }
170
- interface CurrentSessionResponse {
171
- accessToken: string;
172
- refreshToken?: string;
227
+ interface CurrentSessionBase {
173
228
  user: {
174
229
  id: string;
175
230
  email: string;
@@ -227,6 +282,131 @@ interface CurrentSessionResponse {
227
282
  collaborator?: CollaboratorRoleDto;
228
283
  isAuthenticated: boolean;
229
284
  }
285
+ type CurrentSessionResponse = CurrentSessionBase & {
286
+ access_token: string;
287
+ refresh_token?: string;
288
+ accessToken?: string;
289
+ refreshToken?: string;
290
+ };
291
+ type CurrentSessionResponseLegacy = CurrentSessionBase & {
292
+ accessToken: string;
293
+ refreshToken?: string;
294
+ };
295
+
296
+ interface CreateMemberInviteDto {
297
+ sendWhatsApp?: boolean;
298
+ customMessage?: string;
299
+ expiresInHours?: number;
300
+ }
301
+ interface MemberInvite {
302
+ id: string;
303
+ token: string;
304
+ code: string;
305
+ status: 'pending' | 'used' | 'expired';
306
+ expiresAt: string;
307
+ usedAt?: string;
308
+ createdAt: string;
309
+ }
310
+ interface MemberInviteResponse {
311
+ invite: MemberInvite;
312
+ whatsappSent?: boolean;
313
+ }
314
+ interface MemberInviteValidationResponse {
315
+ valid: boolean;
316
+ status: 'pending' | 'used' | 'expired';
317
+ gym: {
318
+ name: string;
319
+ logo?: string;
320
+ address?: string;
321
+ slug: string;
322
+ };
323
+ client: {
324
+ email: string;
325
+ name: string;
326
+ };
327
+ invite: {
328
+ id: string;
329
+ expiresAt: string;
330
+ status: 'pending' | 'used' | 'expired';
331
+ };
332
+ }
333
+ interface MemberPinLoginDto {
334
+ identifier: string;
335
+ identifierType: 'phone' | 'email' | 'document';
336
+ documentType?: string;
337
+ pin: string;
338
+ gymSlug?: string;
339
+ gymId?: string;
340
+ rememberMe?: boolean;
341
+ }
342
+ interface SetPinDto {
343
+ token: string;
344
+ pin: string;
345
+ pinConfirm: string;
346
+ }
347
+ interface MemberLoginResponse {
348
+ accessToken: string;
349
+ refreshToken: string;
350
+ member: MemberProfile;
351
+ }
352
+ interface MemberProfile {
353
+ id: string;
354
+ gymId: string;
355
+ clientNumber: string;
356
+ name: string;
357
+ phone?: string;
358
+ email?: string;
359
+ documentValue?: string;
360
+ documentType?: string;
361
+ status: 'active' | 'inactive';
362
+ pinSet: boolean;
363
+ lastLoginAt?: string;
364
+ createdAt: string;
365
+ updatedAt: string;
366
+ }
367
+ interface MemberMembership {
368
+ contract: {
369
+ id: string;
370
+ status: string;
371
+ startDate: string;
372
+ endDate: string;
373
+ };
374
+ plan: {
375
+ id: string;
376
+ name: string;
377
+ description?: string;
378
+ };
379
+ status: 'active' | 'inactive' | 'suspended' | 'cancelled';
380
+ daysRemaining: number;
381
+ checkInsRemaining?: number;
382
+ }
383
+ interface MemberCheckIn {
384
+ id: string;
385
+ timestamp: string;
386
+ createdAt: string;
387
+ contract?: {
388
+ id: string;
389
+ planName: string;
390
+ };
391
+ }
392
+ interface QrTokenResponse {
393
+ qrToken: string;
394
+ expiresAt: string;
395
+ }
396
+ interface CheckInResponse {
397
+ success: boolean;
398
+ message: string;
399
+ checkIn: {
400
+ id: string;
401
+ gymClientId: string;
402
+ gymId: string;
403
+ timestamp: string;
404
+ createdAt: string;
405
+ };
406
+ }
407
+ interface CheckInDto {
408
+ qrToken: string;
409
+ }
230
410
 
231
411
  interface SubscriptionPlan {
232
412
  id: string;
@@ -314,7 +494,7 @@ declare abstract class BaseResource {
314
494
  declare class AuthResource extends BaseResource {
315
495
  private basePath;
316
496
  registerOwner(data: RegisterOwnerDto, options?: RequestOptions): Promise<void>;
317
- login(data: LoginDto, options?: RequestOptions): Promise<LoginResponseDto>;
497
+ login(data: LoginDto, options?: RequestOptions, rememberMe?: boolean): Promise<LoginResponseDto>;
318
498
  refreshToken(refreshToken: string, options?: RequestOptions): Promise<LoginResponseDto>;
319
499
  verifyEmail(data: VerifyEmailDto, options?: RequestOptions): Promise<{
320
500
  success: boolean;
@@ -335,6 +515,25 @@ declare class AuthResource extends BaseResource {
335
515
  verifyResetCode(data: VerifyResetCodeDto, options?: RequestOptions): Promise<VerifyResetCodeResponseDto>;
336
516
  resetPassword(data: ResetPasswordDto, options?: RequestOptions): Promise<ResetPasswordResponseDto>;
337
517
  resendResetCode(data: ResendResetCodeDto, options?: RequestOptions): Promise<ResendResetCodeResponseDto>;
518
+ /**
519
+ * Member login with PIN
520
+ * POST /auth/members/pin/login
521
+ */
522
+ memberPinLogin(data: MemberPinLoginDto, options?: RequestOptions): Promise<MemberLoginResponse>;
523
+ /**
524
+ * Consume member invite and set initial PIN
525
+ * POST /auth/members/invite/consume
526
+ */
527
+ consumeMemberInvite(data: SetPinDto, options?: RequestOptions): Promise<{
528
+ success: boolean;
529
+ message: string;
530
+ gymSlug?: string;
531
+ }>;
532
+ /**
533
+ * Refresh member access token
534
+ * POST /auth/members/refresh
535
+ */
536
+ refreshMemberToken(refreshToken: string, options?: RequestOptions): Promise<MemberLoginResponse>;
338
537
  }
339
538
 
340
539
  interface UpdateOrganizationDto {
@@ -509,6 +708,15 @@ interface ContractSettings {
509
708
  expiringSoonDays?: number;
510
709
  gracePeriodDays?: number;
511
710
  enableExpirationNotifications?: boolean;
711
+ installmentsEnabled?: boolean;
712
+ defaultInstallmentsCount?: number;
713
+ defaultDownPaymentAmount?: number;
714
+ allowContractInstallmentOverride?: boolean;
715
+ allowReminderOverride?: boolean;
716
+ reminderDaysBeforeDue?: number[];
717
+ reminderDaysAfterDue?: number[];
718
+ reminderTemplateCode?: TemplateCode$2;
719
+ debtAccessPolicy?: 'allow_always' | 'block_overdue';
512
720
  }
513
721
  /**
514
722
  * Update gym inventory settings DTO
@@ -525,6 +733,15 @@ interface UpdateGymContractSettingsDto {
525
733
  expiringSoonDays?: number;
526
734
  gracePeriodDays?: number;
527
735
  enableExpirationNotifications?: boolean;
736
+ installmentsEnabled?: boolean;
737
+ defaultInstallmentsCount?: number;
738
+ defaultDownPaymentAmount?: number;
739
+ allowContractInstallmentOverride?: boolean;
740
+ allowReminderOverride?: boolean;
741
+ reminderDaysBeforeDue?: number[];
742
+ reminderDaysAfterDue?: number[];
743
+ reminderTemplateCode?: TemplateCode$2;
744
+ debtAccessPolicy?: 'allow_always' | 'block_overdue';
528
745
  }
529
746
  interface Gym {
530
747
  id: string;
@@ -781,6 +998,8 @@ interface Client {
781
998
  medicalConditions?: string;
782
999
  createdAt: string;
783
1000
  updatedAt: string;
1001
+ pinSet?: boolean;
1002
+ lastLoginAt?: string;
784
1003
  contracts?: Array<{
785
1004
  id: string;
786
1005
  status: string;
@@ -851,6 +1070,44 @@ interface SearchClientsParams {
851
1070
  includeTags?: boolean;
852
1071
  }
853
1072
 
1073
+ interface SearchGlobalResult {
1074
+ found: boolean;
1075
+ clientData?: {
1076
+ id: string;
1077
+ name: string;
1078
+ photoUrl?: string;
1079
+ documentValue: string;
1080
+ phone?: string;
1081
+ email?: string;
1082
+ gymId: string;
1083
+ gymName: string;
1084
+ status: 'active' | 'inactive';
1085
+ };
1086
+ contractData?: {
1087
+ id: string;
1088
+ contractNumber: string;
1089
+ planName: string;
1090
+ status: 'active' | 'expired' | 'cancelled' | 'suspended';
1091
+ endDate: string;
1092
+ allowedGymIds: string[];
1093
+ };
1094
+ canAccessCurrentGym: boolean;
1095
+ currentGymAccessStatus?: string;
1096
+ }
1097
+ interface ImportFromGymResult {
1098
+ localClientId: string;
1099
+ imported: boolean;
1100
+ clientData: {
1101
+ id: string;
1102
+ name: string;
1103
+ photoUrl?: string;
1104
+ documentValue: string;
1105
+ phone?: string;
1106
+ email?: string;
1107
+ birthDate?: string;
1108
+ };
1109
+ message: string;
1110
+ }
854
1111
  declare class ClientsResource extends BaseResource {
855
1112
  private basePath;
856
1113
  createClient(data: CreateClientDto, options?: RequestOptions): Promise<Client>;
@@ -863,6 +1120,12 @@ declare class ClientsResource extends BaseResource {
863
1120
  getClientStatsByCategory(id: string, category: string, options?: RequestOptions): Promise<ClientStat[]>;
864
1121
  getAvailableStats(options?: RequestOptions): Promise<ClientStat[]>;
865
1122
  searchClientsForCheckIn(params?: SearchClientsParams, options?: RequestOptions): Promise<Client[]>;
1123
+ searchGlobal(params: {
1124
+ document: string;
1125
+ }, options?: RequestOptions): Promise<SearchGlobalResult>;
1126
+ importFromGym(params: {
1127
+ sourceGymClientId: string;
1128
+ }, options?: RequestOptions): Promise<ImportFromGymResult>;
866
1129
  }
867
1130
 
868
1131
  interface CreateMembershipPlanDto {
@@ -879,6 +1142,7 @@ interface CreateMembershipPlanDto {
879
1142
  features?: string[];
880
1143
  status?: 'active' | 'inactive' | 'archived';
881
1144
  assetsIds?: string[];
1145
+ allowAccessToGymIds?: string[];
882
1146
  }
883
1147
  interface UpdateMembershipPlanDto {
884
1148
  name?: string;
@@ -895,6 +1159,7 @@ interface UpdateMembershipPlanDto {
895
1159
  status?: 'active' | 'inactive' | 'archived';
896
1160
  isActive?: boolean;
897
1161
  assetsIds?: string[];
1162
+ allowAccessToGymIds?: string[];
898
1163
  }
899
1164
  interface MembershipPlan {
900
1165
  id: string;
@@ -920,6 +1185,7 @@ interface MembershipPlan {
920
1185
  status: 'active' | 'inactive' | 'archived';
921
1186
  isActive: boolean;
922
1187
  assetsIds?: string[];
1188
+ allowAccessToGymIds?: string[];
923
1189
  createdAt: string;
924
1190
  updatedAt: string;
925
1191
  _count?: {
@@ -1016,6 +1282,17 @@ interface CreateContractDto {
1016
1282
  customPrice?: number;
1017
1283
  receiptIds?: string[];
1018
1284
  metadata?: Record<string, any>;
1285
+ paymentPlan?: ContractPaymentPlanInput;
1286
+ }
1287
+ interface ContractInstallmentScheduleDto {
1288
+ dueDate: string;
1289
+ amount: number;
1290
+ }
1291
+ interface ContractPaymentPlanInput {
1292
+ installmentsCount?: number;
1293
+ downPaymentAmount?: number;
1294
+ firstDueDate?: string;
1295
+ schedule?: ContractInstallmentScheduleDto[];
1019
1296
  }
1020
1297
  interface RenewContractDto {
1021
1298
  startDate?: string;
@@ -1089,6 +1366,7 @@ interface Contract {
1089
1366
  contractDocumentId?: string | null;
1090
1367
  paymentReceiptIds?: string[] | null;
1091
1368
  receiptIds?: string[];
1369
+ accessGymIds?: string[];
1092
1370
  metadata?: Record<string, any>;
1093
1371
  createdByUserId?: string;
1094
1372
  updatedByUserId?: string | null;
@@ -1150,6 +1428,70 @@ interface Contract {
1150
1428
  email: string;
1151
1429
  };
1152
1430
  }
1431
+ interface ContractInstallment {
1432
+ id: string;
1433
+ contractId: string;
1434
+ paymentPlanId: string;
1435
+ installmentNumber: number;
1436
+ dueDate: string;
1437
+ amount: string;
1438
+ paidAmount: string;
1439
+ status: ContractInstallmentStatus;
1440
+ paidAt?: string | null;
1441
+ lastReminderAt?: string | null;
1442
+ createdAt: string;
1443
+ updatedAt: string;
1444
+ deletedAt?: string | null;
1445
+ }
1446
+ interface ContractPayment {
1447
+ id: string;
1448
+ contractId: string;
1449
+ installmentId?: string | null;
1450
+ paymentMethodId: string;
1451
+ amount: string;
1452
+ paidAt: string;
1453
+ receiptIds?: string[];
1454
+ notes?: string | null;
1455
+ createdByUserId: string;
1456
+ createdAt: string;
1457
+ updatedAt: string;
1458
+ deletedAt?: string | null;
1459
+ paymentMethod?: {
1460
+ id: string;
1461
+ name: string;
1462
+ };
1463
+ installment?: {
1464
+ id: string;
1465
+ installmentNumber: number;
1466
+ dueDate: string;
1467
+ };
1468
+ }
1469
+ interface ContractInstallmentsResponse {
1470
+ contractId: string;
1471
+ totalAmount: number;
1472
+ totalPaid: number;
1473
+ outstandingAmount: number;
1474
+ nextDueDate?: string | null;
1475
+ installments: ContractInstallment[];
1476
+ }
1477
+ interface ContractPaymentsResponse {
1478
+ contractId: string;
1479
+ totalPaid: number;
1480
+ payments: ContractPayment[];
1481
+ }
1482
+ interface RegisterContractPaymentDto {
1483
+ amount: number;
1484
+ paymentMethodId: string;
1485
+ paidAt?: string;
1486
+ receiptIds?: string[];
1487
+ notes?: string;
1488
+ installmentId?: string;
1489
+ applyMode?: 'oldest_due' | 'installment';
1490
+ }
1491
+ interface RegisterContractPaymentResponse {
1492
+ success: boolean;
1493
+ payments: ContractPayment[];
1494
+ }
1153
1495
  interface GetContractsParams extends PaginationQueryDto {
1154
1496
  status?: ContractStatus;
1155
1497
  clientName?: string;
@@ -1197,7 +1539,15 @@ declare class ContractsResource extends BaseResource {
1197
1539
  createContract(data: CreateContractDto, options?: RequestOptions): Promise<Contract>;
1198
1540
  getGymContracts(params?: GetContractsParams, options?: RequestOptions): Promise<PaginatedResponseDto<Contract>>;
1199
1541
  getContract(id: string, options?: RequestOptions): Promise<Contract>;
1542
+ getContractInstallments(id: string, options?: RequestOptions): Promise<ContractInstallmentsResponse>;
1543
+ getContractPayments(id: string, options?: RequestOptions): Promise<ContractPaymentsResponse>;
1544
+ registerContractPayment(id: string, data: RegisterContractPaymentDto, options?: RequestOptions): Promise<RegisterContractPaymentResponse>;
1545
+ sendInstallmentReminder(id: string, installmentId: string, options?: RequestOptions): Promise<{
1546
+ success: boolean;
1547
+ message: string;
1548
+ }>;
1200
1549
  getClientContracts(clientId: string, options?: RequestOptions): Promise<Contract[]>;
1550
+ getMyContracts(options?: RequestOptions): Promise<Contract[]>;
1201
1551
  renewContract(id: string, data: RenewContractDto, options?: RequestOptions): Promise<Contract>;
1202
1552
  freezeContract(id: string, data: FreezeContractDto, options?: RequestOptions): Promise<Contract>;
1203
1553
  cancelContract(id: string, data: CancelContractDto, options?: RequestOptions): Promise<Contract>;
@@ -1241,11 +1591,20 @@ interface SalesRevenue {
1241
1591
  }
1242
1592
  interface Debts {
1243
1593
  totalDebt: number;
1594
+ salesDebt?: number;
1595
+ contractsDebt?: number;
1244
1596
  clientsWithDebt: number;
1245
1597
  averageDebt: number;
1246
1598
  startDate: string;
1247
1599
  endDate: string;
1248
1600
  }
1601
+ interface Collections {
1602
+ totalCollected: number;
1603
+ salesCollected: number;
1604
+ contractsCollected: number;
1605
+ startDate: string;
1606
+ endDate: string;
1607
+ }
1249
1608
  interface CheckIns {
1250
1609
  totalCheckIns: number;
1251
1610
  uniqueClients: number;
@@ -1319,6 +1678,12 @@ declare class DashboardResource extends BaseResource {
1319
1678
  * @returns Outstanding debts data for the specified period
1320
1679
  */
1321
1680
  getDebts(params?: DateRangeParams): Promise<Debts>;
1681
+ /**
1682
+ * Get total collections within date range
1683
+ * @param params Optional date range parameters
1684
+ * @returns Collections data for the specified period
1685
+ */
1686
+ getCollections(params?: DateRangeParams): Promise<Collections>;
1322
1687
  /**
1323
1688
  * Get check-ins count within date range
1324
1689
  * @param params Optional date range parameters
@@ -1415,6 +1780,20 @@ interface ClientCheckInHistory {
1415
1780
  };
1416
1781
  }
1417
1782
 
1783
+ interface ExternalCheckInResult {
1784
+ checkInId: string;
1785
+ clientName: string;
1786
+ gymName: string;
1787
+ timestamp: string;
1788
+ message: string;
1789
+ isExternal: boolean;
1790
+ contractNumber?: string;
1791
+ originGymName?: string;
1792
+ }
1793
+ interface CreateExternalCheckInDto {
1794
+ documentValue: string;
1795
+ sourceGymClientId?: string;
1796
+ }
1418
1797
  declare class CheckInsResource extends BaseResource {
1419
1798
  private basePath;
1420
1799
  /**
@@ -1456,6 +1835,19 @@ declare class CheckInsResource extends BaseResource {
1456
1835
  deleteCheckIn(id: string, options?: RequestOptions): Promise<void>;
1457
1836
  getGymCheckInStats(params: GetCheckInStatsParams, options?: RequestOptions): Promise<CheckInStats>;
1458
1837
  getClientCheckInHistory(clientId: string, params?: GetClientCheckInHistoryParams, options?: RequestOptions): Promise<ClientCheckInHistory>;
1838
+ /**
1839
+ * Creates a check-in for an external client (from another gym in the same organization).
1840
+ *
1841
+ * **Permissions Required:**
1842
+ * - Gym owners with full gym access
1843
+ * - Active collaborators with CHECKINS_CREATE permission
1844
+ *
1845
+ * @param data - The external check-in data including document value
1846
+ * @param options - Optional request configuration
1847
+ * @returns The created check-in record with external client details
1848
+ * @throws {ValidationError} When client is not found or contract doesn't allow access
1849
+ */
1850
+ createExternal(data: CreateExternalCheckInDto, options?: RequestOptions): Promise<ExternalCheckInResult>;
1459
1851
  }
1460
1852
 
1461
1853
  interface GetGymInvitationsParams {
@@ -3957,10 +4349,6 @@ declare class MessagesResource extends BaseResource {
3957
4349
  cancelMessage(id: string, options?: RequestOptions): Promise<Message>;
3958
4350
  }
3959
4351
 
3960
- declare enum FeatureType {
3961
- AI_GENERATION = "ai_generation",
3962
- BULK_WHATSAPP = "bulk_whatsapp"
3963
- }
3964
4352
  interface CreditAccount {
3965
4353
  id: string;
3966
4354
  organizationId: string;
@@ -4245,6 +4633,118 @@ declare class PromoCodesResource extends BaseResource {
4245
4633
  deletePromoCode(id: string, options?: RequestOptions): Promise<void>;
4246
4634
  }
4247
4635
 
4636
+ declare class MembersResource extends BaseResource {
4637
+ /**
4638
+ * Create and send member invite
4639
+ * POST /admin/members/clients/:id/invites
4640
+ */
4641
+ createInvite(clientId: string, data: CreateMemberInviteDto, options?: RequestOptions): Promise<MemberInviteResponse>;
4642
+ /**
4643
+ * Validate member invite token
4644
+ * GET /members/invites/validate/:token
4645
+ */
4646
+ validateInvite(token: string, options?: RequestOptions): Promise<MemberInviteValidationResponse>;
4647
+ /**
4648
+ * Generate QR token for member check-ins
4649
+ * GET /admin/members/check-in-qr
4650
+ */
4651
+ generateQrToken(options?: RequestOptions): Promise<QrTokenResponse>;
4652
+ /**
4653
+ * Self check-in with QR token
4654
+ * POST /members/checkins
4655
+ */
4656
+ checkIn(data: CheckInDto, options?: RequestOptions): Promise<CheckInResponse>;
4657
+ }
4658
+
4659
+ interface ReceivableInstallmentDto {
4660
+ id: string;
4661
+ contractId: string;
4662
+ contractNumber: string;
4663
+ clientId: string;
4664
+ clientName: string;
4665
+ clientDocument?: string;
4666
+ gymId: string;
4667
+ gymName: string;
4668
+ amount: number;
4669
+ paidAmount: number;
4670
+ remainingAmount: number;
4671
+ dueDate: string;
4672
+ status: 'pending' | 'partially_paid' | 'overdue';
4673
+ planName: string;
4674
+ contractStartDate: string;
4675
+ contractEndDate: string;
4676
+ }
4677
+ interface ReceivableInstallmentsResponseDto {
4678
+ data: ReceivableInstallmentDto[];
4679
+ meta: ReceivablesMetaDto;
4680
+ summary: ReceivablesSummaryDto;
4681
+ }
4682
+ interface ReceivableSaleDto {
4683
+ id: string;
4684
+ saleNumber: string;
4685
+ clientId: string;
4686
+ clientName: string;
4687
+ clientDocument?: string;
4688
+ gymId: string;
4689
+ gymName: string;
4690
+ total: number;
4691
+ paidAmount: number;
4692
+ remainingAmount: number;
4693
+ saleDate: string;
4694
+ paymentStatus: 'unpaid' | 'partially_paid';
4695
+ products: string[];
4696
+ }
4697
+ interface ReceivableSalesResponseDto {
4698
+ data: ReceivableSaleDto[];
4699
+ meta: ReceivablesMetaDto;
4700
+ summary: ReceivablesSummaryDto;
4701
+ }
4702
+ interface ReceivablesMetaDto {
4703
+ total: number;
4704
+ page: number;
4705
+ limit: number;
4706
+ totalPages: number;
4707
+ hasNext: boolean;
4708
+ hasPrevious: boolean;
4709
+ }
4710
+ interface ReceivablesSummaryDto {
4711
+ totalAmount: number;
4712
+ totalPending: number;
4713
+ }
4714
+ interface ReceivableInstallmentsQueryParams {
4715
+ scope?: 'gym' | 'organization';
4716
+ startDate?: string;
4717
+ endDate?: string;
4718
+ page?: number;
4719
+ limit?: number;
4720
+ status?: 'pending' | 'partially_paid' | 'overdue' | 'all_unpaid';
4721
+ sortBy?: 'dueDate' | 'amount' | 'clientName';
4722
+ sortOrder?: 'asc' | 'desc';
4723
+ }
4724
+ interface ReceivableSalesQueryParams {
4725
+ scope?: 'gym' | 'organization';
4726
+ startDate?: string;
4727
+ endDate?: string;
4728
+ page?: number;
4729
+ limit?: number;
4730
+ sortBy?: 'saleDate' | 'amount' | 'clientName';
4731
+ sortOrder?: 'asc' | 'desc';
4732
+ }
4733
+ declare class ReceivablesResource extends BaseResource {
4734
+ /**
4735
+ * Get paginated list of pending contract installments with filtering, sorting, and organization scope support.
4736
+ * @param params Optional query parameters for filtering, pagination, and sorting
4737
+ * @returns Paginated list of installment receivables with summary
4738
+ */
4739
+ getInstallmentReceivables(params?: ReceivableInstallmentsQueryParams): Promise<ReceivableInstallmentsResponseDto>;
4740
+ /**
4741
+ * Get paginated list of unpaid sales with filtering, sorting, and organization scope support.
4742
+ * @param params Optional query parameters for filtering, pagination, and sorting
4743
+ * @returns Paginated list of sale receivables with summary
4744
+ */
4745
+ getSaleReceivables(params?: ReceivableSalesQueryParams): Promise<ReceivableSalesResponseDto>;
4746
+ }
4747
+
4248
4748
  declare class GymSpaceSdk {
4249
4749
  client: ApiClient;
4250
4750
  private expoFetch?;
@@ -4287,6 +4787,8 @@ declare class GymSpaceSdk {
4287
4787
  credits: CreditsResource;
4288
4788
  pricingPackages: PricingPackagesResource;
4289
4789
  promoCodes: PromoCodesResource;
4790
+ members: MembersResource;
4791
+ receivables: ReceivablesResource;
4290
4792
  constructor(config: GymSpaceConfig);
4291
4793
  /**
4292
4794
  * Set the authentication token
@@ -4327,6 +4829,15 @@ declare class GymSpaceSdk {
4327
4829
  * Get the underlying API client
4328
4830
  */
4329
4831
  getClient(): ApiClient;
4832
+ /**
4833
+ * Create a scoped SDK instance that sends X-Gym-Id and X-Gym-Context-Mode: scoped
4834
+ * for all requests WITHOUT modifying the global gym context.
4835
+ *
4836
+ * Usage:
4837
+ * const scopedSdk = sdk.withGymId('gym-123');
4838
+ * const sales = await scopedSdk.sales.searchSales({ ... });
4839
+ */
4840
+ withGymId(gymId: string): GymSpaceSdk;
4330
4841
  }
4331
4842
 
4332
4843
  interface ApiResponse<T> {
@@ -4334,26 +4845,4 @@ interface ApiResponse<T> {
4334
4845
  meta?: any;
4335
4846
  }
4336
4847
 
4337
- declare class GymSpaceError extends Error {
4338
- statusCode?: number;
4339
- code?: string;
4340
- details?: any;
4341
- constructor(message: string, statusCode?: number, code?: string, details?: any);
4342
- }
4343
- declare class AuthenticationError extends GymSpaceError {
4344
- constructor(message?: string);
4345
- }
4346
- declare class AuthorizationError extends GymSpaceError {
4347
- constructor(message?: string);
4348
- }
4349
- declare class NotFoundError extends GymSpaceError {
4350
- constructor(resource: string, id?: string);
4351
- }
4352
- declare class ValidationError extends GymSpaceError {
4353
- constructor(message: string, errors?: any);
4354
- }
4355
- declare class NetworkError extends GymSpaceError {
4356
- constructor(message?: string);
4357
- }
4358
-
4359
- export { type ActivateRenewalDto, ActivitiesResource, type Activity, type ActivityNotificationDto, type ActivityPlanRestriction, type ActivityStats, type ActivityStatsParams, AdminCatalogResource, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, type AssignTagsDto, type AssignTagsResponse, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BulkLogsResponse, type BulkLogsResponseDto, type BulkMessageDto, type BulkMessageLog, type BulkMessageLogDto, type BulkMessageResult, type BulkMessageResultDto, BulkMessagingResource, type BulkTemplate, type BusinessHours, type CancelContractDto, type CancelSubscriptionDto, type CancellationAnalytics, type CatalogActivity, type CatalogGym, type CatalogHeroSection, type CatalogLead, type CatalogLocation, type CatalogPlan, type CatalogResponse, type CatalogSocialMedia, 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, type ClientTag, type ClientTagsResponse, ClientsResource, type CollaboratorReportDto, type CollaboratorRoleDto, CollaboratorsResource, type CommissionCalculationDto, CommissionCalculationsResource, CommissionChangeType, type CommissionComparisonDto, type CommissionConfigDto, CommissionConfigResource, CommissionEntityType, type CommissionFiltersDto, type CommissionHistoryDto, type CommissionHistoryFiltersDto, CommissionPromotionsResource, CommissionReportsResource, type CommissionRuleDto, type CommissionRuleFiltersDto, CommissionRuleType, CommissionRulesResource, type CommissionSimulationDto, CommissionStatus, type CommissionSummaryDto, type CommissionSummaryReportDto, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, type ContractLifecycleEvent, type ContractSettings, ContractsResource, type ContractsRevenue, type CreateActivityDto, type CreateActivityNotificationDto, type CreateBulkTemplateDto, type CreateCheckInDto, type CreateClientDto, type CreateCommissionConfigDto, type CreateCommissionRuleDto, type CreateContractDto, type CreateGymDto, type CreateLeadDto, type CreateMembershipPlanDto, type CreatePaymentMethodDto, type CreatePricingPackageDto, type CreateProductCategoryDto, type CreateProductDto, type CreatePromoCodeDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTagDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CreditAccount, type CreditAccountWithOrgName, type CreditAdjustment, type CreditAdjustmentResponse, type CreditStats, type CreditTransaction, type CreditUsageReport, type CreditUsageReportQuery, CreditsResource, type CurrentSessionResponse, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DeleteActivityParams, type DeleteTagResponse, type DisconnectResponse, DiscountType, type EligibleClient, type EligibleClientsResponse, type ExpiringContract, FeatureType, type FileResponseDto, FilesResource, type FormattedSchedule, type FreezeContractDto, type GenerateAIMessageDto, type GenerateAIMessageParams, type GenerateAIMessageResponse, type GenerateAIMessageResponseDto, type GetBulkLogsQueryDto, type GetCheckInStatsParams, type GetClientCheckInHistoryParams, type GetContractsParams, type GetGymInvitationsParams, type GetMembershipPlansParams, type GetMessagesParams, type GetTagClientsParams, type Gym, type GymAmenities, type GymCatalog, type GymSchedule, type GymSettings, type GymSocialMedia, type GymSpaceConfig, GymSpaceError, GymSpaceSdk, type GymStats, GymsResource, HealthResource, type HealthResponse, type InitializeConnectionResponse, type InventorySettings, type InvitationValidationResponse, InvitationsResource, type LeadFiltersDto, LeadGender, type LeadSubmissionResponse, type ListContactsResponse, type LoginDto, type LoginResponseDto, type MembershipManagementFeatures, type MembershipPlan, type MembershipPlanStats, MembershipPlansResource, type Message, type MessageStatusUpdate, MessagesResource, type MyOrganization, NetworkError, type NewClients, NotFoundError, type NotificationSettings, OnboardingCacheStatus, OnboardingResource, type OnboardingResponse, type OnboardingStatus, type OnboardingStatusResponse, OnboardingStep, type Organization, type OrganizationAdminDetails, type OrganizationStats, type OrganizationWithDetails, OrganizationsResource, type PaginatedCommissionResult, type PaginatedResponse, type PaginatedResponseDto, type PaginationParams, type PaginationQueryDto, type PaySaleDto, type PaymentMethod, type PaymentMethodStats, PaymentMethodsResource, type PermissionsGroup, type PreviewTemplateResponse, type PriceDto, type PricingDto, type PricingPackage, PricingPackagesResource, type Product, type ProductCategory, ProductsResource, type PromoCode, type PromoCodeAnalytics, PromoCodesResource, type PromotionReportDto, type PromotionReportFiltersDto, PublicCatalogResource, type ReactivateContractDto, type ReadyResponse, type RegisterCollaboratorDto, type RegisterOwnerDto, type RejectedClient, type RejectedClientDto, type RemoveTagsDto, type RemoveTagsResponse, type RenewContractDto, type ReorderCommissionRulesDto, type ReportFiltersDto, type RequestOptions, type RequestPasswordResetDto, type RequestPasswordResetResponseDto, type ResendResetCodeDto, type ResendResetCodeResponseDto, type ResendVerificationDto, type ResetPasswordDto, type ResetPasswordResponseDto, type ResumeContractDto, RolesResource, type RuleCriteria, type RuleReportDto, type Sale, type SaleItem, type SaleItemDto, SalesResource, type SalesRevenue, type SalesStats, type SearchActivitiesParams, type SearchCatalogParams, type SearchCatalogResponse, type SearchCheckInsParams, type SearchClientsParams, type SearchPaymentMethodsParams, type SearchPricingPackagesParams, type SearchProductsParams, type SearchPromoCodesParams, type SearchSalesParams, type SearchSuppliersParams, type SearchTagsParams, type SearchTemplatesDto, type SearchWhatsAppMessagesDto, type SendBulkMessagesDto, type SendCatalogMessageDto, type SendCatalogMessageResponse, type SendWhatsAppMessageDto, type SentActivityNotification, type SimulateCommissionDto, 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 SuspendContractDto, type SwitchOrganizationDto, type SwitchOrganizationResponse, type Tag, type TagClientsResponse, type TagStatsResponse, type TagWithAssignment, TagsResource, type TimeSlot, type TopSellingProduct, type UpdateActivityDto, type UpdateActivityNotificationDto, type UpdateBulkTemplateDto, type UpdateCatalogConfigDto, type UpdateClientDto, type UpdateCommissionConfigDto, type UpdateCommissionRuleDto, type UpdateGymContractSettingsDto, type UpdateGymDto, type UpdateGymInventorySettingsDto, type UpdateGymScheduleDto, type UpdateGymSettingsData, type UpdateGymSocialMediaDto, type UpdateMembershipPlanDto, type UpdateOrganizationDto, type UpdatePaymentMethodDto, type UpdatePaymentStatusDto, type UpdatePricingPackageDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdatePromoCodeDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTagDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, type ValidatePromoCodeDto, type ValidatePromoCodeResponseDto, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };
4848
+ export { type ActivateRenewalDto, ActivitiesResource, type Activity, type ActivityNotificationDto, type ActivityPlanRestriction, type ActivityStats, type ActivityStatsParams, AdminCatalogResource, AdminSubscriptionManagementResource, type AdminSubscriptionStatusDto, type AffiliateOrganizationDto, type Amenities, ApiClient, type ApiResponse, type AssetResponseDto, AssetsResource, type AssignTagsDto, type AssignTagsResponse, AuthResource, AuthenticationError, AuthorizationError, type AvailablePlanDto, type BulkLogsResponse, type BulkLogsResponseDto, type BulkMessageDto, type BulkMessageLog, type BulkMessageLogDto, type BulkMessageResult, type BulkMessageResultDto, BulkMessagingResource, type BulkTemplate, type BusinessHours, type CancelContractDto, type CancelSubscriptionDto, type CancellationAnalytics, type CatalogActivity, type CatalogGym, type CatalogHeroSection, type CatalogLead, type CatalogLocation, type CatalogPlan, type CatalogResponse, type CatalogSocialMedia, type ChangePasswordDto, type ChangePasswordResponseDto, type CheckIn, type CheckInDetail, type CheckInDto, type CheckInListResponse, type CheckInResponse, type CheckInStats, type CheckInSystemFeatures, type CheckIns, type CheckInsList, CheckInsResource, type CheckLimitResponse, type CityWithGyms, type Client, type ClientCheckInHistory, type ClientManagementFeatures, type ClientStat, type ClientStats, type ClientTag, type ClientTagsResponse, ClientsResource, type CollaboratorReportDto, type CollaboratorRoleDto, CollaboratorsResource, type Collections, type CommissionCalculationDto, CommissionCalculationsResource, CommissionChangeType, type CommissionComparisonDto, type CommissionConfigDto, CommissionConfigResource, CommissionEntityType, type CommissionFiltersDto, type CommissionHistoryDto, type CommissionHistoryFiltersDto, CommissionPromotionsResource, CommissionReportsResource, type CommissionRuleDto, type CommissionRuleFiltersDto, CommissionRuleType, CommissionRulesResource, type CommissionSimulationDto, CommissionStatus, type CommissionSummaryDto, type CommissionSummaryReportDto, type CompleteGuidedSetupData, type ConfigureFeaturesData, type ConnectionStatusResponse, type Contact, type Contract, type ContractInstallment, type ContractInstallmentScheduleDto, type ContractInstallmentsResponse, type ContractLifecycleEvent, type ContractPayment, type ContractPaymentPlanInput, type ContractPaymentsResponse, type ContractSettings, ContractsResource, type ContractsRevenue, type CreateActivityDto, type CreateActivityNotificationDto, type CreateBulkTemplateDto, type CreateCheckInDto, type CreateClientDto, type CreateCommissionConfigDto, type CreateCommissionRuleDto, type CreateContractDto, type CreateExternalCheckInDto, type CreateGymDto, type CreateLeadDto, type CreateMemberInviteDto, type CreateMembershipPlanDto, type CreatePaymentMethodDto, type CreatePricingPackageDto, type CreateProductCategoryDto, type CreateProductDto, type CreatePromoCodeDto, type CreateSaleDto, type CreateServiceDto, type CreateSubscriptionPlanDto, type CreateSupplierDto, type CreateTagDto, type CreateTemplateDto, type CreateWhatsAppConfigDto, type CreditAccount, type CreditAccountWithOrgName, type CreditAdjustment, type CreditAdjustmentResponse, type CreditStats, type CreditTransaction, type CreditUsageReport, type CreditUsageReportQuery, CreditsResource, type CurrentSessionBase, type CurrentSessionResponse, type CurrentSessionResponseLegacy, type CurrentlyInGymResponse, type CustomerSalesReport, DashboardResource, type DashboardStats, type DateRangeParams, type DaySchedule, type Debts, type DeleteActivityParams, type DeleteTagResponse, type DisconnectResponse, DiscountType, type EligibleClient, type EligibleClientsResponse, type ExpiringContract, type ExternalCheckInResult, type FileResponseDto, FilesResource, type FormattedSchedule, type FreezeContractDto, type GenerateAIMessageDto, type GenerateAIMessageParams, type GenerateAIMessageResponse, type GenerateAIMessageResponseDto, type GetBulkLogsQueryDto, type GetCheckInStatsParams, type GetClientCheckInHistoryParams, type GetContractsParams, type GetGymInvitationsParams, type GetMembershipPlansParams, type GetMessagesParams, type GetTagClientsParams, type Gym, type GymAmenities, type GymCatalog, type GymSchedule, type GymSettings, type GymSocialMedia, type GymSpaceConfig, GymSpaceError, GymSpaceSdk, type GymStats, GymsResource, HealthResource, type HealthResponse, type ImportFromGymResult, type InitializeConnectionResponse, type InventorySettings, type InvitationValidationResponse, InvitationsResource, type LeadFiltersDto, LeadGender, type LeadSubmissionResponse, type ListContactsResponse, type LoginDto, type LoginResponseDto, type MemberCheckIn, type MemberInvite, type MemberInviteResponse, type MemberInviteValidationResponse, type MemberLoginResponse, type MemberMembership, type MemberPinLoginDto, type MemberProfile, MembersResource, type MembershipManagementFeatures, type MembershipPlan, type MembershipPlanStats, MembershipPlansResource, type Message, type MessageStatusUpdate, MessagesResource, type MyOrganization, NetworkError, type NewClients, NotFoundError, type NotificationSettings, OnboardingCacheStatus, OnboardingResource, type OnboardingResponse, type OnboardingStatus, type OnboardingStatusResponse, OnboardingStep, type Organization, type OrganizationAdminDetails, type OrganizationStats, type OrganizationWithDetails, OrganizationsResource, type PaginatedCommissionResult, type PaginatedResponse, type PaginatedResponseDto, type PaginationParams, type PaginationQueryDto, type PaySaleDto, type PaymentMethod, type PaymentMethodStats, PaymentMethodsResource, type PermissionsGroup, type PreviewTemplateResponse, type PriceDto, type PricingDto, type PricingPackage, PricingPackagesResource, type Product, type ProductCategory, ProductsResource, type PromoCode, type PromoCodeAnalytics, PromoCodesResource, type PromotionReportDto, type PromotionReportFiltersDto, PublicCatalogResource, type QrTokenResponse, type ReactivateContractDto, type ReadyResponse, type ReceivableInstallmentDto, type ReceivableInstallmentsQueryParams, type ReceivableInstallmentsResponseDto, type ReceivableSaleDto, type ReceivableSalesQueryParams, type ReceivableSalesResponseDto, type ReceivablesMetaDto, ReceivablesResource, type ReceivablesSummaryDto, type RegisterCollaboratorDto, type RegisterContractPaymentDto, type RegisterContractPaymentResponse, type RegisterOwnerDto, type RejectedClient, type RejectedClientDto, type RemoveTagsDto, type RemoveTagsResponse, type RenewContractDto, type ReorderCommissionRulesDto, type ReportFiltersDto, type RequestOptions, type RequestPasswordResetDto, type RequestPasswordResetResponseDto, type ResendResetCodeDto, type ResendResetCodeResponseDto, type ResendVerificationDto, type ResetPasswordDto, type ResetPasswordResponseDto, type ResumeContractDto, RolesResource, type RuleCriteria, type RuleReportDto, type Sale, type SaleItem, type SaleItemDto, SalesResource, type SalesRevenue, type SalesStats, type SearchActivitiesParams, type SearchCatalogParams, type SearchCatalogResponse, type SearchCheckInsParams, type SearchClientsParams, type SearchGlobalResult, type SearchPaymentMethodsParams, type SearchPricingPackagesParams, type SearchProductsParams, type SearchPromoCodesParams, type SearchSalesParams, type SearchSuppliersParams, type SearchTagsParams, type SearchTemplatesDto, type SearchWhatsAppMessagesDto, type SendBulkMessagesDto, type SendCatalogMessageDto, type SendCatalogMessageResponse, type SendWhatsAppMessageDto, type SentActivityNotification, type SetPinDto, type SimulateCommissionDto, 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 SuspendContractDto, type SwitchOrganizationDto, type SwitchOrganizationResponse, type Tag, type TagClientsResponse, type TagStatsResponse, type TagWithAssignment, TagsResource, type TimeSlot, type TopSellingProduct, type UpdateActivityDto, type UpdateActivityNotificationDto, type UpdateBulkTemplateDto, type UpdateCatalogConfigDto, type UpdateClientDto, type UpdateCommissionConfigDto, type UpdateCommissionRuleDto, type UpdateGymContractSettingsDto, type UpdateGymDto, type UpdateGymInventorySettingsDto, type UpdateGymScheduleDto, type UpdateGymSettingsData, type UpdateGymSocialMediaDto, type UpdateMembershipPlanDto, type UpdateOrganizationDto, type UpdatePaymentMethodDto, type UpdatePaymentStatusDto, type UpdatePricingPackageDto, type UpdateProductCategoryDto, type UpdateProductDto, type UpdateProfileDto, type UpdatePromoCodeDto, type UpdateSaleDto, type UpdateStockDto, type UpdateSubscriptionPlanDto, type UpdateSupplierDto, type UpdateTagDto, type UpdateTemplateDto, type UpdateWhatsAppConfigDto, type UpgradeSubscriptionDto, type UploadAssetDto, type UploadFileDto, type UserProfileDto, UsersResource, type ValidatePromoCodeDto, type ValidatePromoCodeResponseDto, ValidationError, type VerifyEmailDto, type VerifyResetCodeDto, type VerifyResetCodeResponseDto, type WeeklySchedule, type WhatsAppConfig, type WhatsAppMessage, WhatsAppResource, type WhatsAppTemplate, WhatsAppTemplatesResource };