@nextgis/ngw-connector 3.0.0-alpha.4 → 3.0.0-alpha.5
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/lib/global.d.ts +3869 -0
- package/lib/index.d.ts +1559 -1059
- package/lib/ngw-connector.cjs.js +943 -595
- package/lib/ngw-connector.cjs.js.map +1 -1
- package/lib/ngw-connector.cjs.prod.js +1 -1
- package/lib/ngw-connector.cjs.prod.js.map +1 -1
- package/lib/ngw-connector.esm-browser.js +1264 -809
- package/lib/ngw-connector.esm-browser.js.map +1 -1
- package/lib/ngw-connector.esm-browser.prod.js +1 -1
- package/lib/ngw-connector.esm-browser.prod.js.map +1 -1
- package/lib/ngw-connector.esm-bundler.js +1102 -647
- package/lib/ngw-connector.esm-bundler.js.map +1 -1
- package/lib/ngw-connector.esm-bundler.prod.js +1 -1
- package/lib/ngw-connector.esm-bundler.prod.js.map +1 -1
- package/lib/ngw-connector.global.js +1264 -809
- package/lib/ngw-connector.global.js.map +1 -1
- package/lib/ngw-connector.global.prod.js +1 -1
- package/lib/ngw-connector.global.prod.js.map +1 -1
- package/package.json +9 -6
package/lib/index.d.ts
CHANGED
|
@@ -1,1234 +1,1734 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
/// <reference types="./global.d.ts" />
|
|
2
|
+
|
|
3
|
+
import type Cache from '@nextgis/cache';
|
|
4
|
+
import type { DeepPartial, FeatureProperties } from '@nextgis/utils';
|
|
5
|
+
import type { Routes } from '@nextgisweb/pyramid/type/route';
|
|
6
|
+
import type { EventEmitter } from 'events';
|
|
7
|
+
import type { GeoJsonObject, Geometry } from 'geojson';
|
|
8
|
+
|
|
9
|
+
declare class LunkwillParam {
|
|
10
|
+
static VALUES: (string | null)[];
|
|
11
|
+
private value;
|
|
12
|
+
constructor();
|
|
13
|
+
update(value: string | null, cond?: boolean): void;
|
|
14
|
+
suggest(cond?: boolean): void;
|
|
15
|
+
require(cond?: boolean): void;
|
|
16
|
+
toHeaders(headers: Record<string, string>): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type RouteParameters = {
|
|
20
|
+
[K in keyof Routes]: Routes[K]['pathArr'] | [Routes[K]['pathObj']];
|
|
21
|
+
};
|
|
22
|
+
type RouteName = keyof Routes;
|
|
23
|
+
type RequestMethod = keyof RouteMethods<RouteName>;
|
|
24
|
+
type Method = RequestMethod | Uppercase<RequestMethod>;
|
|
25
|
+
type ResponseType = 'blob' | 'json';
|
|
26
|
+
interface RequestOptions$1<
|
|
27
|
+
RT extends ResponseType = 'json',
|
|
28
|
+
ReturnUrl extends boolean = false,
|
|
29
|
+
Q = any,
|
|
30
|
+
B = string | null | boolean | Record<string, any> | any[],
|
|
31
|
+
> extends Omit<RequestInit, 'cache'> {
|
|
32
|
+
headers?: Record<string, string>;
|
|
33
|
+
cache?: boolean;
|
|
34
|
+
query?: Q;
|
|
35
|
+
json?: B;
|
|
36
|
+
/** Has lower priority than the json */
|
|
37
|
+
body?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The type of data that the server will respond with.
|
|
40
|
+
* Can be either 'json' or 'blob'.
|
|
41
|
+
*/
|
|
42
|
+
responseType?: RT;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated use {@link RequestInit.credential}
|
|
45
|
+
* Indicates whether to include credentials such as cookies, authentication headers,
|
|
46
|
+
* or TLS client certificates in cross-site Access-Control requests.
|
|
47
|
+
*/
|
|
48
|
+
withCredentials?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Name to use for caching the request.
|
|
51
|
+
*/
|
|
52
|
+
cacheName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Properties to override default cache behavior.
|
|
55
|
+
*/
|
|
56
|
+
cacheProps?: Record<string, unknown>;
|
|
57
|
+
lunkwill?: LunkwillParam;
|
|
58
|
+
lunkwillReturnUrl?: ReturnUrl;
|
|
59
|
+
}
|
|
60
|
+
interface GetRequestOptions<
|
|
61
|
+
Q = any,
|
|
62
|
+
RT extends ResponseType = 'json',
|
|
63
|
+
ReturnUrl extends boolean = false,
|
|
64
|
+
> extends Omit<RequestOptions$1<RT, ReturnUrl, Q>, 'json' | 'body'> {
|
|
65
|
+
method?: 'GET';
|
|
66
|
+
}
|
|
67
|
+
interface RequestOptionsJSON<
|
|
68
|
+
Q = any,
|
|
69
|
+
B = string | null | boolean | Record<string, any> | any[],
|
|
70
|
+
RT extends ResponseType = 'json',
|
|
71
|
+
M extends Method = Method,
|
|
72
|
+
> extends Omit<RequestOptions$1<RT, false, Q, B>, 'json' | 'body'> {
|
|
73
|
+
json: B;
|
|
74
|
+
method?: M;
|
|
75
|
+
}
|
|
76
|
+
interface RequestOptionsBody<
|
|
77
|
+
Q = any,
|
|
78
|
+
RT extends ResponseType = 'json',
|
|
79
|
+
M extends Method = Method,
|
|
80
|
+
> extends Omit<RequestOptions$1<RT, false, Q>, 'json' | 'body'> {
|
|
81
|
+
body: string;
|
|
82
|
+
method?: M;
|
|
83
|
+
}
|
|
84
|
+
type PutRequestOptions<Q = any, B = any, RT extends ResponseType = 'json'> =
|
|
85
|
+
| RequestOptionsJSON<Q, B, RT, 'PUT'>
|
|
86
|
+
| RequestOptionsBody<Q, RT, 'PUT'>;
|
|
87
|
+
type PostRequestOptions<Q = any, B = any, RT extends ResponseType = 'json'> =
|
|
88
|
+
| RequestOptionsJSON<Q, B, RT, 'POST'>
|
|
89
|
+
| RequestOptionsBody<Q, RT, 'POST'>;
|
|
90
|
+
type PatchRequestOptions<Q = any, B = any, RT extends ResponseType = 'json'> =
|
|
91
|
+
| RequestOptionsJSON<Q, B, RT, 'PATCH'>
|
|
92
|
+
| RequestOptionsBody<Q, RT, 'PATCH'>;
|
|
93
|
+
type DeleteRequestOptions<
|
|
94
|
+
Q = any,
|
|
95
|
+
RT extends ResponseType = 'json',
|
|
96
|
+
> = RequestOptions$1<RT, false, Q>;
|
|
97
|
+
interface RouteRequestOptions<
|
|
98
|
+
Q = any,
|
|
99
|
+
B = any,
|
|
100
|
+
RT extends ResponseType = 'json',
|
|
101
|
+
ReturnUrl extends boolean = false,
|
|
102
|
+
> {
|
|
103
|
+
get: GetRequestOptions<Q, RT, ReturnUrl>;
|
|
104
|
+
post: PostRequestOptions<Q, B, RT>;
|
|
105
|
+
put: PutRequestOptions<Q, B, RT>;
|
|
106
|
+
patch: PatchRequestOptions<Q, RT>;
|
|
107
|
+
delete: DeleteRequestOptions<Q, RT>;
|
|
108
|
+
}
|
|
109
|
+
type RequestOptionsByMethod<
|
|
110
|
+
M extends RequestMethod,
|
|
111
|
+
Q = any,
|
|
112
|
+
B = any,
|
|
113
|
+
RT extends ResponseType = 'json',
|
|
114
|
+
ReturnUrl extends boolean = false,
|
|
115
|
+
> = M extends keyof RouteRequestOptions
|
|
116
|
+
? RouteRequestOptions<Q, B, RT, ReturnUrl>[M]
|
|
117
|
+
: never;
|
|
118
|
+
type RouteResp<
|
|
119
|
+
N extends RouteName,
|
|
120
|
+
M extends RequestMethod,
|
|
121
|
+
> = N extends keyof Routes
|
|
122
|
+
? M extends keyof Routes[N]
|
|
123
|
+
? 'response' extends keyof Routes[N][M]
|
|
124
|
+
? Routes[N][M]['response']
|
|
125
|
+
: never
|
|
126
|
+
: never
|
|
127
|
+
: never;
|
|
128
|
+
type RouteQuery<
|
|
129
|
+
N extends RouteName,
|
|
130
|
+
M extends RequestMethod,
|
|
131
|
+
> = N extends keyof Routes
|
|
132
|
+
? M extends keyof Routes[N]
|
|
133
|
+
? 'query' extends keyof Routes[N][M]
|
|
134
|
+
? Routes[N][M]['query']
|
|
135
|
+
: any
|
|
136
|
+
: never
|
|
137
|
+
: never;
|
|
138
|
+
type RouteBody<
|
|
139
|
+
N extends RouteName,
|
|
140
|
+
M extends RequestMethod,
|
|
141
|
+
> = N extends keyof Routes
|
|
142
|
+
? M extends keyof Routes[N]
|
|
143
|
+
? 'body' extends keyof Routes[N][M]
|
|
144
|
+
? Routes[N][M]['body']
|
|
145
|
+
: any
|
|
146
|
+
: never
|
|
147
|
+
: never;
|
|
148
|
+
type ToReturn<
|
|
149
|
+
T = unknown,
|
|
150
|
+
RT extends ResponseType = 'json',
|
|
151
|
+
ReturnUrl extends boolean = false,
|
|
152
|
+
> = ReturnUrl extends true ? string : RT extends 'blob' ? Blob : T;
|
|
153
|
+
type HasRequiredKeys<T> = {
|
|
154
|
+
[P in keyof T]-?: object extends Pick<T, P> ? never : P;
|
|
155
|
+
}[keyof T] extends never
|
|
156
|
+
? false
|
|
157
|
+
: true;
|
|
158
|
+
interface RouteMethods<N extends RouteName> {
|
|
159
|
+
url: HasRequiredKeys<RouteQuery<N, 'get'>> extends true
|
|
160
|
+
? (
|
|
161
|
+
options: Pick<
|
|
162
|
+
RequestOptionsByMethod<'get', RouteQuery<N, 'get'>>,
|
|
163
|
+
'query'
|
|
164
|
+
>,
|
|
165
|
+
) => Promise<string>
|
|
166
|
+
: (
|
|
167
|
+
options?: Pick<
|
|
168
|
+
RequestOptionsByMethod<'get', RouteQuery<N, 'get'>>,
|
|
169
|
+
'query'
|
|
170
|
+
>,
|
|
171
|
+
) => Promise<string>;
|
|
172
|
+
get: HasRequiredKeys<RouteQuery<N, 'get'>> extends true
|
|
173
|
+
? <
|
|
174
|
+
T = RouteResp<N, 'get'>,
|
|
175
|
+
RT extends ResponseType = 'json',
|
|
176
|
+
B extends boolean = false,
|
|
177
|
+
>(
|
|
178
|
+
options: RequestOptionsByMethod<
|
|
179
|
+
'get',
|
|
180
|
+
RouteQuery<N, 'get'>,
|
|
181
|
+
any,
|
|
182
|
+
RT,
|
|
183
|
+
B
|
|
184
|
+
>,
|
|
185
|
+
) => Promise<ToReturn<T, RT, B>>
|
|
186
|
+
: <
|
|
187
|
+
T = RouteResp<N, 'get'>,
|
|
188
|
+
B extends boolean = false,
|
|
189
|
+
RT extends ResponseType = 'json',
|
|
190
|
+
>(
|
|
191
|
+
options?: RequestOptionsByMethod<
|
|
192
|
+
'get',
|
|
193
|
+
RouteQuery<N, 'get'>,
|
|
194
|
+
any,
|
|
195
|
+
RT,
|
|
196
|
+
B
|
|
197
|
+
>,
|
|
198
|
+
) => Promise<ToReturn<T, RT, B>>;
|
|
199
|
+
post: <T = RouteResp<N, 'post'>, RT extends ResponseType = 'json'>(
|
|
200
|
+
options: RequestOptionsByMethod<
|
|
201
|
+
'post',
|
|
202
|
+
RouteQuery<N, 'post'>,
|
|
203
|
+
RouteBody<N, 'post'>,
|
|
204
|
+
RT
|
|
205
|
+
>,
|
|
206
|
+
) => Promise<ToReturn<T, RT>>;
|
|
207
|
+
put: <T = RouteResp<N, 'put'>, RT extends ResponseType = 'json'>(
|
|
208
|
+
options: RequestOptionsByMethod<
|
|
209
|
+
'put',
|
|
210
|
+
RouteQuery<N, 'put'>,
|
|
211
|
+
RouteBody<N, 'put'>,
|
|
212
|
+
RT
|
|
213
|
+
>,
|
|
214
|
+
) => Promise<ToReturn<T, RT>>;
|
|
215
|
+
patch: <T = RouteResp<N, 'patch'>, RT extends ResponseType = 'json'>(
|
|
216
|
+
options: RequestOptionsByMethod<
|
|
217
|
+
'patch',
|
|
218
|
+
RouteQuery<N, 'patch'>,
|
|
219
|
+
RouteBody<N, 'patch'>,
|
|
220
|
+
RT
|
|
221
|
+
>,
|
|
222
|
+
) => Promise<ToReturn<T, RT>>;
|
|
223
|
+
delete: HasRequiredKeys<RouteQuery<N, 'delete'>> extends true
|
|
224
|
+
? <T = RouteResp<N, 'delete'>>(
|
|
225
|
+
options: RequestOptionsByMethod<'delete', RouteQuery<N, 'delete'>>,
|
|
226
|
+
) => Promise<ToReturn<T>>
|
|
227
|
+
: <T = RouteResp<N, 'delete'>>(
|
|
228
|
+
options?: RequestOptionsByMethod<'delete', RouteQuery<N, 'delete'>>,
|
|
229
|
+
) => Promise<ToReturn<T>>;
|
|
230
|
+
}
|
|
231
|
+
type MethodAvailable<
|
|
232
|
+
N extends RouteName,
|
|
233
|
+
M extends RequestMethod,
|
|
234
|
+
> = M extends 'url'
|
|
235
|
+
? RouteMethods<N>['url']
|
|
236
|
+
: M extends keyof Routes[N]
|
|
237
|
+
? RouteMethods<N>[M]
|
|
238
|
+
: never;
|
|
239
|
+
type RouteResults<N extends RouteName> = {
|
|
240
|
+
[M in keyof RouteMethods<any>]: MethodAvailable<N, M>;
|
|
241
|
+
};
|
|
5
242
|
|
|
6
243
|
interface NgwLayerIdentifyError {
|
|
7
|
-
|
|
244
|
+
error: 'Not implemented';
|
|
8
245
|
}
|
|
9
246
|
interface LayerFeature {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
247
|
+
id: number;
|
|
248
|
+
label: string;
|
|
249
|
+
layerId: number;
|
|
250
|
+
parent: string;
|
|
251
|
+
fields: FeatureProperties;
|
|
252
|
+
geom?: GeoJsonObject;
|
|
16
253
|
}
|
|
17
254
|
interface FeatureLayersIdentifyItems {
|
|
18
|
-
|
|
19
|
-
|
|
255
|
+
featureCount: number;
|
|
256
|
+
features: LayerFeature[];
|
|
20
257
|
}
|
|
21
258
|
interface FeatureLayersIdentify {
|
|
22
|
-
|
|
23
|
-
|
|
259
|
+
[layerId: number]: FeatureLayersIdentifyItems | NgwLayerIdentifyError;
|
|
260
|
+
featureCount: number;
|
|
24
261
|
}
|
|
25
262
|
interface FeatureItemAttachment {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
263
|
+
id: number;
|
|
264
|
+
name: string;
|
|
265
|
+
size: number;
|
|
266
|
+
mime_type: string;
|
|
267
|
+
description: null;
|
|
268
|
+
is_image: boolean;
|
|
32
269
|
}
|
|
33
270
|
interface FeatureItemExtensions {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
interface FeatureItem<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
271
|
+
description?: string;
|
|
272
|
+
attachment?: FeatureItemAttachment[];
|
|
273
|
+
}
|
|
274
|
+
interface FeatureItem<
|
|
275
|
+
F = FeatureProperties,
|
|
276
|
+
G extends Geometry | string = Geometry,
|
|
277
|
+
> {
|
|
278
|
+
id: number;
|
|
279
|
+
geom: G;
|
|
280
|
+
fields: F;
|
|
281
|
+
extensions: FeatureItemExtensions;
|
|
282
|
+
}
|
|
283
|
+
type FeatureItemToNgw<
|
|
284
|
+
F = FeatureProperties,
|
|
285
|
+
G extends Geometry | string = Geometry,
|
|
286
|
+
> = FeatureItem<F, G>;
|
|
44
287
|
|
|
45
288
|
/**
|
|
46
289
|
* Represents an item in a legend, with additional rendering and indexing information.
|
|
47
290
|
*/
|
|
48
291
|
interface LegendItem {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
292
|
+
/**
|
|
293
|
+
* The index of the legend item.
|
|
294
|
+
*/
|
|
295
|
+
index: number;
|
|
296
|
+
/**
|
|
297
|
+
* A flag indicating whether this legend item should be rendered.
|
|
298
|
+
*/
|
|
299
|
+
render: boolean | null;
|
|
300
|
+
/**
|
|
301
|
+
* The display name of the legend item.
|
|
302
|
+
*/
|
|
303
|
+
display_name: string;
|
|
304
|
+
/**
|
|
305
|
+
* The symbol associated with this legend item.
|
|
306
|
+
*/
|
|
307
|
+
icon: LegendItemSymbol;
|
|
65
308
|
}
|
|
66
309
|
/**
|
|
67
310
|
* Represents a symbol in a legend item.
|
|
68
311
|
*/
|
|
69
312
|
interface LegendItemSymbol {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
313
|
+
/**
|
|
314
|
+
* The format of the symbol, e.g., 'svg', 'png'.
|
|
315
|
+
*/
|
|
316
|
+
format: string;
|
|
317
|
+
/**
|
|
318
|
+
* The actual data of the symbol in a specified format.
|
|
319
|
+
* This could be a base64 encoded string, SVG path, etc.
|
|
320
|
+
*/
|
|
321
|
+
data: string;
|
|
79
322
|
}
|
|
80
323
|
/**
|
|
81
324
|
* Represents a legend for a specific layer.
|
|
82
325
|
*/
|
|
83
326
|
interface LayerLegend {
|
|
84
|
-
|
|
85
|
-
|
|
327
|
+
layerId: string;
|
|
328
|
+
legend: LegendItem[];
|
|
86
329
|
}
|
|
87
330
|
|
|
88
331
|
interface RequestItemsParamsMap {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
332
|
+
'pyramid.static': {
|
|
333
|
+
skey: number;
|
|
334
|
+
};
|
|
335
|
+
'pyramid.openapi_json': null;
|
|
336
|
+
'pyramid.openapi_json_test': null;
|
|
337
|
+
'pyramid.swagger': null;
|
|
338
|
+
'pyramid.control_panel': null;
|
|
339
|
+
'pyramid.control_panel.sysinfo': null;
|
|
340
|
+
'pyramid.control_panel.storage': null;
|
|
341
|
+
'pyramid.control_panel.backup.browse': null;
|
|
342
|
+
'pyramid.control_panel.backup.download': {
|
|
343
|
+
filename: number;
|
|
344
|
+
};
|
|
345
|
+
'pyramid.control_panel.cors': null;
|
|
346
|
+
'pyramid.control_panel.custom_css': null;
|
|
347
|
+
'pyramid.control_panel.logo': null;
|
|
348
|
+
'pyramid.control_panel.system_name': null;
|
|
349
|
+
'pyramid.control_panel.home_path': null;
|
|
350
|
+
'pyramid.locale': {
|
|
351
|
+
locale: number;
|
|
352
|
+
};
|
|
353
|
+
'pyramid.test_request': null;
|
|
354
|
+
'pyramid.test_exception_handled': null;
|
|
355
|
+
'pyramid.test_exception_unhandled': null;
|
|
356
|
+
'pyramid.test_exception_transaction': null;
|
|
357
|
+
'pyramid.test_timeout': null;
|
|
358
|
+
'pyramid.cors': null;
|
|
359
|
+
'pyramid.system_name': null;
|
|
360
|
+
'pyramid.settings': null;
|
|
361
|
+
'pyramid.route': null;
|
|
362
|
+
'pyramid.pkg_version': null;
|
|
363
|
+
'pyramid.healthcheck': null;
|
|
364
|
+
'pyramid.statistics': null;
|
|
365
|
+
'pyramid.estimate_storage': null;
|
|
366
|
+
'pyramid.storage_status': null;
|
|
367
|
+
'pyramid.storage': null;
|
|
368
|
+
'pyramid.kind_of_data': null;
|
|
369
|
+
'pyramid.custom_css': null;
|
|
370
|
+
'pyramid.logo': null;
|
|
371
|
+
'pyramid.company_logo': null;
|
|
372
|
+
'pyramid.home_path': null;
|
|
373
|
+
'pyramid.uacompat': null;
|
|
374
|
+
'lunkwill.summary': null;
|
|
375
|
+
'lunkwill.response': null;
|
|
376
|
+
'jsrealm.testentry': null;
|
|
377
|
+
'auth.login': null;
|
|
378
|
+
'auth.session_invite': null;
|
|
379
|
+
'auth.alink': {
|
|
380
|
+
token: number;
|
|
381
|
+
};
|
|
382
|
+
'auth.logout': null;
|
|
383
|
+
'auth.oauth': null;
|
|
384
|
+
'auth.settings': null;
|
|
385
|
+
'auth.user.browse': null;
|
|
386
|
+
'auth.user.create': null;
|
|
387
|
+
'auth.user.edit': {
|
|
388
|
+
id: number;
|
|
389
|
+
};
|
|
390
|
+
'auth.group.browse': null;
|
|
391
|
+
'auth.group.create': null;
|
|
392
|
+
'auth.group.edit': {
|
|
393
|
+
id: number;
|
|
394
|
+
};
|
|
395
|
+
'auth.user.collection': null;
|
|
396
|
+
'auth.user.item': {
|
|
397
|
+
id: number;
|
|
398
|
+
};
|
|
399
|
+
'auth.profile': null;
|
|
400
|
+
'auth.group.collection': null;
|
|
401
|
+
'auth.group.item': {
|
|
402
|
+
id: number;
|
|
403
|
+
};
|
|
404
|
+
'auth.current_user': null;
|
|
405
|
+
'auth.register': null;
|
|
406
|
+
'auth.login_cookies': null;
|
|
407
|
+
'auth.logout_cookies': null;
|
|
408
|
+
'resource.schema': null;
|
|
409
|
+
'resource.root': null;
|
|
410
|
+
'resource.show': {
|
|
411
|
+
id: number;
|
|
412
|
+
};
|
|
413
|
+
'resource.json': {
|
|
414
|
+
id: number;
|
|
415
|
+
};
|
|
416
|
+
'resource.effective_permissions': {
|
|
417
|
+
id: number;
|
|
418
|
+
};
|
|
419
|
+
'resource.export.page': {
|
|
420
|
+
id: number;
|
|
421
|
+
};
|
|
422
|
+
'resource.widget': null;
|
|
423
|
+
'resource.create': {
|
|
424
|
+
id: number;
|
|
425
|
+
};
|
|
426
|
+
'resource.update': {
|
|
427
|
+
id: number;
|
|
428
|
+
};
|
|
429
|
+
'resource.delete': {
|
|
430
|
+
id: number;
|
|
431
|
+
};
|
|
432
|
+
'resource.control_panel.resource_export': null;
|
|
433
|
+
'resource.blueprint': null;
|
|
434
|
+
'resource.item': {
|
|
435
|
+
id: number;
|
|
436
|
+
};
|
|
437
|
+
'resource.collection': null;
|
|
438
|
+
'resource.permission': {
|
|
439
|
+
id: number;
|
|
440
|
+
};
|
|
441
|
+
'resource.permission.explain': {
|
|
442
|
+
id: number;
|
|
443
|
+
};
|
|
444
|
+
'resource.volume': {
|
|
445
|
+
id: number;
|
|
446
|
+
};
|
|
447
|
+
'resource.quota': null;
|
|
448
|
+
'resource.search': null;
|
|
449
|
+
'resource.quota_check': null;
|
|
450
|
+
'resource.resource_export': null;
|
|
451
|
+
'resource.export': {
|
|
452
|
+
id: number;
|
|
453
|
+
};
|
|
454
|
+
'resource.file_download': {
|
|
455
|
+
id: number;
|
|
456
|
+
name: number;
|
|
457
|
+
};
|
|
458
|
+
'resource.preview': {
|
|
459
|
+
id: number;
|
|
460
|
+
};
|
|
461
|
+
'srs.browse': null;
|
|
462
|
+
'srs.create': null;
|
|
463
|
+
'srs.edit': {
|
|
464
|
+
id: number;
|
|
465
|
+
};
|
|
466
|
+
'srs.catalog': null;
|
|
467
|
+
'srs.catalog.import': {
|
|
468
|
+
id: number;
|
|
469
|
+
};
|
|
470
|
+
'spatial_ref_sys.collection': null;
|
|
471
|
+
'spatial_ref_sys.convert': null;
|
|
472
|
+
'spatial_ref_sys.geom_transform.batch': null;
|
|
473
|
+
'spatial_ref_sys.geom_transform': {
|
|
474
|
+
id: number;
|
|
475
|
+
};
|
|
476
|
+
'spatial_ref_sys.geom_length': {
|
|
477
|
+
id: number;
|
|
478
|
+
};
|
|
479
|
+
'spatial_ref_sys.geom_area': {
|
|
480
|
+
id: number;
|
|
481
|
+
};
|
|
482
|
+
'spatial_ref_sys.item': {
|
|
483
|
+
id: number;
|
|
484
|
+
};
|
|
485
|
+
'spatial_ref_sys.catalog.collection': null;
|
|
486
|
+
'spatial_ref_sys.catalog.item': {
|
|
487
|
+
id: number;
|
|
488
|
+
};
|
|
489
|
+
'spatial_ref_sys.catalog.import': null;
|
|
490
|
+
'layer.extent': {
|
|
491
|
+
id: number;
|
|
492
|
+
};
|
|
493
|
+
'layer_preview.map': {
|
|
494
|
+
id: number;
|
|
495
|
+
};
|
|
496
|
+
'feature_layer.export_multiple': null;
|
|
497
|
+
'feature_layer.feature.browse': {
|
|
498
|
+
id: number;
|
|
499
|
+
};
|
|
500
|
+
'feature_layer.feature.show': {
|
|
501
|
+
id: number;
|
|
502
|
+
feature_id: number;
|
|
503
|
+
};
|
|
504
|
+
'feature_layer.feature.update': {
|
|
505
|
+
id: number;
|
|
506
|
+
feature_id: number;
|
|
507
|
+
};
|
|
508
|
+
'feature_layer.field': {
|
|
509
|
+
id: number;
|
|
510
|
+
};
|
|
511
|
+
'feature_layer.test_mvt': null;
|
|
512
|
+
'feature_layer.geojson': {
|
|
513
|
+
id: number;
|
|
514
|
+
};
|
|
515
|
+
'feature_layer.export': null;
|
|
516
|
+
'feature_layer.mvt': null;
|
|
517
|
+
'feature_layer.feature.item': {
|
|
518
|
+
id: number;
|
|
519
|
+
fid: number;
|
|
520
|
+
};
|
|
521
|
+
'feature_layer.feature.item_extent': {
|
|
522
|
+
id: number;
|
|
523
|
+
fid: number;
|
|
524
|
+
};
|
|
525
|
+
'feature_layer.feature.geometry_info': {
|
|
526
|
+
id: number;
|
|
527
|
+
fid: number;
|
|
528
|
+
};
|
|
529
|
+
'feature_layer.feature.collection': {
|
|
530
|
+
id: number;
|
|
531
|
+
};
|
|
532
|
+
'feature_layer.feature.count': {
|
|
533
|
+
id: number;
|
|
534
|
+
};
|
|
535
|
+
'feature_layer.feature.extent': {
|
|
536
|
+
id: number;
|
|
537
|
+
};
|
|
538
|
+
'feature_layer.store': {
|
|
539
|
+
id: number;
|
|
540
|
+
};
|
|
541
|
+
'feature_layer.identify': null;
|
|
542
|
+
'feature_description.export': {
|
|
543
|
+
id: number;
|
|
544
|
+
};
|
|
545
|
+
'feature_attachment.download': {
|
|
546
|
+
id: number;
|
|
547
|
+
fid: number;
|
|
548
|
+
aid: number;
|
|
549
|
+
};
|
|
550
|
+
'feature_attachment.image': {
|
|
551
|
+
id: number;
|
|
552
|
+
fid: number;
|
|
553
|
+
aid: number;
|
|
554
|
+
};
|
|
555
|
+
'feature_attachment.item': {
|
|
556
|
+
id: number;
|
|
557
|
+
fid: number;
|
|
558
|
+
aid: number;
|
|
559
|
+
};
|
|
560
|
+
'feature_attachment.collection': {
|
|
561
|
+
id: number;
|
|
562
|
+
fid: number;
|
|
563
|
+
};
|
|
564
|
+
'feature_attachment.export': {
|
|
565
|
+
id: number;
|
|
566
|
+
};
|
|
567
|
+
'feature_attachment.import': {
|
|
568
|
+
id: number;
|
|
569
|
+
};
|
|
570
|
+
'feature_attachment.page': {
|
|
571
|
+
id: number;
|
|
572
|
+
};
|
|
573
|
+
'render.tile': null;
|
|
574
|
+
'render.image': null;
|
|
575
|
+
'render.tile_cache.seed_status': {
|
|
576
|
+
id: number;
|
|
577
|
+
};
|
|
578
|
+
'render.legend': {
|
|
579
|
+
id: number;
|
|
580
|
+
};
|
|
581
|
+
'render.legend_symbols': {
|
|
582
|
+
id: number;
|
|
583
|
+
};
|
|
584
|
+
'webmap.annotation.collection': {
|
|
585
|
+
id: number;
|
|
586
|
+
};
|
|
587
|
+
'webmap.annotation.item': {
|
|
588
|
+
id: number;
|
|
589
|
+
annotation_id: number;
|
|
590
|
+
};
|
|
591
|
+
'webmap.print': null;
|
|
592
|
+
'webmap.settings': null;
|
|
593
|
+
'webmap.extent': {
|
|
594
|
+
id: number;
|
|
595
|
+
};
|
|
596
|
+
'webmap.display': {
|
|
597
|
+
id: number;
|
|
598
|
+
};
|
|
599
|
+
'webmap.display.tiny': {
|
|
600
|
+
id: number;
|
|
601
|
+
};
|
|
602
|
+
'webmap.preview_embedded': null;
|
|
603
|
+
'webmap.clone': {
|
|
604
|
+
id: number;
|
|
605
|
+
};
|
|
606
|
+
'webmap.control_panel.settings': null;
|
|
607
|
+
'vector_layer.dataset': null;
|
|
608
|
+
'postgis.connection.inspect': {
|
|
609
|
+
id: number;
|
|
610
|
+
};
|
|
611
|
+
'postgis.connection.inspect.table': {
|
|
612
|
+
id: number;
|
|
613
|
+
table_name: number;
|
|
614
|
+
};
|
|
615
|
+
'postgis.diagnostics': null;
|
|
616
|
+
'postgis.diagnostics_page': {
|
|
617
|
+
id: number;
|
|
618
|
+
};
|
|
619
|
+
'raster_layer.cog': {
|
|
620
|
+
id: number;
|
|
621
|
+
};
|
|
622
|
+
'raster_layer.download': {
|
|
623
|
+
id: number;
|
|
624
|
+
};
|
|
625
|
+
'wfsserver.wfs': {
|
|
626
|
+
id: number;
|
|
627
|
+
};
|
|
628
|
+
'wmsserver.wms': {
|
|
629
|
+
id: number;
|
|
630
|
+
};
|
|
631
|
+
'ogcfserver.landing_page': {
|
|
632
|
+
id: number;
|
|
633
|
+
};
|
|
634
|
+
'ogcfserver.openapi': {
|
|
635
|
+
id: number;
|
|
636
|
+
};
|
|
637
|
+
'ogcfserver.conformance': {
|
|
638
|
+
id: number;
|
|
639
|
+
};
|
|
640
|
+
'ogcfserver.collections': {
|
|
641
|
+
id: number;
|
|
642
|
+
};
|
|
643
|
+
'ogcfserver.collection': {
|
|
644
|
+
id: number;
|
|
645
|
+
collection_id: number;
|
|
646
|
+
};
|
|
647
|
+
'ogcfserver.items': {
|
|
648
|
+
id: number;
|
|
649
|
+
collection_id: number;
|
|
650
|
+
};
|
|
651
|
+
'ogcfserver.item': {
|
|
652
|
+
id: number;
|
|
653
|
+
collection_id: number;
|
|
654
|
+
item_id: number;
|
|
655
|
+
};
|
|
656
|
+
'tmsclient.connection.layers': {
|
|
657
|
+
id: number;
|
|
658
|
+
};
|
|
659
|
+
'file_upload.upload': null;
|
|
660
|
+
'file_upload.collection': null;
|
|
661
|
+
'file_upload.item': {
|
|
662
|
+
id: number;
|
|
663
|
+
};
|
|
664
|
+
'cadaster.settings': null;
|
|
665
|
+
'cadaster.enabled': null;
|
|
666
|
+
'cadaster.pkk_by_position': null;
|
|
667
|
+
'cadaster.pkk_by_id': null;
|
|
668
|
+
'pyramid.control_panel.cadaster': null;
|
|
669
|
+
'collector.user.browse': null;
|
|
670
|
+
'collector.user.create': null;
|
|
671
|
+
'collector.user.edit': {
|
|
672
|
+
id: number;
|
|
673
|
+
};
|
|
674
|
+
'collector.resource.users': {
|
|
675
|
+
id: number;
|
|
676
|
+
};
|
|
677
|
+
'collector.resource.read': {
|
|
678
|
+
id: number;
|
|
679
|
+
};
|
|
680
|
+
'collector.settings': null;
|
|
681
|
+
'collector.user.collection': null;
|
|
682
|
+
'collector.user.item': {
|
|
683
|
+
user_id: number;
|
|
684
|
+
};
|
|
685
|
+
'collector.user.limit': null;
|
|
686
|
+
'old.collector.user': {
|
|
687
|
+
user_id: number;
|
|
688
|
+
};
|
|
689
|
+
'collector.settings.users': null;
|
|
690
|
+
'demo.project': null;
|
|
691
|
+
'demo.project.preview': {
|
|
692
|
+
identity: number;
|
|
693
|
+
lang: number;
|
|
694
|
+
};
|
|
695
|
+
'demo.select': null;
|
|
696
|
+
'demo.redirect': {
|
|
697
|
+
project: number;
|
|
698
|
+
};
|
|
699
|
+
'formbuilder.formbuilder_form_ngfp': {
|
|
700
|
+
id: number;
|
|
701
|
+
};
|
|
702
|
+
'nimbo.config': null;
|
|
703
|
+
'ngwcluster.schema': null;
|
|
704
|
+
'ngwcluster.config': null;
|
|
705
|
+
'ngwcluster.usage': null;
|
|
706
|
+
'ngwcluster.qgis_banner': null;
|
|
707
|
+
'ngwcluster.plan_and_features': null;
|
|
708
|
+
'qgis.style_qml': {
|
|
709
|
+
id: number;
|
|
710
|
+
};
|
|
711
|
+
'pyramid.control_panel.tracker': null;
|
|
712
|
+
'tracker.reports': null;
|
|
713
|
+
'tracker.reports.build': null;
|
|
714
|
+
'tracker.settings': null;
|
|
715
|
+
'tracker.receive_packet': {
|
|
716
|
+
unique_id: number;
|
|
717
|
+
};
|
|
718
|
+
'tracker.get_trackers': null;
|
|
719
|
+
'tracker.get_tracker_points': null;
|
|
720
|
+
'tracker.get_short_tracks': null;
|
|
721
|
+
'tracker.get_full_tracks': null;
|
|
722
|
+
'tracker.get_tracker_last_points': null;
|
|
723
|
+
'tracker.get_tracker_lines': null;
|
|
724
|
+
'tracker.get_last_activity_tracker': null;
|
|
725
|
+
'tracker.get_stops': null;
|
|
726
|
+
'tracker.get_device_types': null;
|
|
727
|
+
'tracker.export_to_gpx': null;
|
|
485
728
|
}
|
|
486
729
|
|
|
487
730
|
interface TreeItem {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
731
|
+
item_type: 'root' | 'group' | 'layer';
|
|
732
|
+
display_name?: string;
|
|
733
|
+
id?: number;
|
|
734
|
+
_layer?: any;
|
|
735
|
+
_parent?: TreeGroup;
|
|
493
736
|
}
|
|
494
737
|
interface TreeGroup extends TreeItem {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
738
|
+
item_type: 'root' | 'group';
|
|
739
|
+
group_expanded?: boolean;
|
|
740
|
+
children: Array<TreeLayer | TreeGroup>;
|
|
498
741
|
}
|
|
499
742
|
interface TreeLayer extends TreeItem {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
743
|
+
item_type: 'layer';
|
|
744
|
+
layer_adapter: string;
|
|
745
|
+
layer_enabled: boolean;
|
|
746
|
+
draw_order_position: number;
|
|
747
|
+
layer_max_scale_denom?: number;
|
|
748
|
+
layer_min_scale_denom?: number;
|
|
749
|
+
layer_style_id: number;
|
|
750
|
+
style_parent_id: number;
|
|
751
|
+
layer_transparency: number;
|
|
752
|
+
layer_identifiable: boolean;
|
|
510
753
|
}
|
|
511
754
|
interface Permission {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
id: number;
|
|
515
|
-
};
|
|
516
|
-
identity: string;
|
|
517
|
-
scope: string;
|
|
518
|
-
permission: string;
|
|
519
|
-
propagate: boolean;
|
|
520
|
-
}
|
|
521
|
-
type ResourceCls = 'resource_group' | 'postgis_layer' | 'wmsserver_service' | 'basemap_layer' | 'postgis_connection' | 'webmap' | 'wfsserver_service' | 'vector_layer' | 'raster_layer' | 'mapserver_style' | 'qgis_vector_style' | 'qgis_raster_style' | 'raster_style' | 'file_bucket' | 'lookup_table' | 'wmsclient_layer' | 'wmsclient_connection' | 'formbuilder_form' | 'file_bucket' | 'svg_marker_library' | 'ogcfserver_service' | 'tmsclient_connection' | 'tileset' | 'collector_project' | 'demo_project' | 'trackers_group' | 'tracker' | 'terrain_provider' | 'model_3d' | 'tmsclient_layer';
|
|
522
|
-
interface ResourceHierarchy {
|
|
755
|
+
action: string;
|
|
756
|
+
principal: {
|
|
523
757
|
id: number;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
758
|
+
};
|
|
759
|
+
identity: string;
|
|
760
|
+
scope: string;
|
|
761
|
+
permission: string;
|
|
762
|
+
propagate: boolean;
|
|
763
|
+
}
|
|
764
|
+
type ResourceCls =
|
|
765
|
+
| 'resource_group'
|
|
766
|
+
| 'postgis_layer'
|
|
767
|
+
| 'wmsserver_service'
|
|
768
|
+
| 'basemap_layer'
|
|
769
|
+
| 'postgis_connection'
|
|
770
|
+
| 'webmap'
|
|
771
|
+
| 'wfsserver_service'
|
|
772
|
+
| 'vector_layer'
|
|
773
|
+
| 'raster_layer'
|
|
774
|
+
| 'mapserver_style'
|
|
775
|
+
| 'qgis_vector_style'
|
|
776
|
+
| 'qgis_raster_style'
|
|
777
|
+
| 'raster_style'
|
|
778
|
+
| 'file_bucket'
|
|
779
|
+
| 'lookup_table'
|
|
780
|
+
| 'wmsclient_layer'
|
|
781
|
+
| 'wmsclient_connection'
|
|
782
|
+
| 'formbuilder_form'
|
|
783
|
+
| 'file_bucket'
|
|
784
|
+
| 'svg_marker_library'
|
|
785
|
+
| 'ogcfserver_service'
|
|
786
|
+
| 'tmsclient_connection'
|
|
787
|
+
| 'tileset'
|
|
788
|
+
| 'collector_project'
|
|
789
|
+
| 'demo_project'
|
|
790
|
+
| 'trackers_group'
|
|
791
|
+
| 'tracker'
|
|
792
|
+
| 'terrain_provider'
|
|
793
|
+
| 'model_3d'
|
|
794
|
+
| 'tmsclient_layer';
|
|
795
|
+
interface ResourceHierarchy {
|
|
796
|
+
id: number;
|
|
797
|
+
parent: {
|
|
798
|
+
id: any;
|
|
799
|
+
};
|
|
527
800
|
}
|
|
528
801
|
interface Resource {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
802
|
+
cls: ResourceCls;
|
|
803
|
+
id: number;
|
|
804
|
+
parent: {
|
|
805
|
+
id: number;
|
|
806
|
+
};
|
|
807
|
+
owner_user: {
|
|
808
|
+
id: number;
|
|
809
|
+
};
|
|
810
|
+
permissions: Permission[];
|
|
811
|
+
keyname?: string | null;
|
|
812
|
+
display_name: string;
|
|
813
|
+
description?: string | null;
|
|
814
|
+
children: boolean;
|
|
815
|
+
interfaces: any[];
|
|
816
|
+
scopes: string[];
|
|
544
817
|
}
|
|
545
818
|
interface BookmarkProperties {
|
|
546
|
-
|
|
547
|
-
|
|
819
|
+
name: string;
|
|
820
|
+
place: string;
|
|
548
821
|
}
|
|
549
822
|
interface NgwDateFormat {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
823
|
+
year: number;
|
|
824
|
+
month: number;
|
|
825
|
+
day: number;
|
|
553
826
|
}
|
|
554
827
|
interface NgwTimeFormat {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
828
|
+
hour: number;
|
|
829
|
+
minute: number;
|
|
830
|
+
second: number;
|
|
558
831
|
}
|
|
559
832
|
type NgwDateTimeFormat = NgwDateFormat & NgwTimeFormat;
|
|
560
833
|
interface WebmapResource {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
834
|
+
extent_left: number;
|
|
835
|
+
extent_right: number;
|
|
836
|
+
extent_bottom: number;
|
|
837
|
+
extent_top: number;
|
|
838
|
+
extent_constrained: boolean;
|
|
839
|
+
draw_order_enabled: boolean;
|
|
840
|
+
bookmark_resource: ResourceHierarchy;
|
|
841
|
+
root_item: TreeGroup;
|
|
569
842
|
}
|
|
570
843
|
interface BasemapResource {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
844
|
+
url: string;
|
|
845
|
+
/**
|
|
846
|
+
* Parse to qms-kit.BasemapQms
|
|
847
|
+
*/
|
|
848
|
+
qms: string;
|
|
576
849
|
}
|
|
577
850
|
interface BasemapWebmapItem {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
851
|
+
resource_id: number;
|
|
852
|
+
display_name: string;
|
|
853
|
+
position?: number;
|
|
854
|
+
enabled?: boolean;
|
|
855
|
+
opacity?: number;
|
|
583
856
|
}
|
|
584
857
|
interface BasemapWebmap {
|
|
585
|
-
|
|
858
|
+
basemaps: BasemapWebmapItem[];
|
|
586
859
|
}
|
|
587
860
|
interface LookupTableResource {
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
type VectorFieldDatatype =
|
|
861
|
+
items: Record<string, string>;
|
|
862
|
+
}
|
|
863
|
+
type VectorFieldDatatype =
|
|
864
|
+
| 'STRING'
|
|
865
|
+
| 'REAL'
|
|
866
|
+
| 'DATE'
|
|
867
|
+
| 'TIME'
|
|
868
|
+
| 'DATETIME'
|
|
869
|
+
| 'BIGINT'
|
|
870
|
+
| 'INTEGER'
|
|
871
|
+
| 'BOOLEAN';
|
|
591
872
|
/** @deprecated - use {@link VectorFieldDatatype} instead */
|
|
592
873
|
type ResourceItemDatatype = VectorFieldDatatype;
|
|
593
874
|
interface FeatureLayerField {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
875
|
+
datatype: VectorFieldDatatype;
|
|
876
|
+
display_name: string;
|
|
877
|
+
grid_visibility: boolean;
|
|
878
|
+
id: number;
|
|
879
|
+
keyname: string;
|
|
880
|
+
label_field: boolean;
|
|
881
|
+
typemod?: unknown;
|
|
601
882
|
}
|
|
602
883
|
interface FeatureResource {
|
|
603
|
-
|
|
604
|
-
}
|
|
605
|
-
type GeometryType =
|
|
884
|
+
fields: FeatureLayerField[];
|
|
885
|
+
}
|
|
886
|
+
type GeometryType =
|
|
887
|
+
| 'POINT'
|
|
888
|
+
| 'LINESTRING'
|
|
889
|
+
| 'POLYGON'
|
|
890
|
+
| 'MULTIPOINT'
|
|
891
|
+
| 'MULTILINESTRING'
|
|
892
|
+
| 'MULTIPOLYGON'
|
|
893
|
+
| 'POINTZ'
|
|
894
|
+
| 'LINESTRINGZ'
|
|
895
|
+
| 'POLYGONZ'
|
|
896
|
+
| 'MULTIPOINTZ'
|
|
897
|
+
| 'MULTILINESTRINGZ'
|
|
898
|
+
| 'MULTIPOLYGONZ';
|
|
606
899
|
interface VectorLayer {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
900
|
+
srs: {
|
|
901
|
+
id: number;
|
|
902
|
+
};
|
|
903
|
+
geometry_type: GeometryType;
|
|
611
904
|
}
|
|
612
905
|
interface FileBucket {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
906
|
+
files: NgwFile[];
|
|
907
|
+
tstamp?: any;
|
|
908
|
+
main_tileset?: string;
|
|
616
909
|
}
|
|
617
910
|
interface WmsServerService {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
911
|
+
/**
|
|
912
|
+
* Array or WMS service layers. keyname, display_name and resource_id are mandatory.
|
|
913
|
+
*/
|
|
914
|
+
layers: WmsServerServiceLayer[];
|
|
622
915
|
}
|
|
623
916
|
interface WmsClientLayer {
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
917
|
+
/** WMS connection. */
|
|
918
|
+
connection: {
|
|
919
|
+
id: number;
|
|
920
|
+
};
|
|
921
|
+
srs: {
|
|
922
|
+
id: number;
|
|
923
|
+
};
|
|
924
|
+
/**
|
|
925
|
+
* Image format. Available values can fetched from WMS connection ('image/png').
|
|
926
|
+
*/
|
|
927
|
+
imgformat: string;
|
|
928
|
+
/**
|
|
929
|
+
* String with layer identifiers separated with comma. Available layers can fetched from WMS connection.
|
|
930
|
+
*/
|
|
931
|
+
wmslayers: string;
|
|
932
|
+
/** Additional parameters added to each request. This is key and value list. */
|
|
933
|
+
vendor_params: Record<string, string>;
|
|
641
934
|
}
|
|
642
935
|
interface WmsClientConnection {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
936
|
+
/** WMS service url */
|
|
937
|
+
url: string;
|
|
938
|
+
/** User name to connect to service */
|
|
939
|
+
username?: string;
|
|
940
|
+
/** Password to connect to service */
|
|
941
|
+
password?: string;
|
|
942
|
+
/** WMS version */
|
|
943
|
+
version?: string;
|
|
944
|
+
/** If equal query - query capabilities from service */
|
|
945
|
+
capcache?: string;
|
|
653
946
|
}
|
|
654
947
|
interface WmsServerServiceLayer {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
948
|
+
/**
|
|
949
|
+
* Key name for WMS service item. Name may be only ASCII symbols without spaces.
|
|
950
|
+
* */
|
|
951
|
+
keyname: string;
|
|
952
|
+
/**
|
|
953
|
+
* Service item name.
|
|
954
|
+
* */
|
|
955
|
+
display_name: string;
|
|
956
|
+
/**
|
|
957
|
+
* Resource identifier which will be WMS layer datasource. Supported types are: vector layer style, raster style, WMS layer.
|
|
958
|
+
* */
|
|
959
|
+
resource_id: number;
|
|
960
|
+
/**
|
|
961
|
+
* Minimum scale to show WMS layer. String in form of `1 : 100000`.
|
|
962
|
+
*/
|
|
963
|
+
min_scale_denom?: string | null;
|
|
964
|
+
/**
|
|
965
|
+
* Maximum scale to show WMS layer. String in form of `1 : 100000`.
|
|
966
|
+
*/
|
|
967
|
+
max_scale_denom?: string | null;
|
|
675
968
|
}
|
|
676
969
|
interface NgwFile {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
970
|
+
name: string;
|
|
971
|
+
mime_type: string;
|
|
972
|
+
size: number;
|
|
680
973
|
}
|
|
681
974
|
interface Resmeta {
|
|
682
|
-
|
|
975
|
+
items: Record<string, any>;
|
|
683
976
|
}
|
|
684
977
|
interface ResourceItemMain {
|
|
685
|
-
|
|
686
|
-
|
|
978
|
+
resource: Resource;
|
|
979
|
+
resmeta: Resmeta;
|
|
687
980
|
}
|
|
688
981
|
interface ResourceItem extends ResourceItemMain {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
982
|
+
[cls: string]: any;
|
|
983
|
+
webmap?: WebmapResource;
|
|
984
|
+
feature_layer?: FeatureResource;
|
|
985
|
+
vector_layer?: VectorLayer;
|
|
986
|
+
basemap_layer?: BasemapResource;
|
|
987
|
+
basemap_webmap?: BasemapWebmap;
|
|
988
|
+
lookup_table?: LookupTableResource;
|
|
989
|
+
file_bucket?: FileBucket;
|
|
990
|
+
wmsserver_service?: WmsServerService;
|
|
991
|
+
wmsclient_layer?: WmsClientLayer;
|
|
992
|
+
wmsclient_connection?: WmsClientConnection;
|
|
700
993
|
}
|
|
701
994
|
interface VectorLayerResourceItem extends ResourceItemMain {
|
|
702
|
-
|
|
703
|
-
|
|
995
|
+
vector_layer: VectorLayer;
|
|
996
|
+
feature_layer: FeatureResource;
|
|
704
997
|
}
|
|
705
998
|
|
|
706
999
|
type ResourceStoreItemProperties = {
|
|
707
|
-
|
|
1000
|
+
[name: string]: any;
|
|
708
1001
|
} | null;
|
|
709
|
-
type ResourceStoreItem<
|
|
710
|
-
|
|
1002
|
+
type ResourceStoreItem<
|
|
1003
|
+
P extends ResourceStoreItemProperties = ResourceStoreItemProperties,
|
|
1004
|
+
> = ResourceStoreItemDefault & {
|
|
1005
|
+
data?: string;
|
|
711
1006
|
} & P;
|
|
712
1007
|
interface ResourceStoreItemDefault {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
1008
|
+
[field: string]: string | number | boolean | null | Date;
|
|
1009
|
+
id: number;
|
|
1010
|
+
label: string;
|
|
716
1011
|
}
|
|
717
1012
|
|
|
718
1013
|
interface FileMeta {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
1014
|
+
id: string;
|
|
1015
|
+
mime_type: string;
|
|
1016
|
+
name: string;
|
|
1017
|
+
size: number;
|
|
723
1018
|
}
|
|
724
1019
|
interface NgwExtent {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
1020
|
+
extent: {
|
|
1021
|
+
minLon: number;
|
|
1022
|
+
minLat: number;
|
|
1023
|
+
maxLon: number;
|
|
1024
|
+
maxLat: number;
|
|
1025
|
+
};
|
|
731
1026
|
}
|
|
732
1027
|
interface SrsItem {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
1028
|
+
auth_name: string;
|
|
1029
|
+
auth_srid: number;
|
|
1030
|
+
display_name: string;
|
|
1031
|
+
id: number;
|
|
1032
|
+
wkt: string;
|
|
738
1033
|
}
|
|
739
1034
|
interface FeatureLayerCount {
|
|
740
|
-
|
|
1035
|
+
total_count: number;
|
|
741
1036
|
}
|
|
742
1037
|
type ResourceIdKeynameDef = string | number;
|
|
743
1038
|
type ResourceDefinition = ResourceIdKeynameDef | DeepPartial<Resource>;
|
|
744
1039
|
interface FileUploadResp {
|
|
745
|
-
|
|
1040
|
+
upload_meta: FileMeta[];
|
|
746
1041
|
}
|
|
747
1042
|
interface PyramidSettingsPyramidCompanyLogo {
|
|
748
|
-
|
|
749
|
-
|
|
1043
|
+
link?: 'string';
|
|
1044
|
+
enabled: boolean;
|
|
750
1045
|
}
|
|
751
1046
|
interface PyramidSettingsPyramid {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
1047
|
+
support_url?: string;
|
|
1048
|
+
units: 'metric';
|
|
1049
|
+
degree_format: 'dd';
|
|
1050
|
+
measurement_srid: 4326;
|
|
1051
|
+
company_logo?: PyramidSettingsPyramidCompanyLogo;
|
|
757
1052
|
}
|
|
758
1053
|
type PyramidSettings = PyramidSettingsPyramid | Record<string, any>;
|
|
759
1054
|
interface PyramidRoute {
|
|
760
|
-
|
|
1055
|
+
[requestItemName: string]: [url: string, ...params: string[]];
|
|
761
1056
|
}
|
|
762
1057
|
type Router = PyramidRoute;
|
|
763
1058
|
type simple = string | number | boolean;
|
|
764
1059
|
type cbParams = (params: Params) => simple;
|
|
765
1060
|
interface Params {
|
|
766
|
-
|
|
1061
|
+
[name: string]: simple | cbParams;
|
|
767
1062
|
}
|
|
768
1063
|
type RequestItemKeys = {
|
|
769
|
-
|
|
1064
|
+
readonly [T in keyof RequestItemsParamsMap]?: any;
|
|
770
1065
|
};
|
|
771
1066
|
interface RequestItemsResponseMap {
|
|
772
|
-
|
|
773
|
-
|
|
1067
|
+
GET: GetRequestItemsResponseMap;
|
|
1068
|
+
POST: PostRequestItemsResponseMap;
|
|
774
1069
|
}
|
|
775
1070
|
interface GetRequestItemsResponseMap extends RequestItemKeys {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
1071
|
+
'pyramid.route': PyramidRoute;
|
|
1072
|
+
'pyramid.settings': PyramidSettings;
|
|
1073
|
+
'resource.item': ResourceItem;
|
|
1074
|
+
'resource.search': ResourceItem[];
|
|
1075
|
+
'resource.child': any;
|
|
1076
|
+
'resource.collection': ResourceItem[];
|
|
1077
|
+
'file_upload.upload': FileUploadResp;
|
|
1078
|
+
'layer.extent': NgwExtent;
|
|
1079
|
+
'feature_layer.feature.item': FeatureItem;
|
|
1080
|
+
'feature_layer.feature.collection': FeatureItem[];
|
|
1081
|
+
'feature_layer.store': ResourceStoreItem[];
|
|
1082
|
+
'feature_layer.field': FeatureLayerField[];
|
|
1083
|
+
'feature_layer.feature.item_extent': NgwExtent;
|
|
1084
|
+
'feature_layer.feature.count': FeatureLayerCount;
|
|
1085
|
+
'pyramid.company_logo': string;
|
|
1086
|
+
'spatial_ref_sys.collection': SrsItem[];
|
|
1087
|
+
'render.legend_symbols': LegendItem[];
|
|
793
1088
|
}
|
|
794
1089
|
interface IdOnly {
|
|
795
|
-
|
|
1090
|
+
id: number;
|
|
796
1091
|
}
|
|
797
1092
|
interface CreatedResource extends IdOnly {
|
|
798
|
-
|
|
1093
|
+
parent: IdOnly;
|
|
799
1094
|
}
|
|
800
1095
|
interface PostRequestItemsResponseMap extends RequestItemKeys {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1096
|
+
'resource.collection': CreatedResource;
|
|
1097
|
+
'feature_layer.identify': FeatureLayersIdentify;
|
|
1098
|
+
'file_upload.upload': FileUploadResp;
|
|
1099
|
+
'feature_attachment.collection': IdOnly;
|
|
805
1100
|
}
|
|
806
1101
|
interface PatchRequestItemsResponseMap extends RequestItemKeys {
|
|
807
|
-
|
|
1102
|
+
'feature_layer.feature.collection': IdOnly[];
|
|
808
1103
|
}
|
|
809
1104
|
interface PutRequestItemsResponseMap extends RequestItemKeys {
|
|
810
|
-
|
|
1105
|
+
'feature_layer.feature.item': IdOnly;
|
|
811
1106
|
}
|
|
812
1107
|
interface DeleteRequestItemsResponseMap extends RequestItemKeys {
|
|
813
|
-
|
|
1108
|
+
'feature_layer.feature.item': any;
|
|
814
1109
|
}
|
|
815
1110
|
/**
|
|
816
1111
|
* User credentials for authorization.
|
|
817
1112
|
*/
|
|
818
1113
|
interface Credentials {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
type RequestTransformFunction = (
|
|
1114
|
+
/**
|
|
1115
|
+
* The login username for the user.
|
|
1116
|
+
*/
|
|
1117
|
+
login: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* The password for the user.
|
|
1120
|
+
*/
|
|
1121
|
+
password: string;
|
|
1122
|
+
}
|
|
1123
|
+
type RequestTransformFunction = (
|
|
1124
|
+
url: string,
|
|
1125
|
+
options: RequestOptions,
|
|
1126
|
+
) => [url: string, options: RequestOptions];
|
|
829
1127
|
interface NgwConnectorOptions {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
1128
|
+
/**
|
|
1129
|
+
* The base URL of the NextGIS Web (NGW) server.
|
|
1130
|
+
* Example: "https://demo.nextgis.com"
|
|
1131
|
+
*/
|
|
1132
|
+
baseUrl?: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* The API route path to use for requests.
|
|
1135
|
+
* If not specified, the default route "/api/component/pyramid/route" will be used.
|
|
1136
|
+
*/
|
|
1137
|
+
route?: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* User credentials for authorization in NGW.
|
|
1140
|
+
* These credentials will be used for authentication in NGW requests.
|
|
1141
|
+
*/
|
|
1142
|
+
auth?: Credentials;
|
|
1143
|
+
/**
|
|
1144
|
+
* Indicates whether to include credentials such as cookies, authentication headers,
|
|
1145
|
+
* or TLS client certificates in cross-site Access-Control requests.
|
|
1146
|
+
* Setting this property ensures that cookies from another domain are used in the requests.
|
|
1147
|
+
* Note that setting this property has no effect on same-origin requests.
|
|
1148
|
+
*/
|
|
1149
|
+
withCredentials?: boolean;
|
|
1150
|
+
/**
|
|
1151
|
+
* A function to transform the request before sending it.
|
|
1152
|
+
* This function can be used to modify the URL, headers, or other options.
|
|
1153
|
+
*/
|
|
1154
|
+
requestTransform?: RequestTransformFunction;
|
|
1155
|
+
/**
|
|
1156
|
+
* Identifier for caching requests.
|
|
1157
|
+
* This can be used to segregate cached data for different connectors.
|
|
1158
|
+
*/
|
|
1159
|
+
cacheId?: string;
|
|
862
1160
|
}
|
|
863
1161
|
interface RequestHeaders {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
1162
|
+
[header: string]: string | undefined;
|
|
1163
|
+
Authorization?: string;
|
|
1164
|
+
Accept?: string;
|
|
1165
|
+
'Access-Control-Allow-Origin'?: string;
|
|
1166
|
+
'Access-Control-Allow-Headers'?: string;
|
|
869
1167
|
}
|
|
870
1168
|
type RequestMethods = 'POST' | 'GET' | 'PATCH' | 'DELETE' | 'PUT';
|
|
871
|
-
type NgwExceptions =
|
|
1169
|
+
type NgwExceptions =
|
|
1170
|
+
| 'nextgisweb.resource.exception.ResourceNotFound'
|
|
1171
|
+
| 'nextgisweb.core.exception.InsufficientPermissions';
|
|
872
1172
|
interface BaseRequestOptions {
|
|
873
|
-
|
|
874
|
-
|
|
1173
|
+
cache?: boolean;
|
|
1174
|
+
signal?: AbortSignal;
|
|
875
1175
|
}
|
|
876
1176
|
/**
|
|
877
1177
|
* Options for configuring requests to NGW.
|
|
878
1178
|
*/
|
|
879
|
-
interface RequestOptions<
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
1179
|
+
interface RequestOptions<
|
|
1180
|
+
M extends RequestMethods = RequestMethods,
|
|
1181
|
+
K extends keyof RequestItemsParamsMap = keyof RequestItemsParamsMap,
|
|
1182
|
+
> extends BaseRequestOptions {
|
|
1183
|
+
/**
|
|
1184
|
+
* Data to be sent as the request body.
|
|
1185
|
+
* Typically used with POST, PUT, or PATCH requests.
|
|
1186
|
+
*/
|
|
1187
|
+
data?: any;
|
|
1188
|
+
/**
|
|
1189
|
+
* File to be sent in the request.
|
|
1190
|
+
*/
|
|
1191
|
+
file?: File;
|
|
1192
|
+
/**
|
|
1193
|
+
* HTTP method to be used for the request.
|
|
1194
|
+
* Example: 'GET', 'POST', 'PUT', 'PATCH', 'DELETE'
|
|
1195
|
+
*/
|
|
1196
|
+
method?: M;
|
|
1197
|
+
/**
|
|
1198
|
+
* HTTP headers to be included in the request.
|
|
1199
|
+
*/
|
|
1200
|
+
headers?: RequestHeaders;
|
|
1201
|
+
/**
|
|
1202
|
+
* Indicates whether to include credentials such as cookies, authentication headers,
|
|
1203
|
+
* or TLS client certificates in cross-site Access-Control requests.
|
|
1204
|
+
*/
|
|
1205
|
+
withCredentials?: boolean;
|
|
1206
|
+
/**
|
|
1207
|
+
* The type of data that the server will respond with.
|
|
1208
|
+
* Can be either 'json' or 'blob'.
|
|
1209
|
+
*/
|
|
1210
|
+
responseType?: 'json' | 'blob';
|
|
1211
|
+
/**
|
|
1212
|
+
* Whether to cache the request.
|
|
1213
|
+
* When set to true, the response will be stored in the cache.
|
|
1214
|
+
*/
|
|
1215
|
+
cache?: boolean;
|
|
1216
|
+
/**
|
|
1217
|
+
* Signal object that allows you to communicate with a DOM request (such as fetch) and abort it if desired via an AbortController.
|
|
1218
|
+
*/
|
|
1219
|
+
signal?: AbortSignal;
|
|
1220
|
+
/**
|
|
1221
|
+
* Parameters to be included in the request URL.
|
|
1222
|
+
*/
|
|
1223
|
+
params?: RequestItemsParams<K>;
|
|
1224
|
+
/**
|
|
1225
|
+
* A function to be called to monitor the progress of the request.
|
|
1226
|
+
* @param percentComplete - The percentage of the request that has been completed.
|
|
1227
|
+
* @param event - The progress event.
|
|
1228
|
+
*/
|
|
1229
|
+
onProgress?: (percentComplete: number, event: ProgressEvent) => void;
|
|
1230
|
+
/**
|
|
1231
|
+
* Name to use for caching the request.
|
|
1232
|
+
*/
|
|
1233
|
+
cacheName?: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* Properties to override default cache behavior.
|
|
1236
|
+
*/
|
|
1237
|
+
cacheProps?: Record<string, unknown>;
|
|
935
1238
|
}
|
|
936
1239
|
type RequestItemAdditionalParams = {
|
|
937
|
-
|
|
1240
|
+
[name: string]: any;
|
|
938
1241
|
} & {
|
|
939
|
-
|
|
1242
|
+
paramList?: [string, any][];
|
|
940
1243
|
};
|
|
941
|
-
type RequestItemsParams<K extends keyof RequestItemsParamsMap> = (
|
|
1244
|
+
type RequestItemsParams<K extends keyof RequestItemsParamsMap> = (
|
|
1245
|
+
| RequestItemsParamsMap[K]
|
|
1246
|
+
| Record<string, unknown>
|
|
1247
|
+
) &
|
|
1248
|
+
RequestItemAdditionalParams;
|
|
942
1249
|
interface LoadingQueue {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
1250
|
+
name: string;
|
|
1251
|
+
waiting: Array<{
|
|
1252
|
+
resolve: (...args: any[]) => Promise<any>;
|
|
1253
|
+
reject: (...args: any[]) => Promise<Error>;
|
|
1254
|
+
timestamp: Date;
|
|
1255
|
+
}>;
|
|
949
1256
|
}
|
|
950
1257
|
interface UserInfo {
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1258
|
+
display_name: string;
|
|
1259
|
+
id: number;
|
|
1260
|
+
/** @defaultValue 'guest' */
|
|
1261
|
+
keyname: 'guest' | string;
|
|
1262
|
+
clientId?: string;
|
|
956
1263
|
}
|
|
957
1264
|
interface GetChildrenOfOptions extends Pick<RequestOptions, 'cache'> {
|
|
958
|
-
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
declare class ResourcesControl {
|
|
962
|
-
cache: Cache<Promise<ResourceItem | undefined>, {
|
|
963
|
-
id?: number | string;
|
|
964
|
-
}>;
|
|
965
|
-
connector: NgwConnector;
|
|
966
|
-
constructor({ connector, cacheId, }: {
|
|
967
|
-
connector: NgwConnector;
|
|
968
|
-
cacheId?: string;
|
|
969
|
-
});
|
|
970
|
-
/**
|
|
971
|
-
* Receive resource from NGW by id, keyname or search-object parameter.
|
|
972
|
-
* @param resource - Resource id, keyname or search-object
|
|
973
|
-
*
|
|
974
|
-
* @remarks
|
|
975
|
-
* Fetching resource would be cached to speed up next call
|
|
976
|
-
*/
|
|
977
|
-
getOne(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<ResourceItem | undefined>;
|
|
978
|
-
getOneOrFail(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<ResourceItem>;
|
|
979
|
-
/**
|
|
980
|
-
* A fast way to retrieve resource ID for any resource definition.
|
|
981
|
-
* @param resource - Any available resource definition
|
|
982
|
-
*
|
|
983
|
-
* @remarks
|
|
984
|
-
* There are situations when exactly the resource id is needed
|
|
985
|
-
* (for example, to compose the correct request to the api)
|
|
986
|
-
* then this method will come in handy to facilitate the extraction of the identifier
|
|
987
|
-
* if the resource is specified through a keyname or other parameters.
|
|
988
|
-
*/
|
|
989
|
-
getId(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<number | undefined>;
|
|
990
|
-
/**
|
|
991
|
-
* A fast way to retrieve resource ID for any resource definition.
|
|
992
|
-
* @param resource - Any available resource definition
|
|
993
|
-
*
|
|
994
|
-
* @remarks
|
|
995
|
-
* Similar with {@link NgwConnector.getResourceId | getResourceId} but rise error if resource is not exist.
|
|
996
|
-
* To not make one more checks if the resource is definitely exists
|
|
997
|
-
*/
|
|
998
|
-
getIdOrFail(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<number>;
|
|
999
|
-
getMany(resource: DeepPartial<Resource>, requestOptions?: RequestOptions<'GET'>): Promise<ResourceItem[]>;
|
|
1000
|
-
getParent(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<ResourceItem | undefined>;
|
|
1001
|
-
getChildrenOf(resource: ResourceDefinition, requestOptions?: GetChildrenOfOptions): Promise<ResourceItem[]>;
|
|
1002
|
-
update(resource: ResourceDefinition, data: DeepPartial<ResourceItem>): Promise<ResourceItem | undefined>;
|
|
1003
|
-
/**
|
|
1004
|
-
* Fast way to delete resource from NGW and clean cache.
|
|
1005
|
-
* @param resource - Resource definition
|
|
1006
|
-
*/
|
|
1007
|
-
delete(resource: ResourceDefinition): Promise<void>;
|
|
1008
|
-
private _getChildrenOf;
|
|
1009
|
-
private _cleanResourceItemCache;
|
|
1010
|
-
private _fetchResourceById;
|
|
1011
|
-
private _fetchResourceBy;
|
|
1012
|
-
private _resourceCacheFilter;
|
|
1265
|
+
recursive?: boolean;
|
|
1013
1266
|
}
|
|
1014
1267
|
|
|
1015
1268
|
/**
|
|
1016
1269
|
* Thrown when...
|
|
1017
1270
|
*/
|
|
1018
1271
|
declare class NgwError extends Error {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1272
|
+
name: string;
|
|
1273
|
+
title: string;
|
|
1274
|
+
message: string;
|
|
1275
|
+
detail: string;
|
|
1276
|
+
exception: NgwExceptions;
|
|
1277
|
+
status_code: number | 404 | 500;
|
|
1278
|
+
data?: Record<string, any>;
|
|
1279
|
+
guru_meditation: string;
|
|
1280
|
+
constructor(er?: Partial<NgwError>);
|
|
1028
1281
|
}
|
|
1029
1282
|
|
|
1030
1283
|
/**
|
|
1031
1284
|
* Thrown when ...
|
|
1032
1285
|
*/
|
|
1033
1286
|
declare class ResourceNotFoundError extends NgwError {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1287
|
+
name: string;
|
|
1288
|
+
exception: NgwExceptions;
|
|
1289
|
+
constructor(obj?: ResourceNotFoundError);
|
|
1037
1290
|
}
|
|
1038
1291
|
|
|
1039
1292
|
declare class NgwConnector {
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
*
|
|
1129
|
-
* ```
|
|
1130
|
-
*/
|
|
1131
|
-
apiRequest<K extends keyof RequestItemsParamsMap, P extends RequestItemKeys = RequestItemKeys>(name: K, params_?: RequestItemsParams<K>, requestOptions?: RequestOptions): Promise<P[K]>;
|
|
1132
|
-
/**
|
|
1133
|
-
* Shortcut method for send POST request to NGW.
|
|
1134
|
-
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1135
|
-
* @param options - Request options
|
|
1136
|
-
* @param params - Request item params or query params
|
|
1137
|
-
*
|
|
1138
|
-
* @example
|
|
1139
|
-
* ```javascript
|
|
1140
|
-
* connector.post('resource.collection', { data: POST_PAYLOAD })
|
|
1141
|
-
* .then((newResource) => console.log(newResource))
|
|
1142
|
-
* .catch((error) => console.warn(error));
|
|
1143
|
-
* ```
|
|
1144
|
-
*/
|
|
1145
|
-
post<K extends keyof RequestItemsParamsMap>(name: K, options?: RequestOptions<'POST', K>, params?: RequestItemsParams<K>): Promise<PostRequestItemsResponseMap[K]>;
|
|
1146
|
-
/**
|
|
1147
|
-
* Shortcut method for send GET request to NGW.
|
|
1148
|
-
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1149
|
-
* @param options - Request options
|
|
1150
|
-
* @param params - Request item params or query params
|
|
1151
|
-
*/
|
|
1152
|
-
get<K extends keyof RequestItemsParamsMap>(name: K, options?: RequestOptions<'GET', K> | undefined | null, params?: RequestItemsParams<K>): Promise<GetRequestItemsResponseMap[K]>;
|
|
1153
|
-
/**
|
|
1154
|
-
* Shortcut method for send PATCH request to NGW.
|
|
1155
|
-
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1156
|
-
* @param options - Request options
|
|
1157
|
-
* @param params - Request item params or query params
|
|
1158
|
-
*/
|
|
1159
|
-
patch<K extends keyof RequestItemsParamsMap>(name: K, options?: RequestOptions<'PATCH', K>, params?: RequestItemsParams<K>): Promise<PatchRequestItemsResponseMap[K]>;
|
|
1160
|
-
/**
|
|
1161
|
-
* Shortcut method for send PUT request to NGW.
|
|
1162
|
-
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1163
|
-
* @param options - Request options
|
|
1164
|
-
* @param params - Request item params or query params
|
|
1165
|
-
*/
|
|
1166
|
-
put<K extends keyof RequestItemsParamsMap>(name: K, options?: RequestOptions<'PUT', K>, params?: RequestItemsParams<K>): Promise<PutRequestItemsResponseMap[K]>;
|
|
1167
|
-
/**
|
|
1168
|
-
* Shortcut method for send DELETE request to NGW.
|
|
1169
|
-
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1170
|
-
* @param options - Request options
|
|
1171
|
-
* @param params - Request item params or query params
|
|
1172
|
-
*/
|
|
1173
|
-
delete<K extends keyof RequestItemsParamsMap>(name: K, options?: RequestOptions<'DELETE', K> | undefined | null, params?: RequestItemsParams<K>): Promise<DeleteRequestItemsResponseMap[K]>;
|
|
1174
|
-
/**
|
|
1175
|
-
* Send request to NGW.
|
|
1176
|
-
* @param url - URL address to NGW
|
|
1177
|
-
* @param params - Query params
|
|
1178
|
-
* @param options - Request options
|
|
1179
|
-
*/
|
|
1180
|
-
makeQuery<R = unknown>(url: string, params?: Params | null, options?: RequestOptions): Promise<R>;
|
|
1181
|
-
/**
|
|
1182
|
-
* {@link ResourcesControl.getOne}
|
|
1183
|
-
*/
|
|
1184
|
-
getResource(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<ResourceItem | undefined>;
|
|
1185
|
-
/**
|
|
1186
|
-
* {@link ResourcesControl.getOneOrFail}
|
|
1187
|
-
*/
|
|
1188
|
-
getResourceOrFail(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<ResourceItem>;
|
|
1189
|
-
/**
|
|
1190
|
-
* @deprecated - use {@link getResource}
|
|
1191
|
-
*/
|
|
1192
|
-
getResourceBy(resource: DeepPartial<Resource>): Promise<ResourceItem | undefined>;
|
|
1193
|
-
/**
|
|
1194
|
-
* @deprecated - use {@link getResource}
|
|
1195
|
-
*/
|
|
1196
|
-
getResourceByKeyname(keyname: string): Promise<ResourceItem | undefined>;
|
|
1197
|
-
/**
|
|
1198
|
-
* @deprecated - use {@link getResource}
|
|
1199
|
-
*/
|
|
1200
|
-
getResourceById(id: number): Promise<ResourceItem | undefined>;
|
|
1201
|
-
/**
|
|
1202
|
-
* {@link ResourcesControl.getId}
|
|
1203
|
-
*/
|
|
1204
|
-
getResourceId(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<number | undefined>;
|
|
1205
|
-
/**
|
|
1206
|
-
* {@link ResourcesControl.getIdOrFail}
|
|
1207
|
-
*/
|
|
1208
|
-
getResourceIdOrFail(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<number>;
|
|
1209
|
-
/**
|
|
1210
|
-
* {@link ResourcesControl.getMany}
|
|
1211
|
-
*/
|
|
1212
|
-
getResourcesBy(resource: DeepPartial<Resource>, requestOptions?: RequestOptions<'GET'>): Promise<ResourceItem[]>;
|
|
1213
|
-
/**
|
|
1214
|
-
* {@link ResourcesControl.getParent}
|
|
1215
|
-
*/
|
|
1216
|
-
getResourceParent(resource: ResourceDefinition, requestOptions?: RequestOptions<'GET'>): Promise<ResourceItem | undefined>;
|
|
1217
|
-
/**
|
|
1218
|
-
* {@link ResourcesControl.getChildrenOf}
|
|
1219
|
-
*/
|
|
1220
|
-
getResourceChildren(resource: ResourceDefinition, requestOptions?: GetChildrenOfOptions): Promise<ResourceItem[]>;
|
|
1221
|
-
/**
|
|
1222
|
-
* {@link ResourcesControl.update}
|
|
1223
|
-
*/
|
|
1224
|
-
updateResource(resource: ResourceIdKeynameDef, data: DeepPartial<ResourceItem>): Promise<ResourceItem | undefined>;
|
|
1225
|
-
/**
|
|
1226
|
-
* {@link ResourcesControl.delete}
|
|
1227
|
-
*/
|
|
1228
|
-
deleteResource(resource: ResourceIdKeynameDef): Promise<void>;
|
|
1229
|
-
private _login;
|
|
1230
|
-
private _cleanActiveRequest;
|
|
1231
|
-
private _handleHttpError;
|
|
1293
|
+
options: NgwConnectorOptions;
|
|
1294
|
+
static errors: {
|
|
1295
|
+
NgwError: typeof NgwError;
|
|
1296
|
+
ResourceNotFoundError: typeof ResourceNotFoundError;
|
|
1297
|
+
};
|
|
1298
|
+
id: number;
|
|
1299
|
+
emitter: EventEmitter<[never]>;
|
|
1300
|
+
user?: UserInfo;
|
|
1301
|
+
cache: Cache;
|
|
1302
|
+
withCredentials?: boolean;
|
|
1303
|
+
private client;
|
|
1304
|
+
private routeStr;
|
|
1305
|
+
private activeRequests;
|
|
1306
|
+
private requestTransform?;
|
|
1307
|
+
constructor(options: NgwConnectorOptions);
|
|
1308
|
+
static create(options: NgwConnectorOptions): NgwConnector;
|
|
1309
|
+
/**
|
|
1310
|
+
* Clear the cache.
|
|
1311
|
+
*/
|
|
1312
|
+
clearCache(): void;
|
|
1313
|
+
setRequestTransform(
|
|
1314
|
+
requestTransform: RequestTransformFunction | undefined | null,
|
|
1315
|
+
): void;
|
|
1316
|
+
/**
|
|
1317
|
+
* Fast way to specify the connection address to NextGIS Web.
|
|
1318
|
+
* The current connection will be severed.
|
|
1319
|
+
* @param baseUrl - NGW url
|
|
1320
|
+
*/
|
|
1321
|
+
setNgw(baseUrl: string): void;
|
|
1322
|
+
/**
|
|
1323
|
+
* Establishing a connection with NextGIS Web to fulfill all other requests.
|
|
1324
|
+
* @remarks
|
|
1325
|
+
* This method need not be called manually as it is used when forming a request in {@link apiRequest | apiRequest}.
|
|
1326
|
+
* Can be used to check connection.
|
|
1327
|
+
* @example
|
|
1328
|
+
* ```javascript
|
|
1329
|
+
* const connector = new NgwConnector({ baseUrl: 'https://demo.nextgis.com' });
|
|
1330
|
+
* connector.connect()
|
|
1331
|
+
* .then(() => console.log('Ok'))
|
|
1332
|
+
* .catch((er) => console.log('Connection problem', er));
|
|
1333
|
+
* ```
|
|
1334
|
+
*/
|
|
1335
|
+
connect(): Promise<PyramidRoute>;
|
|
1336
|
+
/**
|
|
1337
|
+
* Quick way to change NextGIS Web user.
|
|
1338
|
+
* @param credentials - New user credentials
|
|
1339
|
+
*/
|
|
1340
|
+
login(credentials: Credentials, options?: RequestOptions): Promise<UserInfo>;
|
|
1341
|
+
/**
|
|
1342
|
+
* Disconnecting a user. Aborting all current requests
|
|
1343
|
+
*/
|
|
1344
|
+
logout(): void;
|
|
1345
|
+
getUserInfo(
|
|
1346
|
+
credentials?: Credentials,
|
|
1347
|
+
options?: RequestOptions,
|
|
1348
|
+
): Promise<UserInfo>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Obtaining the required Headers for authentication of requests in the NGW.
|
|
1351
|
+
*/
|
|
1352
|
+
getAuthorizationHeaders(credentials?: Credentials): RequestHeaders;
|
|
1353
|
+
makeClientId(credentials?: Credentials): string | undefined;
|
|
1354
|
+
/** Stop all api requests */
|
|
1355
|
+
abort(): void;
|
|
1356
|
+
getActiveApiRequests(): {
|
|
1357
|
+
[x: number]: AbortController;
|
|
1358
|
+
};
|
|
1359
|
+
route<N extends RouteName>(
|
|
1360
|
+
name: N,
|
|
1361
|
+
...rest: RouteParameters[N]
|
|
1362
|
+
): RouteResults<N>;
|
|
1363
|
+
/**
|
|
1364
|
+
* Send request to NGW.
|
|
1365
|
+
* @param url - URL address to NGW
|
|
1366
|
+
* @param params - Query params
|
|
1367
|
+
* @param options - Request options
|
|
1368
|
+
*/
|
|
1369
|
+
makeQuery<R = unknown>(
|
|
1370
|
+
url: string,
|
|
1371
|
+
params?: Params | null,
|
|
1372
|
+
options?: RequestOptions,
|
|
1373
|
+
): Promise<R>;
|
|
1374
|
+
protected _loadData<R = unknown>(
|
|
1375
|
+
url: string,
|
|
1376
|
+
options: RequestOptions,
|
|
1377
|
+
): Promise<R>;
|
|
1378
|
+
private _login;
|
|
1379
|
+
private _cleanActiveRequest;
|
|
1380
|
+
private _handleHttpError;
|
|
1232
1381
|
}
|
|
1233
1382
|
|
|
1234
|
-
|
|
1383
|
+
declare class ResourcesControl {
|
|
1384
|
+
cache: Cache<
|
|
1385
|
+
Promise<ResourceItem | undefined>,
|
|
1386
|
+
{
|
|
1387
|
+
id?: number | string;
|
|
1388
|
+
}
|
|
1389
|
+
>;
|
|
1390
|
+
connector: NgwConnectorExtended;
|
|
1391
|
+
constructor({
|
|
1392
|
+
connector,
|
|
1393
|
+
cacheId,
|
|
1394
|
+
}: {
|
|
1395
|
+
connector: NgwConnectorExtended;
|
|
1396
|
+
cacheId?: string;
|
|
1397
|
+
});
|
|
1398
|
+
/**
|
|
1399
|
+
* Receive resource from NGW by id, keyname or search-object parameter.
|
|
1400
|
+
* @param resource - Resource id, keyname or search-object
|
|
1401
|
+
*
|
|
1402
|
+
* @remarks
|
|
1403
|
+
* Fetching resource would be cached to speed up next call
|
|
1404
|
+
*/
|
|
1405
|
+
getOne(
|
|
1406
|
+
resource: ResourceDefinition,
|
|
1407
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1408
|
+
): Promise<ResourceItem | undefined>;
|
|
1409
|
+
getOneOrFail(
|
|
1410
|
+
resource: ResourceDefinition,
|
|
1411
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1412
|
+
): Promise<ResourceItem>;
|
|
1413
|
+
/**
|
|
1414
|
+
* A fast way to retrieve resource ID for any resource definition.
|
|
1415
|
+
* @param resource - Any available resource definition
|
|
1416
|
+
*
|
|
1417
|
+
* @remarks
|
|
1418
|
+
* There are situations when exactly the resource id is needed
|
|
1419
|
+
* (for example, to compose the correct request to the api)
|
|
1420
|
+
* then this method will come in handy to facilitate the extraction of the identifier
|
|
1421
|
+
* if the resource is specified through a keyname or other parameters.
|
|
1422
|
+
*/
|
|
1423
|
+
getId(
|
|
1424
|
+
resource: ResourceDefinition,
|
|
1425
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1426
|
+
): Promise<number | undefined>;
|
|
1427
|
+
/**
|
|
1428
|
+
* A fast way to retrieve resource ID for any resource definition.
|
|
1429
|
+
* @param resource - Any available resource definition
|
|
1430
|
+
*
|
|
1431
|
+
* @remarks
|
|
1432
|
+
* Similar with {@link NgwConnector.getResourceId | getResourceId} but rise error if resource is not exist.
|
|
1433
|
+
* To not make one more checks if the resource is definitely exists
|
|
1434
|
+
*/
|
|
1435
|
+
getIdOrFail(
|
|
1436
|
+
resource: ResourceDefinition,
|
|
1437
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1438
|
+
): Promise<number>;
|
|
1439
|
+
getMany(
|
|
1440
|
+
resource: DeepPartial<Resource>,
|
|
1441
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1442
|
+
): Promise<ResourceItem[]>;
|
|
1443
|
+
getParent(
|
|
1444
|
+
resource: ResourceDefinition,
|
|
1445
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1446
|
+
): Promise<ResourceItem | undefined>;
|
|
1447
|
+
getChildrenOf(
|
|
1448
|
+
resource: ResourceDefinition,
|
|
1449
|
+
requestOptions?: GetChildrenOfOptions,
|
|
1450
|
+
): Promise<ResourceItem[]>;
|
|
1451
|
+
update(
|
|
1452
|
+
resource: ResourceDefinition,
|
|
1453
|
+
data: DeepPartial<ResourceItem>,
|
|
1454
|
+
): Promise<ResourceItem | undefined>;
|
|
1455
|
+
/**
|
|
1456
|
+
* Fast way to delete resource from NGW and clean cache.
|
|
1457
|
+
* @param resource - Resource definition
|
|
1458
|
+
*/
|
|
1459
|
+
delete(resource: ResourceDefinition): Promise<void>;
|
|
1460
|
+
private _getChildrenOf;
|
|
1461
|
+
private _cleanResourceItemCache;
|
|
1462
|
+
private _fetchResourceById;
|
|
1463
|
+
private _fetchResourceBy;
|
|
1464
|
+
private _resourceCacheFilter;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
declare class NgwConnectorExtended extends NgwConnector {
|
|
1468
|
+
options: NgwConnectorOptions;
|
|
1469
|
+
resources: ResourcesControl;
|
|
1470
|
+
constructor(options: NgwConnectorOptions);
|
|
1471
|
+
/**
|
|
1472
|
+
* Clear the cache.
|
|
1473
|
+
*/
|
|
1474
|
+
clearCache(): void;
|
|
1475
|
+
/**
|
|
1476
|
+
* Send request to NGW api router.
|
|
1477
|
+
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1478
|
+
* @param params - Request item params or query params
|
|
1479
|
+
* @param requestOptions - Request options
|
|
1480
|
+
*
|
|
1481
|
+
* @example
|
|
1482
|
+
* ```javascript
|
|
1483
|
+
*
|
|
1484
|
+
* // there is such an NGW route item
|
|
1485
|
+
* // "feature_layer.feature.item": [
|
|
1486
|
+
* // "/api/resource/{0}/feature/{1}",
|
|
1487
|
+
* // "id",
|
|
1488
|
+
* // "fid"
|
|
1489
|
+
* // ],
|
|
1490
|
+
*
|
|
1491
|
+
* const connector = new NgwConnector({ baseUrl: 'https://example.nextgis.com' });
|
|
1492
|
+
* connector.apiRequest('feature_layer.feature.item', {
|
|
1493
|
+
* // request params for {0} and {1}
|
|
1494
|
+
* 'id': 2011,
|
|
1495
|
+
* 'fid': 101,
|
|
1496
|
+
* // query params
|
|
1497
|
+
* 'srs': 4326,
|
|
1498
|
+
* 'geom_format': 'geojson',
|
|
1499
|
+
* }, { method: 'GET' });
|
|
1500
|
+
* // send get-request to 'https://example.nextgis.com/api/resource/2011/feature/101?srs=4326&geom_format=geojson'
|
|
1501
|
+
*
|
|
1502
|
+
* ```
|
|
1503
|
+
*/
|
|
1504
|
+
apiRequest<
|
|
1505
|
+
K extends keyof RequestItemsParamsMap,
|
|
1506
|
+
P extends RequestItemKeys = RequestItemKeys,
|
|
1507
|
+
>(
|
|
1508
|
+
name: K,
|
|
1509
|
+
params_?: RequestItemsParams<K>,
|
|
1510
|
+
requestOptions?: RequestOptions,
|
|
1511
|
+
): Promise<P[K]>;
|
|
1512
|
+
/**
|
|
1513
|
+
* Shortcut method for send POST request to NGW.
|
|
1514
|
+
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1515
|
+
* @param options - Request options
|
|
1516
|
+
* @param params - Request item params or query params
|
|
1517
|
+
*
|
|
1518
|
+
* @example
|
|
1519
|
+
* ```javascript
|
|
1520
|
+
* connector.post('resource.collection', { data: POST_PAYLOAD })
|
|
1521
|
+
* .then((newResource) => console.log(newResource))
|
|
1522
|
+
* .catch((error) => console.warn(error));
|
|
1523
|
+
* ```
|
|
1524
|
+
*/
|
|
1525
|
+
post<K extends keyof RequestItemsParamsMap>(
|
|
1526
|
+
name: K,
|
|
1527
|
+
options?: RequestOptions<'POST', K>,
|
|
1528
|
+
params?: RequestItemsParams<K>,
|
|
1529
|
+
): Promise<PostRequestItemsResponseMap[K]>;
|
|
1530
|
+
/**
|
|
1531
|
+
* Shortcut method for send GET request to NGW.
|
|
1532
|
+
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1533
|
+
* @param options - Request options
|
|
1534
|
+
* @param params - Request item params or query params
|
|
1535
|
+
*/
|
|
1536
|
+
get<K extends keyof RequestItemsParamsMap>(
|
|
1537
|
+
name: K,
|
|
1538
|
+
options?: RequestOptions<'GET', K> | undefined | null,
|
|
1539
|
+
params?: RequestItemsParams<K>,
|
|
1540
|
+
): Promise<GetRequestItemsResponseMap[K]>;
|
|
1541
|
+
/**
|
|
1542
|
+
* Shortcut method for send PATCH request to NGW.
|
|
1543
|
+
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1544
|
+
* @param options - Request options
|
|
1545
|
+
* @param params - Request item params or query params
|
|
1546
|
+
*/
|
|
1547
|
+
patch<K extends keyof RequestItemsParamsMap>(
|
|
1548
|
+
name: K,
|
|
1549
|
+
options?: RequestOptions<'PATCH', K>,
|
|
1550
|
+
params?: RequestItemsParams<K>,
|
|
1551
|
+
): Promise<PatchRequestItemsResponseMap[K]>;
|
|
1552
|
+
/**
|
|
1553
|
+
* Shortcut method for send PUT request to NGW.
|
|
1554
|
+
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1555
|
+
* @param options - Request options
|
|
1556
|
+
* @param params - Request item params or query params
|
|
1557
|
+
*/
|
|
1558
|
+
put<K extends keyof RequestItemsParamsMap>(
|
|
1559
|
+
name: K,
|
|
1560
|
+
options?: RequestOptions<'PUT', K>,
|
|
1561
|
+
params?: RequestItemsParams<K>,
|
|
1562
|
+
): Promise<PutRequestItemsResponseMap[K]>;
|
|
1563
|
+
/**
|
|
1564
|
+
* Shortcut method for send DELETE request to NGW.
|
|
1565
|
+
* @param name - NGW route name from {@link https://docs.nextgis.com/docs_ngweb_dev/doc/developer/resource.html#routes | routes}
|
|
1566
|
+
* @param options - Request options
|
|
1567
|
+
* @param params - Request item params or query params
|
|
1568
|
+
*/
|
|
1569
|
+
delete<K extends keyof RequestItemsParamsMap>(
|
|
1570
|
+
name: K,
|
|
1571
|
+
options?: RequestOptions<'DELETE', K> | undefined | null,
|
|
1572
|
+
params?: RequestItemsParams<K>,
|
|
1573
|
+
): Promise<DeleteRequestItemsResponseMap[K]>;
|
|
1574
|
+
/**
|
|
1575
|
+
* {@link ResourcesControl.getOne}
|
|
1576
|
+
*/
|
|
1577
|
+
getResource(
|
|
1578
|
+
resource: ResourceDefinition,
|
|
1579
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1580
|
+
): Promise<ResourceItem | undefined>;
|
|
1581
|
+
/**
|
|
1582
|
+
* {@link ResourcesControl.getOneOrFail}
|
|
1583
|
+
*/
|
|
1584
|
+
getResourceOrFail(
|
|
1585
|
+
resource: ResourceDefinition,
|
|
1586
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1587
|
+
): Promise<ResourceItem>;
|
|
1588
|
+
/**
|
|
1589
|
+
* @deprecated - use {@link getResource}
|
|
1590
|
+
*/
|
|
1591
|
+
getResourceBy(
|
|
1592
|
+
resource: DeepPartial<Resource>,
|
|
1593
|
+
): Promise<ResourceItem | undefined>;
|
|
1594
|
+
/**
|
|
1595
|
+
* @deprecated - use {@link getResource}
|
|
1596
|
+
*/
|
|
1597
|
+
getResourceByKeyname(keyname: string): Promise<ResourceItem | undefined>;
|
|
1598
|
+
/**
|
|
1599
|
+
* @deprecated - use {@link getResource}
|
|
1600
|
+
*/
|
|
1601
|
+
getResourceById(id: number): Promise<ResourceItem | undefined>;
|
|
1602
|
+
/**
|
|
1603
|
+
* {@link ResourcesControl.getId}
|
|
1604
|
+
*/
|
|
1605
|
+
getResourceId(
|
|
1606
|
+
resource: ResourceDefinition,
|
|
1607
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1608
|
+
): Promise<number | undefined>;
|
|
1609
|
+
/**
|
|
1610
|
+
* {@link ResourcesControl.getIdOrFail}
|
|
1611
|
+
*/
|
|
1612
|
+
getResourceIdOrFail(
|
|
1613
|
+
resource: ResourceDefinition,
|
|
1614
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1615
|
+
): Promise<number>;
|
|
1616
|
+
/**
|
|
1617
|
+
* {@link ResourcesControl.getMany}
|
|
1618
|
+
*/
|
|
1619
|
+
getResourcesBy(
|
|
1620
|
+
resource: DeepPartial<Resource>,
|
|
1621
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1622
|
+
): Promise<ResourceItem[]>;
|
|
1623
|
+
/**
|
|
1624
|
+
* {@link ResourcesControl.getParent}
|
|
1625
|
+
*/
|
|
1626
|
+
getResourceParent(
|
|
1627
|
+
resource: ResourceDefinition,
|
|
1628
|
+
requestOptions?: RequestOptions<'GET'>,
|
|
1629
|
+
): Promise<ResourceItem | undefined>;
|
|
1630
|
+
/**
|
|
1631
|
+
* {@link ResourcesControl.getChildrenOf}
|
|
1632
|
+
*/
|
|
1633
|
+
getResourceChildren(
|
|
1634
|
+
resource: ResourceDefinition,
|
|
1635
|
+
requestOptions?: GetChildrenOfOptions,
|
|
1636
|
+
): Promise<ResourceItem[]>;
|
|
1637
|
+
/**
|
|
1638
|
+
* {@link ResourcesControl.update}
|
|
1639
|
+
*/
|
|
1640
|
+
updateResource(
|
|
1641
|
+
resource: ResourceIdKeynameDef,
|
|
1642
|
+
data: DeepPartial<ResourceItem>,
|
|
1643
|
+
): Promise<ResourceItem | undefined>;
|
|
1644
|
+
/**
|
|
1645
|
+
* {@link ResourcesControl.delete}
|
|
1646
|
+
*/
|
|
1647
|
+
deleteResource(resource: ResourceIdKeynameDef): Promise<void>;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
export {
|
|
1651
|
+
type BaseRequestOptions,
|
|
1652
|
+
type BasemapResource,
|
|
1653
|
+
type BasemapWebmap,
|
|
1654
|
+
type BasemapWebmapItem,
|
|
1655
|
+
type BookmarkProperties,
|
|
1656
|
+
type CreatedResource,
|
|
1657
|
+
type Credentials,
|
|
1658
|
+
type DeleteRequestItemsResponseMap,
|
|
1659
|
+
type FeatureItem,
|
|
1660
|
+
type FeatureItemAttachment,
|
|
1661
|
+
type FeatureItemExtensions,
|
|
1662
|
+
type FeatureItemToNgw,
|
|
1663
|
+
type FeatureLayerCount,
|
|
1664
|
+
type FeatureLayerField,
|
|
1665
|
+
type FeatureLayersIdentify,
|
|
1666
|
+
type FeatureLayersIdentifyItems,
|
|
1667
|
+
type FeatureResource,
|
|
1668
|
+
type FileBucket,
|
|
1669
|
+
type FileMeta,
|
|
1670
|
+
type FileUploadResp,
|
|
1671
|
+
type GeometryType,
|
|
1672
|
+
type GetChildrenOfOptions,
|
|
1673
|
+
type GetRequestItemsResponseMap,
|
|
1674
|
+
type IdOnly,
|
|
1675
|
+
type LayerFeature,
|
|
1676
|
+
type LayerLegend,
|
|
1677
|
+
type LegendItem,
|
|
1678
|
+
type LegendItemSymbol,
|
|
1679
|
+
type LoadingQueue,
|
|
1680
|
+
type LookupTableResource,
|
|
1681
|
+
type NgwConnectorOptions,
|
|
1682
|
+
type NgwDateFormat,
|
|
1683
|
+
type NgwDateTimeFormat,
|
|
1684
|
+
type NgwExceptions,
|
|
1685
|
+
type NgwExtent,
|
|
1686
|
+
type NgwFile,
|
|
1687
|
+
type NgwLayerIdentifyError,
|
|
1688
|
+
type NgwTimeFormat,
|
|
1689
|
+
type Params,
|
|
1690
|
+
type PatchRequestItemsResponseMap,
|
|
1691
|
+
type Permission,
|
|
1692
|
+
type PostRequestItemsResponseMap,
|
|
1693
|
+
type PutRequestItemsResponseMap,
|
|
1694
|
+
type PyramidRoute,
|
|
1695
|
+
type PyramidSettings,
|
|
1696
|
+
type PyramidSettingsPyramid,
|
|
1697
|
+
type PyramidSettingsPyramidCompanyLogo,
|
|
1698
|
+
type RequestHeaders,
|
|
1699
|
+
type RequestItemAdditionalParams,
|
|
1700
|
+
type RequestItemKeys,
|
|
1701
|
+
type RequestItemsParams,
|
|
1702
|
+
type RequestItemsParamsMap,
|
|
1703
|
+
type RequestItemsResponseMap,
|
|
1704
|
+
type RequestMethods,
|
|
1705
|
+
type RequestOptions,
|
|
1706
|
+
type RequestTransformFunction,
|
|
1707
|
+
type Resmeta,
|
|
1708
|
+
type Resource,
|
|
1709
|
+
type ResourceCls,
|
|
1710
|
+
type ResourceDefinition,
|
|
1711
|
+
type ResourceHierarchy,
|
|
1712
|
+
type ResourceIdKeynameDef,
|
|
1713
|
+
type ResourceItem,
|
|
1714
|
+
type ResourceItemDatatype,
|
|
1715
|
+
type ResourceItemMain,
|
|
1716
|
+
type ResourceStoreItem,
|
|
1717
|
+
type ResourceStoreItemDefault,
|
|
1718
|
+
type ResourceStoreItemProperties,
|
|
1719
|
+
type Router,
|
|
1720
|
+
type SrsItem,
|
|
1721
|
+
type TreeGroup,
|
|
1722
|
+
type TreeItem,
|
|
1723
|
+
type TreeLayer,
|
|
1724
|
+
type UserInfo,
|
|
1725
|
+
type VectorFieldDatatype,
|
|
1726
|
+
type VectorLayer,
|
|
1727
|
+
type VectorLayerResourceItem,
|
|
1728
|
+
type WebmapResource,
|
|
1729
|
+
type WmsClientConnection,
|
|
1730
|
+
type WmsClientLayer,
|
|
1731
|
+
type WmsServerService,
|
|
1732
|
+
type WmsServerServiceLayer,
|
|
1733
|
+
NgwConnectorExtended as default,
|
|
1734
|
+
};
|