@esri/hub-common 9.37.0 → 9.40.0
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/dist/es2017/content/HubContent.js +68 -0
- package/dist/es2017/content/HubContent.js.map +1 -0
- package/dist/es2017/content/_internal.js +83 -0
- package/dist/es2017/content/_internal.js.map +1 -1
- package/dist/es2017/content/compose.js +7 -11
- package/dist/es2017/content/compose.js.map +1 -1
- package/dist/es2017/content/index.js +1 -0
- package/dist/es2017/content/index.js.map +1 -1
- package/dist/es2017/core/types/IHubContent.js +7 -0
- package/dist/es2017/core/types/IHubContent.js.map +1 -1
- package/dist/es2017/groups/HubGroups.js +63 -0
- package/dist/es2017/groups/HubGroups.js.map +1 -0
- package/dist/es2017/groups/_internal/enrichments.js +99 -0
- package/dist/es2017/groups/_internal/enrichments.js.map +1 -0
- package/dist/es2017/groups/index.js +2 -0
- package/dist/es2017/groups/index.js.map +1 -1
- package/dist/es2017/groups/types/IGroupMembershipSummary.js +1 -0
- package/dist/es2017/groups/types/IGroupMembershipSummary.js.map +1 -0
- package/dist/es2017/groups/types/index.js +2 -0
- package/dist/es2017/groups/types/index.js.map +1 -0
- package/dist/es2017/index.js +2 -0
- package/dist/es2017/index.js.map +1 -1
- package/dist/es2017/items/_enrichments.js +30 -1
- package/dist/es2017/items/_enrichments.js.map +1 -1
- package/dist/es2017/org/fetch-org.js +21 -0
- package/dist/es2017/org/fetch-org.js.map +1 -0
- package/dist/es2017/org/index.js +2 -0
- package/dist/es2017/org/index.js.map +1 -0
- package/dist/es2017/pages/HubPages.js +61 -0
- package/dist/es2017/pages/HubPages.js.map +1 -0
- package/dist/es2017/pages/index.js +2 -0
- package/dist/es2017/pages/index.js.map +1 -0
- package/dist/es2017/projects/HubProjects.js +56 -1
- package/dist/es2017/projects/HubProjects.js.map +1 -1
- package/dist/es2017/search/_internal/hubSearchItems.js +191 -0
- package/dist/es2017/search/_internal/hubSearchItems.js.map +1 -0
- package/dist/es2017/search/_internal/index.js +3 -0
- package/dist/es2017/search/_internal/index.js.map +1 -1
- package/dist/es2017/search/_internal/parseInclude.js +27 -0
- package/dist/es2017/search/_internal/parseInclude.js.map +1 -0
- package/dist/es2017/search/_internal/portalSearchGroups.js +100 -0
- package/dist/es2017/search/_internal/portalSearchGroups.js.map +1 -0
- package/dist/es2017/search/_internal/portalSearchItems.js +109 -0
- package/dist/es2017/search/_internal/portalSearchItems.js.map +1 -0
- package/dist/es2017/search/_searchContent.js +3 -0
- package/dist/es2017/search/_searchContent.js.map +1 -1
- package/dist/es2017/search/_searchGroups.js +3 -1
- package/dist/es2017/search/_searchGroups.js.map +1 -1
- package/dist/es2017/search/_searchUsers.js +3 -1
- package/dist/es2017/search/_searchUsers.js.map +1 -1
- package/dist/es2017/search/collectionState.js +1 -1
- package/dist/es2017/search/collectionState.js.map +1 -1
- package/dist/es2017/search/content-utils.js +36 -4
- package/dist/es2017/search/content-utils.js.map +1 -1
- package/dist/es2017/search/convertCatalog.js +14 -5
- package/dist/es2017/search/convertCatalog.js.map +1 -1
- package/dist/es2017/search/filter-utils.js +18 -3
- package/dist/es2017/search/filter-utils.js.map +1 -1
- package/dist/es2017/search/group-utils.js +8 -1
- package/dist/es2017/search/group-utils.js.map +1 -1
- package/dist/es2017/search/hubSearch.js +48 -0
- package/dist/es2017/search/hubSearch.js.map +1 -0
- package/dist/es2017/search/index.js +1 -0
- package/dist/es2017/search/index.js.map +1 -1
- package/dist/es2017/search/user-utils.js +8 -1
- package/dist/es2017/search/user-utils.js.map +1 -1
- package/dist/es2017/search/utils.js +5 -0
- package/dist/es2017/search/utils.js.map +1 -1
- package/dist/es2017/sites/HubSites.js +55 -1
- package/dist/es2017/sites/HubSites.js.map +1 -1
- package/dist/es2017/urls/getGroupHomeUrl.js +12 -0
- package/dist/es2017/urls/getGroupHomeUrl.js.map +1 -0
- package/dist/es2017/urls/index.js +1 -0
- package/dist/es2017/urls/index.js.map +1 -1
- package/dist/esm/content/HubContent.js +75 -0
- package/dist/esm/content/HubContent.js.map +1 -0
- package/dist/esm/content/_internal.js +85 -0
- package/dist/esm/content/_internal.js.map +1 -1
- package/dist/esm/content/compose.js +5 -11
- package/dist/esm/content/compose.js.map +1 -1
- package/dist/esm/content/index.js +1 -0
- package/dist/esm/content/index.js.map +1 -1
- package/dist/esm/core/types/IHubContent.js +7 -0
- package/dist/esm/core/types/IHubContent.js.map +1 -1
- package/dist/esm/groups/HubGroups.js +70 -0
- package/dist/esm/groups/HubGroups.js.map +1 -0
- package/dist/esm/groups/_internal/enrichments.js +100 -0
- package/dist/esm/groups/_internal/enrichments.js.map +1 -0
- package/dist/esm/groups/index.js +2 -0
- package/dist/esm/groups/index.js.map +1 -1
- package/dist/esm/groups/types/IGroupMembershipSummary.js +1 -0
- package/dist/esm/groups/types/IGroupMembershipSummary.js.map +1 -0
- package/dist/esm/groups/types/index.js +2 -0
- package/dist/esm/groups/types/index.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/items/_enrichments.js +30 -1
- package/dist/esm/items/_enrichments.js.map +1 -1
- package/dist/esm/org/fetch-org.js +22 -0
- package/dist/esm/org/fetch-org.js.map +1 -0
- package/dist/esm/org/index.js +2 -0
- package/dist/esm/org/index.js.map +1 -0
- package/dist/esm/pages/HubPages.js +68 -0
- package/dist/esm/pages/HubPages.js.map +1 -0
- package/dist/esm/pages/index.js +2 -0
- package/dist/esm/pages/index.js.map +1 -0
- package/dist/esm/projects/HubProjects.js +63 -2
- package/dist/esm/projects/HubProjects.js.map +1 -1
- package/dist/esm/search/_internal/hubSearchItems.js +204 -0
- package/dist/esm/search/_internal/hubSearchItems.js.map +1 -0
- package/dist/esm/search/_internal/index.js +3 -0
- package/dist/esm/search/_internal/index.js.map +1 -1
- package/dist/esm/search/_internal/parseInclude.js +27 -0
- package/dist/esm/search/_internal/parseInclude.js.map +1 -0
- package/dist/esm/search/_internal/portalSearchGroups.js +114 -0
- package/dist/esm/search/_internal/portalSearchGroups.js.map +1 -0
- package/dist/esm/search/_internal/portalSearchItems.js +123 -0
- package/dist/esm/search/_internal/portalSearchItems.js.map +1 -0
- package/dist/esm/search/_searchContent.js +3 -0
- package/dist/esm/search/_searchContent.js.map +1 -1
- package/dist/esm/search/_searchGroups.js +3 -1
- package/dist/esm/search/_searchGroups.js.map +1 -1
- package/dist/esm/search/_searchUsers.js +3 -1
- package/dist/esm/search/_searchUsers.js.map +1 -1
- package/dist/esm/search/collectionState.js +1 -1
- package/dist/esm/search/collectionState.js.map +1 -1
- package/dist/esm/search/content-utils.js +38 -4
- package/dist/esm/search/content-utils.js.map +1 -1
- package/dist/esm/search/convertCatalog.js +14 -5
- package/dist/esm/search/convertCatalog.js.map +1 -1
- package/dist/esm/search/filter-utils.js +16 -3
- package/dist/esm/search/filter-utils.js.map +1 -1
- package/dist/esm/search/group-utils.js +8 -1
- package/dist/esm/search/group-utils.js.map +1 -1
- package/dist/esm/search/hubSearch.js +52 -0
- package/dist/esm/search/hubSearch.js.map +1 -0
- package/dist/esm/search/index.js +1 -0
- package/dist/esm/search/index.js.map +1 -1
- package/dist/esm/search/user-utils.js +8 -1
- package/dist/esm/search/user-utils.js.map +1 -1
- package/dist/esm/search/utils.js +5 -0
- package/dist/esm/search/utils.js.map +1 -1
- package/dist/esm/sites/HubSites.js +62 -2
- package/dist/esm/sites/HubSites.js.map +1 -1
- package/dist/esm/urls/getGroupHomeUrl.js +12 -0
- package/dist/esm/urls/getGroupHomeUrl.js.map +1 -0
- package/dist/esm/urls/index.js +1 -0
- package/dist/esm/urls/index.js.map +1 -1
- package/dist/node/content/HubContent.js +72 -0
- package/dist/node/content/HubContent.js.map +1 -0
- package/dist/node/content/_internal.js +84 -1
- package/dist/node/content/_internal.js.map +1 -1
- package/dist/node/content/compose.js +6 -10
- package/dist/node/content/compose.js.map +1 -1
- package/dist/node/content/index.js +1 -0
- package/dist/node/content/index.js.map +1 -1
- package/dist/node/core/types/IHubContent.js +8 -0
- package/dist/node/core/types/IHubContent.js.map +1 -1
- package/dist/node/groups/HubGroups.js +67 -0
- package/dist/node/groups/HubGroups.js.map +1 -0
- package/dist/node/groups/_internal/enrichments.js +103 -0
- package/dist/node/groups/_internal/enrichments.js.map +1 -0
- package/dist/node/groups/index.js +2 -0
- package/dist/node/groups/index.js.map +1 -1
- package/dist/node/groups/types/IGroupMembershipSummary.js +3 -0
- package/dist/node/groups/types/IGroupMembershipSummary.js.map +1 -0
- package/dist/node/groups/types/index.js +5 -0
- package/dist/node/groups/types/index.js.map +1 -0
- package/dist/node/index.js +2 -0
- package/dist/node/index.js.map +1 -1
- package/dist/node/items/_enrichments.js +30 -1
- package/dist/node/items/_enrichments.js.map +1 -1
- package/dist/node/org/fetch-org.js +24 -0
- package/dist/node/org/fetch-org.js.map +1 -0
- package/dist/node/org/index.js +5 -0
- package/dist/node/org/index.js.map +1 -0
- package/dist/node/pages/HubPages.js +65 -0
- package/dist/node/pages/HubPages.js.map +1 -0
- package/dist/node/pages/index.js +5 -0
- package/dist/node/pages/index.js.map +1 -0
- package/dist/node/projects/HubProjects.js +57 -1
- package/dist/node/projects/HubProjects.js.map +1 -1
- package/dist/node/search/_internal/hubSearchItems.js +198 -0
- package/dist/node/search/_internal/hubSearchItems.js.map +1 -0
- package/dist/node/search/_internal/index.js +3 -0
- package/dist/node/search/_internal/index.js.map +1 -1
- package/dist/node/search/_internal/parseInclude.js +31 -0
- package/dist/node/search/_internal/parseInclude.js.map +1 -0
- package/dist/node/search/_internal/portalSearchGroups.js +104 -0
- package/dist/node/search/_internal/portalSearchGroups.js.map +1 -0
- package/dist/node/search/_internal/portalSearchItems.js +113 -0
- package/dist/node/search/_internal/portalSearchItems.js.map +1 -0
- package/dist/node/search/_searchContent.js +3 -0
- package/dist/node/search/_searchContent.js.map +1 -1
- package/dist/node/search/_searchGroups.js +2 -0
- package/dist/node/search/_searchGroups.js.map +1 -1
- package/dist/node/search/_searchUsers.js +2 -0
- package/dist/node/search/_searchUsers.js.map +1 -1
- package/dist/node/search/collectionState.js +1 -1
- package/dist/node/search/collectionState.js.map +1 -1
- package/dist/node/search/content-utils.js +38 -5
- package/dist/node/search/content-utils.js.map +1 -1
- package/dist/node/search/convertCatalog.js +14 -5
- package/dist/node/search/convertCatalog.js.map +1 -1
- package/dist/node/search/filter-utils.js +18 -3
- package/dist/node/search/filter-utils.js.map +1 -1
- package/dist/node/search/group-utils.js +7 -0
- package/dist/node/search/group-utils.js.map +1 -1
- package/dist/node/search/hubSearch.js +52 -0
- package/dist/node/search/hubSearch.js.map +1 -0
- package/dist/node/search/index.js +1 -0
- package/dist/node/search/index.js.map +1 -1
- package/dist/node/search/user-utils.js +7 -0
- package/dist/node/search/user-utils.js.map +1 -1
- package/dist/node/search/utils.js +5 -0
- package/dist/node/search/utils.js.map +1 -1
- package/dist/node/sites/HubSites.js +56 -1
- package/dist/node/sites/HubSites.js.map +1 -1
- package/dist/node/urls/getGroupHomeUrl.js +16 -0
- package/dist/node/urls/getGroupHomeUrl.js.map +1 -0
- package/dist/node/urls/index.js +1 -0
- package/dist/node/urls/index.js.map +1 -1
- package/dist/types/content/HubContent.d.ts +11 -0
- package/dist/types/content/_internal.d.ts +54 -5
- package/dist/types/content/index.d.ts +1 -0
- package/dist/types/core/types/IHubContent.d.ts +21 -0
- package/dist/types/groups/HubGroups.d.ts +11 -0
- package/dist/types/groups/_internal/enrichments.d.ts +30 -0
- package/dist/types/groups/index.d.ts +2 -0
- package/dist/types/groups/types/IGroupMembershipSummary.d.ts +15 -0
- package/dist/types/groups/types/index.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/org/fetch-org.d.ts +9 -0
- package/dist/types/org/index.d.ts +1 -0
- package/dist/types/pages/HubPages.d.ts +11 -0
- package/dist/types/pages/index.d.ts +1 -0
- package/dist/types/projects/HubProjects.d.ts +10 -1
- package/dist/types/search/_internal/hubSearchItems.d.ts +18 -0
- package/dist/types/search/_internal/index.d.ts +3 -0
- package/dist/types/search/_internal/parseInclude.d.ts +32 -0
- package/dist/types/search/_internal/portalSearchGroups.d.ts +9 -0
- package/dist/types/search/_internal/portalSearchItems.d.ts +9 -0
- package/dist/types/search/content-utils.d.ts +9 -1
- package/dist/types/search/hubSearch.d.ts +11 -0
- package/dist/types/search/index.d.ts +1 -0
- package/dist/types/search/types/ICatalog.d.ts +14 -3
- package/dist/types/search/types/ICollection.d.ts +17 -3
- package/dist/types/search/types/IHubSearchOptions.d.ts +46 -5
- package/dist/types/search/types/IHubSearchResult.d.ts +46 -2
- package/dist/types/search/types/types.d.ts +13 -15
- package/dist/types/sites/HubSites.d.ts +9 -1
- package/dist/types/urls/getGroupHomeUrl.d.ts +10 -0
- package/dist/types/urls/index.d.ts +1 -0
- package/dist/umd/common.umd.js +8136 -6977
- package/dist/umd/common.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { HubFamily, IHubGeography } from "../..";
|
|
2
2
|
import { AccessLevel, IHubEntityBase } from "../../core";
|
|
3
|
+
/**
|
|
4
|
+
* Simple interface for Links
|
|
5
|
+
*/
|
|
6
|
+
export interface ILink {
|
|
7
|
+
/**
|
|
8
|
+
* Link url
|
|
9
|
+
*/
|
|
10
|
+
href: string;
|
|
11
|
+
/**
|
|
12
|
+
* Additional optional properties
|
|
13
|
+
*/
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
}
|
|
3
16
|
/**
|
|
4
17
|
* Standardized light-weight search result structure, applicable to all
|
|
5
18
|
* types of search results - users, groups, content, events etc
|
|
@@ -18,20 +31,24 @@ export interface IHubSearchResult extends IHubEntityBase {
|
|
|
18
31
|
*/
|
|
19
32
|
owner?: string;
|
|
20
33
|
/**
|
|
34
|
+
* DEPRECATED use links.thumbnail
|
|
21
35
|
* Fully qualified thumbnail url for items, groups, users
|
|
22
36
|
* Will not have the token appended. Consuming app needs to
|
|
23
37
|
* check the value of `access` and apply the token as needed
|
|
24
38
|
*/
|
|
25
|
-
thumbnailUrl
|
|
39
|
+
thumbnailUrl?: string;
|
|
26
40
|
/**
|
|
41
|
+
* DEPRECATED - use links
|
|
27
42
|
* Hash of pre-computed urls
|
|
28
43
|
*/
|
|
29
|
-
urls
|
|
44
|
+
urls?: {
|
|
30
45
|
/**
|
|
46
|
+
* DEPRECATED - use links
|
|
31
47
|
* Canononical ArcGIS Online Url for this entity (if applicable)
|
|
32
48
|
*/
|
|
33
49
|
portalHome?: string;
|
|
34
50
|
/**
|
|
51
|
+
* DEPRECATED - use links
|
|
35
52
|
* Relative url, which can be appended to a Site's root Url
|
|
36
53
|
* e.g. /datasets/3ef8c7a, or /events/june-meeting
|
|
37
54
|
* This is much easier than passing a Site into the search
|
|
@@ -39,11 +56,35 @@ export interface IHubSearchResult extends IHubEntityBase {
|
|
|
39
56
|
*/
|
|
40
57
|
relative: string;
|
|
41
58
|
/**
|
|
59
|
+
* DEPRECATED - use links
|
|
42
60
|
* Allow for arbitrary other urls, including `.customUrl` which
|
|
43
61
|
* can ben generated client-side in the gallery via a callback
|
|
44
62
|
*/
|
|
45
63
|
[key: string]: string;
|
|
46
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* Links to related things
|
|
67
|
+
*/
|
|
68
|
+
links?: {
|
|
69
|
+
/**
|
|
70
|
+
* Url to Thumbnail. Will not include a token
|
|
71
|
+
*/
|
|
72
|
+
thumbnail?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Url to the entities canonical "self"
|
|
75
|
+
* For Items/Groups/Users, this will be the Home App url
|
|
76
|
+
* For other entities, it will be the canonical url
|
|
77
|
+
*/
|
|
78
|
+
self: string;
|
|
79
|
+
/**
|
|
80
|
+
* Relative url of the entity, within a site
|
|
81
|
+
*/
|
|
82
|
+
siteRelative: string;
|
|
83
|
+
/**
|
|
84
|
+
* Additional urls
|
|
85
|
+
*/
|
|
86
|
+
[key: string]: string | ILink;
|
|
87
|
+
};
|
|
47
88
|
/**
|
|
48
89
|
* Geometry connected to this entity
|
|
49
90
|
* For items, it will default to the extent,
|
|
@@ -52,9 +93,12 @@ export interface IHubSearchResult extends IHubEntityBase {
|
|
|
52
93
|
*/
|
|
53
94
|
geometry?: IHubGeography;
|
|
54
95
|
/**
|
|
96
|
+
* DEPRECATED - includes/enrichments are directly attached
|
|
55
97
|
* Optional metadata hash
|
|
56
98
|
* Any specified enrichments will be attached in here, as well
|
|
57
99
|
* as tags, typekeywords and culture
|
|
58
100
|
*/
|
|
59
101
|
metadata?: Record<string, any>;
|
|
102
|
+
/** Allow any additional properties to be added */
|
|
103
|
+
[key: string]: any;
|
|
60
104
|
}
|
|
@@ -6,8 +6,7 @@ import { IFacet } from "./IFacet";
|
|
|
6
6
|
*
|
|
7
7
|
* `Filter<T extends FilterType>` [FilterType](../FilterType) is constrained to
|
|
8
8
|
*
|
|
9
|
-
* - `Filter<"
|
|
10
|
-
* - `Filter<"content">` [IContentFilterDefinition](../IContentFilterDefinition)
|
|
9
|
+
* - `Filter<"item">` [IContentFilterDefinition](../IContentFilterDefinition)
|
|
11
10
|
* - `Filter<"user">` [IUserFilterDefinition](../IUserFilterDefinition)
|
|
12
11
|
* - `Filter<"group">` [IGroupFilterDefinition](../IGroupFilterDefinition)
|
|
13
12
|
*
|
|
@@ -15,8 +14,8 @@ import { IFacet } from "./IFacet";
|
|
|
15
14
|
* and it must be `keyof` [FilterTypeMap](../FilterTypeMap)
|
|
16
15
|
*
|
|
17
16
|
* ```ts
|
|
18
|
-
* const f:Filter<"
|
|
19
|
-
* filterType: "
|
|
17
|
+
* const f:Filter<"item"> = {
|
|
18
|
+
* filterType: "item" // must match the FilterType
|
|
20
19
|
* term: "water"
|
|
21
20
|
* }
|
|
22
21
|
* ```
|
|
@@ -24,15 +23,12 @@ import { IFacet } from "./IFacet";
|
|
|
24
23
|
export declare type Filter<T extends FilterType> = IFilterTypeMap[T] & {
|
|
25
24
|
filterType: T;
|
|
26
25
|
};
|
|
27
|
-
export interface IFilterGroup<T extends FilterType> {
|
|
28
|
-
operation?: "AND" | "OR";
|
|
29
|
-
filters: Array<Filter<T>>;
|
|
30
|
-
}
|
|
31
26
|
/**
|
|
32
27
|
* Groups of filters with an operation specifying how the
|
|
33
28
|
* filters should be connected when serialized
|
|
34
29
|
*/
|
|
35
30
|
export interface IFilterGroup<T extends FilterType> {
|
|
31
|
+
filterType: T;
|
|
36
32
|
operation?: "AND" | "OR";
|
|
37
33
|
filters: Array<Filter<T>>;
|
|
38
34
|
}
|
|
@@ -42,23 +38,21 @@ export interface IFilterGroup<T extends FilterType> {
|
|
|
42
38
|
*/
|
|
43
39
|
export interface IFilterTypeMap {
|
|
44
40
|
item: IItemFilter;
|
|
41
|
+
user: IUserFilterDefinition;
|
|
42
|
+
group: IGroupFilterDefinition;
|
|
43
|
+
event: IEventFilterDefinition;
|
|
45
44
|
/**
|
|
46
45
|
* DEPRECATED use item
|
|
46
|
+
* // TODO: Remove with _searchContent
|
|
47
47
|
*/
|
|
48
48
|
content: IContentFilterDefinition;
|
|
49
|
-
user: IUserFilterDefinition;
|
|
50
|
-
group: IGroupFilterDefinition;
|
|
51
|
-
event: IEventFilterDefinition;
|
|
52
49
|
}
|
|
53
50
|
export declare type FilterType = keyof IFilterTypeMap;
|
|
54
|
-
/**
|
|
55
|
-
* Common set of fields that are reasonable to apply at the
|
|
56
|
-
* top level of a Catalog
|
|
57
|
-
*/
|
|
58
51
|
export interface IItemFilter {
|
|
59
52
|
access?: AccessLevel | AccessLevel[] | IMatchOptions;
|
|
60
53
|
owner?: string | string[] | IMatchOptions;
|
|
61
54
|
tags?: string | string[] | IMatchOptions;
|
|
55
|
+
categories?: string | string[] | IMatchOptions;
|
|
62
56
|
created?: IDateRange<number> | IRelativeDate;
|
|
63
57
|
description?: string | string[] | IMatchOptions;
|
|
64
58
|
snippet?: string | string[] | IMatchOptions;
|
|
@@ -74,11 +68,13 @@ export interface IItemFilter {
|
|
|
74
68
|
}
|
|
75
69
|
/**
|
|
76
70
|
* Fields related to Content based searches
|
|
71
|
+
* // TODO: Remove with _searchContent
|
|
77
72
|
*/
|
|
78
73
|
export interface IContentFilterDefinition {
|
|
79
74
|
access?: string | string[] | IMatchOptions;
|
|
80
75
|
owner?: string | string[] | IMatchOptions;
|
|
81
76
|
tags?: string | string[] | IMatchOptions;
|
|
77
|
+
categories?: string | string[] | IMatchOptions;
|
|
82
78
|
created?: IDateRange<number> | IRelativeDate;
|
|
83
79
|
description?: string | string[] | IMatchOptions;
|
|
84
80
|
snippet?: string | string[] | IMatchOptions;
|
|
@@ -153,6 +149,7 @@ export interface IGroupFilterDefinition {
|
|
|
153
149
|
term?: string;
|
|
154
150
|
title?: string | string[] | IMatchOptions;
|
|
155
151
|
typekeywords?: string | string[] | IMatchOptions;
|
|
152
|
+
isopendata?: boolean;
|
|
156
153
|
}
|
|
157
154
|
export interface IEventFilterDefinition {
|
|
158
155
|
created?: IDateRange<number> | IRelativeDate;
|
|
@@ -216,6 +213,7 @@ export interface IMatchOptions {
|
|
|
216
213
|
}
|
|
217
214
|
/**
|
|
218
215
|
* searchContent return
|
|
216
|
+
* // TODO: Remove with _searchContent
|
|
219
217
|
*/
|
|
220
218
|
export interface IContentSearchResult {
|
|
221
219
|
total: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IItem } from "@esri/arcgis-rest-portal";
|
|
2
|
-
import { Filter, IHubRequestOptions, IHubSearchOptions, IHubSite, ISearchResponse } from "..";
|
|
2
|
+
import { Filter, IHubRequestOptions, IHubSearchOptions, IHubSearchResult, IHubSite, ISearchResponse } from "..";
|
|
3
3
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
4
4
|
export declare const HUB_SITE_ITEM_TYPE = "Hub Site Application";
|
|
5
5
|
export declare const ENTERPRISE_SITE_ITEM_TYPE = "Site Application";
|
|
@@ -54,3 +54,11 @@ export declare function convertItemToSite(item: IItem, requestOptions: IRequestO
|
|
|
54
54
|
* @returns
|
|
55
55
|
*/
|
|
56
56
|
export declare function searchSites(filter: Filter<"content">, options: IHubSearchOptions): Promise<ISearchResponse<IHubSite>>;
|
|
57
|
+
/**
|
|
58
|
+
* Fetch Site specific enrichments
|
|
59
|
+
* @param item
|
|
60
|
+
* @param include
|
|
61
|
+
* @param requestOptions
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
export declare function enrichSiteSearchResult(item: IItem, include: string[], requestOptions: IHubRequestOptions): Promise<IHubSearchResult>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { IPortal } from "@esri/arcgis-rest-portal";
|
|
3
|
+
import { IHubRequestOptions } from "../types";
|
|
4
|
+
/**
|
|
5
|
+
* Return the URL of the group's page in the Portal Home application
|
|
6
|
+
* @param groupId The group's ID
|
|
7
|
+
* @param portalUrlOrObject a portal base or API URL, a portal object, or request options containing either of those
|
|
8
|
+
* @returns URL to the groups's url, defaults to `https://www.arcgis.com/home/group.html?id={group.id}`
|
|
9
|
+
*/
|
|
10
|
+
export declare function getGroupHomeUrl(groupId: string, portalUrlOrObject?: string | IPortal | IHubRequestOptions | IRequestOptions): string;
|