@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.
@@ -434,6 +434,7 @@ export declare module EditorLocalization {
434
434
  PublishToChannelAction: string;
435
435
  Channels: string;
436
436
  NoItem: string;
437
+ DefaultChannel: string;
437
438
  };
438
439
  PageCollectionPermission: {
439
440
  Title: string;
@@ -106,6 +106,7 @@ export declare module PageRollupLocalization {
106
106
  PageType: string;
107
107
  PublishingApp: string;
108
108
  Channels: string;
109
+ DefaultChannel: string;
109
110
  PageHits: string;
110
111
  CurrentUser: string;
111
112
  AllUsers: string;
@@ -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
  },
@@ -13,4 +13,5 @@ export interface ChannelPage {
13
13
  rejectionComment?: string;
14
14
  pageTitle?: string;
15
15
  pageUrl?: string;
16
+ isDefault?: boolean;
16
17
  }
@@ -18,3 +18,6 @@ export interface PublishingChannel {
18
18
  multilingualDescription?: string;
19
19
  disabled?: boolean;
20
20
  }
21
+ export interface PublishingChannelPage extends PublishingChannel {
22
+ isDefault: boolean;
23
+ }
@@ -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]: PublishingChannel[];
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>) => Promise<Array<ChannelPage>>;
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>) => Promise<Array<ChannelPage>>;
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]: PublishingChannel[];
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>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "6.10.42-preview",
4
+ "version": "6.10.43-preview",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"