@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
@@ -1,4 +1,4 @@
1
- import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId, PageDetailQueryResult, PageNavigationData, PageNavigationNode } from "@omnia/wcm/models";
1
+ import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId, PageDetailQueryResult, PageNavigationData, PageNavigationNode, LinkItem, LinkNavigationData } from "@omnia/wcm/models";
2
2
  import { LayoutItem } from "@omnia/fx-models";
3
3
  export declare namespace Utils {
4
4
  function isSupportedByOfficeWebApp(documentUrl: string): boolean;
@@ -78,3 +78,7 @@ export declare module WCMGovernanceUtils {
78
78
  function getMonth(date: Date, numberOfMonths: any): Date;
79
79
  function equalMonth(date: Date, compare: Date): boolean;
80
80
  }
81
+ export declare module LinkUtils {
82
+ function convertToLinkNavigation(linkItem: LinkItem): LinkNavigationData;
83
+ function convertToLinkItem(linkNavigationData: LinkNavigationData): LinkItem;
84
+ }
@@ -110,7 +110,7 @@ export declare module WCMCoreLocalization {
110
110
  };
111
111
  Iframe: {
112
112
  Title: string;
113
- Summary: string;
113
+ BlockSummary: string;
114
114
  };
115
115
  ChannelRollup: {
116
116
  Title: string;
@@ -257,6 +257,12 @@ export declare module WCMCoreLocalization {
257
257
  Category: string;
258
258
  Description: string;
259
259
  };
260
+ DocumentDurableLink: {
261
+ Title: string;
262
+ Category: string;
263
+ Description: string;
264
+ ConsentInformation: string;
265
+ };
260
266
  };
261
267
  ImageScalingBlockSettings: {
262
268
  ForceDefaultScaling: string;
@@ -57,6 +57,11 @@ export declare module EditorLocalization {
57
57
  CreateApprovalBy: string;
58
58
  At: string;
59
59
  Comment: string;
60
+ Type: {
61
+ Title: string;
62
+ Publish: string;
63
+ Deletion: string;
64
+ };
60
65
  };
61
66
  AnalysisPage: {
62
67
  Time: string;
@@ -131,6 +136,7 @@ export declare module EditorLocalization {
131
136
  ArchivedAt: string;
132
137
  Comment: string;
133
138
  CreateCopy: string;
139
+ CreateCopyTooltip: string;
134
140
  Terminate: string;
135
141
  TerminateConfirmationMessage: string;
136
142
  RestoreConfirmationMessage: string;
@@ -151,6 +157,7 @@ export declare module EditorLocalization {
151
157
  VariationNotFoundMessage: string;
152
158
  VariationPageIsAlreadyExistMessage: string;
153
159
  Older: string;
160
+ ArchiveWithApprovalRequireMessage: string;
154
161
  SystemMessages: {
155
162
  ArchiveErrorMessages: {
156
163
  PageTypeInUse: string;
@@ -250,6 +257,7 @@ export declare module EditorLocalization {
250
257
  Permissions: {
251
258
  Editor: string;
252
259
  Author: string;
260
+ UpdateOnlyAuthor: string;
253
261
  Reader: string;
254
262
  Admin: string;
255
263
  };
@@ -331,6 +339,7 @@ export declare module EditorLocalization {
331
339
  };
332
340
  Approval: {
333
341
  Title: string;
342
+ DeletionApproval: string;
334
343
  EnableApproval: string;
335
344
  Anyone: string;
336
345
  LimitedUsers: string;
@@ -568,6 +577,10 @@ export declare module EditorLocalization {
568
577
  };
569
578
  ReindexMessage: string;
570
579
  };
580
+ WCAG: {
581
+ Title: string;
582
+ EnableWCAGPageChecker: string;
583
+ };
571
584
  };
572
585
  Dialogs: {
573
586
  MoveToTenant: {
@@ -679,6 +692,7 @@ export declare module EditorLocalization {
679
692
  };
680
693
  ArchivePageType: {
681
694
  Title: string;
695
+ NotAllowedByHavingApproval: string;
682
696
  AllowedMessage: string;
683
697
  NotAllowedMessage: string;
684
698
  ActionRequiredMessage: string;
@@ -738,6 +752,7 @@ export declare module EditorLocalization {
738
752
  DuplicateWarningMessage: string;
739
753
  MoveAsChild: string;
740
754
  MoveAsSibling: string;
755
+ DuplicateWarningMessageWhenMovingAsSibling: string;
741
756
  };
742
757
  SendAppprovalRequest: {
743
758
  Title: string;
@@ -878,7 +893,7 @@ export declare module EditorLocalization {
878
893
  Cancel: string;
879
894
  Approval: string;
880
895
  };
881
- PageReviewWorkflow: {
896
+ PageReviewRule: {
882
897
  Title: string;
883
898
  RuleName: string;
884
899
  DateProperty: string;
@@ -898,15 +913,26 @@ export declare module EditorLocalization {
898
913
  Save: string;
899
914
  Add: string;
900
915
  Cancel: string;
901
- SendEmailDialog: {
916
+ TestEmailDialog: {
902
917
  Title: string;
903
- Message: string;
918
+ Instruction: string;
919
+ InfoText: string;
904
920
  Buttons: {
905
921
  SendEmail: string;
906
922
  };
923
+ NoPagesFoundMessage: string;
924
+ };
925
+ EditRuleBtn: string;
926
+ DeleteRuleBtn: string;
927
+ TestEmailBtn: string;
928
+ Placeholders: {
929
+ Title: string;
930
+ PlaceholderContent: string;
931
+ Property: string;
907
932
  };
933
+ EmailTemplate: string;
908
934
  };
909
- RemovePageReviewWorkflowRuleSettings: {
935
+ RemovePageReviewRuleSettings: {
910
936
  Title: string;
911
937
  ConfirmationMessage: string;
912
938
  };
@@ -392,5 +392,8 @@ export declare module PageRollupLocalization {
392
392
  CheckedOutBy: string;
393
393
  };
394
394
  };
395
+ ExportResult: {
396
+ LoginName: string;
397
+ };
395
398
  }
396
399
  }
@@ -148,6 +148,7 @@ export declare module PublishingAppLocalization {
148
148
  Preview: string;
149
149
  MoveTo: string;
150
150
  Save: string;
151
+ ChangeLinkType: string;
151
152
  VersionHistory: string;
152
153
  Revert: string;
153
154
  ReuseContent: string;
@@ -178,6 +179,8 @@ export declare module PublishingAppLocalization {
178
179
  Delete: string;
179
180
  SaveAndClose: string;
180
181
  Feedback: string;
182
+ DeletionApproval: string;
183
+ CancelDeletionApproval: string;
181
184
  };
182
185
  SpeedDialButtons: {
183
186
  OpenEditor: string;
@@ -255,6 +258,28 @@ export declare module PublishingAppLocalization {
255
258
  Content: string;
256
259
  };
257
260
  };
261
+ DeletionApproval: {
262
+ MailApprovalStepAssigned: {
263
+ Subject: string;
264
+ Content: string;
265
+ };
266
+ MailStatusUpdate: {
267
+ Subject: string;
268
+ Content: string;
269
+ };
270
+ MailApprovalCompleted: {
271
+ Subject: string;
272
+ Content: string;
273
+ };
274
+ MailApprovalRejected: {
275
+ Subject: string;
276
+ Content: string;
277
+ };
278
+ MailApprovalCanceled: {
279
+ Subject: string;
280
+ Content: string;
281
+ };
282
+ };
258
283
  PageVariationAuthor: {
259
284
  NewPageSubject: string;
260
285
  NewVersionSubject: string;
@@ -264,6 +289,22 @@ export declare module PublishingAppLocalization {
264
289
  VariationAuthor: string;
265
290
  Content: string;
266
291
  };
292
+ VariationNotification: {
293
+ VariationAuthor: {
294
+ NewPage: {
295
+ Subject: string;
296
+ Content: string;
297
+ };
298
+ NewVersion: {
299
+ Subject: string;
300
+ Content: string;
301
+ };
302
+ };
303
+ PageProperty: {
304
+ Subject: string;
305
+ Template: string;
306
+ };
307
+ };
267
308
  InvitationOfCoAuthors: {
268
309
  Subject: string;
269
310
  Body: string;
@@ -315,6 +356,14 @@ export declare module PublishingAppLocalization {
315
356
  Message: string;
316
357
  };
317
358
  EnableEditNotifications: string;
359
+ NotifyForEdit: {
360
+ SectionLabel: string;
361
+ NoteTitle: string;
362
+ Note: string;
363
+ VariationAuthor: string;
364
+ PagePropertyUsers: string;
365
+ UserPropertyPickerLabel: string;
366
+ };
318
367
  };
319
368
  StatisticProvider: {
320
369
  SiteScript: string;
@@ -1,5 +1,5 @@
1
1
  import { MessageBusTopicMediator } from "@omnia/fx";
2
- import { CreateLayoutItemSettingsMessage, PageApprovalMessage, PageScheduleMessage, ShowApprovalDialogMessage, ShowPageReviewValidateFailedDialogMessage } from "../../models";
2
+ import { CreateLayoutItemSettingsMessage, LinkPickerDialogMessage, PageApprovalMessage, PageScheduleMessage, ShowApprovalDialogMessage } from "../../models";
3
3
  import { NavigationData, NavigationNode, LinkItem, PageTypeProperty, LinkPickerRegistration } from "@omnia/wcm/models";
4
4
  import { LinkItemTemplateMsg } from "../../models/relatedlinks";
5
5
  export declare const WcmBlockNamespace = "omnia.wcm.block";
@@ -14,11 +14,12 @@ export declare class PublishingAppTopics {
14
14
  static get showNavigationPermissionPanelTopic(): MessageBusTopicMediator<NavigationNode<NavigationData>>;
15
15
  static get showPageTypePropertySettingTopic(): MessageBusTopicMediator<PageTypeProperty>;
16
16
  static get showPageApprovalDialogTopic(): MessageBusTopicMediator<PageApprovalMessage>;
17
+ static get showPageDeletionApprovalDialogTopic(): MessageBusTopicMediator<PageApprovalMessage>;
17
18
  static get refreshNavigationContentUI(): MessageBusTopicMediator<void>;
18
19
  static get showPageScheduleDialogTopic(): MessageBusTopicMediator<PageScheduleMessage>;
19
20
  static get showPagePublishDialogTopic(): MessageBusTopicMediator<void>;
20
21
  static get showPrePublishContentAnalysisDialogTopic(): MessageBusTopicMediator<ShowApprovalDialogMessage>;
21
22
  static get showPageSendEmailDialogTopic(): MessageBusTopicMediator<void>;
22
23
  static get showInviteCoAuthorsDialogTopic(): MessageBusTopicMediator<void>;
23
- static get showPageReviewValidateFailedDialogTopic(): MessageBusTopicMediator<ShowPageReviewValidateFailedDialogMessage>;
24
+ static get showLinkPickerDialogTopic(): MessageBusTopicMediator<LinkPickerDialogMessage>;
24
25
  }
@@ -1,7 +1,9 @@
1
- import { DbQueryFilterEngineContext } from "@omnia/fx-models";
1
+ import { BaseFilterEngineProperty, DbQueryFilterEngineContext } from "@omnia/fx-models";
2
2
  export declare class PageRollupFilterEngineContext extends DbQueryFilterEngineContext {
3
3
  componentId: string;
4
4
  uniqueId: string;
5
5
  constructor(componentId: string);
6
+ isRefinable(prop: BaseFilterEngineProperty): boolean;
6
7
  getAvailableProperties(): import("@omnia/fx-models").EnterprisePropertyDefinition[];
8
+ getAZFilterableProperties(): import("@omnia/fx-models").EnterprisePropertyColumnMapping[];
7
9
  }
@@ -10,6 +10,8 @@ export declare module ItemQueryHelper {
10
10
  function generateTrueFilter(logicalOperator: FilterLogicalOperator, filters?: Array<QueryFilter>): QueryFilter;
11
11
  function generateTextEqualFilter(property: string, text: string, logicalOperator: FilterLogicalOperator): QueryFilter;
12
12
  function generateTextFilter(property: string, text: string, logicalOperator: FilterLogicalOperator, enableWildcardSearch: boolean): QueryFilter;
13
+ function generateTextRefinerFilter(property: string, text: string, logicalOperator: FilterLogicalOperator): QueryFilter;
14
+ function generateTextMultipleRefinerFilter(property: string, values: string[], logicalOperator: FilterLogicalOperator): QueryFilter;
13
15
  function generateProcessFilterValue(property: string, text: string, logicalOperator: FilterLogicalOperator, enableWildcardSearch: boolean): QueryFilter;
14
16
  function generateProcessFilter(property: string, processIdsArray: Array<string>, logicalOperator: FilterLogicalOperator, enableWildcardSearch: boolean): QueryFilter;
15
17
  function generateEmptyArrayFilter(property: string, logicalOperator: FilterLogicalOperator): QueryFilter;
@@ -58,6 +58,7 @@ export declare const Constants: {
58
58
  publishingAppInfrastructure: string;
59
59
  eventPageType: string;
60
60
  omniasearch: string;
61
+ documentDurableLink: string;
61
62
  };
62
63
  communityAppDefinitionInfo: {
63
64
  id: Guid;
@@ -142,7 +142,8 @@ exports.Constants = {
142
142
  communityPropertiesAndPageTypes: "e7f6a798-6ea4-4012-8c3c-f9e00bcd510b",
143
143
  publishingAppInfrastructure: "4c880576-5645-4f13-b328-784f4a0fb8a9",
144
144
  eventPageType: "f3a94830-a373-4e92-ad94-48b57f9783ee",
145
- omniasearch: "5765b73b-0c92-48dd-bd2b-604dfdf0f9a5"
145
+ omniasearch: "5765b73b-0c92-48dd-bd2b-604dfdf0f9a5",
146
+ documentDurableLink: "7890af9b-9510-49e9-a97b-3b9115c06c50"
146
147
  },
147
148
  communityAppDefinitionInfo: {
148
149
  id: new fx_models_1.Guid("3b0e3cd4-911e-49cf-a401-b6c904526b85"),
@@ -1,3 +1,4 @@
1
+ import { RoleDefinitions as OmniaRoleDefinitions } from "@omnia/fx-models";
1
2
  export declare enum Parameters {
2
3
  PageId = "PageId",
3
4
  SecurityResourceId = "SecurityResourceId",
@@ -17,6 +18,7 @@ export declare enum ResourceEvaluators {
17
18
  export declare enum RoleDefinitions {
18
19
  Editor = "4e76e9ec-ecbc-48cc-bd50-68d573d795b1",
19
20
  Author = "88ddd69c-ed71-4188-8e62-39b2f91bc4bc",
21
+ UpdateOnlyAuthor = "9cd51708-dc84-4d5a-91bd-260e52b83d48",
20
22
  VariationAuthor = "f181dd91-4a51-4ce4-95bb-018f7a598f77",
21
23
  VariationEditor = "a9ae4c3b-4b7c-4b9e-a948-4f77a4c2f059",
22
24
  Reader = "dbe5b504-9827-4b47-afa6-f626b728f2ca",
@@ -85,3 +87,9 @@ export declare enum WcmAppDefaultResourceUrl {
85
87
  YammerGroup = 0,
86
88
  SharePoint = 1
87
89
  }
90
+ export declare class GetRoleDefinitions {
91
+ static get AdminRoleDefinitions(): (RoleDefinitions | OmniaRoleDefinitions)[];
92
+ static get EditorRoleDefinitions(): RoleDefinitions[];
93
+ static get AuthorRoleDefinitions(): RoleDefinitions[];
94
+ static get UpdateOnlyAuthorRoleDefinitions(): RoleDefinitions[];
95
+ }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WcmAppDefaultResourceUrl = exports.StatisticsPerPageDataSourcesEnum = exports.SortByProperties = exports.ReportTypesEnum = exports.VideoType = exports.PagingTypes = exports.DocumentTypes = exports.VersionUpdationMode = exports.WcmPropertyDefaultBooleanValues = exports.WcmPropertyDefaultValues = exports.RoleDefinitions = exports.ResourceEvaluators = exports.Parameters = void 0;
3
+ exports.GetRoleDefinitions = exports.WcmAppDefaultResourceUrl = exports.StatisticsPerPageDataSourcesEnum = exports.SortByProperties = exports.ReportTypesEnum = exports.VideoType = exports.PagingTypes = exports.DocumentTypes = exports.VersionUpdationMode = exports.WcmPropertyDefaultBooleanValues = exports.WcmPropertyDefaultValues = exports.RoleDefinitions = exports.ResourceEvaluators = exports.Parameters = void 0;
4
+ const fx_models_1 = require("@omnia/fx-models");
4
5
  var Parameters;
5
6
  (function (Parameters) {
6
7
  Parameters["PageId"] = "PageId";
@@ -23,6 +24,7 @@ var RoleDefinitions;
23
24
  (function (RoleDefinitions) {
24
25
  RoleDefinitions["Editor"] = "4e76e9ec-ecbc-48cc-bd50-68d573d795b1";
25
26
  RoleDefinitions["Author"] = "88ddd69c-ed71-4188-8e62-39b2f91bc4bc";
27
+ RoleDefinitions["UpdateOnlyAuthor"] = "9cd51708-dc84-4d5a-91bd-260e52b83d48";
26
28
  RoleDefinitions["VariationAuthor"] = "f181dd91-4a51-4ce4-95bb-018f7a598f77";
27
29
  RoleDefinitions["VariationEditor"] = "a9ae4c3b-4b7c-4b9e-a948-4f77a4c2f059";
28
30
  RoleDefinitions["Reader"] = "dbe5b504-9827-4b47-afa6-f626b728f2ca";
@@ -102,3 +104,10 @@ var WcmAppDefaultResourceUrl;
102
104
  WcmAppDefaultResourceUrl[WcmAppDefaultResourceUrl["YammerGroup"] = 0] = "YammerGroup";
103
105
  WcmAppDefaultResourceUrl[WcmAppDefaultResourceUrl["SharePoint"] = 1] = "SharePoint";
104
106
  })(WcmAppDefaultResourceUrl = exports.WcmAppDefaultResourceUrl || (exports.WcmAppDefaultResourceUrl = {}));
107
+ class GetRoleDefinitions {
108
+ static get AdminRoleDefinitions() { return [fx_models_1.RoleDefinitions.AppInstanceAdmin, RoleDefinitions.PageCollectionAdmin]; }
109
+ static get EditorRoleDefinitions() { return [RoleDefinitions.Editor, RoleDefinitions.VariationEditor]; }
110
+ static get AuthorRoleDefinitions() { return [RoleDefinitions.Author, RoleDefinitions.VariationAuthor, RoleDefinitions.Approver]; }
111
+ static get UpdateOnlyAuthorRoleDefinitions() { return [RoleDefinitions.UpdateOnlyAuthor]; }
112
+ }
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;
@@ -1,4 +1,4 @@
1
- import { IconPickerModel } from "@omnia/fx-models";
1
+ import { IconPickerModel, MultilingualString } from "@omnia/fx-models";
2
2
  export declare enum OpenDocumentOptions {
3
3
  OpenInWeb = "OpenInWeb",
4
4
  OpenInWebNewTab = "OpenInWebNewTab",
@@ -6,6 +6,7 @@ export declare enum OpenDocumentOptions {
6
6
  Download = "Download"
7
7
  }
8
8
  export interface LinkPickerPropertyData {
9
+ multilingualTitleEnabled?: boolean;
9
10
  }
10
11
  export interface LinkItem {
11
12
  linkType: string;
@@ -13,6 +14,7 @@ export interface LinkItem {
13
14
  url: string;
14
15
  icon: IconPickerModel;
15
16
  openInNewWindow: boolean;
17
+ multilingualString?: MultilingualString;
16
18
  }
17
19
  export interface PageItemNode {
18
20
  pageId: number;
@@ -5,6 +5,8 @@ export interface LinkPickerCommand extends EditorCommand {
5
5
  title: string;
6
6
  target: string;
7
7
  onclick?: string;
8
+ tabindex?: number;
9
+ ariaLabel?: string;
8
10
  }) => void;
9
11
  }
10
12
  export interface LinkPickerMenuCommand extends EditorCommand {
@@ -27,4 +27,6 @@ export declare const PagePropertiesBlockStyles: {
27
27
  horizontalHeaderAlignNoAvatarInLine?: types.NestedCSSProperties;
28
28
  horizontalTaxonomyNoAvatarInOnePersonField?: types.NestedCSSProperties;
29
29
  horizontalTaxonomyNoAvatarInLine?: types.NestedCSSProperties;
30
+ horizontalRichText?: types.NestedCSSProperties;
31
+ horizontaProcess?: types.NestedCSSProperties;
30
32
  };
@@ -10,6 +10,7 @@ export interface PageRollupViewSettings {
10
10
  selectProperties: Array<string>;
11
11
  showContentAsDialog: boolean;
12
12
  enableRichText: boolean;
13
+ disableViewButtonOnDialog?: boolean;
13
14
  enableMention?: boolean;
14
15
  enableBestReply: boolean;
15
16
  enableSubscription: boolean;
@@ -131,6 +131,7 @@ export declare const PageRollupNewsletterViewStyles: {
131
131
  getPadding: (spacing: SpacingSettings) => types.NestedCSSProperties;
132
132
  lineColor: (color: string) => types.NestedCSSProperties;
133
133
  hideElement: types.NestedCSSProperties;
134
+ visuallyHidden: types.NestedCSSProperties;
134
135
  };
135
136
  export declare const PageRollupBlockCardViewSettingsStyles: {
136
137
  orderAction?: types.NestedCSSProperties;
@@ -2,6 +2,7 @@ import { MediaPickerStorageProviderContext } from "@omnia/fx-models";
2
2
  import { LinkItem, LinkPickerPropertyData } from "@omnia/wcm/models";
3
3
  export interface ILinkPickerProvider {
4
4
  linkData?: LinkItem;
5
+ showIconPicker?: boolean;
5
6
  propertyData?: LinkPickerPropertyData;
6
7
  mediaPickerProviderContext?: MediaPickerStorageProviderContext;
7
8
  }
@@ -1,7 +1,9 @@
1
- import { NavigationData, INavigationOptions } from ".";
2
1
  import { IconPickerModel, MultilingualString } from "@omnia/fx-models";
2
+ import { NavigationData, INavigationOptions } from ".";
3
+ import { LinkItem } from "../components";
3
4
  export interface LinkNavigationData extends NavigationData, INavigationOptions {
4
5
  title: MultilingualString;
5
6
  url: string;
6
7
  icon?: IconPickerModel;
8
+ linkData: Omit<LinkItem, "multilingualString" | "title" | "url" | "icon" | "openInNewWindow">;
7
9
  }
@@ -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,9 @@ export interface ApprovalRequestInfo<T extends PageData> {
11
11
  pageId: PageId;
12
12
  pageVersionId: number;
13
13
  stepId: GuidValue;
14
+ approvalRequestType: ApprovalRequestType;
15
+ }
16
+ export declare enum ApprovalRequestType {
17
+ Publishing = 1,
18
+ Deletion = 2
14
19
  }
@@ -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;
@@ -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
@@ -40,7 +41,7 @@ export interface PageTypeData extends PageData {
40
41
  sharepointSyncPageSettings?: SharepointSyncPageSettings;
41
42
  automaticArchiveSettings: AutomaticArchiveSettings;
42
43
  analyticsSettings?: AnalyticsSettings;
43
- pageReviewWorkflowRules?: number[];
44
+ pageReviewRules?: number[];
44
45
  }
45
46
  export interface PageTypeProperty extends EnterprisePropertyDefinition {
46
47
  info: PageTypePropertyInfo;
@@ -52,7 +53,6 @@ export interface AutomaticArchiveSettings {
52
53
  property: string;
53
54
  }
54
55
  export interface MessageBarSettings {
55
- enabled: boolean;
56
56
  title: MultilingualString;
57
57
  body: MultilingualString;
58
58
  icon: IconPickerModel;
@@ -60,7 +60,6 @@ export interface MessageBarSettings {
60
60
  textColor: string;
61
61
  }
62
62
  export interface SendEmailSettings {
63
- enabled: boolean;
64
63
  subject: MultilingualString;
65
64
  body: MultilingualString;
66
65
  recipientProperties: string[];
@@ -70,29 +69,33 @@ export interface ChangePageTypeSettings {
70
69
  pageTypeId: number;
71
70
  }
72
71
  export interface SuspendedSettings {
73
- enabled: boolean;
74
72
  changePageType: ChangePageTypeSettings;
75
73
  removeFromSearchEnabled: boolean;
76
74
  }
77
- export interface PageReviewWorkflowRule {
75
+ export interface PageReviewRuleVersion {
78
76
  id: number;
77
+ ruleId: GuidValue;
79
78
  pageId: number;
80
79
  originalPageVersionId: number;
81
80
  title: MultilingualString;
82
81
  dateProperty: string;
82
+ messageBarEnabled: boolean;
83
83
  messageBarSettings: MessageBarSettings;
84
+ emailEnabled: boolean;
84
85
  emailSettings: SendEmailSettings;
86
+ suspendEnabled: boolean;
85
87
  suspendedSettings: SuspendedSettings;
86
88
  }
87
89
  export interface PageReviewRuleEvaluationResult {
88
- pageReviewRule: PageReviewWorkflowRule;
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
  }
@@ -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
+ }