@omnia/wcm 6.11.19 → 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.
@@ -1,10 +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
- Reject = 3
7
+ Reject = 3,
8
+ WaitingForPendingApproval = 4
8
9
  }
9
10
  export interface ChannelPage {
10
11
  pageId: PageId;
@@ -1,7 +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["WaitingForPendingApproval"] = 4] = "WaitingForPendingApproval";
7
8
  })(PublishingStatus || (PublishingStatus = {}));
@@ -2,7 +2,7 @@ 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 PublishPageToChannel {
5
+ export interface PublishChannelPageRequest {
6
6
  channelId: PublishingChannelId;
7
7
  pendingApproval?: boolean;
8
8
  }
@@ -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, PublishPageToChannel } 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>>;
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<PublishPageToChannel>, defaultPublishingChannelId: PublishingChannelId) => 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
  }
@@ -46,6 +46,8 @@ export declare class ChannelManagementStore extends Store {
46
46
  getPublishingChannels: () => PublishingChannel[];
47
47
  getPublisingChannelbyId: (channelId: PublishingChannelId) => PublishingChannel;
48
48
  hasPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
49
+ hasAssignChannelAdminPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
50
+ hasAssignPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
49
51
  getChannelPages: (pageId: PageId) => ChannelPage[];
50
52
  isPublishingPageToChannels: (pageId: PageId) => boolean;
51
53
  getWaitingforApprovalPages: (channelId: PublishingChannelId) => number[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "6.11.19",
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"