@omnia/wcm 7.10.0-preview.3 → 7.10.0-preview.31

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.
Files changed (63) hide show
  1. package/internal-do-not-import-from-here/core/Utils.d.ts +5 -1
  2. package/internal-do-not-import-from-here/core/loc/CoreLocalization.d.ts +7 -1
  3. package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +30 -4
  4. package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +3 -0
  5. package/internal-do-not-import-from-here/core/loc/PublishingAppLocalization.d.ts +49 -0
  6. package/internal-do-not-import-from-here/core/messaging/WcmPublicTopics.d.ts +3 -2
  7. package/internal-do-not-import-from-here/fx/filterengine/pagerollup/PageRollupFilterEngineContext.d.ts +3 -1
  8. package/internal-do-not-import-from-here/fx/helpers/ItemQueryHelper.d.ts +2 -0
  9. package/internal-do-not-import-from-here/fx/models/Constants.d.ts +1 -0
  10. package/internal-do-not-import-from-here/fx/models/Constants.js +2 -1
  11. package/internal-do-not-import-from-here/fx/models/Enums.d.ts +8 -0
  12. package/internal-do-not-import-from-here/fx/models/Enums.js +10 -1
  13. package/internal-do-not-import-from-here/fx/models/channels/PublishingChannel.d.ts +1 -0
  14. package/internal-do-not-import-from-here/fx/models/components/LinkPicker.d.ts +3 -1
  15. package/internal-do-not-import-from-here/fx/models/components/LinkPickerExtension.d.ts +2 -0
  16. package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +2 -0
  17. package/internal-do-not-import-from-here/fx/models/components/PageRollupBlock.d.ts +1 -0
  18. package/internal-do-not-import-from-here/fx/models/components/PageRollupBlockStyles.d.ts +1 -0
  19. package/internal-do-not-import-from-here/fx/models/linkpicker/ILinkPickerProvider.d.ts +1 -0
  20. package/internal-do-not-import-from-here/fx/models/navigation/LinkNavigationData.d.ts +3 -1
  21. package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupQuery.d.ts +3 -0
  22. package/internal-do-not-import-from-here/fx/models/pages/ApprovalRequestInfo.d.ts +5 -0
  23. package/internal-do-not-import-from-here/fx/models/pages/ApprovalRequestInfo.js +6 -0
  24. package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.d.ts +2 -1
  25. package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.js +1 -0
  26. package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +1 -0
  27. package/internal-do-not-import-from-here/fx/models/pages/PageData.d.ts +1 -0
  28. package/internal-do-not-import-from-here/fx/models/pages/PageTypeData.d.ts +13 -10
  29. package/internal-do-not-import-from-here/fx/models/pages/PendingApprovalPage.d.ts +2 -0
  30. package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.d.ts +21 -0
  31. package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.js +40 -0
  32. package/internal-do-not-import-from-here/fx/models/publishingrule/PublishingRule.d.ts +3 -1
  33. package/internal-do-not-import-from-here/fx/models/publishingrule/PublishingRule.js +2 -0
  34. package/internal-do-not-import-from-here/fx/models/publishingrule/index.d.ts +1 -0
  35. package/internal-do-not-import-from-here/fx/models/publishingrule/index.js +1 -0
  36. package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.d.ts +21 -0
  37. package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.js +27 -0
  38. package/internal-do-not-import-from-here/fx/models/query/index.d.ts +1 -0
  39. package/internal-do-not-import-from-here/fx/models/query/index.js +1 -0
  40. package/internal-do-not-import-from-here/fx/models/variations/Variation.d.ts +5 -1
  41. package/internal-do-not-import-from-here/fx/models/variations/VariationCreationRequest.d.ts +3 -3
  42. package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +1 -1
  43. package/internal-do-not-import-from-here/fx/services/ChannelManagementService.d.ts +2 -1
  44. package/internal-do-not-import-from-here/fx/services/DocumentService.d.ts +1 -0
  45. package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +1 -1
  46. package/internal-do-not-import-from-here/fx/services/PageService.d.ts +1 -2
  47. package/internal-do-not-import-from-here/fx/services/PublishingRuleService.d.ts +1 -1
  48. package/internal-do-not-import-from-here/fx/shared/OmniaSearchQueryUtils.d.ts +1 -0
  49. package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +2 -0
  50. package/internal-do-not-import-from-here/fx/stores/ChannelManagementStore.d.ts +7 -1
  51. package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +3 -2
  52. package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +13 -1
  53. package/internal-do-not-import-from-here/fx/stores/PublishingRuleStore.d.ts +4 -4
  54. package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
  55. package/internal-do-not-import-from-here/models/publishingapp/approval/PageApproval.d.ts +16 -5
  56. package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.d.ts +3 -0
  57. package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.js +4 -1
  58. package/internal-do-not-import-from-here/models/publishingapp/editor/Messages.d.ts +4 -2
  59. package/internal-do-not-import-from-here/models/publishingapp/publish/PagePublish.d.ts +2 -1
  60. package/internal-do-not-import-from-here/models/publishingapp/publish/PagePublish.js +1 -0
  61. package/internal-do-not-import-from-here/models/security/Security.js +3 -0
  62. package/internal-do-not-import-from-here/wcdefinitions.json +1 -1
  63. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletionApprovalRuleResolver = exports.PublishApprovalRuleResolver = exports.ApprovalRuleResolver = void 0;
4
+ const pages_1 = require("../pages");
5
+ const PublishingRule_1 = require("./PublishingRule");
6
+ class ApprovalRuleResolver {
7
+ }
8
+ exports.ApprovalRuleResolver = ApprovalRuleResolver;
9
+ class PublishApprovalRuleResolver {
10
+ constructor() {
11
+ this.type = pages_1.ApprovalRequestType.Publishing;
12
+ }
13
+ getApprovalData(versionedPageData) {
14
+ var _a;
15
+ return (_a = versionedPageData.pageData) === null || _a === void 0 ? void 0 : _a.approvalData;
16
+ }
17
+ isRuleDataMatched(rule) {
18
+ return rule.ruleData.type === PublishingRule_1.RuleTypes.Approval || rule.ruleData.type === PublishingRule_1.RuleTypes.MultipleApproval;
19
+ }
20
+ isValidToHaveApproval(currentPage) {
21
+ return currentPage && currentPage.currentPage.pageType === pages_1.WCMPageTypes.plainPage && currentPage.currentVersion.versionData.versionType !== pages_1.VersionType.PublishedVersion;
22
+ }
23
+ }
24
+ exports.PublishApprovalRuleResolver = PublishApprovalRuleResolver;
25
+ class DeletionApprovalRuleResolver {
26
+ constructor() {
27
+ this.type = pages_1.ApprovalRequestType.Deletion;
28
+ }
29
+ getApprovalData(versionedPageData) {
30
+ var _a;
31
+ return (_a = versionedPageData.pageData) === null || _a === void 0 ? void 0 : _a.deletionApprovalData;
32
+ }
33
+ isRuleDataMatched(rule) {
34
+ return rule.ruleData.type === PublishingRule_1.RuleTypes.DeletionApproval || rule.ruleData.type === PublishingRule_1.RuleTypes.DeletionMultipleApproval;
35
+ }
36
+ isValidToHaveApproval(currentPage) {
37
+ return currentPage && currentPage.currentPage.pageType === pages_1.WCMPageTypes.plainPage;
38
+ }
39
+ }
40
+ exports.DeletionApprovalRuleResolver = DeletionApprovalRuleResolver;
@@ -7,7 +7,9 @@ export declare enum RuleStatus {
7
7
  export declare enum RuleTypes {
8
8
  Schedule = 1,
9
9
  Approval = 2,
10
- MultipleApproval = 3
10
+ MultipleApproval = 3,
11
+ DeletionApproval = 4,
12
+ DeletionMultipleApproval = 5
11
13
  }
12
14
  export interface PublishingRuleData {
13
15
  type: RuleTypes;
@@ -12,4 +12,6 @@ var RuleTypes;
12
12
  RuleTypes[RuleTypes["Schedule"] = 1] = "Schedule";
13
13
  RuleTypes[RuleTypes["Approval"] = 2] = "Approval";
14
14
  RuleTypes[RuleTypes["MultipleApproval"] = 3] = "MultipleApproval";
15
+ RuleTypes[RuleTypes["DeletionApproval"] = 4] = "DeletionApproval";
16
+ RuleTypes[RuleTypes["DeletionMultipleApproval"] = 5] = "DeletionMultipleApproval";
15
17
  })(RuleTypes = exports.RuleTypes || (exports.RuleTypes = {}));
@@ -2,3 +2,4 @@ export * from "./PublishingRule";
2
2
  export * from "./PageVersionPublishingRules";
3
3
  export * from "./SendBackPageInfo";
4
4
  export * from "./ApprovePageInfo";
5
+ export * from "./ApprovalRuleResolver";
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./PublishingRule"), exports);
5
5
  tslib_1.__exportStar(require("./PageVersionPublishingRules"), exports);
6
6
  tslib_1.__exportStar(require("./SendBackPageInfo"), exports);
7
7
  tslib_1.__exportStar(require("./ApprovePageInfo"), exports);
8
+ tslib_1.__exportStar(require("./ApprovalRuleResolver"), exports);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @deprecated Removed in 8.0. Use Omnia Enums instead.
3
+ */
4
+ export declare module ItemQueryEnums {
5
+ enum FilterLogicalOperator {
6
+ And = 1,
7
+ Or = 2
8
+ }
9
+ enum FilterOperator {
10
+ Eq = 1,
11
+ Ne = 2,
12
+ Lt = 3,
13
+ Gt = 4,
14
+ Le = 5,
15
+ Ge = 6,
16
+ In = 7,
17
+ Like = 8,
18
+ NotLike = 9,
19
+ Ba = 10
20
+ }
21
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /**
3
+ * @deprecated Removed in 8.0. Use Omnia Enums instead.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ItemQueryEnums = void 0;
7
+ var ItemQueryEnums;
8
+ (function (ItemQueryEnums) {
9
+ let FilterLogicalOperator;
10
+ (function (FilterLogicalOperator) {
11
+ FilterLogicalOperator[FilterLogicalOperator["And"] = 1] = "And";
12
+ FilterLogicalOperator[FilterLogicalOperator["Or"] = 2] = "Or";
13
+ })(FilterLogicalOperator = ItemQueryEnums.FilterLogicalOperator || (ItemQueryEnums.FilterLogicalOperator = {}));
14
+ let FilterOperator;
15
+ (function (FilterOperator) {
16
+ FilterOperator[FilterOperator["Eq"] = 1] = "Eq";
17
+ FilterOperator[FilterOperator["Ne"] = 2] = "Ne";
18
+ FilterOperator[FilterOperator["Lt"] = 3] = "Lt";
19
+ FilterOperator[FilterOperator["Gt"] = 4] = "Gt";
20
+ FilterOperator[FilterOperator["Le"] = 5] = "Le";
21
+ FilterOperator[FilterOperator["Ge"] = 6] = "Ge";
22
+ FilterOperator[FilterOperator["In"] = 7] = "In";
23
+ FilterOperator[FilterOperator["Like"] = 8] = "Like";
24
+ FilterOperator[FilterOperator["NotLike"] = 9] = "NotLike";
25
+ FilterOperator[FilterOperator["Ba"] = 10] = "Ba";
26
+ })(FilterOperator = ItemQueryEnums.FilterOperator || (ItemQueryEnums.FilterOperator = {}));
27
+ })(ItemQueryEnums = exports.ItemQueryEnums || (exports.ItemQueryEnums = {}));
@@ -1,3 +1,4 @@
1
1
  export * from "./ItemQuery";
2
2
  export * from "./PageQuery";
3
+ export * from "./ItemQueryEnums";
3
4
  export * from "./VariationQuery";
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./ItemQuery"), exports);
5
5
  tslib_1.__exportStar(require("./PageQuery"), exports);
6
+ tslib_1.__exportStar(require("./ItemQueryEnums"), exports);
6
7
  tslib_1.__exportStar(require("./VariationQuery"), exports);
@@ -22,6 +22,10 @@ export interface Variation {
22
22
  automaticMachineTranslation?: boolean;
23
23
  allowEditMachineTranslation?: boolean;
24
24
  activeRightToLeft?: boolean;
25
- editNotificationEnabled?: boolean;
25
+ editNotificationSettings?: VariationEditNotificationSettings;
26
+ }
27
+ export interface VariationEditNotificationSettings {
28
+ notifyVariationAuthorOnEdit?: boolean;
29
+ notifyPagePropertyUsersOnEdit?: boolean;
26
30
  editNotificationsUserPropertyId?: GuidValue;
27
31
  }
@@ -1,5 +1,6 @@
1
- import { MultilingualString, IIcon, Identity, GuidValue } from "@omnia/fx-models";
1
+ import { MultilingualString, IIcon, Identity } from "@omnia/fx-models";
2
2
  import { TargetingFilterProperty } from "@omnia/fx-sp";
3
+ import { VariationEditNotificationSettings } from "./Variation";
3
4
  export interface VariationCreationRequest {
4
5
  displayNames: MultilingualString;
5
6
  targetingFilterData: TargetingFilterProperty;
@@ -10,6 +11,5 @@ export interface VariationCreationRequest {
10
11
  * */
11
12
  author?: Identity;
12
13
  authors?: Array<Identity>;
13
- editNotificationEnabled?: boolean;
14
- editNotificationsUserPropertyId?: GuidValue;
14
+ editNotificationSettings: VariationEditNotificationSettings;
15
15
  }
@@ -22,7 +22,7 @@ export declare class WcmRouter {
22
22
  private loadTreeForPath;
23
23
  navigate<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, forceToNewNavigationState?: boolean): Promise<T>;
24
24
  navigateWithVariationTargeting<T extends NavigationNode<NavigationData>>(to: T): Promise<T>;
25
- navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any): void;
25
+ navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, openEditor?: boolean): void;
26
26
  private buildRelativePath;
27
27
  private getTargetingVariation;
28
28
  onDisposing(): void;
@@ -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[]>;
@@ -5,4 +5,5 @@ export declare class DocumentService {
5
5
  getDocuments: (query: DocumentQuery) => Promise<DocumentQueryResult>;
6
6
  upload: (fileInfo: UploadDocumentInfo) => Promise<Document>;
7
7
  exists: (fileInfo: UploadDocumentInfo) => Promise<boolean>;
8
+ getSharePointDocumentDeepLink(spDocUrl: string): Promise<string | void>;
8
9
  }
@@ -51,7 +51,7 @@ export declare class NavigationService {
51
51
  [nodeId: number]: NavigationNode<NavigationData>;
52
52
  }>;
53
53
  getNavigationByNode: (node: NavigationNode<NavigationData>, nodeTypes?: NavigationDataType) => Promise<NavigationResult>;
54
- getNavigationByPath: (path: string, nodeTypes?: NavigationDataType) => Promise<NavigationResult>;
54
+ getNavigationByPath: (path: string, nodeTypes?: NavigationDataType, appInstanceId?: string) => Promise<NavigationResult>;
55
55
  getNodesByPageIds: (...args: Array<PageId>) => Promise<{
56
56
  [pageId: number]: PageNavigationNode<PageNavigationData>[];
57
57
  }>;
@@ -4,7 +4,6 @@ import { ApiResponse, GuidValue } from "@omnia/fx-models";
4
4
  import { VersionReference } from "../models";
5
5
  import { NavigationPosition } from "../models/navigation/NavigationPosition";
6
6
  import { CreatedPageWithNavigationInfo, CreatedPageInfo } from "../models";
7
- import { PagePermissionInfo } from "../models";
8
7
  import { EnterprisePropertyStore } from "@omnia/fx/stores";
9
8
  import { InvitationOfAuthor } from "../../models";
10
9
  export declare class PageService {
@@ -16,7 +15,7 @@ export declare class PageService {
16
15
  private readonly baseUrl;
17
16
  private readonly reusablePageBaseUrl;
18
17
  createVariationPage: <T extends PageData>(pageData: T, originalPageId: PageId, variationId: VariationId) => Promise<CreatedPageInfo<T>>;
19
- updatePagePermissions: (pageId: PageId, permissionInfo: PagePermissionInfo, variationId?: VariationId) => Promise<void>;
18
+ updatePagePermissions: (pageId: PageId, variationId?: VariationId) => Promise<void>;
20
19
  createWithNavigation: <T extends PageData>(creationRequest: PageWithNavigationCreationRequest, targetPublishingAppId?: GuidValue, targetVariationId?: string) => Promise<CreatedPageWithNavigationInfo<T>>;
21
20
  move: <T extends NavigationNode<NavigationData>>(nodeToMove: T, newPosition: NavigationPosition) => Promise<MovePagesResult>;
22
21
  movePageTypeToTenant: (page: Page) => Promise<PageNavigationNode<PageNavigationData>>;
@@ -9,7 +9,7 @@ export declare class PublishingRuleService {
9
9
  [pageId: number]: PublishingRule<PublishingRuleData>[];
10
10
  }>;
11
11
  updateRule: (rule: PublishingRule) => Promise<PublishingRule>;
12
- cancelApproval: (rule: PublishingRule<ApprovalRuleData>) => Promise<Array<PublishingRule>>;
12
+ cancelApproval: (rule: PublishingRule) => Promise<Array<PublishingRule>>;
13
13
  approveApproval: (approvePageInfo: ApprovePageInfo) => Promise<PublishingRule<ApprovalRuleData>[]>;
14
14
  rejectApproval: (rejectPageInfo: RejectPageInfo) => Promise<Array<PublishingRule>>;
15
15
  sendBackApproval: (sendBackPageInfo: SendBackPageInfo) => Promise<PublishingRule>;
@@ -5,4 +5,5 @@ export declare class OmniaSearchQueryUtils {
5
5
  static getPropertyName(propertyName: string, isDisplay: boolean, enterpriseProperties: Array<EnterprisePropertyDefinition>, querableProperties: Array<EnterprisePropertyDefinition>, checkIsValid?: boolean): string;
6
6
  static getPropertyValue(objectValue: any, propertyName: string, enterpriseProperties: Array<EnterprisePropertyDefinition>): any;
7
7
  private static isDateTimeStampProperty;
8
+ private static camelizeAZFilteringProperty;
8
9
  }
@@ -40,6 +40,7 @@ declare class InternalPageRollupStoreHelper {
40
40
  private userIdentityStore;
41
41
  private navigationStore;
42
42
  private pickedPageHelper;
43
+ private enterprisePropertyService;
43
44
  private resolvablePageRollupInNP;
44
45
  private pageRollupInstancesInNP;
45
46
  private pageRollupInstances;
@@ -146,6 +147,7 @@ declare class InternalPageRollupStoreHelper {
146
147
  private ensureLoadPageTypesOfInstance;
147
148
  private ensureLoadPageTypes;
148
149
  private ensureLanguageSettings;
150
+ isAZFilteringProperty(internalName: string): boolean;
149
151
  }
150
152
  export declare class PageRollupStoreHelper {
151
153
  private internal;
@@ -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>>>;
@@ -1,6 +1,6 @@
1
- import { Store } from "@omnia/fx/stores";
2
- import { Page, VersionedPageData, PageData, VersionReference, PageId, VersionId, IPageVersion } from "../models";
3
1
  import { Layout } from "@omnia/fx-models";
2
+ import { Store } from "@omnia/fx/stores";
3
+ import { IPageVersion, Page, PageData, PageId, VersionedPageData, VersionId, VersionReference } from "../models";
4
4
  export interface ICurrentPageState {
5
5
  /**
6
6
  * Reference to the current page
@@ -160,6 +160,7 @@ export declare class CurrentPageStore extends Store {
160
160
  private isCurrentVersion;
161
161
  private createVersionRefForVersion;
162
162
  private getPageFromStore;
163
+ private checkPermission;
163
164
  private getPageVersionByRules;
164
165
  private ensureCalculatedProperties;
165
166
  private resetState;
@@ -1,5 +1,6 @@
1
+ import { Refinement, Refiner } from "@omnia/fx-models";
1
2
  import { Store } from "@omnia/fx/stores";
2
- import { ExportQueryPagesRequest, ExportQueryPagesResult, PageDetailQueryResult, PageDialogData, PageDialogPropertiesMapping, PageNavigationData, PageNavigationNode, PageRollupQuery, PageTypeTitle } from "@omnia/wcm/models";
3
+ import { BatchedPagesResult, ExportQueryPagesRequest, ExportQueryPagesResult, PageDetailQueryResult, PageDialogData, PageDialogPropertiesMapping, PageNavigationData, PageNavigationNode, PageRollupQuery, PageTypeTitle } from "@omnia/wcm/models";
3
4
  export interface PageRollupQueryResult extends PageRollupQuery {
4
5
  selectProperties: Array<string>;
5
6
  disableDistinct: boolean;
@@ -22,6 +23,7 @@ export declare class PageRollupStore extends Store {
22
23
  private wcmRouter;
23
24
  private pagesStore;
24
25
  private pageService;
26
+ private enterprisePropertyService;
25
27
  private appsLoc;
26
28
  /**
27
29
  * State
@@ -29,6 +31,9 @@ export declare class PageRollupStore extends Store {
29
31
  pages: import("@omnia/fx/stores").StoreState<{
30
32
  [uniqueKey: string]: PageDetailQueryResult[];
31
33
  }>;
34
+ pageRefiners: import("@omnia/fx/stores").StoreState<{
35
+ [uniqueKey: string]: Refiner<Refinement>[];
36
+ }>;
32
37
  pagesLoadingStatus: import("@omnia/fx/stores").StoreState<{
33
38
  [uniqueKey: string]: boolean;
34
39
  }>;
@@ -62,6 +67,7 @@ export declare class PageRollupStore extends Store {
62
67
  */
63
68
  getters: {
64
69
  pages: (uniqueKey: string, excludeVariationUrl: boolean) => PageDetailQueryResult[];
70
+ pageRefiners: (uniqueKey: string) => Refiner<Refinement>[];
65
71
  pagesIndexedDB: (uniqueKey: string) => Promise<Array<PageDetailQueryResult>>;
66
72
  total: (uniqueKey: string, showMetric: boolean) => number;
67
73
  errorMsg: (uniqueKey: string) => string;
@@ -86,6 +92,12 @@ export declare class PageRollupStore extends Store {
86
92
  */
87
93
  mutations: {
88
94
  addOrUpdateBatchedPages: import("@omnia/fx/stores").StoreMutation<(data: BatchPageRollupQueryResult, clientCaching: boolean) => void, (data: BatchPageRollupQueryResult, clientCaching: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
95
+ addOrUpdatePageRefiners: import("@omnia/fx/stores").StoreMutation<(batchQueryResult: {
96
+ [queryId: string]: BatchedPagesResult;
97
+ }) => void, (batchQueryResult: {
98
+ [queryId: string]: BatchedPagesResult;
99
+ }) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
100
+ clearPageRefiners: import("@omnia/fx/stores").StoreMutation<(queryId: string) => void, (queryId: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
89
101
  addOrUpdateIndexedDBPages: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, pages: Array<PageDetailQueryResult>) => void, (uniqueKey: string, pages: PageDetailQueryResult[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
90
102
  updatePageTypes: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, pageTypes: Array<PageTypeTitle>) => void, (uniqueKey: string, pageTypes: PageTypeTitle[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
91
103
  updatePublishingChannelSettings: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, channelsId: Array<string>) => void, (uniqueKey: string, channelsId: string[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
@@ -1,7 +1,7 @@
1
1
  import { NotificationMessage } from "@omnia/fx-models";
2
2
  import { Store } from "@omnia/fx/stores";
3
3
  import { ApprovalRequest, ApprovalRuleData } from "../../models";
4
- import { ApprovePageInfo, PageId, PublishingRule, PublishingRuleData, SendBackPageInfo } from "../models";
4
+ import { ApprovePageInfo, PageId, PublishingRule, PublishingRuleData, ApprovalRuleResolver, SendBackPageInfo } from "../models";
5
5
  import { ApprovalData } from "internal/fx/models";
6
6
  import { RejectPageInfo } from "../models/publishingrule/RejectPageInfo";
7
7
  export declare class PublishingRuleStore extends Store {
@@ -35,8 +35,8 @@ export declare class PublishingRuleStore extends Store {
35
35
  [pageId: number]: PublishingRule<PublishingRuleData>[];
36
36
  }>) => void) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
37
37
  isPublishingRuleExisted: (pageId: PageId) => boolean;
38
- canCancelApproval: (pageId: PageId, approvalData: ApprovalData) => boolean;
39
- canApproveOrReject: (pageId: PageId, defaultPageCollectionApprovalData: ApprovalData) => boolean;
38
+ canCancelApproval: (pageId: PageId, approvalData: ApprovalData, resolver?: ApprovalRuleResolver) => boolean;
39
+ canApproveOrReject: (pageId: PageId, defaultPageCollectionApprovalData: ApprovalData, resolver?: ApprovalRuleResolver) => boolean;
40
40
  isEditableApprovalStep: (pageId: PageId) => boolean;
41
41
  };
42
42
  mutations: {
@@ -47,7 +47,7 @@ export declare class PublishingRuleStore extends Store {
47
47
  ensurePageRules: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId, forceRefresh?: boolean) => void, (result: void, pageId: PageId, forceRefresh?: boolean) => void, (failureReason: any, pageId: PageId, forceRefresh?: boolean) => void, (pageId: PageId, forceRefresh?: boolean) => Promise<void>>;
48
48
  getAllPageRules: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: unknown, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<unknown>>;
49
49
  sendApprovalRequest: import("@omnia/fx/stores").StoreAction<unknown, (request: ApprovalRequest) => void, (result: PublishingRule<ApprovalRuleData>[], request: ApprovalRequest) => void, (failureReason: any, request: ApprovalRequest) => void, (request: ApprovalRequest) => Promise<PublishingRule<ApprovalRuleData>[]>>;
50
- cancelApproval: import("@omnia/fx/stores").StoreAction<unknown, (ruleData: PublishingRule<ApprovalRuleData>) => void, (result: PublishingRule<PublishingRuleData>[], ruleData: PublishingRule<ApprovalRuleData>) => void, (failureReason: any, ruleData: PublishingRule<ApprovalRuleData>) => void, (ruleData: PublishingRule<ApprovalRuleData>) => Promise<Array<PublishingRule>>>;
50
+ cancelApproval: import("@omnia/fx/stores").StoreAction<unknown, (ruleData: PublishingRule<PublishingRuleData>) => void, (result: PublishingRule<PublishingRuleData>[], ruleData: PublishingRule<PublishingRuleData>) => void, (failureReason: any, ruleData: PublishingRule<PublishingRuleData>) => void, (ruleData: PublishingRule) => Promise<Array<PublishingRule>>>;
51
51
  approve: import("@omnia/fx/stores").StoreAction<unknown, (approvePageInfo: ApprovePageInfo) => void, (result: PublishingRule<ApprovalRuleData>[], approvePageInfo: ApprovePageInfo) => void, (failureReason: any, approvePageInfo: ApprovePageInfo) => void, (approvePageInfo: ApprovePageInfo) => Promise<PublishingRule<ApprovalRuleData>[]>>;
52
52
  reject: import("@omnia/fx/stores").StoreAction<unknown, (rejectPageInfo: RejectPageInfo) => void, (result: PublishingRule<PublishingRuleData>[], rejectPageInfo: RejectPageInfo) => void, (failureReason: any, rejectPageInfo: RejectPageInfo) => void, (rejectPageInfo: RejectPageInfo) => Promise<Array<PublishingRule>>>;
53
53
  addRule: import("@omnia/fx/stores").StoreAction<unknown, (ruleData: PublishingRuleData, pageId: PageId) => void, (result: PublishingRule<PublishingRuleData>, ruleData: PublishingRuleData, pageId: PageId) => void, (failureReason: any, ruleData: PublishingRuleData, pageId: PageId) => void, (ruleData: PublishingRuleData, pageId: PageId) => Promise<PublishingRule>>;
@@ -1 +1 @@
1
- {"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['73f0116c-212c-4912-b780-d8df4ea3d78b']","content":{"./node_modules/@omnia/wcm/models/index.js":{"id":"0044f6fa-6f28-4130-9b07-649c0ab06fca","buildMeta":{"exportsType":"namespace"},"expo.js":["AccordionBlockStyles","ActionButtonLinkHandlerTargets","ActionButtonType","ActivityActionTypes","ActivityFeedScopes","ActivityType","AiContentReportPageStatus","AiContentReportStatus","AnalyticsReportColumnConstants","AnyoneApprovalData","AnyoneApprovalStep","ApplySettingsChangedStatus","ApprovalData","ApprovalMetaData","ApprovalStep","ApprovalType","AutomaticPageCreationStatusType","AvatarPosition","AvatarSize","BannerBlockStyles","BannerLayout","BreadcrumbBlockStyles","BuildInContentBlockTextStyleFormatting","ButtonGroupings","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChannelCardViewStyles","ChannelRollupBlockAdministrationViewStyles","ChannelRollupBlockSettingsFilterTabStyles","ChannelRollupBlockSettingsGeneralTabStyles","ChannelRollupBlockStyles","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DatePeriods","DeletedPageDialogStyles","DigitalSignageConstants","DigitalSignageManifests","DigitalSignageQuerySettingsType","DigitalSigningScreenType","Directions","DistributionChannelType","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertiesRichTextSettings","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventAttedeeType","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","FileUploaderWCMPageContext","FilterKey","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","LabelPositions","LimitedUserApprovalData","LimitedUserApprovalStep","LinkPickerStyle","ListView","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MediaPickerStorageProviderWCMChannelAdminContext","MediaRollupConstants","MediaRollupStyles","MediaRollupThumbnailSize","MediaRollupType","MegaMenuStyles","MessageType","MicrosoftSearch","MobileNavigationNodeStyles","MobileNavigationStyles","MonthlyRecurrenceTypeEnums","MoveNavigationNodeType","MovePageCollectionDialogStyles","MovePageStatus","MsSearchFieldsConstants","MultiApprovalData","NavigationDataType","NavigationNodeQuery","NavigationNodeStyles","NavigationNodeType","NavigationRenders","NodeId","OmniaSearchConstants","OpenDocumentOptions","Operator","OutlookCalendarType","PageBuiltInColumnConstants","PageCalendarViewMode","PageCollectionDisplaySettings","PageCollectionPropertyDefinition","PageCollectionPropertyDefinitionId","PageCollectionPropertyValue","PageCollectionTopic","PageDataType","PageFeedbackBlockStyles","PageFeedbackDialogStyles","PageFeedbacksStyles","PageFile","PageId","PageItemTemplateStyles","PageMoveTypes","PageNavigationDirection","PagePickerNodeStyles","PagePickerProviderStyles","PagePropertiesBlockAdvancedStyles","PagePropertiesBlockStyles","PageRollUpDialogViewStyles","PageRollupBlockCalendarViewSettingsStyles","PageRollupBlockCalendarViewStyles","PageRollupBlockCardViewSettingsStyles","PageRollupBlockListViewSettingsStyles","PageRollupBlockListViewViewStyles","PageRollupBlockListingWithImageViewViewStyles","PageRollupBlockRollerViewViewStyles","PageRollupBlockSettingsFilterTabStyles","PageRollupBlockSettingsGeneralTabStyles","PageRollupBlockStyles","PageRollupConstants","PageRollupEnums","PageRollupFilterEngineContextPropertyTypes","PageRollupListViewSettingsStyles","PageRollupListViewStyles","PageRollupListingPickedPagesStyles","PageRollupNavigationViewStyles","PageRollupNewsletterViewStyles","PageRollupPickedPagesDialogStyles","PageRollupUniqueUsersDetailsStyles","PageTopic","PageTypeDisplaySettings","PageTypePropertyDefinition","PageTypePropertyDefinitionId","PageTypePropertyValue","PagesDashboardSettingsStyles","PagingTypes","Parameters","ParticipantType","PendingFileStatus","PersonPropertyApprovalData","PersonPropertyApprovalStep","PhotowallView","PublishingAppArchiveSettingsRouteProperty","PublishingAppBootRouteProperty","PublishingAppDisplaySettings","PublishingAppLayoutDefinition","PublishingAppPropertyDefinition","PublishingAppPropertyDefinitionId","PublishingAppPropertyValue","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","PublishingChannelId","PublishingChannelTopic","PublishingStatus","QrCodeStyles","QueryScope","QueryValueOptions","RecurrenceTypeEnums","RelatedLinkAddHeadingDialogStyles","RelatedLinkBlockStyles","RelatedLinkEditFormStyles","ReportTypesEnum","ResourceEvaluators","ReusablePageStatusType","ReuseContentMode","RoleDefinitions","RootService","RssReaderBlockLeftImageViewStyles","RssReaderBlockNoImageViewStyles","RssReaderBlockStyles","RuleStatus","RuleTypes","ScheduleEndTypeEnums","SearchTemplateOmniaPageStyles","SelectedPageItemStyles","SharePointLibrary","SharepointPageTemplateStyles","SignOffRequestBlockStyles","SignOffRequestConstants","SortByProperties","SpsSearch","StatisticsPerPageDataSourcesEnum","TableView","TagTopic","TaxonomyFilterType","TaxonomyNavigationStyles","TaxonomyTopic","TermDrivenApprovalData","TermDrivenApprovalStep","TimePeriod","TopicInformationType","TopicType","UserTopic","ValidationArchivePageResult","VariationId","VariationInputStyles","VariationsRouteProperty","VersionComparisonType","VersionId","VersionMetaData","VersionType","VersionUpdationMode","VideoType","WCMEnterpriseProperties","WCMFxLocalization","WCMGlossary","WCMGlossaryType","WCMGlossaryVariation","WCMNavigationDataTypes","WCMPageIdCustomPropertyName","WCMPageTypes","WCMReaderContext","WcmAppDefaultResourceUrl","WcmEditorDynamicNavigationRouteProperty","WcmExtension","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WebBrowserDigitalSigningScreenStepType","WebsiteQueryType","WeekOfMonthEnums","WelcomeBlockStyles","WorkplaceService","YammerProperties","layoutItemAction"]}}}
1
+ {"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['73f0116c-212c-4912-b780-d8df4ea3d78b']","content":{"./node_modules/@omnia/wcm/models/index.js":{"id":"0044f6fa-6f28-4130-9b07-649c0ab06fca","buildMeta":{"exportsType":"namespace"},"expo.js":["AccordionBlockStyles","ActionButtonLinkHandlerTargets","ActionButtonType","ActivityActionTypes","ActivityFeedScopes","ActivityType","AiContentReportPageStatus","AiContentReportStatus","AnalyticsReportColumnConstants","AnyoneApprovalData","AnyoneApprovalStep","ApplySettingsChangedStatus","ApprovalData","ApprovalMetaData","ApprovalRequestType","ApprovalRuleResolver","ApprovalStep","ApprovalType","AutomaticPageCreationStatusType","AvatarPosition","AvatarSize","BannerBlockStyles","BannerLayout","BreadcrumbBlockStyles","BuildInContentBlockTextStyleFormatting","ButtonGroupings","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChannelCardViewStyles","ChannelRollupBlockAdministrationViewStyles","ChannelRollupBlockSettingsFilterTabStyles","ChannelRollupBlockSettingsGeneralTabStyles","ChannelRollupBlockStyles","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DatePeriods","DeletedPageDialogStyles","DeletionApprovalRuleResolver","DigitalSignageConstants","DigitalSignageManifests","DigitalSignageQuerySettingsType","DigitalSigningScreenType","Directions","DistributionChannelType","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertiesRichTextSettings","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventAttedeeType","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","FileUploaderWCMPageContext","FilterKey","GetRoleDefinitions","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","ItemQueryEnums","LabelPositions","LimitedUserApprovalData","LimitedUserApprovalStep","LinkPickerStyle","ListView","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MediaPickerStorageProviderWCMChannelAdminContext","MediaRollupConstants","MediaRollupStyles","MediaRollupThumbnailSize","MediaRollupType","MegaMenuStyles","MessageType","MicrosoftSearch","MobileNavigationNodeStyles","MobileNavigationStyles","MonthlyRecurrenceTypeEnums","MoveNavigationNodeType","MovePageCollectionDialogStyles","MovePageStatus","MsSearchFieldsConstants","MultiApprovalData","NavigationDataType","NavigationNodeQuery","NavigationNodeStyles","NavigationNodeType","NavigationRenders","NodeId","OmniaSearchConstants","OpenDocumentOptions","Operator","OutlookCalendarType","PageBuiltInColumnConstants","PageCalendarViewMode","PageCollectionDisplaySettings","PageCollectionPropertyDefinition","PageCollectionPropertyDefinitionId","PageCollectionPropertyValue","PageCollectionTopic","PageDataType","PageFeedbackBlockStyles","PageFeedbackDialogStyles","PageFeedbacksStyles","PageFile","PageId","PageItemTemplateStyles","PageMoveTypes","PageNavigationDirection","PagePickerNodeStyles","PagePickerProviderStyles","PagePropertiesBlockAdvancedStyles","PagePropertiesBlockStyles","PageRollUpDialogViewStyles","PageRollupBlockCalendarViewSettingsStyles","PageRollupBlockCalendarViewStyles","PageRollupBlockCardViewSettingsStyles","PageRollupBlockListViewSettingsStyles","PageRollupBlockListViewViewStyles","PageRollupBlockListingWithImageViewViewStyles","PageRollupBlockRollerViewViewStyles","PageRollupBlockSettingsFilterTabStyles","PageRollupBlockSettingsGeneralTabStyles","PageRollupBlockStyles","PageRollupConstants","PageRollupEnums","PageRollupFilterEngineContextPropertyTypes","PageRollupListViewSettingsStyles","PageRollupListViewStyles","PageRollupListingPickedPagesStyles","PageRollupNavigationViewStyles","PageRollupNewsletterViewStyles","PageRollupPickedPagesDialogStyles","PageRollupUniqueUsersDetailsStyles","PageTopic","PageTypeDisplaySettings","PageTypePropertyDefinition","PageTypePropertyDefinitionId","PageTypePropertyValue","PagesDashboardSettingsStyles","PagingTypes","Parameters","ParticipantType","PendingFileStatus","PersonPropertyApprovalData","PersonPropertyApprovalStep","PhotowallView","PublishApprovalRuleResolver","PublishingAppArchiveSettingsRouteProperty","PublishingAppBootRouteProperty","PublishingAppDisplaySettings","PublishingAppLayoutDefinition","PublishingAppPropertyDefinition","PublishingAppPropertyDefinitionId","PublishingAppPropertyValue","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","PublishingChannelId","PublishingChannelTopic","PublishingStatus","QrCodeStyles","QueryScope","QueryValueOptions","RecurrenceTypeEnums","RelatedLinkAddHeadingDialogStyles","RelatedLinkBlockStyles","RelatedLinkEditFormStyles","ReportTypesEnum","ResourceEvaluators","ReusablePageStatusType","ReuseContentMode","RoleDefinitions","RootService","RssReaderBlockLeftImageViewStyles","RssReaderBlockNoImageViewStyles","RssReaderBlockStyles","RuleStatus","RuleTypes","ScheduleEndTypeEnums","SearchTemplateOmniaPageStyles","SelectedPageItemStyles","SharePointLibrary","SharepointPageTemplateStyles","SignOffRequestBlockStyles","SignOffRequestConstants","SortByProperties","SpsSearch","StatisticsPerPageDataSourcesEnum","TableView","TagTopic","TaxonomyFilterType","TaxonomyNavigationStyles","TaxonomyTopic","TermDrivenApprovalData","TermDrivenApprovalStep","TimePeriod","TopicInformationType","TopicType","UserTopic","ValidationArchivePageResult","VariationId","VariationInputStyles","VariationsRouteProperty","VersionComparisonType","VersionId","VersionMetaData","VersionType","VersionUpdationMode","VideoType","WCMEnterpriseProperties","WCMFxLocalization","WCMGlossary","WCMGlossaryType","WCMGlossaryVariation","WCMNavigationDataTypes","WCMPageIdCustomPropertyName","WCMPageTypes","WCMReaderContext","WcmAppDefaultResourceUrl","WcmEditorDynamicNavigationRouteProperty","WcmExtension","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WebBrowserDigitalSigningScreenStepType","WebsiteQueryType","WeekOfMonthEnums","WelcomeBlockStyles","WorkplaceService","YammerProperties","layoutItemAction"]}}}
@@ -1,5 +1,5 @@
1
1
  import { Identity, GuidValue } from "@omnia/fx-models";
2
- import { PublishingRuleData, RuleTypes } from "@omnia/wcm/models";
2
+ import { ApprovalRequestType, PublishingRuleData, RuleTypes } from "@omnia/wcm/models";
3
3
  import { PublishMode } from "../publish";
4
4
  export declare enum ApprovalAction {
5
5
  Undefined = 0,
@@ -8,8 +8,7 @@ export declare enum ApprovalAction {
8
8
  Cancel = 3,
9
9
  SendBack = 4
10
10
  }
11
- export interface ApprovalRuleData extends PublishingRuleData {
12
- type: RuleTypes.Approval;
11
+ export interface SingleStepApprovalRuleData extends PublishingRuleData {
13
12
  approver: Identity;
14
13
  requester: Identity;
15
14
  approvalAction: ApprovalAction;
@@ -18,13 +17,24 @@ export interface ApprovalRuleData extends PublishingRuleData {
18
17
  recipients?: string[];
19
18
  events: Array<ApprovalEvent>;
20
19
  }
21
- export interface MultipleApprovalRuleData extends PublishingRuleData {
22
- type: RuleTypes.MultipleApproval;
20
+ export interface MultipleStepApprovalRuleData extends PublishingRuleData {
23
21
  events: Array<ApprovalEvent>;
24
22
  isSendMail: boolean;
25
23
  recipients: Array<string>;
26
24
  scheduleDate: string;
27
25
  }
26
+ export interface ApprovalRuleData extends SingleStepApprovalRuleData {
27
+ type: RuleTypes.Approval;
28
+ }
29
+ export interface MultipleApprovalRuleData extends MultipleStepApprovalRuleData {
30
+ type: RuleTypes.MultipleApproval;
31
+ }
32
+ export interface DeletionSingleStepApprovalRuleData extends SingleStepApprovalRuleData {
33
+ type: RuleTypes.DeletionApproval;
34
+ }
35
+ export interface DeletionMultipleStepApprovalRuleData extends MultipleStepApprovalRuleData {
36
+ type: RuleTypes.DeletionMultipleApproval;
37
+ }
28
38
  export interface ApprovalStepAction extends ApprovalEvent {
29
39
  }
30
40
  export interface ApprovalEvent {
@@ -40,5 +50,6 @@ export interface ApprovalRequest {
40
50
  approver: Identity;
41
51
  message: string;
42
52
  publishMode: PublishMode;
53
+ approvalRequestType: ApprovalRequestType;
43
54
  stepId?: GuidValue;
44
55
  }
@@ -20,6 +20,7 @@ export declare const CreateDialogType: {
20
20
  };
21
21
  export declare const PageApprovalDialogType: {
22
22
  sendApprovalRequest: string;
23
+ sendDeletionApprovalRequest: string;
23
24
  approvePage: string;
24
25
  rejectPage: string;
25
26
  };
@@ -36,10 +37,12 @@ export declare const ActionButtonIds: {
36
37
  approve: string;
37
38
  reject: string;
38
39
  cancelApproval: string;
40
+ cancelDeletionApproval: string;
39
41
  variationSelector: string;
40
42
  publishChannels: string;
41
43
  delete: string;
42
44
  save: string;
45
+ changeLinkType: string;
43
46
  };
44
47
  export declare const AppEditorActionButtonIds: {
45
48
  saveSettings: string;
@@ -23,6 +23,7 @@ exports.CreateDialogType = {
23
23
  };
24
24
  exports.PageApprovalDialogType = {
25
25
  sendApprovalRequest: "sendapprovalrequest",
26
+ sendDeletionApprovalRequest: "senddeletionapprovalrequest",
26
27
  approvePage: "approvepage",
27
28
  rejectPage: "rejectpage"
28
29
  };
@@ -39,10 +40,12 @@ exports.ActionButtonIds = {
39
40
  approve: "Approve",
40
41
  reject: "Reject",
41
42
  cancelApproval: "CancelApproval",
43
+ cancelDeletionApproval: "CancelDeletionApproval",
42
44
  variationSelector: "VariationSelector",
43
45
  publishChannels: "PublishChannels",
44
46
  delete: "Delete",
45
- save: "Save"
47
+ save: "Save",
48
+ changeLinkType: "ChangeLinkType",
46
49
  };
47
50
  exports.AppEditorActionButtonIds = {
48
51
  saveSettings: "saveSettings"
@@ -1,5 +1,6 @@
1
1
  import { LayoutItem } from "@omnia/fx-models";
2
2
  import { DialogAction } from "./ApprovalDialogAction";
3
+ import { LinkItem } from "@omnia/wcm/models";
3
4
  export interface CreateLayoutItemSettingsMessage {
4
5
  creationType: string;
5
6
  context?: any;
@@ -17,6 +18,7 @@ export interface PageScheduleMessage {
17
18
  export interface ShowApprovalDialogMessage {
18
19
  dialogAction: DialogAction;
19
20
  }
20
- export interface ShowPageReviewValidateFailedDialogMessage {
21
- failedProperties: Array<string>;
21
+ export interface LinkPickerDialogMessage {
22
+ link?: LinkItem;
23
+ actionSave?: Function;
22
24
  }
@@ -1,4 +1,5 @@
1
1
  export declare enum PublishMode {
2
2
  Publish = 0,
3
- PublishAndSendEmail = 1
3
+ PublishAndSendEmail = 1,
4
+ Deletion = 2
4
5
  }
@@ -5,4 +5,5 @@ var PublishMode;
5
5
  (function (PublishMode) {
6
6
  PublishMode[PublishMode["Publish"] = 0] = "Publish";
7
7
  PublishMode[PublishMode["PublishAndSendEmail"] = 1] = "PublishAndSendEmail";
8
+ PublishMode[PublishMode["Deletion"] = 2] = "Deletion";
8
9
  })(PublishMode = exports.PublishMode || (exports.PublishMode = {}));
@@ -103,6 +103,9 @@ class VariationSecurityResourceEvaluator {
103
103
  if (pageId) {
104
104
  yield this.pagesStore.actions.ensurePages.dispatch([pageId]);
105
105
  const page = this.pagesStore.getters.getPage(pageId);
106
+ if (!page) {
107
+ return "";
108
+ }
106
109
  return this.getResourceName(page.securityResourceId.toString(), variationId.toString());
107
110
  }
108
111
  return "";