@23blocks/angular 6.5.17 → 6.5.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,24 +1,42 @@
1
1
  import * as i0 from '@angular/core';
2
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';
3
+ import { Transport } from '@23blocks/contracts';
4
+ import * as _23blocks_block_authentication from '@23blocks/block-authentication';
5
+ import { AuthenticationBlockConfig, SignInRequest, SignInResponse, SignUpRequest, SignUpResponse, RefreshTokenRequest, RefreshTokenResponse, MagicLinkVerifyRequest, AcceptInvitationRequest, OAuthSocialLoginRequest, TenantLoginRequest, AuthenticationBlock } from '@23blocks/block-authentication';
6
+ import * as _23blocks_block_search from '@23blocks/block-search';
7
+ import { SearchBlockConfig, SearchBlock } from '@23blocks/block-search';
8
+ import * as _23blocks_block_geolocation from '@23blocks/block-geolocation';
9
+ import { GeolocationBlockConfig, GeolocationBlock } from '@23blocks/block-geolocation';
10
+ import * as _23blocks_block_content from '@23blocks/block-content';
11
+ import { ContentBlockConfig, ContentBlock } from '@23blocks/block-content';
12
+ import * as _23blocks_block_crm from '@23blocks/block-crm';
13
+ import { CrmBlockConfig, CrmBlock } from '@23blocks/block-crm';
14
+ import * as _23blocks_block_products from '@23blocks/block-products';
15
+ import { ProductsBlockConfig, ProductsBlock } from '@23blocks/block-products';
16
+ import * as _23blocks_block_conversations from '@23blocks/block-conversations';
17
+ import { ConversationsBlockConfig, ConversationsBlock } from '@23blocks/block-conversations';
18
+ import * as _23blocks_block_files from '@23blocks/block-files';
19
+ import { FilesBlockConfig, FilesBlock } from '@23blocks/block-files';
20
+ import * as _23blocks_block_assets from '@23blocks/block-assets';
21
+ import { AssetsBlockConfig, AssetsBlock } from '@23blocks/block-assets';
22
+ import * as _23blocks_block_forms from '@23blocks/block-forms';
23
+ import { FormsBlockConfig, FormsBlock } from '@23blocks/block-forms';
24
+ import * as _23blocks_block_sales from '@23blocks/block-sales';
25
+ import { SalesBlockConfig, SalesBlock } from '@23blocks/block-sales';
26
+ import * as _23blocks_block_campaigns from '@23blocks/block-campaigns';
27
+ import { CampaignsBlockConfig, CampaignsBlock } from '@23blocks/block-campaigns';
28
+ import * as _23blocks_block_company from '@23blocks/block-company';
29
+ import { CompanyBlockConfig, CompanyBlock } from '@23blocks/block-company';
30
+ import * as _23blocks_block_rewards from '@23blocks/block-rewards';
31
+ import { RewardsBlockConfig, RewardsBlock } from '@23blocks/block-rewards';
32
+ import * as _23blocks_block_jarvis from '@23blocks/block-jarvis';
33
+ import { JarvisBlockConfig, JarvisBlock } from '@23blocks/block-jarvis';
34
+ import * as _23blocks_block_onboarding from '@23blocks/block-onboarding';
35
+ import { OnboardingBlockConfig, OnboardingBlock } from '@23blocks/block-onboarding';
36
+ import * as _23blocks_block_university from '@23blocks/block-university';
37
+ import { UniversityBlockConfig, UniversityBlock } from '@23blocks/block-university';
38
+ import * as _23blocks_block_wallet from '@23blocks/block-wallet';
39
+ import { WalletBlockConfig, WalletBlock } from '@23blocks/block-wallet';
22
40
  import { Observable } from 'rxjs';
23
41
 
24
42
  /**
@@ -228,41 +246,41 @@ type Simple23BlocksConfig = ProviderConfig;
228
246
  */
229
247
  declare const TRANSPORT: InjectionToken<Transport>;
230
248
  /** Transport for Authentication service */
231
- declare const AUTHENTICATION_TRANSPORT: InjectionToken<Transport>;
249
+ declare const AUTHENTICATION_TRANSPORT: InjectionToken<Transport | null>;
232
250
  /** Transport for Search service */
233
- declare const SEARCH_TRANSPORT: InjectionToken<Transport>;
251
+ declare const SEARCH_TRANSPORT: InjectionToken<Transport | null>;
234
252
  /** Transport for Products service */
235
- declare const PRODUCTS_TRANSPORT: InjectionToken<Transport>;
253
+ declare const PRODUCTS_TRANSPORT: InjectionToken<Transport | null>;
236
254
  /** Transport for CRM service */
237
- declare const CRM_TRANSPORT: InjectionToken<Transport>;
255
+ declare const CRM_TRANSPORT: InjectionToken<Transport | null>;
238
256
  /** Transport for Content service */
239
- declare const CONTENT_TRANSPORT: InjectionToken<Transport>;
257
+ declare const CONTENT_TRANSPORT: InjectionToken<Transport | null>;
240
258
  /** Transport for Geolocation service */
241
- declare const GEOLOCATION_TRANSPORT: InjectionToken<Transport>;
259
+ declare const GEOLOCATION_TRANSPORT: InjectionToken<Transport | null>;
242
260
  /** Transport for Conversations service */
243
- declare const CONVERSATIONS_TRANSPORT: InjectionToken<Transport>;
261
+ declare const CONVERSATIONS_TRANSPORT: InjectionToken<Transport | null>;
244
262
  /** Transport for Files service */
245
- declare const FILES_TRANSPORT: InjectionToken<Transport>;
263
+ declare const FILES_TRANSPORT: InjectionToken<Transport | null>;
246
264
  /** Transport for Forms service */
247
- declare const FORMS_TRANSPORT: InjectionToken<Transport>;
265
+ declare const FORMS_TRANSPORT: InjectionToken<Transport | null>;
248
266
  /** Transport for Assets service */
249
- declare const ASSETS_TRANSPORT: InjectionToken<Transport>;
267
+ declare const ASSETS_TRANSPORT: InjectionToken<Transport | null>;
250
268
  /** Transport for Campaigns service */
251
- declare const CAMPAIGNS_TRANSPORT: InjectionToken<Transport>;
269
+ declare const CAMPAIGNS_TRANSPORT: InjectionToken<Transport | null>;
252
270
  /** Transport for Company service */
253
- declare const COMPANY_TRANSPORT: InjectionToken<Transport>;
271
+ declare const COMPANY_TRANSPORT: InjectionToken<Transport | null>;
254
272
  /** Transport for Rewards service */
255
- declare const REWARDS_TRANSPORT: InjectionToken<Transport>;
273
+ declare const REWARDS_TRANSPORT: InjectionToken<Transport | null>;
256
274
  /** Transport for Sales service */
257
- declare const SALES_TRANSPORT: InjectionToken<Transport>;
275
+ declare const SALES_TRANSPORT: InjectionToken<Transport | null>;
258
276
  /** Transport for Wallet service */
259
- declare const WALLET_TRANSPORT: InjectionToken<Transport>;
277
+ declare const WALLET_TRANSPORT: InjectionToken<Transport | null>;
260
278
  /** Transport for Jarvis service */
261
- declare const JARVIS_TRANSPORT: InjectionToken<Transport>;
279
+ declare const JARVIS_TRANSPORT: InjectionToken<Transport | null>;
262
280
  /** Transport for Onboarding service */
263
- declare const ONBOARDING_TRANSPORT: InjectionToken<Transport>;
281
+ declare const ONBOARDING_TRANSPORT: InjectionToken<Transport | null>;
264
282
  /** Transport for University service */
265
- declare const UNIVERSITY_TRANSPORT: InjectionToken<Transport>;
283
+ declare const UNIVERSITY_TRANSPORT: InjectionToken<Transport | null>;
266
284
  /**
267
285
  * Injection token for Authentication block configuration
268
286
  */
@@ -415,2066 +433,334 @@ declare function get23BlocksProviders(config: Provide23BlocksConfig): Provider[]
415
433
 
416
434
  /**
417
435
  * Angular service wrapping the Authentication block.
418
- * Converts Promise-based APIs to RxJS Observables.
419
436
  *
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.
437
+ * Auth-flow methods (signIn, signUp, signOut, OAuth, etc.) return Observables
438
+ * with automatic token management via `tap()`.
439
+ *
440
+ * All other sub-services are exposed as typed getters returning Promise-based APIs.
441
+ * Use `from()` to convert to Observables if needed.
2032
442
  *
2033
443
  * @example
2034
444
  * ```typescript
2035
- * @Component({...})
2036
- * export class ChatComponent {
2037
- * constructor(private conversations: ConversationsService) {}
445
+ * // Auth flows (Observable with token management):
446
+ * this.auth.signIn({ email, password }).subscribe(...)
2038
447
  *
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
- * }
448
+ * // Other services (Promise-based, wrap in from() if needed):
449
+ * const user = await this.auth.users.get(userId);
450
+ * from(this.auth.roles.list()).subscribe(...)
2046
451
  * ```
2047
452
  */
2048
- declare class ConversationsService {
453
+ declare class AuthenticationService {
2049
454
  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
- */
455
+ private readonly tokenManager;
456
+ private readonly simpleConfig;
457
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: AuthenticationBlockConfig, tokenManager: TokenManagerService | null, simpleConfig: Simple23BlocksConfig | null);
2054
458
  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>;
459
+ private get isTokenMode();
460
+ private storeTokens;
461
+ signIn(request: SignInRequest): Observable<SignInResponse>;
462
+ signUp(request: SignUpRequest): Observable<SignUpResponse>;
463
+ signOut(): Observable<void>;
464
+ refreshToken(request: RefreshTokenRequest): Observable<RefreshTokenResponse>;
465
+ verifyMagicLink(request: MagicLinkVerifyRequest): Observable<SignInResponse>;
466
+ acceptInvitation(request: AcceptInvitationRequest): Observable<SignInResponse>;
467
+ facebookLogin(request: OAuthSocialLoginRequest): Observable<SignInResponse>;
468
+ googleLogin(request: OAuthSocialLoginRequest): Observable<SignInResponse>;
469
+ tenantLogin(request: TenantLoginRequest): Observable<SignInResponse>;
470
+ getAccessToken(): string | null;
471
+ getRefreshToken(): string | null;
472
+ setTokens(accessToken: string, refreshToken?: string): void;
473
+ clearTokens(): void;
474
+ isAuthenticated(): boolean | null;
475
+ get auth(): _23blocks_block_authentication.AuthService;
476
+ get users(): _23blocks_block_authentication.UsersService;
477
+ get roles(): _23blocks_block_authentication.RolesService;
478
+ get permissions(): _23blocks_block_authentication.PermissionsService;
479
+ get apiKeys(): _23blocks_block_authentication.ApiKeysService;
480
+ get mfa(): _23blocks_block_authentication.MfaService;
481
+ get oauth(): _23blocks_block_authentication.OAuthService;
482
+ get avatars(): _23blocks_block_authentication.AvatarsService;
483
+ get tenants(): _23blocks_block_authentication.TenantsService;
484
+ get apps(): _23blocks_block_authentication.AppsService;
485
+ get blocks(): _23blocks_block_authentication.BlocksService;
486
+ get services(): _23blocks_block_authentication.ServicesRegistryService;
487
+ get subscriptionModels(): _23blocks_block_authentication.SubscriptionModelsService;
488
+ get userSubscriptions(): _23blocks_block_authentication.UserSubscriptionsService;
489
+ get companySubscriptions(): _23blocks_block_authentication.CompanySubscriptionsService;
490
+ get countries(): _23blocks_block_authentication.CountriesService;
491
+ get states(): _23blocks_block_authentication.StatesService;
492
+ get counties(): _23blocks_block_authentication.CountiesService;
493
+ get cities(): _23blocks_block_authentication.CitiesService;
494
+ get currencies(): _23blocks_block_authentication.CurrenciesService;
495
+ get guests(): _23blocks_block_authentication.GuestsService;
496
+ get magicLinks(): _23blocks_block_authentication.MagicLinksService;
497
+ get refreshTokens(): _23blocks_block_authentication.RefreshTokensService;
498
+ get userDevices(): _23blocks_block_authentication.UserDevicesService;
499
+ get tenantUsers(): _23blocks_block_authentication.TenantUsersService;
500
+ get mailTemplates(): _23blocks_block_authentication.MailTemplatesService;
501
+ get jwks(): _23blocks_block_authentication.JwksService;
502
+ get adminRsaKeys(): _23blocks_block_authentication.AdminRsaKeysService;
503
+ get oidc(): _23blocks_block_authentication.OidcService;
504
+ /** Full block access */
505
+ get authenticationBlock(): AuthenticationBlock;
506
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationService, [{ optional: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
507
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
2156
508
  }
2157
509
 
2158
510
  /**
2159
- * Angular service wrapping the Files block.
2160
- * Converts Promise-based APIs to RxJS Observables.
511
+ * Angular service wrapping the Search block.
512
+ *
513
+ * Exposes block sub-services directly via typed getters.
514
+ * All methods return Promises - use `from()` to convert to Observables if needed.
2161
515
  *
2162
516
  * @example
2163
517
  * ```typescript
2164
- * @Component({...})
2165
- * export class FileUploadComponent {
2166
- * constructor(private files: FilesService) {}
518
+ * // Promise-based (recommended for modern Angular):
519
+ * const result = await this.searchService.search.search(request);
2167
520
  *
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
- * }
521
+ * // Observable-based:
522
+ * from(this.searchService.search.search(request)).subscribe(...)
2180
523
  * ```
2181
524
  */
2182
- declare class FilesService {
525
+ declare class SearchService {
2183
526
  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
- */
527
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: SearchBlockConfig);
2188
528
  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
- */
529
+ get search(): _23blocks_block_search.SearchService;
530
+ get history(): _23blocks_block_search.SearchHistoryService;
531
+ get favorites(): _23blocks_block_search.FavoritesService;
532
+ get entities(): _23blocks_block_search.EntitiesService;
533
+ get identities(): _23blocks_block_search.IdentitiesService;
534
+ get jarvis(): _23blocks_block_search.JarvisSearchService;
535
+ /** Full block access */
536
+ get searchBlock(): SearchBlock;
537
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchService, [{ optional: true; }, { optional: true; }, null]>;
538
+ static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
539
+ }
540
+
541
+ /**
542
+ * Angular service wrapping the Products block.
543
+ *
544
+ * Exposes block sub-services directly via typed getters.
545
+ * All methods return Promises - use `from()` to convert to Observables if needed.
546
+ *
547
+ * @example
548
+ * ```typescript
549
+ * const products = await this.productsService.products.list();
550
+ * ```
551
+ */
552
+ declare class ProductsService {
553
+ private readonly block;
554
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: ProductsBlockConfig);
555
+ private ensureConfigured;
556
+ get products(): _23blocks_block_products.ProductsService;
557
+ get cart(): _23blocks_block_products.CartService;
558
+ get cartDetails(): _23blocks_block_products.CartDetailsService;
559
+ get categories(): _23blocks_block_products.CategoriesService;
560
+ get brands(): _23blocks_block_products.BrandsService;
561
+ get vendors(): _23blocks_block_products.VendorsService;
562
+ get warehouses(): _23blocks_block_products.WarehousesService;
563
+ get channels(): _23blocks_block_products.ChannelsService;
564
+ get collections(): _23blocks_block_products.CollectionsService;
565
+ get productSets(): _23blocks_block_products.ProductSetsService;
566
+ get shoppingLists(): _23blocks_block_products.ShoppingListsService;
567
+ get promotions(): _23blocks_block_products.ProductPromotionsService;
568
+ get prices(): _23blocks_block_products.ProductPricesService;
569
+ get filters(): _23blocks_block_products.ProductFiltersService;
570
+ get images(): _23blocks_block_products.ProductImagesService;
571
+ get variations(): _23blocks_block_products.ProductVariationsService;
572
+ get reviews(): _23blocks_block_products.ProductReviewsService;
573
+ get variationReviews(): _23blocks_block_products.ProductVariationReviewsService;
574
+ get stock(): _23blocks_block_products.StockService;
575
+ get suggestions(): _23blocks_block_products.ProductSuggestionsService;
576
+ get addons(): _23blocks_block_products.AddonsService;
577
+ get myCarts(): _23blocks_block_products.MyCartsService;
578
+ get remarketing(): _23blocks_block_products.RemarketingService;
579
+ get visitors(): _23blocks_block_products.VisitorsService;
580
+ get productVendors(): _23blocks_block_products.ProductVendorsService;
581
+ /** Full block access */
582
+ get productsBlock(): ProductsBlock;
583
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductsService, [{ optional: true; }, { optional: true; }, null]>;
584
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProductsService>;
585
+ }
586
+
587
+ /**
588
+ * Angular service wrapping the CRM block.
589
+ *
590
+ * Exposes block sub-services directly via typed getters.
591
+ * All methods return Promises - use `from()` to convert to Observables if needed.
592
+ *
593
+ * @example
594
+ * ```typescript
595
+ * const accounts = await this.crmService.accounts.list({ page: 1, perPage: 20 });
596
+ * ```
597
+ */
598
+ declare class CrmService {
599
+ private readonly block;
600
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: CrmBlockConfig);
601
+ private ensureConfigured;
602
+ get accounts(): _23blocks_block_crm.AccountsService;
603
+ get contacts(): _23blocks_block_crm.ContactsService;
604
+ get contactEvents(): _23blocks_block_crm.ContactEventsService;
605
+ get leads(): _23blocks_block_crm.LeadsService;
606
+ get leadFollows(): _23blocks_block_crm.LeadFollowsService;
607
+ get opportunities(): _23blocks_block_crm.OpportunitiesService;
608
+ get meetings(): _23blocks_block_crm.MeetingsService;
609
+ get meetingParticipants(): _23blocks_block_crm.MeetingParticipantsService;
610
+ get meetingBillings(): _23blocks_block_crm.MeetingBillingsService;
611
+ get quotes(): _23blocks_block_crm.QuotesService;
612
+ get subscribers(): _23blocks_block_crm.SubscribersService;
613
+ get referrals(): _23blocks_block_crm.ReferralsService;
614
+ get touches(): _23blocks_block_crm.TouchesService;
615
+ get categories(): _23blocks_block_crm.CategoriesService;
616
+ get calendarAccounts(): _23blocks_block_crm.CalendarAccountsService;
617
+ get busyBlocks(): _23blocks_block_crm.BusyBlocksService;
618
+ get icsTokens(): _23blocks_block_crm.IcsTokensService;
619
+ get zoomMeetings(): _23blocks_block_crm.ZoomMeetingsService;
620
+ get zoomHosts(): _23blocks_block_crm.ZoomHostsService;
621
+ get mailTemplates(): _23blocks_block_crm.CrmMailTemplatesService;
622
+ get communications(): _23blocks_block_crm.CommunicationsService;
623
+ get users(): _23blocks_block_crm.CrmUsersService;
624
+ get billingReports(): _23blocks_block_crm.BillingReportsService;
625
+ get calendarSync(): _23blocks_block_crm.CalendarSyncService;
626
+ /** Full block access */
627
+ get crmBlock(): CrmBlock;
628
+ static ɵfac: i0.ɵɵFactoryDeclaration<CrmService, [{ optional: true; }, { optional: true; }, null]>;
629
+ static ɵprov: i0.ɵɵInjectableDeclaration<CrmService>;
630
+ }
631
+
632
+ /**
633
+ * Angular service wrapping the Content block.
634
+ *
635
+ * Exposes block sub-services directly via typed getters.
636
+ * All methods return Promises - use `from()` to convert to Observables if needed.
637
+ *
638
+ * @example
639
+ * ```typescript
640
+ * const posts = await this.contentService.posts.list({ page: 1, perPage: 10 });
641
+ * ```
642
+ */
643
+ declare class ContentService {
644
+ private readonly block;
645
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: ContentBlockConfig);
646
+ private ensureConfigured;
647
+ get posts(): _23blocks_block_content.PostsService;
648
+ get postVersions(): _23blocks_block_content.PostVersionsService;
649
+ get postTemplates(): _23blocks_block_content.PostTemplatesService;
650
+ get comments(): _23blocks_block_content.CommentsService;
651
+ get categories(): _23blocks_block_content.CategoriesService;
652
+ get tags(): _23blocks_block_content.TagsService;
653
+ get users(): _23blocks_block_content.ContentUsersService;
654
+ get moderation(): _23blocks_block_content.ModerationService;
655
+ get activity(): _23blocks_block_content.ActivityService;
656
+ get series(): _23blocks_block_content.SeriesService;
657
+ /** Full block access */
658
+ get contentBlock(): ContentBlock;
659
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentService, [{ optional: true; }, { optional: true; }, null]>;
660
+ static ɵprov: i0.ɵɵInjectableDeclaration<ContentService>;
661
+ }
662
+
663
+ /**
664
+ * Angular service wrapping the Geolocation block.
665
+ *
666
+ * Exposes block sub-services directly via typed getters.
667
+ * All methods return Promises - use `from()` to convert to Observables if needed.
668
+ *
669
+ * @example
670
+ * ```typescript
671
+ * const locations = await this.geolocationService.locations.list();
672
+ * ```
673
+ */
674
+ declare class GeolocationService {
675
+ private readonly block;
676
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: GeolocationBlockConfig);
677
+ private ensureConfigured;
678
+ get locations(): _23blocks_block_geolocation.LocationsService;
679
+ get addresses(): _23blocks_block_geolocation.AddressesService;
680
+ get areas(): _23blocks_block_geolocation.AreasService;
681
+ get regions(): _23blocks_block_geolocation.RegionsService;
682
+ get routes(): _23blocks_block_geolocation.TravelRoutesService;
683
+ get bookings(): _23blocks_block_geolocation.PremiseBookingsService;
684
+ get premises(): _23blocks_block_geolocation.PremisesService;
685
+ get premiseEvents(): _23blocks_block_geolocation.PremiseEventsService;
686
+ get routeTracker(): _23blocks_block_geolocation.RouteTrackerService;
687
+ get locationHours(): _23blocks_block_geolocation.LocationHoursService;
688
+ get locationImages(): _23blocks_block_geolocation.LocationImagesService;
689
+ get locationSlots(): _23blocks_block_geolocation.LocationSlotsService;
690
+ get locationTaxes(): _23blocks_block_geolocation.LocationTaxesService;
691
+ get locationGroups(): _23blocks_block_geolocation.LocationGroupsService;
692
+ get identities(): _23blocks_block_geolocation.GeoIdentitiesService;
693
+ get locationIdentities(): _23blocks_block_geolocation.LocationIdentitiesService;
694
+ get geoCountries(): _23blocks_block_geolocation.GeoCountriesService;
695
+ get geoStates(): _23blocks_block_geolocation.GeoStatesService;
696
+ get geoCities(): _23blocks_block_geolocation.GeoCitiesService;
697
+ /** Full block access */
698
+ get geolocationBlock(): GeolocationBlock;
699
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationService, [{ optional: true; }, { optional: true; }, null]>;
700
+ static ɵprov: i0.ɵɵInjectableDeclaration<GeolocationService>;
701
+ }
702
+
703
+ /**
704
+ * Angular service wrapping the Conversations block.
705
+ *
706
+ * Exposes block sub-services directly via typed getters.
707
+ * All methods return Promises - use `from()` to convert to Observables if needed.
708
+ *
709
+ * @example
710
+ * ```typescript
711
+ * const message = await this.conversationsService.messages.create({ contextId, content });
712
+ * ```
713
+ */
714
+ declare class ConversationsService {
715
+ private readonly block;
716
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: ConversationsBlockConfig);
717
+ private ensureConfigured;
718
+ get messages(): _23blocks_block_conversations.MessagesService;
719
+ get draftMessages(): _23blocks_block_conversations.DraftMessagesService;
720
+ get groups(): _23blocks_block_conversations.GroupsService;
721
+ get groupInvites(): _23blocks_block_conversations.GroupInvitesService;
722
+ get notifications(): _23blocks_block_conversations.NotificationsService;
723
+ get conversations(): _23blocks_block_conversations.ConversationsService;
724
+ get websocketTokens(): _23blocks_block_conversations.WebSocketTokensService;
725
+ get contexts(): _23blocks_block_conversations.ContextsService;
726
+ get notificationSettings(): _23blocks_block_conversations.NotificationSettingsService;
727
+ get availabilities(): _23blocks_block_conversations.AvailabilitiesService;
728
+ get messageFiles(): _23blocks_block_conversations.MessageFilesService;
729
+ get sources(): _23blocks_block_conversations.SourcesService;
730
+ get users(): _23blocks_block_conversations.UsersService;
731
+ get meetings(): _23blocks_block_conversations.MeetingsService;
732
+ get webNotifications(): _23blocks_block_conversations.WebNotificationsService;
733
+ /** Full block access */
734
+ get conversationsBlock(): ConversationsBlock;
735
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConversationsService, [{ optional: true; }, { optional: true; }, null]>;
736
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConversationsService>;
737
+ }
738
+
739
+ /**
740
+ * Angular service wrapping the Files block.
741
+ *
742
+ * Exposes block sub-services directly via typed getters.
743
+ * All methods return Promises - use `from()` to convert to Observables if needed.
744
+ *
745
+ * @example
746
+ * ```typescript
747
+ * const files = await this.filesService.storageFiles.list();
748
+ * ```
749
+ */
750
+ declare class FilesService {
751
+ private readonly block;
752
+ constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: FilesBlockConfig);
753
+ private ensureConfigured;
754
+ get storageFiles(): _23blocks_block_files.StorageFilesService;
755
+ get entityFiles(): _23blocks_block_files.EntityFilesService;
756
+ get fileSchemas(): _23blocks_block_files.FileSchemasService;
757
+ get userFiles(): _23blocks_block_files.UserFilesService;
758
+ get fileCategories(): _23blocks_block_files.FileCategoriesService;
759
+ get fileTags(): _23blocks_block_files.FileTagsService;
760
+ get delegations(): _23blocks_block_files.DelegationsService;
761
+ get fileAccess(): _23blocks_block_files.FileAccessService;
762
+ get fileAccessRequests(): _23blocks_block_files.FileAccessRequestsService;
763
+ /** Full block access */
2478
764
  get filesBlock(): FilesBlock;
2479
765
  static ɵfac: i0.ɵɵFactoryDeclaration<FilesService, [{ optional: true; }, { optional: true; }, null]>;
2480
766
  static ɵprov: i0.ɵɵInjectableDeclaration<FilesService>;
@@ -2482,130 +768,33 @@ declare class FilesService {
2482
768
 
2483
769
  /**
2484
770
  * Angular service wrapping the Forms block.
2485
- * Converts Promise-based APIs to RxJS Observables.
771
+ *
772
+ * Exposes block sub-services directly via typed getters.
773
+ * All methods return Promises - use `from()` to convert to Observables if needed.
2486
774
  *
2487
775
  * @example
2488
776
  * ```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
- * }
777
+ * const forms = await this.formsService.forms.list();
2500
778
  * ```
2501
779
  */
2502
780
  declare class FormsService {
2503
781
  private readonly block;
2504
782
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: FormsBlockConfig);
2505
- /**
2506
- * Ensure the service is configured, throw helpful error if not
2507
- */
2508
783
  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
- */
784
+ get forms(): _23blocks_block_forms.FormsService;
785
+ get schemas(): _23blocks_block_forms.FormSchemasService;
786
+ get schemaVersions(): _23blocks_block_forms.FormSchemaVersionsService;
787
+ get instances(): _23blocks_block_forms.FormInstancesService;
788
+ get sets(): _23blocks_block_forms.FormSetsService;
789
+ get landings(): _23blocks_block_forms.LandingsService;
790
+ get subscriptions(): _23blocks_block_forms.SubscriptionsService;
791
+ get appointments(): _23blocks_block_forms.AppointmentsService;
792
+ get surveys(): _23blocks_block_forms.SurveysService;
793
+ get referrals(): _23blocks_block_forms.ReferralsService;
794
+ get mailTemplates(): _23blocks_block_forms.MailTemplatesService;
795
+ get applicationForms(): _23blocks_block_forms.ApplicationFormsService;
796
+ get crmSync(): _23blocks_block_forms.CrmSyncService;
797
+ /** Full block access */
2609
798
  get formsBlock(): FormsBlock;
2610
799
  static ɵfac: i0.ɵɵFactoryDeclaration<FormsService, [{ optional: true; }, { optional: true; }, null]>;
2611
800
  static ɵprov: i0.ɵɵInjectableDeclaration<FormsService>;
@@ -2613,121 +802,32 @@ declare class FormsService {
2613
802
 
2614
803
  /**
2615
804
  * Angular service wrapping the Assets block.
2616
- * Converts Promise-based APIs to RxJS Observables.
805
+ *
806
+ * Exposes block sub-services directly via typed getters.
807
+ * All methods return Promises - use `from()` to convert to Observables if needed.
2617
808
  *
2618
809
  * @example
2619
810
  * ```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
- * }
811
+ * const assets = await this.assetsService.assets.list();
2631
812
  * ```
2632
813
  */
2633
814
  declare class AssetsService {
2634
815
  private readonly block;
2635
816
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: AssetsBlockConfig);
2636
- /**
2637
- * Ensure the service is configured, throw helpful error if not
2638
- */
2639
817
  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
- */
818
+ get assets(): _23blocks_block_assets.AssetsService;
819
+ get events(): _23blocks_block_assets.AssetEventsService;
820
+ get audits(): _23blocks_block_assets.AssetAuditsService;
821
+ get categories(): _23blocks_block_assets.CategoriesService;
822
+ get tags(): _23blocks_block_assets.TagsService;
823
+ get vendors(): _23blocks_block_assets.VendorsService;
824
+ get warehouses(): _23blocks_block_assets.WarehousesService;
825
+ get entities(): _23blocks_block_assets.AssetsEntitiesService;
826
+ get operations(): _23blocks_block_assets.AssetOperationsService;
827
+ get alerts(): _23blocks_block_assets.AlertsService;
828
+ get users(): _23blocks_block_assets.AssetsUsersService;
829
+ get images(): _23blocks_block_assets.AssetImagesService;
830
+ /** Full block access */
2731
831
  get assetsBlock(): AssetsBlock;
2732
832
  static ɵfac: i0.ɵɵFactoryDeclaration<AssetsService, [{ optional: true; }, { optional: true; }, null]>;
2733
833
  static ɵprov: i0.ɵɵInjectableDeclaration<AssetsService>;
@@ -2735,109 +835,32 @@ declare class AssetsService {
2735
835
 
2736
836
  /**
2737
837
  * Angular service wrapping the Campaigns block.
2738
- * Converts Promise-based APIs to RxJS Observables.
838
+ *
839
+ * Exposes block sub-services directly via typed getters.
840
+ * All methods return Promises - use `from()` to convert to Observables if needed.
2739
841
  *
2740
842
  * @example
2741
843
  * ```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
- * }
844
+ * const campaigns = await this.campaignsService.campaigns.list({ page: 1, perPage: 10 });
2753
845
  * ```
2754
846
  */
2755
847
  declare class CampaignsService {
2756
848
  private readonly block;
2757
849
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: CampaignsBlockConfig);
2758
- /**
2759
- * Ensure the service is configured, throw helpful error if not
2760
- */
2761
850
  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
- */
851
+ get campaigns(): _23blocks_block_campaigns.CampaignsService;
852
+ get campaignMedia(): _23blocks_block_campaigns.CampaignMediaService;
853
+ get landingPages(): _23blocks_block_campaigns.LandingPagesService;
854
+ get audiences(): _23blocks_block_campaigns.AudiencesService;
855
+ get landingTemplates(): _23blocks_block_campaigns.LandingTemplatesService;
856
+ get targets(): _23blocks_block_campaigns.CampaignTargetsService;
857
+ get results(): _23blocks_block_campaigns.CampaignResultsService;
858
+ get markets(): _23blocks_block_campaigns.CampaignMarketsService;
859
+ get locations(): _23blocks_block_campaigns.CampaignLocationsService;
860
+ get templates(): _23blocks_block_campaigns.CampaignTemplatesService;
861
+ get mediaResults(): _23blocks_block_campaigns.CampaignMediaResultsService;
862
+ get media(): _23blocks_block_campaigns.MediaService;
863
+ /** Full block access */
2841
864
  get campaignsBlock(): CampaignsBlock;
2842
865
  static ɵfac: i0.ɵɵFactoryDeclaration<CampaignsService, [{ optional: true; }, { optional: true; }, null]>;
2843
866
  static ɵprov: i0.ɵɵInjectableDeclaration<CampaignsService>;
@@ -2845,115 +868,27 @@ declare class CampaignsService {
2845
868
 
2846
869
  /**
2847
870
  * Angular service wrapping the Company block.
2848
- * Converts Promise-based APIs to RxJS Observables.
871
+ *
872
+ * Exposes block sub-services directly via typed getters.
873
+ * All methods return Promises - use `from()` to convert to Observables if needed.
2849
874
  *
2850
875
  * @example
2851
876
  * ```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
- * }
877
+ * const companies = await this.companyService.companies.list();
2863
878
  * ```
2864
879
  */
2865
880
  declare class CompanyService {
2866
881
  private readonly block;
2867
882
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: CompanyBlockConfig);
2868
- /**
2869
- * Ensure the service is configured, throw helpful error if not
2870
- */
2871
883
  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
- */
884
+ get companies(): _23blocks_block_company.CompaniesService;
885
+ get departments(): _23blocks_block_company.DepartmentsService;
886
+ get teams(): _23blocks_block_company.TeamsService;
887
+ get teamMembers(): _23blocks_block_company.TeamMembersService;
888
+ get quarters(): _23blocks_block_company.QuartersService;
889
+ get positions(): _23blocks_block_company.PositionsService;
890
+ get employeeAssignments(): _23blocks_block_company.EmployeeAssignmentsService;
891
+ /** Full block access */
2957
892
  get companyBlock(): CompanyBlock;
2958
893
  static ɵfac: i0.ɵɵFactoryDeclaration<CompanyService, [{ optional: true; }, { optional: true; }, null]>;
2959
894
  static ɵprov: i0.ɵɵInjectableDeclaration<CompanyService>;
@@ -2961,170 +896,32 @@ declare class CompanyService {
2961
896
 
2962
897
  /**
2963
898
  * Angular service wrapping the Rewards block.
2964
- * Converts Promise-based APIs to RxJS Observables.
899
+ *
900
+ * Exposes block sub-services directly via typed getters.
901
+ * All methods return Promises - use `from()` to convert to Observables if needed.
2965
902
  *
2966
903
  * @example
2967
904
  * ```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
- * }
905
+ * const rewards = await this.rewardsService.rewards.list({ status: 'active' });
2979
906
  * ```
2980
907
  */
2981
908
  declare class RewardsService {
2982
909
  private readonly block;
2983
910
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: RewardsBlockConfig);
2984
- /**
2985
- * Ensure the service is configured, throw helpful error if not
2986
- */
2987
911
  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
- */
912
+ get rewards(): _23blocks_block_rewards.RewardsService;
913
+ get coupons(): _23blocks_block_rewards.CouponsService;
914
+ get loyalty(): _23blocks_block_rewards.LoyaltyService;
915
+ get badges(): _23blocks_block_rewards.BadgesService;
916
+ get couponConfigurations(): _23blocks_block_rewards.CouponConfigurationsService;
917
+ get offerCodes(): _23blocks_block_rewards.OfferCodesService;
918
+ get expirationRules(): _23blocks_block_rewards.ExpirationRulesService;
919
+ get customers(): _23blocks_block_rewards.RewardsCustomersService;
920
+ get badgeCategories(): _23blocks_block_rewards.BadgeCategoriesService;
921
+ get moneyRules(): _23blocks_block_rewards.MoneyRulesService;
922
+ get productRules(): _23blocks_block_rewards.ProductRulesService;
923
+ get eventRules(): _23blocks_block_rewards.EventRulesService;
924
+ /** Full block access */
3128
925
  get rewardsBlock(): RewardsBlock;
3129
926
  static ɵfac: i0.ɵɵFactoryDeclaration<RewardsService, [{ optional: true; }, { optional: true; }, null]>;
3130
927
  static ɵprov: i0.ɵɵInjectableDeclaration<RewardsService>;
@@ -3132,145 +929,33 @@ declare class RewardsService {
3132
929
 
3133
930
  /**
3134
931
  * Angular service wrapping the Sales block.
3135
- * Converts Promise-based APIs to RxJS Observables.
932
+ *
933
+ * Exposes block sub-services directly via typed getters.
934
+ * All methods return Promises - use `from()` to convert to Observables if needed.
3136
935
  *
3137
936
  * @example
3138
937
  * ```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
- * }
938
+ * const order = await this.salesService.orders.create({ ... });
3150
939
  * ```
3151
940
  */
3152
941
  declare class SalesService {
3153
942
  private readonly block;
3154
943
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: SalesBlockConfig);
3155
- /**
3156
- * Ensure the service is configured, throw helpful error if not
3157
- */
3158
944
  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
- */
945
+ get orders(): _23blocks_block_sales.OrdersService;
946
+ get orderDetails(): _23blocks_block_sales.OrderDetailsService;
947
+ get orderTaxes(): _23blocks_block_sales.OrderTaxesService;
948
+ get payments(): _23blocks_block_sales.PaymentsService;
949
+ get subscriptions(): _23blocks_block_sales.SubscriptionsService;
950
+ get subscriptionModels(): _23blocks_block_sales.SubscriptionModelsService;
951
+ get entities(): _23blocks_block_sales.SalesEntitiesService;
952
+ get users(): _23blocks_block_sales.SalesUsersService;
953
+ get customers(): _23blocks_block_sales.SalesCustomersService;
954
+ get flexibleOrders(): _23blocks_block_sales.FlexibleOrdersService;
955
+ get stripe(): _23blocks_block_sales.StripeService;
956
+ get mercadopago(): _23blocks_block_sales.MercadoPagoService;
957
+ get vendorPayments(): _23blocks_block_sales.VendorPaymentsService;
958
+ /** Full block access */
3274
959
  get salesBlock(): SalesBlock;
3275
960
  static ɵfac: i0.ɵɵFactoryDeclaration<SalesService, [{ optional: true; }, { optional: true; }, null]>;
3276
961
  static ɵprov: i0.ɵɵInjectableDeclaration<SalesService>;
@@ -3278,69 +963,24 @@ declare class SalesService {
3278
963
 
3279
964
  /**
3280
965
  * Angular service wrapping the Wallet block.
3281
- * Converts Promise-based APIs to RxJS Observables.
966
+ *
967
+ * Exposes block sub-services directly via typed getters.
968
+ * All methods return Promises - use `from()` to convert to Observables if needed.
3282
969
  *
3283
970
  * @example
3284
971
  * ```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
- * }
972
+ * const wallet = await this.walletService.wallets.create({ userUniqueId });
3296
973
  * ```
3297
974
  */
3298
975
  declare class WalletService {
3299
976
  private readonly block;
3300
977
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: WalletBlockConfig);
3301
- /**
3302
- * Ensure the service is configured, throw helpful error if not
3303
- */
3304
978
  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
- */
979
+ get wallets(): _23blocks_block_wallet.WalletsService;
980
+ get transactions(): _23blocks_block_wallet.TransactionsService;
981
+ get authorizationCodes(): _23blocks_block_wallet.AuthorizationCodesService;
982
+ get webhooks(): _23blocks_block_wallet.WebhooksService;
983
+ /** Full block access */
3344
984
  get walletBlock(): WalletBlock;
3345
985
  static ɵfac: i0.ɵɵFactoryDeclaration<WalletService, [{ optional: true; }, { optional: true; }, null]>;
3346
986
  static ɵprov: i0.ɵɵInjectableDeclaration<WalletService>;
@@ -3348,179 +988,37 @@ declare class WalletService {
3348
988
 
3349
989
  /**
3350
990
  * Angular service wrapping the Jarvis block.
3351
- * Converts Promise-based APIs to RxJS Observables.
991
+ *
992
+ * Exposes block sub-services directly via typed getters.
993
+ * All methods return Promises - use `from()` to convert to Observables if needed.
3352
994
  *
3353
995
  * @example
3354
996
  * ```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
- * }
997
+ * const response = await this.jarvisService.agents.chat(agentId, { message });
3366
998
  * ```
3367
999
  */
3368
1000
  declare class JarvisService {
3369
1001
  private readonly block;
3370
1002
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: JarvisBlockConfig);
3371
- /**
3372
- * Ensure the service is configured, throw helpful error if not
3373
- */
3374
1003
  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
- */
1004
+ get agents(): _23blocks_block_jarvis.AgentsService;
1005
+ get prompts(): _23blocks_block_jarvis.PromptsService;
1006
+ get workflows(): _23blocks_block_jarvis.WorkflowsService;
1007
+ get executions(): _23blocks_block_jarvis.ExecutionsService;
1008
+ get conversations(): _23blocks_block_jarvis.ConversationsService;
1009
+ get aiModels(): _23blocks_block_jarvis.AIModelsService;
1010
+ get entities(): _23blocks_block_jarvis.EntitiesService;
1011
+ get clusters(): _23blocks_block_jarvis.ClustersService;
1012
+ get users(): _23blocks_block_jarvis.JarvisUsersService;
1013
+ get workflowParticipants(): _23blocks_block_jarvis.WorkflowParticipantsService;
1014
+ get workflowSteps(): _23blocks_block_jarvis.WorkflowStepsService;
1015
+ get workflowInstances(): _23blocks_block_jarvis.WorkflowInstancesService;
1016
+ get agentRuntime(): _23blocks_block_jarvis.AgentRuntimeService;
1017
+ get mailTemplates(): _23blocks_block_jarvis.MailTemplatesService;
1018
+ get marvinChat(): _23blocks_block_jarvis.MarvinChatService;
1019
+ get promptComments(): _23blocks_block_jarvis.PromptCommentsService;
1020
+ get executionComments(): _23blocks_block_jarvis.ExecutionCommentsService;
1021
+ /** Full block access */
3524
1022
  get jarvisBlock(): JarvisBlock;
3525
1023
  static ɵfac: i0.ɵɵFactoryDeclaration<JarvisService, [{ optional: true; }, { optional: true; }, null]>;
3526
1024
  static ɵprov: i0.ɵɵInjectableDeclaration<JarvisService>;
@@ -3528,91 +1026,27 @@ declare class JarvisService {
3528
1026
 
3529
1027
  /**
3530
1028
  * Angular service wrapping the Onboarding block.
3531
- * Converts Promise-based APIs to RxJS Observables.
1029
+ *
1030
+ * Exposes block sub-services directly via typed getters.
1031
+ * All methods return Promises - use `from()` to convert to Observables if needed.
3532
1032
  *
3533
1033
  * @example
3534
1034
  * ```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
- * }
1035
+ * const onboarding = await this.onboardingService.onboardings.create({ code: 'user-onboarding', name: 'User Onboarding' });
3550
1036
  * ```
3551
1037
  */
3552
1038
  declare class OnboardingService {
3553
1039
  private readonly block;
3554
1040
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: OnboardingBlockConfig);
3555
- /**
3556
- * Ensure the service is configured, throw helpful error if not
3557
- */
3558
1041
  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
- */
1042
+ get onboardings(): _23blocks_block_onboarding.OnboardingsService;
1043
+ get flows(): _23blocks_block_onboarding.FlowsService;
1044
+ get userJourneys(): _23blocks_block_onboarding.UserJourneysService;
1045
+ get userIdentities(): _23blocks_block_onboarding.UserIdentitiesService;
1046
+ get onboard(): _23blocks_block_onboarding.OnboardService;
1047
+ get mailTemplates(): _23blocks_block_onboarding.MailTemplatesService;
1048
+ get remarketing(): _23blocks_block_onboarding.RemarketingService;
1049
+ /** Full block access */
3616
1050
  get onboardingBlock(): OnboardingBlock;
3617
1051
  static ɵfac: i0.ɵɵFactoryDeclaration<OnboardingService, [{ optional: true; }, { optional: true; }, null]>;
3618
1052
  static ɵprov: i0.ɵɵInjectableDeclaration<OnboardingService>;
@@ -3620,250 +1054,37 @@ declare class OnboardingService {
3620
1054
 
3621
1055
  /**
3622
1056
  * Angular service wrapping the University block.
3623
- * Converts Promise-based APIs to RxJS Observables.
1057
+ *
1058
+ * Exposes block sub-services directly via typed getters.
1059
+ * All methods return Promises - use `from()` to convert to Observables if needed.
3624
1060
  *
3625
1061
  * @example
3626
1062
  * ```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
- * }
1063
+ * const courses = await this.universityService.courses.list({ page: 1, perPage: 10 });
3638
1064
  * ```
3639
1065
  */
3640
1066
  declare class UniversityService {
3641
1067
  private readonly block;
3642
1068
  constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: UniversityBlockConfig);
3643
- /**
3644
- * Ensure the service is configured, throw helpful error if not
3645
- */
3646
1069
  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
- */
1070
+ get courses(): _23blocks_block_university.CoursesService;
1071
+ get lessons(): _23blocks_block_university.LessonsService;
1072
+ get enrollments(): _23blocks_block_university.EnrollmentsService;
1073
+ get assignments(): _23blocks_block_university.AssignmentsService;
1074
+ get submissions(): _23blocks_block_university.SubmissionsService;
1075
+ get subjects(): _23blocks_block_university.SubjectsService;
1076
+ get teachers(): _23blocks_block_university.TeachersService;
1077
+ get students(): _23blocks_block_university.StudentsService;
1078
+ get courseGroups(): _23blocks_block_university.CourseGroupsService;
1079
+ get coachingSessions(): _23blocks_block_university.CoachingSessionsService;
1080
+ get tests(): _23blocks_block_university.ContentTestsService;
1081
+ get registrationTokens(): _23blocks_block_university.RegistrationTokensService;
1082
+ get placements(): _23blocks_block_university.PlacementsService;
1083
+ get calendars(): _23blocks_block_university.CalendarsService;
1084
+ get matches(): _23blocks_block_university.MatchesService;
1085
+ get attendance(): _23blocks_block_university.AttendanceService;
1086
+ get notes(): _23blocks_block_university.NotesService;
1087
+ /** Full block access */
3867
1088
  get universityBlock(): UniversityBlock;
3868
1089
  static ɵfac: i0.ɵɵFactoryDeclaration<UniversityService, [{ optional: true; }, { optional: true; }, null]>;
3869
1090
  static ɵprov: i0.ɵɵInjectableDeclaration<UniversityService>;