@omnia/wcm 7.10.0-preview.19 → 7.10.0-preview.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.
@@ -251,6 +251,7 @@ export declare module EditorLocalization {
251
251
  Permissions: {
252
252
  Editor: string;
253
253
  Author: string;
254
+ UpdateOnlyAuthor: string;
254
255
  Reader: string;
255
256
  Admin: string;
256
257
  };
@@ -18,6 +18,7 @@ export declare enum ResourceEvaluators {
18
18
  export declare enum RoleDefinitions {
19
19
  Editor = "4e76e9ec-ecbc-48cc-bd50-68d573d795b1",
20
20
  Author = "88ddd69c-ed71-4188-8e62-39b2f91bc4bc",
21
+ UpdateOnlyAuthor = "9cd51708-dc84-4d5a-91bd-260e52b83d48",
21
22
  VariationAuthor = "f181dd91-4a51-4ce4-95bb-018f7a598f77",
22
23
  VariationEditor = "a9ae4c3b-4b7c-4b9e-a948-4f77a4c2f059",
23
24
  Reader = "dbe5b504-9827-4b47-afa6-f626b728f2ca",
@@ -90,4 +91,5 @@ export declare class GetRoleDefinitions {
90
91
  static get AdminRoleDefinitions(): (RoleDefinitions | OmniaRoleDefinitions)[];
91
92
  static get EditorRoleDefinitions(): RoleDefinitions[];
92
93
  static get AuthorRoleDefinitions(): RoleDefinitions[];
94
+ static get UpdateOnlyAuthorRoleDefinitions(): RoleDefinitions[];
93
95
  }
@@ -24,6 +24,7 @@ var RoleDefinitions;
24
24
  (function (RoleDefinitions) {
25
25
  RoleDefinitions["Editor"] = "4e76e9ec-ecbc-48cc-bd50-68d573d795b1";
26
26
  RoleDefinitions["Author"] = "88ddd69c-ed71-4188-8e62-39b2f91bc4bc";
27
+ RoleDefinitions["UpdateOnlyAuthor"] = "9cd51708-dc84-4d5a-91bd-260e52b83d48";
27
28
  RoleDefinitions["VariationAuthor"] = "f181dd91-4a51-4ce4-95bb-018f7a598f77";
28
29
  RoleDefinitions["VariationEditor"] = "a9ae4c3b-4b7c-4b9e-a948-4f77a4c2f059";
29
30
  RoleDefinitions["Reader"] = "dbe5b504-9827-4b47-afa6-f626b728f2ca";
@@ -107,5 +108,6 @@ class GetRoleDefinitions {
107
108
  static get AdminRoleDefinitions() { return [fx_models_1.RoleDefinitions.AppInstanceAdmin, RoleDefinitions.PageCollectionAdmin]; }
108
109
  static get EditorRoleDefinitions() { return [RoleDefinitions.Editor, RoleDefinitions.VariationEditor]; }
109
110
  static get AuthorRoleDefinitions() { return [RoleDefinitions.Author, RoleDefinitions.VariationAuthor, RoleDefinitions.Approver]; }
111
+ static get UpdateOnlyAuthorRoleDefinitions() { return [RoleDefinitions.UpdateOnlyAuthor]; }
110
112
  }
111
113
  exports.GetRoleDefinitions = GetRoleDefinitions;
@@ -17,6 +17,7 @@ export interface PublishingChannel {
17
17
  administrator: Array<Identity>;
18
18
  publisher: Array<Identity>;
19
19
  targetingFilter?: TargetingFilterProperty;
20
+ userTargetingFilter?: TargetingFilterProperty;
20
21
  publishingCategoryId?: GuidValue;
21
22
  imageUrl?: string;
22
23
  multilingualTitle?: string;
@@ -4,9 +4,10 @@ import { PublishingChannel, PageId, UserAuthorizedChannelResources, ChannelPage,
4
4
  export declare class ChannelManagementService {
5
5
  private httpClient;
6
6
  constructor();
7
- createPublishingChannel: (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>;
7
+ createPublishingChannel: (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>;
8
8
  updatePublishingChannel: (updateData: PublishingChannel) => Promise<PublishingChannel>;
9
9
  getPublishingChannels: () => Promise<Array<PublishingChannel>>;
10
+ getTargetingChannels: () => Promise<PublishingChannel[]>;
10
11
  getRecentlyUsedChannels: () => Promise<PublishingChannel[]>;
11
12
  getPublishingChannelById: (channelId: number) => Promise<PublishingChannel>;
12
13
  getChannelPages: (pageId: PageId) => Promise<ChannelPage[]>;
@@ -19,6 +19,7 @@ export declare class ChannelManagementStore extends Store {
19
19
  private userTargetingStore;
20
20
  topicsActivityStore: TopicsActivityStore;
21
21
  publishingChannels: import("@omnia/fx/stores").StoreState<ChannelIdtoChannelMap>;
22
+ publishingChannelsWithTargeting: import("@omnia/fx/stores").StoreState<ChannelIdtoChannelMap>;
22
23
  waitingforApproveList: import("@omnia/fx/stores").StoreState<ChannelPageGroupMapping>;
23
24
  resolvedUser: import("@omnia/fx/stores").StoreState<ResolvedUserIdentity>;
24
25
  pendingChangeChannelPages: import("@omnia/fx/stores").StoreState<{
@@ -36,6 +37,7 @@ export declare class ChannelManagementStore extends Store {
36
37
  private isPublishingPageToChannels;
37
38
  private ensuredLoadDataPromise;
38
39
  private ensuredGetPublishingChannelsPromise;
40
+ private ensuredGetTargetingChannelsPromise;
39
41
  private userAuthorizedChannelResources;
40
42
  onActivated(): void;
41
43
  onDisposing(): void;
@@ -45,6 +47,7 @@ export declare class ChannelManagementStore extends Store {
45
47
  [key: string]: PublishingChannelPage[];
46
48
  };
47
49
  getPublishingChannels: () => PublishingChannel[];
50
+ getPublishingChannelsWithTargeting: () => PublishingChannel[];
48
51
  getPublisingChannelbyId: (channelId: PublishingChannelId) => PublishingChannel;
49
52
  hasPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
50
53
  hasAssignChannelAdminPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
@@ -53,6 +56,7 @@ export declare class ChannelManagementStore extends Store {
53
56
  isPublishingPageToChannels: (pageId: PageId) => boolean;
54
57
  getWaitingforApprovalPages: (channelId: PublishingChannelId) => number[];
55
58
  getAllPublishingChannels: () => PublishingChannel[];
59
+ getAllPublishingChannelsWithTargeting: () => PublishingChannel[];
56
60
  getUserPublishingChannelSubscripton: () => Array<PublishingChannel>;
57
61
  };
58
62
  /**
@@ -60,6 +64,7 @@ export declare class ChannelManagementStore extends Store {
60
64
  */
61
65
  mutations: {
62
66
  addOrUpdatePublishingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array<PublishingChannel>) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
67
+ addOrUpdateTargetingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array<PublishingChannel>) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
63
68
  deletePublishingChannel: import("@omnia/fx/stores").StoreMutation<(deleteChannel: PublishingChannel) => void, (deleteChannel: PublishingChannel) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
64
69
  updateChannelPages: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, result: Array<ChannelPage>) => void, (pageId: PageId, result: ChannelPage[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
65
70
  updateIsPublishingPageToChannels: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, isPublishing: boolean) => void, (pageId: PageId, isPublishing: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
@@ -72,11 +77,12 @@ export declare class ChannelManagementStore extends Store {
72
77
  actions: {
73
78
  ensureUserPermission: import("@omnia/fx/stores").StoreAction<unknown, (userIdentity: string) => void, (result: boolean, userIdentity: string) => void, (failureReason: any, userIdentity: string) => void, (userIdentity: string) => Promise<boolean>>;
74
79
  ensurePublishingChannels: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise<Array<PublishingChannel>>>;
80
+ ensureTargetingChannels: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise<Array<PublishingChannel>>>;
75
81
  ensureLoadData: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
76
82
  ensureChannelPages: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<boolean>>;
77
83
  ensurePublishedChannelsByPageId: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<boolean>>;
78
84
  ensurePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (channelId: number) => void, (result: PublishingChannel, channelId: number) => void, (failureReason: any, channelId: number) => void, (channelId: number) => Promise<PublishingChannel>>;
79
- createPublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (result: PublishingChannel, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (failureReason: any, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>>;
85
+ createPublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (result: PublishingChannel, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (failureReason: any, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>>;
80
86
  updatePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (editRequest: PublishingChannel) => void, (result: PublishingChannel, editRequest: PublishingChannel) => void, (failureReason: any, editRequest: PublishingChannel) => void, (editRequest: PublishingChannel) => Promise<PublishingChannel>>;
81
87
  deletePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (channelId: PublishingChannelId) => void, (result: PublishingChannel, channelId: PublishingChannelId) => void, (failureReason: any, channelId: PublishingChannelId) => void, (channelId: PublishingChannelId) => Promise<PublishingChannel>>;
82
88
  getPageApprovalList: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: ChannelPage[]) => void, (failureReason: any) => void, () => Promise<Array<ChannelPage>>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "7.10.0-preview.19",
4
+ "version": "7.10.0-preview.20",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"