@omnia/wcm 6.12.87-preview → 6.12.89-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 +2 -0
- package/internal-do-not-import-from-here/fx/models/channels/ChannelPages.d.ts +4 -2
- package/internal-do-not-import-from-here/fx/models/channels/ChannelPages.js +2 -1
- package/internal-do-not-import-from-here/fx/models/channels/PublishingChannel.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/services/ChannelManagementService.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/stores/ChannelManagementStore.d.ts +5 -0
- package/package.json +1 -1
|
@@ -437,6 +437,8 @@ export declare module EditorLocalization {
|
|
|
437
437
|
SelectedChannels: string;
|
|
438
438
|
NoSelectedChannels: string;
|
|
439
439
|
PublishDirectly: string;
|
|
440
|
+
MoveToPublishDirectly: string;
|
|
441
|
+
MoveToWaitingForApproval: string;
|
|
440
442
|
WaitingForApproval: string;
|
|
441
443
|
Published: string;
|
|
442
444
|
PublishDirectlyMessage: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PublishingChannelId } from "./PublishingChannel";
|
|
2
2
|
import { PageId } from "../pages";
|
|
3
3
|
export declare enum PublishingStatus {
|
|
4
|
-
|
|
4
|
+
WaitingForPublishDirectly = 0,
|
|
5
5
|
PendingApproval = 1,
|
|
6
6
|
Published = 2,
|
|
7
|
-
Reject = 3
|
|
7
|
+
Reject = 3,
|
|
8
|
+
WaitingForPendingApproval = 4
|
|
8
9
|
}
|
|
9
10
|
export interface ChannelPage {
|
|
10
11
|
pageId: PageId;
|
|
@@ -15,4 +16,5 @@ export interface ChannelPage {
|
|
|
15
16
|
pageTitle?: string;
|
|
16
17
|
pageUrl?: string;
|
|
17
18
|
isDefault?: boolean;
|
|
19
|
+
publishDirectly?: boolean;
|
|
18
20
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export var PublishingStatus;
|
|
2
2
|
(function (PublishingStatus) {
|
|
3
|
-
PublishingStatus[PublishingStatus["
|
|
3
|
+
PublishingStatus[PublishingStatus["WaitingForPublishDirectly"] = 0] = "WaitingForPublishDirectly";
|
|
4
4
|
PublishingStatus[PublishingStatus["PendingApproval"] = 1] = "PendingApproval";
|
|
5
5
|
PublishingStatus[PublishingStatus["Published"] = 2] = "Published";
|
|
6
6
|
PublishingStatus[PublishingStatus["Reject"] = 3] = "Reject";
|
|
7
|
+
PublishingStatus[PublishingStatus["WaitingForPendingApproval"] = 4] = "WaitingForPendingApproval";
|
|
7
8
|
})(PublishingStatus || (PublishingStatus = {}));
|
|
@@ -2,6 +2,10 @@ import { Guid, GuidValue, Identity, MediaPickerImage, MultilingualString } from
|
|
|
2
2
|
import { TargetingFilterProperty } from "@omnia/fx-sp/models";
|
|
3
3
|
export declare enum PublishingChannelId {
|
|
4
4
|
}
|
|
5
|
+
export interface PublishChannelPageRequest {
|
|
6
|
+
channelId: PublishingChannelId;
|
|
7
|
+
pendingApproval?: boolean;
|
|
8
|
+
}
|
|
5
9
|
export interface PublishingChannel {
|
|
6
10
|
id: PublishingChannelId;
|
|
7
11
|
securityResourceId: Guid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TargetingFilterProperty } from '@omnia/fx-sp/models';
|
|
2
2
|
import { GuidValue, Identity, MediaPickerImage, MultilingualString } from '@omnia/fx/models';
|
|
3
|
-
import { PublishingChannel, PageId, UserAuthorizedChannelResources, ChannelPage, PublishingStatus, PublishingChannelId, PublishingChannelPage, ChannelRollupQuery, PublisingChannelQueryResult } from '../models';
|
|
3
|
+
import { PublishingChannel, PageId, UserAuthorizedChannelResources, ChannelPage, PublishingStatus, PublishingChannelId, PublishingChannelPage, ChannelRollupQuery, PublisingChannelQueryResult, PublishChannelPageRequest } from '../models';
|
|
4
4
|
export declare class ChannelManagementService {
|
|
5
5
|
private httpClient;
|
|
6
6
|
constructor();
|
|
@@ -18,8 +18,8 @@ export declare class ChannelManagementService {
|
|
|
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<
|
|
21
|
+
addPageToChannels: (pageId: number, channelToPublishTo: Array<PublishChannelPageRequest>, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>;
|
|
22
22
|
publishAddedPageToChannel: (pageId: PageId) => Promise<Array<ChannelPage>>;
|
|
23
|
-
publishPageToChannels: (pageId: number, channelToPublishTo: Array<
|
|
23
|
+
publishPageToChannels: (pageId: number, channelToPublishTo: Array<PublishChannelPageRequest>, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>;
|
|
24
24
|
queryChannelRollup: (query: ChannelRollupQuery) => Promise<Array<PublisingChannelQueryResult>>;
|
|
25
25
|
}
|
|
@@ -21,6 +21,9 @@ export declare class ChannelManagementStore extends Store {
|
|
|
21
21
|
publishingChannels: import("@omnia/fx/stores").StoreState<ChannelIdtoChannelMap>;
|
|
22
22
|
waitingforApproveList: import("@omnia/fx/stores").StoreState<ChannelPageGroupMapping>;
|
|
23
23
|
resolvedUser: import("@omnia/fx/stores").StoreState<ResolvedUser>;
|
|
24
|
+
pendingChangeChannelPages: {
|
|
25
|
+
[pageId: string]: boolean;
|
|
26
|
+
};
|
|
24
27
|
private recentlyUsedChannels;
|
|
25
28
|
private publishedChannelsPage;
|
|
26
29
|
private userPublishingChannelSubscripton;
|
|
@@ -43,6 +46,8 @@ export declare class ChannelManagementStore extends Store {
|
|
|
43
46
|
getPublishingChannels: () => PublishingChannel[];
|
|
44
47
|
getPublisingChannelbyId: (channelId: PublishingChannelId) => PublishingChannel;
|
|
45
48
|
hasPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
|
|
49
|
+
hasAssignChannelAdminPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
|
|
50
|
+
hasAssignPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
|
|
46
51
|
getChannelPages: (pageId: PageId) => ChannelPage[];
|
|
47
52
|
isPublishingPageToChannels: (pageId: PageId) => boolean;
|
|
48
53
|
getWaitingforApprovalPages: (channelId: PublishingChannelId) => number[];
|