@omnia/wcm 7.8.14-preview → 7.8.14
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/Constants.d.ts +9 -0
- package/internal-do-not-import-from-here/core/Utils.d.ts +13 -3
- package/internal-do-not-import-from-here/core/loc/CoreLocalization.d.ts +18 -0
- package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +19 -0
- 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 +4 -3
- package/internal-do-not-import-from-here/core/loc/TokensLocalization.d.ts +2 -0
- package/internal-do-not-import-from-here/core/messaging/WcmPublicTopics.d.ts +2 -2
- package/internal-do-not-import-from-here/core/pagetypeanalytics/AnalyticsEventConstants.d.ts +15 -0
- package/internal-do-not-import-from-here/core/pagetypeanalytics/AnalyticsHelper.d.ts +27 -0
- package/internal-do-not-import-from-here/core/pagetypeanalytics/index.d.ts +2 -0
- package/internal-do-not-import-from-here/core/pagetypeanalytics/pagetypeanalytics.manifest.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/helpers/ItemQueryHelper.d.ts +20 -19
- package/internal-do-not-import-from-here/fx/internal/models/OmniaSearch.d.ts +4 -0
- package/internal-do-not-import-from-here/fx/internal/stores/OmniaSearchPageStore.d.ts +2 -2
- 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/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/analytics/AnalyticsReport.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/analytics/AnalyticsReport.js +2 -1
- package/internal-do-not-import-from-here/fx/models/analytics/AnalyticsReportView.d.ts +8 -2
- package/internal-do-not-import-from-here/fx/models/components/ActionButtonBlock.d.ts +2 -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 +1 -0
- package/internal-do-not-import-from-here/fx/models/components/PagePropertiesBlockStyles.d.ts +2 -2
- package/internal-do-not-import-from-here/fx/models/fileuploader/FileUploaderProviderContext.d.ts +3 -2
- package/internal-do-not-import-from-here/fx/models/fileuploader/FileUploaderProviderContext.js +2 -1
- 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/navigation/MovePageCollectionResult.d.ts +5 -0
- package/internal-do-not-import-from-here/fx/models/pagecreation/PageCreationActionSetting.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupEnums.js +2 -1
- package/internal-do-not-import-from-here/fx/models/pages/MovePageTracking.d.ts +40 -0
- package/internal-do-not-import-from-here/fx/models/pages/MovePageTracking.js +15 -0
- package/internal-do-not-import-from-here/fx/models/pages/MovePagesResult.d.ts +3 -1
- package/internal-do-not-import-from-here/fx/models/pages/Page.d.ts +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/PageFile.d.ts +3 -1
- package/internal-do-not-import-from-here/fx/models/pages/PageFile.js +2 -1
- package/internal-do-not-import-from-here/fx/models/pages/VersionInformation.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/models/pages/index.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pages/index.js +1 -0
- package/internal-do-not-import-from-here/fx/models/query/ItemQuery.d.ts +3 -3
- package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.d.ts +3 -0
- package/internal-do-not-import-from-here/fx/models/query/ItemQueryEnums.js +3 -0
- package/internal-do-not-import-from-here/fx/models/searchresultsource/SearchPropertyFilter.d.ts +16 -0
- package/internal-do-not-import-from-here/fx/models/searchresultsource/SearchPropertyFilter.js +2 -0
- package/internal-do-not-import-from-here/fx/models/searchresultsource/SearchResultSource.d.ts +15 -0
- package/internal-do-not-import-from-here/fx/models/searchresultsource/SearchResultSource.js +2 -0
- package/internal-do-not-import-from-here/fx/models/searchresultsource/index.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/models/searchresultsource/index.js +5 -0
- package/internal-do-not-import-from-here/fx/models/welcomeblock/WelcomeBlockSettings.d.ts +7 -4
- package/internal-do-not-import-from-here/fx/models/welcomeblock/WelcomeBlockStyles.d.ts +7 -1
- package/internal-do-not-import-from-here/fx/models/welcomeblock/WelcomeBlockStyles.js +8 -1
- package/internal-do-not-import-from-here/fx/models/welcomeblock/message/IWelcomeMessage.d.ts +16 -0
- package/internal-do-not-import-from-here/fx/models/welcomeblock/message/IWelcomeMessage.js +9 -1
- package/internal-do-not-import-from-here/fx/routing/WcmRouter.d.ts +6 -3
- package/internal-do-not-import-from-here/fx/services/NavigationService.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/services/OmniaSearchPageService.d.ts +2 -2
- 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 +4 -2
- 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 +6 -4
- 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/OmniaSearchCategoryQueryHelper.d.ts +52 -0
- package/internal-do-not-import-from-here/fx/shared/OmniaSearchQueryHelper.d.ts +0 -5
- package/internal-do-not-import-from-here/fx/shared/OmniaSearchQueryUtils.d.ts +8 -0
- package/internal-do-not-import-from-here/fx/shared/PageRollupStoreHelper.d.ts +11 -6
- 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 +3 -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 +8 -1
- package/internal-do-not-import-from-here/fx/stores/NavigationStore.d.ts +10 -2
- package/internal-do-not-import-from-here/fx/stores/PageStatisticsStore.d.ts +8 -6
- package/internal-do-not-import-from-here/fx/stores/PagesStore.d.ts +5 -2
- 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/publishingapp/PublishingAppSettings.d.ts +1 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/ApprovalDialogAction.d.ts +5 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/ApprovalDialogAction.js +9 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/Messages.d.ts +4 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/index.d.ts +1 -0
- package/internal-do-not-import-from-here/models/publishingapp/editor/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MovePageStatus = exports.PageMoveTypes = void 0;
|
|
4
|
+
var PageMoveTypes;
|
|
5
|
+
(function (PageMoveTypes) {
|
|
6
|
+
PageMoveTypes[PageMoveTypes["Generic"] = 0] = "Generic";
|
|
7
|
+
PageMoveTypes[PageMoveTypes["MoveToTargetPageCollection"] = 1] = "MoveToTargetPageCollection";
|
|
8
|
+
PageMoveTypes[PageMoveTypes["MovePageCollection"] = 2] = "MovePageCollection";
|
|
9
|
+
})(PageMoveTypes = exports.PageMoveTypes || (exports.PageMoveTypes = {}));
|
|
10
|
+
var MovePageStatus;
|
|
11
|
+
(function (MovePageStatus) {
|
|
12
|
+
MovePageStatus[MovePageStatus["Initialized"] = 0] = "Initialized";
|
|
13
|
+
MovePageStatus[MovePageStatus["Success"] = 1] = "Success";
|
|
14
|
+
MovePageStatus[MovePageStatus["Error"] = 2] = "Error";
|
|
15
|
+
})(MovePageStatus = exports.MovePageStatus || (exports.MovePageStatus = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavigationNode, NavigationData } from "../navigation";
|
|
2
|
-
import { Guid } from "@omnia/fx-models";
|
|
2
|
+
import { Guid, GuidValue } from "@omnia/fx-models";
|
|
3
3
|
import { PageId } from "./Page";
|
|
4
4
|
export interface MovePagesResult {
|
|
5
5
|
/**
|
|
@@ -17,4 +17,6 @@ export interface MovePagesResult {
|
|
|
17
17
|
pageIdsWithNewSecurityResourceId: PageId[];
|
|
18
18
|
hiddenByPageId?: PageId;
|
|
19
19
|
pageIdsWithNewHiddenByPageId: PageId[];
|
|
20
|
+
movePageTrackingId?: GuidValue;
|
|
21
|
+
pageIdsMoving?: PageId[];
|
|
20
22
|
}
|
|
@@ -15,6 +15,7 @@ export interface Page extends AuditingInformation {
|
|
|
15
15
|
pageType: number | WCMPageTypes;
|
|
16
16
|
publishingAppId: string;
|
|
17
17
|
hiddenByPageId?: PageId;
|
|
18
|
+
movePageTrackingId?: GuidValue;
|
|
18
19
|
checkedOutBy: Identity;
|
|
19
20
|
checkedOutDraftVersion?: VersionReference;
|
|
20
21
|
publishedBy: Identity;
|
|
@@ -44,6 +44,7 @@ export interface PageCollectionData extends PlainPageData {
|
|
|
44
44
|
enableOpenAISetting: boolean;
|
|
45
45
|
openAIPropertiesMapping?: OpenAIPropertiesMapping;
|
|
46
46
|
imgPropOpenAIRatioUniqueId?: GuidValue;
|
|
47
|
+
semanticSearchEnabled: boolean;
|
|
47
48
|
/**
|
|
48
49
|
* This property is used as inital value for creating Page Collection Navigation Node.
|
|
49
50
|
* */
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FileMetadata, GuidValue } from "@omnia/fx-models";
|
|
2
|
+
import { PageId } from "./Page";
|
|
2
3
|
import { VersionId } from "./VersionedPageData";
|
|
3
4
|
export declare class PageFile implements FileMetadata {
|
|
4
5
|
omniaServiceId: GuidValue;
|
|
5
6
|
metadataTypeId: GuidValue;
|
|
6
7
|
fileName: string;
|
|
7
8
|
versionId: VersionId;
|
|
8
|
-
|
|
9
|
+
pageId: PageId;
|
|
10
|
+
constructor(fileName: string, versionId: VersionId, pageId: PageId);
|
|
9
11
|
}
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PageFile = void 0;
|
|
4
4
|
const fx_models_1 = require("@omnia/fx-models");
|
|
5
5
|
class PageFile {
|
|
6
|
-
constructor(fileName, versionId) {
|
|
6
|
+
constructor(fileName, versionId, pageId) {
|
|
7
7
|
this.omniaServiceId = new fx_models_1.Guid("d60fa82a-129a-41a9-93ce-d784dcb217b0");
|
|
8
8
|
this.metadataTypeId = new fx_models_1.Guid("18f54ab3-0a36-4b7d-a184-b9f2d59e5730");
|
|
9
9
|
this.fileName = fileName;
|
|
10
10
|
this.versionId = versionId;
|
|
11
|
+
this.pageId = pageId;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
exports.PageFile = PageFile;
|
|
@@ -10,3 +10,9 @@ export interface VersionInformation extends AuditingInformation {
|
|
|
10
10
|
minorVersion: number;
|
|
11
11
|
checkedOutBy: Identity;
|
|
12
12
|
}
|
|
13
|
+
export type PageEnterprisePropertyDictionary = {
|
|
14
|
+
[internalName: string]: any;
|
|
15
|
+
};
|
|
16
|
+
export interface VersionInformationDetail extends VersionInformation {
|
|
17
|
+
enterpriseProperties: PageEnterprisePropertyDictionary;
|
|
18
|
+
}
|
|
@@ -45,3 +45,4 @@ tslib_1.__exportStar(require("./approval/TermDrivenApprovalData"), exports);
|
|
|
45
45
|
tslib_1.__exportStar(require("./approval/ApprovalMetaData"), exports);
|
|
46
46
|
tslib_1.__exportStar(require("./approval/VersionMetaData"), exports);
|
|
47
47
|
tslib_1.__exportStar(require("./PageCollectionDistributionChannel"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./MovePageTracking"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterOperator, FilterLogicalOperator } from "@omnia/fx/models";
|
|
2
2
|
export interface ItemQueryResult {
|
|
3
3
|
total?: number;
|
|
4
4
|
items: Array<number>;
|
|
@@ -11,10 +11,10 @@ export interface ItemQuery {
|
|
|
11
11
|
filters: QueryFilter;
|
|
12
12
|
}
|
|
13
13
|
export interface QueryFilter {
|
|
14
|
-
operator:
|
|
14
|
+
operator: FilterOperator;
|
|
15
15
|
propertyName: string;
|
|
16
16
|
propertyValues: Array<any>;
|
|
17
|
-
logicalOperator?:
|
|
17
|
+
logicalOperator?: FilterLogicalOperator;
|
|
18
18
|
filters?: Array<QueryFilter>;
|
|
19
19
|
}
|
|
20
20
|
export interface QueryOrder {
|
package/internal-do-not-import-from-here/fx/models/searchresultsource/SearchPropertyFilter.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OmniaSearchPropertyFilterValue } from "@omnia/fx-models";
|
|
2
|
+
import { PublishingChannelId } from "../channels";
|
|
3
|
+
import { PageId } from "../pages";
|
|
4
|
+
export interface OmniaSearchVariationPropertyFilterValue extends OmniaSearchPropertyFilterValue {
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface OmniaSearchPageTypePropertyFilterValue extends OmniaSearchPropertyFilterValue {
|
|
8
|
+
value: Array<PageId>;
|
|
9
|
+
}
|
|
10
|
+
export interface OmniaSearchChannelFilterValue extends OmniaSearchPropertyFilterValue {
|
|
11
|
+
value: Array<PublishingChannelId>;
|
|
12
|
+
currentUserSubscription: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface OmniaSearchUiTextPropFilterValue extends OmniaSearchPropertyFilterValue {
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GuidValue, OmniaSearchPropertyFilter, OmniaSearchScopes } from "@omnia/fx-models";
|
|
2
|
+
import { OmniaSearchCategory, ProviderSettings } from "@omnia/workplace/models";
|
|
3
|
+
export interface PageOmniaSearchQueryCategory extends OmniaSearchCategory {
|
|
4
|
+
providerSettings: PageOmniaSearchSettings;
|
|
5
|
+
}
|
|
6
|
+
export interface PageOmniaSearchSettings extends ProviderSettings {
|
|
7
|
+
scope: OmniaSearchScopes;
|
|
8
|
+
excludeVariations: boolean;
|
|
9
|
+
resources: Array<{
|
|
10
|
+
id: string;
|
|
11
|
+
typeId?: GuidValue;
|
|
12
|
+
filters?: Array<OmniaSearchPropertyFilter>;
|
|
13
|
+
}>;
|
|
14
|
+
currentUserSubscription?: boolean;
|
|
15
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { MultilingualString, SpacingSettings } from "@omnia/fx-models";
|
|
2
|
-
import { AvatarPosition,
|
|
1
|
+
import { GuidValue, MultilingualString, SpacingSettings } from "@omnia/fx-models";
|
|
2
|
+
import { AvatarPosition, AvatarSize, BaseMessage } from "@omnia/wcm/models";
|
|
3
3
|
export interface WelcomeBlockDisplaySettings {
|
|
4
4
|
showAvatar: boolean;
|
|
5
5
|
avatarPosition: AvatarPosition;
|
|
6
|
-
size:
|
|
6
|
+
size: AvatarSize;
|
|
7
|
+
elevation: number;
|
|
8
|
+
borderWidth: number;
|
|
9
|
+
borderColor: string;
|
|
7
10
|
}
|
|
8
11
|
export type WelcomeBlockProperty<T extends BaseMessage> = {
|
|
9
12
|
message: T;
|
|
@@ -14,5 +17,5 @@ export interface WelcomeBlockSettings {
|
|
|
14
17
|
noResultText: MultilingualString;
|
|
15
18
|
displaySetting: WelcomeBlockDisplaySettings;
|
|
16
19
|
properties: Array<WelcomeBlockProperty<BaseMessage>>;
|
|
17
|
-
sortOrder: Array<
|
|
20
|
+
sortOrder: Array<GuidValue>;
|
|
18
21
|
}
|
|
@@ -7,6 +7,12 @@ export declare enum AvatarPosition {
|
|
|
7
7
|
Top = 2,
|
|
8
8
|
Bottom = 3
|
|
9
9
|
}
|
|
10
|
+
export declare enum AvatarSize {
|
|
11
|
+
Small = 0,
|
|
12
|
+
Medium = 1,
|
|
13
|
+
Large = 2,
|
|
14
|
+
ExtraLarge = 3
|
|
15
|
+
}
|
|
10
16
|
export declare const WelcomeBlockStyles: {
|
|
11
17
|
getAvatarPositionStyle?: (avatarPosition: AvatarPosition) => NestedCSSProperties;
|
|
12
18
|
getPaddingStyle?: (spacing: SpacingSettings, skip?: {
|
|
@@ -16,5 +22,5 @@ export declare const WelcomeBlockStyles: {
|
|
|
16
22
|
bottom?: boolean;
|
|
17
23
|
}) => NestedCSSPropertiesExtends;
|
|
18
24
|
header: (theme: ITheming) => NestedCSSProperties;
|
|
19
|
-
card:
|
|
25
|
+
card: any;
|
|
20
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WelcomeBlockStyles = exports.AvatarPosition = void 0;
|
|
3
|
+
exports.WelcomeBlockStyles = exports.AvatarSize = exports.AvatarPosition = void 0;
|
|
4
4
|
var AvatarPosition;
|
|
5
5
|
(function (AvatarPosition) {
|
|
6
6
|
AvatarPosition[AvatarPosition["Left"] = 0] = "Left";
|
|
@@ -8,4 +8,11 @@ var AvatarPosition;
|
|
|
8
8
|
AvatarPosition[AvatarPosition["Top"] = 2] = "Top";
|
|
9
9
|
AvatarPosition[AvatarPosition["Bottom"] = 3] = "Bottom";
|
|
10
10
|
})(AvatarPosition = exports.AvatarPosition || (exports.AvatarPosition = {}));
|
|
11
|
+
var AvatarSize;
|
|
12
|
+
(function (AvatarSize) {
|
|
13
|
+
AvatarSize[AvatarSize["Small"] = 0] = "Small";
|
|
14
|
+
AvatarSize[AvatarSize["Medium"] = 1] = "Medium";
|
|
15
|
+
AvatarSize[AvatarSize["Large"] = 2] = "Large";
|
|
16
|
+
AvatarSize[AvatarSize["ExtraLarge"] = 3] = "ExtraLarge";
|
|
17
|
+
})(AvatarSize = exports.AvatarSize || (exports.AvatarSize = {}));
|
|
11
18
|
exports.WelcomeBlockStyles = {};
|
package/internal-do-not-import-from-here/fx/models/welcomeblock/message/IWelcomeMessage.d.ts
CHANGED
|
@@ -14,16 +14,32 @@ export declare enum MessageType {
|
|
|
14
14
|
Birthday = 3,
|
|
15
15
|
Default = 4
|
|
16
16
|
}
|
|
17
|
+
export declare enum TimePeriod {
|
|
18
|
+
AllDay = 0,
|
|
19
|
+
Morning = 1,
|
|
20
|
+
Afternoon = 2,
|
|
21
|
+
Evening = 3,
|
|
22
|
+
Custom = 4
|
|
23
|
+
}
|
|
17
24
|
export type BaseMessage = {
|
|
18
25
|
id: GuidValue;
|
|
19
26
|
template: MultilingualString;
|
|
20
27
|
messageType: MessageType;
|
|
28
|
+
fontSize?: number;
|
|
29
|
+
color?: string;
|
|
30
|
+
format?: {
|
|
31
|
+
bold?: boolean;
|
|
32
|
+
italic?: boolean;
|
|
33
|
+
underline?: boolean;
|
|
34
|
+
};
|
|
21
35
|
};
|
|
22
36
|
export type WelcomeMessage<T extends MessageType> = BaseMessage & {
|
|
23
37
|
messageType: T;
|
|
24
38
|
};
|
|
25
39
|
export type TimeInDayMessage = WelcomeMessage<MessageType.TimeInDay> & {
|
|
40
|
+
timePeriod: TimeViewModel;
|
|
26
41
|
startTime: TimeViewModel;
|
|
42
|
+
endTime: TimeViewModel;
|
|
27
43
|
};
|
|
28
44
|
export type DayOfWeekMessage = WelcomeMessage<MessageType.DayOfWeek> & {
|
|
29
45
|
day: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageType = void 0;
|
|
3
|
+
exports.TimePeriod = exports.MessageType = void 0;
|
|
4
4
|
var MessageType;
|
|
5
5
|
(function (MessageType) {
|
|
6
6
|
MessageType[MessageType["TimeInDay"] = 0] = "TimeInDay";
|
|
@@ -9,3 +9,11 @@ var MessageType;
|
|
|
9
9
|
MessageType[MessageType["Birthday"] = 3] = "Birthday";
|
|
10
10
|
MessageType[MessageType["Default"] = 4] = "Default";
|
|
11
11
|
})(MessageType = exports.MessageType || (exports.MessageType = {}));
|
|
12
|
+
var TimePeriod;
|
|
13
|
+
(function (TimePeriod) {
|
|
14
|
+
TimePeriod[TimePeriod["AllDay"] = 0] = "AllDay";
|
|
15
|
+
TimePeriod[TimePeriod["Morning"] = 1] = "Morning";
|
|
16
|
+
TimePeriod[TimePeriod["Afternoon"] = 2] = "Afternoon";
|
|
17
|
+
TimePeriod[TimePeriod["Evening"] = 3] = "Evening";
|
|
18
|
+
TimePeriod[TimePeriod["Custom"] = 4] = "Custom";
|
|
19
|
+
})(TimePeriod = exports.TimePeriod || (exports.TimePeriod = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NavigationData, NavigationNode } from "../models";
|
|
1
|
+
import { DefaultVariationPage, NavigationData, NavigationNode, PageNavigationData, PageNavigationNode, VariationId } from "../models";
|
|
2
2
|
export declare class WcmRouter {
|
|
3
3
|
private currentNavigationStore;
|
|
4
4
|
private currentPageStore;
|
|
@@ -17,10 +17,13 @@ export declare class WcmRouter {
|
|
|
17
17
|
constructor();
|
|
18
18
|
private isInWcmContext;
|
|
19
19
|
private handleNotFoundNavigationNode;
|
|
20
|
+
private removeAnchorWhenPageNavigating;
|
|
20
21
|
private getDefaultRoute;
|
|
21
22
|
private loadTreeForPath;
|
|
22
|
-
navigate<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any): Promise<T>;
|
|
23
|
+
navigate<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, forceToNewNavigationState?: boolean): Promise<T>;
|
|
23
24
|
navigateWithVariationTargeting<T extends NavigationNode<NavigationData>>(to: T): Promise<T>;
|
|
25
|
+
navigateFromExternalApp<T extends NavigationNode<NavigationData>>(to: T, targetVariationId?: any, openEditor?: boolean): void;
|
|
26
|
+
private buildRelativePath;
|
|
24
27
|
private getTargetingVariation;
|
|
25
28
|
onDisposing(): void;
|
|
26
29
|
private executeScrollingIfNeeded;
|
|
@@ -33,6 +36,6 @@ export declare class WcmRouter {
|
|
|
33
36
|
private createNavigationStateForNode;
|
|
34
37
|
private tryParseNumber;
|
|
35
38
|
private getPageTitle;
|
|
36
|
-
|
|
39
|
+
getPageState(pageNavigationNode: PageNavigationNode<PageNavigationData>, targetVariationId?: VariationId, allowDraftVersion?: boolean): DefaultVariationPage;
|
|
37
40
|
private getUsingVariationSegment;
|
|
38
41
|
}
|
|
@@ -51,7 +51,7 @@ 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
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PagedBatchSearchRequest, IPagedSearchResult } from "@omnia/fx-models";
|
|
2
2
|
import { ExtendedInformationPageQueryData, PageDocument, PageId } from "../models";
|
|
3
|
-
import { ReindexContentOmniaSearch } from "../internal";
|
|
3
|
+
import { ReindexContentOmniaSearch, SyncOmniaSearchType } from "../internal";
|
|
4
4
|
import { OmniaSearchService } from "@omnia/fx/services";
|
|
5
5
|
export declare class OmniaSearchPageService {
|
|
6
6
|
private httpClient;
|
|
@@ -9,7 +9,7 @@ export declare class OmniaSearchPageService {
|
|
|
9
9
|
queryBatchPages: (searchQueryRequest: PagedBatchSearchRequest, cancelRequest?: (cancelToken: any) => void) => Promise<IPagedSearchResult<PageDocument>[]>;
|
|
10
10
|
getExtendedInformationPageQueryData: (pageIds: Array<PageId>) => Promise<ExtendedInformationPageQueryData>;
|
|
11
11
|
triggerReindexContentOmniaSearchPublishingApp: () => Promise<string>;
|
|
12
|
-
triggerReindexContentOmniaSearchTenant: () => Promise<string>;
|
|
12
|
+
triggerReindexContentOmniaSearchTenant: (syncType: SyncOmniaSearchType) => Promise<string>;
|
|
13
13
|
getReindexContentOmniaSearchStatus: (resourceId: string) => Promise<ReindexContentOmniaSearch>;
|
|
14
14
|
getReindexContentLogs: (resourceId: string, pageNr?: number, pageSize?: number, sortColumn?: string, sortDesc?: boolean) => Promise<{
|
|
15
15
|
total: number;
|
|
@@ -20,7 +20,5 @@ export declare class PageQueryService {
|
|
|
20
20
|
getExportedFile: (exportingFileName: string, exportingFileToken: string) => Promise<void>;
|
|
21
21
|
checkMigrationOmniaSearchStatus: (migrationId: string) => Promise<boolean>;
|
|
22
22
|
private processPagesDetailData;
|
|
23
|
-
private getPageVisited;
|
|
24
|
-
private findPageInNode;
|
|
25
23
|
getPendingApprovalPages: () => Promise<Array<PendingApprovalPage>>;
|
|
26
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Page, PageData, CheckedOutVersionPageData, VersionedPageData, PublishedVersionPageData, PageIdToPageMap, PageId, VariationPage, PageCollectionSelection, NavigationData, NavigationNode, MovePagesResult, VersionInformation, ArchivePageResult, RestorePageMessage, RestorePageResult, VariationId, PageWithNavigationCreationRequest, PageNavigationNode, PageNavigationData, ReadNews, PagePermissionResponse, ValidationArchivePageResult, PageTypeTitle, VersionId, ApprovalMetaData } from "../models";
|
|
1
|
+
import { Page, PageData, CheckedOutVersionPageData, VersionedPageData, PublishedVersionPageData, PageIdToPageMap, PageId, VariationPage, PageCollectionSelection, NavigationData, NavigationNode, MovePagesResult, VersionInformation, ArchivePageResult, RestorePageMessage, RestorePageResult, VariationId, PageWithNavigationCreationRequest, PageNavigationNode, PageNavigationData, ReadNews, PagePermissionResponse, ValidationArchivePageResult, PageTypeTitle, VersionId, ApprovalMetaData, MovePageTracking, VersionInformationDetail } from "../models";
|
|
2
2
|
import { MergedPageVersionLayout } from "../models/layout/MergedPageVersionLayout";
|
|
3
3
|
import { ApiResponse, GuidValue } from "@omnia/fx-models";
|
|
4
4
|
import { VersionReference } from "../models";
|
|
@@ -84,7 +84,8 @@ export declare class PageService {
|
|
|
84
84
|
*/
|
|
85
85
|
mergeVersionWithParentLayoutLayouts: (versionRef: VersionReference, layoutLatestPublishedVersionId?: number) => Promise<MergedPageVersionLayout>;
|
|
86
86
|
checkSharepointPageExist: (spPageId: number) => Promise<boolean>;
|
|
87
|
-
getVersionInformation: (pageId: PageId) => Promise<Array<VersionInformation>>;
|
|
87
|
+
getVersionInformation: (pageId: PageId, publishingAppId?: string) => Promise<Array<VersionInformation>>;
|
|
88
|
+
getVersionsDetails: (pageId: PageId, versionIds: Array<number>, publishingAppId?: string) => Promise<Array<VersionInformationDetail>>;
|
|
88
89
|
revert: <T extends PageData>(versiontoRevert: VersionedPageData<T>) => Promise<VersionedPageData<T>>;
|
|
89
90
|
getPageCollectionSelection: (fromPublishingAppId: string, fromPageCollectionIds?: Array<string>) => Promise<ApiResponse<PageCollectionSelection[]>>;
|
|
90
91
|
private tempFixDateTimeFormatInEnterpriseProperty;
|
|
@@ -92,4 +93,5 @@ export declare class PageService {
|
|
|
92
93
|
inviteCoAuthors: (invitationAuthors: InvitationOfAuthor) => Promise<PagePermissionResponse>;
|
|
93
94
|
getSitePagesFolderFullUrl: (pageNavigationNode: PageNavigationNode<PageNavigationData>) => Promise<string>;
|
|
94
95
|
getPageVersionMetaData: (versionId: VersionId) => Promise<ApprovalMetaData>;
|
|
96
|
+
getMovePageTracking: (trackingId: GuidValue) => Promise<MovePageTracking>;
|
|
95
97
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Comment } from "@omnia/fx/models";
|
|
2
|
+
import { ICommentLikeService } from "@omnia/fx/stores";
|
|
3
|
+
import { SocialService } from "./SocialService";
|
|
4
|
+
export declare class PageSocialService extends SocialService implements ICommentLikeService {
|
|
5
|
+
deleteComment: (comment: Comment) => Promise<void>;
|
|
6
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Future } from "@omnia/fx/models";
|
|
1
2
|
import { PageRollupEnums, VisitedPage } from "@omnia/wcm/models";
|
|
2
3
|
import { PageReportByUserPropertiesOption, PageReportOption, PageViewedRegister, ScheduledReportItem, UniqueUsersByUserProperty } from "../../models";
|
|
3
4
|
import { UsageReportItem, CheckedOutReportItem, ReviewReportItem, DailyStatisticsPerPage, PageStatisticExport } from "../../models";
|
|
@@ -6,15 +7,16 @@ export declare class PageStatisticsService {
|
|
|
6
7
|
private omniaContext;
|
|
7
8
|
constructor();
|
|
8
9
|
createPageStatistics(pageViewedRegister: PageViewedRegister): Promise<Array<VisitedPage>>;
|
|
9
|
-
getUsageReport(reportOptions: PageReportOption):
|
|
10
|
+
getUsageReport(reportOptions: PageReportOption): Future<Array<UsageReportItem>>;
|
|
10
11
|
getUsageReportByUserProperties(reportOptions: PageReportByUserPropertiesOption): Promise<UsageReportItem>;
|
|
11
|
-
getCheckedOutReport(reportOptions: PageReportOption):
|
|
12
|
-
getReviewReport(reportOptions: PageReportOption):
|
|
13
|
-
getScheduledReport(reportOptions: PageReportOption):
|
|
12
|
+
getCheckedOutReport(reportOptions: PageReportOption): Future<Array<CheckedOutReportItem>>;
|
|
13
|
+
getReviewReport(reportOptions: PageReportOption): Future<Array<ReviewReportItem>>;
|
|
14
|
+
getScheduledReport(reportOptions: PageReportOption): Future<Array<ScheduledReportItem>>;
|
|
14
15
|
exportUsageReport(reportOptions: PageReportOption): Promise<PageStatisticExport>;
|
|
15
16
|
exportCheckoutReport(reportOptions: PageReportOption): Promise<PageStatisticExport>;
|
|
16
17
|
exportReviewReport(reportOptions: PageReportOption): Promise<PageStatisticExport>;
|
|
17
18
|
exportScheduledReport(reportOptions: PageReportOption): Promise<PageStatisticExport>;
|
|
18
19
|
getDailyStatisticsPerPage(pageId: number, includeSubPages: boolean): Promise<Array<DailyStatisticsPerPage>>;
|
|
19
20
|
getPageUniqueUsersByUserProperty(pageId: number, propertyName: string, datePeriods: PageRollupEnums.DatePeriods): Promise<Array<UniqueUsersByUserProperty>>;
|
|
21
|
+
isMaximumCapacity(): Promise<boolean>;
|
|
20
22
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HttpClient } from "@omnia/fx";
|
|
2
|
+
import { Comment, GuidValue, ReactionType } from "@omnia/fx/models";
|
|
3
|
+
import { TopicRating, SubscriptionTypes, SubscriptionInfo, Feedback } from "../../models";
|
|
4
|
+
import { Achievement, PageId, UserAchievement } from "@omnia/wcm/models";
|
|
5
|
+
import { ICommentLikeService } from "@omnia/fx/stores";
|
|
6
|
+
export declare class SocialService implements ICommentLikeService {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
constructor();
|
|
9
|
+
deleteComment: (comment: Comment) => Promise<void>;
|
|
10
|
+
getCommentLike: (topicId: string) => Promise<any>;
|
|
11
|
+
toggleLike: (topicId: string, commentId: string, isLike: boolean) => Promise<void>;
|
|
12
|
+
socialReacts: (topicId: string, commentId: string, isReacts: boolean, reactionType: ReactionType) => Promise<void>;
|
|
13
|
+
addComment: (comment: Comment) => Promise<Comment>;
|
|
14
|
+
updateComment: (comment: Comment) => Promise<Comment>;
|
|
15
|
+
markBestReply: (topicId: string, commentId: string) => Promise<void>;
|
|
16
|
+
ratePage: (topicId: string, rate: number) => Promise<TopicRating>;
|
|
17
|
+
getRating: (topicId: string) => Promise<TopicRating>;
|
|
18
|
+
addSubscription: (topicId: string, type: SubscriptionTypes) => Promise<SubscriptionInfo>;
|
|
19
|
+
removeSubscription: (topicId: string, type: SubscriptionTypes) => Promise<void>;
|
|
20
|
+
getSubscriptions: () => Promise<SubscriptionInfo[]>;
|
|
21
|
+
addOrUpdateAchievement: (achievement: Achievement) => Promise<Achievement>;
|
|
22
|
+
deleteAchievement: (achievementId: GuidValue) => Promise<void>;
|
|
23
|
+
getAchievements: (publishingAppId: string) => Promise<Achievement[]>;
|
|
24
|
+
getMyAchievements: () => Promise<UserAchievement[]>;
|
|
25
|
+
getFeedbacks: (pageId: PageId) => Promise<{
|
|
26
|
+
[versionId: string]: Feedback[];
|
|
27
|
+
}>;
|
|
28
|
+
addFeedback: (feedback: Feedback) => Promise<Feedback>;
|
|
29
|
+
sharePage: (topicId: string) => Promise<void>;
|
|
30
|
+
deleteFeedback: (feedbackId: GuidValue) => Promise<void>;
|
|
31
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./NavigationService";
|
|
2
2
|
export * from "./PageService";
|
|
3
3
|
export * from "./PageQueryService";
|
|
4
|
+
export * from "./PageSocialService";
|
|
4
5
|
export * from "./DocumentService";
|
|
5
6
|
export * from "./VariationService";
|
|
6
7
|
export * from "./CalendarService";
|
|
@@ -21,3 +22,4 @@ export * from "./AiContentPageReportService";
|
|
|
21
22
|
export * from "./OpenAIPageCreationService";
|
|
22
23
|
export * from "./OmniaSearchPageService";
|
|
23
24
|
export * from "./MediaRollupService";
|
|
25
|
+
export * from "./SocialService";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EnterprisePropertyStore, TargetingPropertyStore } from "@omnia/fx/stores";
|
|
2
|
+
import { OmniaCategorySearchResult, SearchCategoryOption } from "@omnia/workplace/models";
|
|
3
|
+
import { AppInfoStore, ChannelManagementStore, CurrentNavigationStore, PageRollupStore } from "../stores";
|
|
4
|
+
import { OmniaSearchService } from "@omnia/fx/services";
|
|
5
|
+
export declare class OmniaSearchCategoryQueryHelper {
|
|
6
|
+
enterprisePropertyStore: EnterprisePropertyStore;
|
|
7
|
+
appInfoStore: AppInfoStore;
|
|
8
|
+
pageRollupStore: PageRollupStore;
|
|
9
|
+
currentNavigationStore: CurrentNavigationStore;
|
|
10
|
+
channelManagementStore: ChannelManagementStore;
|
|
11
|
+
targetingPropertyStore: TargetingPropertyStore;
|
|
12
|
+
private variationStore;
|
|
13
|
+
private omniaContext;
|
|
14
|
+
private targetingStore;
|
|
15
|
+
private pagesStore;
|
|
16
|
+
omniaSearchService: OmniaSearchService;
|
|
17
|
+
private enterpriseProperties;
|
|
18
|
+
private querableProperties;
|
|
19
|
+
private appInfos;
|
|
20
|
+
private pageBuiltInProperties;
|
|
21
|
+
private excludeCountry;
|
|
22
|
+
private currentUserLanguage;
|
|
23
|
+
private pageCollections;
|
|
24
|
+
private defaultPropertyTitle;
|
|
25
|
+
getCategorySearchResult(options: SearchCategoryOption[], keyword?: string): Promise<Array<OmniaCategorySearchResult>>;
|
|
26
|
+
private getFilters;
|
|
27
|
+
private getDictionaryPropertiesMapping;
|
|
28
|
+
private mappingSearchResutItems;
|
|
29
|
+
private ensureBuiltInPropertyValue;
|
|
30
|
+
private mappingRefinerResult;
|
|
31
|
+
private generateScopeFilterBuilders;
|
|
32
|
+
private generateChannelScopeFilterBuilder;
|
|
33
|
+
private generatePublishingAppScopeFilterBuilder;
|
|
34
|
+
private generatePageCollectionScopeFilterBuilder;
|
|
35
|
+
private generateBusinessProfileScopeFilterBuilder;
|
|
36
|
+
private generateChannelFilterBuilder;
|
|
37
|
+
private generateOmniaSearchVariationPropertyFilterBuilder;
|
|
38
|
+
private generateOmniaSearchLanguageFilterBuilder;
|
|
39
|
+
private generateOmniaSearchDatePropertyFilterBuilder;
|
|
40
|
+
private generateOmniaSearchTextPropertyFilterBuilder;
|
|
41
|
+
private generateOmniaSearchBooleanPropertyFilterBuilder;
|
|
42
|
+
private generateOmniaSearchTaxonomyPropertyFilterBuilder;
|
|
43
|
+
private generateOmniaSearchPropertyFilterBuilder;
|
|
44
|
+
private createFilterLogicalOperatorBuilderWithArrayValues;
|
|
45
|
+
private createFilterComponentBuilder;
|
|
46
|
+
private joinInnerFilterLogicalOperatorBuilder;
|
|
47
|
+
private ensureLanguageSettings;
|
|
48
|
+
private getResourceId;
|
|
49
|
+
private getAppIdsNeedToGetVariations;
|
|
50
|
+
private ensureLoadInfoForSearchCategories;
|
|
51
|
+
ensurePageComputedColumnName(propertyName: string, isDisplay?: boolean, checkIsValid?: boolean): string;
|
|
52
|
+
}
|
|
@@ -13,7 +13,6 @@ export declare class OmniaSearchQueryHelper {
|
|
|
13
13
|
searchQueryRequest: PagedBatchSearchRequest;
|
|
14
14
|
batchQueryPagesError: BatchQueryPages[];
|
|
15
15
|
}>;
|
|
16
|
-
static camelize(str: string): string;
|
|
17
16
|
private hasBusinessProfileScopeQuery;
|
|
18
17
|
private ensureLoadInfoBeforeGenerateQuery;
|
|
19
18
|
private getSearchBoxKeywords;
|
|
@@ -23,13 +22,9 @@ export declare class OmniaSearchQueryHelper {
|
|
|
23
22
|
private getFiltersExpressionString;
|
|
24
23
|
private getFieldValuesString;
|
|
25
24
|
private getOperatorString;
|
|
26
|
-
private getPropertyName;
|
|
27
|
-
private getPropertyValue;
|
|
28
25
|
private getLogicalOperatorString;
|
|
29
26
|
private removeConditionExpressionFilter;
|
|
30
27
|
private getRetrieveProperties;
|
|
31
|
-
private isDateTimeStampProperty;
|
|
32
28
|
private getSortList;
|
|
33
|
-
private getKeywordValue;
|
|
34
29
|
private parseBatchQueryPagesToOmniaSearch;
|
|
35
30
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EnterprisePropertyDefinition } from "@omnia/fx-models";
|
|
2
|
+
export declare class OmniaSearchQueryUtils {
|
|
3
|
+
static camelize(str: string): string;
|
|
4
|
+
static getKeywordValue(objectValue: any): any;
|
|
5
|
+
static getPropertyName(propertyName: string, isDisplay: boolean, enterpriseProperties: Array<EnterprisePropertyDefinition>, querableProperties: Array<EnterprisePropertyDefinition>, checkIsValid?: boolean): string;
|
|
6
|
+
static getPropertyValue(objectValue: any, propertyName: string, enterpriseProperties: Array<EnterprisePropertyDefinition>): any;
|
|
7
|
+
private static isDateTimeStampProperty;
|
|
8
|
+
}
|