@omnia/wcm 7.10.0-preview.6 → 7.10.0-preview.61

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 (84) 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 +8 -1
  3. package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +49 -2
  4. package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +7 -0
  5. package/internal-do-not-import-from-here/core/loc/PublishingAppLocalization.d.ts +59 -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/constants.d.ts +1 -0
  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 +2 -0
  10. package/internal-do-not-import-from-here/fx/models/Constants.js +5 -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/CalendarRollupBlockStyles.d.ts +1 -0
  15. package/internal-do-not-import-from-here/fx/models/components/LinkPicker.d.ts +21 -1
  16. package/internal-do-not-import-from-here/fx/models/components/LinkPicker.js +8 -1
  17. package/internal-do-not-import-from-here/fx/models/components/LinkPickerExtension.d.ts +2 -0
  18. package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +2 -0
  19. package/internal-do-not-import-from-here/fx/models/components/PageRollupBlock.d.ts +4 -0
  20. package/internal-do-not-import-from-here/fx/models/components/PageRollupBlockStyles.d.ts +1 -0
  21. package/internal-do-not-import-from-here/fx/models/document/DocumentDurableInfo.d.ts +13 -0
  22. package/internal-do-not-import-from-here/fx/models/document/DocumentDurableInfo.js +2 -0
  23. package/internal-do-not-import-from-here/fx/models/document/index.d.ts +1 -0
  24. package/internal-do-not-import-from-here/fx/models/document/index.js +4 -0
  25. package/internal-do-not-import-from-here/fx/models/index.d.ts +1 -0
  26. package/internal-do-not-import-from-here/fx/models/index.js +1 -0
  27. package/internal-do-not-import-from-here/fx/models/linkpicker/ILinkPickerProvider.d.ts +1 -0
  28. package/internal-do-not-import-from-here/fx/models/navigation/LinkNavigationData.d.ts +3 -1
  29. package/internal-do-not-import-from-here/fx/models/navigation/NavigationData.d.ts +2 -0
  30. package/internal-do-not-import-from-here/fx/models/navigation/NavigationData.js +2 -0
  31. package/internal-do-not-import-from-here/fx/models/navigation/TextNavigationData.d.ts +5 -0
  32. package/internal-do-not-import-from-here/fx/models/navigation/TextNavigationData.js +2 -0
  33. package/internal-do-not-import-from-here/fx/models/navigation/index.d.ts +1 -0
  34. package/internal-do-not-import-from-here/fx/models/navigation/index.js +1 -0
  35. package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.d.ts +3 -1
  36. package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.js +2 -0
  37. package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupQuery.d.ts +3 -0
  38. package/internal-do-not-import-from-here/fx/models/pages/ApprovalRequestInfo.d.ts +6 -0
  39. package/internal-do-not-import-from-here/fx/models/pages/ApprovalRequestInfo.js +6 -0
  40. package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.d.ts +2 -1
  41. package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.js +1 -0
  42. package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +1 -0
  43. package/internal-do-not-import-from-here/fx/models/pages/PageData.d.ts +1 -0
  44. package/internal-do-not-import-from-here/fx/models/pages/PagePermissionInfo.d.ts +1 -0
  45. package/internal-do-not-import-from-here/fx/models/pages/PageTypeData.d.ts +9 -6
  46. package/internal-do-not-import-from-here/fx/models/pages/PendingApprovalPage.d.ts +2 -0
  47. package/internal-do-not-import-from-here/fx/models/pages/RestorePageMessage.d.ts +1 -1
  48. package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.d.ts +21 -0
  49. package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.js +40 -0
  50. package/internal-do-not-import-from-here/fx/models/publishingrule/PublishingRule.d.ts +3 -1
  51. package/internal-do-not-import-from-here/fx/models/publishingrule/PublishingRule.js +2 -0
  52. package/internal-do-not-import-from-here/fx/models/publishingrule/index.d.ts +1 -0
  53. package/internal-do-not-import-from-here/fx/models/publishingrule/index.js +1 -0
  54. package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.d.ts +21 -0
  55. package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.js +27 -0
  56. package/internal-do-not-import-from-here/fx/models/query/index.d.ts +1 -0
  57. package/internal-do-not-import-from-here/fx/models/query/index.js +1 -0
  58. package/internal-do-not-import-from-here/fx/models/variations/Variation.d.ts +5 -1
  59. package/internal-do-not-import-from-here/fx/models/variations/VariationCreationRequest.d.ts +3 -3
  60. package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +1 -1
  61. package/internal-do-not-import-from-here/fx/services/ChannelManagementService.d.ts +2 -1
  62. package/internal-do-not-import-from-here/fx/services/DocumentService.d.ts +2 -1
  63. package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +2 -1
  64. package/internal-do-not-import-from-here/fx/services/PageService.d.ts +1 -2
  65. package/internal-do-not-import-from-here/fx/services/PublishingRuleService.d.ts +1 -1
  66. package/internal-do-not-import-from-here/fx/shared/OmniaSearchQueryUtils.d.ts +1 -0
  67. package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +6 -0
  68. package/internal-do-not-import-from-here/fx/stores/ChannelManagementStore.d.ts +7 -1
  69. package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +3 -2
  70. package/internal-do-not-import-from-here/fx/stores/NavigationStore.d.ts +2 -1
  71. package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +14 -0
  72. package/internal-do-not-import-from-here/fx/stores/PublishingRuleStore.d.ts +4 -4
  73. package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
  74. package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.manifest.json +1 -1
  75. package/internal-do-not-import-from-here/models/pagearchive/NavigationArchiveDependency.d.ts +1 -0
  76. package/internal-do-not-import-from-here/models/publishingapp/approval/PageApproval.d.ts +19 -5
  77. package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.d.ts +7 -0
  78. package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.js +8 -1
  79. package/internal-do-not-import-from-here/models/publishingapp/editor/Messages.d.ts +4 -2
  80. package/internal-do-not-import-from-here/models/publishingapp/publish/PagePublish.d.ts +2 -1
  81. package/internal-do-not-import-from-here/models/publishingapp/publish/PagePublish.js +1 -0
  82. package/internal-do-not-import-from-here/models/security/Security.js +3 -0
  83. package/internal-do-not-import-from-here/wcdefinitions.json +1 -1
  84. package/package.json +1 -1
@@ -3,6 +3,7 @@ import { VariationString } from "../variations";
3
3
  export declare class NavigationRenders {
4
4
  static page: GuidValue;
5
5
  static link: GuidValue;
6
+ static text: GuidValue;
6
7
  }
7
8
  /**
8
9
  * This is no enum, it's only used to get typying and compile errors.
@@ -17,6 +18,7 @@ export declare class WCMNavigationDataTypes {
17
18
  static pageType: NavigationDataType;
18
19
  static pageCollection: NavigationDataType;
19
20
  static link: NavigationDataType;
21
+ static text: NavigationDataType;
20
22
  static all: NavigationDataType;
21
23
  }
22
24
  export interface NavigationData {
@@ -7,6 +7,7 @@ class NavigationRenders {
7
7
  exports.NavigationRenders = NavigationRenders;
8
8
  NavigationRenders.page = new fx_models_1.Guid("5f707a83-4594-4218-8569-30b26d67948e");
9
9
  NavigationRenders.link = new fx_models_1.Guid("2b416031-3750-4328-ae8e-41a0508939b1");
10
+ NavigationRenders.text = new fx_models_1.Guid("bba74694-d327-47a8-bc16-34a51439c87b");
10
11
  /**
11
12
  * This is no enum, it's only used to get typying and compile errors.
12
13
  * */
@@ -26,5 +27,6 @@ WCMNavigationDataTypes.page = 1;
26
27
  WCMNavigationDataTypes.pageType = 2;
27
28
  WCMNavigationDataTypes.pageCollection = 4;
28
29
  WCMNavigationDataTypes.link = 8;
30
+ WCMNavigationDataTypes.text = 16;
29
31
  //const int FutureReserved = 4096;
30
32
  WCMNavigationDataTypes.all = ~0;
@@ -0,0 +1,5 @@
1
+ import { MultilingualString } from "@omnia/fx-models";
2
+ import { NavigationData, INavigationOptions } from ".";
3
+ export interface TextNavigationData extends NavigationData, INavigationOptions {
4
+ title: MultilingualString;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,6 +14,7 @@ export * from "./MoveNavigationNodeResult";
14
14
  export * from "./MovePageCollectionResult";
15
15
  export * from "./NodeState";
16
16
  export * from "./LinkNavigationData";
17
+ export * from "./TextNavigationData";
17
18
  export * from "./INavigationOptions";
18
19
  export * from "./CurrentNavigationStatus";
19
20
  export * from "./AbsoluteNavigationNode";
@@ -18,6 +18,7 @@ tslib_1.__exportStar(require("./MoveNavigationNodeResult"), exports);
18
18
  tslib_1.__exportStar(require("./MovePageCollectionResult"), exports);
19
19
  tslib_1.__exportStar(require("./NodeState"), exports);
20
20
  tslib_1.__exportStar(require("./LinkNavigationData"), exports);
21
+ tslib_1.__exportStar(require("./TextNavigationData"), exports);
21
22
  tslib_1.__exportStar(require("./INavigationOptions"), exports);
22
23
  tslib_1.__exportStar(require("./CurrentNavigationStatus"), exports);
23
24
  tslib_1.__exportStar(require("./AbsoluteNavigationNode"), exports);
@@ -1,5 +1,6 @@
1
1
  export declare module PageRollupEnums {
2
2
  enum DatePeriods {
3
+ NoLimit = 0,
3
4
  OneWeekFromToday = 1,
4
5
  TwoWeeksFromToday = 2,
5
6
  OneMonthFromToday = 3,
@@ -46,7 +47,8 @@ export declare module PageRollupEnums {
46
47
  WaitingForApproval = 2,
47
48
  ScheduleForPublishing = 4,
48
49
  UnpublishedChanges = 8,
49
- ScheduleForArchiving = 16
50
+ ScheduleForArchiving = 16,
51
+ WaitingForDeletion = 32
50
52
  }
51
53
  enum VersionStatus {
52
54
  Any = 0,
@@ -5,6 +5,7 @@ var PageRollupEnums;
5
5
  (function (PageRollupEnums) {
6
6
  let DatePeriods;
7
7
  (function (DatePeriods) {
8
+ DatePeriods[DatePeriods["NoLimit"] = 0] = "NoLimit";
8
9
  DatePeriods[DatePeriods["OneWeekFromToday"] = 1] = "OneWeekFromToday";
9
10
  DatePeriods[DatePeriods["TwoWeeksFromToday"] = 2] = "TwoWeeksFromToday";
10
11
  DatePeriods[DatePeriods["OneMonthFromToday"] = 3] = "OneMonthFromToday";
@@ -59,6 +60,7 @@ var PageRollupEnums;
59
60
  WorkflowStatus[WorkflowStatus["ScheduleForPublishing"] = 4] = "ScheduleForPublishing";
60
61
  WorkflowStatus[WorkflowStatus["UnpublishedChanges"] = 8] = "UnpublishedChanges";
61
62
  WorkflowStatus[WorkflowStatus["ScheduleForArchiving"] = 16] = "ScheduleForArchiving";
63
+ WorkflowStatus[WorkflowStatus["WaitingForDeletion"] = 32] = "WaitingForDeletion";
62
64
  })(WorkflowStatus = PageRollupEnums.WorkflowStatus || (PageRollupEnums.WorkflowStatus = {}));
63
65
  let VersionStatus;
64
66
  (function (VersionStatus) {
@@ -1,3 +1,4 @@
1
+ import { Refinement, Refiner } from "@omnia/fx-models";
1
2
  import { PageQuery, PageDetailQueryResult, PageId, PageNavigationNode, PageNavigationData, QueryFilter } from "..";
2
3
  import { PageRollupEnums } from "./PageRollupEnums";
3
4
  export interface PageRollupQuery {
@@ -32,6 +33,7 @@ export interface BatchQueryPages extends PageQuery {
32
33
  queryItemLimit?: number;
33
34
  enableClientCaching?: boolean;
34
35
  versionStatus?: PageRollupEnums.VersionStatus;
36
+ refiners?: string[];
35
37
  }
36
38
  export interface UIQueryFilter {
37
39
  queryFilters: QueryFilter[];
@@ -51,6 +53,7 @@ export interface BatchedPagesResult {
51
53
  pageIds: PageId[];
52
54
  errorMessage: string;
53
55
  hasError: boolean;
56
+ refiners?: Refiner<Refinement>[];
54
57
  }
55
58
  export interface BatchQueryPagesResult {
56
59
  pagesDetail: PageDetailQueryResult[];
@@ -11,4 +11,10 @@ export interface ApprovalRequestInfo<T extends PageData> {
11
11
  pageId: PageId;
12
12
  pageVersionId: number;
13
13
  stepId: GuidValue;
14
+ approvalRequestType: ApprovalRequestType;
15
+ isCreateCopy?: boolean;
16
+ }
17
+ export declare enum ApprovalRequestType {
18
+ Publishing = 1,
19
+ Deletion = 2
14
20
  }
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApprovalRequestType = void 0;
4
+ var ApprovalRequestType;
5
+ (function (ApprovalRequestType) {
6
+ ApprovalRequestType[ApprovalRequestType["Publishing"] = 1] = "Publishing";
7
+ ApprovalRequestType[ApprovalRequestType["Deletion"] = 2] = "Deletion";
8
+ })(ApprovalRequestType = exports.ApprovalRequestType || (exports.ApprovalRequestType = {}));
@@ -2,7 +2,8 @@ import { PageId } from "./Page";
2
2
  export declare enum ValidationArchivePageResult {
3
3
  NotAllowed = 0,
4
4
  Allowed = 1,
5
- AdditionalActionRequired = 2
5
+ AdditionalActionRequired = 2,
6
+ NotAllowedByHavingApproval = 3
6
7
  }
7
8
  export interface ArchivePageResult {
8
9
  versionId: number;
@@ -6,4 +6,5 @@ var ValidationArchivePageResult;
6
6
  ValidationArchivePageResult[ValidationArchivePageResult["NotAllowed"] = 0] = "NotAllowed";
7
7
  ValidationArchivePageResult[ValidationArchivePageResult["Allowed"] = 1] = "Allowed";
8
8
  ValidationArchivePageResult[ValidationArchivePageResult["AdditionalActionRequired"] = 2] = "AdditionalActionRequired";
9
+ ValidationArchivePageResult[ValidationArchivePageResult["NotAllowedByHavingApproval"] = 3] = "NotAllowedByHavingApproval";
9
10
  })(ValidationArchivePageResult = exports.ValidationArchivePageResult || (exports.ValidationArchivePageResult = {}));
@@ -45,6 +45,7 @@ export interface PageCollectionData extends PlainPageData {
45
45
  openAIPropertiesMapping?: OpenAIPropertiesMapping;
46
46
  imgPropOpenAIRatioUniqueId?: GuidValue;
47
47
  semanticSearchEnabled: boolean;
48
+ enableWCAGPageChecker?: boolean;
48
49
  /**
49
50
  * This property is used as inital value for creating Page Collection Navigation Node.
50
51
  * */
@@ -32,6 +32,7 @@ export interface PageData {
32
32
  enterprisePropertiesInheritance?: EnterprisePropertiesInheritance;
33
33
  layoutVersionedDataIdentifier?: IVersionedDataIdentifier;
34
34
  approvalData?: ApprovalData;
35
+ deletionApprovalData?: ApprovalData;
35
36
  propertyBag?: {
36
37
  search: {
37
38
  [blockId: string]: SearchValue;
@@ -5,6 +5,7 @@ export interface PagePermissionInfo {
5
5
  authors?: Identity[];
6
6
  readers?: Identity[];
7
7
  admins?: Identity[];
8
+ updateOnlyAuthors?: Identity[];
8
9
  }
9
10
  export interface PagePermissionResponse {
10
11
  securityResourceId: Guid;
@@ -1,6 +1,7 @@
1
- import { AnalyticsSettings, EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, IconPickerModel, Identity, MultilingualString, TimePeriodSettings, DateOperator } from "@omnia/fx-models";
1
+ import { AnalyticsSettings, EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, IconPickerModel, Identity, MultilingualString, TimePeriodSettings, DateOperator, UserIdentity } from "@omnia/fx-models";
2
2
  import { RichTextEditorExtension } from "@omnia/fx/ux/richtexteditor";
3
3
  import { SharepointSyncPageSettings } from "../../../sp";
4
+ import { PageId } from "./Page";
4
5
  import { PageData } from "./PageData";
5
6
  /**
6
7
  * We should update to use nheritance interfaces pattern
@@ -71,8 +72,9 @@ export interface SuspendedSettings {
71
72
  changePageType: ChangePageTypeSettings;
72
73
  removeFromSearchEnabled: boolean;
73
74
  }
74
- export interface PageReviewRule {
75
+ export interface PageReviewRuleVersion {
75
76
  id: number;
77
+ ruleId: GuidValue;
76
78
  pageId: number;
77
79
  originalPageVersionId: number;
78
80
  title: MultilingualString;
@@ -85,14 +87,15 @@ export interface PageReviewRule {
85
87
  suspendedSettings: SuspendedSettings;
86
88
  }
87
89
  export interface PageReviewRuleEvaluationResult {
88
- pageReviewRule: PageReviewRule;
90
+ pageReviewRule: PageReviewRuleVersion;
89
91
  reviewDate: Date;
90
92
  showMessageBar: boolean;
91
93
  isSuspended: boolean;
92
94
  sendEmail: boolean;
93
95
  }
94
- export interface PageReviewRuleSendEmailRequest {
95
- ruleId: number;
96
+ export interface PageReviewRuleTestMailTemplateRequest {
97
+ ruleVersionId: number;
96
98
  pageTypeId: number;
97
- reviewDate: Date;
99
+ identities: UserIdentity[];
100
+ pageIds: PageId[];
98
101
  }
@@ -1,10 +1,12 @@
1
1
  import { Identity } from "@omnia/fx-models";
2
+ import { RuleTypes } from "../publishingrule";
2
3
  export interface PendingApprovalPage {
3
4
  pageId: number;
4
5
  pageTitle: string;
5
6
  createApprovalBy: string;
6
7
  createApprovalAt: Date;
7
8
  comment: string;
9
+ type: RuleTypes;
8
10
  url: string;
9
11
  identities: Array<Identity>;
10
12
  }
@@ -2,6 +2,6 @@ import { PageArchiveInformationReference } from "../../../models";
2
2
  import { NodeId } from "../navigation";
3
3
  export interface RestorePageMessage {
4
4
  pageArchiveInformationReference: PageArchiveInformationReference;
5
- parentPageNavigationNodeId?: NodeId;
5
+ parentNavigationNodeId?: NodeId;
6
6
  currentPageNavigationNodeUrlSegment?: string;
7
7
  }
@@ -0,0 +1,21 @@
1
+ import { ICurrentPageState } from "@omnia/wcm";
2
+ import { ApprovalData, ApprovalRequestType, PageData, VersionedPageData } from "../pages";
3
+ import { PublishingRule } from "./PublishingRule";
4
+ export declare abstract class ApprovalRuleResolver {
5
+ type: ApprovalRequestType;
6
+ abstract getApprovalData(versionedPageData: VersionedPageData<PageData>): ApprovalData;
7
+ abstract isRuleDataMatched(rule: PublishingRule): boolean;
8
+ abstract isValidToHaveApproval(currentPage: ICurrentPageState): boolean;
9
+ }
10
+ export declare class PublishApprovalRuleResolver implements ApprovalRuleResolver {
11
+ type: ApprovalRequestType;
12
+ getApprovalData(versionedPageData: VersionedPageData<PageData>): ApprovalData;
13
+ isRuleDataMatched(rule: PublishingRule): boolean;
14
+ isValidToHaveApproval(currentPage: ICurrentPageState): boolean;
15
+ }
16
+ export declare class DeletionApprovalRuleResolver implements ApprovalRuleResolver {
17
+ type: ApprovalRequestType;
18
+ getApprovalData(versionedPageData: VersionedPageData<PageData>): ApprovalData;
19
+ isRuleDataMatched(rule: PublishingRule): boolean;
20
+ isValidToHaveApproval(currentPage: ICurrentPageState): boolean;
21
+ }
@@ -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 === null || versionedPageData === void 0 ? void 0 : 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 === null || versionedPageData === void 0 ? void 0 : 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[]>;
@@ -1,8 +1,9 @@
1
- import { DocumentQuery, DocumentQueryResult, UploadDocumentInfo, Document } from "../models";
1
+ import { DocumentQuery, DocumentQueryResult, UploadDocumentInfo, Document, DocumentDurableInfo } from "../models";
2
2
  export declare class DocumentService {
3
3
  private httpClient;
4
4
  constructor();
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, docId?: string, siteId?: string): Promise<void | DocumentDurableInfo>;
8
9
  }
@@ -51,10 +51,11 @@ 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
  }>;
58
58
  deleteLinkNodeById: (id: NodeId) => Promise<void>;
59
+ deleteTextNodeById: (id: NodeId) => Promise<void>;
59
60
  checkUrlSegmentExists: (appInstanceId: GuidValue, parentNavigationNode: NavigationNode<NavigationData>, urlSegment: string) => Promise<boolean>;
60
61
  }
@@ -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;
@@ -125,6 +126,7 @@ declare class InternalPageRollupStoreHelper {
125
126
  private buildUIFiltersForBlockInstance;
126
127
  private isNotBreakpointSettings;
127
128
  private buildQueries;
129
+ executeBuildQuery(blockInstances: BlockPageRollupInstanceExtends[], enableShowMetric: boolean): Promise<BatchQueryPagesExtends[]>;
128
130
  private ensurePublishingAppsAndPageCollectionsReady;
129
131
  private updateRollupRelevantApps;
130
132
  private ensureUpdatePublishingChannelsFilterItems;
@@ -146,12 +148,15 @@ declare class InternalPageRollupStoreHelper {
146
148
  private ensureLoadPageTypesOfInstance;
147
149
  private ensureLoadPageTypes;
148
150
  private ensureLanguageSettings;
151
+ isAZFilteringProperty(internalName: string): boolean;
152
+ getSelectedAZFilteringValue(uniqueId: string): import("@omnia/fx-models").Refinement[];
149
153
  }
150
154
  export declare class PageRollupStoreHelper {
151
155
  private internal;
152
156
  constructor();
153
157
  registerBatchQuery(blockInstance: IBlockInstanceExtends<PageRollupBlockSettings>, blockProperty: ReactivePageBlockProperty<PageRollupBlockProperty>, uiFilterHandler: FilterEngineHandler, orderBy: Array<QueryOrder>): BatchQueryRegistration;
154
158
  ensureUserTargetingData(settings: PageRollupBlockSettings): Promise<TargetingPropertyFlatResult[]>;
159
+ executeBuildQuery(block: BlockPageRollupInstanceExtends[]): Promise<BatchQueryPagesExtends[]>;
155
160
  clearPageQueryResultCaches(blockInstance: IBlockInstance<PageRollupBlockSettings>): void;
156
161
  getRollupId(blockInstance: IBlockInstance<PageRollupBlockSettings>): string;
157
162
  hasQueryResourceConfiguration(settings: PageRollupBlockSettings): boolean | PageRollupEnums.RollupScopes;
@@ -214,6 +219,7 @@ export declare class BatchQueryRegistration {
214
219
  resetPaging(): Promise<void>;
215
220
  execute(): Promise<number>;
216
221
  getPagingData(pageNumber: number): Promise<number>;
222
+ setPageNumber(pageNumber: number): void;
217
223
  getNextPagingData(): Promise<number>;
218
224
  private noNextPaging;
219
225
  private loadCurrentPageData;