@omnia/wcm 6.10.42-preview → 6.10.43-preview
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/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +1 -0
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/Constants.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/Constants.js +3 -0
- package/internal-do-not-import-from-here/fx/models/channels/ChannelPages.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/channels/PublishingChannel.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/services/ChannelManagementService.d.ts +4 -4
- package/internal-do-not-import-from-here/fx/stores/ChannelManagementStore.d.ts +3 -3
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export declare const PageRollupConstants: {
|
|
|
23
23
|
readonly PageSizeMax: number;
|
|
24
24
|
readonly DefaultPageSize: number;
|
|
25
25
|
readonly channelIdInternalName: string;
|
|
26
|
+
readonly defaultChannelIdInternalName: string;
|
|
26
27
|
readonly FilterByCurrentUserSubscription: string;
|
|
27
28
|
readonly pageHitsCurrentUserInternalName: string;
|
|
28
29
|
readonly pageHitsAllUsersInternalName: string;
|
|
@@ -71,6 +71,9 @@ export var PageRollupConstants = {
|
|
|
71
71
|
get channelIdInternalName() {
|
|
72
72
|
return "PChannelId";
|
|
73
73
|
},
|
|
74
|
+
get defaultChannelIdInternalName() {
|
|
75
|
+
return "PDefaultChannelId";
|
|
76
|
+
},
|
|
74
77
|
get FilterByCurrentUserSubscription() {
|
|
75
78
|
return "CurrentUserSubscription";
|
|
76
79
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TargetingFilterProperty } from '@omnia/fx-sp/models';
|
|
2
2
|
import { Identity, MediaPickerImage, MultilingualString } from '@omnia/fx/models';
|
|
3
|
-
import { PublishingChannel, PageId, UserAuthorizedChannelResources, ChannelPage, PublishingStatus, PublishingChannelId } from '../models';
|
|
3
|
+
import { PublishingChannel, PageId, UserAuthorizedChannelResources, ChannelPage, PublishingStatus, PublishingChannelId, PublishingChannelPage } from '../models';
|
|
4
4
|
export declare class ChannelManagementService {
|
|
5
5
|
private httpClient;
|
|
6
6
|
constructor();
|
|
@@ -11,14 +11,14 @@ export declare class ChannelManagementService {
|
|
|
11
11
|
getPublishingChannelById: (channelId: number) => Promise<PublishingChannel>;
|
|
12
12
|
getChannelPages: (pageId: PageId) => Promise<ChannelPage[]>;
|
|
13
13
|
getChannelsForPublishedPages: (pageIds: PageId[]) => Promise<{
|
|
14
|
-
[pageId: number]:
|
|
14
|
+
[pageId: number]: PublishingChannelPage[];
|
|
15
15
|
}>;
|
|
16
16
|
deletePublishingChannel: (channelId: PublishingChannelId) => Promise<PublishingChannel>;
|
|
17
17
|
getUserPermissions: (userIdentity: string) => Promise<UserAuthorizedChannelResources>;
|
|
18
18
|
getChannelPagesByStatus: (status: PublishingStatus) => Promise<Array<ChannelPage>>;
|
|
19
19
|
approvePublishPageToChannel: (channel: PublishingChannel, pageId: PageId, pageTitle: string, pageUrl: string) => Promise<ChannelPage>;
|
|
20
20
|
rejectPublishPageToChannel: (channel: PublishingChannel, pageId: PageId, comment: string, pageTitle: string, pageUrl: string) => Promise<ChannelPage>;
|
|
21
|
-
addPageToChannels: (pageId: number, channelToPublishTo: Array<PublishingChannelId
|
|
21
|
+
addPageToChannels: (pageId: number, channelToPublishTo: Array<PublishingChannelId>, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>;
|
|
22
22
|
publishAddedPageToChannel: (pageId: PageId) => Promise<Array<ChannelPage>>;
|
|
23
|
-
publishPageToChannels: (pageId: number, channelToPublishTo: Array<PublishingChannelId
|
|
23
|
+
publishPageToChannels: (pageId: number, channelToPublishTo: Array<PublishingChannelId>, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>;
|
|
24
24
|
}
|
|
@@ -2,7 +2,7 @@ import { Identity, IOmniaContext, MediaPickerImage, MultilingualString, Resolved
|
|
|
2
2
|
import { TargetingFilterProperty } from '@omnia/fx-sp/models';
|
|
3
3
|
import { MediaPickerService } from '@omnia/fx/services';
|
|
4
4
|
import { MultilingualStore, Store } from '@omnia/fx/stores';
|
|
5
|
-
import { PublishingChannel, PageId } from '../models';
|
|
5
|
+
import { PublishingChannel, PageId, PublishingChannelPage } from '../models';
|
|
6
6
|
import { PublishingChannelId, ChannelPage } from '../models';
|
|
7
7
|
import { TopicsActivityStore } from './TopicsActivityStore';
|
|
8
8
|
interface ChannelIdtoChannelMap {
|
|
@@ -38,7 +38,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
38
38
|
getters: {
|
|
39
39
|
getRecentlyUsedChannels: () => PublishingChannel[];
|
|
40
40
|
getPublishedChannelsPage: () => {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: PublishingChannelPage[];
|
|
42
42
|
};
|
|
43
43
|
getPublishingChannels: () => PublishingChannel[];
|
|
44
44
|
getPublisingChannelbyId: (channelId: PublishingChannelId) => PublishingChannel;
|
|
@@ -76,7 +76,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
76
76
|
getPageApprovalList: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: ChannelPage[]) => void, (failureReason: any) => void, () => Promise<Array<ChannelPage>>>;
|
|
77
77
|
approvePublishPageToChannelRequest: import("@omnia/fx/stores").StoreAction<unknown, (channel: PublishingChannel, pageId: PageId, pageTitle: string, pageUrl: string) => 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<ChannelPage>>;
|
|
78
78
|
rejectPublishPageToChannelRequest: import("@omnia/fx/stores").StoreAction<unknown, (channel: PublishingChannel, pageId: PageId, comment: string, pageTitle: string, pageUrl: string) => 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<ChannelPage>>;
|
|
79
|
-
addPageToChannels: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number) => void, (result: ChannelPage[], pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise<Array<ChannelPage>>>;
|
|
79
|
+
addPageToChannels: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number, defaultPublishingChannelId: PublishingChannelId) => void, (result: ChannelPage[], pageId: number, defaultPublishingChannelId: PublishingChannelId) => void, (failureReason: any, pageId: number, defaultPublishingChannelId: PublishingChannelId) => void, (pageId: number, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>>;
|
|
80
80
|
publishPageToChannels: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number) => void, (result: ChannelPage[], pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise<Array<ChannelPage>>>;
|
|
81
81
|
publishAddedPageToChannel: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number) => void, (result: ChannelPage[], pageId: number) => void, (failureReason: any, pageId: number) => void, (pageId: number) => Promise<Array<ChannelPage>>>;
|
|
82
82
|
ensureUserPublishingChannelSubscripton: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
|