import { GuidValue, Identity, type IOmniaContext, MediaPickerImage, MultilingualString, ResolvedUserIdentity } from "@omnia/fx-models"; import { TargetingFilterProperty } from "@omnia/fx-sp/models"; import { MediaPickerService } from "@omnia/fx/services"; import { MultilingualStore, Store } from "@omnia/fx/stores"; import { PublishingChannel, PageId, PublishingChannelPage } from "../models"; import { PublishingChannelId, ChannelPage } from "../models"; import { TopicsActivityStore } from "./TopicsActivityStore"; interface ChannelIdtoChannelMap { [channelId: number]: PublishingChannel; } interface ChannelPageGroupMapping { [channelId: number]: Array; } export declare class ChannelManagementStore extends Store { private channelService; protected omniaContext: IOmniaContext; mediaPickerService: MediaPickerService; multilingualStore: MultilingualStore; private userTargetingStore; topicsActivityStore: TopicsActivityStore; publishingChannels: import("@omnia/fx/stores").StoreState; publishingChannelsWithTargeting: import("@omnia/fx/stores").StoreState; waitingforApproveList: import("@omnia/fx/stores").StoreState; resolvedUser: import("@omnia/fx/stores").StoreState; pendingChangeChannelPages: import("@omnia/fx/stores").StoreState<{ [pageId: string]: boolean; }>; private recentlyUsedChannels; private publishedChannelsPage; private userPublishingChannelSubscripton; private ensuredUserPublishingChannelSubscriptonPromise; private publishedChannelsOfPageLoadPromise; channelPages: import("@omnia/fx/stores").StoreState<{ [key: string]: ChannelPage[]; }>; private channelPagesLoadPromise; private isPublishingPageToChannels; private ensuredLoadDataPromise; private ensuredGetPublishingChannelsPromise; private ensuredGetTargetingChannelsPromise; private userAuthorizedChannelResources; onActivated(): void; onDisposing(): void; getters: { getRecentlyUsedChannels: () => PublishingChannel[]; getPublishedChannelsPage: () => { [key: string]: PublishingChannelPage[]; }; getPublishingChannels: () => PublishingChannel[]; getPublishingChannelsWithTargeting: () => PublishingChannel[]; getPublisingChannelbyId: (channelId: PublishingChannelId) => PublishingChannel; hasPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean; hasAssignChannelAdminPermission: (channel: PublishingChannel, userIdentity: string) => boolean; hasAssignPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean; getChannelPages: (pageId: PageId) => ChannelPage[]; isPublishingPageToChannels: (pageId: PageId) => boolean; getWaitingforApprovalPages: (channelId: PublishingChannelId) => number[]; getAllPublishingChannels: () => PublishingChannel[]; getAllPublishingChannelsWithTargeting: () => PublishingChannel[]; getUserPublishingChannelSubscripton: () => Array; }; /** * Implementation of mutations */ mutations: { addOrUpdatePublishingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>; addOrUpdateTargetingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>; deletePublishingChannel: import("@omnia/fx/stores").StoreMutation<(deleteChannel: PublishingChannel) => void, (deleteChannel: PublishingChannel) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>; updateChannelPages: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, result: Array) => void, (pageId: PageId, result: ChannelPage[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>; updateIsPublishingPageToChannels: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, isPublishing: boolean) => void, (pageId: PageId, isPublishing: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>; updateWaitingforApprovalPages: import("@omnia/fx/stores").StoreMutation<(channelPages: Array) => void, (channelPages: ChannelPage[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>; setPendingChanges: import("@omnia/fx/stores").StoreMutation<(pageId: number, pendingChanges: boolean) => void, (pageId: number, pendingChanges: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>; }; /** * Implementation of actions */ actions: { ensureUserPermission: import("@omnia/fx/stores").StoreAction void, (result: boolean, userIdentity: string) => void, (failureReason: any, userIdentity: string) => void, (userIdentity: string) => Promise>; ensurePublishingChannels: import("@omnia/fx/stores").StoreAction void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise>>; ensureTargetingChannels: import("@omnia/fx/stores").StoreAction void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise>>; ensureLoadData: import("@omnia/fx/stores").StoreAction void, (result: boolean) => void, (failureReason: any) => void, () => Promise>; ensureChannelPages: import("@omnia/fx/stores").StoreAction void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise>; ensurePublishedChannelsByPageId: import("@omnia/fx/stores").StoreAction void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise>; ensurePublishingChannel: import("@omnia/fx/stores").StoreAction void, (result: PublishingChannel, channelId: number) => void, (failureReason: any, channelId: number) => void, (channelId: number) => Promise>; createPublishingChannel: import("@omnia/fx/stores").StoreAction void, (result: PublishingChannel, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (failureReason: any, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array, image: MediaPickerImage, administrator: Array, publisher: Array, targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise>; updatePublishingChannel: import("@omnia/fx/stores").StoreAction void, (result: PublishingChannel, editRequest: PublishingChannel) => void, (failureReason: any, editRequest: PublishingChannel) => void, (editRequest: PublishingChannel) => Promise>; deletePublishingChannel: import("@omnia/fx/stores").StoreAction void, (result: PublishingChannel, channelId: PublishingChannelId) => void, (failureReason: any, channelId: PublishingChannelId) => void, (channelId: PublishingChannelId) => Promise>; getPageApprovalList: import("@omnia/fx/stores").StoreAction void, (result: ChannelPage[]) => void, (failureReason: any) => void, () => Promise>>; approvePublishPageToChannelRequest: import("@omnia/fx/stores").StoreAction void, (result: ChannelPage, channel: PublishingChannel, pageId: PageId, pageTitle: string, pageUrl: string) => void, (failureReason: any, channel: PublishingChannel, pageId: PageId, pageTitle: string, pageUrl: string) => void, (channel: PublishingChannel, pageId: PageId, pageTitle: string, pageUrl: string) => Promise>; rejectPublishPageToChannelRequest: import("@omnia/fx/stores").StoreAction void, (result: ChannelPage, channel: PublishingChannel, pageId: PageId, comment: string, pageTitle: string, pageUrl: string) => void, (failureReason: any, channel: PublishingChannel, pageId: PageId, comment: string, pageTitle: string, pageUrl: string) => void, (channel: PublishingChannel, pageId: PageId, comment: string, pageTitle: string, pageUrl: string) => Promise>; addPageToChannels: import("@omnia/fx/stores").StoreAction void, (result: ChannelPage[], pageId: number, defaultPublishingChannelId: PublishingChannelId) => void, (failureReason: any, pageId: number, defaultPublishingChannelId: PublishingChannelId) => void, (pageId: number, defaultPublishingChannelId: PublishingChannelId) => Promise>>; publishPageToChannels: import("@omnia/fx/stores").StoreAction void, (result: ChannelPage[], pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise>>; publishAddedPageToChannel: import("@omnia/fx/stores").StoreAction void, (result: ChannelPage[], pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise>>; ensureUserPublishingChannelSubscripton: import("@omnia/fx/stores").StoreAction void, (result: boolean) => void, (failureReason: any) => void, () => Promise>; }; private updateChannelPagesStatus; private mappingPublishingChannels; private addOrUpdateUserPermissions; } export {};