@omnia/wcm 7.9.1-preview → 7.9.1
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.
- package/README.md +1 -1
- package/internal-do-not-import-from-here/core/Utils.d.ts +3 -1
- package/internal-do-not-import-from-here/core/loc/CommunityLocalization.d.ts +1 -1
- package/internal-do-not-import-from-here/core/loc/CoreLocalization.d.ts +21 -21
- package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +52 -0
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +1 -0
- package/internal-do-not-import-from-here/core/loc/PublishingAppLocalization.d.ts +28 -2
- package/internal-do-not-import-from-here/fx/helpers/ItemQueryHelper.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/internal/models/index.d.ts +0 -1
- package/internal-do-not-import-from-here/fx/models/Constants.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/Constants.js +5 -1
- package/internal-do-not-import-from-here/fx/models/Enums.d.ts +10 -2
- package/internal-do-not-import-from-here/fx/models/Enums.js +10 -1
- package/internal-do-not-import-from-here/fx/models/ManifestIds.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/models/ManifestIds.js +3 -0
- package/internal-do-not-import-from-here/fx/models/components/ContentBlock.d.ts +5 -0
- package/internal-do-not-import-from-here/fx/models/components/ContentBlock.js +6 -1
- package/internal-do-not-import-from-here/fx/models/components/LinkPicker.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +4 -2
- package/internal-do-not-import-from-here/fx/models/pagecreation/PageCreationActionSetting.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/pages/PageTypeData.d.ts +51 -1
- package/internal-do-not-import-from-here/fx/models/pages/VersionInformation.d.ts +7 -0
- package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.d.ts +21 -0
- package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.js +27 -0
- package/internal-do-not-import-from-here/fx/models/query/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/query/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/variations/Variation.d.ts +10 -0
- package/internal-do-not-import-from-here/fx/models/variations/VariationCreationRequest.d.ts +7 -4
- package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/services/PageQueryService.d.ts +0 -2
- package/internal-do-not-import-from-here/fx/services/PageService.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/services/PageSocialService.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/services/PageStatisticsService.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/services/SocialService.d.ts +31 -0
- package/internal-do-not-import-from-here/fx/services/index.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +9 -4
- package/internal-do-not-import-from-here/fx/shared/PickedPageHelper.d.ts +10 -0
- package/internal-do-not-import-from-here/fx/shared/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/stores/CreatePageFormStore.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +9 -2
- package/internal-do-not-import-from-here/fx/stores/NavigationStore.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/stores/PageStatisticsStore.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/stores/VariationStore.d.ts +1 -0
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
- package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/models/security/Security.d.ts +11 -2
- package/internal-do-not-import-from-here/models/security/Security.js +31 -1
- package/package.json +5 -5
- package/internal-do-not-import-from-here/fx/internal/models/PageBulkUpdate.d.ts +0 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId } from "@omnia/wcm/models";
|
|
1
|
+
import { Page, NavigationNode, NavigationData, VariationId, VariationString, Variation, PageId, PageDetailQueryResult, PageNavigationData, PageNavigationNode } 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;
|
|
@@ -47,6 +47,7 @@ export declare module MultilingualUtils {
|
|
|
47
47
|
export declare module NavigationUtils {
|
|
48
48
|
function sortNodesByCreated<T extends NavigationNode<NavigationData>>(nodes: Array<T>): any;
|
|
49
49
|
function sortNodesByTitle<T extends NavigationNode<NavigationData>>(nodes: Array<T>): any;
|
|
50
|
+
function findPageInNode(node: PageNavigationNode<PageNavigationData>, pageId: PageId): any;
|
|
50
51
|
}
|
|
51
52
|
export declare namespace VariationUtils {
|
|
52
53
|
function getValueByVariationId(variationString: VariationString, id: VariationId, defaultVariation?: Variation): string;
|
|
@@ -70,6 +71,7 @@ export declare module WCMMigrationUtils {
|
|
|
70
71
|
}
|
|
71
72
|
export declare module PageUtils {
|
|
72
73
|
function filterUnavailablePages(pages: Page[]): Page[];
|
|
74
|
+
function ensureVariationIdInPageDetail(pages: PageDetailQueryResult[]): PageDetailQueryResult[];
|
|
73
75
|
}
|
|
74
76
|
export declare module WCMGovernanceUtils {
|
|
75
77
|
function getMonthName(language: string, date: Date): string;
|
|
@@ -22,35 +22,35 @@ export declare module WCMCoreLocalization {
|
|
|
22
22
|
Blocks: {
|
|
23
23
|
Banner: {
|
|
24
24
|
Title: string;
|
|
25
|
-
|
|
25
|
+
Summary: string;
|
|
26
26
|
};
|
|
27
27
|
Text: {
|
|
28
28
|
Title: string;
|
|
29
|
-
|
|
29
|
+
Summary: string;
|
|
30
30
|
};
|
|
31
31
|
HtmlScript: {
|
|
32
32
|
Title: string;
|
|
33
|
-
|
|
33
|
+
Summary: string;
|
|
34
34
|
};
|
|
35
35
|
Media: {
|
|
36
36
|
Title: string;
|
|
37
|
-
|
|
37
|
+
Summary: string;
|
|
38
38
|
};
|
|
39
39
|
PageProperties: {
|
|
40
40
|
Title: string;
|
|
41
|
-
|
|
41
|
+
Summary: string;
|
|
42
42
|
};
|
|
43
43
|
RelatedLinks: {
|
|
44
44
|
Title: string;
|
|
45
|
-
|
|
45
|
+
Summary: string;
|
|
46
46
|
};
|
|
47
47
|
Breadcrumb: {
|
|
48
48
|
Title: string;
|
|
49
|
-
|
|
49
|
+
Summary: string;
|
|
50
50
|
};
|
|
51
51
|
ActionButton: {
|
|
52
52
|
Title: string;
|
|
53
|
-
|
|
53
|
+
Summary: string;
|
|
54
54
|
};
|
|
55
55
|
ButtonLink: {
|
|
56
56
|
Title: string;
|
|
@@ -58,19 +58,19 @@ export declare module WCMCoreLocalization {
|
|
|
58
58
|
};
|
|
59
59
|
CommentLike: {
|
|
60
60
|
Title: string;
|
|
61
|
-
|
|
61
|
+
Summary: string;
|
|
62
62
|
};
|
|
63
63
|
PageRollup: {
|
|
64
64
|
Title: string;
|
|
65
|
-
|
|
65
|
+
Summary: string;
|
|
66
66
|
};
|
|
67
67
|
CurrentNavigation: {
|
|
68
68
|
Title: string;
|
|
69
|
-
|
|
69
|
+
Summary: string;
|
|
70
70
|
};
|
|
71
71
|
MegaMenu: {
|
|
72
72
|
Title: string;
|
|
73
|
-
|
|
73
|
+
Summary: string;
|
|
74
74
|
};
|
|
75
75
|
SubscribePage: {
|
|
76
76
|
Title: string;
|
|
@@ -78,7 +78,7 @@ export declare module WCMCoreLocalization {
|
|
|
78
78
|
};
|
|
79
79
|
RatePage: {
|
|
80
80
|
Title: string;
|
|
81
|
-
|
|
81
|
+
Summary: string;
|
|
82
82
|
};
|
|
83
83
|
MySubscriptions: {
|
|
84
84
|
Title: string;
|
|
@@ -90,35 +90,35 @@ export declare module WCMCoreLocalization {
|
|
|
90
90
|
};
|
|
91
91
|
CalendarRollup: {
|
|
92
92
|
Title: string;
|
|
93
|
-
|
|
93
|
+
Summary: string;
|
|
94
94
|
};
|
|
95
95
|
VariationSelector: {
|
|
96
96
|
Title: string;
|
|
97
|
-
|
|
97
|
+
Summary: string;
|
|
98
98
|
};
|
|
99
99
|
RSSReader: {
|
|
100
100
|
Title: string;
|
|
101
|
-
|
|
101
|
+
Summary: string;
|
|
102
102
|
};
|
|
103
103
|
ActivityFeed: {
|
|
104
104
|
Title: string;
|
|
105
|
-
|
|
105
|
+
Summary: string;
|
|
106
106
|
};
|
|
107
107
|
PageFeedback: {
|
|
108
108
|
Title: string;
|
|
109
|
-
|
|
109
|
+
Summary: string;
|
|
110
110
|
};
|
|
111
111
|
Iframe: {
|
|
112
112
|
Title: string;
|
|
113
|
-
|
|
113
|
+
BlockSummary: string;
|
|
114
114
|
};
|
|
115
115
|
ChannelRollup: {
|
|
116
116
|
Title: string;
|
|
117
|
-
|
|
117
|
+
Summary: string;
|
|
118
118
|
};
|
|
119
119
|
PageNavigation: {
|
|
120
120
|
Title: string;
|
|
121
|
-
|
|
121
|
+
Summary: string;
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
BlockSettings: {
|
|
@@ -131,6 +131,7 @@ export declare module EditorLocalization {
|
|
|
131
131
|
ArchivedAt: string;
|
|
132
132
|
Comment: string;
|
|
133
133
|
CreateCopy: string;
|
|
134
|
+
CreateCopyTooltip: string;
|
|
134
135
|
Terminate: string;
|
|
135
136
|
TerminateConfirmationMessage: string;
|
|
136
137
|
RestoreConfirmationMessage: string;
|
|
@@ -234,6 +235,7 @@ export declare module EditorLocalization {
|
|
|
234
235
|
};
|
|
235
236
|
ListView: string;
|
|
236
237
|
};
|
|
238
|
+
MaximumCapacityMessage: string;
|
|
237
239
|
};
|
|
238
240
|
AppDocuments: {
|
|
239
241
|
Documents: string;
|
|
@@ -298,6 +300,7 @@ export declare module EditorLocalization {
|
|
|
298
300
|
Versions: {
|
|
299
301
|
Title: string;
|
|
300
302
|
OlderVersions: string;
|
|
303
|
+
Suspended: string;
|
|
301
304
|
};
|
|
302
305
|
ActivityPoints: {
|
|
303
306
|
Title: string;
|
|
@@ -736,6 +739,7 @@ export declare module EditorLocalization {
|
|
|
736
739
|
DuplicateWarningMessage: string;
|
|
737
740
|
MoveAsChild: string;
|
|
738
741
|
MoveAsSibling: string;
|
|
742
|
+
DuplicateWarningMessageWhenMovingAsSibling: string;
|
|
739
743
|
};
|
|
740
744
|
SendAppprovalRequest: {
|
|
741
745
|
Title: string;
|
|
@@ -876,6 +880,54 @@ export declare module EditorLocalization {
|
|
|
876
880
|
Cancel: string;
|
|
877
881
|
Approval: string;
|
|
878
882
|
};
|
|
883
|
+
PageReviewRule: {
|
|
884
|
+
Title: string;
|
|
885
|
+
RuleName: string;
|
|
886
|
+
DateProperty: string;
|
|
887
|
+
MessageBarEnabled: string;
|
|
888
|
+
MessageBarTitle: string;
|
|
889
|
+
MessageBarBody: string;
|
|
890
|
+
MessageBarBackgroundColor: string;
|
|
891
|
+
MessageBarTextColor: string;
|
|
892
|
+
EmailEnabled: string;
|
|
893
|
+
EmailSubject: string;
|
|
894
|
+
EmailBody: string;
|
|
895
|
+
EmailRecipients: string;
|
|
896
|
+
SuspendEnabled: string;
|
|
897
|
+
ChangePageTypeEnabled: string;
|
|
898
|
+
PageType: string;
|
|
899
|
+
RemoveFromSearch: string;
|
|
900
|
+
Save: string;
|
|
901
|
+
Add: string;
|
|
902
|
+
Cancel: string;
|
|
903
|
+
TestEmailDialog: {
|
|
904
|
+
Title: string;
|
|
905
|
+
Instruction: string;
|
|
906
|
+
InfoText: string;
|
|
907
|
+
Buttons: {
|
|
908
|
+
SendEmail: string;
|
|
909
|
+
};
|
|
910
|
+
NoPagesFoundMessage: string;
|
|
911
|
+
};
|
|
912
|
+
EditRuleBtn: string;
|
|
913
|
+
DeleteRuleBtn: string;
|
|
914
|
+
TestEmailBtn: string;
|
|
915
|
+
Placeholders: {
|
|
916
|
+
Title: string;
|
|
917
|
+
PlaceholderContent: string;
|
|
918
|
+
Property: string;
|
|
919
|
+
};
|
|
920
|
+
EmailTemplate: string;
|
|
921
|
+
};
|
|
922
|
+
RemovePageReviewRuleSettings: {
|
|
923
|
+
Title: string;
|
|
924
|
+
ConfirmationMessage: string;
|
|
925
|
+
};
|
|
926
|
+
PageReviewValidationFailed: {
|
|
927
|
+
Title: string;
|
|
928
|
+
Message: string;
|
|
929
|
+
Close: string;
|
|
930
|
+
};
|
|
879
931
|
};
|
|
880
932
|
Tabs: {
|
|
881
933
|
Gamification: string;
|
|
@@ -264,6 +264,22 @@ export declare module PublishingAppLocalization {
|
|
|
264
264
|
VariationAuthor: string;
|
|
265
265
|
Content: string;
|
|
266
266
|
};
|
|
267
|
+
VariationNotification: {
|
|
268
|
+
VariationAuthor: {
|
|
269
|
+
NewPage: {
|
|
270
|
+
Subject: string;
|
|
271
|
+
Content: string;
|
|
272
|
+
};
|
|
273
|
+
NewVersion: {
|
|
274
|
+
Subject: string;
|
|
275
|
+
Content: string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
PageProperty: {
|
|
279
|
+
Subject: string;
|
|
280
|
+
Template: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
267
283
|
InvitationOfCoAuthors: {
|
|
268
284
|
Subject: string;
|
|
269
285
|
Body: string;
|
|
@@ -305,7 +321,7 @@ export declare module PublishingAppLocalization {
|
|
|
305
321
|
UrlSegmentIsNotFriendly: string;
|
|
306
322
|
DuplicateFilterError: string;
|
|
307
323
|
Author: string;
|
|
308
|
-
|
|
324
|
+
VariationAuthors: string;
|
|
309
325
|
NoLanguageSelectedError: string;
|
|
310
326
|
AutomaticMachineTranslation: string;
|
|
311
327
|
ActiveRightToLeft: string;
|
|
@@ -314,6 +330,15 @@ export declare module PublishingAppLocalization {
|
|
|
314
330
|
Title: string;
|
|
315
331
|
Message: string;
|
|
316
332
|
};
|
|
333
|
+
EnableEditNotifications: string;
|
|
334
|
+
NotifyForEdit: {
|
|
335
|
+
SectionLabel: string;
|
|
336
|
+
NoteTitle: string;
|
|
337
|
+
Note: string;
|
|
338
|
+
VariationAuthor: string;
|
|
339
|
+
PagePropertyUsers: string;
|
|
340
|
+
UserPropertyPickerLabel: string;
|
|
341
|
+
};
|
|
317
342
|
};
|
|
318
343
|
StatisticProvider: {
|
|
319
344
|
SiteScript: string;
|
|
@@ -366,7 +391,7 @@ export declare module PublishingAppLocalization {
|
|
|
366
391
|
PageUsingAutomaticTranslationMessage: string;
|
|
367
392
|
PublishingAppRollup: {
|
|
368
393
|
Title: string;
|
|
369
|
-
|
|
394
|
+
Summary: string;
|
|
370
395
|
};
|
|
371
396
|
AutomaticArchive: {
|
|
372
397
|
EnableAutomaticArchive: string;
|
|
@@ -391,6 +416,7 @@ export declare module PublishingAppLocalization {
|
|
|
391
416
|
InvalidSiteUrlErrorMessage: string;
|
|
392
417
|
ExistedSiteUrlErrorMessage: string;
|
|
393
418
|
NoMatchingSPSiteTemplate: string;
|
|
419
|
+
MissingPermissionErrorMessage: string;
|
|
394
420
|
};
|
|
395
421
|
Actions: {
|
|
396
422
|
CreateNew: string;
|
|
@@ -4,6 +4,7 @@ export declare module ItemQueryHelper {
|
|
|
4
4
|
const PageId = "PId";
|
|
5
5
|
const ConditionExpressionFilter = "ConditionExpressionFilter";
|
|
6
6
|
const VariationId = "VariationId";
|
|
7
|
+
const VariationOfPageId = "VariationOfPageId";
|
|
7
8
|
function generateExcludePageId(logicalOperator: FilterLogicalOperator, pageId: PageId, filters?: Array<QueryFilter>): QueryFilter;
|
|
8
9
|
function generateFalseFilter(logicalOperator: FilterLogicalOperator, filters?: Array<QueryFilter>): QueryFilter;
|
|
9
10
|
function generateTrueFilter(logicalOperator: FilterLogicalOperator, filters?: Array<QueryFilter>): QueryFilter;
|
|
@@ -143,6 +143,7 @@ export declare const PageBuiltInColumnConstants: {
|
|
|
143
143
|
workflowStatus: string;
|
|
144
144
|
checkedOutBy: string;
|
|
145
145
|
pageCollectionId: string;
|
|
146
|
+
suspended: string;
|
|
146
147
|
};
|
|
147
148
|
export declare const PageRollupFilterEngineContextPropertyTypes: {
|
|
148
149
|
publishingApp: Guid;
|
|
@@ -181,4 +182,5 @@ export declare const OmniaSearchConstants: {
|
|
|
181
182
|
readonly isDefaultPageVariation: string;
|
|
182
183
|
readonly hiddenByPageId: string;
|
|
183
184
|
readonly deletedAt: string;
|
|
185
|
+
readonly suspended: string;
|
|
184
186
|
};
|
|
@@ -233,7 +233,8 @@ exports.PageBuiltInColumnConstants = {
|
|
|
233
233
|
publishingAppId: "PublishingAppId",
|
|
234
234
|
workflowStatus: "WorkflowStatus",
|
|
235
235
|
checkedOutBy: "CheckedOutBy",
|
|
236
|
-
pageCollectionId: "PageCollectionId"
|
|
236
|
+
pageCollectionId: "PageCollectionId",
|
|
237
|
+
suspended: "Suspended"
|
|
237
238
|
};
|
|
238
239
|
exports.PageRollupFilterEngineContextPropertyTypes = {
|
|
239
240
|
publishingApp: new fx_models_1.Guid("754a1a89-c360-40f2-9bb5-4a1adee17a11"),
|
|
@@ -331,5 +332,8 @@ exports.OmniaSearchConstants = {
|
|
|
331
332
|
},
|
|
332
333
|
get deletedAt() {
|
|
333
334
|
return "deletedAt";
|
|
335
|
+
},
|
|
336
|
+
get suspended() {
|
|
337
|
+
return "suspended";
|
|
334
338
|
}
|
|
335
339
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
import { RoleDefinitions as OmniaRoleDefinitions } from "@omnia/fx-models";
|
|
1
2
|
export declare enum Parameters {
|
|
2
3
|
PageId = "PageId",
|
|
3
4
|
SecurityResourceId = "SecurityResourceId",
|
|
4
5
|
PageCollectionId = "PageCollectionId",
|
|
5
6
|
ChannelId = "ChannelResourceId",
|
|
6
|
-
ExtensionId = "ExtensionId"
|
|
7
|
+
ExtensionId = "ExtensionId",
|
|
8
|
+
VariationId = "VariationId"
|
|
7
9
|
}
|
|
8
10
|
export declare enum ResourceEvaluators {
|
|
9
11
|
SecurityResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.ISecurityResourceEvaluator",
|
|
10
12
|
PageCollection = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IPageCollectionResourceEvaluator",
|
|
11
13
|
ChannelSecurityResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IChannelSecurityResourceEvaluator",
|
|
12
14
|
ExtensionResource = "Omnia.Fx.Extensions.Security.IExtensionInstanceResourceEvaluator",
|
|
13
|
-
PageApprovalResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IPageApprovalSecurityResourceEvaluator"
|
|
15
|
+
PageApprovalResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IPageApprovalSecurityResourceEvaluator",
|
|
16
|
+
VariationSecurityResource = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IVariationSecurityResourceEvaluator"
|
|
14
17
|
}
|
|
15
18
|
export declare enum RoleDefinitions {
|
|
16
19
|
Editor = "4e76e9ec-ecbc-48cc-bd50-68d573d795b1",
|
|
@@ -83,3 +86,8 @@ export declare enum WcmAppDefaultResourceUrl {
|
|
|
83
86
|
YammerGroup = 0,
|
|
84
87
|
SharePoint = 1
|
|
85
88
|
}
|
|
89
|
+
export declare class GetRoleDefinitions {
|
|
90
|
+
static get AdminRoleDefinitions(): (RoleDefinitions | OmniaRoleDefinitions)[];
|
|
91
|
+
static get EditorRoleDefinitions(): RoleDefinitions[];
|
|
92
|
+
static get AuthorRoleDefinitions(): RoleDefinitions[];
|
|
93
|
+
}
|
|
@@ -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";
|
|
@@ -8,6 +9,7 @@ var Parameters;
|
|
|
8
9
|
Parameters["PageCollectionId"] = "PageCollectionId";
|
|
9
10
|
Parameters["ChannelId"] = "ChannelResourceId";
|
|
10
11
|
Parameters["ExtensionId"] = "ExtensionId";
|
|
12
|
+
Parameters["VariationId"] = "VariationId";
|
|
11
13
|
})(Parameters = exports.Parameters || (exports.Parameters = {}));
|
|
12
14
|
var ResourceEvaluators;
|
|
13
15
|
(function (ResourceEvaluators) {
|
|
@@ -16,6 +18,7 @@ var ResourceEvaluators;
|
|
|
16
18
|
ResourceEvaluators["ChannelSecurityResource"] = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IChannelSecurityResourceEvaluator";
|
|
17
19
|
ResourceEvaluators["ExtensionResource"] = "Omnia.Fx.Extensions.Security.IExtensionInstanceResourceEvaluator";
|
|
18
20
|
ResourceEvaluators["PageApprovalResource"] = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IPageApprovalSecurityResourceEvaluator";
|
|
21
|
+
ResourceEvaluators["VariationSecurityResource"] = "Omnia.WebContentManagement.Core.Security.ResourceEvaluators.IVariationSecurityResourceEvaluator";
|
|
19
22
|
})(ResourceEvaluators = exports.ResourceEvaluators || (exports.ResourceEvaluators = {}));
|
|
20
23
|
var RoleDefinitions;
|
|
21
24
|
(function (RoleDefinitions) {
|
|
@@ -100,3 +103,9 @@ var WcmAppDefaultResourceUrl;
|
|
|
100
103
|
WcmAppDefaultResourceUrl[WcmAppDefaultResourceUrl["YammerGroup"] = 0] = "YammerGroup";
|
|
101
104
|
WcmAppDefaultResourceUrl[WcmAppDefaultResourceUrl["SharePoint"] = 1] = "SharePoint";
|
|
102
105
|
})(WcmAppDefaultResourceUrl = exports.WcmAppDefaultResourceUrl || (exports.WcmAppDefaultResourceUrl = {}));
|
|
106
|
+
class GetRoleDefinitions {
|
|
107
|
+
static get AdminRoleDefinitions() { return [fx_models_1.RoleDefinitions.AppInstanceAdmin, RoleDefinitions.PageCollectionAdmin]; }
|
|
108
|
+
static get EditorRoleDefinitions() { return [RoleDefinitions.Editor, RoleDefinitions.VariationEditor]; }
|
|
109
|
+
static get AuthorRoleDefinitions() { return [RoleDefinitions.Author, RoleDefinitions.VariationAuthor, RoleDefinitions.Approver]; }
|
|
110
|
+
}
|
|
111
|
+
exports.GetRoleDefinitions = GetRoleDefinitions;
|
|
@@ -107,6 +107,7 @@ export declare class WcmResourceManifests {
|
|
|
107
107
|
static get WCMGlossaryType(): Guid;
|
|
108
108
|
static get PageCreationCore(): Guid;
|
|
109
109
|
static get PageTypeAnalyticsCore(): Guid;
|
|
110
|
+
static get PageBulkUpdateResources(): Guid;
|
|
110
111
|
}
|
|
111
112
|
export declare class WcmWebComponentManifests {
|
|
112
113
|
static get LinkPickerExtension(): Guid;
|
|
@@ -197,6 +198,8 @@ export declare class WcmWebComponentManifests {
|
|
|
197
198
|
static get WcmAdminSharepointSyncSearchBlade(): Guid;
|
|
198
199
|
static get WcmAdminSharepointSyncCreateSearchPropertyBlade(): Guid;
|
|
199
200
|
static get WcmAdminPageBulkUpdateBlade(): Guid;
|
|
201
|
+
static get WcmAdminPageBulkUpdateLogsBlade(): Guid;
|
|
202
|
+
static get WcmAdminPageBulkUpdateLogDetailBlade(): Guid;
|
|
200
203
|
static get AdminLayoutsBlade(): Guid;
|
|
201
204
|
static get AdminCreatePageCollectionBlade(): Guid;
|
|
202
205
|
static get AdminPageCollectionSettingBlade(): Guid;
|
|
@@ -120,6 +120,7 @@ class WcmResourceManifests {
|
|
|
120
120
|
static get WCMGlossaryType() { return new fx_models_1.Guid("47B70789-B295-4DA7-BB4C-95BD275A4606"); }
|
|
121
121
|
static get PageCreationCore() { return new fx_models_1.Guid("4c4b8bcc-ecc9-403e-934d-49bb26a75f3a"); }
|
|
122
122
|
static get PageTypeAnalyticsCore() { return new fx_models_1.Guid("663a621f-90a8-45c5-bb9c-cd6c7c35d7f6"); }
|
|
123
|
+
static get PageBulkUpdateResources() { return new fx_models_1.Guid("07f07d65-f0d3-4e63-8c8c-c949934606bd"); }
|
|
123
124
|
}
|
|
124
125
|
exports.WcmResourceManifests = WcmResourceManifests;
|
|
125
126
|
class WcmWebComponentManifests {
|
|
@@ -213,6 +214,8 @@ class WcmWebComponentManifests {
|
|
|
213
214
|
static get WcmAdminSharepointSyncSearchBlade() { return new fx_models_1.Guid("9CA57449-0689-4989-ADBF-EBBF55136552"); }
|
|
214
215
|
static get WcmAdminSharepointSyncCreateSearchPropertyBlade() { return new fx_models_1.Guid("3548DF2B-3208-43E2-83B5-DC5C9A304328"); }
|
|
215
216
|
static get WcmAdminPageBulkUpdateBlade() { return new fx_models_1.Guid("b1051d05-cba3-4f25-955f-9b56735de28b"); }
|
|
217
|
+
static get WcmAdminPageBulkUpdateLogsBlade() { return new fx_models_1.Guid("5c5b7c43-f926-48a5-b12c-eaabc5d36b5d"); }
|
|
218
|
+
static get WcmAdminPageBulkUpdateLogDetailBlade() { return new fx_models_1.Guid("72474961-e7fc-4848-9d6c-6e0f1d789aba"); }
|
|
216
219
|
static get AdminLayoutsBlade() { return new fx_models_1.Guid("c09dee63-cfd3-4451-ae2d-3404c55b0e2c"); }
|
|
217
220
|
static get AdminCreatePageCollectionBlade() { return new fx_models_1.Guid("57f2cd00-7103-478c-bb86-e469d4aab004"); }
|
|
218
221
|
static get AdminPageCollectionSettingBlade() { return new fx_models_1.Guid("0e51c7bc-368e-4d75-8fc8-0345a395cd69"); }
|
|
@@ -33,6 +33,7 @@ export interface ContentBlockSettings extends BlockSettingsWithDefaultProperty<s
|
|
|
33
33
|
blockTitle: MultilingualString;
|
|
34
34
|
defaultTextColor?: string;
|
|
35
35
|
enableMachineTranslation?: boolean;
|
|
36
|
+
versionComparisonType?: VersionComparisonType;
|
|
36
37
|
useAsMainHeading?: boolean;
|
|
37
38
|
breakPointSettings?: {
|
|
38
39
|
[breakPointId: string]: ContentBlockBreakPointSettings;
|
|
@@ -45,3 +46,7 @@ export interface ContentBlockSettings extends BlockSettingsWithDefaultProperty<s
|
|
|
45
46
|
export interface ContentBlockAutomaticSummaryRegistration {
|
|
46
47
|
propertyMapping: PropertyMapping;
|
|
47
48
|
}
|
|
49
|
+
export declare enum VersionComparisonType {
|
|
50
|
+
CompareWithDefaultVariation = 1,
|
|
51
|
+
CompareWithCurrentVariation = 2
|
|
52
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuildInContentBlockTextStyleFormatting = exports.ContentBlockModes = void 0;
|
|
3
|
+
exports.VersionComparisonType = exports.BuildInContentBlockTextStyleFormatting = exports.ContentBlockModes = void 0;
|
|
4
4
|
var ContentBlockModes;
|
|
5
5
|
(function (ContentBlockModes) {
|
|
6
6
|
ContentBlockModes[ContentBlockModes["RichText"] = 1] = "RichText";
|
|
@@ -22,3 +22,8 @@ var BuildInContentBlockTextStyleFormatting;
|
|
|
22
22
|
BuildInContentBlockTextStyleFormatting["Heading6"] = "f0b42e88-47e3-4b69-8d11-393683214810";
|
|
23
23
|
BuildInContentBlockTextStyleFormatting["Custom"] = "00000000-0000-0000-0000-000000000000";
|
|
24
24
|
})(BuildInContentBlockTextStyleFormatting = exports.BuildInContentBlockTextStyleFormatting || (exports.BuildInContentBlockTextStyleFormatting = {}));
|
|
25
|
+
var VersionComparisonType;
|
|
26
|
+
(function (VersionComparisonType) {
|
|
27
|
+
VersionComparisonType[VersionComparisonType["CompareWithDefaultVariation"] = 1] = "CompareWithDefaultVariation";
|
|
28
|
+
VersionComparisonType[VersionComparisonType["CompareWithCurrentVariation"] = 2] = "CompareWithCurrentVariation";
|
|
29
|
+
})(VersionComparisonType = exports.VersionComparisonType || (exports.VersionComparisonType = {}));
|
package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { SpacingSettings } from "@omnia/fx-models";
|
|
|
3
3
|
import { ITheming } from "@omnia/fx/ux";
|
|
4
4
|
import { PagePropertiesBlockSettings } from ".";
|
|
5
5
|
export declare const PagePropertiesBlockAdvancedStyles: {
|
|
6
|
-
propertyWrapper?: types.NestedCSSProperties;
|
|
7
|
-
propertyContentWrapper?: (settings: PagePropertiesBlockSettings) => types.NestedCSSProperties;
|
|
6
|
+
propertyWrapper?: (isFlexBox: boolean) => types.NestedCSSProperties;
|
|
7
|
+
propertyContentWrapper?: (settings: PagePropertiesBlockSettings, isFlexBox: boolean) => types.NestedCSSProperties;
|
|
8
8
|
icon?: types.NestedCSSProperties;
|
|
9
9
|
propertyLabelWrapper?: (fullWidth: boolean, textColor: string) => types.NestedCSSProperties;
|
|
10
10
|
propertyLabel?: (fullWidth: boolean) => types.NestedCSSProperties;
|
|
@@ -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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnterprisePropertyDefinition, GuidValue, IVersionedDataIdentifier, MultilingualString, TimePeriodSettings } from "@omnia/fx-models";
|
|
1
|
+
import { DateOperator, EnterprisePropertyDefinition, GuidValue, IVersionedDataIdentifier, MultilingualString, TimePeriodSettings } from "@omnia/fx-models";
|
|
2
2
|
import { PageId } from ".";
|
|
3
3
|
import { ChildStructureType } from "..";
|
|
4
4
|
import { QueryFilter } from "../query";
|
|
@@ -120,5 +120,6 @@ export interface OverriddenProperty {
|
|
|
120
120
|
defaultValue?: any;
|
|
121
121
|
calculatedFromProperty?: string;
|
|
122
122
|
timePeriodSettingsForDefaultValue?: TimePeriodSettings;
|
|
123
|
+
dateOperatorForDefaultValue?: DateOperator;
|
|
123
124
|
readonly?: boolean;
|
|
124
125
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, Identity, MultilingualString, TimePeriodSettings,
|
|
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
|
|
@@ -17,6 +18,7 @@ export interface PageTypePropertyInfo extends EnterprisePropertyItemSettings {
|
|
|
17
18
|
defaultValue?: any;
|
|
18
19
|
calculatedFromProperty: string;
|
|
19
20
|
timePeriodSettingsForDefaultValue?: TimePeriodSettings;
|
|
21
|
+
dateOperatorForDefaultValue?: DateOperator;
|
|
20
22
|
readonly?: boolean;
|
|
21
23
|
category: string;
|
|
22
24
|
receiveEmail?: boolean;
|
|
@@ -39,6 +41,7 @@ export interface PageTypeData extends PageData {
|
|
|
39
41
|
sharepointSyncPageSettings?: SharepointSyncPageSettings;
|
|
40
42
|
automaticArchiveSettings: AutomaticArchiveSettings;
|
|
41
43
|
analyticsSettings?: AnalyticsSettings;
|
|
44
|
+
pageReviewRules?: number[];
|
|
42
45
|
}
|
|
43
46
|
export interface PageTypeProperty extends EnterprisePropertyDefinition {
|
|
44
47
|
info: PageTypePropertyInfo;
|
|
@@ -49,3 +52,50 @@ export interface ContentPropertyWithInfo extends EnterprisePropertyDefinition {
|
|
|
49
52
|
export interface AutomaticArchiveSettings {
|
|
50
53
|
property: string;
|
|
51
54
|
}
|
|
55
|
+
export interface MessageBarSettings {
|
|
56
|
+
title: MultilingualString;
|
|
57
|
+
body: MultilingualString;
|
|
58
|
+
icon: IconPickerModel;
|
|
59
|
+
backgroundColor: string;
|
|
60
|
+
textColor: string;
|
|
61
|
+
}
|
|
62
|
+
export interface SendEmailSettings {
|
|
63
|
+
subject: MultilingualString;
|
|
64
|
+
body: MultilingualString;
|
|
65
|
+
recipientProperties: string[];
|
|
66
|
+
}
|
|
67
|
+
export interface ChangePageTypeSettings {
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
pageTypeId: number;
|
|
70
|
+
}
|
|
71
|
+
export interface SuspendedSettings {
|
|
72
|
+
changePageType: ChangePageTypeSettings;
|
|
73
|
+
removeFromSearchEnabled: boolean;
|
|
74
|
+
}
|
|
75
|
+
export interface PageReviewRuleVersion {
|
|
76
|
+
id: number;
|
|
77
|
+
ruleId: GuidValue;
|
|
78
|
+
pageId: number;
|
|
79
|
+
originalPageVersionId: number;
|
|
80
|
+
title: MultilingualString;
|
|
81
|
+
dateProperty: string;
|
|
82
|
+
messageBarEnabled: boolean;
|
|
83
|
+
messageBarSettings: MessageBarSettings;
|
|
84
|
+
emailEnabled: boolean;
|
|
85
|
+
emailSettings: SendEmailSettings;
|
|
86
|
+
suspendEnabled: boolean;
|
|
87
|
+
suspendedSettings: SuspendedSettings;
|
|
88
|
+
}
|
|
89
|
+
export interface PageReviewRuleEvaluationResult {
|
|
90
|
+
pageReviewRule: PageReviewRuleVersion;
|
|
91
|
+
reviewDate: Date;
|
|
92
|
+
showMessageBar: boolean;
|
|
93
|
+
isSuspended: boolean;
|
|
94
|
+
sendEmail: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface PageReviewRuleTestMailTemplateRequest {
|
|
97
|
+
ruleVersionId: number;
|
|
98
|
+
pageTypeId: number;
|
|
99
|
+
identities: UserIdentity[];
|
|
100
|
+
pageIds: PageId[];
|
|
101
|
+
}
|
|
@@ -9,4 +9,11 @@ export interface VersionInformation extends AuditingInformation {
|
|
|
9
9
|
majorVersion: number;
|
|
10
10
|
minorVersion: number;
|
|
11
11
|
checkedOutBy: Identity;
|
|
12
|
+
suspendedAt?: string;
|
|
13
|
+
}
|
|
14
|
+
export type PageEnterprisePropertyDictionary = {
|
|
15
|
+
[internalName: string]: any;
|
|
16
|
+
};
|
|
17
|
+
export interface VersionInformationDetail extends VersionInformation {
|
|
18
|
+
enterpriseProperties: PageEnterprisePropertyDictionary;
|
|
12
19
|
}
|