@omnia/wcm 7.10.0-preview.15 → 7.10.0-preview.17
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/fx/filterengine/pagerollup/PageRollupFilterEngineContext.d.ts +2 -1
- package/internal-do-not-import-from-here/fx/helpers/ItemQueryHelper.d.ts +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/services/PageService.d.ts +1 -2
- package/internal-do-not-import-from-here/fx/shared/OmniaSearchQueryUtils.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/stores/CurrentPageStore.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +11 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { DbQueryFilterEngineContext } from "@omnia/fx-models";
|
|
1
|
+
import { BaseFilterEngineProperty, DbQueryFilterEngineContext } from "@omnia/fx-models";
|
|
2
2
|
export declare class PageRollupFilterEngineContext extends DbQueryFilterEngineContext {
|
|
3
3
|
componentId: string;
|
|
4
4
|
uniqueId: string;
|
|
5
5
|
constructor(componentId: string);
|
|
6
|
+
isRefinable(prop: BaseFilterEngineProperty): boolean;
|
|
6
7
|
getAvailableProperties(): import("@omnia/fx-models").EnterprisePropertyDefinition[];
|
|
7
8
|
getAZFilterableProperties(): import("@omnia/fx-models").EnterprisePropertyColumnMapping[];
|
|
8
9
|
}
|
|
@@ -10,6 +10,7 @@ export declare module ItemQueryHelper {
|
|
|
10
10
|
function generateTrueFilter(logicalOperator: FilterLogicalOperator, filters?: Array<QueryFilter>): QueryFilter;
|
|
11
11
|
function generateTextEqualFilter(property: string, text: string, logicalOperator: FilterLogicalOperator): QueryFilter;
|
|
12
12
|
function generateTextFilter(property: string, text: string, logicalOperator: FilterLogicalOperator, enableWildcardSearch: boolean): QueryFilter;
|
|
13
|
+
function generateTextRefinerFilter(property: string, text: string, logicalOperator: FilterLogicalOperator): QueryFilter;
|
|
13
14
|
function generateProcessFilterValue(property: string, text: string, logicalOperator: FilterLogicalOperator, enableWildcardSearch: boolean): QueryFilter;
|
|
14
15
|
function generateProcessFilter(property: string, processIdsArray: Array<string>, logicalOperator: FilterLogicalOperator, enableWildcardSearch: boolean): QueryFilter;
|
|
15
16
|
function generateEmptyArrayFilter(property: string, logicalOperator: FilterLogicalOperator): QueryFilter;
|
|
@@ -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[];
|
|
@@ -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>>;
|
|
@@ -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
|
}
|
|
@@ -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,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;
|
|
@@ -29,6 +30,9 @@ export declare class PageRollupStore extends Store {
|
|
|
29
30
|
pages: import("@omnia/fx/stores").StoreState<{
|
|
30
31
|
[uniqueKey: string]: PageDetailQueryResult[];
|
|
31
32
|
}>;
|
|
33
|
+
pageRefiners: import("@omnia/fx/stores").StoreState<{
|
|
34
|
+
[uniqueKey: string]: Refiner<Refinement>[];
|
|
35
|
+
}>;
|
|
32
36
|
pagesLoadingStatus: import("@omnia/fx/stores").StoreState<{
|
|
33
37
|
[uniqueKey: string]: boolean;
|
|
34
38
|
}>;
|
|
@@ -62,6 +66,7 @@ export declare class PageRollupStore extends Store {
|
|
|
62
66
|
*/
|
|
63
67
|
getters: {
|
|
64
68
|
pages: (uniqueKey: string, excludeVariationUrl: boolean) => PageDetailQueryResult[];
|
|
69
|
+
pageRefiners: (uniqueKey: string) => Refiner<Refinement>[];
|
|
65
70
|
pagesIndexedDB: (uniqueKey: string) => Promise<Array<PageDetailQueryResult>>;
|
|
66
71
|
total: (uniqueKey: string, showMetric: boolean) => number;
|
|
67
72
|
errorMsg: (uniqueKey: string) => string;
|
|
@@ -86,6 +91,11 @@ export declare class PageRollupStore extends Store {
|
|
|
86
91
|
*/
|
|
87
92
|
mutations: {
|
|
88
93
|
addOrUpdateBatchedPages: import("@omnia/fx/stores").StoreMutation<(data: BatchPageRollupQueryResult, clientCaching: boolean) => void, (data: BatchPageRollupQueryResult, clientCaching: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
94
|
+
addOrUpdatePageRefiners: import("@omnia/fx/stores").StoreMutation<(batchQueryResult: {
|
|
95
|
+
[queryId: string]: BatchedPagesResult;
|
|
96
|
+
}) => void, (batchQueryResult: {
|
|
97
|
+
[queryId: string]: BatchedPagesResult;
|
|
98
|
+
}) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
89
99
|
addOrUpdateIndexedDBPages: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, pages: Array<PageDetailQueryResult>) => void, (uniqueKey: string, pages: PageDetailQueryResult[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
90
100
|
updatePageTypes: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, pageTypes: Array<PageTypeTitle>) => void, (uniqueKey: string, pageTypes: PageTypeTitle[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
91
101
|
updatePublishingChannelSettings: import("@omnia/fx/stores").StoreMutation<(uniqueKey: string, channelsId: Array<string>) => void, (uniqueKey: string, channelsId: string[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|