@esri/hub-common 9.48.0 → 10.0.0-next.2

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.
Files changed (248) hide show
  1. package/dist/es2017/core/traits/WithCatalog.js +1 -0
  2. package/dist/es2017/core/traits/WithCatalog.js.map +1 -0
  3. package/dist/es2017/index.js +1 -0
  4. package/dist/es2017/index.js.map +1 -1
  5. package/dist/es2017/projects/HubProjects.js.map +1 -1
  6. package/dist/es2017/search/Catalog.js +346 -0
  7. package/dist/es2017/search/Catalog.js.map +1 -0
  8. package/dist/es2017/search/Collection.js +38 -19
  9. package/dist/es2017/search/Collection.js.map +1 -1
  10. package/dist/es2017/search/_internal/{ipredicate-utils.js → expandPredicate.js} +1 -1
  11. package/dist/es2017/search/_internal/expandPredicate.js.map +1 -0
  12. package/dist/es2017/search/_internal/hubSearchItems.js +3 -137
  13. package/dist/es2017/search/_internal/hubSearchItems.js.map +1 -1
  14. package/dist/es2017/search/_internal/index.js +0 -1
  15. package/dist/es2017/search/_internal/index.js.map +1 -1
  16. package/dist/es2017/search/_internal/portalSearchGroups.js +1 -2
  17. package/dist/es2017/search/_internal/portalSearchGroups.js.map +1 -1
  18. package/dist/es2017/search/_internal/portalSearchItems.js +5 -30
  19. package/dist/es2017/search/_internal/portalSearchItems.js.map +1 -1
  20. package/dist/es2017/search/_internal/portalSearchUsers.js +1 -2
  21. package/dist/es2017/search/_internal/portalSearchUsers.js.map +1 -1
  22. package/dist/es2017/search/fetchCatalog.js +46 -0
  23. package/dist/es2017/search/fetchCatalog.js.map +1 -0
  24. package/dist/es2017/search/hubSearch.js +1 -1
  25. package/dist/es2017/search/hubSearch.js.map +1 -1
  26. package/dist/es2017/search/index.js +3 -9
  27. package/dist/es2017/search/index.js.map +1 -1
  28. package/dist/es2017/search/serializeQueryForPortal.js +1 -1
  29. package/dist/es2017/search/serializeQueryForPortal.js.map +1 -1
  30. package/dist/es2017/search/types/index.js +0 -5
  31. package/dist/es2017/search/types/index.js.map +1 -1
  32. package/dist/es2017/search/upgradeCatalogSchema.js +66 -0
  33. package/dist/es2017/search/upgradeCatalogSchema.js.map +1 -0
  34. package/dist/es2017/search/utils.js +1 -207
  35. package/dist/es2017/search/utils.js.map +1 -1
  36. package/dist/es2017/types/IMessage.js +1 -0
  37. package/dist/es2017/types/IMessage.js.map +1 -0
  38. package/dist/es2017/types/index.js +2 -0
  39. package/dist/es2017/types/index.js.map +1 -0
  40. package/dist/es2017/types.js.map +1 -1
  41. package/dist/esm/core/traits/WithCatalog.js +1 -0
  42. package/dist/esm/core/traits/WithCatalog.js.map +1 -0
  43. package/dist/esm/index.js +1 -0
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/esm/projects/HubProjects.js.map +1 -1
  46. package/dist/esm/search/Catalog.js +404 -0
  47. package/dist/esm/search/Catalog.js.map +1 -0
  48. package/dist/esm/search/Collection.js +40 -24
  49. package/dist/esm/search/Collection.js.map +1 -1
  50. package/dist/esm/search/_internal/{ipredicate-utils.js → expandPredicate.js} +1 -1
  51. package/dist/esm/search/_internal/expandPredicate.js.map +1 -0
  52. package/dist/esm/search/_internal/hubSearchItems.js +4 -146
  53. package/dist/esm/search/_internal/hubSearchItems.js.map +1 -1
  54. package/dist/esm/search/_internal/index.js +0 -1
  55. package/dist/esm/search/_internal/index.js.map +1 -1
  56. package/dist/esm/search/_internal/portalSearchGroups.js +1 -2
  57. package/dist/esm/search/_internal/portalSearchGroups.js.map +1 -1
  58. package/dist/esm/search/_internal/portalSearchItems.js +6 -30
  59. package/dist/esm/search/_internal/portalSearchItems.js.map +1 -1
  60. package/dist/esm/search/_internal/portalSearchUsers.js +1 -2
  61. package/dist/esm/search/_internal/portalSearchUsers.js.map +1 -1
  62. package/dist/esm/search/fetchCatalog.js +59 -0
  63. package/dist/esm/search/fetchCatalog.js.map +1 -0
  64. package/dist/esm/search/hubSearch.js +1 -1
  65. package/dist/esm/search/hubSearch.js.map +1 -1
  66. package/dist/esm/search/index.js +3 -9
  67. package/dist/esm/search/index.js.map +1 -1
  68. package/dist/esm/search/serializeQueryForPortal.js +1 -1
  69. package/dist/esm/search/serializeQueryForPortal.js.map +1 -1
  70. package/dist/esm/search/types/index.js +0 -5
  71. package/dist/esm/search/types/index.js.map +1 -1
  72. package/dist/esm/search/upgradeCatalogSchema.js +66 -0
  73. package/dist/esm/search/upgradeCatalogSchema.js.map +1 -0
  74. package/dist/esm/search/utils.js +1 -204
  75. package/dist/esm/search/utils.js.map +1 -1
  76. package/dist/esm/types/IMessage.js +1 -0
  77. package/dist/esm/types/IMessage.js.map +1 -0
  78. package/dist/esm/types/index.js +2 -0
  79. package/dist/esm/types/index.js.map +1 -0
  80. package/dist/esm/types.js.map +1 -1
  81. package/dist/node/{search/types/ICollection.js → core/traits/WithCatalog.js} +1 -1
  82. package/dist/node/core/traits/WithCatalog.js.map +1 -0
  83. package/dist/node/index.js +1 -0
  84. package/dist/node/index.js.map +1 -1
  85. package/dist/node/projects/HubProjects.js.map +1 -1
  86. package/dist/node/search/Catalog.js +350 -0
  87. package/dist/node/search/Catalog.js.map +1 -0
  88. package/dist/node/search/Collection.js +37 -18
  89. package/dist/node/search/Collection.js.map +1 -1
  90. package/dist/node/search/_internal/{ipredicate-utils.js → expandPredicate.js} +1 -1
  91. package/dist/node/search/_internal/expandPredicate.js.map +1 -0
  92. package/dist/node/search/_internal/hubSearchItems.js +4 -139
  93. package/dist/node/search/_internal/hubSearchItems.js.map +1 -1
  94. package/dist/node/search/_internal/index.js +0 -1
  95. package/dist/node/search/_internal/index.js.map +1 -1
  96. package/dist/node/search/_internal/portalSearchGroups.js +2 -3
  97. package/dist/node/search/_internal/portalSearchGroups.js.map +1 -1
  98. package/dist/node/search/_internal/portalSearchItems.js +6 -31
  99. package/dist/node/search/_internal/portalSearchItems.js.map +1 -1
  100. package/dist/node/search/_internal/portalSearchUsers.js +2 -3
  101. package/dist/node/search/_internal/portalSearchUsers.js.map +1 -1
  102. package/dist/node/search/fetchCatalog.js +50 -0
  103. package/dist/node/search/fetchCatalog.js.map +1 -0
  104. package/dist/node/search/hubSearch.js +1 -1
  105. package/dist/node/search/hubSearch.js.map +1 -1
  106. package/dist/node/search/index.js +3 -9
  107. package/dist/node/search/index.js.map +1 -1
  108. package/dist/node/search/serializeQueryForPortal.js +2 -2
  109. package/dist/node/search/serializeQueryForPortal.js.map +1 -1
  110. package/dist/node/search/types/index.js +0 -5
  111. package/dist/node/search/types/index.js.map +1 -1
  112. package/dist/node/search/upgradeCatalogSchema.js +71 -0
  113. package/dist/node/search/upgradeCatalogSchema.js.map +1 -0
  114. package/dist/node/search/utils.js +1 -213
  115. package/dist/node/search/utils.js.map +1 -1
  116. package/dist/node/{search/types/ICatalog.js → types/IMessage.js} +1 -1
  117. package/dist/node/types/IMessage.js.map +1 -0
  118. package/dist/node/types/index.js +5 -0
  119. package/dist/node/types/index.js.map +1 -0
  120. package/dist/node/types.js.map +1 -1
  121. package/dist/types/core/traits/WithCatalog.d.ts +7 -0
  122. package/dist/types/index.d.ts +1 -0
  123. package/dist/types/search/Catalog.d.ts +143 -0
  124. package/dist/types/search/Collection.d.ts +23 -2
  125. package/dist/types/search/_internal/{ipredicate-utils.d.ts → expandPredicate.d.ts} +0 -0
  126. package/dist/types/search/_internal/hubSearchItems.d.ts +3 -4
  127. package/dist/types/search/_internal/index.d.ts +0 -1
  128. package/dist/types/search/_internal/portalSearchItems.d.ts +15 -15
  129. package/dist/types/search/fetchCatalog.d.ts +10 -0
  130. package/dist/types/search/index.d.ts +3 -9
  131. package/dist/types/search/types/IHubSearchOptions.d.ts +5 -1
  132. package/dist/types/search/types/IHubSearchResponse.d.ts +3 -3
  133. package/dist/types/search/types/index.d.ts +0 -5
  134. package/dist/types/search/types/types.d.ts +0 -206
  135. package/dist/types/search/upgradeCatalogSchema.d.ts +12 -0
  136. package/dist/types/search/utils.d.ts +2 -58
  137. package/dist/types/types/IMessage.d.ts +32 -0
  138. package/dist/types/types/index.d.ts +1 -0
  139. package/dist/types/types.d.ts +0 -2
  140. package/dist/umd/common.umd.js +1374 -2450
  141. package/dist/umd/common.umd.js.map +1 -1
  142. package/package.json +1 -1
  143. package/dist/es2017/search/_internal/ipredicate-utils.js.map +0 -1
  144. package/dist/es2017/search/_internal/state.js +0 -155
  145. package/dist/es2017/search/_internal/state.js.map +0 -1
  146. package/dist/es2017/search/_searchContent.js +0 -116
  147. package/dist/es2017/search/_searchContent.js.map +0 -1
  148. package/dist/es2017/search/_searchGroups.js +0 -88
  149. package/dist/es2017/search/_searchGroups.js.map +0 -1
  150. package/dist/es2017/search/_searchUsers.js +0 -89
  151. package/dist/es2017/search/_searchUsers.js.map +0 -1
  152. package/dist/es2017/search/collectionState.js +0 -60
  153. package/dist/es2017/search/collectionState.js.map +0 -1
  154. package/dist/es2017/search/content-utils.js +0 -455
  155. package/dist/es2017/search/content-utils.js.map +0 -1
  156. package/dist/es2017/search/convertCatalog.js +0 -33
  157. package/dist/es2017/search/convertCatalog.js.map +0 -1
  158. package/dist/es2017/search/filter-utils.js +0 -31
  159. package/dist/es2017/search/filter-utils.js.map +0 -1
  160. package/dist/es2017/search/group-utils.js +0 -142
  161. package/dist/es2017/search/group-utils.js.map +0 -1
  162. package/dist/es2017/search/types/ICatalog.js +0 -1
  163. package/dist/es2017/search/types/ICatalog.js.map +0 -1
  164. package/dist/es2017/search/types/ICollection.js +0 -1
  165. package/dist/es2017/search/types/ICollection.js.map +0 -1
  166. package/dist/es2017/search/types/IFacet.js +0 -1
  167. package/dist/es2017/search/types/IFacet.js.map +0 -1
  168. package/dist/es2017/search/types/IFacetOption.js +0 -1
  169. package/dist/es2017/search/types/IFacetOption.js.map +0 -1
  170. package/dist/es2017/search/types/IHubApiSearchRequest.js +0 -1
  171. package/dist/es2017/search/types/IHubApiSearchRequest.js.map +0 -1
  172. package/dist/es2017/search/user-utils.js +0 -139
  173. package/dist/es2017/search/user-utils.js.map +0 -1
  174. package/dist/esm/search/_internal/ipredicate-utils.js.map +0 -1
  175. package/dist/esm/search/_internal/state.js +0 -155
  176. package/dist/esm/search/_internal/state.js.map +0 -1
  177. package/dist/esm/search/_searchContent.js +0 -118
  178. package/dist/esm/search/_searchContent.js.map +0 -1
  179. package/dist/esm/search/_searchGroups.js +0 -91
  180. package/dist/esm/search/_searchGroups.js.map +0 -1
  181. package/dist/esm/search/_searchUsers.js +0 -92
  182. package/dist/esm/search/_searchUsers.js.map +0 -1
  183. package/dist/esm/search/collectionState.js +0 -61
  184. package/dist/esm/search/collectionState.js.map +0 -1
  185. package/dist/esm/search/content-utils.js +0 -462
  186. package/dist/esm/search/content-utils.js.map +0 -1
  187. package/dist/esm/search/convertCatalog.js +0 -33
  188. package/dist/esm/search/convertCatalog.js.map +0 -1
  189. package/dist/esm/search/filter-utils.js +0 -31
  190. package/dist/esm/search/filter-utils.js.map +0 -1
  191. package/dist/esm/search/group-utils.js +0 -146
  192. package/dist/esm/search/group-utils.js.map +0 -1
  193. package/dist/esm/search/types/ICatalog.js +0 -1
  194. package/dist/esm/search/types/ICatalog.js.map +0 -1
  195. package/dist/esm/search/types/ICollection.js +0 -1
  196. package/dist/esm/search/types/ICollection.js.map +0 -1
  197. package/dist/esm/search/types/IFacet.js +0 -1
  198. package/dist/esm/search/types/IFacet.js.map +0 -1
  199. package/dist/esm/search/types/IFacetOption.js +0 -1
  200. package/dist/esm/search/types/IFacetOption.js.map +0 -1
  201. package/dist/esm/search/types/IHubApiSearchRequest.js +0 -1
  202. package/dist/esm/search/types/IHubApiSearchRequest.js.map +0 -1
  203. package/dist/esm/search/user-utils.js +0 -143
  204. package/dist/esm/search/user-utils.js.map +0 -1
  205. package/dist/node/search/_internal/ipredicate-utils.js.map +0 -1
  206. package/dist/node/search/_internal/state.js +0 -166
  207. package/dist/node/search/_internal/state.js.map +0 -1
  208. package/dist/node/search/_searchContent.js +0 -120
  209. package/dist/node/search/_searchContent.js.map +0 -1
  210. package/dist/node/search/_searchGroups.js +0 -92
  211. package/dist/node/search/_searchGroups.js.map +0 -1
  212. package/dist/node/search/_searchUsers.js +0 -93
  213. package/dist/node/search/_searchUsers.js.map +0 -1
  214. package/dist/node/search/collectionState.js +0 -65
  215. package/dist/node/search/collectionState.js.map +0 -1
  216. package/dist/node/search/content-utils.js +0 -466
  217. package/dist/node/search/content-utils.js.map +0 -1
  218. package/dist/node/search/convertCatalog.js +0 -37
  219. package/dist/node/search/convertCatalog.js.map +0 -1
  220. package/dist/node/search/filter-utils.js +0 -36
  221. package/dist/node/search/filter-utils.js.map +0 -1
  222. package/dist/node/search/group-utils.js +0 -148
  223. package/dist/node/search/group-utils.js.map +0 -1
  224. package/dist/node/search/types/ICatalog.js.map +0 -1
  225. package/dist/node/search/types/ICollection.js.map +0 -1
  226. package/dist/node/search/types/IFacet.js +0 -3
  227. package/dist/node/search/types/IFacet.js.map +0 -1
  228. package/dist/node/search/types/IFacetOption.js +0 -3
  229. package/dist/node/search/types/IFacetOption.js.map +0 -1
  230. package/dist/node/search/types/IHubApiSearchRequest.js +0 -3
  231. package/dist/node/search/types/IHubApiSearchRequest.js.map +0 -1
  232. package/dist/node/search/user-utils.js +0 -145
  233. package/dist/node/search/user-utils.js.map +0 -1
  234. package/dist/types/search/_internal/state.d.ts +0 -70
  235. package/dist/types/search/_searchContent.d.ts +0 -9
  236. package/dist/types/search/_searchGroups.d.ts +0 -17
  237. package/dist/types/search/_searchUsers.d.ts +0 -31
  238. package/dist/types/search/collectionState.d.ts +0 -19
  239. package/dist/types/search/content-utils.d.ts +0 -83
  240. package/dist/types/search/convertCatalog.d.ts +0 -6
  241. package/dist/types/search/filter-utils.d.ts +0 -13
  242. package/dist/types/search/group-utils.d.ts +0 -36
  243. package/dist/types/search/types/ICatalog.d.ts +0 -87
  244. package/dist/types/search/types/ICollection.d.ts +0 -28
  245. package/dist/types/search/types/IFacet.d.ts +0 -62
  246. package/dist/types/search/types/IFacetOption.d.ts +0 -30
  247. package/dist/types/search/types/IHubApiSearchRequest.d.ts +0 -16
  248. package/dist/types/search/user-utils.d.ts +0 -35
@@ -1,87 +0,0 @@
1
- import { ICollection } from "./ICollection";
2
- import { IFacet } from "./IFacet";
3
- import { Filter, FilterType, IFilterGroup, ISortOption } from "./types";
4
- /**
5
- * Catalog is the definition which powers what options
6
- * are available in a Gallery. It controls not only
7
- * the scoping of the search, but also the options
8
- * available to the UX.
9
- *
10
- * Thus the lower-level `searchContent`, `searchUser`, `searchGroup` functions
11
- * do not take Catalogs, rather they accept [Filters](../Filter)
12
- *
13
- * ```ts
14
- * const simpleCatalog:Catalog = {
15
- * title: "Select Map",
16
- * filters: [
17
- * {
18
- * fitlerType: "item",
19
- * operation: "AND",
20
- * fitlers
21
- * filterType: "content",
22
- * type: "Web Map",
23
- * owner: "jsmith"
24
- * }
25
- * }
26
- * ```
27
- *
28
- * ## Collections
29
- * The key feature of a Catalog is the ability to defined [Collections](../Collection).
30
- * These are essentially sub-sets of content, typically organized around
31
- * generalized content types, i.e. "Datasets", vs "Maps", vs "Documents"
32
- *
33
- *
34
- * ```ts
35
- * const complex:Catalog = {
36
- * filter: {
37
- * type: "content",
38
- * groups: ["3ef", "bc4"]
39
- * },
40
- * collections: [
41
- * {
42
- * label: "Documents",
43
- * filter: {
44
- * filterType: "content",
45
- * type: ["Microsoft Word", "PDF", "Microsoft Excel"]
46
- * }
47
- * },
48
- * {
49
- * label: "Datasets",
50
- * filter: {
51
- * filterType: "content",
52
- * type: ["Feature Layer", "Feature Service", "Map Service", "CSV"]
53
- * }
54
- * }
55
- * ]
56
- * }
57
- * ```
58
- */
59
- export interface ICatalog {
60
- /**
61
- * Title for the Gallery
62
- */
63
- title?: string;
64
- /**
65
- * Scope is a set of FilterGroups which define the limits of the Catalog.
66
- * Typically it is just a set of group ids, but it may be arbitrarily complex.
67
- * If one was to "search a catalog", this is the description of what would be returned.
68
- */
69
- scope?: Array<IFilterGroup<FilterType>>;
70
- /**
71
- * Filter defines the "scope" of the Catalog, typically a set of groups or orgids
72
- * DEPRECATED: Use `scope`
73
- */
74
- filter?: Filter<FilterType>;
75
- /**
76
- * Sort options to be shown in the Gallery
77
- */
78
- sort?: ISortOption[];
79
- /**
80
- * Collections within the Catalog
81
- */
82
- collections?: ICollection[];
83
- /**
84
- * Facets to use with all Collections
85
- */
86
- facets?: IFacet[];
87
- }
@@ -1,28 +0,0 @@
1
- import { IFacet } from "./IFacet";
2
- import { Filter, FilterType, IFilterGroup, ISortOption } from "./types";
3
- /**
4
- * A Collection is a subset of a Catalog, but can be used independently
5
- * in Galleries
6
- */
7
- export interface ICollection {
8
- label: string;
9
- key: string;
10
- /**
11
- * Filter Type used in this collection
12
- */
13
- filterType?: FilterType;
14
- /**
15
- * Scope is a set of FilterGroups which define the limits of the Collection.
16
- * Typically it is just a set of group ids, but it may be arbitrarily complex.
17
- * If one was to "search the collection", this is the description of what would be returned.
18
- */
19
- scope?: Array<IFilterGroup<FilterType>>;
20
- /**
21
- * Specify the includes to be requested when working with this collection
22
- */
23
- include?: string[];
24
- sortOption: ISortOption;
25
- facets?: IFacet[];
26
- filter?: Filter<FilterType>;
27
- defaultQuery?: string;
28
- }
@@ -1,62 +0,0 @@
1
- import { IFacetOption } from "./IFacetOption";
2
- /**
3
- * Definition of a Facet shown in the Gallery UI.
4
- *
5
- * If a `field` is specified, the Facet will be "dynamic" in that
6
- * it will request aggregations for the field and use the returned
7
- * values to create the FacetOptions.
8
- *
9
- * `Facet` contains and array if `FacetOptions`. When selected
10
- * in the UI, a FilterGroup is constructed from the `Facet.operation`
11
- * and the `Filters` are from the selected `FacetOptions`.
12
- */
13
- export interface IFacet {
14
- /**
15
- * Translated label for the facet
16
- */
17
- label?: string;
18
- /**
19
- * Unique key, used for query params and telemetry
20
- */
21
- key?: string;
22
- /**
23
- * field to generate the facet from
24
- */
25
- field?: string;
26
- /**
27
- * limit of aggregates returned. Max 200
28
- */
29
- aggLimit?: number;
30
- /**
31
- * Display for this facet. Not all facets will be compatible with all displays
32
- */
33
- display?: "map" | "single-select" | "multi-select" | "date-range" | "histogram";
34
- /**
35
- * State of the Facet
36
- */
37
- state?: "open" | "closed";
38
- /**
39
- * Individual options for this Facet
40
- */
41
- options?: IFacetOption[];
42
- /**
43
- * Operation is passed into the FilterGroup that is constructed
44
- * when the Facet is serialized.
45
- * Implemetations should default to "OR" if not specified
46
- */
47
- operation?: "OR" | "AND";
48
- /**
49
- * Number of facet options to show by default. Only applies to `multi-select`, and defaults to all.
50
- */
51
- optionLimit?: number;
52
- /**
53
- * Specifies how to order the facet options. Only applies to `multi-select`, and defaults to count.
54
- * - count: orders by `option.count` in descending order of frequency
55
- * - label: orders by `option.label` in ascending alphabetical order
56
- */
57
- orderBy?: "count" | "label";
58
- accordionClosed?: boolean;
59
- type?: "single-select" | "multi-select" | "date-range" | "histogram";
60
- pageSize?: number;
61
- aggField?: string;
62
- }
@@ -1,30 +0,0 @@
1
- import { Filter, FilterType } from "./types";
2
- /**
3
- * Facet Option shown in the UI as either a radio button or checkbox
4
- */
5
- export interface IFacetOption {
6
- /**
7
- * Translated label for the option
8
- */
9
- label: string;
10
- /**
11
- * Unique key, used for query params and telemetry
12
- */
13
- key: string;
14
- /**
15
- * For aggregate based Facets, the count of entries in the index with this value
16
- */
17
- count?: number;
18
- /**
19
- * Is this option selected when the UI loads
20
- */
21
- selected: boolean;
22
- /**
23
- * Filters to be applied when this option is selected
24
- */
25
- filters?: Array<Filter<FilterType>>;
26
- /**
27
- * DEPRECATED: Filter to be applied when this option is selected
28
- */
29
- filter?: Filter<FilterType>;
30
- }
@@ -1,16 +0,0 @@
1
- import { Filter, IFilterGroup, FilterType } from "./types";
2
- import { IHubSearchOptions } from "./IHubSearchOptions";
3
- /**
4
- * Structure for making Hub API Search Requests
5
- */
6
- export interface IHubApiSearchRequest {
7
- /**
8
- * Can be a string like `term:"water"`, a single filter like `{ filterType: "item", term: "water" }`
9
- * or an array of IFilterGroups, which allows for complex queries.
10
- */
11
- q: string | Filter<FilterType> | Array<IFilterGroup<FilterType>>;
12
- /**
13
- * Search options like the number of results to return, sorting, aggregations etc
14
- */
15
- options: IHubSearchOptions;
16
- }
@@ -1,35 +0,0 @@
1
- import { ISearchOptions } from "@esri/arcgis-rest-portal";
2
- import { Filter, IUserFilterDefinition } from "..";
3
- /**
4
- *
5
- * Merge `Filter<"user">` objects
6
- *
7
- * Useful in components which may get partial filters from a variety of
8
- * sub-components, which are then combined into a single filter prior
9
- * to executing the search.
10
- * @param filters
11
- * @returns
12
- */
13
- export declare function mergeUserFilters(filters: Array<Filter<"user">>): Filter<"user">;
14
- /**
15
- * Prior to serialization into the query syntax for the backing APIs, we first expand [Filters](../Filter)
16
- *
17
- * Filter's can express their intent in a very terse form, but to ensure consistent structures
18
- * we expand them into their more verbose form.
19
- *
20
- * i.e. `firstname: "John"` expands into `firstname: { any: ["John"]}`
21
- *
22
- * - Fields defined as `string | string[] | MatchOptions` will be converted to a `MatchOptions`
23
- * - RelativeDate fields are converted to DateRange<number>
24
- * @param filter
25
- * @returns
26
- */
27
- export declare function expandUserFilter(filter: Filter<"user">): IUserFilterDefinition;
28
- /**
29
- * @private
30
- * Serialize an `IUserFilterDefinition` into an `ISearchOptions` for use
31
- * with `searchUsers`
32
- * @param filter
33
- * @returns
34
- */
35
- export declare function serializeUserFilterForPortal(filter: IUserFilterDefinition): ISearchOptions;