jmapcloud-ng-core-types 1.0.1002 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all-enums.ts +47 -22
- package/index.ts +72 -54
- package/package.json +7 -6
- package/public/core.d.ts +1977 -1800
- package/public/jmap/extension.d.ts +4 -2
- package/public/jmap/features.d.ts +19 -0
- package/public/jmap/formJMC.d.ts +138 -0
- package/public/jmap/layer.d.ts +142 -105
- package/public/jmap/map-context.d.ts +6 -84
- package/public/jmap/map.d.ts +52 -18
- package/public/jmap/mouseover.d.ts +6 -3
- package/public/jmap/project.d.ts +19 -3
- package/public/jmap/server.d.ts +23 -28
- package/public/jmap/simple-search.d.ts +2 -2
- package/public/jmap/startup-options.d.ts +50 -4
- package/public/jmap/table.d.ts +31 -0
- package/public/jmap/user.d.ts +106 -25
- package/public/jmap/query.d.ts +0 -41
package/all-enums.ts
CHANGED
|
@@ -139,16 +139,15 @@ export const ALL_LAYER_THEMATIC_FAMILY_TYPES: JLAYER_THEMATIC_FAMILY_TYPES[] = [
|
|
|
139
139
|
export const ALL_LAYER_STYLE_TYPES: JLAYER_STYLE_TYPES[] = [
|
|
140
140
|
JLAYER_STYLE_TYPES.POINT,
|
|
141
141
|
JLAYER_STYLE_TYPES.LINE,
|
|
142
|
-
JLAYER_STYLE_TYPES.SURFACE,
|
|
143
|
-
JLAYER_STYLE_TYPES.ANNOTATION,
|
|
144
142
|
JLAYER_STYLE_TYPES.IMAGE,
|
|
145
|
-
JLAYER_STYLE_TYPES.
|
|
143
|
+
JLAYER_STYLE_TYPES.TEXT,
|
|
144
|
+
JLAYER_STYLE_TYPES.IMAGE
|
|
146
145
|
]
|
|
147
146
|
|
|
148
|
-
export const
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
export const ALL_LAYER_STYLE_ARROW_TYPES: JLAYER_STYLE_ARROW_TYPES[] = [
|
|
148
|
+
JLAYER_STYLE_ARROW_TYPES.NONE,
|
|
149
|
+
JLAYER_STYLE_ARROW_TYPES.FORWARD,
|
|
150
|
+
JLAYER_STYLE_ARROW_TYPES.BACKWARD
|
|
152
151
|
]
|
|
153
152
|
|
|
154
153
|
export const ALL_LAYER_INFORMATION_REPORT_TYPES: JLAYER_INFORMATION_REPORT_TYPES[] = [
|
|
@@ -192,16 +191,16 @@ export const ALL_LAYER_DYNAMIC_FILTER_OPERATORS: JLAYER_DYNAMIC_FILTER_OPERATORS
|
|
|
192
191
|
JLAYER_DYNAMIC_FILTER_OPERATORS.INTERVAL
|
|
193
192
|
]
|
|
194
193
|
|
|
195
|
-
export const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
export const ALL_LAYER_STYLE_LINE_CAP: JLAYER_STYLE_LINE_CAP[] = [
|
|
195
|
+
JLAYER_STYLE_LINE_CAP.BUTT,
|
|
196
|
+
JLAYER_STYLE_LINE_CAP.ROUND,
|
|
197
|
+
JLAYER_STYLE_LINE_CAP.SQUARE
|
|
199
198
|
]
|
|
200
199
|
|
|
201
|
-
export const
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
export const ALL_LAYER_STYLE_LINE_JOIN: JLAYER_STYLE_LINE_JOIN[] = [
|
|
201
|
+
JLAYER_STYLE_LINE_JOIN.MITER,
|
|
202
|
+
JLAYER_STYLE_LINE_JOIN.ROUND,
|
|
203
|
+
JLAYER_STYLE_LINE_JOIN.BEVEL
|
|
205
204
|
]
|
|
206
205
|
|
|
207
206
|
export const ALL_LAYER_METADATA_TYPES: JLAYER_METADATA_TYPES[] = [
|
|
@@ -246,8 +245,6 @@ export const ALL_MAP_CONTEXT_SORT_BY_DIRECTIONS: JMAP_CONTEXT_SORT_BY_DIRECTIONS
|
|
|
246
245
|
JMAP_CONTEXT_SORT_BY_DIRECTIONS.DESC
|
|
247
246
|
]
|
|
248
247
|
|
|
249
|
-
export const ALL_MAP_CONTEXT_VERSIONS: JMAP_CONTEXT_VERSIONS[] = [JMAP_CONTEXT_VERSIONS.V0, JMAP_CONTEXT_VERSIONS.V1]
|
|
250
|
-
|
|
251
248
|
export const ALL_MAP_MODIFICATION_TYPES: JMAP_MODIFICATION_TYPES[] = [
|
|
252
249
|
JMAP_MODIFICATION_TYPES.NONE,
|
|
253
250
|
JMAP_MODIFICATION_TYPES.CENTER,
|
|
@@ -278,14 +275,42 @@ export const ALL_MAP_RASTER_SCHEME_TYPES: JMAP_RASTER_SCHEME_TYPES[] = [
|
|
|
278
275
|
JMAP_RASTER_SCHEME_TYPES.XYZ
|
|
279
276
|
]
|
|
280
277
|
|
|
281
|
-
export const
|
|
278
|
+
export const ALL_SERVER_IDENTITY_PROVIDER_TYPES: JSERVER_IDENTITY_PROVIDER_TYPES[] = [
|
|
279
|
+
JSERVER_IDENTITY_PROVIDER_TYPES.AUTH0_SPA,
|
|
280
|
+
JSERVER_IDENTITY_PROVIDER_TYPES.JMAP_CLOUD,
|
|
281
|
+
JSERVER_IDENTITY_PROVIDER_TYPES.ANONYMOUS
|
|
282
|
+
]
|
|
282
283
|
|
|
283
|
-
export const
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
export const ALL_SERVER_MICRO_SERVICE_STATUSES: JSERVER_MICRO_SERVICE_STATUSES[] = [
|
|
285
|
+
JSERVER_MICRO_SERVICE_STATUSES.STARTING,
|
|
286
|
+
JSERVER_MICRO_SERVICE_STATUSES.UP,
|
|
287
|
+
JSERVER_MICRO_SERVICE_STATUSES.DOWN
|
|
287
288
|
]
|
|
288
289
|
|
|
289
290
|
export const ALL_JORGANIZATION_EXTERNAL_API_KEY_TYPES: JORGANIZATION_EXTERNAL_API_KEY_TYPES[] = [
|
|
290
291
|
JORGANIZATION_EXTERNAL_API_KEY_TYPES.MAPBOX_ACCESS_TOKEN
|
|
291
292
|
]
|
|
293
|
+
|
|
294
|
+
export const ALL_TERRAIN_ILLUMINATION_ANCHOR_TYPES: JTERRAIN_ILLUMINATION_ANCHOR_TYPES[] = [
|
|
295
|
+
JTERRAIN_ILLUMINATION_ANCHOR_TYPES.MAP,
|
|
296
|
+
JTERRAIN_ILLUMINATION_ANCHOR_TYPES.VIEWPORT
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
export const ALL_LOGIN_STATUS: LOGIN_STATUS[] = [
|
|
300
|
+
LOGIN_STATUS.LOGGED_IN,
|
|
301
|
+
LOGIN_STATUS.LOGGED_OUT,
|
|
302
|
+
LOGIN_STATUS.LOGGING_IN,
|
|
303
|
+
LOGIN_STATUS.LOGIN_ERROR,
|
|
304
|
+
LOGIN_STATUS.LOGIN_ERROR_INSUFFICIENT_ROLES,
|
|
305
|
+
LOGIN_STATUS.SWITCHING_ORG
|
|
306
|
+
]
|
|
307
|
+
|
|
308
|
+
export const ALL_ROLES: ROLES[] = [
|
|
309
|
+
ROLES.ORG_ADMIN,
|
|
310
|
+
ROLES.ORG_EDITOR,
|
|
311
|
+
ROLES.ORG_VIEWER,
|
|
312
|
+
ROLES.ACCOUNT_MANAGER,
|
|
313
|
+
ROLES.SYS_ADMIN
|
|
314
|
+
]
|
|
315
|
+
|
|
316
|
+
export const ALL_MEMBER_ROLES: MEMBER_ROLES[] = [ROLES.ORG_ADMIN, ROLES.ORG_EDITOR, ROLES.ORG_VIEWER]
|
package/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Feature, FeatureCollection, LineString, MultiLineString, Point, Polygon } from "geojson"
|
|
2
|
-
import { Map } from "maplibre-gl"
|
|
3
2
|
import { Store } from "redux"
|
|
4
3
|
|
|
5
4
|
export interface JCoreService extends JCoreMainService {
|
|
@@ -14,7 +13,7 @@ export interface JCoreService extends JCoreMainService {
|
|
|
14
13
|
Geometry: JGeometryService
|
|
15
14
|
MouseOver: JMouseOverService
|
|
16
15
|
Form: JFormService
|
|
17
|
-
|
|
16
|
+
FormJMC: JFormJMCService
|
|
18
17
|
Event: JEventService
|
|
19
18
|
History: JHistoryService
|
|
20
19
|
Extension: JExtensionService
|
|
@@ -26,6 +25,7 @@ export interface JCoreService extends JCoreMainService {
|
|
|
26
25
|
MapContext: JMapContextService
|
|
27
26
|
UI: JUIService
|
|
28
27
|
SimpleSearch: JSimpleSearchService
|
|
28
|
+
Table: JTableService
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export interface JUIService {
|
|
@@ -148,9 +148,15 @@ export interface JPhotoService {
|
|
|
148
148
|
export interface JFeatureService {
|
|
149
149
|
getById(layerId: JId, featureId: JId): Promise<GeoJSON.Feature>
|
|
150
150
|
getByIds(layerId: JId, featureIds: JId[]): Promise<GeoJSON.Feature[]>
|
|
151
|
+
getByLayerId(layerId: JId, bbox: JBoundaryBox): Promise<GeoJSON.Feature[]>
|
|
151
152
|
geometryUpdateById(params: JFeatureGeometryUpdateParams): Promise<GeoJSON.Feature>
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
propertiesUpdateById(params: JFeaturePropertiesUpdateParams): Promise<GeoJSON.Feature>
|
|
154
|
+
deleteById(layerId: JId, featureId: JId): Promise<JId>
|
|
155
|
+
// deleteByIds(layerId: JId, featureIds: JId[]): Promise<JFeatureDeleteByIdsResult>
|
|
156
|
+
// TODO: see if the future endpoint will return detail about individual deleted features success or failure
|
|
157
|
+
// https://k2geospatial.atlassian.net/browse/JMAP8-1589
|
|
158
|
+
deleteByIds(layerId: JId, featureIds: JId[]): Promise<JId[]>
|
|
159
|
+
geometryCreate(params: JFeatureGeometryCreateParams): Promise<GeoJSON.Feature>
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
export interface JCoreMainService {
|
|
@@ -177,18 +183,6 @@ export interface JGeolocationService {
|
|
|
177
183
|
goToMyLocation(options?: JPanAndZoomOptions): Promise<JLocation>
|
|
178
184
|
}
|
|
179
185
|
|
|
180
|
-
export interface JQueryService {
|
|
181
|
-
initializeQueryFormById(layerId: JId, queryId: string): Promise<JQuery>
|
|
182
|
-
getAllGroups(): JQueryGroup[]
|
|
183
|
-
groupExist(groupId: JId): boolean
|
|
184
|
-
getQueriesByLayerId(layerId: JId): JQuery[]
|
|
185
|
-
getQueryByLayerId(layerId: JId, queryId: string): JQuery
|
|
186
|
-
getQueriesByGroupId(groupId: JId): JQuery[]
|
|
187
|
-
getQueryByGroupId(groupId: JId, queryId: string): JQuery
|
|
188
|
-
queryExist(groupId: JId, queryId: string): boolean
|
|
189
|
-
fetchFeatures(layerId: JId, queryId: string, data: any): Promise<Feature[]>
|
|
190
|
-
}
|
|
191
|
-
|
|
192
186
|
export interface JAjaxService {
|
|
193
187
|
get(config: JRequestConfig): Promise<any>
|
|
194
188
|
post(config: JRequestConfig): Promise<any>
|
|
@@ -213,7 +207,6 @@ export interface JEventService {
|
|
|
213
207
|
MouseOver: JMouseOverEventModule
|
|
214
208
|
MapContext: JMapContextEventModule
|
|
215
209
|
Server: JServerEventModule
|
|
216
|
-
Query: JQueryEventModule
|
|
217
210
|
}
|
|
218
211
|
|
|
219
212
|
export type JEventFunction = (params?: any) => void | Promise<any>
|
|
@@ -239,15 +232,6 @@ export interface JEventModule {
|
|
|
239
232
|
remove(listenerId: string): void
|
|
240
233
|
}
|
|
241
234
|
|
|
242
|
-
export interface JQueryEventModule extends JEventModule {
|
|
243
|
-
on: {
|
|
244
|
-
queryFormLoad(listenerId: string, fn: (params: JQueryQueryFormHasLoadedEventParams) => void): void
|
|
245
|
-
beforeSubmit(listenerId: string, fn: (params: JQueryBeforeEventParams) => void): void
|
|
246
|
-
success(listenerId: string, fn: (params: JQuerySuccessEventParams) => void): void
|
|
247
|
-
error(listenerId: string, fn: (params: JQueryErrorEventParams) => void): void
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
235
|
export interface JServerEventModule extends JEventModule {
|
|
252
236
|
on: {
|
|
253
237
|
infoReady(listenerId: string, fn: (params: JServerInfoReadyEventParams) => void): void
|
|
@@ -327,6 +311,8 @@ export interface JLayerEventModule extends JEventModule {
|
|
|
327
311
|
sourceChange(listenerId: string, fn: (params: JLayerEventParams) => void): void
|
|
328
312
|
selectabilityWillChange(listenerId: string, fn: (params: JLayerEventSelectabilityParams) => void): void
|
|
329
313
|
layerDeletion(listenerId: string, fn: (params: JLayerEventParams) => void): void
|
|
314
|
+
thematicAddition(listenerId: string, fn: (params: JAddMapThematicEventParams) => void): void
|
|
315
|
+
thematicDeletion(listenerId: string, fn: (params: JLayerThematicEventParams) => void): void
|
|
330
316
|
initialSearchApplied(listenerId: string, fn: (params: JLayerInitialSearchEventParams) => void): void
|
|
331
317
|
dynamicFilterSet(listenerId: string, fn: (params: JLayerDynamicFilterSetParams) => void): void
|
|
332
318
|
dynamicFilterActivationChange(listenerId: string, fn: (params: JLayerDynamicFilterActivationParams) => void): void
|
|
@@ -406,10 +392,10 @@ export interface JCoreState {
|
|
|
406
392
|
map: JMapState
|
|
407
393
|
project: JProjectState
|
|
408
394
|
layer: JLayerState
|
|
395
|
+
table: JTableState
|
|
409
396
|
user: JUserState
|
|
410
397
|
language: JLanguageState
|
|
411
398
|
photo: JPhotoState
|
|
412
|
-
query: JQueryState
|
|
413
399
|
geocoding: JGeocodingState
|
|
414
400
|
simpleSearch: JSimpleSearchState
|
|
415
401
|
geolocation: JGeolocationState
|
|
@@ -433,7 +419,7 @@ export interface JMapContextState {
|
|
|
433
419
|
isApplying: boolean
|
|
434
420
|
activeTab: JMAP_CONTEXT_TABS
|
|
435
421
|
contexts: JMapContext[]
|
|
436
|
-
defaultContextId:
|
|
422
|
+
defaultContextId: string | undefined
|
|
437
423
|
filter: string
|
|
438
424
|
sortBy: JMAP_CONTEXT_SORT_BY_OPTIONS
|
|
439
425
|
sortByDirection: JMAP_CONTEXT_SORT_BY_DIRECTIONS
|
|
@@ -469,7 +455,7 @@ export interface JSimpleSearchState {
|
|
|
469
455
|
isLoading: boolean
|
|
470
456
|
hasLoadingError: boolean
|
|
471
457
|
queryString: string
|
|
472
|
-
results: JSimpleSearchResult
|
|
458
|
+
results: JSimpleSearchResult[]
|
|
473
459
|
}
|
|
474
460
|
|
|
475
461
|
export interface JGeolocationState {
|
|
@@ -498,9 +484,12 @@ export interface JMapState {
|
|
|
498
484
|
scaleControlPosition: JMAP_POSITIONS
|
|
499
485
|
distanceUnit: JMAP_DISTANCE_UNITS
|
|
500
486
|
isNavigationHistoryControlVisible: boolean
|
|
487
|
+
isTerrainAvailable: boolean
|
|
488
|
+
isTerrainActive: boolean
|
|
501
489
|
isScaleControlVisible: boolean
|
|
502
490
|
isMapRotationControlVisible: boolean
|
|
503
|
-
|
|
491
|
+
isTerrainControlVisible: boolean
|
|
492
|
+
isMapInfoControlVisible: boolean
|
|
504
493
|
isInfoControlExpanded: boolean
|
|
505
494
|
defaultZoomOptions: JZoomOptions
|
|
506
495
|
containerWidth: number
|
|
@@ -508,6 +497,7 @@ export interface JMapState {
|
|
|
508
497
|
modificationType: JMAP_MODIFICATION_TYPES
|
|
509
498
|
attributions: JMapAttribution[]
|
|
510
499
|
rasterOpacityByLayerId: { [id: JId]: number }
|
|
500
|
+
projection: JProjection
|
|
511
501
|
}
|
|
512
502
|
|
|
513
503
|
export interface JProjectState {
|
|
@@ -529,6 +519,12 @@ export interface JLayerState {
|
|
|
529
519
|
vectorLayerIds: JId[]
|
|
530
520
|
}
|
|
531
521
|
|
|
522
|
+
export interface JTableState {
|
|
523
|
+
isLoading: boolean
|
|
524
|
+
hasLoadingError: boolean
|
|
525
|
+
tables: JTable[]
|
|
526
|
+
}
|
|
527
|
+
|
|
532
528
|
export interface JPhotoState {
|
|
533
529
|
selectedPhotoId: JId | undefined
|
|
534
530
|
photos: JPhoto[]
|
|
@@ -538,21 +534,23 @@ export interface JPhotoState {
|
|
|
538
534
|
isDownloading: boolean
|
|
539
535
|
}
|
|
540
536
|
|
|
541
|
-
export interface JQueryState {
|
|
542
|
-
groups: JQueryGroup[]
|
|
543
|
-
queriesByLayerId: { [key in JId]: JQuery[] }
|
|
544
|
-
}
|
|
545
|
-
|
|
546
537
|
export interface JUserState extends JTokenInfo {
|
|
547
538
|
isAnonymous: boolean
|
|
539
|
+
anonymousOrganizationId: string
|
|
540
|
+
anonymousProjectId: JId
|
|
548
541
|
isLoggingIn: boolean
|
|
549
542
|
isLoggingIntoOrganization: boolean
|
|
550
543
|
isReloadingSession: boolean
|
|
551
|
-
identity:
|
|
544
|
+
identity: JUser
|
|
552
545
|
currentOrganization: JOrganization // the organization in which the user is currently logged in
|
|
553
546
|
organizationInfos: JOrganizationInfo[] // the info about all organizations the user belongs to
|
|
554
547
|
informations: JUserInfo[]
|
|
555
548
|
changePasswordAllowed: boolean
|
|
549
|
+
identityProviderType: JSERVER_IDENTITY_PROVIDER_TYPES
|
|
550
|
+
// from portal
|
|
551
|
+
loginStatus: LOGIN_STATUS
|
|
552
|
+
loginStatusDetailTranslationKey: string
|
|
553
|
+
callbackAtTokenRefresh: (() => void) | null
|
|
556
554
|
}
|
|
557
555
|
|
|
558
556
|
export interface JLanguageState {
|
|
@@ -567,6 +565,11 @@ export interface JServerState extends JServerInfo {
|
|
|
567
565
|
|
|
568
566
|
export type JHistoryListener = (oldValue: string | undefined, newValue: string | undefined) => void
|
|
569
567
|
|
|
568
|
+
export interface JFormJMCService {
|
|
569
|
+
getJsonForm(dataSourceId: string): Promise<JJsonFormSchemas>
|
|
570
|
+
getForm(layerId: string): Promise<JFormJMC>
|
|
571
|
+
}
|
|
572
|
+
|
|
570
573
|
export interface JFormService {
|
|
571
574
|
// REPO METHODS
|
|
572
575
|
getFormsMetaDataByLayerId(layerId: JId): Promise<JFormMetaData[]>
|
|
@@ -675,7 +678,7 @@ export interface JMapService {
|
|
|
675
678
|
Selection: JMapSelectionService
|
|
676
679
|
Basemap: JMapBasemapService
|
|
677
680
|
Attribution: JMapAttributionService
|
|
678
|
-
getMap(): Map
|
|
681
|
+
getMap(): maplibregl.Map
|
|
679
682
|
getMapJSLib(): any
|
|
680
683
|
getDomContainerId(): string
|
|
681
684
|
getAllDistanceUnits(): JMAP_DISTANCE_UNITS[]
|
|
@@ -688,6 +691,12 @@ export interface JMapService {
|
|
|
688
691
|
getZoom(): number
|
|
689
692
|
getMaplibreSourceIdByJMapLayerId(layerId: JId): string
|
|
690
693
|
isScaleControlVisible(): boolean
|
|
694
|
+
isTerrainAvailable(): boolean
|
|
695
|
+
isTerrainActive(): boolean
|
|
696
|
+
setTerrainActive(active: boolean): void
|
|
697
|
+
isTerrainControlVisible(): boolean
|
|
698
|
+
setSelectionStyle(layerId: JId, style: JLayerSetStyleParams): void
|
|
699
|
+
resetSelectionStyle(layerId: JId): void
|
|
691
700
|
setScaleControlVisibility(isVisible: boolean, position?: JMAP_POSITIONS): void
|
|
692
701
|
setScaleControlUnits(units: "imperial" | "metric" | "nautical"): void
|
|
693
702
|
setScaleControlPosition(position: JMAP_POSITIONS): void
|
|
@@ -698,16 +707,13 @@ export interface JMapService {
|
|
|
698
707
|
setMapRotationControlVisibility(isVisible: boolean): void
|
|
699
708
|
isMapInfoControlVisible(): boolean
|
|
700
709
|
setMapInfoControlVisibility(isVisible: boolean): void
|
|
710
|
+
setTerrainControlVisibility(isVisible: boolean): void
|
|
701
711
|
isMapInfoControlExpanded(): boolean
|
|
702
712
|
setMapInfoControlExpansion(isExpanded: boolean): void
|
|
703
|
-
isLayerRendered(layerId: JId): boolean
|
|
704
|
-
getLayersVisibilityStatus(): JMapLayersVisibilityStatus
|
|
705
|
-
getLayersVisibilityStatusAsArray(): JMapLayerVisibilityStatus[]
|
|
706
713
|
getMaplibreSupportedJMapLayerIds(): JId[]
|
|
707
714
|
getMaplibreSupportedJMapLayerIdBefore(layerId: JId): JId | undefined
|
|
708
715
|
getMaplibreSupportedJMapLayerIdAfter(layerId: JId): JId | undefined
|
|
709
716
|
refreshLayerById(layerId: JId): void
|
|
710
|
-
getRenderedJMapLayerIds(): JId[]
|
|
711
717
|
getRenderedFeatures(layerId: JId, params?: JLocation | JBoundaryBox | JCircle | JGetRenderedFeaturesParams): Feature[]
|
|
712
718
|
getSourceFeatures(layerId: JId, params?: JGetSourceFeaturesParams): Feature[]
|
|
713
719
|
getRenderedFeaturesAttributeValues(
|
|
@@ -817,8 +823,8 @@ export interface JMapFilterService {
|
|
|
817
823
|
}
|
|
818
824
|
|
|
819
825
|
export interface JProjectionService {
|
|
820
|
-
reprojectLocation(location: JLocation, toProjection: string, fromProjection?: string): JLocation
|
|
821
|
-
reprojectBoundaryBox(boundaryBox: JBoundaryBox, toProjection: string, fromProjection?: string): JBoundaryBox
|
|
826
|
+
reprojectLocation(location: JLocation, toProjection: string, fromProjection?: string): Promise<JLocation>
|
|
827
|
+
reprojectBoundaryBox(boundaryBox: JBoundaryBox, toProjection: string, fromProjection?: string): Promise<JBoundaryBox>
|
|
822
828
|
}
|
|
823
829
|
|
|
824
830
|
export interface JProjectService {
|
|
@@ -847,6 +853,8 @@ export interface JProjectService {
|
|
|
847
853
|
isChangeDisabled(): boolean
|
|
848
854
|
setChangeEnabled(): void
|
|
849
855
|
setChangeDisabled(): void
|
|
856
|
+
getElevationAtLocation(location: JLocation): Promise<number | null>
|
|
857
|
+
hasTerrain(): boolean
|
|
850
858
|
}
|
|
851
859
|
|
|
852
860
|
export interface JLayerService {
|
|
@@ -884,6 +892,16 @@ export interface JLayerService {
|
|
|
884
892
|
deleteLayer(layerId: JId): void
|
|
885
893
|
hasInformationReport(layerId: JId): boolean
|
|
886
894
|
openInformationReportInNewTab(layerId: JId, featureIds: JId[]): Promise<string>
|
|
895
|
+
getDataSourceAttributes(dataSourceId: JId): Promise<JAttribute[]>
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
export interface JTableService {
|
|
899
|
+
getTables(): JTable[]
|
|
900
|
+
getTableData(dataSourceId: JId, params: JTableDataParams): Promise<JTableData>
|
|
901
|
+
getById(tableId: JId): JTable
|
|
902
|
+
createRow(dataSourceId: JId, row: { [key: string]: any }): Promise<void>
|
|
903
|
+
updateRow(dataSourceId: JId, rowId: number, row: { [key: string]: any }): Promise<void>
|
|
904
|
+
deleteRow(dataSourceId: JId, rowId: number): Promise<void>
|
|
887
905
|
}
|
|
888
906
|
|
|
889
907
|
export interface JLayerSearchService {
|
|
@@ -891,6 +909,8 @@ export interface JLayerSearchService {
|
|
|
891
909
|
}
|
|
892
910
|
|
|
893
911
|
export interface JLayerThematicService {
|
|
912
|
+
addThematic(params: JLayerAddThematicParams): Promise<void>
|
|
913
|
+
deleteThematic(layerId: JId, thematicId: JId): void
|
|
894
914
|
getAllByLayerId(layerId: JId): JLayerThematic[]
|
|
895
915
|
getById(layerId: JId, thematicId: JId): JLayerThematic
|
|
896
916
|
existsById(layerId: JId, thematicId: JId): boolean
|
|
@@ -910,16 +930,19 @@ export interface JUserService {
|
|
|
910
930
|
getOrganization(): JOrganization
|
|
911
931
|
getFullName(): string
|
|
912
932
|
getUsername(): string
|
|
933
|
+
getEmail(): string
|
|
913
934
|
getPreference(name: string): Promise<string | null>
|
|
914
935
|
hasPreference(name: string): Promise<boolean>
|
|
915
936
|
removePreference(name: string): Promise<string | null>
|
|
916
937
|
setPreference(name: string, value: string | undefined): Promise<void>
|
|
917
938
|
setToken(token: string, organizationId?: string): Promise<JSessionData>
|
|
918
|
-
login(login
|
|
919
|
-
loginIntoOrganization(organizationId: string): Promise<JSessionData>
|
|
939
|
+
login(login?: string, password?: string): Promise<JSessionData> | Promise<void>
|
|
940
|
+
loginIntoOrganization(organizationId: string): Promise<JSessionData> | Promise<void>
|
|
920
941
|
loginWithIdentityProvider(providerId: string): void
|
|
921
942
|
logout(): Promise<void>
|
|
922
943
|
isLoggedIn(): boolean
|
|
944
|
+
isLoggedInOrAnonymous(): boolean
|
|
945
|
+
isAnonymous(): boolean
|
|
923
946
|
getAllInfos(): JUserInfo[]
|
|
924
947
|
addInfo(info: JUserInfo): void
|
|
925
948
|
removeInfo(infoId: string): void
|
|
@@ -927,10 +950,7 @@ export interface JUserService {
|
|
|
927
950
|
changeFullName(newFullName: string): Promise<void>
|
|
928
951
|
getMinimumPasswordLength(): number
|
|
929
952
|
isPasswordCompliant(password: string): boolean
|
|
930
|
-
getPasswordPolicyCompliance(
|
|
931
|
-
password: string
|
|
932
|
-
): JJMapServerPasswordPolicyCompliance | JJMapCloudPasswordPolicyCompliance
|
|
933
|
-
isPseudoUser(): boolean
|
|
953
|
+
getPasswordPolicyCompliance(password: string): JJMapPasswordPolicyCompliance
|
|
934
954
|
getOrganizationId(): string
|
|
935
955
|
}
|
|
936
956
|
|
|
@@ -957,7 +977,7 @@ export interface JMouseOverService {
|
|
|
957
977
|
openPopup(params: JMouseOverOpenPopupParams): void
|
|
958
978
|
openPopupForSelection(params: JMouseOverOpenPopupForSelectionParams): void
|
|
959
979
|
renderForFeaturesAtLocation(containerId: string, location: JLocation): boolean // return true if has mouseover
|
|
960
|
-
renderForFeaturesSelection(containerId: string, selection: JMapSelection): boolean // return true if has mouseover
|
|
980
|
+
renderForFeaturesSelection(containerId: string, selection: JMapSelection, location?: JLocation): boolean // return true if has mouseover
|
|
961
981
|
openInformationReportInNewTab(layerId: JId): Promise<string>
|
|
962
982
|
}
|
|
963
983
|
|
|
@@ -972,10 +992,8 @@ export interface JExtensionService {
|
|
|
972
992
|
export interface JServerService {
|
|
973
993
|
isReady(): boolean
|
|
974
994
|
getVersion(): JServerVersion
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
isLegacy(): boolean
|
|
978
|
-
getMinimumVersion(): JMinimumServerVersion
|
|
995
|
+
//TODO: JIRA JMAP8-1655
|
|
996
|
+
getMinimumVersion(): JServerVersion
|
|
979
997
|
isMinimumVersionRespected(serverInfo?: JServerInfo): boolean
|
|
980
998
|
getShortVersion(): string
|
|
981
999
|
isStandardLoginAvailable(): boolean
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmapcloud-ng-core-types",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
8
|
"pub": "export NODE_ENV='production'; node build/buildfile.js publish;",
|
|
9
|
-
"copy": "export NODE_ENV='production'; node build/buildfile.js copy;",
|
|
10
9
|
"commit-doc": "export NODE_ENV='production'; node build/buildfile.js commit-doc;",
|
|
11
10
|
"doc-test": "export DOC_DIR='./docs/latest'; node build/buildfile.js doc-test;",
|
|
12
11
|
"copy-latest": "node build/buildfile.js copy-latest;"
|
|
@@ -28,12 +27,14 @@
|
|
|
28
27
|
},
|
|
29
28
|
"homepage": "https://github.com/k2geospatial/jmapcloud-ng-core-types#readme",
|
|
30
29
|
"devDependencies": {
|
|
31
|
-
"typedoc": "^0.
|
|
30
|
+
"typedoc": "^0.25.13",
|
|
31
|
+
"patch-package": "^8.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@
|
|
34
|
+
"@auth0/auth0-spa-js": "^2.1.3",
|
|
35
|
+
"@types/geojson": "^7946.0.14",
|
|
35
36
|
"geojson": "^0.5.0",
|
|
36
|
-
"maplibre-gl": "^
|
|
37
|
-
"redux": "^
|
|
37
|
+
"maplibre-gl": "^4.7.1",
|
|
38
|
+
"redux": "^5.0.1"
|
|
38
39
|
}
|
|
39
40
|
}
|