@omnia/wcm 7.10.0-preview.8 → 7.11.0-preview.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/internal-do-not-import-from-here/core/Utils.d.ts +5 -1
- package/internal-do-not-import-from-here/core/loc/CoreLocalization.d.ts +14 -1
- package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +46 -3
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +4 -0
- package/internal-do-not-import-from-here/core/loc/PublishingAppLocalization.d.ts +54 -2
- package/internal-do-not-import-from-here/core/messaging/WcmPublicTopics.d.ts +3 -2
- package/internal-do-not-import-from-here/fx/constants.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/helpers/ItemQueryHelper.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/Constants.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/models/Constants.js +6 -1
- package/internal-do-not-import-from-here/fx/models/Enums.d.ts +8 -0
- package/internal-do-not-import-from-here/fx/models/Enums.js +10 -1
- package/internal-do-not-import-from-here/fx/models/channels/PublishingChannel.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/CalendarRollupBlockStyles.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/components/LinkPicker.d.ts +21 -1
- package/internal-do-not-import-from-here/fx/models/components/LinkPicker.js +8 -1
- package/internal-do-not-import-from-here/fx/models/components/LinkPickerExtension.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/components/PageRollupBlock.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/models/components/PageRollupBlockStyles.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/document/DocumentDurableInfo.d.ts +13 -0
- package/internal-do-not-import-from-here/fx/models/document/DocumentDurableInfo.js +2 -0
- package/internal-do-not-import-from-here/fx/models/document/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/document/index.js +4 -0
- package/internal-do-not-import-from-here/fx/models/eventmanagement/components/ActionButtonSignUpHandlerSettings.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/linkpicker/ILinkPickerProvider.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/navigation/LinkNavigationData.d.ts +3 -1
- package/internal-do-not-import-from-here/fx/models/navigation/NavigationData.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/navigation/NavigationData.js +2 -0
- package/internal-do-not-import-from-here/fx/models/navigation/TextNavigationData.d.ts +5 -0
- package/internal-do-not-import-from-here/fx/models/navigation/TextNavigationData.js +2 -0
- package/internal-do-not-import-from-here/fx/models/navigation/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/navigation/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.d.ts +3 -1
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.js +2 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupQuery.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/models/pages/ApprovalRequestInfo.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/models/pages/ApprovalRequestInfo.js +6 -0
- package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.js +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/PageCollectionData.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/PageData.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/PagePermissionInfo.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/PageTypeData.d.ts +9 -6
- package/internal-do-not-import-from-here/fx/models/pages/PendingApprovalPage.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/pages/RestorePageMessage.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.d.ts +21 -0
- package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.js +40 -0
- package/internal-do-not-import-from-here/fx/models/publishingrule/PublishingRule.d.ts +3 -1
- package/internal-do-not-import-from-here/fx/models/publishingrule/PublishingRule.js +2 -0
- package/internal-do-not-import-from-here/fx/models/publishingrule/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/publishingrule/index.js +1 -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/services/ChannelManagementService.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/services/DocumentService.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/services/PageService.d.ts +1 -2
- package/internal-do-not-import-from-here/fx/services/PublishingRuleService.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/shared/OmniaSearchQueryUtils.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/stores/ChannelManagementStore.d.ts +7 -1
- package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +3 -2
- package/internal-do-not-import-from-here/fx/stores/NavigationStore.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +14 -0
- package/internal-do-not-import-from-here/fx/stores/PublishingRuleStore.d.ts +4 -4
- 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/pagearchive/NavigationArchiveDependency.d.ts +1 -0
- package/internal-do-not-import-from-here/models/publishingapp/approval/PageApproval.d.ts +19 -5
- package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.d.ts +7 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.js +8 -1
- package/internal-do-not-import-from-here/models/publishingapp/editor/Messages.d.ts +4 -2
- package/internal-do-not-import-from-here/models/publishingapp/publish/PagePublish.d.ts +2 -1
- package/internal-do-not-import-from-here/models/publishingapp/publish/PagePublish.js +1 -0
- package/internal-do-not-import-from-here/models/security/Security.js +3 -0
- package/internal-do-not-import-from-here/wcdefinitions.json +1 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
|
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:
|
|
90
|
+
pageReviewRule: PageReviewRuleVersion;
|
|
89
91
|
reviewDate: Date;
|
|
90
92
|
showMessageBar: boolean;
|
|
91
93
|
isSuspended: boolean;
|
|
92
94
|
sendEmail: boolean;
|
|
93
95
|
}
|
|
94
|
-
export interface
|
|
95
|
-
|
|
96
|
+
export interface PageReviewRuleTestMailTemplateRequest {
|
|
97
|
+
ruleVersionId: number;
|
|
96
98
|
pageTypeId: number;
|
|
97
|
-
|
|
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
|
-
|
|
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 = {}));
|
|
@@ -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 = {}));
|
|
@@ -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);
|
|
@@ -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,
|
|
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
|
|
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;
|
|
@@ -19,6 +19,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
19
19
|
private userTargetingStore;
|
|
20
20
|
topicsActivityStore: TopicsActivityStore;
|
|
21
21
|
publishingChannels: import("@omnia/fx/stores").StoreState<ChannelIdtoChannelMap>;
|
|
22
|
+
publishingChannelsWithTargeting: import("@omnia/fx/stores").StoreState<ChannelIdtoChannelMap>;
|
|
22
23
|
waitingforApproveList: import("@omnia/fx/stores").StoreState<ChannelPageGroupMapping>;
|
|
23
24
|
resolvedUser: import("@omnia/fx/stores").StoreState<ResolvedUserIdentity>;
|
|
24
25
|
pendingChangeChannelPages: import("@omnia/fx/stores").StoreState<{
|
|
@@ -36,6 +37,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
36
37
|
private isPublishingPageToChannels;
|
|
37
38
|
private ensuredLoadDataPromise;
|
|
38
39
|
private ensuredGetPublishingChannelsPromise;
|
|
40
|
+
private ensuredGetTargetingChannelsPromise;
|
|
39
41
|
private userAuthorizedChannelResources;
|
|
40
42
|
onActivated(): void;
|
|
41
43
|
onDisposing(): void;
|
|
@@ -45,6 +47,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
45
47
|
[key: string]: PublishingChannelPage[];
|
|
46
48
|
};
|
|
47
49
|
getPublishingChannels: () => PublishingChannel[];
|
|
50
|
+
getPublishingChannelsWithTargeting: () => PublishingChannel[];
|
|
48
51
|
getPublisingChannelbyId: (channelId: PublishingChannelId) => PublishingChannel;
|
|
49
52
|
hasPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
|
|
50
53
|
hasAssignChannelAdminPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
|
|
@@ -53,6 +56,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
53
56
|
isPublishingPageToChannels: (pageId: PageId) => boolean;
|
|
54
57
|
getWaitingforApprovalPages: (channelId: PublishingChannelId) => number[];
|
|
55
58
|
getAllPublishingChannels: () => PublishingChannel[];
|
|
59
|
+
getAllPublishingChannelsWithTargeting: () => PublishingChannel[];
|
|
56
60
|
getUserPublishingChannelSubscripton: () => Array<PublishingChannel>;
|
|
57
61
|
};
|
|
58
62
|
/**
|
|
@@ -60,6 +64,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
60
64
|
*/
|
|
61
65
|
mutations: {
|
|
62
66
|
addOrUpdatePublishingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array<PublishingChannel>) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
67
|
+
addOrUpdateTargetingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array<PublishingChannel>) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
63
68
|
deletePublishingChannel: import("@omnia/fx/stores").StoreMutation<(deleteChannel: PublishingChannel) => void, (deleteChannel: PublishingChannel) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
64
69
|
updateChannelPages: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, result: Array<ChannelPage>) => void, (pageId: PageId, result: ChannelPage[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
65
70
|
updateIsPublishingPageToChannels: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, isPublishing: boolean) => void, (pageId: PageId, isPublishing: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
@@ -72,11 +77,12 @@ export declare class ChannelManagementStore extends Store {
|
|
|
72
77
|
actions: {
|
|
73
78
|
ensureUserPermission: import("@omnia/fx/stores").StoreAction<unknown, (userIdentity: string) => void, (result: boolean, userIdentity: string) => void, (failureReason: any, userIdentity: string) => void, (userIdentity: string) => Promise<boolean>>;
|
|
74
79
|
ensurePublishingChannels: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise<Array<PublishingChannel>>>;
|
|
80
|
+
ensureTargetingChannels: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise<Array<PublishingChannel>>>;
|
|
75
81
|
ensureLoadData: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
|
|
76
82
|
ensureChannelPages: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<boolean>>;
|
|
77
83
|
ensurePublishedChannelsByPageId: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<boolean>>;
|
|
78
84
|
ensurePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (channelId: number) => void, (result: PublishingChannel, channelId: number) => void, (failureReason: any, channelId: number) => void, (channelId: number) => Promise<PublishingChannel>>;
|
|
79
|
-
createPublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (result: PublishingChannel, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (failureReason: any, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>>;
|
|
85
|
+
createPublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (result: PublishingChannel, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (failureReason: any, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>>;
|
|
80
86
|
updatePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (editRequest: PublishingChannel) => void, (result: PublishingChannel, editRequest: PublishingChannel) => void, (failureReason: any, editRequest: PublishingChannel) => void, (editRequest: PublishingChannel) => Promise<PublishingChannel>>;
|
|
81
87
|
deletePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (channelId: PublishingChannelId) => void, (result: PublishingChannel, channelId: PublishingChannelId) => void, (failureReason: any, channelId: PublishingChannelId) => void, (channelId: PublishingChannelId) => Promise<PublishingChannel>>;
|
|
82
88
|
getPageApprovalList: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: ChannelPage[]) => void, (failureReason: any) => void, () => Promise<Array<ChannelPage>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Store } from "@omnia/fx/stores";
|
|
2
|
-
import { Page, VersionedPageData, PageData, VersionReference, PageId, VersionId, IPageVersion } from "../models";
|
|
3
1
|
import { Layout } from "@omnia/fx-models";
|
|
2
|
+
import { Store } from "@omnia/fx/stores";
|
|
3
|
+
import { IPageVersion, Page, PageData, PageId, VersionedPageData, VersionId, VersionReference } from "../models";
|
|
4
4
|
export interface ICurrentPageState {
|
|
5
5
|
/**
|
|
6
6
|
* Reference to the current page
|
|
@@ -160,6 +160,7 @@ export declare class CurrentPageStore extends Store {
|
|
|
160
160
|
private isCurrentVersion;
|
|
161
161
|
private createVersionRefForVersion;
|
|
162
162
|
private getPageFromStore;
|
|
163
|
+
private checkPermission;
|
|
163
164
|
private getPageVersionByRules;
|
|
164
165
|
private ensureCalculatedProperties;
|
|
165
166
|
private resetState;
|