@omnia/workplace 7.8.28-preview → 7.8.30-preview
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/models/ManifestIds.d.ts +1 -0
- package/internal-do-not-import-from-here/models/ManifestIds.js +1 -0
- package/internal-do-not-import-from-here/models/SearchCategory.d.ts +16 -0
- package/internal-do-not-import-from-here/models/SearchProvider.d.ts +1 -0
- package/internal-do-not-import-from-here/models/semanticsearch/SemanticSearchProvider.d.ts +6 -2
- package/internal-do-not-import-from-here/services/AnalyticsService.d.ts +7 -0
- package/package.json +1 -1
|
@@ -229,6 +229,7 @@ export declare class WebComponentManifests {
|
|
|
229
229
|
static get SharePointSearchProviderSettings(): Guid;
|
|
230
230
|
static get MicrosoftSearchProviderSettings(): Guid;
|
|
231
231
|
static get SharedLinksSearchProviderSettings(): Guid;
|
|
232
|
+
static get SemanticSearchProviderSettings(): Guid;
|
|
232
233
|
static get QuickSearchActionHandlerSettings(): Guid;
|
|
233
234
|
static get SearchSettings(): Guid;
|
|
234
235
|
static get SearchStatisticsMetricIndicator(): Guid;
|
|
@@ -238,6 +238,7 @@ class WebComponentManifests {
|
|
|
238
238
|
static get SharePointSearchProviderSettings() { return new fx_models_1.Guid("d9a4ee6a-4030-47ff-9f8d-438d71aad39c"); }
|
|
239
239
|
static get MicrosoftSearchProviderSettings() { return new fx_models_1.Guid("b94f27fb-cf98-4d4d-9ebb-dc0cdf6f3893"); }
|
|
240
240
|
static get SharedLinksSearchProviderSettings() { return new fx_models_1.Guid("531dde74-4a66-4990-b0c1-b0fb979371e4"); }
|
|
241
|
+
static get SemanticSearchProviderSettings() { return new fx_models_1.Guid("f8d86027-3ca8-4d48-b585-04a67a0b6632"); }
|
|
241
242
|
static get QuickSearchActionHandlerSettings() { return new fx_models_1.Guid("b8a22e34-3162-443e-9260-1e4fc8eb0310"); }
|
|
242
243
|
static get SearchSettings() { return new fx_models_1.Guid("60d18833-efb0-456d-8359-fea6c82701b7"); }
|
|
243
244
|
static get SearchStatisticsMetricIndicator() { return new fx_models_1.Guid("f3c88c39-9d56-4f4a-9841-2272bd275428"); }
|
|
@@ -11,6 +11,7 @@ export interface SearchCategoryBase {
|
|
|
11
11
|
businessProfileId: GuidValue;
|
|
12
12
|
providerComponentId: GuidValue;
|
|
13
13
|
query?: string;
|
|
14
|
+
providerSettings?: ProviderSettings;
|
|
14
15
|
}
|
|
15
16
|
export interface SharePointSearchCategory extends SearchCategoryBase {
|
|
16
17
|
resultSource: string;
|
|
@@ -33,6 +34,21 @@ export interface MicrosoftSearchCategory extends SearchCategoryBase {
|
|
|
33
34
|
export interface SharedLinkSearchCategory extends SearchCategoryBase {
|
|
34
35
|
sortBy: string;
|
|
35
36
|
}
|
|
37
|
+
export interface ProviderSettings {
|
|
38
|
+
}
|
|
39
|
+
export interface SemanticSearchCategory extends SearchCategoryBase {
|
|
40
|
+
providerSettings: SemanticSearchSettings;
|
|
41
|
+
}
|
|
42
|
+
export interface SemanticSearchSettings extends ProviderSettings {
|
|
43
|
+
propertiesFilter?: {
|
|
44
|
+
[internalName: string]: any;
|
|
45
|
+
};
|
|
46
|
+
includeSemanticSummaryEnabled: boolean;
|
|
47
|
+
showReferencesEnabled: boolean;
|
|
48
|
+
includeParagraphsEnabled: boolean;
|
|
49
|
+
customPostAnswerMessageEnabled: boolean;
|
|
50
|
+
customPostAnswerMessage?: MultilingualString;
|
|
51
|
+
}
|
|
36
52
|
export interface DictionaryPropertiesMapping {
|
|
37
53
|
[customProperty: string]: ContentPropertyMapping;
|
|
38
54
|
}
|
|
@@ -5,5 +5,6 @@ export declare abstract class SearchProvider implements SearchProviderBase {
|
|
|
5
5
|
abstract readonly omniaServiceId: GuidValue;
|
|
6
6
|
abstract readonly providerId: GuidValue;
|
|
7
7
|
abstract providerDisplayRenderManifestId: GuidValue;
|
|
8
|
+
hideSearchTemplates?: boolean;
|
|
8
9
|
getSearchCategoryResult: (searchRequest: SearchRequest) => Promise<CategorySearchResult[]>;
|
|
9
10
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GuidValue, SemanticSearchPropertyDefinition, SemanticSearchReference } from "@omnia/fx-models";
|
|
2
2
|
export declare abstract class SemanticSearchReferenceProvider {
|
|
3
|
+
providerId: GuidValue;
|
|
3
4
|
typeId: GuidValue;
|
|
4
5
|
title: string;
|
|
5
6
|
ensureReferencesLoaded: (references: string[]) => Promise<void>;
|
|
6
7
|
renderReference: (item: SemanticSearchReference) => JSX.Element;
|
|
7
8
|
renderReferenceIcon: (item: SemanticSearchReference) => JSX.Element;
|
|
8
|
-
getBuiltinProperties
|
|
9
|
+
getBuiltinProperties?: () => SemanticSearchPropertyDefinition[];
|
|
10
|
+
renderPropertyFilterValueSelection?: (internalName: string) => JSX.Element;
|
|
11
|
+
onSelectFilterValue?: (filterValue: any) => void;
|
|
12
|
+
renderPropertyValue?: (internalName: string, propertyValue: any) => JSX.Element;
|
|
9
13
|
}
|
|
@@ -2,17 +2,24 @@ import { OmniaContext } from "@omnia/fx";
|
|
|
2
2
|
import { BusinessProfileAnalyticsSettings } from "@omnia/fx-models";
|
|
3
3
|
import { MultilingualStore, UserTypeStore } from "@omnia/fx/stores";
|
|
4
4
|
import { DataSourcePropertiesService } from "@omnia/fx/services";
|
|
5
|
+
import { AnalyticsStore } from "../stores/AnalyticsStore";
|
|
6
|
+
import { AnalyticsSettings } from "../models/analytics/analyticssettings";
|
|
5
7
|
export declare class AnalyticsService {
|
|
6
8
|
userTypeStore: UserTypeStore;
|
|
7
9
|
dataSourcePropertiesService: DataSourcePropertiesService;
|
|
8
10
|
multilingualStore: MultilingualStore;
|
|
9
11
|
omniaContext: OmniaContext;
|
|
12
|
+
analyticsStore: AnalyticsStore;
|
|
10
13
|
readonly dsSourcesAllowed: string[];
|
|
11
14
|
tracker: any;
|
|
12
15
|
settings: BusinessProfileAnalyticsSettings;
|
|
16
|
+
connectedAnalyticsSettings: AnalyticsSettings;
|
|
13
17
|
constructor();
|
|
18
|
+
private getConnectedAnalyticsSettings;
|
|
19
|
+
private getMappings;
|
|
14
20
|
registerPageVisit(resetDimensions?: boolean): Promise<void>;
|
|
15
21
|
registerAction(category: string, action: string, name: string, value?: number): Promise<void>;
|
|
22
|
+
private shouldCollectInAnalyticsSettings;
|
|
16
23
|
private shouldCollect;
|
|
17
24
|
private getDataSources;
|
|
18
25
|
private getActiveProperties;
|