@omnia/wcm 6.11.20-preview → 6.11.20

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.
@@ -428,6 +428,8 @@ export declare module EditorLocalization {
428
428
  SelectedChannels: string;
429
429
  NoSelectedChannels: string;
430
430
  PublishDirectly: string;
431
+ MoveToPublishDirectly: string;
432
+ MoveToWaitingForApproval: string;
431
433
  WaitingForApproval: string;
432
434
  Published: string;
433
435
  PublishDirectlyMessage: string;
@@ -1,11 +1,11 @@
1
1
  import { PublishingChannelId } from "./PublishingChannel";
2
2
  import { PageId } from "../pages";
3
3
  export declare enum PublishingStatus {
4
- PendingPublishing = 0,
4
+ WaitingForPublishDirectly = 0,
5
5
  PendingApproval = 1,
6
6
  Published = 2,
7
7
  Reject = 3,
8
- PendingPublished = 4
8
+ WaitingForPendingApproval = 4
9
9
  }
10
10
  export interface ChannelPage {
11
11
  pageId: PageId;
@@ -16,4 +16,5 @@ export interface ChannelPage {
16
16
  pageTitle?: string;
17
17
  pageUrl?: string;
18
18
  isDefault?: boolean;
19
+ publishDirectly?: boolean;
19
20
  }
@@ -1,8 +1,8 @@
1
1
  export var PublishingStatus;
2
2
  (function (PublishingStatus) {
3
- PublishingStatus[PublishingStatus["PendingPublishing"] = 0] = "PendingPublishing";
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["PendingPublished"] = 4] = "PendingPublished";
7
+ PublishingStatus[PublishingStatus["WaitingForPendingApproval"] = 4] = "WaitingForPendingApproval";
8
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<PublishingChannelId>, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>;
22
- publishAddedPageToChannel: (pageId: PageId, isPendingPublishing: boolean) => Promise<Array<ChannelPage>>;
23
- publishPageToChannels: (pageId: number, channelToPublishTo: Array<PublishingChannelId>, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>;
21
+ addPageToChannels: (pageId: number, channelToPublishTo: Array<PublishChannelPageRequest>, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>;
22
+ publishAddedPageToChannel: (pageId: PageId) => Promise<Array<ChannelPage>>;
23
+ publishPageToChannels: (pageId: number, channelToPublishTo: Array<PublishChannelPageRequest>, defaultPublishingChannelId: PublishingChannelId) => Promise<Array<ChannelPage>>;
24
24
  queryChannelRollup: (query: ChannelRollupQuery) => Promise<Array<PublisingChannelQueryResult>>;
25
25
  }
@@ -11,6 +11,10 @@ export declare class ChannelCategoriesStore extends Store {
11
11
  getters: {
12
12
  items: () => PublishingChannelCategory[];
13
13
  editingItem: () => PublishingChannelCategory;
14
+ groupByCategories: () => {
15
+ [key: string]: PublishingChannelCategory;
16
+ };
17
+ categoriesMutated: () => (fn: (obj: import("@omnia/fx-models").StateMutation<PublishingChannelCategory[]>) => void) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
14
18
  };
15
19
  actions: {
16
20
  ensureCategories: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannelCategory[]) => void, (failureReason: any) => void, () => Promise<PublishingChannelCategory[]>>;
@@ -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[];
@@ -78,7 +83,6 @@ export declare class ChannelManagementStore extends Store {
78
83
  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>>>;
79
84
  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>>>;
80
85
  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>>>;
81
- publishPendingPageToChannel: 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
86
  ensureUserPublishingChannelSubscripton: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
83
87
  };
84
88
  private updateChannelPagesStatus;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "6.11.20-preview",
4
+ "version": "6.11.20",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"