@gymspace/sdk 1.9.32 → 1.9.34

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,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
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';
2
+ import { MemberInvitationDetailsResponse, 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
 
@@ -529,6 +529,11 @@ declare class AuthResource extends BaseResource {
529
529
  message: string;
530
530
  gymSlug?: string;
531
531
  }>;
532
+ /**
533
+ * Get member invitation details
534
+ * GET /auth/members/invite/:token
535
+ */
536
+ getMemberInvitationDetails(token: string, options?: RequestOptions): Promise<MemberInvitationDetailsResponse>;
532
537
  /**
533
538
  * Refresh member access token
534
539
  * POST /auth/members/refresh
@@ -2027,6 +2032,20 @@ interface CatalogActivity {
2027
2032
  days: string[];
2028
2033
  imageUrl: string | null;
2029
2034
  }
2035
+ /**
2036
+ * Pricing package for a membership plan
2037
+ */
2038
+ interface CatalogPricingPackage {
2039
+ id: string;
2040
+ name: string;
2041
+ description: string | null;
2042
+ price: number;
2043
+ currency: string;
2044
+ durationMonths: number | null;
2045
+ durationDays: number | null;
2046
+ isDefault: boolean;
2047
+ displayOrder: number;
2048
+ }
2030
2049
  /**
2031
2050
  * Membership plan offered by the gym
2032
2051
  */
@@ -2039,6 +2058,7 @@ interface CatalogPlan {
2039
2058
  duration: string;
2040
2059
  features: any;
2041
2060
  whatsappUrl: string | null;
2061
+ pricingPackages?: CatalogPricingPackage[];
2042
2062
  }
2043
2063
  /**
2044
2064
  * Social media links
@@ -2187,6 +2207,15 @@ interface LeadFiltersDto {
2187
2207
  interface LeadSubmissionResponse {
2188
2208
  message: string;
2189
2209
  }
2210
+ /**
2211
+ * Catalog configuration
2212
+ */
2213
+ interface CatalogConfig {
2214
+ featuredPlanId?: string;
2215
+ theme?: string;
2216
+ mode?: string;
2217
+ [key: string]: any;
2218
+ }
2190
2219
  /**
2191
2220
  * Gym catalog configuration
2192
2221
  */
@@ -2200,7 +2229,7 @@ interface GymCatalog {
2200
2229
  bannerFileId: string | null;
2201
2230
  heroMessage: string | null;
2202
2231
  ctaButtonText: string;
2203
- config: Record<string, any> | null;
2232
+ config: CatalogConfig | null;
2204
2233
  createdAt: string;
2205
2234
  updatedAt: string;
2206
2235
  }
@@ -4656,6 +4685,36 @@ declare class MembersResource extends BaseResource {
4656
4685
  checkIn(data: CheckInDto, options?: RequestOptions): Promise<CheckInResponse>;
4657
4686
  }
4658
4687
 
4688
+ type MemberDebtType = 'contract' | 'sale';
4689
+ type MemberDebtStatus = 'pending' | 'overdue' | 'partially_paid';
4690
+ interface MemberDebtDto {
4691
+ id: string;
4692
+ type: MemberDebtType;
4693
+ amount: number;
4694
+ paidAmount: number;
4695
+ outstandingAmount: number;
4696
+ status: MemberDebtStatus;
4697
+ dueDate: string;
4698
+ referenceNumber: string;
4699
+ description: string;
4700
+ createdAt: string;
4701
+ saleDate?: string;
4702
+ gymId: string;
4703
+ gymName: string;
4704
+ }
4705
+ interface MemberDebtsSummaryDto {
4706
+ totalDebt: number;
4707
+ contractsDebt: number;
4708
+ salesDebt: number;
4709
+ overdueCount: number;
4710
+ pendingCount: number;
4711
+ totalItems: number;
4712
+ }
4713
+ interface MemberDebtsResponseDto {
4714
+ debts: MemberDebtDto[];
4715
+ summary: MemberDebtsSummaryDto;
4716
+ }
4717
+
4659
4718
  interface ReceivableInstallmentDto {
4660
4719
  id: string;
4661
4720
  contractId: string;
@@ -4731,18 +4790,9 @@ interface ReceivableSalesQueryParams {
4731
4790
  sortOrder?: 'asc' | 'desc';
4732
4791
  }
4733
4792
  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
4793
  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
4794
  getSaleReceivables(params?: ReceivableSalesQueryParams): Promise<ReceivableSalesResponseDto>;
4795
+ getMyDebts(): Promise<MemberDebtsResponseDto>;
4746
4796
  }
4747
4797
 
4748
4798
  declare class GymSpaceSdk {
@@ -4845,4 +4895,4 @@ interface ApiResponse<T> {
4845
4895
  meta?: any;
4846
4896
  }
4847
4897
 
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 };
4898
+ 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 CatalogConfig, type CatalogGym, type CatalogHeroSection, type CatalogLead, type CatalogLocation, type CatalogPlan, type CatalogPricingPackage, 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 MemberDebtDto, type MemberDebtStatus, type MemberDebtType, type MemberDebtsResponseDto, type MemberDebtsSummaryDto, 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 };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
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';
2
+ import { MemberInvitationDetailsResponse, 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
 
@@ -529,6 +529,11 @@ declare class AuthResource extends BaseResource {
529
529
  message: string;
530
530
  gymSlug?: string;
531
531
  }>;
532
+ /**
533
+ * Get member invitation details
534
+ * GET /auth/members/invite/:token
535
+ */
536
+ getMemberInvitationDetails(token: string, options?: RequestOptions): Promise<MemberInvitationDetailsResponse>;
532
537
  /**
533
538
  * Refresh member access token
534
539
  * POST /auth/members/refresh
@@ -2027,6 +2032,20 @@ interface CatalogActivity {
2027
2032
  days: string[];
2028
2033
  imageUrl: string | null;
2029
2034
  }
2035
+ /**
2036
+ * Pricing package for a membership plan
2037
+ */
2038
+ interface CatalogPricingPackage {
2039
+ id: string;
2040
+ name: string;
2041
+ description: string | null;
2042
+ price: number;
2043
+ currency: string;
2044
+ durationMonths: number | null;
2045
+ durationDays: number | null;
2046
+ isDefault: boolean;
2047
+ displayOrder: number;
2048
+ }
2030
2049
  /**
2031
2050
  * Membership plan offered by the gym
2032
2051
  */
@@ -2039,6 +2058,7 @@ interface CatalogPlan {
2039
2058
  duration: string;
2040
2059
  features: any;
2041
2060
  whatsappUrl: string | null;
2061
+ pricingPackages?: CatalogPricingPackage[];
2042
2062
  }
2043
2063
  /**
2044
2064
  * Social media links
@@ -2187,6 +2207,15 @@ interface LeadFiltersDto {
2187
2207
  interface LeadSubmissionResponse {
2188
2208
  message: string;
2189
2209
  }
2210
+ /**
2211
+ * Catalog configuration
2212
+ */
2213
+ interface CatalogConfig {
2214
+ featuredPlanId?: string;
2215
+ theme?: string;
2216
+ mode?: string;
2217
+ [key: string]: any;
2218
+ }
2190
2219
  /**
2191
2220
  * Gym catalog configuration
2192
2221
  */
@@ -2200,7 +2229,7 @@ interface GymCatalog {
2200
2229
  bannerFileId: string | null;
2201
2230
  heroMessage: string | null;
2202
2231
  ctaButtonText: string;
2203
- config: Record<string, any> | null;
2232
+ config: CatalogConfig | null;
2204
2233
  createdAt: string;
2205
2234
  updatedAt: string;
2206
2235
  }
@@ -4656,6 +4685,36 @@ declare class MembersResource extends BaseResource {
4656
4685
  checkIn(data: CheckInDto, options?: RequestOptions): Promise<CheckInResponse>;
4657
4686
  }
4658
4687
 
4688
+ type MemberDebtType = 'contract' | 'sale';
4689
+ type MemberDebtStatus = 'pending' | 'overdue' | 'partially_paid';
4690
+ interface MemberDebtDto {
4691
+ id: string;
4692
+ type: MemberDebtType;
4693
+ amount: number;
4694
+ paidAmount: number;
4695
+ outstandingAmount: number;
4696
+ status: MemberDebtStatus;
4697
+ dueDate: string;
4698
+ referenceNumber: string;
4699
+ description: string;
4700
+ createdAt: string;
4701
+ saleDate?: string;
4702
+ gymId: string;
4703
+ gymName: string;
4704
+ }
4705
+ interface MemberDebtsSummaryDto {
4706
+ totalDebt: number;
4707
+ contractsDebt: number;
4708
+ salesDebt: number;
4709
+ overdueCount: number;
4710
+ pendingCount: number;
4711
+ totalItems: number;
4712
+ }
4713
+ interface MemberDebtsResponseDto {
4714
+ debts: MemberDebtDto[];
4715
+ summary: MemberDebtsSummaryDto;
4716
+ }
4717
+
4659
4718
  interface ReceivableInstallmentDto {
4660
4719
  id: string;
4661
4720
  contractId: string;
@@ -4731,18 +4790,9 @@ interface ReceivableSalesQueryParams {
4731
4790
  sortOrder?: 'asc' | 'desc';
4732
4791
  }
4733
4792
  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
4793
  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
4794
  getSaleReceivables(params?: ReceivableSalesQueryParams): Promise<ReceivableSalesResponseDto>;
4795
+ getMyDebts(): Promise<MemberDebtsResponseDto>;
4746
4796
  }
4747
4797
 
4748
4798
  declare class GymSpaceSdk {
@@ -4845,4 +4895,4 @@ interface ApiResponse<T> {
4845
4895
  meta?: any;
4846
4896
  }
4847
4897
 
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 };
4898
+ 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 CatalogConfig, type CatalogGym, type CatalogHeroSection, type CatalogLead, type CatalogLocation, type CatalogPlan, type CatalogPricingPackage, 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 MemberDebtDto, type MemberDebtStatus, type MemberDebtType, type MemberDebtsResponseDto, type MemberDebtsSummaryDto, 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 };
package/dist/index.js CHANGED
@@ -519,6 +519,16 @@ var AuthResource = class extends BaseResource {
519
519
  options
520
520
  );
521
521
  }
522
+ /**
523
+ * Get member invitation details
524
+ * GET /auth/members/invite/:token
525
+ */
526
+ async getMemberInvitationDetails(token, options) {
527
+ return this.client.get(
528
+ `${this.basePath}/members/invite/${token}`,
529
+ options
530
+ );
531
+ }
522
532
  /**
523
533
  * Refresh member access token
524
534
  * POST /auth/members/refresh
@@ -2643,22 +2653,15 @@ var MembersResource = class extends BaseResource {
2643
2653
 
2644
2654
  // src/resources/receivables.ts
2645
2655
  var ReceivablesResource = class extends BaseResource {
2646
- /**
2647
- * Get paginated list of pending contract installments with filtering, sorting, and organization scope support.
2648
- * @param params Optional query parameters for filtering, pagination, and sorting
2649
- * @returns Paginated list of installment receivables with summary
2650
- */
2651
2656
  async getInstallmentReceivables(params) {
2652
2657
  return this.client.get("/receivables/installments", params);
2653
2658
  }
2654
- /**
2655
- * Get paginated list of unpaid sales with filtering, sorting, and organization scope support.
2656
- * @param params Optional query parameters for filtering, pagination, and sorting
2657
- * @returns Paginated list of sale receivables with summary
2658
- */
2659
2659
  async getSaleReceivables(params) {
2660
2660
  return this.client.get("/receivables/sales", params);
2661
2661
  }
2662
+ async getMyDebts() {
2663
+ return this.client.get("/receivables/my-debts");
2664
+ }
2662
2665
  };
2663
2666
 
2664
2667
  // src/sdk.ts