@omnia/workplace 7.8.37-preview → 7.8.38-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.
@@ -35,7 +35,9 @@ export declare module Enums {
35
35
  enum SearchResultItemTypes {
36
36
  SharePoint = 0,
37
37
  MicrosoftSearch = 1,
38
- SharedLink = 2
38
+ SharedLink = 2,
39
+ SemanticSearch = 3,
40
+ OmniaSearch = 4
39
41
  }
40
42
  module UserProfileCompletionEnums {
41
43
  enum PropertySourceEnum {
@@ -47,6 +47,8 @@ var Enums;
47
47
  SearchResultItemTypes[SearchResultItemTypes["SharePoint"] = 0] = "SharePoint";
48
48
  SearchResultItemTypes[SearchResultItemTypes["MicrosoftSearch"] = 1] = "MicrosoftSearch";
49
49
  SearchResultItemTypes[SearchResultItemTypes["SharedLink"] = 2] = "SharedLink";
50
+ SearchResultItemTypes[SearchResultItemTypes["SemanticSearch"] = 3] = "SemanticSearch";
51
+ SearchResultItemTypes[SearchResultItemTypes["OmniaSearch"] = 4] = "OmniaSearch";
50
52
  })(SearchResultItemTypes = Enums.SearchResultItemTypes || (Enums.SearchResultItemTypes = {}));
51
53
  let UserProfileCompletionEnums;
52
54
  (function (UserProfileCompletionEnums) {
@@ -91,3 +91,8 @@ export interface PagingOption {
91
91
  take: number;
92
92
  skip: number;
93
93
  }
94
+ export interface OmniaSearchResultItem extends SearchResultItem {
95
+ customPropertiesResult: {
96
+ [key: string]: string;
97
+ };
98
+ }
@@ -64,6 +64,9 @@ export interface OmniaSearchCategory extends SearchCategoryBase {
64
64
  sortBy?: string;
65
65
  sortDirection?: Enums.SortDirection;
66
66
  providerSettings: OmniaSearchSettings;
67
+ listTemplatePropertiesMapping?: {
68
+ [templateId: string]: DictionaryPropertiesMapping;
69
+ };
67
70
  }
68
71
  export interface OmniaSearchSettings extends ProviderSettings {
69
72
  }
@@ -1,10 +1,13 @@
1
1
  import { GuidValue } from "@omnia/fx-models";
2
+ import { CategorySearchResult } from ".";
3
+ import { SearchRequest } from "../../search/models";
2
4
  export declare abstract class SearchResultSource implements SearchResultSourceBase {
3
5
  abstract readonly id: string;
4
6
  abstract readonly title: string;
5
7
  abstract readonly providerId: GuidValue;
6
8
  abstract readonly providerDisplayRenderManifestId: GuidValue;
7
9
  abstract readonly weight: number;
10
+ getCategorySearchResult: (searchRequest: SearchRequest) => Promise<Array<CategorySearchResult>>;
8
11
  }
9
12
  export interface SearchResultSourceBase {
10
13
  id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/workplace",
3
3
  "license": "MIT",
4
- "version": "7.8.37-preview",
4
+ "version": "7.8.38-preview",
5
5
  "description": "Omnia Workplace.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"