@23blocks/angular 6.5.15 → 6.5.16

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.
Files changed (88) hide show
  1. package/dist/README.md +792 -0
  2. package/dist/{index.esm.js → fesm2022/23blocks-angular.mjs} +1620 -1286
  3. package/dist/fesm2022/23blocks-angular.mjs.map +1 -0
  4. package/dist/index.d.ts +3874 -1
  5. package/dist/index.d.ts.map +1 -0
  6. package/package.json +8 -24
  7. package/dist/src/index.d.ts +0 -2
  8. package/dist/src/index.d.ts.map +0 -1
  9. package/dist/src/lib/assets/assets.service.d.ts +0 -123
  10. package/dist/src/lib/assets/assets.service.d.ts.map +0 -1
  11. package/dist/src/lib/assets/index.d.ts +0 -2
  12. package/dist/src/lib/assets/index.d.ts.map +0 -1
  13. package/dist/src/lib/authentication/authentication.service.d.ts +0 -684
  14. package/dist/src/lib/authentication/authentication.service.d.ts.map +0 -1
  15. package/dist/src/lib/authentication/index.d.ts +0 -2
  16. package/dist/src/lib/authentication/index.d.ts.map +0 -1
  17. package/dist/src/lib/campaigns/campaigns.service.d.ts +0 -111
  18. package/dist/src/lib/campaigns/campaigns.service.d.ts.map +0 -1
  19. package/dist/src/lib/campaigns/index.d.ts +0 -2
  20. package/dist/src/lib/campaigns/index.d.ts.map +0 -1
  21. package/dist/src/lib/company/company.service.d.ts +0 -117
  22. package/dist/src/lib/company/company.service.d.ts.map +0 -1
  23. package/dist/src/lib/company/index.d.ts +0 -2
  24. package/dist/src/lib/company/index.d.ts.map +0 -1
  25. package/dist/src/lib/content/content.service.d.ts +0 -177
  26. package/dist/src/lib/content/content.service.d.ts.map +0 -1
  27. package/dist/src/lib/content/index.d.ts +0 -2
  28. package/dist/src/lib/content/index.d.ts.map +0 -1
  29. package/dist/src/lib/conversations/conversations.service.d.ts +0 -130
  30. package/dist/src/lib/conversations/conversations.service.d.ts.map +0 -1
  31. package/dist/src/lib/conversations/index.d.ts +0 -2
  32. package/dist/src/lib/conversations/index.d.ts.map +0 -1
  33. package/dist/src/lib/crm/crm.service.d.ts +0 -182
  34. package/dist/src/lib/crm/crm.service.d.ts.map +0 -1
  35. package/dist/src/lib/crm/index.d.ts +0 -2
  36. package/dist/src/lib/crm/index.d.ts.map +0 -1
  37. package/dist/src/lib/files/files.service.d.ts +0 -326
  38. package/dist/src/lib/files/files.service.d.ts.map +0 -1
  39. package/dist/src/lib/files/index.d.ts +0 -2
  40. package/dist/src/lib/files/index.d.ts.map +0 -1
  41. package/dist/src/lib/forms/forms.service.d.ts +0 -132
  42. package/dist/src/lib/forms/forms.service.d.ts.map +0 -1
  43. package/dist/src/lib/forms/index.d.ts +0 -2
  44. package/dist/src/lib/forms/index.d.ts.map +0 -1
  45. package/dist/src/lib/geolocation/geolocation.service.d.ts +0 -317
  46. package/dist/src/lib/geolocation/geolocation.service.d.ts.map +0 -1
  47. package/dist/src/lib/geolocation/index.d.ts +0 -2
  48. package/dist/src/lib/geolocation/index.d.ts.map +0 -1
  49. package/dist/src/lib/index.d.ts +0 -22
  50. package/dist/src/lib/index.d.ts.map +0 -1
  51. package/dist/src/lib/jarvis/index.d.ts +0 -2
  52. package/dist/src/lib/jarvis/index.d.ts.map +0 -1
  53. package/dist/src/lib/jarvis/jarvis.service.d.ts +0 -181
  54. package/dist/src/lib/jarvis/jarvis.service.d.ts.map +0 -1
  55. package/dist/src/lib/onboarding/index.d.ts +0 -2
  56. package/dist/src/lib/onboarding/index.d.ts.map +0 -1
  57. package/dist/src/lib/onboarding/onboarding.service.d.ts +0 -93
  58. package/dist/src/lib/onboarding/onboarding.service.d.ts.map +0 -1
  59. package/dist/src/lib/products/index.d.ts +0 -2
  60. package/dist/src/lib/products/index.d.ts.map +0 -1
  61. package/dist/src/lib/products/products.service.d.ts +0 -154
  62. package/dist/src/lib/products/products.service.d.ts.map +0 -1
  63. package/dist/src/lib/providers.d.ts +0 -97
  64. package/dist/src/lib/providers.d.ts.map +0 -1
  65. package/dist/src/lib/rewards/index.d.ts +0 -2
  66. package/dist/src/lib/rewards/index.d.ts.map +0 -1
  67. package/dist/src/lib/rewards/rewards.service.d.ts +0 -172
  68. package/dist/src/lib/rewards/rewards.service.d.ts.map +0 -1
  69. package/dist/src/lib/sales/index.d.ts +0 -2
  70. package/dist/src/lib/sales/index.d.ts.map +0 -1
  71. package/dist/src/lib/sales/sales.service.d.ts +0 -147
  72. package/dist/src/lib/sales/sales.service.d.ts.map +0 -1
  73. package/dist/src/lib/search/index.d.ts +0 -2
  74. package/dist/src/lib/search/index.d.ts.map +0 -1
  75. package/dist/src/lib/search/search.service.d.ts +0 -106
  76. package/dist/src/lib/search/search.service.d.ts.map +0 -1
  77. package/dist/src/lib/simple-providers.d.ts +0 -203
  78. package/dist/src/lib/simple-providers.d.ts.map +0 -1
  79. package/dist/src/lib/tokens.d.ts +0 -134
  80. package/dist/src/lib/tokens.d.ts.map +0 -1
  81. package/dist/src/lib/university/index.d.ts +0 -2
  82. package/dist/src/lib/university/index.d.ts.map +0 -1
  83. package/dist/src/lib/university/university.service.d.ts +0 -252
  84. package/dist/src/lib/university/university.service.d.ts.map +0 -1
  85. package/dist/src/lib/wallet/index.d.ts +0 -2
  86. package/dist/src/lib/wallet/index.d.ts.map +0 -1
  87. package/dist/src/lib/wallet/wallet.service.d.ts +0 -71
  88. package/dist/src/lib/wallet/wallet.service.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1 +1,3874 @@
1
- export * from "./src/index";
1
+ import * as i0 from '@angular/core';
2
+ import { EnvironmentProviders, Provider, InjectionToken } from '@angular/core';
3
+ import { Transport, ListParams, PageResult } from '@23blocks/contracts';
4
+ import { AuthenticationBlockConfig, SignInRequest, SignInResponse, SignUpRequest, SignUpResponse, PasswordResetRequest, PasswordUpdateRequest, TokenValidationResponse, User, RefreshTokenRequest, RefreshTokenResponse, MagicLinkRequest, MagicLinkVerifyRequest, InvitationRequest, AcceptInvitationRequest, ResendConfirmationRequest, ValidateEmailRequest, ValidateEmailResponse, ValidateDocumentRequest, ValidateDocumentResponse, ResendInvitationRequest, AccountRecoveryRequest, AccountRecoveryResponse, CompleteRecoveryRequest, UpdateUserRequest, UpdateProfileRequest, UserSearchRequest, UserProfileFull, ProfileRequest, UpdateEmailRequest, UserDeviceFull, AddDeviceRequest, Company, AddUserSubscriptionRequest, UserSubscription, Role, CreateRoleRequest, UpdateRoleRequest, Permission, CreatePermissionRequest, UpdatePermissionRequest, ApiKey, CreateApiKeyRequest, ApiKeyWithSecret, UpdateApiKeyRequest, MfaSetupResponseFull, MfaEnableRequest, MfaOperationResponse, MfaDisableRequest, MfaVerifyRequestFull, MfaVerificationResponse, MfaStatusResponse, OAuthSocialLoginRequest, TenantLoginRequest, TokenIntrospectionResponse, TokenRevokeRequest, TokenRevokeResponse, TokenRevokeAllRequest, TenantContextCreateRequest, TenantContextResponse, TenantContextAuditEntry, UserAvatarFull, CreateAvatarRequest, AvatarPresignResponse, MultipartPresignRequest, MultipartPresignResponse, MultipartCompleteRequest, MultipartCompleteResponse, ValidateTenantCodeRequest, ValidateTenantCodeResponse, SearchTenantRequest, CreateTenantUserRequest, TenantUserFull, UpdateTenantUserOnboardingRequest, UpdateTenantUserSalesRequest, App, CreateAppRequest, UpdateAppRequest, Block, Service, SubscriptionModel, SubscribeRequest, CompanySubscription, Country, State, County, City, Currency, Guest, MagicLink, CreateMagicLinkRequest, RefreshToken, UserDevice, RegisterDeviceRequest, TenantUser, MailTemplate, JwksResponse, RsaKey, CreateRsaKeyRequest, RotateRsaKeyRequest, OidcDiscovery, OidcAuthorizeRequest, OidcTokenRequest, OidcTokenResponse, OidcUserInfo, AuthenticationBlock } from '@23blocks/block-authentication';
5
+ import { SearchBlockConfig, SearchRequest, SearchResponse, SearchResult, EntityType, LastQuery, SearchQuery, FavoriteEntity, AddFavoriteRequest, ListEntitiesParams, SearchEntity, RegisterEntityRequest, UpdateEntityRequest, EntityTypeSchema, CopilotSearchRequest, ListIdentitiesParams, SearchIdentity, RegisterIdentityRequest, UpdateIdentityRequest, JarvisSearchQuery, JarvisSearchResult, SearchBlock } from '@23blocks/block-search';
6
+ import { GeolocationBlockConfig, ListLocationsParams, Location, CreateLocationRequest, UpdateLocationRequest, ListAddressesParams, Address, CreateAddressRequest, UpdateAddressRequest, ListAreasParams, Area, CreateAreaRequest, UpdateAreaRequest, ListRegionsParams, Region, CreateRegionRequest, UpdateRegionRequest, ListTravelRoutesParams, TravelRoute, CreateTravelRouteRequest, UpdateTravelRouteRequest, ListPremiseBookingsParams, PremiseBooking, CreatePremiseBookingRequest, UpdatePremiseBookingRequest, ListPremisesParams, Premise, CreatePremiseRequest, UpdatePremiseRequest, ListPremiseEventsParams, PremiseEvent, CreatePremiseEventRequest, UpdatePremiseEventRequest, CreateRouteLocationRequest, RouteLocation, RouteTrackerStatus, ListRouteLocationsParams, LocationHour, CreateLocationHourRequest, UpdateLocationHourRequest, PresignLocationImageRequest, PresignLocationImageResponse, CreateLocationImageRequest, LocationImage, LocationSlot, CreateLocationSlotRequest, UpdateLocationSlotRequest, CreateLocationTaxRequest, LocationTax, UpdateLocationTaxRequest, ListLocationGroupsParams, LocationGroup, CreateLocationGroupRequest, ListGeoIdentitiesParams, GeoIdentity, RegisterGeoIdentityRequest, UpdateGeoIdentityRequest, LocationIdentityRequest, UserLocationRequest, ListLocationIdentitiesParams, LocationIdentity, CreateLocationIdentityRequest, UpdateLocationIdentityRequest, GeoLookupParams, GeoCountry, GeoState, GeoCity, GeolocationBlock } from '@23blocks/block-geolocation';
7
+ import { ContentBlockConfig, ListPostsParams, Post, CreatePostRequest, UpdatePostRequest, ListCommentsParams, Comment, CreateCommentRequest, UpdateCommentRequest, ListCategoriesParams as ListCategoriesParams$2, Category as Category$2, CreateCategoryRequest as CreateCategoryRequest$2, UpdateCategoryRequest as UpdateCategoryRequest$2, ListTagsParams, Tag, CreateTagRequest, UpdateTagRequest, ListContentUsersParams, ContentUser, RegisterContentUserRequest, UpdateContentUserRequest, UserActivity, ModerateContentRequest, ModerationResult, ListContentFlagsParams, ContentFlag, CreateContentFlagRequest, ListActivitiesParams, Activity, ListSeriesParams, Series, QuerySeriesParams, CreateSeriesRequest, UpdateSeriesRequest, ReorderPostsRequest, ContentBlock } from '@23blocks/block-content';
8
+ import { CrmBlockConfig, ListAccountsParams, Account, CreateAccountRequest, UpdateAccountRequest, ListContactsParams, Contact, CreateContactRequest, UpdateContactRequest, ListContactEventsParams, ContactEvent, CreateContactEventRequest, UpdateContactEventRequest, ConfirmationRequest, CheckinRequest, CheckoutRequest as CheckoutRequest$1, EventNotesRequest, ListLeadsParams, Lead, CreateLeadRequest, UpdateLeadRequest, ListLeadFollowsParams, LeadFollow, CreateLeadFollowRequest, UpdateLeadFollowRequest, ListOpportunitiesParams, Opportunity, CreateOpportunityRequest, UpdateOpportunityRequest, ListMeetingsParams, Meeting, CreateMeetingRequest, UpdateMeetingRequest, ListMeetingParticipantsParams, MeetingParticipant, CreateMeetingParticipantRequest, ListMeetingBillingsParams, MeetingBilling, CreateMeetingBillingRequest, UpdateMeetingBillingRequest, PaymentSplit, EapSession, OutstandingByPayer, BillingRevenueReport, BillingAgingReport, BillingParticipantReport, ListQuotesParams, Quote, CreateQuoteRequest, UpdateQuoteRequest, ListSubscribersParams, Subscriber, CreateSubscriberRequest, UpdateSubscriberRequest, ListReferralsParams, Referral, CreateReferralRequest, UpdateReferralRequest, ListTouchesParams, Touch, CreateTouchRequest, UpdateTouchRequest, ListCategoriesParams as ListCategoriesParams$1, Category as Category$1, CreateCategoryRequest as CreateCategoryRequest$1, UpdateCategoryRequest as UpdateCategoryRequest$1, ListCalendarAccountsParams, CalendarAccount, CreateCalendarAccountRequest, UpdateCalendarAccountRequest, SyncCalendarRequest, SyncCalendarResponse, ListBusyBlocksParams, BusyBlock, CreateBusyBlockRequest, ListIcsTokensParams, IcsToken, CreateIcsTokenRequest, ZoomMeeting, ProvisionZoomMeetingRequest, UpdateZoomMeetingRequest, ZoomAvailability, ListZoomHostsParams, ZoomHost, CreateZoomHostRequest, UpdateZoomHostRequest, ZoomHostAvailability, ZoomHostAllocation, AvailableUser, ListCrmMailTemplatesParams, CrmMailTemplate, CreateCrmMailTemplateRequest, UpdateCrmMailTemplateRequest, MandrillTemplateStats, CreateMandrillTemplateRequest, UpdateMandrillTemplateRequest, UnsubscribeRequest, UnsubscribeResponse, ListCrmUsersParams, CrmUser, RegisterCrmUserRequest, BillingReportParams, RevenueReport, AgingReport, ParticipantBillingReport, CalendarSyncResult, CrmBlock } from '@23blocks/block-crm';
9
+ import { ProductsBlockConfig, ListProductsParams, Product, CreateProductRequest, UpdateProductRequest, ProductVariation, CreateVariationRequest, UpdateVariationRequest, ProductImage, ProductStock, ProductReview, Cart, UpdateCartRequest, AddToCartRequest, UpdateCartItemRequest, CartDetail, CheckoutRequest, ListCategoriesParams, Category, CreateCategoryRequest, UpdateCategoryRequest, Brand, CreateBrandRequest, UpdateBrandRequest, ListVendorsParams, Vendor, CreateVendorRequest, UpdateVendorRequest, ListWarehousesParams, Warehouse, CreateWarehouseRequest, UpdateWarehouseRequest, Channel, Collection, ListProductSetsParams, ProductSet, CreateProductSetRequest, UpdateProductSetRequest, ListShoppingListsParams, ShoppingList, CreateShoppingListRequest, UpdateShoppingListRequest, ListProductPromotionsParams, ProductPromotion, CreateProductPromotionRequest, UpdateProductPromotionRequest, ListProductPricesParams, ProductPrice, CreateProductPriceRequest, UpdateProductPriceRequest, ListProductFiltersParams, ProductFilter, CreateProductFilterRequest, UpdateProductFilterRequest, UpdateMyCartRequest, AddToMyCartRequest, AbandonedCartsParams, AbandonedCart, CreateVisitorRequest, Visitor, ListProductVendorsParams, ProductVendor, ProductsBlock } from '@23blocks/block-products';
10
+ import { ConversationsBlockConfig, ListMessagesParams, Message, CreateMessageRequest, UpdateMessageRequest, ListDraftMessagesParams, DraftMessage, CreateDraftMessageRequest, UpdateDraftMessageRequest, ListGroupsParams, Group, CreateGroupRequest, UpdateGroupRequest, ListGroupInvitesParams, GroupInvite, CreateGroupInviteRequest, QRCodeResponse, JoinGroupRequest, ListNotificationsParams, Notification, CreateNotificationRequest, UpdateNotificationRequest, GetConversationParams, Conversation, CreateWebSocketTokenRequest, CreateWebSocketTokenResponse, ListContextsParams, Context, CreateContextRequest, UpdateContextRequest, NotificationSettings, UpdateNotificationSettingsRequest, UserAvailability, SetAvailabilityRequest, MessageFile, CreateMessageFileRequest, PresignMessageFileRequest, PresignMessageFileResponse, Source, ListUsersParams, ConversationsUser, RegisterUserRequest, UpdateUserRequest as UpdateUserRequest$1, ListMeetingsParams as ListMeetingsParams$1, Meeting as Meeting$1, CreateMeetingRequest as CreateMeetingRequest$1, UpdateMeetingRequest as UpdateMeetingRequest$1, MeetingSession, ListWebNotificationsParams, WebNotification, CreateWebNotificationRequest, BulkWebNotificationRequest, ConversationsBlock } from '@23blocks/block-conversations';
11
+ import { FilesBlockConfig, ListStorageFilesParams, StorageFile, UploadFileRequest, CreateStorageFileRequest, UpdateStorageFileRequest, ListEntityFilesParams, EntityFile, AttachFileRequest, UpdateEntityFileRequest, ReorderFilesRequest, ListFileSchemasParams, FileSchema, CreateFileSchemaRequest, UpdateFileSchemaRequest, ListUserFilesParams, UserFile, AddUserFileRequest, UpdateUserFileRequest, PresignUploadRequest, PresignUploadResponse, MultipartPresignRequest as MultipartPresignRequest$1, MultipartPresignResponse as MultipartPresignResponse$1, MultipartCompleteRequest as MultipartCompleteRequest$1, FileAccess, FileAccessRequest, FileDelegation, CreateDelegationRequest, ListFileCategoriesParams, FileCategory, CreateFileCategoryRequest, UpdateFileCategoryRequest, ListFileTagsParams, FileTag, CreateFileTagRequest, UpdateFileTagRequest, ListFileDelegationsParams, CreateFileDelegationRequest, UpdateFileDelegationRequest, ListFileAccessParams, CreateFileAccessRequest, UpdateFileAccessRequest, ListFileAccessRequestsParams, CreateFileAccessRequestInput, ReviewFileAccessRequestInput, FilesBlock } from '@23blocks/block-files';
12
+ import { AssetsBlockConfig, ListAssetsParams, Asset, CreateAssetRequest, UpdateAssetRequest, TransferAssetRequest, AssignAssetRequest, AddToCategoryRequest, AddPartsRequest, RemovePartsRequest, UpdateMaintenanceRequest, LendAssetRequest, CreateOTPRequest, OTPResponse, ListAssetEventsParams, AssetEvent, CreateAssetEventRequest, UpdateAssetEventRequest, EventReportParams, EventReportList, EventReportSummary, EventImagePresignResponse, CreateEventImageRequest, EventImage, ListAssetAuditsParams, AssetAudit, CreateAssetAuditRequest, UpdateAssetAuditRequest, ListCategoriesParams as ListCategoriesParams$3, Category as Category$3, CreateCategoryRequest as CreateCategoryRequest$3, UpdateCategoryRequest as UpdateCategoryRequest$3, CategoryPresignResponse, CreateCategoryImageRequest, CategoryImage, ListTagsParams as ListTagsParams$1, Tag as Tag$1, CreateTagRequest as CreateTagRequest$1, UpdateTagRequest as UpdateTagRequest$1, ListVendorsParams as ListVendorsParams$1, Vendor as Vendor$1, CreateVendorRequest as CreateVendorRequest$1, UpdateVendorRequest as UpdateVendorRequest$1, ListWarehousesParams as ListWarehousesParams$1, Warehouse as Warehouse$1, CreateWarehouseRequest as CreateWarehouseRequest$1, UpdateWarehouseRequest as UpdateWarehouseRequest$1, ListAssetsEntitiesParams, AssetsEntity, CreateAssetsEntityRequest, UpdateAssetsEntityRequest, EntityAccess, CreateAccessRequestRequest, AccessRequest, ListAssetOperationsParams, AssetOperation, CreateAssetOperationRequest, OperationReportParams, OperationReportSummary, AssetAlert, CreateAssetAlertRequest, ListAssetsUsersParams, AssetsUser, RegisterAssetsUserRequest, UpdateAssetsUserRequest, UserOwnership, AssetPresignResponse, CreateAssetImageRequest, AssetImage, AssetsBlock } from '@23blocks/block-assets';
13
+ import { FormsBlockConfig, ListFormsParams, Form, CreateFormRequest, UpdateFormRequest, ListFormSchemasParams, FormSchema, CreateFormSchemaRequest, UpdateFormSchemaRequest, ListFormSchemaVersionsParams, FormSchemaVersion, CreateFormSchemaVersionRequest, UpdateFormSchemaVersionRequest, ListFormInstancesParams, FormInstance, CreateFormInstanceRequest, UpdateFormInstanceRequest, SubmitFormInstanceRequest, ListFormSetsParams, FormSet, CreateFormSetRequest, UpdateFormSetRequest, ListLandingsParams, Landing, CreateLandingRequest, UpdateLandingRequest, ListSubscriptionsParams, Subscription, CreateSubscriptionRequest, UpdateSubscriptionRequest, ListAppointmentsParams, Appointment, CreateAppointmentRequest, UpdateAppointmentRequest, AppointmentReportRequest, AppointmentReportSummary, ListSurveysParams, Survey, SurveyStatus, CreateSurveyRequest, UpdateSurveyRequest, UpdateSurveyStatusRequest, ListReferralsParams as ListReferralsParams$1, Referral as Referral$1, CreateReferralRequest as CreateReferralRequest$1, UpdateReferralRequest as UpdateReferralRequest$1, ListMailTemplatesParams, MailTemplate as MailTemplate$1, CreateMailTemplateRequest, UpdateMailTemplateRequest, ApplicationForm, ApplicationFormSubmission, ApplicationFormResponse, ApplicationFormDraft, SendOtpResponse, VerifyOtpRequest, CrmSyncResult, CrmSyncBatchRequest, CrmSyncBatchResult, CrmConnectionStatus, CrmSyncStatus, FormsBlock } from '@23blocks/block-forms';
14
+ import { SalesBlockConfig, ListOrdersParams, Order, CreateOrderRequest, UpdateOrderRequest, OrderDetail, UpdateOrderDetailRequest, ListPaymentsParams, Payment, CreatePaymentRequest, ListSubscriptionsParams as ListSubscriptionsParams$1, Subscription as Subscription$1, CreateSubscriptionRequest as CreateSubscriptionRequest$1, UpdateSubscriptionRequest as UpdateSubscriptionRequest$1, OrderTax, CreateOrderTaxRequest, UpdateOrderTaxRequest, ListSubscriptionModelsParams, SubscriptionModel as SubscriptionModel$1, CreateSubscriptionModelRequest, UpdateSubscriptionModelRequest, ListSalesEntitiesParams, SalesEntity, RegisterSalesEntityRequest, UpdateSalesEntityRequest, CreateEntitySubscriptionRequest, EntitySubscription, UpdateEntitySubscriptionRequest, ListSalesUsersParams, SalesUser, RegisterSalesUserRequest, UpdateSalesUserRequest, CreateUserSubscriptionRequest, UserSubscription as UserSubscription$1, UpdateUserSubscriptionRequest, ListSalesCustomersParams, SalesCustomer, CreateSalesCustomerRequest, UpdateSalesCustomerRequest, ListFlexibleOrdersParams, FlexibleOrder, CreateFlexibleOrderRequest, UpdateFlexibleOrderRequest, ListVendorPaymentsParams, VendorPayment, CreateVendorPaymentRequest, UpdateVendorPaymentRequest, CreateStripeCustomerRequest, CreateStripeCustomerResponse, CreateStripeCheckoutSessionRequest, StripeCheckoutSession, CreateStripePaymentIntentRequest, StripePaymentIntent, CreateStripeCustomerPortalRequest, StripeCustomerPortalSession, ListStripeSubscriptionsParams, StripeSubscription, CreateStripeSubscriptionRequest, UpdateStripeSubscriptionRequest, StripeWebhook, CreateStripeWebhookRequest, MercadoPagoPaymentMethod, CreateMercadoPagoPaymentRequest, MercadoPagoPaymentIntent, CreateMercadoPagoPSERequest, SalesBlock } from '@23blocks/block-sales';
15
+ import { CampaignsBlockConfig, ListCampaignsParams, Campaign, CreateCampaignRequest, UpdateCampaignRequest, CampaignResults, ListCampaignMediaParams, CampaignMedia, CreateCampaignMediaRequest, UpdateCampaignMediaRequest, CampaignMediaResults, ListLandingPagesParams, LandingPage, CreateLandingPageRequest, UpdateLandingPageRequest, ListAudiencesParams, Audience, CreateAudienceRequest, UpdateAudienceRequest, AudienceMember, ListLandingTemplatesParams, LandingTemplate, CreateLandingTemplateRequest, UpdateLandingTemplateRequest, ListCampaignTargetsParams, CampaignTarget, CreateCampaignTargetRequest, UpdateCampaignTargetRequest, ListCampaignResultsParams, CampaignResult, CreateCampaignResultRequest, UpdateCampaignResultRequest, ListCampaignMarketsParams, CampaignMarket, CreateCampaignMarketRequest, UpdateCampaignMarketRequest, ListCampaignLocationsParams, CampaignLocation, CreateCampaignLocationRequest, UpdateCampaignLocationRequest, ListCampaignTemplatesParams, CampaignTemplate, CreateCampaignTemplateRequest, UpdateCampaignTemplateRequest, ListTemplateDetailsParams, TemplateDetail, CreateTemplateDetailRequest, UpdateTemplateDetailRequest, ListCampaignMediaResultsParams, CampaignMediaResult, CreateCampaignMediaResultRequest, UpdateCampaignMediaResultRequest, ListMediaParams, Media, CreateMediaRequest, UpdateMediaRequest, CampaignsBlock } from '@23blocks/block-campaigns';
16
+ import { CompanyBlockConfig, ListCompaniesParams, Company as Company$1, CreateCompanyRequest, UpdateCompanyRequest, ListDepartmentsParams, Department, CreateDepartmentRequest, UpdateDepartmentRequest, DepartmentHierarchy, ListTeamsParams, Team, CreateTeamRequest, UpdateTeamRequest, ListTeamMembersParams, TeamMember, AddTeamMemberRequest, UpdateTeamMemberRequest, ListQuartersParams, Quarter, CreateQuarterRequest, UpdateQuarterRequest, ListPositionsParams, Position, CreatePositionRequest, UpdatePositionRequest, ListEmployeeAssignmentsParams, EmployeeAssignment, CreateEmployeeAssignmentRequest, UpdateEmployeeAssignmentRequest, CompanyBlock } from '@23blocks/block-company';
17
+ import { RewardsBlockConfig, ListRewardsParams, Reward, CreateRewardRequest, UpdateRewardRequest, RedeemRewardRequest, RewardRedemption, ListCouponsParams, Coupon, CreateCouponRequest, UpdateCouponRequest, ValidateCouponRequest, CouponValidationResult, ApplyCouponRequest, CouponApplication, Loyalty, AddPointsRequest, LoyaltyTransaction, RedeemPointsRequest, ListTransactionsParams, ListBadgesParams, Badge, CreateBadgeRequest, UpdateBadgeRequest, AwardBadgeRequest, UserBadge, ListUserBadgesParams, ListCouponConfigurationsParams, CouponConfiguration, CreateCouponConfigurationRequest, UpdateCouponConfigurationRequest, OfferCode, CreateOfferCodeRequest, SendOfferCodeRequest, RedeemOfferCodeRequest, ListExpirationRulesParams, ExpirationRule, CreateExpirationRuleRequest, UpdateExpirationRuleRequest, ListRewardsCustomersParams, RewardsCustomer, CustomerRewardExpiration, CustomerRewardHistory, BadgeCategory, CreateBadgeCategoryRequest, MoneyRule, CreateMoneyRuleRequest, UpdateMoneyRuleRequest, ProductRule, CreateProductRuleRequest, UpdateProductRuleRequest, EventRule, CreateEventRuleRequest, UpdateEventRuleRequest, RewardsBlock } from '@23blocks/block-rewards';
18
+ import { JarvisBlockConfig, ListAgentsParams, Agent, CreateAgentRequest, UpdateAgentRequest, ChatRequest, ChatResponse, CompleteRequest, CompleteResponse, ListPromptsParams, Prompt, CreatePromptRequest, UpdatePromptRequest, ExecutePromptRequest, ExecutePromptResponse, TestPromptRequest, TestPromptResponse, RenderPromptRequest, RenderPromptResponse, ListWorkflowsParams, Workflow, CreateWorkflowRequest, UpdateWorkflowRequest, RunWorkflowRequest, RunWorkflowResponse, ListExecutionsParams, Execution, ListConversationsParams, Conversation as Conversation$1, CreateConversationRequest, SendMessageRequest, SendMessageResponse, ListAIModelsParams, AIModel, CreateAIModelRequest, UpdateAIModelRequest, ListEntitiesParams as ListEntitiesParams$1, Entity, RegisterEntityRequest as RegisterEntityRequest$1, UpdateEntityRequest as UpdateEntityRequest$1, EntityContext, CreateEntityContextRequest, SendEntityMessageRequest, SendEntityMessageResponse, QueryEntityFileRequest, QueryEntityFileResponse, ListClustersParams, Cluster, CreateClusterRequest, UpdateClusterRequest, ClusterContext, CreateClusterContextRequest, SendClusterMessageRequest, SendClusterMessageResponse, ListJarvisUsersParams, JarvisUser, RegisterJarvisUserRequest, UpdateJarvisUserRequest, UserContext, CreateUserContextRequest, SendUserMessageRequest, SendUserMessageResponse, CreateUserContentContextRequest, ListWorkflowParticipantsParams, WorkflowParticipant, AddWorkflowParticipantRequest, UpdateWorkflowParticipantRequest, WorkflowStep, AddWorkflowStepRequest, UpdateWorkflowStepRequest, AddStepPromptRequest, AddStepAgentRequest, StartWorkflowRequest, StartWorkflowResponse, WorkflowInstance, WorkflowInstanceDetails, StepWorkflowRequest, LogWorkflowStepRequest, AgentContext, CreateAgentContextRequest, AgentMessage, AgentThread, CreateAgentThreadRequest, SendAgentThreadMessageRequest, SendAgentThreadMessageResponse, RunAgentThreadRequest, RunAgentThreadResponse, AgentRun, ListAgentRunExecutionsParams, AgentRunExecution, ListMailTemplatesParams as ListMailTemplatesParams$1, MailTemplate as MailTemplate$2, CreateMailTemplateRequest as CreateMailTemplateRequest$1, UpdateMailTemplateRequest as UpdateMailTemplateRequest$1, CreateMandrillTemplateRequest as CreateMandrillTemplateRequest$1, UpdateMandrillTemplateRequest as UpdateMandrillTemplateRequest$1, MandrillStats, MarvinChatRequest, MarvinChatResponse, MarvinContext, CreateMarvinContextRequest, SendMarvinMessageRequest, SendMarvinMessageResponse, ListPromptCommentsParams, PromptComment, CreatePromptCommentRequest, UpdatePromptCommentRequest, ReplyToCommentRequest, ListExecutionCommentsParams, ExecutionComment, CreateExecutionCommentRequest, UpdateExecutionCommentRequest, JarvisBlock } from '@23blocks/block-jarvis';
19
+ import { OnboardingBlockConfig, ListOnboardingsParams, Onboarding, CreateOnboardingRequest, UpdateOnboardingRequest, AddStepRequest, OnboardingStep, UpdateStepRequest, ListFlowsParams, Flow, CreateFlowRequest, UpdateFlowRequest, ListUserJourneysParams, UserJourney, StartJourneyRequest, CompleteStepRequest, UserJourneyReportParams, UserJourneyReportList, UserJourneyReportSummary, ListUserIdentitiesParams, UserIdentity, CreateUserIdentityRequest, VerifyUserIdentityRequest, StartOnboardRequest, OnboardJourney, OnboardJourneyDetails, StepOnboardRequest, LogOnboardRequest, ListMailTemplatesParams as ListMailTemplatesParams$2, MailTemplate as MailTemplate$3, CreateMailTemplateRequest as CreateMailTemplateRequest$2, UpdateMailTemplateRequest as UpdateMailTemplateRequest$2, MandrillTemplateStats as MandrillTemplateStats$1, CreateMandrillTemplateRequest as CreateMandrillTemplateRequest$2, UpdateMandrillTemplateRequest as UpdateMandrillTemplateRequest$2, ListAbandonedJourneysParams, AbandonedJourney, OnboardingBlock } from '@23blocks/block-onboarding';
20
+ import { UniversityBlockConfig, ListCoursesParams, Course, CreateCourseRequest, UpdateCourseRequest, ListLessonsParams, Lesson, CreateLessonRequest, UpdateLessonRequest, ReorderLessonsRequest, ListEnrollmentsParams, Enrollment, EnrollRequest, UpdateEnrollmentProgressRequest, ListAssignmentsParams, Assignment, CreateAssignmentRequest, UpdateAssignmentRequest, ListSubmissionsParams, Submission, SubmitAssignmentRequest, GradeSubmissionRequest, ListSubjectsParams, Subject, CreateSubjectRequest, UpdateSubjectRequest, ListTeachersParams, Teacher, CourseGroup, TeacherAvailability, CreateAvailabilityRequest, UpdateAvailabilityRequest, ListStudentsParams, Student, RegisterStudentRequest, UpdateStudentRequest, StudentAvailability, CreateCourseGroupRequest, ListCoachingSessionsParams, CoachingSession, CreateCoachingSessionRequest, UpdateCoachingSessionRequest, ListContentTestsParams, ContentTest, CreateContentTestRequest, UpdateContentTestRequest, CreateQuestionRequest, TestQuestion, TestOption, CreateOptionRequest, ListRegistrationTokensParams, RegistrationToken, CreateRegistrationTokenRequest, UpdateRegistrationTokenRequest, TokenValidationResult, PlacementTest, ListPlacementsParams, CreatePlacementRequest, PlacementSection, CreatePlacementSectionRequest, PlacementQuestion, CreatePlacementQuestionRequest, PlacementOption, CreatePlacementOptionRequest, CreatePlacementRuleRequest, PlacementRule, PlacementInstance, PlacementResponse, Availability, BulkUpdateAvailabilityRequest, ListCalendarEventsParams, CalendarEvent, CreateCalendarEventRequest, UpdateCalendarEventRequest, CreateMatchRequest, Match, FindCoachesRequest, AvailableCoach, FindCoacheesRequest, AvailableCoachee, EvaluateMatchesRequest, MatchEvaluation, EvaluateAvailabilitiesRequest, ListAttendanceParams, Attendance, CreateAttendanceRequest, UpdateAttendanceRequest, BulkAttendanceRequest, AttendanceStats, ListNotesParams, Note, CreateNoteRequest, UpdateNoteRequest, UniversityBlock } from '@23blocks/block-university';
21
+ import { WalletBlockConfig, ListWalletsParams, Wallet, CreateWalletRequest, UpdateWalletRequest, CreditWalletRequest, Transaction, DebitWalletRequest, ValidateWalletRequest, ValidateWalletResponse, TransferWalletRequest, WalletContent, StoreWalletContentRequest, ListTransactionsParams as ListTransactionsParams$1, ListAuthorizationCodesParams, AuthorizationCode, CreateAuthorizationCodeRequest, ValidateAuthorizationCodeRequest, UseAuthorizationCodeRequest, TransactionWebhookRequest, TransactionWebhookResponse, WalletBlock } from '@23blocks/block-wallet';
22
+ import { Observable } from 'rxjs';
23
+
24
+ /**
25
+ * Authentication mode
26
+ */
27
+ type AuthMode = 'token' | 'cookie';
28
+ /**
29
+ * Storage type for token mode
30
+ */
31
+ type StorageType = 'localStorage' | 'sessionStorage' | 'memory';
32
+ /**
33
+ * Service URL configuration - each microservice has its own URL.
34
+ * All URLs are optional - only configure the services you need.
35
+ */
36
+ interface ServiceUrls {
37
+ /** Authentication service URL */
38
+ authentication?: string;
39
+ /** Search service URL */
40
+ search?: string;
41
+ /** Products service URL */
42
+ products?: string;
43
+ /** CRM service URL */
44
+ crm?: string;
45
+ /** Content service URL */
46
+ content?: string;
47
+ /** Geolocation service URL */
48
+ geolocation?: string;
49
+ /** Conversations service URL */
50
+ conversations?: string;
51
+ /** Files service URL */
52
+ files?: string;
53
+ /** Forms service URL */
54
+ forms?: string;
55
+ /** Assets service URL */
56
+ assets?: string;
57
+ /** Campaigns service URL */
58
+ campaigns?: string;
59
+ /** Company service URL */
60
+ company?: string;
61
+ /** Rewards service URL */
62
+ rewards?: string;
63
+ /** Sales service URL */
64
+ sales?: string;
65
+ /** Wallet service URL */
66
+ wallet?: string;
67
+ /** Jarvis (AI) service URL */
68
+ jarvis?: string;
69
+ /** Onboarding service URL */
70
+ onboarding?: string;
71
+ /** University (LMS) service URL */
72
+ university?: string;
73
+ }
74
+ /**
75
+ * Configuration for providing 23blocks services
76
+ */
77
+ interface ProviderConfig {
78
+ /**
79
+ * Service URLs for each microservice.
80
+ * Only configure the services you need - accessing a service without
81
+ * a configured URL will throw an error.
82
+ *
83
+ * @example
84
+ * ```typescript
85
+ * provideBlocks23({
86
+ * apiKey: 'your-api-key',
87
+ * urls: {
88
+ * authentication: 'https://gateway.23blocks.com',
89
+ * crm: 'https://crm.23blocks.com',
90
+ * products: 'https://products.23blocks.com',
91
+ * },
92
+ * })
93
+ * ```
94
+ */
95
+ urls: ServiceUrls;
96
+ /**
97
+ * API Key for authenticating with 23blocks services
98
+ */
99
+ apiKey: string;
100
+ /**
101
+ * Tenant ID (optional, for multi-tenant setups)
102
+ */
103
+ tenantId?: string;
104
+ /**
105
+ * Authentication mode
106
+ * - 'token' (default): SDK stores tokens in localStorage/sessionStorage/memory
107
+ * - 'cookie': Backend manages auth via httpOnly cookies
108
+ */
109
+ authMode?: AuthMode;
110
+ /**
111
+ * Storage type for token mode
112
+ * @default 'localStorage'
113
+ */
114
+ storage?: StorageType;
115
+ /**
116
+ * Additional headers to include with every request
117
+ */
118
+ headers?: Record<string, string>;
119
+ /**
120
+ * Request timeout in milliseconds
121
+ * @default 30000
122
+ */
123
+ timeout?: number;
124
+ }
125
+ /**
126
+ * Injection token for the token manager (internal use)
127
+ */
128
+ declare const TOKEN_MANAGER: InjectionToken<TokenManagerService>;
129
+ /**
130
+ * Injection token for provider config
131
+ */
132
+ declare const PROVIDER_CONFIG: InjectionToken<ProviderConfig>;
133
+ /** @deprecated Use PROVIDER_CONFIG instead */
134
+ declare const SIMPLE_CONFIG: InjectionToken<ProviderConfig>;
135
+ /**
136
+ * Token manager interface
137
+ */
138
+ interface TokenManagerService {
139
+ getAccessToken(): string | null;
140
+ getRefreshToken(): string | null;
141
+ setTokens(accessToken: string, refreshToken?: string): void;
142
+ clearTokens(): void;
143
+ /**
144
+ * Subscribe to storage changes from other tabs/windows.
145
+ * Returns an unsubscribe function.
146
+ */
147
+ onStorageChange(callback: () => void): () => void;
148
+ }
149
+ /**
150
+ * Provide 23blocks services with simplified configuration.
151
+ *
152
+ * This is the recommended way to set up 23blocks in new Angular applications.
153
+ * It automatically handles token storage and authentication headers.
154
+ *
155
+ * Services are only available if their URL is configured. Accessing a service
156
+ * without a configured URL will throw an error.
157
+ *
158
+ * @example Basic usage with multiple services
159
+ * ```typescript
160
+ * // app.config.ts
161
+ * import { ApplicationConfig } from '@angular/core';
162
+ * import { provideBlocks23 } from '@23blocks/angular';
163
+ *
164
+ * export const appConfig: ApplicationConfig = {
165
+ * providers: [
166
+ * provideBlocks23({
167
+ * apiKey: 'your-api-key',
168
+ * urls: {
169
+ * authentication: 'https://gateway.23blocks.com',
170
+ * crm: 'https://crm.23blocks.com',
171
+ * products: 'https://products.23blocks.com',
172
+ * },
173
+ * }),
174
+ * ],
175
+ * };
176
+ * ```
177
+ *
178
+ * @example Cookie mode (recommended for security)
179
+ * ```typescript
180
+ * export const appConfig: ApplicationConfig = {
181
+ * providers: [
182
+ * provideBlocks23({
183
+ * apiKey: 'your-api-key',
184
+ * authMode: 'cookie',
185
+ * urls: {
186
+ * authentication: 'https://gateway.23blocks.com',
187
+ * crm: 'https://crm.23blocks.com',
188
+ * },
189
+ * }),
190
+ * ],
191
+ * };
192
+ * ```
193
+ */
194
+ declare function provideBlocks23(config: ProviderConfig): EnvironmentProviders;
195
+ /**
196
+ * Get providers array for NgModule-based applications with simplified config.
197
+ *
198
+ * Services are only available if their URL is configured. Accessing a service
199
+ * without a configured URL will throw an error.
200
+ *
201
+ * @example
202
+ * ```typescript
203
+ * // app.module.ts
204
+ * import { NgModule } from '@angular/core';
205
+ * import { getBlocks23Providers } from '@23blocks/angular';
206
+ *
207
+ * @NgModule({
208
+ * providers: [
209
+ * ...getBlocks23Providers({
210
+ * apiKey: 'your-api-key',
211
+ * urls: {
212
+ * authentication: 'https://gateway.23blocks.com',
213
+ * crm: 'https://crm.23blocks.com',
214
+ * },
215
+ * }),
216
+ * ],
217
+ * })
218
+ * export class AppModule {}
219
+ * ```
220
+ */
221
+ declare function getBlocks23Providers(config: ProviderConfig): Provider[];
222
+ /** @deprecated Use `ProviderConfig` instead */
223
+ type Simple23BlocksConfig = ProviderConfig;
224
+
225
+ /**
226
+ * @deprecated Use per-service transport tokens (AUTHENTICATION_TRANSPORT, etc.)
227
+ * Shared transport token - only for backward compatibility with advanced API
228
+ */
229
+ declare const TRANSPORT: InjectionToken<Transport>;
230
+ /** Transport for Authentication service */
231
+ declare const AUTHENTICATION_TRANSPORT: InjectionToken<Transport>;
232
+ /** Transport for Search service */
233
+ declare const SEARCH_TRANSPORT: InjectionToken<Transport>;
234
+ /** Transport for Products service */
235
+ declare const PRODUCTS_TRANSPORT: InjectionToken<Transport>;
236
+ /** Transport for CRM service */
237
+ declare const CRM_TRANSPORT: InjectionToken<Transport>;
238
+ /** Transport for Content service */
239
+ declare const CONTENT_TRANSPORT: InjectionToken<Transport>;
240
+ /** Transport for Geolocation service */
241
+ declare const GEOLOCATION_TRANSPORT: InjectionToken<Transport>;
242
+ /** Transport for Conversations service */
243
+ declare const CONVERSATIONS_TRANSPORT: InjectionToken<Transport>;
244
+ /** Transport for Files service */
245
+ declare const FILES_TRANSPORT: InjectionToken<Transport>;
246
+ /** Transport for Forms service */
247
+ declare const FORMS_TRANSPORT: InjectionToken<Transport>;
248
+ /** Transport for Assets service */
249
+ declare const ASSETS_TRANSPORT: InjectionToken<Transport>;
250
+ /** Transport for Campaigns service */
251
+ declare const CAMPAIGNS_TRANSPORT: InjectionToken<Transport>;
252
+ /** Transport for Company service */
253
+ declare const COMPANY_TRANSPORT: InjectionToken<Transport>;
254
+ /** Transport for Rewards service */
255
+ declare const REWARDS_TRANSPORT: InjectionToken<Transport>;
256
+ /** Transport for Sales service */
257
+ declare const SALES_TRANSPORT: InjectionToken<Transport>;
258
+ /** Transport for Wallet service */
259
+ declare const WALLET_TRANSPORT: InjectionToken<Transport>;
260
+ /** Transport for Jarvis service */
261
+ declare const JARVIS_TRANSPORT: InjectionToken<Transport>;
262
+ /** Transport for Onboarding service */
263
+ declare const ONBOARDING_TRANSPORT: InjectionToken<Transport>;
264
+ /** Transport for University service */
265
+ declare const UNIVERSITY_TRANSPORT: InjectionToken<Transport>;
266
+ /**
267
+ * Injection token for Authentication block configuration
268
+ */
269
+ declare const AUTHENTICATION_CONFIG: InjectionToken<AuthenticationBlockConfig>;
270
+ /**
271
+ * Injection token for Search block configuration
272
+ */
273
+ declare const SEARCH_CONFIG: InjectionToken<SearchBlockConfig>;
274
+ /**
275
+ * Injection token for Geolocation block configuration
276
+ */
277
+ declare const GEOLOCATION_CONFIG: InjectionToken<GeolocationBlockConfig>;
278
+ /**
279
+ * Injection token for Content block configuration
280
+ */
281
+ declare const CONTENT_CONFIG: InjectionToken<ContentBlockConfig>;
282
+ /**
283
+ * Injection token for CRM block configuration
284
+ */
285
+ declare const CRM_CONFIG: InjectionToken<CrmBlockConfig>;
286
+ /**
287
+ * Injection token for Products block configuration
288
+ */
289
+ declare const PRODUCTS_CONFIG: InjectionToken<ProductsBlockConfig>;
290
+ /**
291
+ * Injection token for Conversations block configuration
292
+ */
293
+ declare const CONVERSATIONS_CONFIG: InjectionToken<ConversationsBlockConfig>;
294
+ /**
295
+ * Injection token for Files block configuration
296
+ */
297
+ declare const FILES_CONFIG: InjectionToken<FilesBlockConfig>;
298
+ /**
299
+ * Injection token for Assets block configuration
300
+ */
301
+ declare const ASSETS_CONFIG: InjectionToken<AssetsBlockConfig>;
302
+ /**
303
+ * Injection token for Forms block configuration
304
+ */
305
+ declare const FORMS_CONFIG: InjectionToken<FormsBlockConfig>;
306
+ /**
307
+ * Injection token for Sales block configuration
308
+ */
309
+ declare const SALES_CONFIG: InjectionToken<SalesBlockConfig>;
310
+ /**
311
+ * Injection token for Campaigns block configuration
312
+ */
313
+ declare const CAMPAIGNS_CONFIG: InjectionToken<CampaignsBlockConfig>;
314
+ /**
315
+ * Injection token for Company block configuration
316
+ */
317
+ declare const COMPANY_CONFIG: InjectionToken<CompanyBlockConfig>;
318
+ /**
319
+ * Injection token for Rewards block configuration
320
+ */
321
+ declare const REWARDS_CONFIG: InjectionToken<RewardsBlockConfig>;
322
+ /**
323
+ * Injection token for Jarvis block configuration
324
+ */
325
+ declare const JARVIS_CONFIG: InjectionToken<JarvisBlockConfig>;
326
+ /**
327
+ * Injection token for Onboarding block configuration
328
+ */
329
+ declare const ONBOARDING_CONFIG: InjectionToken<OnboardingBlockConfig>;
330
+ /**
331
+ * Injection token for University block configuration
332
+ */
333
+ declare const UNIVERSITY_CONFIG: InjectionToken<UniversityBlockConfig>;
334
+ /**
335
+ * Injection token for Wallet block configuration
336
+ */
337
+ declare const WALLET_CONFIG: InjectionToken<WalletBlockConfig>;
338
+
339
+ /**
340
+ * Configuration for providing 23blocks services
341
+ */
342
+ interface Provide23BlocksConfig {
343
+ transport: Transport;
344
+ authentication?: AuthenticationBlockConfig;
345
+ search?: SearchBlockConfig;
346
+ products?: ProductsBlockConfig;
347
+ crm?: CrmBlockConfig;
348
+ content?: ContentBlockConfig;
349
+ geolocation?: GeolocationBlockConfig;
350
+ conversations?: ConversationsBlockConfig;
351
+ files?: FilesBlockConfig;
352
+ forms?: FormsBlockConfig;
353
+ assets?: AssetsBlockConfig;
354
+ campaigns?: CampaignsBlockConfig;
355
+ company?: CompanyBlockConfig;
356
+ rewards?: RewardsBlockConfig;
357
+ sales?: SalesBlockConfig;
358
+ wallet?: WalletBlockConfig;
359
+ jarvis?: JarvisBlockConfig;
360
+ onboarding?: OnboardingBlockConfig;
361
+ university?: UniversityBlockConfig;
362
+ }
363
+ /**
364
+ * Provide 23blocks services for standalone Angular applications.
365
+ *
366
+ * @example
367
+ * ```typescript
368
+ * // app.config.ts
369
+ * import { ApplicationConfig } from '@angular/core';
370
+ * import { provide23Blocks } from '@23blocks/angular';
371
+ * import { createHttpTransport } from '@23blocks/transport-http';
372
+ *
373
+ * const transport = createHttpTransport({
374
+ * baseUrl: 'https://api.example.com',
375
+ * headers: () => ({
376
+ * 'Authorization': `Bearer ${localStorage.getItem('token')}`,
377
+ * }),
378
+ * });
379
+ *
380
+ * export const appConfig: ApplicationConfig = {
381
+ * providers: [
382
+ * provide23Blocks({
383
+ * transport,
384
+ * authentication: { apiKey: 'my-api-key' },
385
+ * search: { apiKey: 'my-api-key' },
386
+ * products: { apiKey: 'my-api-key' },
387
+ * crm: { apiKey: 'my-api-key' },
388
+ * }),
389
+ * ],
390
+ * };
391
+ * ```
392
+ */
393
+ declare function provide23Blocks(config: Provide23BlocksConfig): EnvironmentProviders;
394
+ /**
395
+ * Get providers array for NgModule-based applications.
396
+ *
397
+ * @example
398
+ * ```typescript
399
+ * // app.module.ts
400
+ * import { NgModule } from '@angular/core';
401
+ * import { get23BlocksProviders } from '@23blocks/angular';
402
+ *
403
+ * @NgModule({
404
+ * providers: [
405
+ * ...get23BlocksProviders({
406
+ * transport,
407
+ * authentication: { apiKey: 'my-api-key' },
408
+ * }),
409
+ * ],
410
+ * })
411
+ * export class AppModule {}
412
+ * ```
413
+ */
414
+ declare function get23BlocksProviders(config: Provide23BlocksConfig): Provider[];
415
+
416
+ /**
417
+ * Angular service wrapping the Authentication block.
418
+ * Converts Promise-based APIs to RxJS Observables.
419
+ *
420
+ * @example
421
+ * ```typescript
422
+ * @Component({...})
423
+ * export class LoginComponent {
424
+ * constructor(private auth: AuthenticationService) {}
425
+ *
426
+ * login(email: string, password: string) {
427
+ * this.auth.signIn({ email, password }).subscribe({
428
+ * next: (response) => console.log('Signed in:', response.user),
429
+ * error: (err) => console.error('Failed:', err),
430
+ * });
431
+ * }
432
+ * }
433
+ * ```
434
+ */
435
+ declare class AuthenticationService {
436
+ private readonly block;
437
+ private readonly tokenManager;
438
+ private readonly simpleConfig;
439
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: AuthenticationBlockConfig, tokenManager: TokenManagerService | null, simpleConfig: Simple23BlocksConfig | null);
440
+ /**
441
+ * Ensure the service is configured, throw helpful error if not
442
+ */
443
+ private ensureConfigured;
444
+ /**
445
+ * Check if using simplified API with automatic token management
446
+ */
447
+ private get isTokenMode();
448
+ /**
449
+ * Sign in with email and password.
450
+ * When using simplified API (provideBlocks23), tokens are stored automatically.
451
+ */
452
+ signIn(request: SignInRequest): Observable<SignInResponse>;
453
+ /**
454
+ * Sign up a new user.
455
+ * When using simplified API, tokens are stored automatically if returned.
456
+ */
457
+ signUp(request: SignUpRequest): Observable<SignUpResponse>;
458
+ /**
459
+ * Sign out the current user.
460
+ * When using simplified API, tokens are cleared automatically.
461
+ */
462
+ signOut(): Observable<void>;
463
+ requestPasswordReset(request: PasswordResetRequest): Observable<void>;
464
+ updatePassword(request: PasswordUpdateRequest): Observable<void>;
465
+ validateToken(token: string): Observable<TokenValidationResponse>;
466
+ getCurrentUser(): Observable<User | null>;
467
+ /**
468
+ * Refresh the access token
469
+ */
470
+ refreshToken(request: RefreshTokenRequest): Observable<RefreshTokenResponse>;
471
+ /**
472
+ * Request a magic link for passwordless login
473
+ */
474
+ requestMagicLink(request: MagicLinkRequest): Observable<void>;
475
+ /**
476
+ * Verify a magic link token
477
+ */
478
+ verifyMagicLink(request: MagicLinkVerifyRequest): Observable<SignInResponse>;
479
+ /**
480
+ * Send an invitation to a new user
481
+ */
482
+ sendInvitation(request: InvitationRequest): Observable<void>;
483
+ /**
484
+ * Accept an invitation
485
+ */
486
+ acceptInvitation(request: AcceptInvitationRequest): Observable<SignInResponse>;
487
+ /**
488
+ * Confirm email with token
489
+ */
490
+ confirmEmail(token: string): Observable<User>;
491
+ /**
492
+ * Resend confirmation email
493
+ */
494
+ resendConfirmation(request: ResendConfirmationRequest): Observable<void>;
495
+ /**
496
+ * Validate email before registration
497
+ */
498
+ validateEmail(request: ValidateEmailRequest): Observable<ValidateEmailResponse>;
499
+ /**
500
+ * Validate document before registration
501
+ */
502
+ validateDocument(request: ValidateDocumentRequest): Observable<ValidateDocumentResponse>;
503
+ /**
504
+ * Resend invitation email
505
+ */
506
+ resendInvitation(request: ResendInvitationRequest): Observable<User>;
507
+ /**
508
+ * Request account recovery (for deleted accounts)
509
+ */
510
+ requestAccountRecovery(request: AccountRecoveryRequest): Observable<AccountRecoveryResponse>;
511
+ /**
512
+ * Complete account recovery with new password
513
+ */
514
+ completeAccountRecovery(request: CompleteRecoveryRequest): Observable<User>;
515
+ listUsers(params?: {
516
+ page?: number;
517
+ perPage?: number;
518
+ }): Observable<User[]>;
519
+ getUser(id: string): Observable<User>;
520
+ updateUser(id: string, request: UpdateUserRequest): Observable<User>;
521
+ deleteUser(id: string): Observable<void>;
522
+ /**
523
+ * Get a user by unique ID
524
+ */
525
+ getUserByUniqueId(uniqueId: string): Observable<User>;
526
+ /**
527
+ * Update user profile
528
+ */
529
+ updateUserProfile(userId: string, request: UpdateProfileRequest): Observable<User>;
530
+ /**
531
+ * Activate a user
532
+ */
533
+ activateUser(id: string): Observable<User>;
534
+ /**
535
+ * Deactivate a user
536
+ */
537
+ deactivateUser(id: string): Observable<User>;
538
+ /**
539
+ * Change user role
540
+ */
541
+ changeUserRole(id: string, roleUniqueId: string, reason: string, forceReauth?: boolean): Observable<User>;
542
+ /**
543
+ * Search users by query
544
+ */
545
+ searchUsers(query: string, params?: ListParams): Observable<PageResult<User>>;
546
+ /**
547
+ * Advanced search users by criteria or payload
548
+ */
549
+ searchUsersAdvanced(request: UserSearchRequest, params?: ListParams): Observable<PageResult<User>>;
550
+ /**
551
+ * Get user profile
552
+ */
553
+ getUserProfile(userUniqueId: string): Observable<UserProfileFull>;
554
+ /**
555
+ * Create or update user profile
556
+ */
557
+ createUserProfile(request: ProfileRequest): Observable<UserProfileFull>;
558
+ /**
559
+ * Update email address
560
+ */
561
+ updateUserEmail(userUniqueId: string, request: UpdateEmailRequest): Observable<User>;
562
+ /**
563
+ * Get user devices
564
+ */
565
+ getUserDevices(userUniqueId: string, params?: ListParams): Observable<PageResult<UserDeviceFull>>;
566
+ /**
567
+ * Add a device
568
+ */
569
+ addUserDevice(request: AddDeviceRequest): Observable<UserDeviceFull>;
570
+ /**
571
+ * Get user's companies
572
+ */
573
+ getUserCompanies(userUniqueId: string): Observable<Company[]>;
574
+ /**
575
+ * Add subscription to user
576
+ */
577
+ addUserSubscription(userUniqueId: string, request: AddUserSubscriptionRequest): Observable<UserSubscription>;
578
+ /**
579
+ * Update user subscription
580
+ */
581
+ updateUserSubscription(userUniqueId: string, request: AddUserSubscriptionRequest): Observable<UserSubscription>;
582
+ /**
583
+ * Resend confirmation email by user unique ID
584
+ */
585
+ resendConfirmationByUniqueId(userUniqueId: string): Observable<void>;
586
+ listRoles(): Observable<Role[]>;
587
+ getRole(id: string): Observable<Role>;
588
+ createRole(request: CreateRoleRequest): Observable<Role>;
589
+ updateRole(id: string, request: UpdateRoleRequest): Observable<Role>;
590
+ deleteRole(id: string): Observable<void>;
591
+ listPermissions(): Observable<Permission[]>;
592
+ /**
593
+ * List all permissions with pagination
594
+ */
595
+ listPermissionsPaginated(params?: ListParams): Observable<PageResult<Permission>>;
596
+ /**
597
+ * Get a permission by ID
598
+ */
599
+ getPermission(id: string): Observable<Permission>;
600
+ /**
601
+ * Create a new permission
602
+ */
603
+ createPermission(request: CreatePermissionRequest): Observable<Permission>;
604
+ /**
605
+ * Update a permission
606
+ */
607
+ updatePermission(id: string, request: UpdatePermissionRequest): Observable<Permission>;
608
+ /**
609
+ * Delete a permission
610
+ */
611
+ deletePermission(id: string): Observable<void>;
612
+ listApiKeys(): Observable<ApiKey[]>;
613
+ getApiKey(id: string): Observable<ApiKey>;
614
+ createApiKey(request: CreateApiKeyRequest): Observable<ApiKeyWithSecret>;
615
+ updateApiKey(id: string, request: UpdateApiKeyRequest): Observable<ApiKey>;
616
+ revokeApiKey(id: string): Observable<void>;
617
+ /**
618
+ * Initialize MFA setup - generates secret, QR code, and backup codes
619
+ */
620
+ mfaSetup(): Observable<MfaSetupResponseFull>;
621
+ /**
622
+ * Enable MFA after verifying setup with TOTP code
623
+ */
624
+ mfaEnable(request: MfaEnableRequest): Observable<MfaOperationResponse>;
625
+ /**
626
+ * Disable MFA with password confirmation
627
+ */
628
+ mfaDisable(request: MfaDisableRequest): Observable<MfaOperationResponse>;
629
+ /**
630
+ * Verify MFA code during login
631
+ */
632
+ mfaVerify(request: MfaVerifyRequestFull): Observable<MfaVerificationResponse>;
633
+ /**
634
+ * Get current MFA status
635
+ */
636
+ mfaStatus(): Observable<MfaStatusResponse>;
637
+ /**
638
+ * Login with Facebook OAuth token
639
+ */
640
+ loginWithFacebook(request: OAuthSocialLoginRequest): Observable<SignInResponse>;
641
+ /**
642
+ * Login with Google OAuth token
643
+ */
644
+ loginWithGoogle(request: OAuthSocialLoginRequest): Observable<SignInResponse>;
645
+ /**
646
+ * Login to a specific tenant
647
+ */
648
+ loginWithTenant(request: TenantLoginRequest): Observable<SignInResponse>;
649
+ /**
650
+ * Introspect a token to validate and get information
651
+ */
652
+ introspectToken(token: string): Observable<TokenIntrospectionResponse>;
653
+ /**
654
+ * Revoke a specific token
655
+ */
656
+ revokeToken(request: TokenRevokeRequest): Observable<TokenRevokeResponse>;
657
+ /**
658
+ * Revoke all tokens for the current user
659
+ */
660
+ revokeAllTokens(request?: TokenRevokeAllRequest): Observable<TokenRevokeResponse>;
661
+ /**
662
+ * Create a tenant context (switch to a different tenant)
663
+ */
664
+ createTenantContext(request: TenantContextCreateRequest): Observable<TenantContextResponse>;
665
+ /**
666
+ * Revoke tenant context (exit tenant switch)
667
+ */
668
+ revokeTenantContext(): Observable<void>;
669
+ /**
670
+ * Get tenant context audit log
671
+ */
672
+ auditTenantContext(): Observable<TenantContextAuditEntry[]>;
673
+ /**
674
+ * List avatars for a user
675
+ */
676
+ listAvatars(userUniqueId: string, params?: ListParams): Observable<PageResult<UserAvatarFull>>;
677
+ /**
678
+ * Get a specific avatar
679
+ */
680
+ getAvatar(userUniqueId: string): Observable<UserAvatarFull>;
681
+ /**
682
+ * Create/update an avatar
683
+ */
684
+ createAvatar(userUniqueId: string, request: CreateAvatarRequest): Observable<UserAvatarFull>;
685
+ /**
686
+ * Update an avatar
687
+ */
688
+ updateAvatar(userUniqueId: string, request: Partial<CreateAvatarRequest>): Observable<UserAvatarFull>;
689
+ /**
690
+ * Delete an avatar
691
+ */
692
+ deleteAvatar(userUniqueId: string): Observable<void>;
693
+ /**
694
+ * Get presigned URL for direct upload
695
+ */
696
+ presignAvatarUpload(userUniqueId: string, filename: string): Observable<AvatarPresignResponse>;
697
+ /**
698
+ * Get presigned URLs for multipart upload
699
+ */
700
+ multipartAvatarPresign(userUniqueId: string, request: MultipartPresignRequest): Observable<MultipartPresignResponse>;
701
+ /**
702
+ * Complete a multipart upload
703
+ */
704
+ multipartAvatarComplete(userUniqueId: string, request: MultipartCompleteRequest): Observable<MultipartCompleteResponse>;
705
+ /**
706
+ * List child tenants
707
+ */
708
+ listChildTenants(params?: ListParams): Observable<PageResult<Company>>;
709
+ /**
710
+ * Validate tenant code availability
711
+ */
712
+ validateTenantCode(request: ValidateTenantCodeRequest): Observable<ValidateTenantCodeResponse>;
713
+ /**
714
+ * Search for a tenant by name
715
+ */
716
+ searchTenantByName(request: SearchTenantRequest): Observable<Company>;
717
+ /**
718
+ * Search for a tenant by code
719
+ */
720
+ searchTenantByCode(request: SearchTenantRequest): Observable<Company>;
721
+ /**
722
+ * Create a tenant user relationship
723
+ */
724
+ createTenantUser(userUniqueId: string, request: CreateTenantUserRequest): Observable<TenantUserFull>;
725
+ /**
726
+ * Update tenant user onboarding status
727
+ */
728
+ updateTenantUserOnboarding(userUniqueId: string, urlId: string, request: UpdateTenantUserOnboardingRequest): Observable<TenantUserFull>;
729
+ /**
730
+ * Update tenant user sales/purchase status
731
+ */
732
+ updateTenantUserSales(userUniqueId: string, urlId: string, request: UpdateTenantUserSalesRequest): Observable<TenantUserFull>;
733
+ /**
734
+ * List apps with pagination
735
+ */
736
+ listApps(params?: ListParams): Observable<PageResult<App>>;
737
+ /**
738
+ * Get an app by ID
739
+ */
740
+ getApp(id: string): Observable<App>;
741
+ /**
742
+ * Create a new app
743
+ */
744
+ createApp(request: CreateAppRequest): Observable<App>;
745
+ /**
746
+ * Update an app
747
+ */
748
+ updateApp(id: string, request: UpdateAppRequest): Observable<App>;
749
+ /**
750
+ * Delete an app
751
+ */
752
+ deleteApp(id: string): Observable<void>;
753
+ /**
754
+ * Regenerate webhook secret for an app
755
+ */
756
+ regenerateAppWebhookSecret(id: string): Observable<App>;
757
+ /**
758
+ * List blocks for a company
759
+ */
760
+ listBlocks(companyId: string, params?: ListParams): Observable<PageResult<Block>>;
761
+ /**
762
+ * Get a block by ID
763
+ */
764
+ getBlock(id: string): Observable<Block>;
765
+ /**
766
+ * Add a block to a company
767
+ */
768
+ addBlock(companyId: string, blockCode: string): Observable<Block>;
769
+ /**
770
+ * Remove a block from a company
771
+ */
772
+ removeBlock(id: string): Observable<void>;
773
+ /**
774
+ * List registered services
775
+ */
776
+ listServices(params?: ListParams): Observable<PageResult<Service>>;
777
+ /**
778
+ * Get a service by ID
779
+ */
780
+ getService(id: string): Observable<Service>;
781
+ /**
782
+ * Get a service by code
783
+ */
784
+ getServiceByCode(code: string): Observable<Service>;
785
+ /**
786
+ * Health check all services
787
+ */
788
+ healthCheckServices(): Observable<Service[]>;
789
+ /**
790
+ * List subscription models
791
+ */
792
+ listSubscriptionModels(params?: ListParams): Observable<PageResult<SubscriptionModel>>;
793
+ /**
794
+ * Get a subscription model by ID
795
+ */
796
+ getSubscriptionModel(id: string): Observable<SubscriptionModel>;
797
+ /**
798
+ * Get a subscription model by code
799
+ */
800
+ getSubscriptionModelByCode(code: string): Observable<SubscriptionModel>;
801
+ /**
802
+ * List promotional subscription models
803
+ */
804
+ listPromotionalSubscriptionModels(): Observable<SubscriptionModel[]>;
805
+ /**
806
+ * List user subscriptions
807
+ */
808
+ listUserSubscriptions(params?: ListParams): Observable<PageResult<UserSubscription>>;
809
+ /**
810
+ * Get a user subscription by ID
811
+ */
812
+ getUserSubscription(id: string): Observable<UserSubscription>;
813
+ /**
814
+ * Get subscriptions for a user
815
+ */
816
+ getSubscriptionsForUser(userUniqueId: string): Observable<UserSubscription[]>;
817
+ /**
818
+ * Subscribe a user to a plan
819
+ */
820
+ subscribeUser(userUniqueId: string, request: SubscribeRequest): Observable<UserSubscription>;
821
+ /**
822
+ * Cancel a user subscription
823
+ */
824
+ cancelUserSubscription(id: string): Observable<UserSubscription>;
825
+ /**
826
+ * Reactivate a user subscription
827
+ */
828
+ reactivateUserSubscription(id: string): Observable<UserSubscription>;
829
+ /**
830
+ * List company subscriptions
831
+ */
832
+ listCompanySubscriptions(params?: ListParams): Observable<PageResult<CompanySubscription>>;
833
+ /**
834
+ * Get a company subscription by ID
835
+ */
836
+ getCompanySubscription(id: string): Observable<CompanySubscription>;
837
+ /**
838
+ * Get subscriptions for a company
839
+ */
840
+ getSubscriptionsForCompany(companyUniqueId: string): Observable<CompanySubscription[]>;
841
+ /**
842
+ * Subscribe a company to a plan
843
+ */
844
+ subscribeCompany(companyUniqueId: string, request: SubscribeRequest): Observable<CompanySubscription>;
845
+ /**
846
+ * Cancel a company subscription
847
+ */
848
+ cancelCompanySubscription(id: string): Observable<CompanySubscription>;
849
+ /**
850
+ * Reactivate a company subscription
851
+ */
852
+ reactivateCompanySubscription(id: string): Observable<CompanySubscription>;
853
+ /**
854
+ * List countries with pagination
855
+ */
856
+ listCountries(params?: ListParams): Observable<PageResult<Country>>;
857
+ /**
858
+ * Get a country by ID
859
+ */
860
+ getCountry(id: string): Observable<Country>;
861
+ /**
862
+ * Get a country by ISO code
863
+ */
864
+ getCountryByIsoCode(isoCode: string): Observable<Country>;
865
+ /**
866
+ * Get all countries (no pagination)
867
+ */
868
+ getAllCountries(): Observable<Country[]>;
869
+ /**
870
+ * List states with pagination
871
+ */
872
+ listStates(params?: ListParams): Observable<PageResult<State>>;
873
+ /**
874
+ * Get a state by ID
875
+ */
876
+ getState(id: string): Observable<State>;
877
+ /**
878
+ * Get states for a country
879
+ */
880
+ getStatesForCountry(countryId: string): Observable<State[]>;
881
+ /**
882
+ * List counties with pagination
883
+ */
884
+ listCounties(params?: ListParams): Observable<PageResult<County>>;
885
+ /**
886
+ * Get a county by ID
887
+ */
888
+ getCounty(id: string): Observable<County>;
889
+ /**
890
+ * Get counties for a state
891
+ */
892
+ getCountiesForState(stateId: string): Observable<County[]>;
893
+ /**
894
+ * List cities with pagination
895
+ */
896
+ listCities(params?: ListParams): Observable<PageResult<City>>;
897
+ /**
898
+ * Get a city by ID
899
+ */
900
+ getCity(id: string): Observable<City>;
901
+ /**
902
+ * Get cities for a state
903
+ */
904
+ getCitiesForState(stateId: string): Observable<City[]>;
905
+ /**
906
+ * Get cities for a county
907
+ */
908
+ getCitiesForCounty(countyId: string): Observable<City[]>;
909
+ /**
910
+ * Search cities by name
911
+ */
912
+ searchCities(query: string, params?: ListParams): Observable<PageResult<City>>;
913
+ /**
914
+ * List currencies with pagination
915
+ */
916
+ listCurrencies(params?: ListParams): Observable<PageResult<Currency>>;
917
+ /**
918
+ * Get a currency by ID
919
+ */
920
+ getCurrency(id: string): Observable<Currency>;
921
+ /**
922
+ * Get a currency by code
923
+ */
924
+ getCurrencyByCode(code: string): Observable<Currency>;
925
+ /**
926
+ * Get all currencies (no pagination)
927
+ */
928
+ getAllCurrencies(): Observable<Currency[]>;
929
+ /**
930
+ * List guests with pagination
931
+ */
932
+ listGuests(params?: ListParams): Observable<PageResult<Guest>>;
933
+ /**
934
+ * Get a guest by ID
935
+ */
936
+ getGuest(id: string): Observable<Guest>;
937
+ /**
938
+ * Track a guest visit
939
+ */
940
+ trackGuest(): Observable<Guest>;
941
+ /**
942
+ * Convert guest to user (registration)
943
+ */
944
+ convertGuest(id: string): Observable<Guest>;
945
+ /**
946
+ * List magic links with pagination
947
+ */
948
+ listMagicLinks(params?: ListParams): Observable<PageResult<MagicLink>>;
949
+ /**
950
+ * Get a magic link by ID
951
+ */
952
+ getMagicLink(id: string): Observable<MagicLink>;
953
+ /**
954
+ * Create a magic link
955
+ */
956
+ createMagicLink(request: CreateMagicLinkRequest): Observable<MagicLink>;
957
+ /**
958
+ * Validate a magic link token
959
+ */
960
+ validateMagicLink(token: string): Observable<MagicLink>;
961
+ /**
962
+ * Expire a magic link
963
+ */
964
+ expireMagicLink(id: string): Observable<MagicLink>;
965
+ /**
966
+ * List refresh tokens for the current user
967
+ */
968
+ listRefreshTokens(params?: ListParams): Observable<PageResult<RefreshToken>>;
969
+ /**
970
+ * Revoke a refresh token
971
+ */
972
+ revokeRefreshToken(id: string): Observable<RefreshToken>;
973
+ /**
974
+ * Revoke all refresh tokens for current user
975
+ */
976
+ revokeAllRefreshTokens(): Observable<void>;
977
+ /**
978
+ * Revoke all refresh tokens except current
979
+ */
980
+ revokeOtherRefreshTokens(): Observable<void>;
981
+ /**
982
+ * List devices for current user
983
+ */
984
+ listDevices(params?: ListParams): Observable<PageResult<UserDevice>>;
985
+ /**
986
+ * Get a device by ID
987
+ */
988
+ getDevice(id: string): Observable<UserDevice>;
989
+ /**
990
+ * Register a new device
991
+ */
992
+ registerDevice(request: RegisterDeviceRequest): Observable<UserDevice>;
993
+ /**
994
+ * Update device settings
995
+ */
996
+ updateDevice(id: string, request: Partial<RegisterDeviceRequest>): Observable<UserDevice>;
997
+ /**
998
+ * Unregister a device
999
+ */
1000
+ unregisterDevice(id: string): Observable<void>;
1001
+ /**
1002
+ * Set default device
1003
+ */
1004
+ setDefaultDevice(id: string): Observable<UserDevice>;
1005
+ /**
1006
+ * Get current tenant user context
1007
+ */
1008
+ getCurrentTenantUser(): Observable<TenantUser>;
1009
+ /**
1010
+ * Get tenant user by user ID
1011
+ */
1012
+ getTenantUser(userUniqueId: string): Observable<TenantUser>;
1013
+ /**
1014
+ * List tenant users
1015
+ */
1016
+ listTenantUsers(params?: ListParams): Observable<TenantUser[]>;
1017
+ /**
1018
+ * List mail templates with pagination
1019
+ */
1020
+ listMailTemplates(params?: ListParams): Observable<PageResult<MailTemplate>>;
1021
+ /**
1022
+ * Get a mail template by ID
1023
+ */
1024
+ getMailTemplate(id: string): Observable<MailTemplate>;
1025
+ /**
1026
+ * Get a mail template by event name
1027
+ */
1028
+ getMailTemplateByEvent(eventName: string): Observable<MailTemplate>;
1029
+ /**
1030
+ * Update a mail template
1031
+ */
1032
+ updateMailTemplate(id: string, template: Partial<MailTemplate>): Observable<MailTemplate>;
1033
+ /**
1034
+ * Get the current access token (token mode only).
1035
+ * Returns null if using cookie mode or no token is stored.
1036
+ */
1037
+ getAccessToken(): string | null;
1038
+ /**
1039
+ * Manually set tokens (token mode only).
1040
+ * Useful for SSR hydration or external auth flows.
1041
+ */
1042
+ setTokens(accessToken: string, refreshToken?: string): void;
1043
+ /**
1044
+ * Clear stored tokens.
1045
+ */
1046
+ clearTokens(): void;
1047
+ /**
1048
+ * Check if user is likely authenticated.
1049
+ * In token mode: checks if token exists.
1050
+ * In cookie mode: always returns null (use validateToken instead).
1051
+ */
1052
+ isAuthenticated(): boolean | null;
1053
+ /**
1054
+ * Get the JSON Web Key Set (JWKS) for verifying tokens
1055
+ */
1056
+ getJwks(): Observable<JwksResponse>;
1057
+ /**
1058
+ * List all RSA keys
1059
+ */
1060
+ listRsaKeys(): Observable<RsaKey[]>;
1061
+ /**
1062
+ * Create a new RSA key
1063
+ */
1064
+ createRsaKey(request: CreateRsaKeyRequest): Observable<RsaKey>;
1065
+ /**
1066
+ * Rotate an RSA key (creates new, deactivates old)
1067
+ */
1068
+ rotateRsaKey(kid: string, request?: RotateRsaKeyRequest): Observable<RsaKey>;
1069
+ /**
1070
+ * Delete an RSA key
1071
+ */
1072
+ deleteRsaKey(kid: string): Observable<void>;
1073
+ /**
1074
+ * Get OpenID Connect discovery document
1075
+ */
1076
+ getOidcDiscovery(): Observable<OidcDiscovery>;
1077
+ /**
1078
+ * Get authorization endpoint URL with parameters
1079
+ */
1080
+ getOidcAuthorizeUrl(request: OidcAuthorizeRequest): string;
1081
+ /**
1082
+ * Exchange authorization code for tokens
1083
+ */
1084
+ exchangeOidcToken(request: OidcTokenRequest): Observable<OidcTokenResponse>;
1085
+ /**
1086
+ * Get user info from OIDC userinfo endpoint
1087
+ */
1088
+ getOidcUserInfo(accessToken: string): Observable<OidcUserInfo>;
1089
+ /**
1090
+ * Access the underlying block for advanced operations
1091
+ * Use this when you need access to services not wrapped by this Angular service
1092
+ */
1093
+ get authenticationBlock(): AuthenticationBlock;
1094
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationService, [{ optional: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
1095
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
1096
+ }
1097
+
1098
+ /**
1099
+ * Angular service wrapping the Search block.
1100
+ * Converts Promise-based APIs to RxJS Observables.
1101
+ *
1102
+ * @example
1103
+ * ```typescript
1104
+ * @Component({...})
1105
+ * export class SearchComponent {
1106
+ * results$ = new BehaviorSubject<SearchResult[]>([]);
1107
+ *
1108
+ * constructor(private searchService: SearchService) {}
1109
+ *
1110
+ * onSearch(query: string) {
1111
+ * this.searchService.search({ query }).subscribe({
1112
+ * next: (response) => this.results$.next(response.results),
1113
+ * error: (err) => console.error('Search failed:', err),
1114
+ * });
1115
+ * }
1116
+ * }
1117
+ * ```
1118
+ */
1119
+ declare class SearchService {
1120
+ private readonly block;
1121
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: SearchBlockConfig);
1122
+ /**
1123
+ * Ensure the service is configured, throw helpful error if not
1124
+ */
1125
+ private ensureConfigured;
1126
+ /**
1127
+ * Perform a search query
1128
+ */
1129
+ search(request: SearchRequest): Observable<SearchResponse>;
1130
+ /**
1131
+ * Get search suggestions for autocomplete
1132
+ */
1133
+ suggest(query: string, limit?: number): Observable<SearchResult[]>;
1134
+ /**
1135
+ * Get available entity types for filtering
1136
+ */
1137
+ getEntityTypes(): Observable<EntityType[]>;
1138
+ /**
1139
+ * Get recent search queries
1140
+ */
1141
+ getLastQueries(limit?: number): Observable<LastQuery[]>;
1142
+ /**
1143
+ * Get the full history of search queries
1144
+ */
1145
+ getQueryHistory(params?: {
1146
+ page?: number;
1147
+ perPage?: number;
1148
+ }): Observable<SearchQuery[]>;
1149
+ /**
1150
+ * Clear search history
1151
+ */
1152
+ clearHistory(): Observable<void>;
1153
+ /**
1154
+ * List user's favorite entities
1155
+ */
1156
+ listFavorites(): Observable<FavoriteEntity[]>;
1157
+ /**
1158
+ * Add an entity to favorites
1159
+ */
1160
+ addFavorite(request: AddFavoriteRequest): Observable<FavoriteEntity>;
1161
+ /**
1162
+ * Remove an entity from favorites
1163
+ */
1164
+ removeFavorite(id: string): Observable<void>;
1165
+ /**
1166
+ * Check if an entity is favorited
1167
+ */
1168
+ isFavorite(entityUniqueId: string): Observable<boolean>;
1169
+ listEntities(params?: ListEntitiesParams): Observable<PageResult<SearchEntity>>;
1170
+ getEntity(uniqueId: string): Observable<SearchEntity>;
1171
+ registerEntity(uniqueId: string, data: RegisterEntityRequest): Observable<SearchEntity>;
1172
+ updateEntity(uniqueId: string, data: UpdateEntityRequest): Observable<SearchEntity>;
1173
+ deleteEntity(uniqueId: string): Observable<void>;
1174
+ listRegisteredEntityTypes(): Observable<{
1175
+ entityType: string;
1176
+ }[]>;
1177
+ getEntityTypeSchema(entityType: string): Observable<EntityTypeSchema>;
1178
+ searchByCopilot(data: CopilotSearchRequest): Observable<SearchEntity[]>;
1179
+ listIdentities(params?: ListIdentitiesParams): Observable<PageResult<SearchIdentity>>;
1180
+ getIdentity(uniqueId: string): Observable<SearchIdentity>;
1181
+ registerIdentity(uniqueId: string, data: RegisterIdentityRequest): Observable<SearchIdentity>;
1182
+ updateIdentity(uniqueId: string, data: UpdateIdentityRequest): Observable<SearchIdentity>;
1183
+ /**
1184
+ * Perform AI-enhanced search using Jarvis
1185
+ */
1186
+ jarvisSearch(query: JarvisSearchQuery): Observable<PageResult<JarvisSearchResult>>;
1187
+ /**
1188
+ * Get semantic suggestions using Jarvis AI
1189
+ */
1190
+ jarvisSuggest(query: string, limit?: number): Observable<string[]>;
1191
+ /**
1192
+ * Get related entities using Jarvis AI
1193
+ */
1194
+ jarvisGetRelated(entityUniqueId: string, entityType: string, limit?: number): Observable<JarvisSearchResult[]>;
1195
+ /**
1196
+ * Access the underlying block for advanced operations
1197
+ */
1198
+ get searchBlock(): SearchBlock;
1199
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchService, [{ optional: true; }, { optional: true; }, null]>;
1200
+ static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
1201
+ }
1202
+
1203
+ /**
1204
+ * Angular service wrapping the Products block.
1205
+ * Converts Promise-based APIs to RxJS Observables.
1206
+ *
1207
+ * @example
1208
+ * ```typescript
1209
+ * @Component({...})
1210
+ * export class ProductsComponent {
1211
+ * constructor(private products: ProductsService) {}
1212
+ *
1213
+ * loadProducts() {
1214
+ * this.products.listProducts().subscribe({
1215
+ * next: (result) => console.log('Products:', result.data),
1216
+ * error: (err) => console.error('Failed:', err),
1217
+ * });
1218
+ * }
1219
+ * }
1220
+ * ```
1221
+ */
1222
+ declare class ProductsService {
1223
+ private readonly block;
1224
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: ProductsBlockConfig);
1225
+ /**
1226
+ * Ensure the service is configured, throw helpful error if not
1227
+ */
1228
+ private ensureConfigured;
1229
+ listProducts(params?: ListProductsParams): Observable<PageResult<Product>>;
1230
+ getProduct(uniqueId: string): Observable<Product>;
1231
+ createProduct(data: CreateProductRequest): Observable<Product>;
1232
+ updateProduct(uniqueId: string, data: UpdateProductRequest): Observable<Product>;
1233
+ deleteProduct(uniqueId: string): Observable<void>;
1234
+ recoverProduct(uniqueId: string): Observable<Product>;
1235
+ searchProducts(query: string, params?: ListProductsParams): Observable<PageResult<Product>>;
1236
+ listDeletedProducts(params?: ListProductsParams): Observable<PageResult<Product>>;
1237
+ listVariations(productUniqueId: string): Observable<ProductVariation[]>;
1238
+ getVariation(uniqueId: string): Observable<ProductVariation>;
1239
+ createVariation(data: CreateVariationRequest): Observable<ProductVariation>;
1240
+ updateVariation(uniqueId: string, data: UpdateVariationRequest): Observable<ProductVariation>;
1241
+ deleteVariation(uniqueId: string): Observable<void>;
1242
+ listImages(productUniqueId: string): Observable<ProductImage[]>;
1243
+ addImage(productUniqueId: string, imageUrl: string, isPrimary?: boolean): Observable<ProductImage>;
1244
+ deleteImage(uniqueId: string): Observable<void>;
1245
+ getStock(productUniqueId: string, vendorUniqueId?: string): Observable<ProductStock[]>;
1246
+ updateStock(productUniqueId: string, vendorUniqueId: string, warehouseUniqueId: string, quantity: number): Observable<ProductStock>;
1247
+ listReviews(productUniqueId: string): Observable<PageResult<ProductReview>>;
1248
+ addReview(productUniqueId: string, rating: number, title?: string, content?: string): Observable<ProductReview>;
1249
+ getCart(userUniqueId: string): Observable<Cart>;
1250
+ getOrCreateCart(userUniqueId: string): Observable<Cart>;
1251
+ updateCart(userUniqueId: string, data: UpdateCartRequest): Observable<Cart>;
1252
+ deleteCart(userUniqueId: string): Observable<void>;
1253
+ addCartItem(userUniqueId: string, item: AddToCartRequest): Observable<Cart>;
1254
+ updateCartItem(userUniqueId: string, productUniqueId: string, data: UpdateCartItemRequest): Observable<Cart>;
1255
+ removeCartItem(userUniqueId: string, productUniqueId: string): Observable<Cart>;
1256
+ getCartItems(userUniqueId: string): Observable<CartDetail[]>;
1257
+ checkout(userUniqueId: string, data?: CheckoutRequest): Observable<Cart>;
1258
+ orderCart(userUniqueId: string): Observable<{
1259
+ cart: Cart;
1260
+ orderUniqueId: string;
1261
+ }>;
1262
+ orderCartItem(userUniqueId: string, productUniqueId: string): Observable<{
1263
+ cart: Cart;
1264
+ orderUniqueId: string;
1265
+ }>;
1266
+ cancelCart(userUniqueId: string): Observable<Cart>;
1267
+ cancelCartItem(userUniqueId: string, productUniqueId: string): Observable<Cart>;
1268
+ listCategories(params?: ListCategoriesParams): Observable<PageResult<Category>>;
1269
+ getCategory(uniqueId: string): Observable<Category>;
1270
+ createCategory(data: CreateCategoryRequest): Observable<Category>;
1271
+ updateCategory(uniqueId: string, data: UpdateCategoryRequest): Observable<Category>;
1272
+ deleteCategory(uniqueId: string): Observable<void>;
1273
+ recoverCategory(uniqueId: string): Observable<Category>;
1274
+ getCategoryChildren(uniqueId: string): Observable<Category[]>;
1275
+ listBrands(page?: number, perPage?: number): Observable<PageResult<Brand>>;
1276
+ getBrand(uniqueId: string): Observable<Brand>;
1277
+ createBrand(data: CreateBrandRequest): Observable<Brand>;
1278
+ updateBrand(uniqueId: string, data: UpdateBrandRequest): Observable<Brand>;
1279
+ deleteBrand(uniqueId: string): Observable<void>;
1280
+ listVendors(params?: ListVendorsParams): Observable<PageResult<Vendor>>;
1281
+ getVendor(uniqueId: string): Observable<Vendor>;
1282
+ createVendor(data: CreateVendorRequest): Observable<Vendor>;
1283
+ updateVendor(uniqueId: string, data: UpdateVendorRequest): Observable<Vendor>;
1284
+ deleteVendor(uniqueId: string): Observable<void>;
1285
+ listWarehouses(params?: ListWarehousesParams): Observable<PageResult<Warehouse>>;
1286
+ getWarehouse(uniqueId: string): Observable<Warehouse>;
1287
+ createWarehouse(data: CreateWarehouseRequest): Observable<Warehouse>;
1288
+ updateWarehouse(uniqueId: string, data: UpdateWarehouseRequest): Observable<Warehouse>;
1289
+ deleteWarehouse(uniqueId: string): Observable<void>;
1290
+ listChannels(): Observable<Channel[]>;
1291
+ getChannel(uniqueId: string): Observable<Channel>;
1292
+ listCollections(): Observable<Collection[]>;
1293
+ getCollection(uniqueId: string): Observable<Collection>;
1294
+ listProductSets(params?: ListProductSetsParams): Observable<PageResult<ProductSet>>;
1295
+ getProductSet(uniqueId: string): Observable<ProductSet>;
1296
+ createProductSet(data: CreateProductSetRequest): Observable<ProductSet>;
1297
+ updateProductSet(uniqueId: string, data: UpdateProductSetRequest): Observable<ProductSet>;
1298
+ deleteProductSet(uniqueId: string): Observable<void>;
1299
+ listShoppingLists(params?: ListShoppingListsParams): Observable<PageResult<ShoppingList>>;
1300
+ getShoppingList(uniqueId: string): Observable<ShoppingList>;
1301
+ createShoppingList(data: CreateShoppingListRequest): Observable<ShoppingList>;
1302
+ updateShoppingList(uniqueId: string, data: UpdateShoppingListRequest): Observable<ShoppingList>;
1303
+ deleteShoppingList(uniqueId: string): Observable<void>;
1304
+ listProductPromotions(params?: ListProductPromotionsParams): Observable<PageResult<ProductPromotion>>;
1305
+ getProductPromotion(uniqueId: string): Observable<ProductPromotion>;
1306
+ createProductPromotion(data: CreateProductPromotionRequest): Observable<ProductPromotion>;
1307
+ updateProductPromotion(uniqueId: string, data: UpdateProductPromotionRequest): Observable<ProductPromotion>;
1308
+ deleteProductPromotion(uniqueId: string): Observable<void>;
1309
+ listProductPrices(params?: ListProductPricesParams): Observable<PageResult<ProductPrice>>;
1310
+ getProductPrice(uniqueId: string): Observable<ProductPrice>;
1311
+ createProductPrice(data: CreateProductPriceRequest): Observable<ProductPrice>;
1312
+ updateProductPrice(uniqueId: string, data: UpdateProductPriceRequest): Observable<ProductPrice>;
1313
+ deleteProductPrice(uniqueId: string): Observable<void>;
1314
+ listProductFilters(params?: ListProductFiltersParams): Observable<PageResult<ProductFilter>>;
1315
+ getProductFilter(uniqueId: string): Observable<ProductFilter>;
1316
+ createProductFilter(data: CreateProductFilterRequest): Observable<ProductFilter>;
1317
+ updateProductFilter(uniqueId: string, data: UpdateProductFilterRequest): Observable<ProductFilter>;
1318
+ deleteProductFilter(uniqueId: string): Observable<void>;
1319
+ listAddons(productUniqueId: string): Observable<Product[]>;
1320
+ addAddon(productUniqueId: string, addonProductUniqueId: string): Observable<void>;
1321
+ removeAddon(productUniqueId: string, addonUniqueId: string): Observable<void>;
1322
+ getMyCart(uniqueId: string): Observable<Cart>;
1323
+ createMyCart(): Observable<Cart>;
1324
+ updateMyCart(uniqueId: string, data: UpdateMyCartRequest): Observable<Cart>;
1325
+ addToMyCart(data: AddToMyCartRequest): Observable<Cart>;
1326
+ checkoutMyCart(uniqueId: string): Observable<Cart>;
1327
+ orderAllMyCart(uniqueId: string): Observable<Cart>;
1328
+ cancelAllMyCart(uniqueId: string): Observable<Cart>;
1329
+ deleteMyCart(uniqueId: string): Observable<void>;
1330
+ getAbandonedCarts(params?: AbandonedCartsParams): Observable<{
1331
+ carts: AbandonedCart[];
1332
+ total: number;
1333
+ }>;
1334
+ createVisitor(data: CreateVisitorRequest): Observable<Visitor>;
1335
+ /**
1336
+ * List vendors for a product
1337
+ */
1338
+ listProductVendors(productUniqueId: string, params?: ListProductVendorsParams): Observable<PageResult<ProductVendor>>;
1339
+ /**
1340
+ * Get the primary vendor for a product
1341
+ */
1342
+ getPrimaryProductVendor(productUniqueId: string): Observable<ProductVendor | null>;
1343
+ /**
1344
+ * Get available vendors for a product
1345
+ */
1346
+ getAvailableProductVendors(productUniqueId: string, params?: ListProductVendorsParams): Observable<PageResult<ProductVendor>>;
1347
+ /**
1348
+ * Access the underlying block for advanced operations
1349
+ * Use this when you need access to services not wrapped by this Angular service
1350
+ */
1351
+ get productsBlock(): ProductsBlock;
1352
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductsService, [{ optional: true; }, { optional: true; }, null]>;
1353
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProductsService>;
1354
+ }
1355
+
1356
+ /**
1357
+ * Angular service wrapping the CRM block.
1358
+ * Converts Promise-based APIs to RxJS Observables.
1359
+ *
1360
+ * @example
1361
+ * ```typescript
1362
+ * @Component({...})
1363
+ * export class AccountsComponent {
1364
+ * constructor(private crm: CrmService) {}
1365
+ *
1366
+ * loadAccounts() {
1367
+ * this.crm.listAccounts({ page: 1, perPage: 20 }).subscribe({
1368
+ * next: (result) => console.log('Accounts:', result.data),
1369
+ * error: (err) => console.error('Failed:', err),
1370
+ * });
1371
+ * }
1372
+ * }
1373
+ * ```
1374
+ */
1375
+ declare class CrmService {
1376
+ private readonly block;
1377
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: CrmBlockConfig);
1378
+ /**
1379
+ * Ensure the service is configured, throw helpful error if not
1380
+ */
1381
+ private ensureConfigured;
1382
+ listAccounts(params?: ListAccountsParams): Observable<PageResult<Account>>;
1383
+ getAccount(uniqueId: string): Observable<Account>;
1384
+ createAccount(data: CreateAccountRequest): Observable<Account>;
1385
+ updateAccount(uniqueId: string, data: UpdateAccountRequest): Observable<Account>;
1386
+ deleteAccount(uniqueId: string): Observable<void>;
1387
+ recoverAccount(uniqueId: string): Observable<Account>;
1388
+ searchAccounts(query: string, params?: ListAccountsParams): Observable<PageResult<Account>>;
1389
+ listDeletedAccounts(params?: ListAccountsParams): Observable<PageResult<Account>>;
1390
+ listContacts(params?: ListContactsParams): Observable<PageResult<Contact>>;
1391
+ getContact(uniqueId: string): Observable<Contact>;
1392
+ createContact(data: CreateContactRequest): Observable<Contact>;
1393
+ updateContact(uniqueId: string, data: UpdateContactRequest): Observable<Contact>;
1394
+ deleteContact(uniqueId: string): Observable<void>;
1395
+ recoverContact(uniqueId: string): Observable<Contact>;
1396
+ searchContacts(query: string, params?: ListContactsParams): Observable<PageResult<Contact>>;
1397
+ listDeletedContacts(params?: ListContactsParams): Observable<PageResult<Contact>>;
1398
+ listContactEvents(params?: ListContactEventsParams): Observable<PageResult<ContactEvent>>;
1399
+ getContactEvent(uniqueId: string): Observable<ContactEvent>;
1400
+ createContactEvent(data: CreateContactEventRequest): Observable<ContactEvent>;
1401
+ updateContactEvent(uniqueId: string, data: UpdateContactEventRequest): Observable<ContactEvent>;
1402
+ deleteContactEvent(uniqueId: string): Observable<void>;
1403
+ studentConfirmation(uniqueId: string, request?: ConfirmationRequest): Observable<ContactEvent>;
1404
+ studentCheckin(uniqueId: string, request?: CheckinRequest): Observable<ContactEvent>;
1405
+ teacherConfirmation(uniqueId: string, request?: ConfirmationRequest): Observable<ContactEvent>;
1406
+ teacherCheckin(uniqueId: string, request?: CheckinRequest): Observable<ContactEvent>;
1407
+ checkout(uniqueId: string, request?: CheckoutRequest$1): Observable<ContactEvent>;
1408
+ checkoutStudent(uniqueId: string, request?: CheckoutRequest$1): Observable<ContactEvent>;
1409
+ studentNotes(uniqueId: string, request: EventNotesRequest): Observable<ContactEvent>;
1410
+ adminNotes(uniqueId: string, request: EventNotesRequest): Observable<ContactEvent>;
1411
+ listLeads(params?: ListLeadsParams): Observable<PageResult<Lead>>;
1412
+ getLead(uniqueId: string): Observable<Lead>;
1413
+ createLead(data: CreateLeadRequest): Observable<Lead>;
1414
+ updateLead(uniqueId: string, data: UpdateLeadRequest): Observable<Lead>;
1415
+ deleteLead(uniqueId: string): Observable<void>;
1416
+ recoverLead(uniqueId: string): Observable<Lead>;
1417
+ searchLeads(query: string, params?: ListLeadsParams): Observable<PageResult<Lead>>;
1418
+ listDeletedLeads(params?: ListLeadsParams): Observable<PageResult<Lead>>;
1419
+ listLeadFollows(leadUniqueId: string, params?: ListLeadFollowsParams): Observable<PageResult<LeadFollow>>;
1420
+ getLeadFollow(leadUniqueId: string, followUniqueId: string): Observable<LeadFollow>;
1421
+ createLeadFollow(leadUniqueId: string, data: CreateLeadFollowRequest): Observable<LeadFollow>;
1422
+ updateLeadFollow(leadUniqueId: string, followUniqueId: string, data: UpdateLeadFollowRequest): Observable<LeadFollow>;
1423
+ deleteLeadFollow(leadUniqueId: string, followUniqueId: string): Observable<void>;
1424
+ listOpportunities(params?: ListOpportunitiesParams): Observable<PageResult<Opportunity>>;
1425
+ getOpportunity(uniqueId: string): Observable<Opportunity>;
1426
+ createOpportunity(data: CreateOpportunityRequest): Observable<Opportunity>;
1427
+ updateOpportunity(uniqueId: string, data: UpdateOpportunityRequest): Observable<Opportunity>;
1428
+ deleteOpportunity(uniqueId: string): Observable<void>;
1429
+ recoverOpportunity(uniqueId: string): Observable<Opportunity>;
1430
+ searchOpportunities(query: string, params?: ListOpportunitiesParams): Observable<PageResult<Opportunity>>;
1431
+ listDeletedOpportunities(params?: ListOpportunitiesParams): Observable<PageResult<Opportunity>>;
1432
+ listMeetings(params?: ListMeetingsParams): Observable<PageResult<Meeting>>;
1433
+ getMeeting(uniqueId: string): Observable<Meeting>;
1434
+ createMeeting(data: CreateMeetingRequest): Observable<Meeting>;
1435
+ updateMeeting(uniqueId: string, data: UpdateMeetingRequest): Observable<Meeting>;
1436
+ deleteMeeting(uniqueId: string): Observable<void>;
1437
+ recoverMeeting(uniqueId: string): Observable<Meeting>;
1438
+ searchMeetings(query: string, params?: ListMeetingsParams): Observable<PageResult<Meeting>>;
1439
+ listDeletedMeetings(params?: ListMeetingsParams): Observable<PageResult<Meeting>>;
1440
+ listMeetingParticipants(meetingUniqueId: string, params?: ListMeetingParticipantsParams): Observable<PageResult<MeetingParticipant>>;
1441
+ createMeetingParticipant(meetingUniqueId: string, data: CreateMeetingParticipantRequest): Observable<MeetingParticipant>;
1442
+ deleteMeetingParticipant(meetingUniqueId: string, participantUniqueId: string): Observable<void>;
1443
+ listMeetingBillings(meetingUniqueId: string, params?: ListMeetingBillingsParams): Observable<PageResult<MeetingBilling>>;
1444
+ getMeetingBilling(uniqueId: string): Observable<MeetingBilling>;
1445
+ createMeetingBilling(meetingUniqueId: string, data: CreateMeetingBillingRequest): Observable<MeetingBilling>;
1446
+ updateMeetingBilling(uniqueId: string, data: UpdateMeetingBillingRequest): Observable<MeetingBilling>;
1447
+ deleteMeetingBilling(uniqueId: string): Observable<void>;
1448
+ getPaymentSplit(uniqueId: string): Observable<PaymentSplit[]>;
1449
+ getEapSessions(participantEmail: string, payerName: string): Observable<EapSession>;
1450
+ getOutstandingByPayer(): Observable<OutstandingByPayer[]>;
1451
+ getBillingRevenueReport(): Observable<BillingRevenueReport>;
1452
+ getBillingAgingReport(): Observable<BillingAgingReport>;
1453
+ getBillingParticipantReport(participantEmail: string): Observable<BillingParticipantReport>;
1454
+ listQuotes(params?: ListQuotesParams): Observable<PageResult<Quote>>;
1455
+ getQuote(uniqueId: string): Observable<Quote>;
1456
+ createQuote(data: CreateQuoteRequest): Observable<Quote>;
1457
+ updateQuote(uniqueId: string, data: UpdateQuoteRequest): Observable<Quote>;
1458
+ deleteQuote(uniqueId: string): Observable<void>;
1459
+ recoverQuote(uniqueId: string): Observable<Quote>;
1460
+ searchQuotes(query: string, params?: ListQuotesParams): Observable<PageResult<Quote>>;
1461
+ listDeletedQuotes(params?: ListQuotesParams): Observable<PageResult<Quote>>;
1462
+ listSubscribers(params?: ListSubscribersParams): Observable<PageResult<Subscriber>>;
1463
+ getSubscriber(uniqueId: string): Observable<Subscriber>;
1464
+ createSubscriber(data: CreateSubscriberRequest): Observable<Subscriber>;
1465
+ updateSubscriber(uniqueId: string, data: UpdateSubscriberRequest): Observable<Subscriber>;
1466
+ deleteSubscriber(uniqueId: string): Observable<void>;
1467
+ listReferrals(params?: ListReferralsParams): Observable<PageResult<Referral>>;
1468
+ getReferral(uniqueId: string): Observable<Referral>;
1469
+ createReferral(data: CreateReferralRequest): Observable<Referral>;
1470
+ updateReferral(uniqueId: string, data: UpdateReferralRequest): Observable<Referral>;
1471
+ deleteReferral(uniqueId: string): Observable<void>;
1472
+ listTouches(params?: ListTouchesParams): Observable<PageResult<Touch>>;
1473
+ getTouch(uniqueId: string): Observable<Touch>;
1474
+ createTouch(data: CreateTouchRequest): Observable<Touch>;
1475
+ updateTouch(uniqueId: string, data: UpdateTouchRequest): Observable<Touch>;
1476
+ deleteTouch(uniqueId: string): Observable<void>;
1477
+ listCategories(params?: ListCategoriesParams$1): Observable<PageResult<Category$1>>;
1478
+ getCategory(uniqueId: string): Observable<Category$1>;
1479
+ createCategory(data: CreateCategoryRequest$1): Observable<Category$1>;
1480
+ updateCategory(uniqueId: string, data: UpdateCategoryRequest$1): Observable<Category$1>;
1481
+ deleteCategory(uniqueId: string): Observable<void>;
1482
+ listCalendarAccounts(userUniqueId: string, params?: ListCalendarAccountsParams): Observable<PageResult<CalendarAccount>>;
1483
+ getCalendarAccount(userUniqueId: string, id: string): Observable<CalendarAccount>;
1484
+ createCalendarAccount(userUniqueId: string, data: CreateCalendarAccountRequest): Observable<CalendarAccount>;
1485
+ updateCalendarAccount(userUniqueId: string, id: string, data: UpdateCalendarAccountRequest): Observable<CalendarAccount>;
1486
+ deleteCalendarAccount(userUniqueId: string, id: string): Observable<void>;
1487
+ syncUserCalendar(userUniqueId: string, request?: SyncCalendarRequest): Observable<SyncCalendarResponse>;
1488
+ syncTenantCalendar(request?: SyncCalendarRequest): Observable<SyncCalendarResponse>;
1489
+ listBusyBlocks(userUniqueId: string, params?: ListBusyBlocksParams): Observable<PageResult<BusyBlock>>;
1490
+ createBusyBlock(userUniqueId: string, data: CreateBusyBlockRequest): Observable<BusyBlock>;
1491
+ deleteBusyBlock(userUniqueId: string, id: string): Observable<void>;
1492
+ listIcsTokens(userUniqueId: string, params?: ListIcsTokensParams): Observable<PageResult<IcsToken>>;
1493
+ createIcsToken(userUniqueId: string, data: CreateIcsTokenRequest): Observable<IcsToken>;
1494
+ deleteIcsToken(userUniqueId: string, id: string): Observable<void>;
1495
+ getZoomMeeting(userUniqueId: string, meetingUniqueId: string): Observable<ZoomMeeting>;
1496
+ provisionZoomMeeting(userUniqueId: string, meetingUniqueId: string, request?: ProvisionZoomMeetingRequest): Observable<ZoomMeeting>;
1497
+ updateZoomMeeting(userUniqueId: string, meetingUniqueId: string, request: UpdateZoomMeetingRequest): Observable<ZoomMeeting>;
1498
+ cancelZoomMeeting(userUniqueId: string, meetingUniqueId: string): Observable<void>;
1499
+ checkZoomAvailability(userUniqueId: string): Observable<ZoomAvailability>;
1500
+ listZoomHosts(params?: ListZoomHostsParams): Observable<PageResult<ZoomHost>>;
1501
+ getZoomHost(uniqueId: string): Observable<ZoomHost>;
1502
+ createZoomHost(data: CreateZoomHostRequest): Observable<ZoomHost>;
1503
+ updateZoomHost(uniqueId: string, data: UpdateZoomHostRequest): Observable<ZoomHost>;
1504
+ deleteZoomHost(uniqueId: string): Observable<void>;
1505
+ getZoomHostAvailability(uniqueId: string): Observable<ZoomHostAvailability>;
1506
+ getZoomHostAllocations(uniqueId: string): Observable<ZoomHostAllocation[]>;
1507
+ getAvailableZoomUsers(): Observable<AvailableUser[]>;
1508
+ listMailTemplates(params?: ListCrmMailTemplatesParams): Observable<PageResult<CrmMailTemplate>>;
1509
+ getMailTemplate(uniqueId: string): Observable<CrmMailTemplate>;
1510
+ createMailTemplate(data: CreateCrmMailTemplateRequest): Observable<CrmMailTemplate>;
1511
+ updateMailTemplate(uniqueId: string, data: UpdateCrmMailTemplateRequest): Observable<CrmMailTemplate>;
1512
+ getMandrillStats(uniqueId: string): Observable<MandrillTemplateStats>;
1513
+ createMandrillTemplate(uniqueId: string, data: CreateMandrillTemplateRequest): Observable<CrmMailTemplate>;
1514
+ updateMandrillTemplate(uniqueId: string, data: UpdateMandrillTemplateRequest): Observable<CrmMailTemplate>;
1515
+ publishMandrill(uniqueId: string): Observable<CrmMailTemplate>;
1516
+ unsubscribe(data: UnsubscribeRequest): Observable<UnsubscribeResponse>;
1517
+ listCrmUsers(params?: ListCrmUsersParams): Observable<PageResult<CrmUser>>;
1518
+ getCrmUser(uniqueId: string): Observable<CrmUser>;
1519
+ registerCrmUser(uniqueId: string, data: RegisterCrmUserRequest): Observable<CrmUser>;
1520
+ deleteCrmUser(uniqueId: string): Observable<void>;
1521
+ getCrmUserContacts(uniqueId: string): Observable<Contact[]>;
1522
+ getCrmUserMeetings(uniqueId: string): Observable<Meeting[]>;
1523
+ getRevenueReport(params?: BillingReportParams): Observable<RevenueReport>;
1524
+ getAgingReport(): Observable<AgingReport>;
1525
+ getParticipantBillingReport(participantEmail: string): Observable<ParticipantBillingReport>;
1526
+ syncCalendarUser(userUniqueId: string): Observable<CalendarSyncResult>;
1527
+ syncCalendarTenant(): Observable<CalendarSyncResult>;
1528
+ /**
1529
+ * Access the underlying block for advanced operations
1530
+ * Use this when you need access to services not wrapped by this Angular service
1531
+ */
1532
+ get crmBlock(): CrmBlock;
1533
+ static ɵfac: i0.ɵɵFactoryDeclaration<CrmService, [{ optional: true; }, { optional: true; }, null]>;
1534
+ static ɵprov: i0.ɵɵInjectableDeclaration<CrmService>;
1535
+ }
1536
+
1537
+ /**
1538
+ * Angular service wrapping the Content block.
1539
+ * Converts Promise-based APIs to RxJS Observables.
1540
+ *
1541
+ * @example
1542
+ * ```typescript
1543
+ * @Component({...})
1544
+ * export class BlogComponent {
1545
+ * constructor(private content: ContentService) {}
1546
+ *
1547
+ * loadPosts() {
1548
+ * this.content.listPosts({ page: 1, perPage: 10 }).subscribe({
1549
+ * next: (result) => console.log('Posts:', result.data),
1550
+ * error: (err) => console.error('Failed:', err),
1551
+ * });
1552
+ * }
1553
+ * }
1554
+ * ```
1555
+ */
1556
+ declare class ContentService {
1557
+ private readonly block;
1558
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: ContentBlockConfig);
1559
+ /**
1560
+ * Ensure the service is configured, throw helpful error if not
1561
+ */
1562
+ private ensureConfigured;
1563
+ listPosts(params?: ListPostsParams): Observable<PageResult<Post>>;
1564
+ getPost(uniqueId: string): Observable<Post>;
1565
+ createPost(data: CreatePostRequest): Observable<Post>;
1566
+ updatePost(uniqueId: string, data: UpdatePostRequest): Observable<Post>;
1567
+ deletePost(uniqueId: string): Observable<void>;
1568
+ recoverPost(uniqueId: string): Observable<Post>;
1569
+ searchPosts(query: string, params?: ListPostsParams): Observable<PageResult<Post>>;
1570
+ listDeletedPosts(params?: ListPostsParams): Observable<PageResult<Post>>;
1571
+ likePost(uniqueId: string): Observable<Post>;
1572
+ dislikePost(uniqueId: string): Observable<Post>;
1573
+ savePost(uniqueId: string): Observable<Post>;
1574
+ followPost(uniqueId: string): Observable<Post>;
1575
+ listComments(params?: ListCommentsParams): Observable<PageResult<Comment>>;
1576
+ getComment(uniqueId: string): Observable<Comment>;
1577
+ createComment(data: CreateCommentRequest): Observable<Comment>;
1578
+ updateComment(uniqueId: string, data: UpdateCommentRequest): Observable<Comment>;
1579
+ deleteComment(uniqueId: string): Observable<void>;
1580
+ likeComment(uniqueId: string): Observable<Comment>;
1581
+ dislikeComment(uniqueId: string): Observable<Comment>;
1582
+ listCategories(params?: ListCategoriesParams$2): Observable<PageResult<Category$2>>;
1583
+ getCategory(uniqueId: string): Observable<Category$2>;
1584
+ createCategory(data: CreateCategoryRequest$2): Observable<Category$2>;
1585
+ updateCategory(uniqueId: string, data: UpdateCategoryRequest$2): Observable<Category$2>;
1586
+ deleteCategory(uniqueId: string): Observable<void>;
1587
+ recoverCategory(uniqueId: string): Observable<Category$2>;
1588
+ getCategoryChildren(uniqueId: string): Observable<Category$2[]>;
1589
+ listTags(params?: ListTagsParams): Observable<PageResult<Tag>>;
1590
+ getTag(uniqueId: string): Observable<Tag>;
1591
+ createTag(data: CreateTagRequest): Observable<Tag>;
1592
+ updateTag(uniqueId: string, data: UpdateTagRequest): Observable<Tag>;
1593
+ deleteTag(uniqueId: string): Observable<void>;
1594
+ listContentUsers(params?: ListContentUsersParams): Observable<PageResult<ContentUser>>;
1595
+ getContentUser(uniqueId: string): Observable<ContentUser>;
1596
+ registerContentUser(uniqueId: string, data: RegisterContentUserRequest): Observable<ContentUser>;
1597
+ updateContentUser(uniqueId: string, data: UpdateContentUserRequest): Observable<ContentUser>;
1598
+ getUserDrafts(uniqueId: string): Observable<Post[]>;
1599
+ getUserPosts(uniqueId: string): Observable<Post[]>;
1600
+ getUserComments(uniqueId: string): Observable<Comment[]>;
1601
+ getUserActivities(uniqueId: string): Observable<UserActivity[]>;
1602
+ addUserTag(uniqueId: string, tagUniqueId: string): Observable<ContentUser>;
1603
+ removeUserTag(uniqueId: string, tagUniqueId: string): Observable<void>;
1604
+ getUserFollowers(uniqueId: string): Observable<ContentUser[]>;
1605
+ getUserFollowing(uniqueId: string): Observable<ContentUser[]>;
1606
+ followContentUser(uniqueId: string, targetUserUniqueId: string): Observable<void>;
1607
+ unfollowContentUser(uniqueId: string, targetUserUniqueId: string): Observable<void>;
1608
+ /**
1609
+ * Moderate a post
1610
+ */
1611
+ moderatePost(uniqueId: string, request: ModerateContentRequest): Observable<ModerationResult>;
1612
+ /**
1613
+ * Moderate a comment
1614
+ */
1615
+ moderateComment(uniqueId: string, request: ModerateContentRequest): Observable<ModerationResult>;
1616
+ /**
1617
+ * List content flags
1618
+ */
1619
+ listContentFlags(params?: ListContentFlagsParams): Observable<PageResult<ContentFlag>>;
1620
+ /**
1621
+ * Create a content flag
1622
+ */
1623
+ createContentFlag(request: CreateContentFlagRequest): Observable<ContentFlag>;
1624
+ /**
1625
+ * Resolve a content flag
1626
+ */
1627
+ resolveContentFlag(uniqueId: string, resolution: string): Observable<ContentFlag>;
1628
+ /**
1629
+ * Get activities
1630
+ */
1631
+ listActivities(params?: ListActivitiesParams): Observable<PageResult<Activity>>;
1632
+ /**
1633
+ * Get comments activities for a post
1634
+ */
1635
+ getCommentsActivities(postUniqueId: string): Observable<Activity[]>;
1636
+ /**
1637
+ * Get activity feed for a user
1638
+ */
1639
+ getActivityFeed(userUniqueId: string, params?: ListActivitiesParams): Observable<PageResult<Activity>>;
1640
+ /**
1641
+ * List all series with pagination
1642
+ */
1643
+ listSeries(params?: ListSeriesParams): Observable<PageResult<Series>>;
1644
+ /**
1645
+ * Query series with filters
1646
+ */
1647
+ querySeries(params: QuerySeriesParams): Observable<PageResult<Series>>;
1648
+ /**
1649
+ * Get a series by unique ID
1650
+ */
1651
+ getSeries(uniqueId: string): Observable<Series>;
1652
+ /**
1653
+ * Create a new series
1654
+ */
1655
+ createSeries(data: CreateSeriesRequest): Observable<Series>;
1656
+ /**
1657
+ * Update a series
1658
+ */
1659
+ updateSeries(uniqueId: string, data: UpdateSeriesRequest): Observable<Series>;
1660
+ /**
1661
+ * Delete a series
1662
+ */
1663
+ deleteSeries(uniqueId: string): Observable<void>;
1664
+ /**
1665
+ * Like a series
1666
+ */
1667
+ likeSeries(uniqueId: string): Observable<Series>;
1668
+ /**
1669
+ * Dislike a series
1670
+ */
1671
+ dislikeSeries(uniqueId: string): Observable<Series>;
1672
+ /**
1673
+ * Follow a series
1674
+ */
1675
+ followSeries(uniqueId: string): Observable<Series>;
1676
+ /**
1677
+ * Unfollow a series
1678
+ */
1679
+ unfollowSeries(uniqueId: string): Observable<void>;
1680
+ /**
1681
+ * Save a series
1682
+ */
1683
+ saveSeries(uniqueId: string): Observable<Series>;
1684
+ /**
1685
+ * Unsave a series
1686
+ */
1687
+ unsaveSeries(uniqueId: string): Observable<void>;
1688
+ /**
1689
+ * Get posts in a series
1690
+ */
1691
+ getSeriesPosts(uniqueId: string): Observable<Post[]>;
1692
+ /**
1693
+ * Add a post to a series
1694
+ */
1695
+ addSeriesPost(seriesUniqueId: string, postUniqueId: string, sequence?: number): Observable<void>;
1696
+ /**
1697
+ * Remove a post from a series
1698
+ */
1699
+ removeSeriesPost(seriesUniqueId: string, postUniqueId: string): Observable<void>;
1700
+ /**
1701
+ * Reorder posts in a series
1702
+ */
1703
+ reorderSeriesPosts(uniqueId: string, data: ReorderPostsRequest): Observable<Series>;
1704
+ /**
1705
+ * Access the underlying block for advanced operations
1706
+ * Use this when you need access to services not wrapped by this Angular service
1707
+ */
1708
+ get contentBlock(): ContentBlock;
1709
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentService, [{ optional: true; }, { optional: true; }, null]>;
1710
+ static ɵprov: i0.ɵɵInjectableDeclaration<ContentService>;
1711
+ }
1712
+
1713
+ /**
1714
+ * Angular service wrapping the Geolocation block.
1715
+ * Converts Promise-based APIs to RxJS Observables.
1716
+ *
1717
+ * @example
1718
+ * ```typescript
1719
+ * @Component({...})
1720
+ * export class MapComponent {
1721
+ * constructor(private geolocation: GeolocationService) {}
1722
+ *
1723
+ * loadLocations() {
1724
+ * this.geolocation.listLocations().subscribe({
1725
+ * next: (result) => console.log('Locations:', result.data),
1726
+ * error: (err) => console.error('Failed:', err),
1727
+ * });
1728
+ * }
1729
+ * }
1730
+ * ```
1731
+ */
1732
+ declare class GeolocationService {
1733
+ private readonly block;
1734
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: GeolocationBlockConfig);
1735
+ /**
1736
+ * Ensure the service is configured, throw helpful error if not
1737
+ */
1738
+ private ensureConfigured;
1739
+ listLocations(params?: ListLocationsParams): Observable<PageResult<Location>>;
1740
+ getLocation(uniqueId: string): Observable<Location>;
1741
+ createLocation(data: CreateLocationRequest): Observable<Location>;
1742
+ updateLocation(uniqueId: string, data: UpdateLocationRequest): Observable<Location>;
1743
+ deleteLocation(uniqueId: string): Observable<void>;
1744
+ recoverLocation(uniqueId: string): Observable<Location>;
1745
+ searchLocations(query: string, params?: ListLocationsParams): Observable<PageResult<Location>>;
1746
+ listDeletedLocations(params?: ListLocationsParams): Observable<PageResult<Location>>;
1747
+ listAddresses(params?: ListAddressesParams): Observable<PageResult<Address>>;
1748
+ getAddress(uniqueId: string): Observable<Address>;
1749
+ createAddress(data: CreateAddressRequest): Observable<Address>;
1750
+ updateAddress(uniqueId: string, data: UpdateAddressRequest): Observable<Address>;
1751
+ deleteAddress(uniqueId: string): Observable<void>;
1752
+ recoverAddress(uniqueId: string): Observable<Address>;
1753
+ searchAddresses(query: string, params?: ListAddressesParams): Observable<PageResult<Address>>;
1754
+ listDeletedAddresses(params?: ListAddressesParams): Observable<PageResult<Address>>;
1755
+ setDefaultAddress(uniqueId: string): Observable<Address>;
1756
+ listAreas(params?: ListAreasParams): Observable<PageResult<Area>>;
1757
+ getArea(uniqueId: string): Observable<Area>;
1758
+ createArea(data: CreateAreaRequest): Observable<Area>;
1759
+ updateArea(uniqueId: string, data: UpdateAreaRequest): Observable<Area>;
1760
+ deleteArea(uniqueId: string): Observable<void>;
1761
+ recoverArea(uniqueId: string): Observable<Area>;
1762
+ searchAreas(query: string, params?: ListAreasParams): Observable<PageResult<Area>>;
1763
+ listDeletedAreas(params?: ListAreasParams): Observable<PageResult<Area>>;
1764
+ listRegions(params?: ListRegionsParams): Observable<PageResult<Region>>;
1765
+ getRegion(uniqueId: string): Observable<Region>;
1766
+ createRegion(data: CreateRegionRequest): Observable<Region>;
1767
+ updateRegion(uniqueId: string, data: UpdateRegionRequest): Observable<Region>;
1768
+ deleteRegion(uniqueId: string): Observable<void>;
1769
+ recoverRegion(uniqueId: string): Observable<Region>;
1770
+ searchRegions(query: string, params?: ListRegionsParams): Observable<PageResult<Region>>;
1771
+ listDeletedRegions(params?: ListRegionsParams): Observable<PageResult<Region>>;
1772
+ listRoutes(params?: ListTravelRoutesParams): Observable<PageResult<TravelRoute>>;
1773
+ getRoute(uniqueId: string): Observable<TravelRoute>;
1774
+ createRoute(data: CreateTravelRouteRequest): Observable<TravelRoute>;
1775
+ updateRoute(uniqueId: string, data: UpdateTravelRouteRequest): Observable<TravelRoute>;
1776
+ deleteRoute(uniqueId: string): Observable<void>;
1777
+ recoverRoute(uniqueId: string): Observable<TravelRoute>;
1778
+ searchRoutes(query: string, params?: ListTravelRoutesParams): Observable<PageResult<TravelRoute>>;
1779
+ listDeletedRoutes(params?: ListTravelRoutesParams): Observable<PageResult<TravelRoute>>;
1780
+ listBookings(params?: ListPremiseBookingsParams): Observable<PageResult<PremiseBooking>>;
1781
+ getBooking(uniqueId: string): Observable<PremiseBooking>;
1782
+ createBooking(data: CreatePremiseBookingRequest): Observable<PremiseBooking>;
1783
+ updateBooking(uniqueId: string, data: UpdatePremiseBookingRequest): Observable<PremiseBooking>;
1784
+ deleteBooking(uniqueId: string): Observable<void>;
1785
+ recoverBooking(uniqueId: string): Observable<PremiseBooking>;
1786
+ searchBookings(query: string, params?: ListPremiseBookingsParams): Observable<PageResult<PremiseBooking>>;
1787
+ listDeletedBookings(params?: ListPremiseBookingsParams): Observable<PageResult<PremiseBooking>>;
1788
+ listPremises(params?: ListPremisesParams): Observable<PageResult<Premise>>;
1789
+ getPremise(uniqueId: string): Observable<Premise>;
1790
+ createPremise(data: CreatePremiseRequest): Observable<Premise>;
1791
+ updatePremise(uniqueId: string, data: UpdatePremiseRequest): Observable<Premise>;
1792
+ deletePremise(uniqueId: string): Observable<void>;
1793
+ recoverPremise(uniqueId: string): Observable<Premise>;
1794
+ searchPremises(query: string, params?: ListPremisesParams): Observable<PageResult<Premise>>;
1795
+ listDeletedPremises(params?: ListPremisesParams): Observable<PageResult<Premise>>;
1796
+ /**
1797
+ * List all premise events
1798
+ */
1799
+ listPremiseEvents(locationUniqueId: string, premiseUniqueId: string, params?: ListPremiseEventsParams): Observable<PageResult<PremiseEvent>>;
1800
+ /**
1801
+ * Get a premise event by unique ID
1802
+ */
1803
+ getPremiseEvent(locationUniqueId: string, premiseUniqueId: string, uniqueId: string): Observable<PremiseEvent>;
1804
+ /**
1805
+ * Create a new premise event
1806
+ */
1807
+ createPremiseEvent(locationUniqueId: string, premiseUniqueId: string, data: CreatePremiseEventRequest): Observable<PremiseEvent>;
1808
+ /**
1809
+ * Update a premise event
1810
+ */
1811
+ updatePremiseEvent(locationUniqueId: string, premiseUniqueId: string, uniqueId: string, data: UpdatePremiseEventRequest): Observable<PremiseEvent>;
1812
+ /**
1813
+ * Delete a premise event
1814
+ */
1815
+ deletePremiseEvent(locationUniqueId: string, premiseUniqueId: string, uniqueId: string): Observable<void>;
1816
+ /**
1817
+ * Record a location point for a route
1818
+ */
1819
+ recordRouteLocation(userUniqueId: string, routeUniqueId: string, data: CreateRouteLocationRequest): Observable<RouteLocation>;
1820
+ /**
1821
+ * Get route tracking status
1822
+ */
1823
+ getRouteTrackerStatus(userUniqueId: string, routeUniqueId: string): Observable<RouteTrackerStatus>;
1824
+ /**
1825
+ * List all recorded locations for a route
1826
+ */
1827
+ listRouteLocations(userUniqueId: string, routeUniqueId: string, params?: ListRouteLocationsParams): Observable<PageResult<RouteLocation>>;
1828
+ /**
1829
+ * Start tracking for a route
1830
+ */
1831
+ startRouteTracking(userUniqueId: string, routeUniqueId: string): Observable<RouteTrackerStatus>;
1832
+ /**
1833
+ * Stop tracking for a route
1834
+ */
1835
+ stopRouteTracking(userUniqueId: string, routeUniqueId: string): Observable<RouteTrackerStatus>;
1836
+ /**
1837
+ * List all hours for a location
1838
+ */
1839
+ listLocationHours(locationUniqueId: string): Observable<LocationHour[]>;
1840
+ /**
1841
+ * Get a location hour by unique ID
1842
+ */
1843
+ getLocationHour(locationUniqueId: string, hourUniqueId: string): Observable<LocationHour>;
1844
+ /**
1845
+ * Create a new location hour
1846
+ */
1847
+ createLocationHour(locationUniqueId: string, data: CreateLocationHourRequest): Observable<LocationHour>;
1848
+ /**
1849
+ * Update a location hour
1850
+ */
1851
+ updateLocationHour(locationUniqueId: string, hourUniqueId: string, data: UpdateLocationHourRequest): Observable<LocationHour>;
1852
+ /**
1853
+ * Delete a location hour
1854
+ */
1855
+ deleteLocationHour(locationUniqueId: string, hourUniqueId: string): Observable<void>;
1856
+ /**
1857
+ * Get a presigned URL for uploading an image
1858
+ */
1859
+ presignLocationImage(locationUniqueId: string, data: PresignLocationImageRequest): Observable<PresignLocationImageResponse>;
1860
+ /**
1861
+ * Create a new location image
1862
+ */
1863
+ createLocationImage(locationUniqueId: string, data: CreateLocationImageRequest): Observable<LocationImage>;
1864
+ /**
1865
+ * Delete a location image
1866
+ */
1867
+ deleteLocationImage(locationUniqueId: string, imageUniqueId: string): Observable<void>;
1868
+ /**
1869
+ * List all slots for a location
1870
+ */
1871
+ listLocationSlots(locationUniqueId: string): Observable<LocationSlot[]>;
1872
+ /**
1873
+ * Get a location slot by unique ID
1874
+ */
1875
+ getLocationSlot(locationUniqueId: string, slotUniqueId: string): Observable<LocationSlot>;
1876
+ /**
1877
+ * Create a new location slot
1878
+ */
1879
+ createLocationSlot(locationUniqueId: string, data: CreateLocationSlotRequest): Observable<LocationSlot>;
1880
+ /**
1881
+ * Update a location slot
1882
+ */
1883
+ updateLocationSlot(locationUniqueId: string, slotUniqueId: string, data: UpdateLocationSlotRequest): Observable<LocationSlot>;
1884
+ /**
1885
+ * Delete a location slot
1886
+ */
1887
+ deleteLocationSlot(locationUniqueId: string, slotUniqueId: string): Observable<void>;
1888
+ /**
1889
+ * Create a new location tax
1890
+ */
1891
+ createLocationTax(locationUniqueId: string, data: CreateLocationTaxRequest): Observable<LocationTax>;
1892
+ /**
1893
+ * Update a location tax
1894
+ */
1895
+ updateLocationTax(locationUniqueId: string, taxUniqueId: string, data: UpdateLocationTaxRequest): Observable<LocationTax>;
1896
+ /**
1897
+ * Delete a location tax
1898
+ */
1899
+ deleteLocationTax(locationUniqueId: string, taxUniqueId: string): Observable<void>;
1900
+ /**
1901
+ * List all location groups
1902
+ */
1903
+ listLocationGroups(params?: ListLocationGroupsParams): Observable<PageResult<LocationGroup>>;
1904
+ /**
1905
+ * Get a location group by unique ID
1906
+ */
1907
+ getLocationGroup(uniqueId: string): Observable<LocationGroup>;
1908
+ /**
1909
+ * Create a new location group
1910
+ */
1911
+ createLocationGroup(data: CreateLocationGroupRequest): Observable<LocationGroup>;
1912
+ /**
1913
+ * List all geo identities
1914
+ */
1915
+ listGeoIdentities(params?: ListGeoIdentitiesParams): Observable<PageResult<GeoIdentity>>;
1916
+ /**
1917
+ * Get a geo identity by unique ID
1918
+ */
1919
+ getGeoIdentity(uniqueId: string): Observable<GeoIdentity>;
1920
+ /**
1921
+ * Register a geo identity
1922
+ */
1923
+ registerGeoIdentity(uniqueId: string, data: RegisterGeoIdentityRequest): Observable<GeoIdentity>;
1924
+ /**
1925
+ * Update a geo identity
1926
+ */
1927
+ updateGeoIdentity(uniqueId: string, data: UpdateGeoIdentityRequest): Observable<GeoIdentity>;
1928
+ /**
1929
+ * Delete a geo identity
1930
+ */
1931
+ deleteGeoIdentity(uniqueId: string): Observable<void>;
1932
+ /**
1933
+ * Add an identity to a location
1934
+ */
1935
+ addIdentityToLocation(locationUniqueId: string, data: LocationIdentityRequest): Observable<void>;
1936
+ /**
1937
+ * Remove an identity from a location
1938
+ */
1939
+ removeIdentityFromLocation(locationUniqueId: string, userUniqueId: string): Observable<void>;
1940
+ /**
1941
+ * Update a user's location
1942
+ */
1943
+ updateUserLocation(userUniqueId: string, data: UserLocationRequest): Observable<void>;
1944
+ /**
1945
+ * List all location identities
1946
+ */
1947
+ listLocationIdentities(params?: ListLocationIdentitiesParams): Observable<PageResult<LocationIdentity>>;
1948
+ /**
1949
+ * Get a location identity by unique ID
1950
+ */
1951
+ getLocationIdentity(uniqueId: string): Observable<LocationIdentity>;
1952
+ /**
1953
+ * Create a new location identity
1954
+ */
1955
+ createLocationIdentity(data: CreateLocationIdentityRequest): Observable<LocationIdentity>;
1956
+ /**
1957
+ * Update a location identity
1958
+ */
1959
+ updateLocationIdentity(uniqueId: string, data: UpdateLocationIdentityRequest): Observable<LocationIdentity>;
1960
+ /**
1961
+ * Delete a location identity
1962
+ */
1963
+ deleteLocationIdentity(uniqueId: string): Observable<void>;
1964
+ /**
1965
+ * Check in an identity at a location
1966
+ */
1967
+ checkInLocationIdentity(locationUniqueId: string, identityUniqueId: string, identityType: string): Observable<LocationIdentity>;
1968
+ /**
1969
+ * Check out an identity from a location
1970
+ */
1971
+ checkOutLocationIdentity(uniqueId: string): Observable<LocationIdentity>;
1972
+ /**
1973
+ * List identities by location
1974
+ */
1975
+ listLocationIdentitiesByLocation(locationUniqueId: string, params?: ListLocationIdentitiesParams): Observable<PageResult<LocationIdentity>>;
1976
+ /**
1977
+ * List identities by identity
1978
+ */
1979
+ listLocationIdentitiesByIdentity(identityUniqueId: string, identityType: string, params?: ListLocationIdentitiesParams): Observable<PageResult<LocationIdentity>>;
1980
+ /**
1981
+ * Get current location for an identity
1982
+ */
1983
+ getCurrentLocationForIdentity(identityUniqueId: string, identityType: string): Observable<LocationIdentity | null>;
1984
+ /**
1985
+ * List all countries
1986
+ */
1987
+ listGeoCountries(params?: GeoLookupParams): Observable<PageResult<GeoCountry>>;
1988
+ /**
1989
+ * Get a country by code
1990
+ */
1991
+ getGeoCountry(code: string): Observable<GeoCountry>;
1992
+ /**
1993
+ * Search countries by name
1994
+ */
1995
+ searchGeoCountries(query: string, params?: GeoLookupParams): Observable<PageResult<GeoCountry>>;
1996
+ /**
1997
+ * List states by country
1998
+ */
1999
+ listGeoStates(countryCode: string, params?: GeoLookupParams): Observable<PageResult<GeoState>>;
2000
+ /**
2001
+ * Get a state by code
2002
+ */
2003
+ getGeoState(code: string): Observable<GeoState>;
2004
+ /**
2005
+ * Search states by name
2006
+ */
2007
+ searchGeoStates(query: string, countryCode?: string, params?: GeoLookupParams): Observable<PageResult<GeoState>>;
2008
+ /**
2009
+ * List cities by state or country
2010
+ */
2011
+ listGeoCities(countryCode: string, stateCode?: string, params?: GeoLookupParams): Observable<PageResult<GeoCity>>;
2012
+ /**
2013
+ * Get a city by code
2014
+ */
2015
+ getGeoCity(code: string): Observable<GeoCity>;
2016
+ /**
2017
+ * Search cities by name
2018
+ */
2019
+ searchGeoCities(query: string, countryCode?: string, stateCode?: string, params?: GeoLookupParams): Observable<PageResult<GeoCity>>;
2020
+ /**
2021
+ * Access the underlying block for advanced operations
2022
+ * Use this when you need access to services not wrapped by this Angular service
2023
+ */
2024
+ get geolocationBlock(): GeolocationBlock;
2025
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationService, [{ optional: true; }, { optional: true; }, null]>;
2026
+ static ɵprov: i0.ɵɵInjectableDeclaration<GeolocationService>;
2027
+ }
2028
+
2029
+ /**
2030
+ * Angular service wrapping the Conversations block.
2031
+ * Converts Promise-based APIs to RxJS Observables.
2032
+ *
2033
+ * @example
2034
+ * ```typescript
2035
+ * @Component({...})
2036
+ * export class ChatComponent {
2037
+ * constructor(private conversations: ConversationsService) {}
2038
+ *
2039
+ * sendMessage(contextId: string, content: string) {
2040
+ * this.conversations.createMessage({ contextId, content }).subscribe({
2041
+ * next: (message) => console.log('Message sent:', message),
2042
+ * error: (err) => console.error('Failed:', err),
2043
+ * });
2044
+ * }
2045
+ * }
2046
+ * ```
2047
+ */
2048
+ declare class ConversationsService {
2049
+ private readonly block;
2050
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: ConversationsBlockConfig);
2051
+ /**
2052
+ * Ensure the service is configured, throw helpful error if not
2053
+ */
2054
+ private ensureConfigured;
2055
+ listMessages(params?: ListMessagesParams): Observable<PageResult<Message>>;
2056
+ getMessage(uniqueId: string): Observable<Message>;
2057
+ createMessage(data: CreateMessageRequest): Observable<Message>;
2058
+ updateMessage(uniqueId: string, data: UpdateMessageRequest): Observable<Message>;
2059
+ deleteMessage(uniqueId: string): Observable<void>;
2060
+ recoverMessage(uniqueId: string): Observable<Message>;
2061
+ listMessagesByContext(contextId: string, params?: ListMessagesParams): Observable<PageResult<Message>>;
2062
+ listMessagesByParent(parentId: string, params?: ListMessagesParams): Observable<PageResult<Message>>;
2063
+ listDeletedMessages(params?: ListMessagesParams): Observable<PageResult<Message>>;
2064
+ listDraftMessages(params?: ListDraftMessagesParams): Observable<PageResult<DraftMessage>>;
2065
+ getDraftMessage(uniqueId: string): Observable<DraftMessage>;
2066
+ createDraftMessage(data: CreateDraftMessageRequest): Observable<DraftMessage>;
2067
+ updateDraftMessage(uniqueId: string, data: UpdateDraftMessageRequest): Observable<DraftMessage>;
2068
+ deleteDraftMessage(uniqueId: string): Observable<void>;
2069
+ listDraftMessagesByContext(contextId: string, params?: ListDraftMessagesParams): Observable<PageResult<DraftMessage>>;
2070
+ publishDraftMessage(uniqueId: string): Observable<DraftMessage>;
2071
+ listGroups(params?: ListGroupsParams): Observable<PageResult<Group>>;
2072
+ getGroup(uniqueId: string): Observable<Group>;
2073
+ createGroup(data: CreateGroupRequest): Observable<Group>;
2074
+ updateGroup(uniqueId: string, data: UpdateGroupRequest): Observable<Group>;
2075
+ deleteGroup(uniqueId: string): Observable<void>;
2076
+ recoverGroup(uniqueId: string): Observable<Group>;
2077
+ searchGroups(query: string, params?: ListGroupsParams): Observable<PageResult<Group>>;
2078
+ listDeletedGroups(params?: ListGroupsParams): Observable<PageResult<Group>>;
2079
+ addGroupMember(uniqueId: string, memberId: string): Observable<Group>;
2080
+ removeGroupMember(uniqueId: string, memberId: string): Observable<Group>;
2081
+ listGroupInvites(groupUniqueId: string, params?: ListGroupInvitesParams): Observable<PageResult<GroupInvite>>;
2082
+ createGroupInvite(groupUniqueId: string, data?: CreateGroupInviteRequest): Observable<GroupInvite>;
2083
+ revokeGroupInvite(groupUniqueId: string, code: string): Observable<void>;
2084
+ getGroupInviteQRCode(groupUniqueId: string, code: string): Observable<QRCodeResponse>;
2085
+ joinGroupByInvite(code: string, data?: JoinGroupRequest): Observable<Group>;
2086
+ listNotifications(params?: ListNotificationsParams): Observable<PageResult<Notification>>;
2087
+ getNotification(uniqueId: string): Observable<Notification>;
2088
+ createNotification(data: CreateNotificationRequest): Observable<Notification>;
2089
+ updateNotification(uniqueId: string, data: UpdateNotificationRequest): Observable<Notification>;
2090
+ deleteNotification(uniqueId: string): Observable<void>;
2091
+ markNotificationAsRead(uniqueId: string): Observable<Notification>;
2092
+ markNotificationAsUnread(uniqueId: string): Observable<Notification>;
2093
+ listNotificationsByTarget(targetId: string, params?: ListNotificationsParams): Observable<PageResult<Notification>>;
2094
+ listUnreadNotifications(params?: ListNotificationsParams): Observable<PageResult<Notification>>;
2095
+ getConversation(params: GetConversationParams): Observable<Conversation>;
2096
+ listConversationContexts(): Observable<string[]>;
2097
+ deleteConversationContext(context: string): Observable<void>;
2098
+ createWebSocketToken(data?: CreateWebSocketTokenRequest): Observable<CreateWebSocketTokenResponse>;
2099
+ listContexts(params?: ListContextsParams): Observable<PageResult<Context>>;
2100
+ getContext(uniqueId: string): Observable<Context>;
2101
+ createContext(data: CreateContextRequest): Observable<Context>;
2102
+ updateContext(uniqueId: string, data: UpdateContextRequest): Observable<Context>;
2103
+ listContextGroups(contextUniqueId: string): Observable<PageResult<Group>>;
2104
+ getNotificationSettings(userUniqueId: string): Observable<NotificationSettings>;
2105
+ updateNotificationSettings(userUniqueId: string, data: UpdateNotificationSettingsRequest): Observable<NotificationSettings>;
2106
+ getUserAvailability(userUniqueId: string): Observable<UserAvailability>;
2107
+ goOnline(data?: SetAvailabilityRequest): Observable<UserAvailability>;
2108
+ goOffline(): Observable<void>;
2109
+ getMessageFile(conversationUniqueId: string, fileUniqueId: string): Observable<MessageFile>;
2110
+ createMessageFile(conversationUniqueId: string, data: CreateMessageFileRequest): Observable<MessageFile>;
2111
+ deleteMessageFile(conversationUniqueId: string, fileUniqueId: string): Observable<void>;
2112
+ presignMessageFile(conversationUniqueId: string, data: PresignMessageFileRequest): Observable<PresignMessageFileResponse>;
2113
+ getSource(uniqueId: string): Observable<Source>;
2114
+ listConversationsUsers(params?: ListUsersParams): Observable<PageResult<ConversationsUser>>;
2115
+ getConversationsUser(uniqueId: string): Observable<ConversationsUser>;
2116
+ registerConversationsUser(uniqueId: string, data?: RegisterUserRequest): Observable<ConversationsUser>;
2117
+ updateConversationsUser(uniqueId: string, data: UpdateUserRequest$1): Observable<ConversationsUser>;
2118
+ listUserGroups(uniqueId: string): Observable<PageResult<Group>>;
2119
+ listUserConversations(uniqueId: string, params?: {
2120
+ page?: number;
2121
+ perPage?: number;
2122
+ }): Observable<PageResult<Conversation>>;
2123
+ listUserGroupConversations(uniqueId: string, params?: {
2124
+ page?: number;
2125
+ perPage?: number;
2126
+ }): Observable<PageResult<Conversation>>;
2127
+ listUserContextGroups(uniqueId: string, contextUniqueId: string): Observable<PageResult<Group>>;
2128
+ listMeetings(params?: ListMeetingsParams$1): Observable<PageResult<Meeting$1>>;
2129
+ getMeeting(uniqueId: string): Observable<Meeting$1>;
2130
+ createMeeting(data: CreateMeetingRequest$1): Observable<Meeting$1>;
2131
+ updateMeeting(uniqueId: string, data: UpdateMeetingRequest$1): Observable<Meeting$1>;
2132
+ deleteMeeting(uniqueId: string): Observable<void>;
2133
+ createMeetingSession(uniqueId: string): Observable<MeetingSession>;
2134
+ startMeeting(uniqueId: string): Observable<Meeting$1>;
2135
+ endMeeting(uniqueId: string): Observable<Meeting$1>;
2136
+ listWebNotifications(params?: ListWebNotificationsParams): Observable<PageResult<WebNotification>>;
2137
+ getWebNotification(uniqueId: string): Observable<WebNotification>;
2138
+ sendWebNotification(data: CreateWebNotificationRequest): Observable<WebNotification>;
2139
+ sendBulkWebNotifications(data: BulkWebNotificationRequest): Observable<{
2140
+ sent: number;
2141
+ failed: number;
2142
+ }>;
2143
+ markWebNotificationAsRead(uniqueId: string): Observable<WebNotification>;
2144
+ markWebNotificationAsClicked(uniqueId: string): Observable<WebNotification>;
2145
+ markAllWebNotificationsAsRead(recipientUniqueId: string): Observable<{
2146
+ updated: number;
2147
+ }>;
2148
+ deleteWebNotification(uniqueId: string): Observable<void>;
2149
+ /**
2150
+ * Access the underlying block for advanced operations
2151
+ * Use this when you need access to services not wrapped by this Angular service
2152
+ */
2153
+ get conversationsBlock(): ConversationsBlock;
2154
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConversationsService, [{ optional: true; }, { optional: true; }, null]>;
2155
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConversationsService>;
2156
+ }
2157
+
2158
+ /**
2159
+ * Angular service wrapping the Files block.
2160
+ * Converts Promise-based APIs to RxJS Observables.
2161
+ *
2162
+ * @example
2163
+ * ```typescript
2164
+ * @Component({...})
2165
+ * export class FileUploadComponent {
2166
+ * constructor(private files: FilesService) {}
2167
+ *
2168
+ * uploadFile(file: File) {
2169
+ * this.files.uploadStorageFile({
2170
+ * file,
2171
+ * fileName: file.name,
2172
+ * ownerUniqueId: 'user-123',
2173
+ * ownerType: 'User',
2174
+ * }).subscribe({
2175
+ * next: (storageFile) => console.log('Uploaded:', storageFile),
2176
+ * error: (err) => console.error('Failed:', err),
2177
+ * });
2178
+ * }
2179
+ * }
2180
+ * ```
2181
+ */
2182
+ declare class FilesService {
2183
+ private readonly block;
2184
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: FilesBlockConfig);
2185
+ /**
2186
+ * Ensure the service is configured, throw helpful error if not
2187
+ */
2188
+ private ensureConfigured;
2189
+ listStorageFiles(params?: ListStorageFilesParams): Observable<PageResult<StorageFile>>;
2190
+ getStorageFile(uniqueId: string): Observable<StorageFile>;
2191
+ uploadStorageFile(data: UploadFileRequest): Observable<StorageFile>;
2192
+ createStorageFile(data: CreateStorageFileRequest): Observable<StorageFile>;
2193
+ updateStorageFile(uniqueId: string, data: UpdateStorageFileRequest): Observable<StorageFile>;
2194
+ deleteStorageFile(uniqueId: string): Observable<void>;
2195
+ downloadStorageFile(uniqueId: string): Observable<Blob>;
2196
+ listStorageFilesByOwner(ownerUniqueId: string, ownerType: string, params?: ListStorageFilesParams): Observable<PageResult<StorageFile>>;
2197
+ listEntityFiles(params?: ListEntityFilesParams): Observable<PageResult<EntityFile>>;
2198
+ getEntityFile(uniqueId: string): Observable<EntityFile>;
2199
+ attachFile(data: AttachFileRequest): Observable<EntityFile>;
2200
+ detachFile(uniqueId: string): Observable<void>;
2201
+ updateEntityFile(uniqueId: string, data: UpdateEntityFileRequest): Observable<EntityFile>;
2202
+ reorderEntityFiles(entityUniqueId: string, entityType: string, data: ReorderFilesRequest): Observable<EntityFile[]>;
2203
+ listEntityFilesByEntity(entityUniqueId: string, entityType: string, params?: ListEntityFilesParams): Observable<PageResult<EntityFile>>;
2204
+ listFileSchemas(params?: ListFileSchemasParams): Observable<PageResult<FileSchema>>;
2205
+ getFileSchema(uniqueId: string): Observable<FileSchema>;
2206
+ getFileSchemaByCode(code: string): Observable<FileSchema>;
2207
+ createFileSchema(data: CreateFileSchemaRequest): Observable<FileSchema>;
2208
+ updateFileSchema(uniqueId: string, data: UpdateFileSchemaRequest): Observable<FileSchema>;
2209
+ deleteFileSchema(uniqueId: string): Observable<void>;
2210
+ /**
2211
+ * List user files
2212
+ */
2213
+ listUserFiles(userUniqueId: string, params?: ListUserFilesParams): Observable<PageResult<UserFile>>;
2214
+ /**
2215
+ * Get a user file
2216
+ */
2217
+ getUserFile(userUniqueId: string, fileUniqueId: string): Observable<UserFile>;
2218
+ /**
2219
+ * Add a user file
2220
+ */
2221
+ addUserFile(userUniqueId: string, data: AddUserFileRequest): Observable<UserFile>;
2222
+ /**
2223
+ * Update a user file
2224
+ */
2225
+ updateUserFile(userUniqueId: string, fileUniqueId: string, data: UpdateUserFileRequest): Observable<UserFile>;
2226
+ /**
2227
+ * Delete a user file
2228
+ */
2229
+ deleteUserFile(userUniqueId: string, fileUniqueId: string): Observable<void>;
2230
+ /**
2231
+ * Get presigned upload URL for user file
2232
+ */
2233
+ presignUserFileUpload(userUniqueId: string, data: PresignUploadRequest): Observable<PresignUploadResponse>;
2234
+ /**
2235
+ * Get presigned URLs for multipart upload
2236
+ */
2237
+ multipartPresignUserFile(userUniqueId: string, data: MultipartPresignRequest$1): Observable<MultipartPresignResponse$1>;
2238
+ /**
2239
+ * Complete multipart upload for user file
2240
+ */
2241
+ multipartCompleteUserFile(userUniqueId: string, data: MultipartCompleteRequest$1): Observable<UserFile>;
2242
+ /**
2243
+ * Approve a user file
2244
+ */
2245
+ approveUserFile(userUniqueId: string, fileUniqueId: string): Observable<UserFile>;
2246
+ /**
2247
+ * Reject a user file
2248
+ */
2249
+ rejectUserFile(userUniqueId: string, fileUniqueId: string): Observable<UserFile>;
2250
+ /**
2251
+ * Publish a user file
2252
+ */
2253
+ publishUserFile(userUniqueId: string, fileUniqueId: string): Observable<UserFile>;
2254
+ /**
2255
+ * Unpublish a user file
2256
+ */
2257
+ unpublishUserFile(userUniqueId: string, fileUniqueId: string): Observable<UserFile>;
2258
+ /**
2259
+ * Add tag to user file
2260
+ */
2261
+ addTagToUserFile(userUniqueId: string, fileUniqueId: string, tagUniqueId: string): Observable<UserFile>;
2262
+ /**
2263
+ * Remove tag from user file
2264
+ */
2265
+ removeTagFromUserFile(userUniqueId: string, fileUniqueId: string, tagUniqueId: string): Observable<void>;
2266
+ /**
2267
+ * Bulk update tags for user files
2268
+ */
2269
+ bulkUpdateUserFileTags(userUniqueId: string, tagUniqueIds: string[]): Observable<void>;
2270
+ /**
2271
+ * Request access to a user file
2272
+ */
2273
+ requestUserFileAccess(userUniqueId: string, fileUniqueId: string): Observable<void>;
2274
+ /**
2275
+ * Get access list for a user file
2276
+ */
2277
+ getUserFileAccess(userUniqueId: string, fileUniqueId: string): Observable<FileAccess[]>;
2278
+ /**
2279
+ * Grant access to a user file
2280
+ */
2281
+ grantUserFileAccess(userUniqueId: string, fileUniqueId: string, data: FileAccessRequest): Observable<FileAccess>;
2282
+ /**
2283
+ * Revoke access to a user file
2284
+ */
2285
+ revokeUserFileAccess(userUniqueId: string, fileUniqueId: string, accessUniqueId: string): Observable<void>;
2286
+ /**
2287
+ * Make user file public
2288
+ */
2289
+ makeUserFilePublic(userUniqueId: string, fileUniqueId: string): Observable<UserFile>;
2290
+ /**
2291
+ * Make user file private
2292
+ */
2293
+ makeUserFilePrivate(userUniqueId: string, fileUniqueId: string): Observable<UserFile>;
2294
+ /**
2295
+ * Bulk grant access to user files
2296
+ */
2297
+ bulkGrantUserFileAccess(userUniqueId: string, fileUniqueIds: string[], granteeUniqueIds: string[]): Observable<void>;
2298
+ /**
2299
+ * Bulk revoke access to user files
2300
+ */
2301
+ bulkRevokeUserFileAccess(userUniqueId: string, fileUniqueIds: string[], granteeUniqueIds: string[]): Observable<void>;
2302
+ /**
2303
+ * List access requests for a user file
2304
+ */
2305
+ listUserFileAccessRequests(userUniqueId: string, fileUniqueId: string): Observable<FileAccess[]>;
2306
+ /**
2307
+ * Approve access request for a user file
2308
+ */
2309
+ approveUserFileAccessRequest(userUniqueId: string, fileUniqueId: string, requestUniqueId: string): Observable<FileAccess>;
2310
+ /**
2311
+ * Deny access request for a user file
2312
+ */
2313
+ denyUserFileAccessRequest(userUniqueId: string, fileUniqueId: string, requestUniqueId: string): Observable<void>;
2314
+ /**
2315
+ * List granted delegations for a user
2316
+ */
2317
+ listUserGrantedDelegations(userUniqueId: string): Observable<FileDelegation[]>;
2318
+ /**
2319
+ * List received delegations for a user
2320
+ */
2321
+ listUserReceivedDelegations(userUniqueId: string): Observable<FileDelegation[]>;
2322
+ /**
2323
+ * Get a user delegation
2324
+ */
2325
+ getUserDelegation(userUniqueId: string, delegationUniqueId: string): Observable<FileDelegation>;
2326
+ /**
2327
+ * Create a user delegation
2328
+ */
2329
+ createUserDelegation(userUniqueId: string, data: CreateDelegationRequest): Observable<FileDelegation>;
2330
+ /**
2331
+ * Revoke a user delegation
2332
+ */
2333
+ revokeUserDelegation(userUniqueId: string, delegationUniqueId: string): Observable<void>;
2334
+ /**
2335
+ * List file categories
2336
+ */
2337
+ listFileCategories(params?: ListFileCategoriesParams): Observable<PageResult<FileCategory>>;
2338
+ /**
2339
+ * Get a file category
2340
+ */
2341
+ getFileCategory(uniqueId: string): Observable<FileCategory>;
2342
+ /**
2343
+ * Create a file category
2344
+ */
2345
+ createFileCategory(data: CreateFileCategoryRequest): Observable<FileCategory>;
2346
+ /**
2347
+ * Update a file category
2348
+ */
2349
+ updateFileCategory(uniqueId: string, data: UpdateFileCategoryRequest): Observable<FileCategory>;
2350
+ /**
2351
+ * Delete a file category
2352
+ */
2353
+ deleteFileCategory(uniqueId: string): Observable<void>;
2354
+ /**
2355
+ * List children of a file category
2356
+ */
2357
+ listFileCategoryChildren(parentUniqueId: string): Observable<FileCategory[]>;
2358
+ /**
2359
+ * List file tags
2360
+ */
2361
+ listFileTags(params?: ListFileTagsParams): Observable<PageResult<FileTag>>;
2362
+ /**
2363
+ * Get a file tag
2364
+ */
2365
+ getFileTag(uniqueId: string): Observable<FileTag>;
2366
+ /**
2367
+ * Create a file tag
2368
+ */
2369
+ createFileTag(data: CreateFileTagRequest): Observable<FileTag>;
2370
+ /**
2371
+ * Update a file tag
2372
+ */
2373
+ updateFileTag(uniqueId: string, data: UpdateFileTagRequest): Observable<FileTag>;
2374
+ /**
2375
+ * Delete a file tag
2376
+ */
2377
+ deleteFileTag(uniqueId: string): Observable<void>;
2378
+ /**
2379
+ * Add a tag to a file
2380
+ */
2381
+ addFileTag(userUniqueId: string, fileUniqueId: string, tagUniqueId: string): Observable<void>;
2382
+ /**
2383
+ * Remove a tag from a file
2384
+ */
2385
+ removeFileTag(userUniqueId: string, fileUniqueId: string, tagUniqueId: string): Observable<void>;
2386
+ /**
2387
+ * List file delegations for a user
2388
+ */
2389
+ listDelegations(userUniqueId: string, params?: ListFileDelegationsParams): Observable<PageResult<FileDelegation>>;
2390
+ /**
2391
+ * Get a file delegation
2392
+ */
2393
+ getDelegation(userUniqueId: string, uniqueId: string): Observable<FileDelegation>;
2394
+ /**
2395
+ * Create a file delegation
2396
+ */
2397
+ createDelegation(userUniqueId: string, data: CreateFileDelegationRequest): Observable<FileDelegation>;
2398
+ /**
2399
+ * Update a file delegation
2400
+ */
2401
+ updateDelegation(userUniqueId: string, uniqueId: string, data: UpdateFileDelegationRequest): Observable<FileDelegation>;
2402
+ /**
2403
+ * Delete a file delegation
2404
+ */
2405
+ deleteDelegation(userUniqueId: string, uniqueId: string): Observable<void>;
2406
+ /**
2407
+ * List received delegations for a user
2408
+ */
2409
+ listReceivedDelegations(userUniqueId: string): Observable<FileDelegation[]>;
2410
+ /**
2411
+ * List file accesses
2412
+ */
2413
+ listFileAccess(params?: ListFileAccessParams): Observable<PageResult<FileAccess>>;
2414
+ /**
2415
+ * Get a file access
2416
+ */
2417
+ getFileAccess(uniqueId: string): Observable<FileAccess>;
2418
+ /**
2419
+ * Grant file access
2420
+ */
2421
+ grantFileAccess(data: CreateFileAccessRequest): Observable<FileAccess>;
2422
+ /**
2423
+ * Update file access
2424
+ */
2425
+ updateFileAccess(uniqueId: string, data: UpdateFileAccessRequest): Observable<FileAccess>;
2426
+ /**
2427
+ * Revoke file access
2428
+ */
2429
+ revokeFileAccess(uniqueId: string): Observable<void>;
2430
+ /**
2431
+ * List file accesses by file
2432
+ */
2433
+ listFileAccessByFile(fileUniqueId: string, params?: ListFileAccessParams): Observable<PageResult<FileAccess>>;
2434
+ /**
2435
+ * List file accesses by grantee
2436
+ */
2437
+ listFileAccessByGrantee(granteeUniqueId: string, granteeType: string, params?: ListFileAccessParams): Observable<PageResult<FileAccess>>;
2438
+ /**
2439
+ * Check if a grantee has access to a file
2440
+ */
2441
+ checkFileAccess(fileUniqueId: string, granteeUniqueId: string): Observable<FileAccess | null>;
2442
+ /**
2443
+ * List file access requests
2444
+ */
2445
+ listFileAccessRequests(params?: ListFileAccessRequestsParams): Observable<PageResult<FileAccessRequest>>;
2446
+ /**
2447
+ * Get a file access request
2448
+ */
2449
+ getFileAccessRequest(uniqueId: string): Observable<FileAccessRequest>;
2450
+ /**
2451
+ * Create a file access request
2452
+ */
2453
+ createFileAccessRequest(data: CreateFileAccessRequestInput): Observable<FileAccessRequest>;
2454
+ /**
2455
+ * Review (approve/reject) a file access request
2456
+ */
2457
+ reviewFileAccessRequest(uniqueId: string, review: ReviewFileAccessRequestInput): Observable<FileAccessRequest>;
2458
+ /**
2459
+ * Cancel a file access request
2460
+ */
2461
+ cancelFileAccessRequest(uniqueId: string): Observable<void>;
2462
+ /**
2463
+ * List access requests for a file
2464
+ */
2465
+ listAccessRequestsByFile(fileUniqueId: string, params?: ListFileAccessRequestsParams): Observable<PageResult<FileAccessRequest>>;
2466
+ /**
2467
+ * List access requests by requester
2468
+ */
2469
+ listAccessRequestsByRequester(requesterUniqueId: string, params?: ListFileAccessRequestsParams): Observable<PageResult<FileAccessRequest>>;
2470
+ /**
2471
+ * Get pending access requests count
2472
+ */
2473
+ getPendingAccessRequestsCount(): Observable<number>;
2474
+ /**
2475
+ * Access the underlying block for advanced operations
2476
+ * Use this when you need access to services not wrapped by this Angular service
2477
+ */
2478
+ get filesBlock(): FilesBlock;
2479
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilesService, [{ optional: true; }, { optional: true; }, null]>;
2480
+ static ɵprov: i0.ɵɵInjectableDeclaration<FilesService>;
2481
+ }
2482
+
2483
+ /**
2484
+ * Angular service wrapping the Forms block.
2485
+ * Converts Promise-based APIs to RxJS Observables.
2486
+ *
2487
+ * @example
2488
+ * ```typescript
2489
+ * @Component({...})
2490
+ * export class FormComponent {
2491
+ * constructor(private formsService: FormsService) {}
2492
+ *
2493
+ * loadForms() {
2494
+ * this.formsService.listForms().subscribe({
2495
+ * next: (result) => console.log('Forms:', result.data),
2496
+ * error: (err) => console.error('Failed:', err),
2497
+ * });
2498
+ * }
2499
+ * }
2500
+ * ```
2501
+ */
2502
+ declare class FormsService {
2503
+ private readonly block;
2504
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: FormsBlockConfig);
2505
+ /**
2506
+ * Ensure the service is configured, throw helpful error if not
2507
+ */
2508
+ private ensureConfigured;
2509
+ listForms(params?: ListFormsParams): Observable<PageResult<Form>>;
2510
+ getForm(uniqueId: string): Observable<Form>;
2511
+ createForm(data: CreateFormRequest): Observable<Form>;
2512
+ updateForm(uniqueId: string, data: UpdateFormRequest): Observable<Form>;
2513
+ deleteForm(uniqueId: string): Observable<void>;
2514
+ listFormSchemas(params?: ListFormSchemasParams): Observable<PageResult<FormSchema>>;
2515
+ getFormSchema(uniqueId: string): Observable<FormSchema>;
2516
+ createFormSchema(data: CreateFormSchemaRequest): Observable<FormSchema>;
2517
+ updateFormSchema(uniqueId: string, data: UpdateFormSchemaRequest): Observable<FormSchema>;
2518
+ deleteFormSchema(uniqueId: string): Observable<void>;
2519
+ getLatestFormSchemaVersion(formUniqueId: string): Observable<FormSchema>;
2520
+ listFormSchemaVersions(formSchemaUniqueId: string, params?: ListFormSchemaVersionsParams): Observable<PageResult<FormSchemaVersion>>;
2521
+ getFormSchemaVersion(formSchemaUniqueId: string, uniqueId: string): Observable<FormSchemaVersion>;
2522
+ createFormSchemaVersion(formSchemaUniqueId: string, data: CreateFormSchemaVersionRequest): Observable<FormSchemaVersion>;
2523
+ updateFormSchemaVersion(formSchemaUniqueId: string, uniqueId: string, data: UpdateFormSchemaVersionRequest): Observable<FormSchemaVersion>;
2524
+ deleteFormSchemaVersion(formSchemaUniqueId: string, uniqueId: string): Observable<void>;
2525
+ listFormInstances(params?: ListFormInstancesParams): Observable<PageResult<FormInstance>>;
2526
+ getFormInstance(uniqueId: string): Observable<FormInstance>;
2527
+ createFormInstance(data: CreateFormInstanceRequest): Observable<FormInstance>;
2528
+ updateFormInstance(uniqueId: string, data: UpdateFormInstanceRequest): Observable<FormInstance>;
2529
+ deleteFormInstance(uniqueId: string): Observable<void>;
2530
+ submitFormInstance(data: SubmitFormInstanceRequest): Observable<FormInstance>;
2531
+ listFormInstancesByUser(userUniqueId: string, params?: ListFormInstancesParams): Observable<PageResult<FormInstance>>;
2532
+ listFormInstancesBySchema(formSchemaUniqueId: string, params?: ListFormInstancesParams): Observable<PageResult<FormInstance>>;
2533
+ listFormSets(params?: ListFormSetsParams): Observable<PageResult<FormSet>>;
2534
+ getFormSet(uniqueId: string): Observable<FormSet>;
2535
+ createFormSet(data: CreateFormSetRequest): Observable<FormSet>;
2536
+ updateFormSet(uniqueId: string, data: UpdateFormSetRequest): Observable<FormSet>;
2537
+ deleteFormSet(uniqueId: string): Observable<void>;
2538
+ listLandings(formUniqueId: string, params?: ListLandingsParams): Observable<PageResult<Landing>>;
2539
+ getLanding(formUniqueId: string, uniqueId: string): Observable<Landing>;
2540
+ submitLanding(formUniqueId: string, data: CreateLandingRequest): Observable<Landing>;
2541
+ updateLanding(formUniqueId: string, uniqueId: string, data: UpdateLandingRequest): Observable<Landing>;
2542
+ deleteLanding(formUniqueId: string, uniqueId: string): Observable<void>;
2543
+ listSubscriptions(formUniqueId: string, params?: ListSubscriptionsParams): Observable<PageResult<Subscription>>;
2544
+ getSubscription(formUniqueId: string, uniqueId: string): Observable<Subscription>;
2545
+ submitSubscription(formUniqueId: string, data: CreateSubscriptionRequest): Observable<Subscription>;
2546
+ updateSubscription(formUniqueId: string, uniqueId: string, data: UpdateSubscriptionRequest): Observable<Subscription>;
2547
+ deleteSubscription(formUniqueId: string, uniqueId: string): Observable<void>;
2548
+ listAppointments(formUniqueId: string, params?: ListAppointmentsParams): Observable<PageResult<Appointment>>;
2549
+ getAppointment(formUniqueId: string, uniqueId: string): Observable<Appointment>;
2550
+ createAppointment(formUniqueId: string, data: CreateAppointmentRequest): Observable<Appointment>;
2551
+ updateAppointment(formUniqueId: string, uniqueId: string, data: UpdateAppointmentRequest): Observable<Appointment>;
2552
+ deleteAppointment(formUniqueId: string, uniqueId: string): Observable<void>;
2553
+ confirmAppointment(formUniqueId: string, uniqueId: string): Observable<Appointment>;
2554
+ cancelAppointment(formUniqueId: string, uniqueId: string): Observable<Appointment>;
2555
+ getAppointmentReportList(data: AppointmentReportRequest): Observable<Appointment[]>;
2556
+ getAppointmentReportSummary(data: AppointmentReportRequest): Observable<AppointmentReportSummary>;
2557
+ listSurveys(formUniqueId: string, params?: ListSurveysParams): Observable<PageResult<Survey>>;
2558
+ listSurveysByStatus(formUniqueId: string, status: SurveyStatus, params?: ListSurveysParams): Observable<PageResult<Survey>>;
2559
+ getSurvey(formUniqueId: string, uniqueId: string): Observable<Survey>;
2560
+ createSurvey(formUniqueId: string, data: CreateSurveyRequest): Observable<Survey>;
2561
+ updateSurvey(formUniqueId: string, uniqueId: string, data: UpdateSurveyRequest): Observable<Survey>;
2562
+ deleteSurvey(formUniqueId: string, uniqueId: string): Observable<void>;
2563
+ updateSurveyStatus(formUniqueId: string, uniqueId: string, data: UpdateSurveyStatusRequest): Observable<Survey>;
2564
+ resendSurveyMagicLink(formUniqueId: string, uniqueId: string): Observable<void>;
2565
+ listSurveysByUser(userUniqueId: string, params?: ListSurveysParams): Observable<PageResult<Survey>>;
2566
+ listReferrals(formUniqueId: string, params?: ListReferralsParams$1): Observable<PageResult<Referral$1>>;
2567
+ getReferral(formUniqueId: string, uniqueId: string): Observable<Referral$1>;
2568
+ createReferral(formUniqueId: string, data: CreateReferralRequest$1): Observable<Referral$1>;
2569
+ updateReferral(formUniqueId: string, uniqueId: string, data: UpdateReferralRequest$1): Observable<Referral$1>;
2570
+ deleteReferral(formUniqueId: string, uniqueId: string): Observable<void>;
2571
+ listMailTemplates(params?: ListMailTemplatesParams): Observable<PageResult<MailTemplate$1>>;
2572
+ getMailTemplate(uniqueId: string): Observable<MailTemplate$1>;
2573
+ createMailTemplate(data: CreateMailTemplateRequest): Observable<MailTemplate$1>;
2574
+ updateMailTemplate(uniqueId: string, data: UpdateMailTemplateRequest): Observable<MailTemplate$1>;
2575
+ deleteMailTemplate(uniqueId: string): Observable<void>;
2576
+ /**
2577
+ * Get public form via magic link.
2578
+ * If OTP verification is required, returns form with verificationStatus: 'pending'
2579
+ * and limited fields (no schema/uiSchema until verified).
2580
+ */
2581
+ getApplicationForm(urlId: string): Observable<ApplicationForm>;
2582
+ submitApplicationForm(urlId: string, data: ApplicationFormSubmission): Observable<ApplicationFormResponse>;
2583
+ saveApplicationFormDraft(urlId: string, data: ApplicationFormDraft): Observable<ApplicationFormResponse>;
2584
+ /**
2585
+ * Send OTP verification code to user's email.
2586
+ * @throws Error with code RATE_LIMITED if called too frequently (60s cooldown)
2587
+ * @throws Error with code ALREADY_VERIFIED if form is already verified
2588
+ * @throws Error with code OTP_NOT_REQUIRED if form doesn't require OTP
2589
+ */
2590
+ sendApplicationFormOtp(urlId: string): Observable<SendOtpResponse>;
2591
+ /**
2592
+ * Verify OTP code and get full form access.
2593
+ * On success, returns full form with schema and fields.
2594
+ * @throws Error with code INVALID_CODE if code is wrong (includes attemptsRemaining)
2595
+ * @throws Error with code CODE_EXPIRED if code has expired (10 min lifetime)
2596
+ * @throws Error with code ATTEMPTS_EXCEEDED if max attempts (5) reached
2597
+ */
2598
+ verifyApplicationFormOtp(urlId: string, data: VerifyOtpRequest): Observable<ApplicationForm>;
2599
+ syncLandingToCrm(uniqueId: string): Observable<CrmSyncResult>;
2600
+ syncSubscriptionToCrm(uniqueId: string): Observable<CrmSyncResult>;
2601
+ syncAppointmentToCrm(uniqueId: string): Observable<CrmSyncResult>;
2602
+ batchSyncToCrm(data: CrmSyncBatchRequest): Observable<CrmSyncBatchResult>;
2603
+ retryFailedCrmSync(): Observable<CrmSyncBatchResult>;
2604
+ testCrmConnection(): Observable<CrmConnectionStatus>;
2605
+ getCrmSyncStatus(): Observable<CrmSyncStatus>;
2606
+ /**
2607
+ * Access the underlying FormsBlock for advanced operations
2608
+ */
2609
+ get formsBlock(): FormsBlock;
2610
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormsService, [{ optional: true; }, { optional: true; }, null]>;
2611
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormsService>;
2612
+ }
2613
+
2614
+ /**
2615
+ * Angular service wrapping the Assets block.
2616
+ * Converts Promise-based APIs to RxJS Observables.
2617
+ *
2618
+ * @example
2619
+ * ```typescript
2620
+ * @Component({...})
2621
+ * export class AssetManagementComponent {
2622
+ * constructor(private assets: AssetsService) {}
2623
+ *
2624
+ * loadAssets() {
2625
+ * this.assets.listAssets().subscribe({
2626
+ * next: (result) => console.log('Assets:', result.data),
2627
+ * error: (err) => console.error('Failed:', err),
2628
+ * });
2629
+ * }
2630
+ * }
2631
+ * ```
2632
+ */
2633
+ declare class AssetsService {
2634
+ private readonly block;
2635
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: AssetsBlockConfig);
2636
+ /**
2637
+ * Ensure the service is configured, throw helpful error if not
2638
+ */
2639
+ private ensureConfigured;
2640
+ listAssets(params?: ListAssetsParams): Observable<PageResult<Asset>>;
2641
+ getAsset(uniqueId: string): Observable<Asset>;
2642
+ createAsset(data: CreateAssetRequest): Observable<Asset>;
2643
+ updateAsset(uniqueId: string, data: UpdateAssetRequest): Observable<Asset>;
2644
+ deleteAsset(uniqueId: string): Observable<void>;
2645
+ listAssetsTrash(): Observable<PageResult<Asset>>;
2646
+ transferAsset(uniqueId: string, data: TransferAssetRequest): Observable<Asset>;
2647
+ assignAsset(uniqueId: string, data: AssignAssetRequest): Observable<Asset>;
2648
+ unassignAsset(uniqueId: string): Observable<Asset>;
2649
+ listAssetsByLocation(locationUniqueId: string, params?: ListAssetsParams): Observable<PageResult<Asset>>;
2650
+ listAssetsByAssignee(assignedToUniqueId: string, params?: ListAssetsParams): Observable<PageResult<Asset>>;
2651
+ addAssetToCategory(uniqueId: string, data: AddToCategoryRequest): Observable<Asset>;
2652
+ addAssetParts(uniqueId: string, data: AddPartsRequest): Observable<Asset>;
2653
+ removeAssetParts(uniqueId: string, data: RemovePartsRequest): Observable<Asset>;
2654
+ updateAssetMaintenance(uniqueId: string, data: UpdateMaintenanceRequest): Observable<Asset>;
2655
+ lendAsset(uniqueId: string, data: LendAssetRequest): Observable<Asset>;
2656
+ createAssetOTP(uniqueId: string, data?: CreateOTPRequest): Observable<OTPResponse>;
2657
+ listAssetEvents(assetUniqueId: string, params?: ListAssetEventsParams): Observable<PageResult<AssetEvent>>;
2658
+ getAssetEvent(assetUniqueId: string, eventUniqueId: string): Observable<AssetEvent>;
2659
+ createAssetEvent(assetUniqueId: string, data: CreateAssetEventRequest): Observable<AssetEvent>;
2660
+ updateAssetEvent(assetUniqueId: string, eventUniqueId: string, data: UpdateAssetEventRequest): Observable<AssetEvent>;
2661
+ getEventReportList(params: EventReportParams): Observable<EventReportList>;
2662
+ getEventReportSummary(params: EventReportParams): Observable<EventReportSummary>;
2663
+ presignEventImage(assetUniqueId: string, eventUniqueId: string): Observable<EventImagePresignResponse>;
2664
+ createEventImage(assetUniqueId: string, eventUniqueId: string, data: CreateEventImageRequest): Observable<EventImage>;
2665
+ deleteEventImage(assetUniqueId: string, eventUniqueId: string, imageUniqueId: string): Observable<void>;
2666
+ listAssetAudits(assetUniqueId: string, params?: ListAssetAuditsParams): Observable<PageResult<AssetAudit>>;
2667
+ getAssetAudit(assetUniqueId: string, auditUniqueId: string): Observable<AssetAudit>;
2668
+ createAssetAudit(assetUniqueId: string, data: CreateAssetAuditRequest): Observable<AssetAudit>;
2669
+ updateAssetAudit(assetUniqueId: string, auditUniqueId: string, data: UpdateAssetAuditRequest): Observable<AssetAudit>;
2670
+ deleteAssetAudit(assetUniqueId: string, auditUniqueId: string): Observable<void>;
2671
+ listCategories(params?: ListCategoriesParams$3): Observable<PageResult<Category$3>>;
2672
+ getCategory(uniqueId: string): Observable<Category$3>;
2673
+ createCategory(data: CreateCategoryRequest$3): Observable<Category$3>;
2674
+ updateCategory(uniqueId: string, data: UpdateCategoryRequest$3): Observable<Category$3>;
2675
+ deleteCategory(uniqueId: string): Observable<void>;
2676
+ deleteCategoryCascade(uniqueId: string): Observable<void>;
2677
+ presignCategoryImage(uniqueId: string): Observable<CategoryPresignResponse>;
2678
+ createCategoryImage(uniqueId: string, data: CreateCategoryImageRequest): Observable<CategoryImage>;
2679
+ deleteCategoryImage(uniqueId: string, imageUniqueId: string): Observable<void>;
2680
+ listTags(params?: ListTagsParams$1): Observable<PageResult<Tag$1>>;
2681
+ getTag(uniqueId: string): Observable<Tag$1>;
2682
+ createTag(data: CreateTagRequest$1): Observable<Tag$1>;
2683
+ updateTag(uniqueId: string, data: UpdateTagRequest$1): Observable<Tag$1>;
2684
+ listVendors(params?: ListVendorsParams$1): Observable<PageResult<Vendor$1>>;
2685
+ getVendor(uniqueId: string): Observable<Vendor$1>;
2686
+ createVendor(data: CreateVendorRequest$1): Observable<Vendor$1>;
2687
+ updateVendor(uniqueId: string, data: UpdateVendorRequest$1): Observable<Vendor$1>;
2688
+ deleteVendor(uniqueId: string): Observable<void>;
2689
+ listWarehouses(params?: ListWarehousesParams$1): Observable<PageResult<Warehouse$1>>;
2690
+ getWarehouse(uniqueId: string): Observable<Warehouse$1>;
2691
+ createWarehouse(data: CreateWarehouseRequest$1): Observable<Warehouse$1>;
2692
+ updateWarehouse(uniqueId: string, data: UpdateWarehouseRequest$1): Observable<Warehouse$1>;
2693
+ deleteWarehouse(uniqueId: string): Observable<void>;
2694
+ listEntities(params?: ListAssetsEntitiesParams): Observable<PageResult<AssetsEntity>>;
2695
+ getEntity(uniqueId: string): Observable<AssetsEntity>;
2696
+ createEntity(data: CreateAssetsEntityRequest): Observable<AssetsEntity>;
2697
+ updateEntity(uniqueId: string, data: UpdateAssetsEntityRequest): Observable<AssetsEntity>;
2698
+ deleteEntity(uniqueId: string): Observable<void>;
2699
+ listEntityAccesses(uniqueId: string): Observable<EntityAccess[]>;
2700
+ getEntityAccess(uniqueId: string): Observable<EntityAccess>;
2701
+ makeEntityPublic(uniqueId: string): Observable<void>;
2702
+ revokeEntityAccess(uniqueId: string, accessUniqueId: string): Observable<void>;
2703
+ requestEntityAccess(uniqueId: string, data: CreateAccessRequestRequest): Observable<AccessRequest>;
2704
+ listEntityAccessRequests(uniqueId: string): Observable<AccessRequest[]>;
2705
+ approveEntityAccessRequest(uniqueId: string, requestUniqueId: string): Observable<AccessRequest>;
2706
+ denyEntityAccessRequest(uniqueId: string, requestUniqueId: string): Observable<void>;
2707
+ listAssetOperations(assetUniqueId: string, params?: ListAssetOperationsParams): Observable<PageResult<AssetOperation>>;
2708
+ getAssetOperation(assetUniqueId: string, operationUniqueId: string): Observable<AssetOperation>;
2709
+ createAssetOperation(assetUniqueId: string, data: CreateAssetOperationRequest): Observable<AssetOperation>;
2710
+ getOperationReportSummary(params: OperationReportParams): Observable<OperationReportSummary>;
2711
+ getAlert(uniqueId: string): Observable<AssetAlert>;
2712
+ createAlert(data: CreateAssetAlertRequest): Observable<AssetAlert>;
2713
+ deleteAlert(uniqueId: string): Observable<void>;
2714
+ listAssetsUsers(params?: ListAssetsUsersParams): Observable<PageResult<AssetsUser>>;
2715
+ getAssetsUser(uniqueId: string): Observable<AssetsUser>;
2716
+ registerAssetsUser(uniqueId: string, data: RegisterAssetsUserRequest): Observable<AssetsUser>;
2717
+ updateAssetsUser(uniqueId: string, data: UpdateAssetsUserRequest): Observable<AssetsUser>;
2718
+ listUserEntities(uniqueId: string): Observable<AssetsEntity[]>;
2719
+ listUserAssets(uniqueId: string): Observable<Asset[]>;
2720
+ listUserOwnership(uniqueId: string): Observable<UserOwnership[]>;
2721
+ presignAssetImage(assetUniqueId: string): Observable<AssetPresignResponse>;
2722
+ createAssetImage(assetUniqueId: string, data: CreateAssetImageRequest): Observable<AssetImage>;
2723
+ deleteAssetImage(assetUniqueId: string, imageUniqueId: string): Observable<void>;
2724
+ presignAssetEventImage(assetUniqueId: string, eventUniqueId: string): Observable<AssetPresignResponse>;
2725
+ createAssetEventImage(assetUniqueId: string, eventUniqueId: string, data: CreateAssetImageRequest): Observable<AssetImage>;
2726
+ deleteAssetEventImage(assetUniqueId: string, eventUniqueId: string, imageUniqueId: string): Observable<void>;
2727
+ /**
2728
+ * Access the underlying block for advanced operations
2729
+ * Use this when you need access to services not wrapped by this Angular service
2730
+ */
2731
+ get assetsBlock(): AssetsBlock;
2732
+ static ɵfac: i0.ɵɵFactoryDeclaration<AssetsService, [{ optional: true; }, { optional: true; }, null]>;
2733
+ static ɵprov: i0.ɵɵInjectableDeclaration<AssetsService>;
2734
+ }
2735
+
2736
+ /**
2737
+ * Angular service wrapping the Campaigns block.
2738
+ * Converts Promise-based APIs to RxJS Observables.
2739
+ *
2740
+ * @example
2741
+ * ```typescript
2742
+ * @Component({...})
2743
+ * export class CampaignsComponent {
2744
+ * constructor(private campaigns: CampaignsService) {}
2745
+ *
2746
+ * loadCampaigns() {
2747
+ * this.campaigns.listCampaigns({ page: 1, perPage: 10 }).subscribe({
2748
+ * next: (result) => console.log('Campaigns:', result.data),
2749
+ * error: (err) => console.error('Failed:', err),
2750
+ * });
2751
+ * }
2752
+ * }
2753
+ * ```
2754
+ */
2755
+ declare class CampaignsService {
2756
+ private readonly block;
2757
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: CampaignsBlockConfig);
2758
+ /**
2759
+ * Ensure the service is configured, throw helpful error if not
2760
+ */
2761
+ private ensureConfigured;
2762
+ listCampaigns(params?: ListCampaignsParams): Observable<PageResult<Campaign>>;
2763
+ getCampaign(uniqueId: string): Observable<Campaign>;
2764
+ createCampaign(data: CreateCampaignRequest): Observable<Campaign>;
2765
+ updateCampaign(uniqueId: string, data: UpdateCampaignRequest): Observable<Campaign>;
2766
+ deleteCampaign(uniqueId: string): Observable<void>;
2767
+ startCampaign(uniqueId: string): Observable<Campaign>;
2768
+ pauseCampaign(uniqueId: string): Observable<Campaign>;
2769
+ stopCampaign(uniqueId: string): Observable<Campaign>;
2770
+ getCampaignResults(uniqueId: string): Observable<CampaignResults>;
2771
+ listCampaignMedia(params?: ListCampaignMediaParams): Observable<PageResult<CampaignMedia>>;
2772
+ getCampaignMedia(uniqueId: string): Observable<CampaignMedia>;
2773
+ createCampaignMedia(data: CreateCampaignMediaRequest): Observable<CampaignMedia>;
2774
+ updateCampaignMedia(uniqueId: string, data: UpdateCampaignMediaRequest): Observable<CampaignMedia>;
2775
+ deleteCampaignMedia(uniqueId: string): Observable<void>;
2776
+ listCampaignMediaByCampaign(campaignUniqueId: string): Observable<CampaignMedia[]>;
2777
+ getCampaignMediaResults(uniqueId: string): Observable<CampaignMediaResults>;
2778
+ listLandingPages(params?: ListLandingPagesParams): Observable<PageResult<LandingPage>>;
2779
+ getLandingPage(uniqueId: string): Observable<LandingPage>;
2780
+ createLandingPage(data: CreateLandingPageRequest): Observable<LandingPage>;
2781
+ updateLandingPage(uniqueId: string, data: UpdateLandingPageRequest): Observable<LandingPage>;
2782
+ deleteLandingPage(uniqueId: string): Observable<void>;
2783
+ publishLandingPage(uniqueId: string): Observable<LandingPage>;
2784
+ unpublishLandingPage(uniqueId: string): Observable<LandingPage>;
2785
+ getLandingPageBySlug(slug: string): Observable<LandingPage>;
2786
+ listAudiences(params?: ListAudiencesParams): Observable<PageResult<Audience>>;
2787
+ getAudience(uniqueId: string): Observable<Audience>;
2788
+ createAudience(data: CreateAudienceRequest): Observable<Audience>;
2789
+ updateAudience(uniqueId: string, data: UpdateAudienceRequest): Observable<Audience>;
2790
+ deleteAudience(uniqueId: string): Observable<void>;
2791
+ getAudienceMembers(uniqueId: string): Observable<AudienceMember[]>;
2792
+ listLandingTemplates(params?: ListLandingTemplatesParams): Observable<PageResult<LandingTemplate>>;
2793
+ getLandingTemplate(uniqueId: string): Observable<LandingTemplate>;
2794
+ createLandingTemplate(data: CreateLandingTemplateRequest): Observable<LandingTemplate>;
2795
+ updateLandingTemplate(uniqueId: string, data: UpdateLandingTemplateRequest): Observable<LandingTemplate>;
2796
+ deleteLandingTemplate(uniqueId: string): Observable<void>;
2797
+ listCampaignTargets(params?: ListCampaignTargetsParams): Observable<PageResult<CampaignTarget>>;
2798
+ getCampaignTarget(uniqueId: string): Observable<CampaignTarget>;
2799
+ createCampaignTarget(data: CreateCampaignTargetRequest): Observable<CampaignTarget>;
2800
+ updateCampaignTarget(uniqueId: string, data: UpdateCampaignTargetRequest): Observable<CampaignTarget>;
2801
+ deleteCampaignTarget(uniqueId: string): Observable<void>;
2802
+ listCampaignResultsData(params?: ListCampaignResultsParams): Observable<PageResult<CampaignResult>>;
2803
+ getCampaignResult(uniqueId: string): Observable<CampaignResult>;
2804
+ createCampaignResult(data: CreateCampaignResultRequest): Observable<CampaignResult>;
2805
+ updateCampaignResult(uniqueId: string, data: UpdateCampaignResultRequest): Observable<CampaignResult>;
2806
+ deleteCampaignResult(uniqueId: string): Observable<void>;
2807
+ listCampaignMarkets(params?: ListCampaignMarketsParams): Observable<PageResult<CampaignMarket>>;
2808
+ getCampaignMarket(uniqueId: string): Observable<CampaignMarket>;
2809
+ createCampaignMarket(data: CreateCampaignMarketRequest): Observable<CampaignMarket>;
2810
+ updateCampaignMarket(uniqueId: string, data: UpdateCampaignMarketRequest): Observable<CampaignMarket>;
2811
+ deleteCampaignMarket(uniqueId: string): Observable<void>;
2812
+ listCampaignLocations(params?: ListCampaignLocationsParams): Observable<PageResult<CampaignLocation>>;
2813
+ getCampaignLocation(uniqueId: string): Observable<CampaignLocation>;
2814
+ createCampaignLocation(data: CreateCampaignLocationRequest): Observable<CampaignLocation>;
2815
+ updateCampaignLocation(uniqueId: string, data: UpdateCampaignLocationRequest): Observable<CampaignLocation>;
2816
+ deleteCampaignLocation(uniqueId: string): Observable<void>;
2817
+ listCampaignTemplates(params?: ListCampaignTemplatesParams): Observable<PageResult<CampaignTemplate>>;
2818
+ getCampaignTemplate(uniqueId: string): Observable<CampaignTemplate>;
2819
+ createCampaignTemplate(data: CreateCampaignTemplateRequest): Observable<CampaignTemplate>;
2820
+ updateCampaignTemplate(uniqueId: string, data: UpdateCampaignTemplateRequest): Observable<CampaignTemplate>;
2821
+ deleteCampaignTemplate(uniqueId: string): Observable<void>;
2822
+ listTemplateDetails(params?: ListTemplateDetailsParams): Observable<PageResult<TemplateDetail>>;
2823
+ getTemplateDetail(uniqueId: string): Observable<TemplateDetail>;
2824
+ createTemplateDetail(data: CreateTemplateDetailRequest): Observable<TemplateDetail>;
2825
+ updateTemplateDetail(uniqueId: string, data: UpdateTemplateDetailRequest): Observable<TemplateDetail>;
2826
+ deleteTemplateDetail(uniqueId: string): Observable<void>;
2827
+ listCampaignMediaResultsData(params?: ListCampaignMediaResultsParams): Observable<PageResult<CampaignMediaResult>>;
2828
+ getCampaignMediaResultData(uniqueId: string): Observable<CampaignMediaResult>;
2829
+ createCampaignMediaResultData(data: CreateCampaignMediaResultRequest): Observable<CampaignMediaResult>;
2830
+ updateCampaignMediaResultData(uniqueId: string, data: UpdateCampaignMediaResultRequest): Observable<CampaignMediaResult>;
2831
+ deleteCampaignMediaResultData(uniqueId: string): Observable<void>;
2832
+ listMedia(params?: ListMediaParams): Observable<PageResult<Media>>;
2833
+ getMedia(uniqueId: string): Observable<Media>;
2834
+ createMedia(data: CreateMediaRequest): Observable<Media>;
2835
+ updateMedia(uniqueId: string, data: UpdateMediaRequest): Observable<Media>;
2836
+ deleteMedia(uniqueId: string): Observable<void>;
2837
+ /**
2838
+ * Access the underlying block for advanced operations
2839
+ * Use this when you need access to services not wrapped by this Angular service
2840
+ */
2841
+ get campaignsBlock(): CampaignsBlock;
2842
+ static ɵfac: i0.ɵɵFactoryDeclaration<CampaignsService, [{ optional: true; }, { optional: true; }, null]>;
2843
+ static ɵprov: i0.ɵɵInjectableDeclaration<CampaignsService>;
2844
+ }
2845
+
2846
+ /**
2847
+ * Angular service wrapping the Company block.
2848
+ * Converts Promise-based APIs to RxJS Observables.
2849
+ *
2850
+ * @example
2851
+ * ```typescript
2852
+ * @Component({...})
2853
+ * export class CompanyComponent {
2854
+ * constructor(private company: CompanyService) {}
2855
+ *
2856
+ * createCompany(name: string) {
2857
+ * this.company.createCompany({ name, code: 'COMP001' }).subscribe({
2858
+ * next: (company) => console.log('Company created:', company),
2859
+ * error: (err) => console.error('Failed:', err),
2860
+ * });
2861
+ * }
2862
+ * }
2863
+ * ```
2864
+ */
2865
+ declare class CompanyService {
2866
+ private readonly block;
2867
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: CompanyBlockConfig);
2868
+ /**
2869
+ * Ensure the service is configured, throw helpful error if not
2870
+ */
2871
+ private ensureConfigured;
2872
+ listCompanies(params?: ListCompaniesParams): Observable<PageResult<Company$1>>;
2873
+ getCompany(uniqueId: string): Observable<Company$1>;
2874
+ createCompany(request: CreateCompanyRequest): Observable<Company$1>;
2875
+ updateCompany(uniqueId: string, request: UpdateCompanyRequest): Observable<Company$1>;
2876
+ deleteCompany(uniqueId: string): Observable<void>;
2877
+ listDepartments(params?: ListDepartmentsParams): Observable<PageResult<Department>>;
2878
+ getDepartment(uniqueId: string): Observable<Department>;
2879
+ createDepartment(request: CreateDepartmentRequest): Observable<Department>;
2880
+ updateDepartment(uniqueId: string, request: UpdateDepartmentRequest): Observable<Department>;
2881
+ deleteDepartment(uniqueId: string): Observable<void>;
2882
+ listDepartmentsByCompany(companyUniqueId: string): Observable<Department[]>;
2883
+ getDepartmentHierarchy(companyUniqueId: string): Observable<DepartmentHierarchy[]>;
2884
+ listTeams(params?: ListTeamsParams): Observable<PageResult<Team>>;
2885
+ getTeam(uniqueId: string): Observable<Team>;
2886
+ createTeam(request: CreateTeamRequest): Observable<Team>;
2887
+ updateTeam(uniqueId: string, request: UpdateTeamRequest): Observable<Team>;
2888
+ deleteTeam(uniqueId: string): Observable<void>;
2889
+ listTeamsByDepartment(departmentUniqueId: string): Observable<Team[]>;
2890
+ listTeamMembers(params?: ListTeamMembersParams): Observable<PageResult<TeamMember>>;
2891
+ getTeamMember(uniqueId: string): Observable<TeamMember>;
2892
+ addTeamMember(request: AddTeamMemberRequest): Observable<TeamMember>;
2893
+ updateTeamMember(uniqueId: string, request: UpdateTeamMemberRequest): Observable<TeamMember>;
2894
+ removeTeamMember(uniqueId: string): Observable<void>;
2895
+ listTeamMembersByTeam(teamUniqueId: string): Observable<TeamMember[]>;
2896
+ listQuarters(params?: ListQuartersParams): Observable<PageResult<Quarter>>;
2897
+ getQuarter(uniqueId: string): Observable<Quarter>;
2898
+ createQuarter(request: CreateQuarterRequest): Observable<Quarter>;
2899
+ updateQuarter(uniqueId: string, request: UpdateQuarterRequest): Observable<Quarter>;
2900
+ deleteQuarter(uniqueId: string): Observable<void>;
2901
+ /**
2902
+ * List positions with optional filtering and pagination
2903
+ */
2904
+ listPositions(params?: ListPositionsParams): Observable<PageResult<Position>>;
2905
+ /**
2906
+ * Get a position by unique ID
2907
+ */
2908
+ getPosition(uniqueId: string): Observable<Position>;
2909
+ /**
2910
+ * Create a new position
2911
+ */
2912
+ createPosition(request: CreatePositionRequest): Observable<Position>;
2913
+ /**
2914
+ * Update an existing position
2915
+ */
2916
+ updatePosition(uniqueId: string, request: UpdatePositionRequest): Observable<Position>;
2917
+ /**
2918
+ * Delete a position
2919
+ */
2920
+ deletePosition(uniqueId: string): Observable<void>;
2921
+ /**
2922
+ * List positions by department
2923
+ */
2924
+ listPositionsByDepartment(departmentUniqueId: string): Observable<Position[]>;
2925
+ /**
2926
+ * List employee assignments with optional filtering and pagination
2927
+ */
2928
+ listEmployeeAssignments(params?: ListEmployeeAssignmentsParams): Observable<PageResult<EmployeeAssignment>>;
2929
+ /**
2930
+ * Get an employee assignment by unique ID
2931
+ */
2932
+ getEmployeeAssignment(uniqueId: string): Observable<EmployeeAssignment>;
2933
+ /**
2934
+ * Create a new employee assignment
2935
+ */
2936
+ createEmployeeAssignment(request: CreateEmployeeAssignmentRequest): Observable<EmployeeAssignment>;
2937
+ /**
2938
+ * Update an existing employee assignment
2939
+ */
2940
+ updateEmployeeAssignment(uniqueId: string, request: UpdateEmployeeAssignmentRequest): Observable<EmployeeAssignment>;
2941
+ /**
2942
+ * Delete an employee assignment
2943
+ */
2944
+ deleteEmployeeAssignment(uniqueId: string): Observable<void>;
2945
+ /**
2946
+ * List employee assignments by user
2947
+ */
2948
+ listEmployeeAssignmentsByUser(userUniqueId: string): Observable<EmployeeAssignment[]>;
2949
+ /**
2950
+ * List employee assignments by position
2951
+ */
2952
+ listEmployeeAssignmentsByPosition(positionUniqueId: string): Observable<EmployeeAssignment[]>;
2953
+ /**
2954
+ * Access the underlying block for advanced operations
2955
+ * Use this when you need access to services not wrapped by this Angular service
2956
+ */
2957
+ get companyBlock(): CompanyBlock;
2958
+ static ɵfac: i0.ɵɵFactoryDeclaration<CompanyService, [{ optional: true; }, { optional: true; }, null]>;
2959
+ static ɵprov: i0.ɵɵInjectableDeclaration<CompanyService>;
2960
+ }
2961
+
2962
+ /**
2963
+ * Angular service wrapping the Rewards block.
2964
+ * Converts Promise-based APIs to RxJS Observables.
2965
+ *
2966
+ * @example
2967
+ * ```typescript
2968
+ * @Component({...})
2969
+ * export class RewardsComponent {
2970
+ * constructor(private rewards: RewardsService) {}
2971
+ *
2972
+ * listRewards() {
2973
+ * this.rewards.listRewards({ status: 'active' }).subscribe({
2974
+ * next: (result) => console.log('Rewards:', result.data),
2975
+ * error: (err) => console.error('Failed:', err),
2976
+ * });
2977
+ * }
2978
+ * }
2979
+ * ```
2980
+ */
2981
+ declare class RewardsService {
2982
+ private readonly block;
2983
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: RewardsBlockConfig);
2984
+ /**
2985
+ * Ensure the service is configured, throw helpful error if not
2986
+ */
2987
+ private ensureConfigured;
2988
+ listRewards(params?: ListRewardsParams): Observable<PageResult<Reward>>;
2989
+ getReward(uniqueId: string): Observable<Reward>;
2990
+ createReward(data: CreateRewardRequest): Observable<Reward>;
2991
+ updateReward(uniqueId: string, data: UpdateRewardRequest): Observable<Reward>;
2992
+ deleteReward(uniqueId: string): Observable<void>;
2993
+ redeemReward(data: RedeemRewardRequest): Observable<RewardRedemption>;
2994
+ listCoupons(params?: ListCouponsParams): Observable<PageResult<Coupon>>;
2995
+ getCoupon(uniqueId: string): Observable<Coupon>;
2996
+ getCouponByCode(code: string): Observable<Coupon>;
2997
+ createCoupon(data: CreateCouponRequest): Observable<Coupon>;
2998
+ updateCoupon(uniqueId: string, data: UpdateCouponRequest): Observable<Coupon>;
2999
+ deleteCoupon(uniqueId: string): Observable<void>;
3000
+ validateCoupon(data: ValidateCouponRequest): Observable<CouponValidationResult>;
3001
+ applyCoupon(data: ApplyCouponRequest): Observable<CouponApplication>;
3002
+ getLoyalty(uniqueId: string): Observable<Loyalty>;
3003
+ getLoyaltyByUser(userUniqueId: string): Observable<Loyalty>;
3004
+ addPoints(data: AddPointsRequest): Observable<LoyaltyTransaction>;
3005
+ redeemPoints(data: RedeemPointsRequest): Observable<LoyaltyTransaction>;
3006
+ getLoyaltyHistory(userUniqueId: string, params?: ListTransactionsParams): Observable<PageResult<LoyaltyTransaction>>;
3007
+ listBadges(params?: ListBadgesParams): Observable<PageResult<Badge>>;
3008
+ getBadge(uniqueId: string): Observable<Badge>;
3009
+ createBadge(data: CreateBadgeRequest): Observable<Badge>;
3010
+ updateBadge(uniqueId: string, data: UpdateBadgeRequest): Observable<Badge>;
3011
+ deleteBadge(uniqueId: string): Observable<void>;
3012
+ awardBadge(data: AwardBadgeRequest): Observable<UserBadge>;
3013
+ listUserBadges(userUniqueId: string, params?: ListUserBadgesParams): Observable<PageResult<UserBadge>>;
3014
+ listCouponConfigurations(params?: ListCouponConfigurationsParams): Observable<PageResult<CouponConfiguration>>;
3015
+ getCouponConfiguration(uniqueId: string): Observable<CouponConfiguration>;
3016
+ createCouponConfiguration(data: CreateCouponConfigurationRequest): Observable<CouponConfiguration>;
3017
+ updateCouponConfiguration(data: UpdateCouponConfigurationRequest): Observable<CouponConfiguration>;
3018
+ deleteCouponConfiguration(uniqueId: string): Observable<void>;
3019
+ listConfigurationCoupons(uniqueId: string): Observable<Coupon[]>;
3020
+ generateOneCoupon(uniqueId: string): Observable<Coupon>;
3021
+ generateBatchCoupons(uniqueId: string, count: number): Observable<Coupon[]>;
3022
+ voidBatchCoupons(uniqueId: string, batchId: string): Observable<void>;
3023
+ loadCoupons(uniqueId: string, codes: string[]): Observable<Coupon[]>;
3024
+ getOfferCode(code: string): Observable<OfferCode>;
3025
+ createOfferCode(data: CreateOfferCodeRequest): Observable<OfferCode>;
3026
+ sendOfferCode(data: SendOfferCodeRequest): Observable<OfferCode>;
3027
+ redeemOfferCode(data: RedeemOfferCodeRequest): Observable<OfferCode>;
3028
+ listExpirationRules(params?: ListExpirationRulesParams): Observable<PageResult<ExpirationRule>>;
3029
+ getExpirationRule(uniqueId: string): Observable<ExpirationRule>;
3030
+ createExpirationRule(data: CreateExpirationRuleRequest): Observable<ExpirationRule>;
3031
+ updateExpirationRule(uniqueId: string, data: UpdateExpirationRuleRequest): Observable<ExpirationRule>;
3032
+ deleteExpirationRule(uniqueId: string): Observable<void>;
3033
+ listRewardsCustomers(params?: ListRewardsCustomersParams): Observable<PageResult<RewardsCustomer>>;
3034
+ getRewardsCustomer(uniqueId: string): Observable<RewardsCustomer>;
3035
+ getCustomerLoyaltyTier(uniqueId: string): Observable<Loyalty>;
3036
+ getCustomerRewards(uniqueId: string): Observable<unknown>;
3037
+ getCustomerRewardExpirations(uniqueId: string): Observable<CustomerRewardExpiration[]>;
3038
+ getCustomerRewardHistory(uniqueId: string): Observable<CustomerRewardHistory[]>;
3039
+ getCustomerBadges(uniqueId: string): Observable<Badge[]>;
3040
+ getCustomerCoupons(uniqueId: string): Observable<Coupon[]>;
3041
+ getCustomerOfferCodes(uniqueId: string): Observable<OfferCode[]>;
3042
+ grantCustomerReward(uniqueId: string, points: number, reason?: string): Observable<RewardsCustomer>;
3043
+ updateCustomerExpiration(uniqueId: string, expirationDate: Date): Observable<RewardsCustomer>;
3044
+ /**
3045
+ * List badge categories with optional pagination
3046
+ */
3047
+ listBadgeCategories(page?: number, perPage?: number): Observable<PageResult<BadgeCategory>>;
3048
+ /**
3049
+ * Get a badge category by unique ID
3050
+ */
3051
+ getBadgeCategory(uniqueId: string): Observable<BadgeCategory>;
3052
+ /**
3053
+ * Create a new badge category
3054
+ */
3055
+ createBadgeCategory(data: CreateBadgeCategoryRequest): Observable<BadgeCategory>;
3056
+ /**
3057
+ * Update a badge category
3058
+ */
3059
+ updateBadgeCategory(uniqueId: string, data: Partial<CreateBadgeCategoryRequest>): Observable<BadgeCategory>;
3060
+ /**
3061
+ * Delete a badge category
3062
+ */
3063
+ deleteBadgeCategory(uniqueId: string): Observable<void>;
3064
+ /**
3065
+ * List money rules for a loyalty program
3066
+ */
3067
+ listMoneyRules(loyaltyUniqueId: string): Observable<MoneyRule[]>;
3068
+ /**
3069
+ * Get a money rule by unique ID
3070
+ */
3071
+ getMoneyRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<MoneyRule>;
3072
+ /**
3073
+ * Create a new money rule
3074
+ */
3075
+ createMoneyRule(loyaltyUniqueId: string, data: CreateMoneyRuleRequest): Observable<MoneyRule>;
3076
+ /**
3077
+ * Update a money rule
3078
+ */
3079
+ updateMoneyRule(loyaltyUniqueId: string, ruleUniqueId: string, data: UpdateMoneyRuleRequest): Observable<MoneyRule>;
3080
+ /**
3081
+ * Delete a money rule
3082
+ */
3083
+ deleteMoneyRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<void>;
3084
+ /**
3085
+ * List product rules for a loyalty program
3086
+ */
3087
+ listProductRules(loyaltyUniqueId: string): Observable<ProductRule[]>;
3088
+ /**
3089
+ * Get a product rule by unique ID
3090
+ */
3091
+ getProductRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<ProductRule>;
3092
+ /**
3093
+ * Create a new product rule
3094
+ */
3095
+ createProductRule(loyaltyUniqueId: string, data: CreateProductRuleRequest): Observable<ProductRule>;
3096
+ /**
3097
+ * Update a product rule
3098
+ */
3099
+ updateProductRule(loyaltyUniqueId: string, ruleUniqueId: string, data: UpdateProductRuleRequest): Observable<ProductRule>;
3100
+ /**
3101
+ * Delete a product rule
3102
+ */
3103
+ deleteProductRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<void>;
3104
+ /**
3105
+ * List event rules for a loyalty program
3106
+ */
3107
+ listEventRules(loyaltyUniqueId: string): Observable<EventRule[]>;
3108
+ /**
3109
+ * Get an event rule by unique ID
3110
+ */
3111
+ getEventRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<EventRule>;
3112
+ /**
3113
+ * Create a new event rule
3114
+ */
3115
+ createEventRule(loyaltyUniqueId: string, data: CreateEventRuleRequest): Observable<EventRule>;
3116
+ /**
3117
+ * Update an event rule
3118
+ */
3119
+ updateEventRule(loyaltyUniqueId: string, ruleUniqueId: string, data: UpdateEventRuleRequest): Observable<EventRule>;
3120
+ /**
3121
+ * Delete an event rule
3122
+ */
3123
+ deleteEventRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<void>;
3124
+ /**
3125
+ * Access the underlying block for advanced operations
3126
+ * Use this when you need access to services not wrapped by this Angular service
3127
+ */
3128
+ get rewardsBlock(): RewardsBlock;
3129
+ static ɵfac: i0.ɵɵFactoryDeclaration<RewardsService, [{ optional: true; }, { optional: true; }, null]>;
3130
+ static ɵprov: i0.ɵɵInjectableDeclaration<RewardsService>;
3131
+ }
3132
+
3133
+ /**
3134
+ * Angular service wrapping the Sales block.
3135
+ * Converts Promise-based APIs to RxJS Observables.
3136
+ *
3137
+ * @example
3138
+ * ```typescript
3139
+ * @Component({...})
3140
+ * export class CheckoutComponent {
3141
+ * constructor(private sales: SalesService) {}
3142
+ *
3143
+ * createOrder(items: any[]) {
3144
+ * this.sales.createOrder({ userUniqueId: '123', items }).subscribe({
3145
+ * next: (order) => console.log('Order created:', order),
3146
+ * error: (err) => console.error('Failed:', err),
3147
+ * });
3148
+ * }
3149
+ * }
3150
+ * ```
3151
+ */
3152
+ declare class SalesService {
3153
+ private readonly block;
3154
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: SalesBlockConfig);
3155
+ /**
3156
+ * Ensure the service is configured, throw helpful error if not
3157
+ */
3158
+ private ensureConfigured;
3159
+ listOrders(params?: ListOrdersParams): Observable<PageResult<Order>>;
3160
+ getOrder(uniqueId: string): Observable<Order>;
3161
+ createOrder(data: CreateOrderRequest): Observable<Order>;
3162
+ updateOrder(uniqueId: string, data: UpdateOrderRequest): Observable<Order>;
3163
+ cancelOrder(uniqueId: string): Observable<Order>;
3164
+ confirmOrder(uniqueId: string): Observable<Order>;
3165
+ shipOrder(uniqueId: string, trackingNumber?: string): Observable<Order>;
3166
+ deliverOrder(uniqueId: string): Observable<Order>;
3167
+ listOrdersByUser(userUniqueId: string, params?: ListOrdersParams): Observable<PageResult<Order>>;
3168
+ listOrderDetails(): Observable<OrderDetail[]>;
3169
+ getOrderDetail(uniqueId: string): Observable<OrderDetail>;
3170
+ updateOrderDetail(uniqueId: string, data: UpdateOrderDetailRequest): Observable<OrderDetail>;
3171
+ listOrderDetailsByOrder(orderUniqueId: string): Observable<OrderDetail[]>;
3172
+ listPayments(params?: ListPaymentsParams): Observable<PageResult<Payment>>;
3173
+ getPayment(uniqueId: string): Observable<Payment>;
3174
+ createPayment(data: CreatePaymentRequest): Observable<Payment>;
3175
+ refundPayment(uniqueId: string, amount?: number): Observable<Payment>;
3176
+ listPaymentsByOrder(orderUniqueId: string): Observable<Payment[]>;
3177
+ listSubscriptions(params?: ListSubscriptionsParams$1): Observable<PageResult<Subscription$1>>;
3178
+ getSubscription(uniqueId: string): Observable<Subscription$1>;
3179
+ createSubscription(data: CreateSubscriptionRequest$1): Observable<Subscription$1>;
3180
+ updateSubscription(uniqueId: string, data: UpdateSubscriptionRequest$1): Observable<Subscription$1>;
3181
+ cancelSubscription(uniqueId: string): Observable<Subscription$1>;
3182
+ pauseSubscription(uniqueId: string): Observable<Subscription$1>;
3183
+ resumeSubscription(uniqueId: string): Observable<Subscription$1>;
3184
+ listSubscriptionsByUser(userUniqueId: string, params?: ListSubscriptionsParams$1): Observable<PageResult<Subscription$1>>;
3185
+ listOrderTaxes(orderUniqueId: string): Observable<OrderTax[]>;
3186
+ getOrderTax(orderUniqueId: string, uniqueId: string): Observable<OrderTax>;
3187
+ createOrderTax(orderUniqueId: string, data: CreateOrderTaxRequest): Observable<OrderTax>;
3188
+ updateOrderTax(orderUniqueId: string, uniqueId: string, data: UpdateOrderTaxRequest): Observable<OrderTax>;
3189
+ deleteOrderTax(orderUniqueId: string, uniqueId: string): Observable<void>;
3190
+ listSubscriptionModels(params?: ListSubscriptionModelsParams): Observable<PageResult<SubscriptionModel$1>>;
3191
+ getSubscriptionModel(uniqueId: string): Observable<SubscriptionModel$1>;
3192
+ createSubscriptionModel(data: CreateSubscriptionModelRequest): Observable<SubscriptionModel$1>;
3193
+ updateSubscriptionModel(uniqueId: string, data: UpdateSubscriptionModelRequest): Observable<SubscriptionModel$1>;
3194
+ listSalesEntities(params?: ListSalesEntitiesParams): Observable<PageResult<SalesEntity>>;
3195
+ getSalesEntity(uniqueId: string): Observable<SalesEntity>;
3196
+ registerSalesEntity(uniqueId: string, data?: RegisterSalesEntityRequest): Observable<SalesEntity>;
3197
+ updateSalesEntity(uniqueId: string, data: UpdateSalesEntityRequest): Observable<SalesEntity>;
3198
+ createEntitySubscription(uniqueId: string, data: CreateEntitySubscriptionRequest): Observable<EntitySubscription>;
3199
+ updateEntitySubscription(uniqueId: string, subscriptionUniqueId: string, data: UpdateEntitySubscriptionRequest): Observable<EntitySubscription>;
3200
+ listSalesUsers(params?: ListSalesUsersParams): Observable<PageResult<SalesUser>>;
3201
+ getSalesUser(uniqueId: string): Observable<SalesUser>;
3202
+ registerSalesUser(uniqueId: string, data?: RegisterSalesUserRequest): Observable<SalesUser>;
3203
+ updateSalesUser(uniqueId: string, data: UpdateSalesUserRequest): Observable<SalesUser>;
3204
+ createSalesUserSubscription(uniqueId: string, data: CreateUserSubscriptionRequest): Observable<UserSubscription$1>;
3205
+ updateSalesUserSubscription(uniqueId: string, subscriptionUniqueId: string, data: UpdateUserSubscriptionRequest): Observable<UserSubscription$1>;
3206
+ listSalesCustomers(params?: ListSalesCustomersParams): Observable<PageResult<SalesCustomer>>;
3207
+ getSalesCustomer(uniqueId: string): Observable<SalesCustomer>;
3208
+ createSalesCustomer(data: CreateSalesCustomerRequest): Observable<SalesCustomer>;
3209
+ updateSalesCustomer(uniqueId: string, data: UpdateSalesCustomerRequest): Observable<SalesCustomer>;
3210
+ listFlexibleOrders(params?: ListFlexibleOrdersParams): Observable<PageResult<FlexibleOrder>>;
3211
+ getFlexibleOrder(uniqueId: string): Observable<FlexibleOrder>;
3212
+ createFlexibleOrder(data: CreateFlexibleOrderRequest): Observable<FlexibleOrder>;
3213
+ updateFlexibleOrder(uniqueId: string, data: UpdateFlexibleOrderRequest): Observable<FlexibleOrder>;
3214
+ listVendorPayments(params?: ListVendorPaymentsParams): Observable<PageResult<VendorPayment>>;
3215
+ getVendorPayment(uniqueId: string): Observable<VendorPayment>;
3216
+ createVendorPayment(data: CreateVendorPaymentRequest): Observable<VendorPayment>;
3217
+ updateVendorPayment(uniqueId: string, data: UpdateVendorPaymentRequest): Observable<VendorPayment>;
3218
+ /**
3219
+ * Create a Stripe customer
3220
+ */
3221
+ createStripeCustomer(data: CreateStripeCustomerRequest): Observable<CreateStripeCustomerResponse>;
3222
+ /**
3223
+ * Create a Stripe checkout session
3224
+ */
3225
+ createStripeCheckoutSession(data: CreateStripeCheckoutSessionRequest): Observable<StripeCheckoutSession>;
3226
+ /**
3227
+ * Create a Stripe payment intent
3228
+ */
3229
+ createStripePaymentIntent(data: CreateStripePaymentIntentRequest): Observable<StripePaymentIntent>;
3230
+ /**
3231
+ * Create a Stripe customer portal session
3232
+ */
3233
+ createStripeCustomerPortal(uniqueId: string, data: CreateStripeCustomerPortalRequest): Observable<StripeCustomerPortalSession>;
3234
+ /**
3235
+ * List Stripe subscriptions
3236
+ */
3237
+ listStripeSubscriptions(params?: ListStripeSubscriptionsParams): Observable<PageResult<StripeSubscription>>;
3238
+ /**
3239
+ * Create a Stripe subscription
3240
+ */
3241
+ createStripeSubscription(data: CreateStripeSubscriptionRequest): Observable<StripeSubscription>;
3242
+ /**
3243
+ * Update a Stripe subscription
3244
+ */
3245
+ updateStripeSubscription(stripeSubscriptionId: string, data: UpdateStripeSubscriptionRequest): Observable<StripeSubscription>;
3246
+ /**
3247
+ * Cancel a Stripe subscription
3248
+ */
3249
+ cancelStripeSubscription(stripeSubscriptionId: string): Observable<void>;
3250
+ /**
3251
+ * List Stripe webhooks
3252
+ */
3253
+ listStripeWebhooks(): Observable<StripeWebhook[]>;
3254
+ /**
3255
+ * Create a Stripe webhook
3256
+ */
3257
+ createStripeWebhook(data: CreateStripeWebhookRequest): Observable<StripeWebhook>;
3258
+ /**
3259
+ * List available MercadoPago payment methods
3260
+ */
3261
+ listMercadoPagoPaymentMethods(): Observable<MercadoPagoPaymentMethod[]>;
3262
+ /**
3263
+ * Create a MercadoPago payment intent
3264
+ */
3265
+ createMercadoPagoPaymentIntent(data: CreateMercadoPagoPaymentRequest): Observable<MercadoPagoPaymentIntent>;
3266
+ /**
3267
+ * Create a MercadoPago PSE payment intent (Colombia bank transfer)
3268
+ */
3269
+ createMercadoPagoPSEIntent(data: CreateMercadoPagoPSERequest): Observable<MercadoPagoPaymentIntent>;
3270
+ /**
3271
+ * Access the underlying block for advanced operations
3272
+ * Use this when you need access to services not wrapped by this Angular service
3273
+ */
3274
+ get salesBlock(): SalesBlock;
3275
+ static ɵfac: i0.ɵɵFactoryDeclaration<SalesService, [{ optional: true; }, { optional: true; }, null]>;
3276
+ static ɵprov: i0.ɵɵInjectableDeclaration<SalesService>;
3277
+ }
3278
+
3279
+ /**
3280
+ * Angular service wrapping the Wallet block.
3281
+ * Converts Promise-based APIs to RxJS Observables.
3282
+ *
3283
+ * @example
3284
+ * ```typescript
3285
+ * @Component({...})
3286
+ * export class WalletComponent {
3287
+ * constructor(private wallet: WalletService) {}
3288
+ *
3289
+ * createWallet(userUniqueId: string) {
3290
+ * this.wallet.createWallet({ userUniqueId }).subscribe({
3291
+ * next: (wallet) => console.log('Created:', wallet),
3292
+ * error: (err) => console.error('Failed:', err),
3293
+ * });
3294
+ * }
3295
+ * }
3296
+ * ```
3297
+ */
3298
+ declare class WalletService {
3299
+ private readonly block;
3300
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: WalletBlockConfig);
3301
+ /**
3302
+ * Ensure the service is configured, throw helpful error if not
3303
+ */
3304
+ private ensureConfigured;
3305
+ listWallets(params?: ListWalletsParams): Observable<PageResult<Wallet>>;
3306
+ getWallet(uniqueId: string): Observable<Wallet>;
3307
+ getWalletByUser(userUniqueId: string): Observable<Wallet>;
3308
+ createWallet(data: CreateWalletRequest): Observable<Wallet>;
3309
+ updateWallet(uniqueId: string, data: UpdateWalletRequest): Observable<Wallet>;
3310
+ creditWallet(uniqueId: string, data: CreditWalletRequest): Observable<Transaction>;
3311
+ debitWallet(uniqueId: string, data: DebitWalletRequest): Observable<Transaction>;
3312
+ getWalletBalance(uniqueId: string): Observable<{
3313
+ balance: number;
3314
+ currency: string;
3315
+ }>;
3316
+ getUserWallet(userUniqueId: string, walletCode: string): Observable<Wallet>;
3317
+ validateWallet(data: ValidateWalletRequest): Observable<ValidateWalletResponse>;
3318
+ transferWallet(userUniqueId: string, walletCode: string, data: TransferWalletRequest): Observable<Transaction>;
3319
+ getWalletContent(userUniqueId: string, walletCode: string): Observable<WalletContent[]>;
3320
+ storeWalletContent(userUniqueId: string, walletCode: string, data: StoreWalletContentRequest): Observable<WalletContent>;
3321
+ listWalletTransactions(userUniqueId: string, walletCode: string): Observable<PageResult<Transaction>>;
3322
+ listTransactions(params?: ListTransactionsParams$1): Observable<PageResult<Transaction>>;
3323
+ getTransaction(uniqueId: string): Observable<Transaction>;
3324
+ listTransactionsByWallet(walletUniqueId: string, params?: ListTransactionsParams$1): Observable<PageResult<Transaction>>;
3325
+ listTransactionsByReference(referenceType: string, referenceUniqueId: string, params?: ListTransactionsParams$1): Observable<PageResult<Transaction>>;
3326
+ listAuthorizationCodes(params?: ListAuthorizationCodesParams): Observable<PageResult<AuthorizationCode>>;
3327
+ getAuthorizationCode(uniqueId: string): Observable<AuthorizationCode>;
3328
+ createAuthorizationCode(data: CreateAuthorizationCodeRequest): Observable<AuthorizationCode>;
3329
+ validateAuthorizationCode(data: ValidateAuthorizationCodeRequest): Observable<{
3330
+ valid: boolean;
3331
+ authorizationCode?: AuthorizationCode;
3332
+ }>;
3333
+ useAuthorizationCode(data: UseAuthorizationCodeRequest): Observable<Transaction>;
3334
+ invalidateAuthorizationCode(uniqueId: string): Observable<AuthorizationCode>;
3335
+ /**
3336
+ * Process an incoming transaction webhook from an external payment provider.
3337
+ * This endpoint is used to record transactions initiated by external systems.
3338
+ */
3339
+ processTransactionWebhook(companyUrlId: string, walletCode: string, data: TransactionWebhookRequest): Observable<TransactionWebhookResponse>;
3340
+ /**
3341
+ * Access the underlying block for advanced operations
3342
+ * Use this when you need access to services not wrapped by this Angular service
3343
+ */
3344
+ get walletBlock(): WalletBlock;
3345
+ static ɵfac: i0.ɵɵFactoryDeclaration<WalletService, [{ optional: true; }, { optional: true; }, null]>;
3346
+ static ɵprov: i0.ɵɵInjectableDeclaration<WalletService>;
3347
+ }
3348
+
3349
+ /**
3350
+ * Angular service wrapping the Jarvis block.
3351
+ * Converts Promise-based APIs to RxJS Observables.
3352
+ *
3353
+ * @example
3354
+ * ```typescript
3355
+ * @Component({...})
3356
+ * export class ChatComponent {
3357
+ * constructor(private jarvis: JarvisService) {}
3358
+ *
3359
+ * sendMessage(agentId: string, message: string) {
3360
+ * this.jarvis.chat(agentId, { message }).subscribe({
3361
+ * next: (response) => console.log('Response:', response.response),
3362
+ * error: (err) => console.error('Failed:', err),
3363
+ * });
3364
+ * }
3365
+ * }
3366
+ * ```
3367
+ */
3368
+ declare class JarvisService {
3369
+ private readonly block;
3370
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: JarvisBlockConfig);
3371
+ /**
3372
+ * Ensure the service is configured, throw helpful error if not
3373
+ */
3374
+ private ensureConfigured;
3375
+ listAgents(params?: ListAgentsParams): Observable<PageResult<Agent>>;
3376
+ getAgent(uniqueId: string): Observable<Agent>;
3377
+ createAgent(data: CreateAgentRequest): Observable<Agent>;
3378
+ updateAgent(uniqueId: string, data: UpdateAgentRequest): Observable<Agent>;
3379
+ deleteAgent(uniqueId: string): Observable<void>;
3380
+ chat(uniqueId: string, data: ChatRequest): Observable<ChatResponse>;
3381
+ complete(uniqueId: string, data: CompleteRequest): Observable<CompleteResponse>;
3382
+ listPrompts(params?: ListPromptsParams): Observable<PageResult<Prompt>>;
3383
+ getPrompt(uniqueId: string): Observable<Prompt>;
3384
+ createPrompt(data: CreatePromptRequest): Observable<Prompt>;
3385
+ updatePrompt(uniqueId: string, data: UpdatePromptRequest): Observable<Prompt>;
3386
+ deletePrompt(uniqueId: string): Observable<void>;
3387
+ executePrompt(uniqueId: string, data: ExecutePromptRequest): Observable<ExecutePromptResponse>;
3388
+ testPrompt(data: TestPromptRequest): Observable<TestPromptResponse>;
3389
+ renderPrompt(uniqueId: string, data: RenderPromptRequest): Observable<RenderPromptResponse>;
3390
+ listWorkflows(params?: ListWorkflowsParams): Observable<PageResult<Workflow>>;
3391
+ getWorkflow(uniqueId: string): Observable<Workflow>;
3392
+ createWorkflow(data: CreateWorkflowRequest): Observable<Workflow>;
3393
+ updateWorkflow(uniqueId: string, data: UpdateWorkflowRequest): Observable<Workflow>;
3394
+ deleteWorkflow(uniqueId: string): Observable<void>;
3395
+ runWorkflow(uniqueId: string, data: RunWorkflowRequest): Observable<RunWorkflowResponse>;
3396
+ pauseWorkflow(uniqueId: string): Observable<Workflow>;
3397
+ resumeWorkflow(uniqueId: string): Observable<Workflow>;
3398
+ listExecutions(params?: ListExecutionsParams): Observable<PageResult<Execution>>;
3399
+ getExecution(uniqueId: string): Observable<Execution>;
3400
+ listExecutionsByAgent(agentUniqueId: string, params?: ListExecutionsParams): Observable<PageResult<Execution>>;
3401
+ listExecutionsByPrompt(promptUniqueId: string, params?: ListExecutionsParams): Observable<PageResult<Execution>>;
3402
+ cancelExecution(uniqueId: string): Observable<Execution>;
3403
+ listConversations(params?: ListConversationsParams): Observable<PageResult<Conversation$1>>;
3404
+ getConversation(uniqueId: string): Observable<Conversation$1>;
3405
+ createConversation(data: CreateConversationRequest): Observable<Conversation$1>;
3406
+ sendMessage(uniqueId: string, data: SendMessageRequest): Observable<SendMessageResponse>;
3407
+ listConversationsByUser(userUniqueId: string, params?: ListConversationsParams): Observable<PageResult<Conversation$1>>;
3408
+ clearConversation(uniqueId: string): Observable<Conversation$1>;
3409
+ listAIModels(params?: ListAIModelsParams): Observable<PageResult<AIModel>>;
3410
+ getAIModel(uniqueId: string): Observable<AIModel>;
3411
+ createAIModel(data: CreateAIModelRequest): Observable<AIModel>;
3412
+ updateAIModel(uniqueId: string, data: UpdateAIModelRequest): Observable<AIModel>;
3413
+ deleteAIModel(uniqueId: string): Observable<void>;
3414
+ listEntities(params?: ListEntitiesParams$1): Observable<PageResult<Entity>>;
3415
+ getEntity(uniqueId: string): Observable<Entity>;
3416
+ registerEntity(uniqueId: string, data?: RegisterEntityRequest$1): Observable<Entity>;
3417
+ updateEntity(uniqueId: string, data: UpdateEntityRequest$1): Observable<Entity>;
3418
+ deleteEntity(uniqueId: string): Observable<void>;
3419
+ addEntityPrompt(uniqueId: string, promptUniqueId: string): Observable<void>;
3420
+ getEntityContext(uniqueId: string, contextUniqueId: string): Observable<EntityContext>;
3421
+ createEntityContext(uniqueId: string, data?: CreateEntityContextRequest): Observable<EntityContext>;
3422
+ getEntityConversation(uniqueId: string, contextUniqueId: string): Observable<EntityContext>;
3423
+ sendEntityMessage(uniqueId: string, contextUniqueId: string, data: SendEntityMessageRequest): Observable<SendEntityMessageResponse>;
3424
+ queryEntityFile(uniqueId: string, fileUniqueId: string, data: QueryEntityFileRequest): Observable<QueryEntityFileResponse>;
3425
+ listClusters(userUniqueId: string, params?: ListClustersParams): Observable<PageResult<Cluster>>;
3426
+ getCluster(userUniqueId: string, uniqueId: string): Observable<Cluster>;
3427
+ createCluster(userUniqueId: string, data: CreateClusterRequest): Observable<Cluster>;
3428
+ updateCluster(userUniqueId: string, uniqueId: string, data: UpdateClusterRequest): Observable<Cluster>;
3429
+ deleteCluster(userUniqueId: string, uniqueId: string): Observable<void>;
3430
+ addClusterMember(userUniqueId: string, uniqueId: string, entityUniqueId: string): Observable<void>;
3431
+ removeClusterMember(userUniqueId: string, uniqueId: string, entityUniqueId: string): Observable<void>;
3432
+ addClusterPrompt(userUniqueId: string, uniqueId: string, promptUniqueId: string): Observable<void>;
3433
+ getClusterContext(userUniqueId: string, uniqueId: string, contextUniqueId: string): Observable<ClusterContext>;
3434
+ createClusterContext(userUniqueId: string, uniqueId: string, data?: CreateClusterContextRequest): Observable<ClusterContext>;
3435
+ getClusterConversation(userUniqueId: string, uniqueId: string, contextUniqueId: string): Observable<ClusterContext>;
3436
+ sendClusterMessage(userUniqueId: string, uniqueId: string, contextUniqueId: string, data: SendClusterMessageRequest): Observable<SendClusterMessageResponse>;
3437
+ listJarvisUsers(params?: ListJarvisUsersParams): Observable<PageResult<JarvisUser>>;
3438
+ getJarvisUser(uniqueId: string): Observable<JarvisUser>;
3439
+ registerJarvisUser(uniqueId: string, data?: RegisterJarvisUserRequest): Observable<JarvisUser>;
3440
+ updateJarvisUser(uniqueId: string, data: UpdateJarvisUserRequest): Observable<JarvisUser>;
3441
+ addJarvisUserPrompt(uniqueId: string, promptUniqueId: string): Observable<void>;
3442
+ getJarvisUserContext(uniqueId: string, contextUniqueId: string): Observable<UserContext>;
3443
+ createJarvisUserContext(uniqueId: string, data?: CreateUserContextRequest): Observable<UserContext>;
3444
+ getJarvisUserConversation(uniqueId: string, contextUniqueId: string): Observable<UserContext>;
3445
+ sendJarvisUserMessage(uniqueId: string, contextUniqueId: string, data: SendUserMessageRequest): Observable<SendUserMessageResponse>;
3446
+ getJarvisUserContentContext(uniqueId: string, contentIdentityUniqueId: string, contextUniqueId: string): Observable<UserContext>;
3447
+ createJarvisUserContentContext(uniqueId: string, contentIdentityUniqueId: string, data?: CreateUserContentContextRequest): Observable<UserContext>;
3448
+ getJarvisUserContentConversation(uniqueId: string, contentIdentityUniqueId: string, contextUniqueId: string): Observable<UserContext>;
3449
+ sendJarvisUserContentMessage(uniqueId: string, contentIdentityUniqueId: string, contextUniqueId: string, data: SendUserMessageRequest): Observable<SendUserMessageResponse>;
3450
+ listWorkflowParticipants(workflowUniqueId: string, params?: ListWorkflowParticipantsParams): Observable<PageResult<WorkflowParticipant>>;
3451
+ getWorkflowParticipant(workflowUniqueId: string, uniqueId: string): Observable<WorkflowParticipant>;
3452
+ addWorkflowParticipant(workflowUniqueId: string, data: AddWorkflowParticipantRequest): Observable<WorkflowParticipant>;
3453
+ updateWorkflowParticipant(workflowUniqueId: string, uniqueId: string, data: UpdateWorkflowParticipantRequest): Observable<WorkflowParticipant>;
3454
+ removeWorkflowParticipant(workflowUniqueId: string, uniqueId: string): Observable<void>;
3455
+ getWorkflowStep(workflowUniqueId: string, stepUniqueId: string): Observable<WorkflowStep>;
3456
+ addWorkflowStep(workflowUniqueId: string, data: AddWorkflowStepRequest): Observable<WorkflowStep>;
3457
+ updateWorkflowStep(workflowUniqueId: string, stepUniqueId: string, data: UpdateWorkflowStepRequest): Observable<WorkflowStep>;
3458
+ removeWorkflowStep(workflowUniqueId: string, stepUniqueId: string): Observable<void>;
3459
+ addStepPrompt(stepUniqueId: string, data: AddStepPromptRequest): Observable<void>;
3460
+ addStepAgent(stepUniqueId: string, data: AddStepAgentRequest): Observable<void>;
3461
+ startWorkflowInstance(workflowUniqueId: string, data?: StartWorkflowRequest): Observable<StartWorkflowResponse>;
3462
+ getWorkflowInstance(workflowUniqueId: string, instanceUniqueId: string): Observable<WorkflowInstance>;
3463
+ getWorkflowInstanceDetails(workflowUniqueId: string, instanceUniqueId: string): Observable<WorkflowInstanceDetails>;
3464
+ stepWorkflowInstance(workflowUniqueId: string, instanceUniqueId: string, data?: StepWorkflowRequest): Observable<WorkflowInstance>;
3465
+ logWorkflowStep(workflowUniqueId: string, instanceUniqueId: string, data: LogWorkflowStepRequest): Observable<WorkflowInstance>;
3466
+ suspendWorkflowInstance(workflowUniqueId: string, instanceUniqueId: string): Observable<WorkflowInstance>;
3467
+ resumeWorkflowInstance(workflowUniqueId: string, instanceUniqueId: string): Observable<WorkflowInstance>;
3468
+ getAgentContext(agentUniqueId: string, contextUniqueId: string): Observable<AgentContext>;
3469
+ createAgentContext(agentUniqueId: string, data?: CreateAgentContextRequest): Observable<AgentContext>;
3470
+ getAgentConversation(agentUniqueId: string, contextUniqueId: string): Observable<{
3471
+ messages: AgentMessage[];
3472
+ }>;
3473
+ getAgentThread(agentUniqueId: string, threadId: string): Observable<AgentThread>;
3474
+ createAgentThread(agentUniqueId: string, data?: CreateAgentThreadRequest): Observable<AgentThread>;
3475
+ sendAgentThreadMessage(agentUniqueId: string, threadId: string, data: SendAgentThreadMessageRequest): Observable<SendAgentThreadMessageResponse>;
3476
+ sendAgentThreadMessageStream(agentUniqueId: string, threadId: string, data: SendAgentThreadMessageRequest): Observable<ReadableStream<string>>;
3477
+ runAgentThread(agentUniqueId: string, threadId: string, data?: RunAgentThreadRequest): Observable<RunAgentThreadResponse>;
3478
+ getAgentRun(agentUniqueId: string, threadId: string, runId: string): Observable<AgentRun>;
3479
+ getAgentMessages(agentUniqueId: string, threadId: string): Observable<AgentMessage[]>;
3480
+ listAgentExecutions(agentUniqueId: string, params?: ListAgentRunExecutionsParams): Observable<PageResult<AgentRunExecution>>;
3481
+ getAgentExecution(agentUniqueId: string, executionUniqueId: string): Observable<AgentRunExecution>;
3482
+ listMailTemplates(params?: ListMailTemplatesParams$1): Observable<PageResult<MailTemplate$2>>;
3483
+ getMailTemplate(uniqueId: string): Observable<MailTemplate$2>;
3484
+ createMailTemplate(data: CreateMailTemplateRequest$1): Observable<MailTemplate$2>;
3485
+ updateMailTemplate(uniqueId: string, data: UpdateMailTemplateRequest$1): Observable<MailTemplate$2>;
3486
+ createMandrillTemplate(uniqueId: string, data?: CreateMandrillTemplateRequest$1): Observable<MailTemplate$2>;
3487
+ updateMandrillTemplate(uniqueId: string, data?: UpdateMandrillTemplateRequest$1): Observable<MailTemplate$2>;
3488
+ publishMandrill(uniqueId: string): Observable<MailTemplate$2>;
3489
+ getMandrillStats(uniqueId: string): Observable<MandrillStats>;
3490
+ marvinChat(data: MarvinChatRequest): Observable<MarvinChatResponse>;
3491
+ marvinChatV2(data: MarvinChatRequest): Observable<MarvinChatResponse>;
3492
+ marvinChatV3(data: MarvinChatRequest): Observable<MarvinChatResponse>;
3493
+ getMarvinContext(uniqueId: string): Observable<MarvinContext>;
3494
+ createMarvinContext(data?: CreateMarvinContextRequest): Observable<MarvinContext>;
3495
+ sendMarvinMessage(contextUniqueId: string, data: SendMarvinMessageRequest): Observable<SendMarvinMessageResponse>;
3496
+ listPromptComments(promptUniqueId: string, params?: ListPromptCommentsParams): Observable<PageResult<PromptComment>>;
3497
+ getPromptComment(promptUniqueId: string, uniqueId: string): Observable<PromptComment>;
3498
+ createPromptComment(promptUniqueId: string, data: CreatePromptCommentRequest): Observable<PromptComment>;
3499
+ updatePromptComment(promptUniqueId: string, uniqueId: string, data: UpdatePromptCommentRequest): Observable<PromptComment>;
3500
+ deletePromptComment(promptUniqueId: string, uniqueId: string): Observable<void>;
3501
+ likePromptComment(promptUniqueId: string, uniqueId: string): Observable<void>;
3502
+ dislikePromptComment(promptUniqueId: string, uniqueId: string): Observable<void>;
3503
+ replyToPromptComment(promptUniqueId: string, uniqueId: string, data: ReplyToCommentRequest): Observable<PromptComment>;
3504
+ followPromptComment(promptUniqueId: string, uniqueId: string): Observable<void>;
3505
+ unfollowPromptComment(promptUniqueId: string, uniqueId: string): Observable<void>;
3506
+ savePromptComment(promptUniqueId: string, uniqueId: string): Observable<void>;
3507
+ unsavePromptComment(promptUniqueId: string, uniqueId: string): Observable<void>;
3508
+ listExecutionComments(promptUniqueId: string, executionUniqueId: string, params?: ListExecutionCommentsParams): Observable<PageResult<ExecutionComment>>;
3509
+ getExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Observable<ExecutionComment>;
3510
+ createExecutionComment(promptUniqueId: string, executionUniqueId: string, data: CreateExecutionCommentRequest): Observable<ExecutionComment>;
3511
+ updateExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string, data: UpdateExecutionCommentRequest): Observable<ExecutionComment>;
3512
+ deleteExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Observable<void>;
3513
+ likeExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Observable<void>;
3514
+ dislikeExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Observable<void>;
3515
+ replyToExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string, data: ReplyToCommentRequest): Observable<ExecutionComment>;
3516
+ followExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Observable<void>;
3517
+ unfollowExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Observable<void>;
3518
+ saveExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Observable<void>;
3519
+ unsaveExecutionComment(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Observable<void>;
3520
+ /**
3521
+ * Access the underlying block for advanced operations
3522
+ * Use this when you need access to services not wrapped by this Angular service
3523
+ */
3524
+ get jarvisBlock(): JarvisBlock;
3525
+ static ɵfac: i0.ɵɵFactoryDeclaration<JarvisService, [{ optional: true; }, { optional: true; }, null]>;
3526
+ static ɵprov: i0.ɵɵInjectableDeclaration<JarvisService>;
3527
+ }
3528
+
3529
+ /**
3530
+ * Angular service wrapping the Onboarding block.
3531
+ * Converts Promise-based APIs to RxJS Observables.
3532
+ *
3533
+ * @example
3534
+ * ```typescript
3535
+ * @Component({...})
3536
+ * export class OnboardingComponent {
3537
+ * constructor(private onboarding: OnboardingService) {}
3538
+ *
3539
+ * createOnboarding() {
3540
+ * this.onboarding.createOnboarding({
3541
+ * code: 'user-onboarding',
3542
+ * name: 'User Onboarding',
3543
+ * steps: []
3544
+ * }).subscribe({
3545
+ * next: (onboarding) => console.log('Created:', onboarding),
3546
+ * error: (err) => console.error('Failed:', err),
3547
+ * });
3548
+ * }
3549
+ * }
3550
+ * ```
3551
+ */
3552
+ declare class OnboardingService {
3553
+ private readonly block;
3554
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: OnboardingBlockConfig);
3555
+ /**
3556
+ * Ensure the service is configured, throw helpful error if not
3557
+ */
3558
+ private ensureConfigured;
3559
+ listOnboardings(params?: ListOnboardingsParams): Observable<PageResult<Onboarding>>;
3560
+ getOnboarding(uniqueId: string): Observable<Onboarding>;
3561
+ createOnboarding(request: CreateOnboardingRequest): Observable<Onboarding>;
3562
+ updateOnboarding(uniqueId: string, request: UpdateOnboardingRequest): Observable<Onboarding>;
3563
+ deleteOnboarding(uniqueId: string): Observable<void>;
3564
+ addOnboardingStep(uniqueId: string, data: AddStepRequest): Observable<OnboardingStep>;
3565
+ updateOnboardingStep(uniqueId: string, stepUniqueId: string, data: UpdateStepRequest): Observable<OnboardingStep>;
3566
+ deleteOnboardingStep(uniqueId: string, stepUniqueId: string): Observable<void>;
3567
+ stepUser(uniqueId: string, userUniqueId: string, stepData?: Record<string, unknown>): Observable<Onboarding>;
3568
+ listFlows(params?: ListFlowsParams): Observable<PageResult<Flow>>;
3569
+ getFlow(uniqueId: string): Observable<Flow>;
3570
+ createFlow(request: CreateFlowRequest): Observable<Flow>;
3571
+ updateFlow(uniqueId: string, request: UpdateFlowRequest): Observable<Flow>;
3572
+ deleteFlow(uniqueId: string): Observable<void>;
3573
+ listFlowsByOnboarding(onboardingUniqueId: string): Observable<Flow[]>;
3574
+ getFlowBySource(uniqueId: string, sourceUniqueId: string): Observable<Flow>;
3575
+ stepFlowBySource(uniqueId: string, sourceUniqueId: string, stepData?: Record<string, unknown>): Observable<Flow>;
3576
+ listUserJourneys(params?: ListUserJourneysParams): Observable<PageResult<UserJourney>>;
3577
+ getUserJourney(uniqueId: string): Observable<UserJourney>;
3578
+ startJourney(request: StartJourneyRequest): Observable<UserJourney>;
3579
+ completeStep(uniqueId: string, request: CompleteStepRequest): Observable<UserJourney>;
3580
+ abandonJourney(uniqueId: string): Observable<UserJourney>;
3581
+ getJourneysByUser(userUniqueId: string): Observable<UserJourney[]>;
3582
+ getJourneyProgress(uniqueId: string): Observable<{
3583
+ progress: number;
3584
+ currentStep?: number;
3585
+ completedSteps?: number[];
3586
+ }>;
3587
+ listJourneyByUserAndOnboarding(userUniqueId: string, onboardingUniqueId: string): Observable<UserJourney>;
3588
+ reportJourneyList(params: UserJourneyReportParams): Observable<UserJourneyReportList>;
3589
+ reportJourneySummary(params: UserJourneyReportParams): Observable<UserJourneyReportSummary>;
3590
+ listUserIdentities(params?: ListUserIdentitiesParams): Observable<PageResult<UserIdentity>>;
3591
+ getUserIdentity(uniqueId: string): Observable<UserIdentity>;
3592
+ createUserIdentity(request: CreateUserIdentityRequest): Observable<UserIdentity>;
3593
+ verifyUserIdentity(uniqueId: string, request: VerifyUserIdentityRequest): Observable<UserIdentity>;
3594
+ deleteUserIdentity(uniqueId: string): Observable<void>;
3595
+ listIdentitiesByUser(userUniqueId: string): Observable<UserIdentity[]>;
3596
+ startOnboard(uniqueId: string, data?: StartOnboardRequest): Observable<OnboardJourney>;
3597
+ getOnboard(uniqueId: string): Observable<OnboardJourney>;
3598
+ getOnboardDetails(uniqueId: string): Observable<OnboardJourneyDetails>;
3599
+ stepOnboard(uniqueId: string, data: StepOnboardRequest): Observable<OnboardJourney>;
3600
+ logOnboard(uniqueId: string, data: LogOnboardRequest): Observable<OnboardJourney>;
3601
+ suspendOnboard(uniqueId: string): Observable<OnboardJourney>;
3602
+ resumeOnboard(uniqueId: string): Observable<OnboardJourney>;
3603
+ listMailTemplates(params?: ListMailTemplatesParams$2): Observable<PageResult<MailTemplate$3>>;
3604
+ getMailTemplate(uniqueId: string): Observable<MailTemplate$3>;
3605
+ createMailTemplate(data: CreateMailTemplateRequest$2): Observable<MailTemplate$3>;
3606
+ updateMailTemplate(uniqueId: string, data: UpdateMailTemplateRequest$2): Observable<MailTemplate$3>;
3607
+ getMandrillStats(uniqueId: string): Observable<MandrillTemplateStats$1>;
3608
+ createMandrillTemplate(uniqueId: string, data: CreateMandrillTemplateRequest$2): Observable<MailTemplate$3>;
3609
+ updateMandrillTemplate(uniqueId: string, data: UpdateMandrillTemplateRequest$2): Observable<MailTemplate$3>;
3610
+ publishMandrill(uniqueId: string): Observable<MailTemplate$3>;
3611
+ listAbandonedJourneys(params?: ListAbandonedJourneysParams): Observable<PageResult<AbandonedJourney>>;
3612
+ /**
3613
+ * Access the underlying block for advanced operations
3614
+ * Use this when you need access to services not wrapped by this Angular service
3615
+ */
3616
+ get onboardingBlock(): OnboardingBlock;
3617
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnboardingService, [{ optional: true; }, { optional: true; }, null]>;
3618
+ static ɵprov: i0.ɵɵInjectableDeclaration<OnboardingService>;
3619
+ }
3620
+
3621
+ /**
3622
+ * Angular service wrapping the University block.
3623
+ * Converts Promise-based APIs to RxJS Observables.
3624
+ *
3625
+ * @example
3626
+ * ```typescript
3627
+ * @Component({...})
3628
+ * export class CourseListComponent {
3629
+ * constructor(private university: UniversityService) {}
3630
+ *
3631
+ * loadCourses() {
3632
+ * this.university.listCourses({ page: 1, perPage: 10 }).subscribe({
3633
+ * next: (result) => console.log('Courses:', result.data),
3634
+ * error: (err) => console.error('Failed:', err),
3635
+ * });
3636
+ * }
3637
+ * }
3638
+ * ```
3639
+ */
3640
+ declare class UniversityService {
3641
+ private readonly block;
3642
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: UniversityBlockConfig);
3643
+ /**
3644
+ * Ensure the service is configured, throw helpful error if not
3645
+ */
3646
+ private ensureConfigured;
3647
+ listCourses(params?: ListCoursesParams): Observable<PageResult<Course>>;
3648
+ getCourse(uniqueId: string): Observable<Course>;
3649
+ createCourse(data: CreateCourseRequest): Observable<Course>;
3650
+ updateCourse(uniqueId: string, data: UpdateCourseRequest): Observable<Course>;
3651
+ deleteCourse(uniqueId: string): Observable<void>;
3652
+ publishCourse(uniqueId: string): Observable<Course>;
3653
+ unpublishCourse(uniqueId: string): Observable<Course>;
3654
+ listCoursesByInstructor(instructorUniqueId: string, params?: ListCoursesParams): Observable<PageResult<Course>>;
3655
+ listCoursesByCategory(categoryUniqueId: string, params?: ListCoursesParams): Observable<PageResult<Course>>;
3656
+ listLessons(params?: ListLessonsParams): Observable<PageResult<Lesson>>;
3657
+ getLesson(uniqueId: string): Observable<Lesson>;
3658
+ createLesson(data: CreateLessonRequest): Observable<Lesson>;
3659
+ updateLesson(uniqueId: string, data: UpdateLessonRequest): Observable<Lesson>;
3660
+ deleteLesson(uniqueId: string): Observable<void>;
3661
+ reorderLessons(courseUniqueId: string, data: ReorderLessonsRequest): Observable<Lesson[]>;
3662
+ listLessonsByCourse(courseUniqueId: string, params?: ListLessonsParams): Observable<PageResult<Lesson>>;
3663
+ listEnrollments(params?: ListEnrollmentsParams): Observable<PageResult<Enrollment>>;
3664
+ getEnrollment(uniqueId: string): Observable<Enrollment>;
3665
+ enroll(data: EnrollRequest): Observable<Enrollment>;
3666
+ updateEnrollmentProgress(uniqueId: string, data: UpdateEnrollmentProgressRequest): Observable<Enrollment>;
3667
+ completeEnrollment(uniqueId: string): Observable<Enrollment>;
3668
+ dropEnrollment(uniqueId: string): Observable<Enrollment>;
3669
+ listEnrollmentsByCourse(courseUniqueId: string, params?: ListEnrollmentsParams): Observable<PageResult<Enrollment>>;
3670
+ listEnrollmentsByUser(userUniqueId: string, params?: ListEnrollmentsParams): Observable<PageResult<Enrollment>>;
3671
+ getCertificate(uniqueId: string): Observable<{
3672
+ certificateUrl: string;
3673
+ }>;
3674
+ listAssignments(params?: ListAssignmentsParams): Observable<PageResult<Assignment>>;
3675
+ getAssignment(uniqueId: string): Observable<Assignment>;
3676
+ createAssignment(data: CreateAssignmentRequest): Observable<Assignment>;
3677
+ updateAssignment(uniqueId: string, data: UpdateAssignmentRequest): Observable<Assignment>;
3678
+ deleteAssignment(uniqueId: string): Observable<void>;
3679
+ listAssignmentsByLesson(lessonUniqueId: string, params?: ListAssignmentsParams): Observable<PageResult<Assignment>>;
3680
+ listSubmissions(params?: ListSubmissionsParams): Observable<PageResult<Submission>>;
3681
+ getSubmission(uniqueId: string): Observable<Submission>;
3682
+ submitAssignment(data: SubmitAssignmentRequest): Observable<Submission>;
3683
+ gradeSubmission(uniqueId: string, data: GradeSubmissionRequest): Observable<Submission>;
3684
+ listSubmissionsByAssignment(assignmentUniqueId: string, params?: ListSubmissionsParams): Observable<PageResult<Submission>>;
3685
+ listSubmissionsByUser(userUniqueId: string, params?: ListSubmissionsParams): Observable<PageResult<Submission>>;
3686
+ listSubjects(params?: ListSubjectsParams): Observable<PageResult<Subject>>;
3687
+ getSubject(uniqueId: string): Observable<Subject>;
3688
+ createSubject(data: CreateSubjectRequest): Observable<Subject>;
3689
+ updateSubject(uniqueId: string, data: UpdateSubjectRequest): Observable<Subject>;
3690
+ getSubjectResources(uniqueId: string): Observable<unknown[]>;
3691
+ getSubjectTeacherResources(uniqueId: string, teacherUniqueId: string): Observable<unknown[]>;
3692
+ getSubjectTests(uniqueId: string): Observable<unknown[]>;
3693
+ addSubjectLesson(uniqueId: string, lessonData: {
3694
+ name: string;
3695
+ description?: string;
3696
+ }): Observable<unknown>;
3697
+ addSubjectResource(uniqueId: string, resourceData: unknown): Observable<unknown>;
3698
+ updateSubjectResource(uniqueId: string, resourceUniqueId: string, resourceData: unknown): Observable<unknown>;
3699
+ deleteSubjectResource(uniqueId: string, resourceUniqueId: string): Observable<void>;
3700
+ listTeachers(params?: ListTeachersParams): Observable<PageResult<Teacher>>;
3701
+ listArchivedTeachers(params?: ListTeachersParams): Observable<PageResult<Teacher>>;
3702
+ getTeacher(uniqueId: string): Observable<Teacher>;
3703
+ getTeacherCourses(uniqueId: string): Observable<Course[]>;
3704
+ getTeacherGroups(uniqueId: string): Observable<CourseGroup[]>;
3705
+ getTeacherAvailability(uniqueId: string): Observable<TeacherAvailability[]>;
3706
+ addTeacherAvailability(uniqueId: string, data: CreateAvailabilityRequest): Observable<TeacherAvailability>;
3707
+ updateTeacherAvailability(uniqueId: string, availabilityUniqueId: string, data: UpdateAvailabilityRequest): Observable<TeacherAvailability>;
3708
+ deleteTeacherAvailability(uniqueId: string, availabilityUniqueId: string): Observable<void>;
3709
+ deleteAllTeacherAvailability(uniqueId: string): Observable<void>;
3710
+ getTeacherContentTree(uniqueId: string, courseGroupUniqueId: string): Observable<unknown>;
3711
+ getTeacherStudentContentTree(uniqueId: string, userUniqueId: string, courseGroupUniqueId: string): Observable<unknown>;
3712
+ promoteStudent(teacherUniqueId: string, userUniqueId: string): Observable<unknown>;
3713
+ listStudents(params?: ListStudentsParams): Observable<PageResult<Student>>;
3714
+ listArchivedStudents(params?: ListStudentsParams): Observable<PageResult<Student>>;
3715
+ getStudent(uniqueId: string): Observable<Student>;
3716
+ registerStudent(uniqueId: string, data: RegisterStudentRequest): Observable<Student>;
3717
+ updateStudent(uniqueId: string, data: UpdateStudentRequest): Observable<Student>;
3718
+ archiveStudent(uniqueId: string): Observable<void>;
3719
+ restoreStudent(uniqueId: string): Observable<Student>;
3720
+ getStudentCourses(uniqueId: string): Observable<Course[]>;
3721
+ getStudentAvailableCourses(uniqueId: string): Observable<Course[]>;
3722
+ getStudentGroups(uniqueId: string): Observable<CourseGroup[]>;
3723
+ getStudentContentTree(uniqueId: string, courseGroupUniqueId: string): Observable<unknown>;
3724
+ getStudentAvailability(uniqueId: string): Observable<StudentAvailability[]>;
3725
+ addStudentAvailability(uniqueId: string, data: {
3726
+ dayOfWeek: number;
3727
+ startTime: string;
3728
+ endTime: string;
3729
+ timezone?: string;
3730
+ }): Observable<StudentAvailability>;
3731
+ updateStudentAvailability(uniqueId: string, availabilityUniqueId: string, data: {
3732
+ dayOfWeek?: number;
3733
+ startTime?: string;
3734
+ endTime?: string;
3735
+ timezone?: string;
3736
+ }): Observable<StudentAvailability>;
3737
+ updateStudentAvailabilitySlots(uniqueId: string, slots: {
3738
+ dayOfWeek: number;
3739
+ startTime: string;
3740
+ endTime: string;
3741
+ }[]): Observable<StudentAvailability[]>;
3742
+ deleteStudentAvailability(uniqueId: string, availabilityUniqueId: string): Observable<void>;
3743
+ deleteAllStudentAvailability(uniqueId: string): Observable<void>;
3744
+ getCourseGroup(uniqueId: string): Observable<CourseGroup>;
3745
+ createCourseGroup(data: CreateCourseGroupRequest): Observable<CourseGroup>;
3746
+ addStudentToCourseGroup(uniqueId: string, studentUniqueId: string): Observable<CourseGroup>;
3747
+ addTeacherToCourseGroup(uniqueId: string, teacherUniqueId: string): Observable<CourseGroup>;
3748
+ getCourseGroupTests(uniqueId: string): Observable<unknown[]>;
3749
+ getCourseGroupTestResponses(uniqueId: string, testUniqueId: string): Observable<unknown[]>;
3750
+ listCoachingSessions(params?: ListCoachingSessionsParams): Observable<PageResult<CoachingSession>>;
3751
+ createCoachingSession(data: CreateCoachingSessionRequest): Observable<CoachingSession>;
3752
+ updateCoachingSession(uniqueId: string, data: UpdateCoachingSessionRequest): Observable<CoachingSession>;
3753
+ deleteCoachingSession(uniqueId: string): Observable<void>;
3754
+ getCoachingSessionsByStudent(studentUniqueId: string): Observable<CoachingSession[]>;
3755
+ getCoachingSessionsByTeacher(teacherUniqueId: string): Observable<CoachingSession[]>;
3756
+ studentConfirmCoachingSession(uniqueId: string): Observable<CoachingSession>;
3757
+ studentCheckInCoachingSession(uniqueId: string): Observable<CoachingSession>;
3758
+ studentCheckOutCoachingSession(uniqueId: string): Observable<CoachingSession>;
3759
+ addStudentNotesToCoachingSession(uniqueId: string, notes: string): Observable<CoachingSession>;
3760
+ teacherConfirmCoachingSession(uniqueId: string): Observable<CoachingSession>;
3761
+ teacherCheckInCoachingSession(uniqueId: string): Observable<CoachingSession>;
3762
+ teacherCheckOutCoachingSession(uniqueId: string): Observable<CoachingSession>;
3763
+ addAdminNotesToCoachingSession(uniqueId: string, notes: string): Observable<CoachingSession>;
3764
+ listContentTests(params?: ListContentTestsParams): Observable<PageResult<ContentTest>>;
3765
+ getContentTest(uniqueId: string): Observable<ContentTest>;
3766
+ createContentTest(data: CreateContentTestRequest): Observable<ContentTest>;
3767
+ updateContentTest(uniqueId: string, data: UpdateContentTestRequest): Observable<ContentTest>;
3768
+ getContentTestResults(uniqueId: string): Observable<unknown[]>;
3769
+ getContentTestSolution(uniqueId: string): Observable<unknown>;
3770
+ createTestQuestion(uniqueId: string, data: CreateQuestionRequest): Observable<TestQuestion>;
3771
+ updateTestQuestion(uniqueId: string, questionUniqueId: string, data: Partial<CreateQuestionRequest>): Observable<TestQuestion>;
3772
+ getTestQuestion(uniqueId: string, questionId: string): Observable<TestQuestion>;
3773
+ listTestOptions(): Observable<TestOption[]>;
3774
+ createTestOption(data: CreateOptionRequest): Observable<TestOption>;
3775
+ updateTestOption(uniqueId: string, optionUniqueId: string, data: Partial<CreateOptionRequest>): Observable<TestOption>;
3776
+ addOptionToQuestion(uniqueId: string, questionId: string, optionId: string): Observable<TestQuestion>;
3777
+ listRegistrationTokens(params?: ListRegistrationTokensParams): Observable<PageResult<RegistrationToken>>;
3778
+ getRegistrationToken(uniqueId: string): Observable<RegistrationToken>;
3779
+ createRegistrationToken(data: CreateRegistrationTokenRequest): Observable<RegistrationToken>;
3780
+ updateRegistrationToken(uniqueId: string, data: UpdateRegistrationTokenRequest): Observable<RegistrationToken>;
3781
+ deleteRegistrationToken(uniqueId: string): Observable<void>;
3782
+ validateRegistrationToken(tokenCode: string): Observable<TokenValidationResult>;
3783
+ useRegistrationToken(tokenCode: string, userUniqueId: string): Observable<{
3784
+ success: boolean;
3785
+ enrollmentUniqueId?: string;
3786
+ error?: string;
3787
+ }>;
3788
+ revokeRegistrationToken(uniqueId: string): Observable<RegistrationToken>;
3789
+ generateRegistrationTokenBatch(request: CreateRegistrationTokenRequest & {
3790
+ count: number;
3791
+ }): Observable<RegistrationToken[]>;
3792
+ getPlacement(uniqueId: string): Observable<PlacementTest>;
3793
+ listPlacementsByCourse(courseUniqueId: string, params?: ListPlacementsParams): Observable<PageResult<PlacementTest>>;
3794
+ createPlacement(courseUniqueId: string, data: CreatePlacementRequest): Observable<PlacementTest>;
3795
+ getPlacementSection(placementUniqueId: string, sectionId: string): Observable<PlacementSection>;
3796
+ createPlacementSection(placementUniqueId: string, data: CreatePlacementSectionRequest): Observable<PlacementSection>;
3797
+ getPlacementQuestion(placementUniqueId: string, questionId: string): Observable<PlacementQuestion>;
3798
+ createPlacementQuestion(placementUniqueId: string, data: CreatePlacementQuestionRequest): Observable<PlacementQuestion>;
3799
+ addQuestionToPlacementSection(placementUniqueId: string, sectionId: string, questionId: string): Observable<void>;
3800
+ listPlacementOptions(): Observable<PlacementOption[]>;
3801
+ createPlacementOption(data: CreatePlacementOptionRequest): Observable<PlacementOption>;
3802
+ addOptionToPlacementQuestion(placementUniqueId: string, questionId: string, optionId: string): Observable<void>;
3803
+ setPlacementRightOption(placementUniqueId: string, questionId: string, optionId: string): Observable<void>;
3804
+ removePlacementOption(placementUniqueId: string, questionId: string, optionId: string): Observable<void>;
3805
+ createPlacementRule(placementUniqueId: string, data: CreatePlacementRuleRequest): Observable<PlacementRule>;
3806
+ getUserPlacement(userUniqueId: string): Observable<PlacementInstance | null>;
3807
+ startPlacement(userUniqueId: string, placementUniqueId: string): Observable<PlacementInstance>;
3808
+ submitPlacementResponse(userUniqueId: string, instanceUniqueId: string, responses: PlacementResponse[]): Observable<PlacementInstance>;
3809
+ finishPlacement(userUniqueId: string, instanceUniqueId: string): Observable<PlacementInstance>;
3810
+ getCalendarStudentAvailability(userUniqueId: string): Observable<Availability[]>;
3811
+ addCalendarStudentAvailability(userUniqueId: string, data: CreateAvailabilityRequest): Observable<Availability>;
3812
+ updateCalendarStudentAvailability(userUniqueId: string, availabilityUniqueId: string, data: UpdateAvailabilityRequest): Observable<Availability>;
3813
+ updateCalendarStudentAvailabilities(userUniqueId: string, data: BulkUpdateAvailabilityRequest): Observable<Availability[]>;
3814
+ deleteCalendarStudentAvailability(userUniqueId: string, availabilityUniqueId: string): Observable<void>;
3815
+ deleteAllCalendarStudentAvailability(userUniqueId: string): Observable<void>;
3816
+ getCalendarTeacherAvailability(teacherUniqueId: string): Observable<Availability[]>;
3817
+ addCalendarTeacherAvailability(teacherUniqueId: string, data: CreateAvailabilityRequest): Observable<Availability>;
3818
+ updateCalendarTeacherAvailability(teacherUniqueId: string, availabilityUniqueId: string, data: UpdateAvailabilityRequest): Observable<Availability>;
3819
+ deleteCalendarTeacherAvailability(teacherUniqueId: string, availabilityUniqueId: string): Observable<void>;
3820
+ deleteAllCalendarTeacherAvailability(teacherUniqueId: string): Observable<void>;
3821
+ listCalendarEvents(params?: ListCalendarEventsParams): Observable<PageResult<CalendarEvent>>;
3822
+ getCalendarEvent(uniqueId: string): Observable<CalendarEvent>;
3823
+ createCalendarEvent(data: CreateCalendarEventRequest): Observable<CalendarEvent>;
3824
+ updateCalendarEvent(uniqueId: string, data: UpdateCalendarEventRequest): Observable<CalendarEvent>;
3825
+ deleteCalendarEvent(uniqueId: string): Observable<void>;
3826
+ createMatch(data: CreateMatchRequest): Observable<Match>;
3827
+ activateMatch(uniqueId: string): Observable<Match>;
3828
+ deactivateMatch(uniqueId: string): Observable<Match>;
3829
+ deleteMatch(uniqueId: string): Observable<void>;
3830
+ getActiveMatchByStudent(studentUniqueId: string): Observable<Match | null>;
3831
+ getAllMatchesByStudent(studentUniqueId: string): Observable<Match[]>;
3832
+ getAvailableMatchesByStudent(studentUniqueId: string): Observable<Match[]>;
3833
+ getActiveMatchByTeacher(teacherUniqueId: string): Observable<Match | null>;
3834
+ getAllMatchesByTeacher(teacherUniqueId: string): Observable<Match[]>;
3835
+ getAvailableMatchesByTeacher(teacherUniqueId: string): Observable<Match[]>;
3836
+ findCoaches(studentUniqueId: string, request?: FindCoachesRequest): Observable<AvailableCoach[]>;
3837
+ findCoachees(teacherUniqueId: string, request?: FindCoacheesRequest): Observable<AvailableCoachee[]>;
3838
+ evaluateMatches(request: EvaluateMatchesRequest): Observable<MatchEvaluation[]>;
3839
+ evaluateAvailabilities(request: EvaluateAvailabilitiesRequest): Observable<MatchEvaluation[]>;
3840
+ listAttendance(params?: ListAttendanceParams): Observable<PageResult<Attendance>>;
3841
+ getAttendance(uniqueId: string): Observable<Attendance>;
3842
+ createAttendance(data: CreateAttendanceRequest): Observable<Attendance>;
3843
+ updateAttendance(uniqueId: string, data: UpdateAttendanceRequest): Observable<Attendance>;
3844
+ deleteAttendance(uniqueId: string): Observable<void>;
3845
+ bulkCreateAttendance(data: BulkAttendanceRequest): Observable<Attendance[]>;
3846
+ listAttendanceByLesson(lessonUniqueId: string, params?: ListAttendanceParams): Observable<PageResult<Attendance>>;
3847
+ listAttendanceByStudent(studentUniqueId: string, params?: ListAttendanceParams): Observable<PageResult<Attendance>>;
3848
+ listAttendanceByCourse(courseUniqueId: string, params?: ListAttendanceParams): Observable<PageResult<Attendance>>;
3849
+ getStudentAttendanceStats(studentUniqueId: string, courseUniqueId?: string): Observable<AttendanceStats>;
3850
+ verifyAttendance(uniqueId: string): Observable<Attendance>;
3851
+ listNotes(params?: ListNotesParams): Observable<PageResult<Note>>;
3852
+ getNote(uniqueId: string): Observable<Note>;
3853
+ createNote(data: CreateNoteRequest): Observable<Note>;
3854
+ updateNote(uniqueId: string, data: UpdateNoteRequest): Observable<Note>;
3855
+ deleteNote(uniqueId: string): Observable<void>;
3856
+ listNotesByAuthor(authorUniqueId: string, params?: ListNotesParams): Observable<PageResult<Note>>;
3857
+ listNotesByTarget(targetUniqueId: string, targetType: string, params?: ListNotesParams): Observable<PageResult<Note>>;
3858
+ listNotesByCourse(courseUniqueId: string, params?: ListNotesParams): Observable<PageResult<Note>>;
3859
+ listNotesByLesson(lessonUniqueId: string, params?: ListNotesParams): Observable<PageResult<Note>>;
3860
+ pinNote(uniqueId: string): Observable<Note>;
3861
+ unpinNote(uniqueId: string): Observable<Note>;
3862
+ getNoteReplies(uniqueId: string): Observable<Note[]>;
3863
+ /**
3864
+ * Access the underlying block for advanced operations
3865
+ * Use this when you need access to services not wrapped by this Angular service
3866
+ */
3867
+ get universityBlock(): UniversityBlock;
3868
+ static ɵfac: i0.ɵɵFactoryDeclaration<UniversityService, [{ optional: true; }, { optional: true; }, null]>;
3869
+ static ɵprov: i0.ɵɵInjectableDeclaration<UniversityService>;
3870
+ }
3871
+
3872
+ export { ASSETS_CONFIG, ASSETS_TRANSPORT, AUTHENTICATION_CONFIG, AUTHENTICATION_TRANSPORT, AssetsService, AuthenticationService, CAMPAIGNS_CONFIG, CAMPAIGNS_TRANSPORT, COMPANY_CONFIG, COMPANY_TRANSPORT, CONTENT_CONFIG, CONTENT_TRANSPORT, CONVERSATIONS_CONFIG, CONVERSATIONS_TRANSPORT, CRM_CONFIG, CRM_TRANSPORT, CampaignsService, CompanyService, ContentService, ConversationsService, CrmService, FILES_CONFIG, FILES_TRANSPORT, FORMS_CONFIG, FORMS_TRANSPORT, FilesService, FormsService, GEOLOCATION_CONFIG, GEOLOCATION_TRANSPORT, GeolocationService, JARVIS_CONFIG, JARVIS_TRANSPORT, JarvisService, ONBOARDING_CONFIG, ONBOARDING_TRANSPORT, OnboardingService, PRODUCTS_CONFIG, PRODUCTS_TRANSPORT, PROVIDER_CONFIG, ProductsService, REWARDS_CONFIG, REWARDS_TRANSPORT, RewardsService, SALES_CONFIG, SALES_TRANSPORT, SEARCH_CONFIG, SEARCH_TRANSPORT, SIMPLE_CONFIG, SalesService, SearchService, TOKEN_MANAGER, TRANSPORT, UNIVERSITY_CONFIG, UNIVERSITY_TRANSPORT, UniversityService, WALLET_CONFIG, WALLET_TRANSPORT, WalletService, get23BlocksProviders, getBlocks23Providers, provide23Blocks, provideBlocks23 };
3873
+ export type { AuthMode, Provide23BlocksConfig, ProviderConfig, ServiceUrls, Simple23BlocksConfig, StorageType, TokenManagerService };
3874
+ //# sourceMappingURL=index.d.ts.map