@omnia/wcm 7.10.0-preview.14 → 7.10.0-preview.16
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/shared/OmniaSearchQueryUtils.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +11 -1
- package/internal-do-not-import-from-here/models/security/Security.js +3 -0
- 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[];
|
|
@@ -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
|
}
|
|
@@ -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>;
|
|
@@ -103,6 +103,9 @@ class VariationSecurityResourceEvaluator {
|
|
|
103
103
|
if (pageId) {
|
|
104
104
|
yield this.pagesStore.actions.ensurePages.dispatch([pageId]);
|
|
105
105
|
const page = this.pagesStore.getters.getPage(pageId);
|
|
106
|
+
if (!page) {
|
|
107
|
+
return "";
|
|
108
|
+
}
|
|
106
109
|
return this.getResourceName(page.securityResourceId.toString(), variationId.toString());
|
|
107
110
|
}
|
|
108
111
|
return "";
|