@esri/hub-common 10.0.0-next.1 → 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.
- package/dist/es2017/projects/HubProjects.js.map +1 -1
- package/dist/es2017/search/_internal/hubSearchItems.js +3 -94
- package/dist/es2017/search/_internal/hubSearchItems.js.map +1 -1
- package/dist/es2017/search/_internal/portalSearchItems.js +3 -25
- package/dist/es2017/search/_internal/portalSearchItems.js.map +1 -1
- package/dist/es2017/search/index.js +0 -7
- package/dist/es2017/search/index.js.map +1 -1
- package/dist/es2017/search/types/index.js +0 -3
- package/dist/es2017/search/types/index.js.map +1 -1
- package/dist/es2017/search/utils.js +1 -207
- package/dist/es2017/search/utils.js.map +1 -1
- package/dist/esm/projects/HubProjects.js.map +1 -1
- package/dist/esm/search/_internal/hubSearchItems.js +4 -102
- package/dist/esm/search/_internal/hubSearchItems.js.map +1 -1
- package/dist/esm/search/_internal/portalSearchItems.js +3 -25
- package/dist/esm/search/_internal/portalSearchItems.js.map +1 -1
- package/dist/esm/search/index.js +0 -7
- package/dist/esm/search/index.js.map +1 -1
- package/dist/esm/search/types/index.js +0 -3
- package/dist/esm/search/types/index.js.map +1 -1
- package/dist/esm/search/utils.js +1 -204
- package/dist/esm/search/utils.js.map +1 -1
- package/dist/node/projects/HubProjects.js.map +1 -1
- package/dist/node/search/_internal/hubSearchItems.js +3 -94
- package/dist/node/search/_internal/hubSearchItems.js.map +1 -1
- package/dist/node/search/_internal/portalSearchItems.js +4 -26
- package/dist/node/search/_internal/portalSearchItems.js.map +1 -1
- package/dist/node/search/index.js +0 -7
- package/dist/node/search/index.js.map +1 -1
- package/dist/node/search/types/index.js +0 -3
- package/dist/node/search/types/index.js.map +1 -1
- package/dist/node/search/utils.js +1 -213
- package/dist/node/search/utils.js.map +1 -1
- package/dist/types/search/_internal/hubSearchItems.d.ts +3 -3
- package/dist/types/search/_internal/portalSearchItems.d.ts +15 -15
- package/dist/types/search/index.d.ts +0 -7
- package/dist/types/search/types/index.d.ts +0 -3
- package/dist/types/search/types/types.d.ts +0 -204
- package/dist/types/search/utils.d.ts +2 -58
- package/dist/umd/common.umd.js +101 -1459
- package/dist/umd/common.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/es2017/search/_searchContent.js +0 -112
- package/dist/es2017/search/_searchContent.js.map +0 -1
- package/dist/es2017/search/_searchGroups.js +0 -88
- package/dist/es2017/search/_searchGroups.js.map +0 -1
- package/dist/es2017/search/_searchUsers.js +0 -89
- package/dist/es2017/search/_searchUsers.js.map +0 -1
- package/dist/es2017/search/content-utils.js +0 -390
- package/dist/es2017/search/content-utils.js.map +0 -1
- package/dist/es2017/search/filter-utils.js +0 -31
- package/dist/es2017/search/filter-utils.js.map +0 -1
- package/dist/es2017/search/group-utils.js +0 -142
- package/dist/es2017/search/group-utils.js.map +0 -1
- package/dist/es2017/search/types/ICatalog.js +0 -1
- package/dist/es2017/search/types/ICatalog.js.map +0 -1
- package/dist/es2017/search/types/ICollection.js +0 -1
- package/dist/es2017/search/types/ICollection.js.map +0 -1
- package/dist/es2017/search/types/IHubApiSearchRequest.js +0 -1
- package/dist/es2017/search/types/IHubApiSearchRequest.js.map +0 -1
- package/dist/es2017/search/user-utils.js +0 -139
- package/dist/es2017/search/user-utils.js.map +0 -1
- package/dist/esm/search/_searchContent.js +0 -114
- package/dist/esm/search/_searchContent.js.map +0 -1
- package/dist/esm/search/_searchGroups.js +0 -91
- package/dist/esm/search/_searchGroups.js.map +0 -1
- package/dist/esm/search/_searchUsers.js +0 -92
- package/dist/esm/search/_searchUsers.js.map +0 -1
- package/dist/esm/search/content-utils.js +0 -394
- package/dist/esm/search/content-utils.js.map +0 -1
- package/dist/esm/search/filter-utils.js +0 -31
- package/dist/esm/search/filter-utils.js.map +0 -1
- package/dist/esm/search/group-utils.js +0 -146
- package/dist/esm/search/group-utils.js.map +0 -1
- package/dist/esm/search/types/ICatalog.js +0 -1
- package/dist/esm/search/types/ICatalog.js.map +0 -1
- package/dist/esm/search/types/ICollection.js +0 -1
- package/dist/esm/search/types/ICollection.js.map +0 -1
- package/dist/esm/search/types/IHubApiSearchRequest.js +0 -1
- package/dist/esm/search/types/IHubApiSearchRequest.js.map +0 -1
- package/dist/esm/search/user-utils.js +0 -143
- package/dist/esm/search/user-utils.js.map +0 -1
- package/dist/node/search/_searchContent.js +0 -116
- package/dist/node/search/_searchContent.js.map +0 -1
- package/dist/node/search/_searchGroups.js +0 -92
- package/dist/node/search/_searchGroups.js.map +0 -1
- package/dist/node/search/_searchUsers.js +0 -93
- package/dist/node/search/_searchUsers.js.map +0 -1
- package/dist/node/search/content-utils.js +0 -399
- package/dist/node/search/content-utils.js.map +0 -1
- package/dist/node/search/filter-utils.js +0 -36
- package/dist/node/search/filter-utils.js.map +0 -1
- package/dist/node/search/group-utils.js +0 -148
- package/dist/node/search/group-utils.js.map +0 -1
- package/dist/node/search/types/ICatalog.js +0 -3
- package/dist/node/search/types/ICatalog.js.map +0 -1
- package/dist/node/search/types/ICollection.js +0 -3
- package/dist/node/search/types/ICollection.js.map +0 -1
- package/dist/node/search/types/IHubApiSearchRequest.js +0 -3
- package/dist/node/search/types/IHubApiSearchRequest.js.map +0 -1
- package/dist/node/search/user-utils.js +0 -145
- package/dist/node/search/user-utils.js.map +0 -1
- package/dist/types/search/_searchContent.d.ts +0 -9
- package/dist/types/search/_searchGroups.d.ts +0 -13
- package/dist/types/search/_searchUsers.d.ts +0 -31
- package/dist/types/search/content-utils.d.ts +0 -66
- package/dist/types/search/filter-utils.d.ts +0 -13
- package/dist/types/search/group-utils.d.ts +0 -36
- package/dist/types/search/types/ICatalog.d.ts +0 -82
- package/dist/types/search/types/ICollection.d.ts +0 -26
- package/dist/types/search/types/IHubApiSearchRequest.d.ts +0 -16
- package/dist/types/search/user-utils.d.ts +0 -35
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
export * from "./hub-api-search";
|
|
2
|
-
export * from "./content-utils";
|
|
3
|
-
export * from "./group-utils";
|
|
4
|
-
export * from "./user-utils";
|
|
5
2
|
export * from "./utils";
|
|
6
|
-
export * from "./_searchContent";
|
|
7
|
-
export * from "./_searchGroups";
|
|
8
|
-
export * from "./_searchUsers";
|
|
9
3
|
export * from "./types";
|
|
10
4
|
export * from "./upgradeCatalogSchema";
|
|
11
|
-
export * from "./filter-utils";
|
|
12
5
|
export * from "./serializeQueryForPortal";
|
|
13
6
|
export * from "./hubSearch";
|
|
14
7
|
export * from "./Catalog";
|
|
@@ -1,178 +1,3 @@
|
|
|
1
|
-
import { UserSession } from "@esri/arcgis-rest-auth";
|
|
2
|
-
import { IHubContent, AccessLevel } from "../..";
|
|
3
|
-
/**
|
|
4
|
-
* Generic filter used with various search functions.
|
|
5
|
-
*
|
|
6
|
-
* `Filter<T extends FilterType>` [FilterType](../FilterType) is constrained to
|
|
7
|
-
*
|
|
8
|
-
* - `Filter<"item">` [IContentFilterDefinition](../IContentFilterDefinition)
|
|
9
|
-
* - `Filter<"user">` [IUserFilterDefinition](../IUserFilterDefinition)
|
|
10
|
-
* - `Filter<"group">` [IGroupFilterDefinition](../IGroupFilterDefinition)
|
|
11
|
-
*
|
|
12
|
-
* When constructing a Filter as json, the `filterType` must be specified,
|
|
13
|
-
* and it must be `keyof` [FilterTypeMap](../FilterTypeMap)
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* const f:Filter<"item"> = {
|
|
17
|
-
* filterType: "item" // must match the FilterType
|
|
18
|
-
* term: "water"
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare type Filter<T extends FilterType> = IFilterTypeMap[T] & {
|
|
23
|
-
filterType: T;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Groups of filters with an operation specifying how the
|
|
27
|
-
* filters should be connected when serialized
|
|
28
|
-
*/
|
|
29
|
-
export interface IFilterGroup<T extends FilterType> {
|
|
30
|
-
filterType: T;
|
|
31
|
-
operation?: "AND" | "OR";
|
|
32
|
-
filters: Array<Filter<T>>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Defines the valid FilterTypes for use with `Filter<T extends FilterType>`
|
|
36
|
-
* See [Filter](../Filter)
|
|
37
|
-
*/
|
|
38
|
-
export interface IFilterTypeMap {
|
|
39
|
-
item: IItemFilter;
|
|
40
|
-
user: IUserFilterDefinition;
|
|
41
|
-
group: IGroupFilterDefinition;
|
|
42
|
-
groupMember: IGroupMemberFilterDefinition;
|
|
43
|
-
event: IEventFilterDefinition;
|
|
44
|
-
/**
|
|
45
|
-
* DEPRECATED use item
|
|
46
|
-
* // TODO: Remove with _searchContent
|
|
47
|
-
*/
|
|
48
|
-
content: IContentFilterDefinition;
|
|
49
|
-
}
|
|
50
|
-
export declare type FilterType = keyof IFilterTypeMap;
|
|
51
|
-
export interface IItemFilter {
|
|
52
|
-
access?: AccessLevel | AccessLevel[] | IMatchOptions;
|
|
53
|
-
owner?: string | string[] | IMatchOptions;
|
|
54
|
-
tags?: string | string[] | IMatchOptions;
|
|
55
|
-
categories?: string | string[] | IMatchOptions;
|
|
56
|
-
created?: IDateRange<number> | IRelativeDate;
|
|
57
|
-
description?: string | string[] | IMatchOptions;
|
|
58
|
-
snippet?: string | string[] | IMatchOptions;
|
|
59
|
-
group?: string | string[] | IMatchOptions;
|
|
60
|
-
id?: string | string[] | IMatchOptions;
|
|
61
|
-
modified?: IDateRange<number> | IRelativeDate;
|
|
62
|
-
orgid?: string | string[] | IMatchOptions;
|
|
63
|
-
term?: string;
|
|
64
|
-
title?: string | string[] | IMatchOptions;
|
|
65
|
-
type?: string | string[] | IMatchOptions;
|
|
66
|
-
typekeywords?: string | string[] | IMatchOptions;
|
|
67
|
-
[key: string]: any;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Fields related to Content based searches
|
|
71
|
-
* // TODO: Remove with _searchContent
|
|
72
|
-
*/
|
|
73
|
-
export interface IContentFilterDefinition {
|
|
74
|
-
access?: string | string[] | IMatchOptions;
|
|
75
|
-
owner?: string | string[] | IMatchOptions;
|
|
76
|
-
tags?: string | string[] | IMatchOptions;
|
|
77
|
-
categories?: string | string[] | IMatchOptions;
|
|
78
|
-
created?: IDateRange<number> | IRelativeDate;
|
|
79
|
-
description?: string | string[] | IMatchOptions;
|
|
80
|
-
snippet?: string | string[] | IMatchOptions;
|
|
81
|
-
group?: string | string[] | IMatchOptions;
|
|
82
|
-
id?: string | string[] | IMatchOptions;
|
|
83
|
-
modified?: IDateRange<number> | IRelativeDate;
|
|
84
|
-
orgid?: string | string[] | IMatchOptions;
|
|
85
|
-
term?: string;
|
|
86
|
-
title?: string | string[] | IMatchOptions;
|
|
87
|
-
type?: string | NamedContentFilter | Array<string | NamedContentFilter> | IMatchOptions;
|
|
88
|
-
typekeywords?: string | string[] | IMatchOptions;
|
|
89
|
-
[key: string]: any;
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* Support for complex OR queries; Used with various expansions
|
|
93
|
-
*/
|
|
94
|
-
subFilters?: Array<IContentFilterDefinition | NamedContentFilter>;
|
|
95
|
-
}
|
|
96
|
-
export interface IContentFilter {
|
|
97
|
-
access?: IMatchOptions;
|
|
98
|
-
created?: IDateRange<number>;
|
|
99
|
-
description?: IMatchOptions;
|
|
100
|
-
group?: IMatchOptions;
|
|
101
|
-
id?: IMatchOptions;
|
|
102
|
-
modified?: IDateRange<number>;
|
|
103
|
-
orgid?: IMatchOptions;
|
|
104
|
-
owner?: IMatchOptions;
|
|
105
|
-
tags?: IMatchOptions;
|
|
106
|
-
term?: string;
|
|
107
|
-
title?: IMatchOptions;
|
|
108
|
-
type?: IMatchOptions;
|
|
109
|
-
typekeywords?: IMatchOptions;
|
|
110
|
-
[key: string]: any;
|
|
111
|
-
subFilters?: IContentFilter[];
|
|
112
|
-
}
|
|
113
|
-
export interface IWellKnownContentFilters {
|
|
114
|
-
$apps: IContentFilterDefinition[];
|
|
115
|
-
$dashboard: IContentFilterDefinition[];
|
|
116
|
-
$dataset: IContentFilterDefinition[];
|
|
117
|
-
$experience: IContentFilterDefinition[];
|
|
118
|
-
$site: IContentFilterDefinition[];
|
|
119
|
-
$storymap: IContentFilterDefinition[];
|
|
120
|
-
$initiative: IContentFilterDefinition[];
|
|
121
|
-
$document: IContentFilterDefinition[];
|
|
122
|
-
}
|
|
123
|
-
export declare type NamedContentFilter = keyof IWellKnownContentFilters;
|
|
124
|
-
export interface IUserFilterDefinition {
|
|
125
|
-
created?: IDateRange<number> | IRelativeDate;
|
|
126
|
-
disabled?: boolean;
|
|
127
|
-
email?: string | string[] | IMatchOptions;
|
|
128
|
-
firstname?: string | string[] | IMatchOptions;
|
|
129
|
-
fullname?: string | string[] | IMatchOptions;
|
|
130
|
-
group?: string | string[] | IMatchOptions;
|
|
131
|
-
lastlogin?: IDateRange<number> | IRelativeDate;
|
|
132
|
-
lastname?: string | string[] | IMatchOptions;
|
|
133
|
-
modified?: IDateRange<number> | IRelativeDate;
|
|
134
|
-
role?: string | string[] | IMatchOptions;
|
|
135
|
-
term?: string;
|
|
136
|
-
userlicensetype?: string | string[] | IMatchOptions;
|
|
137
|
-
username?: string | string[] | IMatchOptions;
|
|
138
|
-
emailstatus?: string | string[] | IMatchOptions;
|
|
139
|
-
provider?: string | string[] | IMatchOptions;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* These properties must all be passed through
|
|
143
|
-
* so they are sent in separate fields and *not*
|
|
144
|
-
* serialized into a q
|
|
145
|
-
* Also `joined` does not take the same format as
|
|
146
|
-
* dates in `q`
|
|
147
|
-
*/
|
|
148
|
-
export interface IGroupMemberFilterDefinition {
|
|
149
|
-
memberType?: "admin" | "member";
|
|
150
|
-
joined?: IDateRange<number> | IRelativeDate;
|
|
151
|
-
name?: string | string[] | IMatchOptions;
|
|
152
|
-
orgIds?: string | string[] | IMatchOptions;
|
|
153
|
-
}
|
|
154
|
-
export interface IGroupFilterDefinition {
|
|
155
|
-
access?: string | string[] | IMatchOptions;
|
|
156
|
-
created?: IDateRange<number> | IRelativeDate;
|
|
157
|
-
id?: string | string[] | IMatchOptions;
|
|
158
|
-
isInvitationOnly?: boolean;
|
|
159
|
-
modified?: IDateRange<number> | IRelativeDate;
|
|
160
|
-
orgid?: string | string[] | IMatchOptions;
|
|
161
|
-
owner?: string | string[] | IMatchOptions;
|
|
162
|
-
searchUserAccess?: "groupMember";
|
|
163
|
-
searchUserName?: string;
|
|
164
|
-
tags?: string | string[] | IMatchOptions;
|
|
165
|
-
term?: string;
|
|
166
|
-
title?: string | string[] | IMatchOptions;
|
|
167
|
-
typekeywords?: string | string[] | IMatchOptions;
|
|
168
|
-
isopendata?: boolean;
|
|
169
|
-
}
|
|
170
|
-
export interface IEventFilterDefinition {
|
|
171
|
-
created?: IDateRange<number> | IRelativeDate;
|
|
172
|
-
modified?: IDateRange<number> | IRelativeDate;
|
|
173
|
-
orgid?: string | string[] | IMatchOptions;
|
|
174
|
-
title?: string | string[] | IMatchOptions;
|
|
175
|
-
}
|
|
176
1
|
/**
|
|
177
2
|
* Sort Option to be displayed in a UI
|
|
178
3
|
*/
|
|
@@ -227,16 +52,6 @@ export interface IMatchOptions {
|
|
|
227
52
|
*/
|
|
228
53
|
exact?: string | string[];
|
|
229
54
|
}
|
|
230
|
-
/**
|
|
231
|
-
* searchContent return
|
|
232
|
-
* // TODO: Remove with _searchContent
|
|
233
|
-
*/
|
|
234
|
-
export interface IContentSearchResult {
|
|
235
|
-
total: number;
|
|
236
|
-
results: IHubContent[];
|
|
237
|
-
hasNext: boolean;
|
|
238
|
-
next: (params?: any) => Promise<IContentSearchResult>;
|
|
239
|
-
}
|
|
240
55
|
export interface IWellKnownApis {
|
|
241
56
|
arcgis: IApiDefinition;
|
|
242
57
|
arcgisQA: IApiDefinition;
|
|
@@ -250,23 +65,4 @@ export interface IApiDefinition {
|
|
|
250
65
|
label?: string;
|
|
251
66
|
url: string;
|
|
252
67
|
type: "arcgis" | "arcgis-hub";
|
|
253
|
-
authentication?: UserSession;
|
|
254
|
-
}
|
|
255
|
-
export interface IFacetState {
|
|
256
|
-
[key: string]: string;
|
|
257
|
-
}
|
|
258
|
-
export interface ICollectionState {
|
|
259
|
-
query?: string;
|
|
260
|
-
sort?: string;
|
|
261
|
-
[key: string]: string;
|
|
262
|
-
}
|
|
263
|
-
export interface ICatalogState {
|
|
264
|
-
collection: string;
|
|
265
|
-
collectionState?: ICollectionState;
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Generic key/value type for storing component state
|
|
269
|
-
*/
|
|
270
|
-
export interface IComponentState {
|
|
271
|
-
[key: string]: string;
|
|
272
68
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUser } from "@esri/arcgis-rest-auth";
|
|
1
|
+
import { IUser, UserSession } from "@esri/arcgis-rest-auth";
|
|
2
2
|
import { IGroup, ISearchOptions } from "@esri/arcgis-rest-portal";
|
|
3
3
|
import { ISearchResponse } from "../types";
|
|
4
4
|
import { IMatchOptions, IDateRange, IRelativeDate, IWellKnownApis, IApiDefinition, NamedApis } from "./types/types";
|
|
@@ -22,25 +22,6 @@ export declare function expandApis(apis: Array<NamedApis | IApiDefinition>): IAp
|
|
|
22
22
|
* @returns
|
|
23
23
|
*/
|
|
24
24
|
export declare function expandApi(api: NamedApis | IApiDefinition): IApiDefinition;
|
|
25
|
-
/**
|
|
26
|
-
* @private
|
|
27
|
-
* Merge two date ranges by taking the longest span
|
|
28
|
-
* @param dr1
|
|
29
|
-
* @param dr2
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
export declare function mergeDateRange(dr1: IDateRange<number>, dr2: IDateRange<number>): IDateRange<number>;
|
|
33
|
-
/**
|
|
34
|
-
* @private
|
|
35
|
-
* Merge two [`MatchOptions`](../MatchOptions)
|
|
36
|
-
*
|
|
37
|
-
* Currently a naieve implementation where the arrays are simply merged
|
|
38
|
-
*
|
|
39
|
-
* @param mo1
|
|
40
|
-
* @param mo2
|
|
41
|
-
* @returns
|
|
42
|
-
*/
|
|
43
|
-
export declare function mergeMatchOptions(mo1: IMatchOptions, mo2: IMatchOptions): IMatchOptions;
|
|
44
25
|
/**
|
|
45
26
|
* @private
|
|
46
27
|
* Convert a field value into a MatchOptions if it's not already one
|
|
@@ -55,43 +36,6 @@ export declare function valueToMatchOptions(value: string | string[] | IMatchOpt
|
|
|
55
36
|
* @returns
|
|
56
37
|
*/
|
|
57
38
|
export declare function relativeDateToDateRange(relative: IRelativeDate): IDateRange<number>;
|
|
58
|
-
/**
|
|
59
|
-
* @private
|
|
60
|
-
* As a final `ISearchOptions` object gets created, many such objects are created, and
|
|
61
|
-
* need to be systematically "merged" so as to return consistently structured `q` and `filter`
|
|
62
|
-
* values.
|
|
63
|
-
* @param so1
|
|
64
|
-
* @param so2
|
|
65
|
-
* @param join
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
export declare function mergeSearchOptions(so1: ISearchOptions, so2: ISearchOptions, join: "AND" | "OR"): ISearchOptions;
|
|
69
|
-
/**
|
|
70
|
-
* @private
|
|
71
|
-
* Serialize a `MatchOptions` into `q` or `filter` on an `ISearchOptions`
|
|
72
|
-
* DEPRECATED: Serialization should be handled in filter-utils.ts
|
|
73
|
-
* @param key
|
|
74
|
-
* @param opts
|
|
75
|
-
* @returns
|
|
76
|
-
*/
|
|
77
|
-
export declare function serializeMatchOptions(key: string, opts: IMatchOptions): ISearchOptions;
|
|
78
|
-
/**
|
|
79
|
-
* @private
|
|
80
|
-
* Serialize a DateRange<number> into a Portal Query string
|
|
81
|
-
* @param key
|
|
82
|
-
* @param range
|
|
83
|
-
* @returns
|
|
84
|
-
*/
|
|
85
|
-
export declare function serializeDateRange(key: string, range: IDateRange<number>): ISearchOptions;
|
|
86
|
-
/**
|
|
87
|
-
* @private
|
|
88
|
-
* Serialize a `string` or `string[]` into a string
|
|
89
|
-
* @param join
|
|
90
|
-
* @param key
|
|
91
|
-
* @param value
|
|
92
|
-
* @returns
|
|
93
|
-
*/
|
|
94
|
-
export declare function serializeStringOrArray(join: "AND" | "OR", key: string, value: string | string[]): string;
|
|
95
39
|
/**
|
|
96
40
|
* Create a `.next()` function for a type
|
|
97
41
|
* @param request
|
|
@@ -100,7 +44,7 @@ export declare function serializeStringOrArray(join: "AND" | "OR", key: string,
|
|
|
100
44
|
* @param fn
|
|
101
45
|
* @returns
|
|
102
46
|
*/
|
|
103
|
-
export declare function getNextFunction<T>(request: ISearchOptions, nextStart: number, total: number, fn: (r: any) => Promise<ISearchResponse<T>>): () => Promise<ISearchResponse<T>>;
|
|
47
|
+
export declare function getNextFunction<T>(request: ISearchOptions, nextStart: number, total: number, fn: (r: any) => Promise<ISearchResponse<T>>): (authentication?: UserSession) => Promise<ISearchResponse<T>>;
|
|
104
48
|
/**
|
|
105
49
|
* Construct a the full url to a group thumbnail
|
|
106
50
|
*
|