@omnia/wcm 7.10.0-preview.4 → 7.10.0-preview.41
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 +8 -1
- package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +38 -4
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +3 -0
- package/internal-do-not-import-from-here/core/loc/PublishingAppLocalization.d.ts +56 -0
- package/internal-do-not-import-from-here/core/messaging/WcmPublicTopics.d.ts +3 -2
- package/internal-do-not-import-from-here/fx/filterengine/pagerollup/PageRollupFilterEngineContext.d.ts +3 -1
- 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 +1 -0
- package/internal-do-not-import-from-here/fx/models/Constants.js +2 -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/LinkPicker.d.ts +20 -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 +1 -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 +12 -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/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/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 +13 -10
- package/internal-do-not-import-from-here/fx/models/pages/PendingApprovalPage.d.ts +2 -0
- 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/models/variations/Variation.d.ts +5 -1
- package/internal-do-not-import-from-here/fx/models/variations/VariationCreationRequest.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +1 -1
- 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 +2 -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 +13 -1
- 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/models/publishingapp/approval/PageApproval.d.ts +19 -5
- package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.d.ts +3 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.js +4 -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
|
@@ -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
|
|
@@ -40,7 +41,7 @@ export interface PageTypeData extends PageData {
|
|
|
40
41
|
sharepointSyncPageSettings?: SharepointSyncPageSettings;
|
|
41
42
|
automaticArchiveSettings: AutomaticArchiveSettings;
|
|
42
43
|
analyticsSettings?: AnalyticsSettings;
|
|
43
|
-
|
|
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
|
|
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:
|
|
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
|
}
|
|
@@ -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);
|
|
@@ -22,6 +22,10 @@ export interface Variation {
|
|
|
22
22
|
automaticMachineTranslation?: boolean;
|
|
23
23
|
allowEditMachineTranslation?: boolean;
|
|
24
24
|
activeRightToLeft?: boolean;
|
|
25
|
-
|
|
25
|
+
editNotificationSettings?: VariationEditNotificationSettings;
|
|
26
|
+
}
|
|
27
|
+
export interface VariationEditNotificationSettings {
|
|
28
|
+
notifyVariationAuthorOnEdit?: boolean;
|
|
29
|
+
notifyPagePropertyUsersOnEdit?: boolean;
|
|
26
30
|
editNotificationsUserPropertyId?: GuidValue;
|
|
27
31
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { MultilingualString, IIcon, Identity
|
|
1
|
+
import { MultilingualString, IIcon, Identity } from "@omnia/fx-models";
|
|
2
2
|
import { TargetingFilterProperty } from "@omnia/fx-sp";
|
|
3
|
+
import { VariationEditNotificationSettings } from "./Variation";
|
|
3
4
|
export interface VariationCreationRequest {
|
|
4
5
|
displayNames: MultilingualString;
|
|
5
6
|
targetingFilterData: TargetingFilterProperty;
|
|
@@ -10,6 +11,5 @@ export interface VariationCreationRequest {
|
|
|
10
11
|
* */
|
|
11
12
|
author?: Identity;
|
|
12
13
|
authors?: Array<Identity>;
|
|
13
|
-
|
|
14
|
-
editNotificationsUserPropertyId?: GuidValue;
|
|
14
|
+
editNotificationSettings: VariationEditNotificationSettings;
|
|
15
15
|
}
|
|
@@ -22,7 +22,7 @@ export declare class WcmRouter {
|
|
|
22
22
|
private loadTreeForPath;
|
|
23
23
|
navigate<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, forceToNewNavigationState?: boolean): Promise<T>;
|
|
24
24
|
navigateWithVariationTargeting<T extends NavigationNode<NavigationData>>(to: T): Promise<T>;
|
|
25
|
-
navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any): void;
|
|
25
|
+
navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, openEditor?: boolean): void;
|
|
26
26
|
private buildRelativePath;
|
|
27
27
|
private getTargetingVariation;
|
|
28
28
|
onDisposing(): void;
|
|
@@ -4,9 +4,10 @@ import { PublishingChannel, PageId, UserAuthorizedChannelResources, ChannelPage,
|
|
|
4
4
|
export declare class ChannelManagementService {
|
|
5
5
|
private httpClient;
|
|
6
6
|
constructor();
|
|
7
|
-
createPublishingChannel: (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>;
|
|
7
|
+
createPublishingChannel: (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>;
|
|
8
8
|
updatePublishingChannel: (updateData: PublishingChannel) => Promise<PublishingChannel>;
|
|
9
9
|
getPublishingChannels: () => Promise<Array<PublishingChannel>>;
|
|
10
|
+
getTargetingChannels: () => Promise<PublishingChannel[]>;
|
|
10
11
|
getRecentlyUsedChannels: () => Promise<PublishingChannel[]>;
|
|
11
12
|
getPublishingChannelById: (channelId: number) => Promise<PublishingChannel>;
|
|
12
13
|
getChannelPages: (pageId: PageId) => Promise<ChannelPage[]>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { DocumentQuery, DocumentQueryResult, UploadDocumentInfo, Document } from "../models";
|
|
1
|
+
import { DocumentQuery, DocumentQueryResult, UploadDocumentInfo, Document, DocumentDurableInfo } from "../models";
|
|
2
2
|
export declare class DocumentService {
|
|
3
3
|
private httpClient;
|
|
4
4
|
constructor();
|
|
5
5
|
getDocuments: (query: DocumentQuery) => Promise<DocumentQueryResult>;
|
|
6
6
|
upload: (fileInfo: UploadDocumentInfo) => Promise<Document>;
|
|
7
7
|
exists: (fileInfo: UploadDocumentInfo) => Promise<boolean>;
|
|
8
|
+
getSharePointDocumentDeepLink(spDocUrl?: string, docId?: string, siteId?: string): Promise<void | DocumentDurableInfo>;
|
|
8
9
|
}
|
|
@@ -51,10 +51,11 @@ export declare class NavigationService {
|
|
|
51
51
|
[nodeId: number]: NavigationNode<NavigationData>;
|
|
52
52
|
}>;
|
|
53
53
|
getNavigationByNode: (node: NavigationNode<NavigationData>, nodeTypes?: NavigationDataType) => Promise<NavigationResult>;
|
|
54
|
-
getNavigationByPath: (path: string, nodeTypes?: NavigationDataType) => Promise<NavigationResult>;
|
|
54
|
+
getNavigationByPath: (path: string, nodeTypes?: NavigationDataType, appInstanceId?: string) => Promise<NavigationResult>;
|
|
55
55
|
getNodesByPageIds: (...args: Array<PageId>) => Promise<{
|
|
56
56
|
[pageId: number]: PageNavigationNode<PageNavigationData>[];
|
|
57
57
|
}>;
|
|
58
58
|
deleteLinkNodeById: (id: NodeId) => Promise<void>;
|
|
59
|
+
deleteTextNodeById: (id: NodeId) => Promise<void>;
|
|
59
60
|
checkUrlSegmentExists: (appInstanceId: GuidValue, parentNavigationNode: NavigationNode<NavigationData>, urlSegment: string) => Promise<boolean>;
|
|
60
61
|
}
|
|
@@ -4,7 +4,6 @@ import { ApiResponse, GuidValue } from "@omnia/fx-models";
|
|
|
4
4
|
import { VersionReference } from "../models";
|
|
5
5
|
import { NavigationPosition } from "../models/navigation/NavigationPosition";
|
|
6
6
|
import { CreatedPageWithNavigationInfo, CreatedPageInfo } from "../models";
|
|
7
|
-
import { PagePermissionInfo } from "../models";
|
|
8
7
|
import { EnterprisePropertyStore } from "@omnia/fx/stores";
|
|
9
8
|
import { InvitationOfAuthor } from "../../models";
|
|
10
9
|
export declare class PageService {
|
|
@@ -16,7 +15,7 @@ export declare class PageService {
|
|
|
16
15
|
private readonly baseUrl;
|
|
17
16
|
private readonly reusablePageBaseUrl;
|
|
18
17
|
createVariationPage: <T extends PageData>(pageData: T, originalPageId: PageId, variationId: VariationId) => Promise<CreatedPageInfo<T>>;
|
|
19
|
-
updatePagePermissions: (pageId: PageId,
|
|
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;
|
|
@@ -146,6 +147,7 @@ declare class InternalPageRollupStoreHelper {
|
|
|
146
147
|
private ensureLoadPageTypesOfInstance;
|
|
147
148
|
private ensureLoadPageTypes;
|
|
148
149
|
private ensureLanguageSettings;
|
|
150
|
+
isAZFilteringProperty(internalName: string): boolean;
|
|
149
151
|
}
|
|
150
152
|
export declare class PageRollupStoreHelper {
|
|
151
153
|
private internal;
|
|
@@ -19,6 +19,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
19
19
|
private userTargetingStore;
|
|
20
20
|
topicsActivityStore: TopicsActivityStore;
|
|
21
21
|
publishingChannels: import("@omnia/fx/stores").StoreState<ChannelIdtoChannelMap>;
|
|
22
|
+
publishingChannelsWithTargeting: import("@omnia/fx/stores").StoreState<ChannelIdtoChannelMap>;
|
|
22
23
|
waitingforApproveList: import("@omnia/fx/stores").StoreState<ChannelPageGroupMapping>;
|
|
23
24
|
resolvedUser: import("@omnia/fx/stores").StoreState<ResolvedUserIdentity>;
|
|
24
25
|
pendingChangeChannelPages: import("@omnia/fx/stores").StoreState<{
|
|
@@ -36,6 +37,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
36
37
|
private isPublishingPageToChannels;
|
|
37
38
|
private ensuredLoadDataPromise;
|
|
38
39
|
private ensuredGetPublishingChannelsPromise;
|
|
40
|
+
private ensuredGetTargetingChannelsPromise;
|
|
39
41
|
private userAuthorizedChannelResources;
|
|
40
42
|
onActivated(): void;
|
|
41
43
|
onDisposing(): void;
|
|
@@ -45,6 +47,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
45
47
|
[key: string]: PublishingChannelPage[];
|
|
46
48
|
};
|
|
47
49
|
getPublishingChannels: () => PublishingChannel[];
|
|
50
|
+
getPublishingChannelsWithTargeting: () => PublishingChannel[];
|
|
48
51
|
getPublisingChannelbyId: (channelId: PublishingChannelId) => PublishingChannel;
|
|
49
52
|
hasPublisherPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
|
|
50
53
|
hasAssignChannelAdminPermission: (channel: PublishingChannel, userIdentity: string) => boolean;
|
|
@@ -53,6 +56,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
53
56
|
isPublishingPageToChannels: (pageId: PageId) => boolean;
|
|
54
57
|
getWaitingforApprovalPages: (channelId: PublishingChannelId) => number[];
|
|
55
58
|
getAllPublishingChannels: () => PublishingChannel[];
|
|
59
|
+
getAllPublishingChannelsWithTargeting: () => PublishingChannel[];
|
|
56
60
|
getUserPublishingChannelSubscripton: () => Array<PublishingChannel>;
|
|
57
61
|
};
|
|
58
62
|
/**
|
|
@@ -60,6 +64,7 @@ export declare class ChannelManagementStore extends Store {
|
|
|
60
64
|
*/
|
|
61
65
|
mutations: {
|
|
62
66
|
addOrUpdatePublishingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array<PublishingChannel>) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
67
|
+
addOrUpdateTargetingChannel: import("@omnia/fx/stores").StoreMutation<(createdChannels: Array<PublishingChannel>) => void, (createdChannels: PublishingChannel[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
63
68
|
deletePublishingChannel: import("@omnia/fx/stores").StoreMutation<(deleteChannel: PublishingChannel) => void, (deleteChannel: PublishingChannel) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
64
69
|
updateChannelPages: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, result: Array<ChannelPage>) => void, (pageId: PageId, result: ChannelPage[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
65
70
|
updateIsPublishingPageToChannels: import("@omnia/fx/stores").StoreMutation<(pageId: PageId, isPublishing: boolean) => void, (pageId: PageId, isPublishing: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
@@ -72,11 +77,12 @@ export declare class ChannelManagementStore extends Store {
|
|
|
72
77
|
actions: {
|
|
73
78
|
ensureUserPermission: import("@omnia/fx/stores").StoreAction<unknown, (userIdentity: string) => void, (result: boolean, userIdentity: string) => void, (failureReason: any, userIdentity: string) => void, (userIdentity: string) => Promise<boolean>>;
|
|
74
79
|
ensurePublishingChannels: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise<Array<PublishingChannel>>>;
|
|
80
|
+
ensureTargetingChannels: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: PublishingChannel[]) => void, (failureReason: any) => void, () => Promise<Array<PublishingChannel>>>;
|
|
75
81
|
ensureLoadData: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: boolean) => void, (failureReason: any) => void, () => Promise<boolean>>;
|
|
76
82
|
ensureChannelPages: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<boolean>>;
|
|
77
83
|
ensurePublishedChannelsByPageId: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: boolean, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<boolean>>;
|
|
78
84
|
ensurePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (channelId: number) => void, (result: PublishingChannel, channelId: number) => void, (failureReason: any, channelId: number) => void, (channelId: number) => Promise<PublishingChannel>>;
|
|
79
|
-
createPublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (result: PublishingChannel, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (failureReason: any, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>>;
|
|
85
|
+
createPublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (result: PublishingChannel, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (failureReason: any, title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Identity[], image: MediaPickerImage, administrator: Identity[], publisher: Identity[], targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => void, (title: MultilingualString, description: MultilingualString, publicUrl: string, owner: Array<Identity>, image: MediaPickerImage, administrator: Array<Identity>, publisher: Array<Identity>, targetingFilter: TargetingFilterProperty, userTargetingFilter: TargetingFilterProperty, publishingCategoryId?: GuidValue) => Promise<PublishingChannel>>;
|
|
80
86
|
updatePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (editRequest: PublishingChannel) => void, (result: PublishingChannel, editRequest: PublishingChannel) => void, (failureReason: any, editRequest: PublishingChannel) => void, (editRequest: PublishingChannel) => Promise<PublishingChannel>>;
|
|
81
87
|
deletePublishingChannel: import("@omnia/fx/stores").StoreAction<unknown, (channelId: PublishingChannelId) => void, (result: PublishingChannel, channelId: PublishingChannelId) => void, (failureReason: any, channelId: PublishingChannelId) => void, (channelId: PublishingChannelId) => Promise<PublishingChannel>>;
|
|
82
88
|
getPageApprovalList: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: ChannelPage[]) => void, (failureReason: any) => void, () => Promise<Array<ChannelPage>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Store } from "@omnia/fx/stores";
|
|
2
|
-
import { Page, VersionedPageData, PageData, VersionReference, PageId, VersionId, IPageVersion } from "../models";
|
|
3
1
|
import { Layout } from "@omnia/fx-models";
|
|
2
|
+
import { Store } from "@omnia/fx/stores";
|
|
3
|
+
import { IPageVersion, Page, PageData, PageId, VersionedPageData, VersionId, VersionReference } from "../models";
|
|
4
4
|
export interface ICurrentPageState {
|
|
5
5
|
/**
|
|
6
6
|
* Reference to the current page
|
|
@@ -160,6 +160,7 @@ export declare class CurrentPageStore extends Store {
|
|
|
160
160
|
private isCurrentVersion;
|
|
161
161
|
private createVersionRefForVersion;
|
|
162
162
|
private getPageFromStore;
|
|
163
|
+
private checkPermission;
|
|
163
164
|
private getPageVersionByRules;
|
|
164
165
|
private ensureCalculatedProperties;
|
|
165
166
|
private resetState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Store } from "@omnia/fx/stores";
|
|
2
|
-
import { NavigationData, NavigationNode, NavigationPosition, NodeId, NavigationResult, NavigationDataType, PageId, MoveNavigationNodeResult, MovePageCollectionResult, LinkNavigationData, VariationId, PageCollectionNavigationNode, PageCollectionNavigationData } from "../models";
|
|
2
|
+
import { NavigationData, NavigationNode, NavigationPosition, NodeId, NavigationResult, NavigationDataType, PageId, MoveNavigationNodeResult, MovePageCollectionResult, LinkNavigationData, VariationId, PageCollectionNavigationNode, PageCollectionNavigationData, TextNavigationData } from "../models";
|
|
3
3
|
export declare class NavigationStore extends Store {
|
|
4
4
|
private navigationService;
|
|
5
5
|
private variationsStore;
|
|
@@ -61,6 +61,7 @@ export declare class NavigationStore extends Store {
|
|
|
61
61
|
refresh: import("@omnia/fx/stores").StoreAction<unknown, (nodes: NavigationNode<NavigationData>[]) => void, (result: void, nodes: NavigationNode<NavigationData>[]) => void, (failureReason: any, nodes: NavigationNode<NavigationData>[]) => void, (nodes: Array<NavigationNode<NavigationData>>) => Promise<void>>;
|
|
62
62
|
handleDeletedNodes: import("@omnia/fx/stores").StoreAction<unknown, (deletedNodes: NavigationNode<NavigationData>[]) => void, (result: void, deletedNodes: NavigationNode<NavigationData>[]) => void, (failureReason: any, deletedNodes: NavigationNode<NavigationData>[]) => void, (deletedNodes: Array<NavigationNode<NavigationData>>) => Promise<void>>;
|
|
63
63
|
deleteLinkNode: import("@omnia/fx/stores").StoreAction<unknown, (nodeToDelete: NavigationNode<LinkNavigationData>) => void, (result: void, nodeToDelete: NavigationNode<LinkNavigationData>) => void, (failureReason: any, nodeToDelete: NavigationNode<LinkNavigationData>) => void, (nodeToDelete: NavigationNode<LinkNavigationData>) => Promise<void>>;
|
|
64
|
+
deleteTextNode: import("@omnia/fx/stores").StoreAction<unknown, (nodeToDelete: NavigationNode<TextNavigationData>) => void, (result: void, nodeToDelete: NavigationNode<TextNavigationData>) => void, (failureReason: any, nodeToDelete: NavigationNode<TextNavigationData>) => void, (nodeToDelete: NavigationNode<TextNavigationData>) => Promise<void>>;
|
|
64
65
|
ensureParents: import("@omnia/fx/stores").StoreAction<unknown, (node: NavigationNode<NavigationData>) => void, (result: void, node: NavigationNode<NavigationData>) => void, (failureReason: any, node: NavigationNode<NavigationData>) => void, (node: NavigationNode<NavigationData>) => Promise<void>>;
|
|
65
66
|
getAbsoluteUrlAndTitle: import("@omnia/fx/stores").StoreAction<unknown, (pageId: number) => void, (result: {
|
|
66
67
|
url: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Refinement, Refiner } from "@omnia/fx-models";
|
|
1
2
|
import { Store } from "@omnia/fx/stores";
|
|
2
|
-
import { ExportQueryPagesRequest, ExportQueryPagesResult, PageDetailQueryResult, PageDialogData, PageDialogPropertiesMapping, PageNavigationData, PageNavigationNode, PageRollupQuery, PageTypeTitle } from "@omnia/wcm/models";
|
|
3
|
+
import { BatchedPagesResult, ExportQueryPagesRequest, ExportQueryPagesResult, PageDetailQueryResult, PageDialogData, PageDialogPropertiesMapping, PageNavigationData, PageNavigationNode, PageRollupQuery, PageTypeTitle } from "@omnia/wcm/models";
|
|
3
4
|
export interface PageRollupQueryResult extends PageRollupQuery {
|
|
4
5
|
selectProperties: Array<string>;
|
|
5
6
|
disableDistinct: boolean;
|
|
@@ -22,6 +23,7 @@ export declare class PageRollupStore extends Store {
|
|
|
22
23
|
private wcmRouter;
|
|
23
24
|
private pagesStore;
|
|
24
25
|
private pageService;
|
|
26
|
+
private enterprisePropertyService;
|
|
25
27
|
private appsLoc;
|
|
26
28
|
/**
|
|
27
29
|
* State
|
|
@@ -29,6 +31,9 @@ export declare class PageRollupStore extends Store {
|
|
|
29
31
|
pages: import("@omnia/fx/stores").StoreState<{
|
|
30
32
|
[uniqueKey: string]: PageDetailQueryResult[];
|
|
31
33
|
}>;
|
|
34
|
+
pageRefiners: import("@omnia/fx/stores").StoreState<{
|
|
35
|
+
[uniqueKey: string]: Refiner<Refinement>[];
|
|
36
|
+
}>;
|
|
32
37
|
pagesLoadingStatus: import("@omnia/fx/stores").StoreState<{
|
|
33
38
|
[uniqueKey: string]: boolean;
|
|
34
39
|
}>;
|
|
@@ -62,6 +67,7 @@ export declare class PageRollupStore extends Store {
|
|
|
62
67
|
*/
|
|
63
68
|
getters: {
|
|
64
69
|
pages: (uniqueKey: string, excludeVariationUrl: boolean) => PageDetailQueryResult[];
|
|
70
|
+
pageRefiners: (uniqueKey: string) => Refiner<Refinement>[];
|
|
65
71
|
pagesIndexedDB: (uniqueKey: string) => Promise<Array<PageDetailQueryResult>>;
|
|
66
72
|
total: (uniqueKey: string, showMetric: boolean) => number;
|
|
67
73
|
errorMsg: (uniqueKey: string) => string;
|
|
@@ -86,6 +92,12 @@ export declare class PageRollupStore extends Store {
|
|
|
86
92
|
*/
|
|
87
93
|
mutations: {
|
|
88
94
|
addOrUpdateBatchedPages: import("@omnia/fx/stores").StoreMutation<(data: BatchPageRollupQueryResult, clientCaching: boolean) => void, (data: BatchPageRollupQueryResult, clientCaching: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
95
|
+
addOrUpdatePageRefiners: import("@omnia/fx/stores").StoreMutation<(batchQueryResult: {
|
|
96
|
+
[queryId: string]: BatchedPagesResult;
|
|
97
|
+
}) => void, (batchQueryResult: {
|
|
98
|
+
[queryId: string]: BatchedPagesResult;
|
|
99
|
+
}) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
100
|
+
clearPageRefiners: import("@omnia/fx/stores").StoreMutation<(queryId: string) => void, (queryId: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
89
101
|
addOrUpdateIndexedDBPages: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, pages: Array<PageDetailQueryResult>) => void, (uniqueKey: string, pages: PageDetailQueryResult[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
90
102
|
updatePageTypes: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, pageTypes: Array<PageTypeTitle>) => void, (uniqueKey: string, pageTypes: PageTypeTitle[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
91
103
|
updatePublishingChannelSettings: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, channelsId: Array<string>) => void, (uniqueKey: string, channelsId: string[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|