jmapcloud-ng-core-types 2.0.20-qa.1 → 2.0.20-qa.10
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 +2 -0
- package/index.d.ts +140 -135
- package/package.json +5 -4
- package/public/core.d.ts +218 -179
- package/public/global-aliases.d.ts +2 -0
- package/public/jmap/datasource.ts +15 -0
- package/public/jmap/features.d.ts +12 -13
- package/public/jmap/language.d.ts +1 -2
- package/public/jmap/layer.d.ts +67 -37
- package/public/jmap/main.d.ts +1 -0
- package/public/jmap/map-context.d.ts +3 -4
- package/public/jmap/map.d.ts +4 -7
- package/public/jmap/mouseover.d.ts +7 -14
- package/public/jmap/selection.d.ts +2 -5
- package/public/jmap/simple-search.d.ts +2 -3
- package/public/jmap/startup-options.d.ts +1 -2
- package/public/jmap/table.d.ts +10 -3
- package/public/state.d.ts +6 -7
package/all-enums.ts
CHANGED
|
@@ -67,6 +67,7 @@ export const ALL_LAYER_GEOMETRIES: JLAYER_GEOMETRIES[] = [
|
|
|
67
67
|
JLAYER_GEOMETRIES.NONE
|
|
68
68
|
]
|
|
69
69
|
|
|
70
|
+
/** @deprecated Legacy categories. New consumers read the SQL `type` (AttributeType) of JLayer.attributes. */
|
|
70
71
|
export const ALL_LAYER_ATTRIBUTE_TYPES: JLAYER_ATTRIBUTE_TYPES[] = [
|
|
71
72
|
JLAYER_ATTRIBUTE_TYPES.STRING,
|
|
72
73
|
JLAYER_ATTRIBUTE_TYPES.NUMBER,
|
|
@@ -178,6 +179,7 @@ export const ALL_MEMBER_ROLES: MEMBER_ROLES[] = [ROLES.ORG_ADMIN, ROLES.ORG_EDIT
|
|
|
178
179
|
|
|
179
180
|
export const ALL_APP_MESSAGE_SEVERITIES: JAPP_MESSAGE_SEVERITIES[] = [JAPP_MESSAGE_SEVERITIES.SUCCESS, JAPP_MESSAGE_SEVERITIES.INFO, JAPP_MESSAGE_SEVERITIES.WARNING, JAPP_MESSAGE_SEVERITIES.ERROR]
|
|
180
181
|
|
|
182
|
+
/** @deprecated Legacy categories. New consumers read the SQL `type` (AttributeType) of JTable.attributes. */
|
|
181
183
|
export const ALL_TABLE_ATTRIBUTE_TYPES: JTABLE_ATTRIBUTE_TYPES[] = [
|
|
182
184
|
JTABLE_ATTRIBUTE_TYPES.BINARY,
|
|
183
185
|
JTABLE_ATTRIBUTE_TYPES.BOOLEAN,
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="./public/global-aliases.d.ts" />
|
|
2
2
|
import type { JLocalDynamicFilter, JLocalDynamicFilterCreateParams, JLocalDynamicFilterUpdateParams } from "./public/jmap/dynamic-filter.d.ts"
|
|
3
3
|
import { Feature, FeatureCollection, LineString, MultiLineString, Point, Polygon } from "geojson"
|
|
4
|
-
import {
|
|
4
|
+
import { DataSourceAttribute, JDataSource, JDataSourceType, JForm, JRelationship } from "jmapcloud-types"
|
|
5
5
|
import type * as maplibregl from "maplibre-gl"
|
|
6
6
|
import { Action, Store } from "redux"
|
|
7
7
|
import { JDataSourceData, JDataSourceDataParams, JDataSourcePermissions } from "./public/jmap/datasource.ts"
|
|
@@ -92,8 +92,8 @@ export interface JUIService {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
export interface JSimpleSearchService {
|
|
95
|
-
getSelectedLayerIds():
|
|
96
|
-
setSelectedLayerIds(layerIds:
|
|
95
|
+
getSelectedLayerIds(): string[]
|
|
96
|
+
setSelectedLayerIds(layerIds: string[]): void
|
|
97
97
|
setQueryString(queryString: string): void
|
|
98
98
|
search(queryString: string, options?: JSimpleSearchOptions): Promise<JSimpleSearchResult[]>
|
|
99
99
|
}
|
|
@@ -113,26 +113,26 @@ export interface JMapContextService {
|
|
|
113
113
|
startCreation(): void
|
|
114
114
|
cancelCreation(): void
|
|
115
115
|
getAll(): JMapContext[]
|
|
116
|
-
getById(contextId:
|
|
117
|
-
existsById(contextId:
|
|
116
|
+
getById(contextId: string): JMapContext
|
|
117
|
+
existsById(contextId: string): boolean
|
|
118
118
|
getUrlByUUID(contextUUID: string): string
|
|
119
|
-
applyContextById(contextId:
|
|
120
|
-
deleteContextById(contextId:
|
|
119
|
+
applyContextById(contextId: string): Promise<void>
|
|
120
|
+
deleteContextById(contextId: string | string[]): Promise<void>
|
|
121
121
|
create(params?: JMapContextMetaData): Promise<JMapContext>
|
|
122
|
-
update(contextId:
|
|
123
|
-
updateMetaData(contextId:
|
|
122
|
+
update(contextId: string, params?: JMapContextMetaData): Promise<JMapContext>
|
|
123
|
+
updateMetaData(contextId: string, params: JMapContextMetaData): Promise<void>
|
|
124
124
|
setCreateTitle(newTitle: string): void
|
|
125
125
|
setCreateDescription(newDescription: string): void
|
|
126
126
|
setCreateTitleError(hasError: boolean): void
|
|
127
|
-
getContextTitle(contextId:
|
|
128
|
-
setContextTitle(contextId:
|
|
129
|
-
getContextDescription(contextId:
|
|
130
|
-
setContextDescription(contextId:
|
|
131
|
-
isLinkShared(contextId:
|
|
132
|
-
setLinkShare(contextId:
|
|
127
|
+
getContextTitle(contextId: string): string
|
|
128
|
+
setContextTitle(contextId: string, title: string): Promise<void>
|
|
129
|
+
getContextDescription(contextId: string): string
|
|
130
|
+
setContextDescription(contextId: string, description: string): Promise<void>
|
|
131
|
+
isLinkShared(contextId: string): boolean
|
|
132
|
+
setLinkShare(contextId: string, isShared: boolean): Promise<void>
|
|
133
133
|
getDefaultContext(): JMapContext | undefined
|
|
134
|
-
isDefaultContext(contextId:
|
|
135
|
-
setDefaultContext(contextId?:
|
|
134
|
+
isDefaultContext(contextId: string): boolean
|
|
135
|
+
setDefaultContext(contextId?: string): Promise<void>
|
|
136
136
|
sortListBy(sortBy: JMAP_CONTEXT_SORT_BY_OPTIONS): void
|
|
137
137
|
getListSortBy(): JMAP_CONTEXT_SORT_BY_OPTIONS
|
|
138
138
|
getAllListSortBy(): JMAP_CONTEXT_SORT_BY_OPTIONS[]
|
|
@@ -178,7 +178,9 @@ export interface JUtilService {
|
|
|
178
178
|
loadJSFile(fileUrl: string): Promise<void>
|
|
179
179
|
isJMapId(id: any, allowStringNumber?: boolean): boolean
|
|
180
180
|
checkJmapId(id: any, message?: string): void
|
|
181
|
-
|
|
181
|
+
getFeatureId(feature: GeoJSON.Feature): number
|
|
182
|
+
/** @deprecated Entity ids are strings and feature ids are numbers; use {@link getFeatureId} for a feature. */
|
|
183
|
+
getJmapIdAsIntegerIfPossible(id: any): number | string
|
|
182
184
|
asyncProcess(callback: () => any, timeoutsInMilliseconds: number[]): () => void
|
|
183
185
|
}
|
|
184
186
|
|
|
@@ -199,16 +201,16 @@ export interface JLocalStorageService {
|
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
export interface JFeatureService {
|
|
202
|
-
getById(layerId:
|
|
203
|
-
getByIds(layerId:
|
|
204
|
-
getByLayerId(layerId:
|
|
204
|
+
getById(layerId: string, featureId: number, includeAllAttributes?: boolean): Promise<GeoJSON.Feature>
|
|
205
|
+
getByIds(layerId: string, featureIds: number[]): Promise<GeoJSON.Feature[]>
|
|
206
|
+
getByLayerId(layerId: string, bbox: JBoundaryBox): Promise<GeoJSON.Feature[]>
|
|
205
207
|
geometryUpdateById(params: JFeatureGeometryUpdateParams): Promise<GeoJSON.Feature>
|
|
206
208
|
propertiesUpdateById(params: JFeaturePropertiesUpdateParams): Promise<GeoJSON.Feature>
|
|
207
|
-
deleteById(layerId:
|
|
208
|
-
// deleteByIds(layerId:
|
|
209
|
+
deleteById(layerId: string, featureId: number): Promise<number>
|
|
210
|
+
// deleteByIds(layerId: string, featureIds: number[]): Promise<JFeatureDeleteByIdsResult>
|
|
209
211
|
// TODO: see if the future endpoint will return detail about individual deleted features success or failure
|
|
210
212
|
// https://k2geospatial.atlassian.net/browse/JMAP8-1589
|
|
211
|
-
deleteByIds(layerId:
|
|
213
|
+
deleteByIds(layerId: string, featureIds: number[]): Promise<number[]>
|
|
212
214
|
geometryCreate(params: JFeatureGeometryCreateParams): Promise<GeoJSON.Feature>
|
|
213
215
|
}
|
|
214
216
|
|
|
@@ -274,7 +276,7 @@ export interface JEventListener {
|
|
|
274
276
|
|
|
275
277
|
export type JEventSimpleListenerFunction = (listenerId: string, fn: JEventFunction) => void
|
|
276
278
|
|
|
277
|
-
export type JEventResourceListenerFunction = (listenerId: string, resourceId:
|
|
279
|
+
export type JEventResourceListenerFunction = (listenerId: string, resourceId: string, fn: JEventFunction) => void
|
|
278
280
|
|
|
279
281
|
export type JEventListenerFunction = JEventSimpleListenerFunction | JEventResourceListenerFunction
|
|
280
282
|
|
|
@@ -359,9 +361,9 @@ export interface JMapEventModule extends JEventModule {
|
|
|
359
361
|
move(listenerId: string, fn: (params: JMapEventParams) => void): void
|
|
360
362
|
moveEnd(listenerId: string, fn: (params: JMapEventParams) => void): void
|
|
361
363
|
mouseMove(listenerId: string, fn: (params: JMapEventLayerParams) => void): void
|
|
362
|
-
mouseMoveOnLayer(listenerId: string, layerId:
|
|
363
|
-
mouseEnterOnLayer(listenerId: string, layerId:
|
|
364
|
-
mouseLeaveOnLayer(listenerId: string, layerId:
|
|
364
|
+
mouseMoveOnLayer(listenerId: string, layerId: string, fn: (params: JMapEventFeaturesParams) => void): void
|
|
365
|
+
mouseEnterOnLayer(listenerId: string, layerId: string, fn: (params: JMapEventFeaturesParams) => void): void
|
|
366
|
+
mouseLeaveOnLayer(listenerId: string, layerId: string, fn: (params: JMapEventLayerParams) => void): void
|
|
365
367
|
click(listenerId: string, fn: (params: JMapEventLocationParams) => void): void
|
|
366
368
|
zoomStart(listenerId: string, fn: (params: JMapEventZoomParams) => void): void
|
|
367
369
|
zoom(listenerId: string, fn: (params: JMapEventZoomParams) => void): void
|
|
@@ -418,13 +420,13 @@ export interface JFormService {
|
|
|
418
420
|
}
|
|
419
421
|
|
|
420
422
|
export interface JAttachmentService {
|
|
421
|
-
getByItemId(dataSourceId:
|
|
423
|
+
getByItemId(dataSourceId: string, dataSourceOrganizationId: string, itemId: number): Promise<JAttachment[]>
|
|
422
424
|
create(dataSourceId: string, dataSourceOrganizationId: string, params: JCreateAttachmentParams): Promise<string>
|
|
423
425
|
remove(dataSourceId: string, dataSourceOrganizationId: string, attachmentId: string): Promise<string>
|
|
424
426
|
update(dataSourceId: string, dataSourceOrganizationId: string, attachmentId: string, params: JUpdateAttachmentParams): Promise<string>
|
|
425
427
|
download(dataSourceId: string, dataSourceOrganizationId: string, attachmentId: string): Promise<{ data: Blob; headers: any }>
|
|
426
428
|
downloadToDevice(attachment: JAttachmentFile, dataSourceId: string, dataSourceOrganizationId: string): Promise<void>
|
|
427
|
-
previewAttachments(attachmentId: string, dataSourceId: string, dataSourceOrganizationId: string, itemId:
|
|
429
|
+
previewAttachments(attachmentId: string, dataSourceId: string, dataSourceOrganizationId: string, itemId: number): void
|
|
428
430
|
}
|
|
429
431
|
|
|
430
432
|
export interface JHistoryService {
|
|
@@ -468,7 +470,7 @@ export interface JGeometryService {
|
|
|
468
470
|
getFeatureCollection(features: Feature[] | JLocation[] | JPoint[]): FeatureCollection
|
|
469
471
|
getCircleFeature(center: JPoint | JLocation, radius: number): Feature<Polygon> // radius in km
|
|
470
472
|
getPolygonFeature(coordinates: JPoint[], closeCoordinates?: boolean): Feature<Polygon>
|
|
471
|
-
isGeometryTypeValidForLayer(layerId:
|
|
473
|
+
isGeometryTypeValidForLayer(layerId: string, geometryType: GeoJSON.GeoJsonGeometryTypes): boolean
|
|
472
474
|
getRotatedFeature(feature: GeoJSON.Feature, angle: number): GeoJSON.Feature
|
|
473
475
|
convertLength(length: number, toUnit: JMAP_DISTANCE_UNITS, fromUnit?: JMAP_DISTANCE_UNITS): number // fromUnit is km by default
|
|
474
476
|
convertArea(area: number, toUnit: JMAP_DISTANCE_UNITS, fromUnit?: JMAP_DISTANCE_UNITS): number // fromUnit is km by default
|
|
@@ -493,14 +495,14 @@ export interface JMapService {
|
|
|
493
495
|
getExtent(): JBoundaryBox
|
|
494
496
|
getCenter(): { x: number; y: number }
|
|
495
497
|
getZoom(): number
|
|
496
|
-
getMaplibreSourceIdByJMapLayerId(layerId:
|
|
498
|
+
getMaplibreSourceIdByJMapLayerId(layerId: string): string
|
|
497
499
|
isScaleControlVisible(): boolean
|
|
498
500
|
isTerrainAvailable(): boolean
|
|
499
501
|
isTerrainActive(): boolean
|
|
500
502
|
setTerrainActive(active: boolean): void
|
|
501
503
|
isTerrainControlVisible(): boolean
|
|
502
|
-
setSelectionStyle(layerId:
|
|
503
|
-
resetSelectionStyle(layerId:
|
|
504
|
+
setSelectionStyle(layerId: string, style: JLayerSetStyleParams): void
|
|
505
|
+
resetSelectionStyle(layerId: string): void
|
|
504
506
|
setScaleControlVisibility(isVisible: boolean, position?: JMAP_POSITIONS): void
|
|
505
507
|
setScaleControlUnits(units: "imperial" | "metric" | "nautical"): void
|
|
506
508
|
setScaleControlPosition(position: JMAP_POSITIONS): void
|
|
@@ -517,13 +519,13 @@ export interface JMapService {
|
|
|
517
519
|
isInitialExtentControlVisible(): boolean
|
|
518
520
|
setInitialExtentControlVisibility(isVisible: boolean): void
|
|
519
521
|
zoomToProjectInitialExtent(): Promise<void>
|
|
520
|
-
getMaplibreSupportedJMapLayerIds():
|
|
521
|
-
getMaplibreSupportedJMapLayerIdBefore(layerId:
|
|
522
|
-
getMaplibreSupportedJMapLayerIdAfter(layerId:
|
|
523
|
-
refreshLayerById(layerId:
|
|
524
|
-
getRenderedFeatures(layerId:
|
|
525
|
-
getSourceFeatures(layerId:
|
|
526
|
-
getRenderedFeaturesAttributeValues(layerId:
|
|
522
|
+
getMaplibreSupportedJMapLayerIds(): string[]
|
|
523
|
+
getMaplibreSupportedJMapLayerIdBefore(layerId: string): string | undefined
|
|
524
|
+
getMaplibreSupportedJMapLayerIdAfter(layerId: string): string | undefined
|
|
525
|
+
refreshLayerById(layerId: string): void
|
|
526
|
+
getRenderedFeatures(layerId: string, params?: JLocation | JBoundaryBox | JCircle | JGetRenderedFeaturesParams): Feature[]
|
|
527
|
+
getSourceFeatures(layerId: string, params?: JGetSourceFeaturesParams): Feature[]
|
|
528
|
+
getRenderedFeaturesAttributeValues(layerId: string, filter?: JLocation | JBoundaryBox | JCircle): JMapFeatureAttributeValues[]
|
|
527
529
|
getPitch(): number
|
|
528
530
|
getRotation(): number
|
|
529
531
|
getBearing(): number
|
|
@@ -542,7 +544,7 @@ export interface JMapService {
|
|
|
542
544
|
flashLocation(location: JLocation, options?: JMapFlashLocationParams): void
|
|
543
545
|
flashLocations(locations: JLocation[], options?: JMapFlashLocationParams): void
|
|
544
546
|
clearFlashingLocations(): void
|
|
545
|
-
displayLayerExtent(layerId:
|
|
547
|
+
displayLayerExtent(layerId: string, params?: JDisplayExtentParams): Promise<boolean>
|
|
546
548
|
displayExtent(extent: JBoundaryBox, params?: JDisplayExtentParams): void
|
|
547
549
|
getResolution(params?: JLatitudeAndZoom): number
|
|
548
550
|
getScale(params?: JLatitudeAndZoom): string
|
|
@@ -555,17 +557,17 @@ export interface JMapService {
|
|
|
555
557
|
openModificationPopupForScale(): void
|
|
556
558
|
closeModificationPopup(): void
|
|
557
559
|
/** @deprecated Use JMap.Map.getLayerTransparency to read overridden transparency. For non-overridden layers, use JMap.Map.getRasterLayerInitialTransparency. */
|
|
558
|
-
getRasterLayerTransparency(layerId:
|
|
560
|
+
getRasterLayerTransparency(layerId: string): number
|
|
559
561
|
/** @deprecated This method is unreliable when style opacity is expression-based and will be removed in a future version. */
|
|
560
|
-
getRasterLayerInitialTransparency(layerId:
|
|
562
|
+
getRasterLayerInitialTransparency(layerId: string): number
|
|
561
563
|
/** @deprecated Use JMap.Map.resetLayerTransparency instead. It manages all supported map layer types (vector and raster), not only raster layers. */
|
|
562
|
-
resetRasterLayerTransparency(layerId:
|
|
564
|
+
resetRasterLayerTransparency(layerId: string): number
|
|
563
565
|
/** @deprecated Use JMap.Map.setLayerTransparency instead. It manages all supported map layer types (vector and raster), not only raster layers. */
|
|
564
|
-
setRasterLayerTransparency(layerId:
|
|
565
|
-
getLayerTransparency(layerId:
|
|
566
|
-
isLayerTransparencyOverridden(layerId:
|
|
567
|
-
setLayerTransparency(layerId:
|
|
568
|
-
resetLayerTransparency(layerId:
|
|
566
|
+
setRasterLayerTransparency(layerId: string, transparency: number): void
|
|
567
|
+
getLayerTransparency(layerId: string): number | undefined
|
|
568
|
+
isLayerTransparencyOverridden(layerId: string): boolean
|
|
569
|
+
setLayerTransparency(layerId: string, transparency: number): void
|
|
570
|
+
resetLayerTransparency(layerId: string): void
|
|
569
571
|
setPixelRatio(pixelRatio: number): boolean
|
|
570
572
|
getPixelRatio(): number
|
|
571
573
|
}
|
|
@@ -601,42 +603,42 @@ export interface JMapInteractionService {
|
|
|
601
603
|
|
|
602
604
|
export interface JMapSelectionService {
|
|
603
605
|
isEmpty(): boolean
|
|
604
|
-
isEmptyByLayerId(layerId:
|
|
606
|
+
isEmptyByLayerId(layerId: string): boolean
|
|
605
607
|
getSelectionCentroid(selection: JMapSelection): JLocation
|
|
606
608
|
getSelectedFeatures(): JMapSelection
|
|
607
|
-
getSelectedFeaturesForLayer(layerId:
|
|
608
|
-
getSelectedFeatureIdsForLayer(layerId:
|
|
609
|
-
selectOnOneLayerAtLocation(layerId:
|
|
610
|
-
selectOnOneLayerFromCircle(layerId:
|
|
611
|
-
selectOnOneLayerFromLine(layerId:
|
|
612
|
-
selectOnOneLayerFromPolygon(layerId:
|
|
609
|
+
getSelectedFeaturesForLayer(layerId: string): Feature[]
|
|
610
|
+
getSelectedFeatureIdsForLayer(layerId: string): number[]
|
|
611
|
+
selectOnOneLayerAtLocation(layerId: string, location: JLocation, params?: JMapSelectionParams | undefined): Feature[]
|
|
612
|
+
selectOnOneLayerFromCircle(layerId: string, circle: JCircle, params?: JMapSelectionParams | undefined): Feature[]
|
|
613
|
+
selectOnOneLayerFromLine(layerId: string, line: JLine, params?: JMapSelectionParams | undefined): Feature[]
|
|
614
|
+
selectOnOneLayerFromPolygon(layerId: string, polygon: JPolygon, params?: JMapSelectionParams | undefined): Feature[]
|
|
613
615
|
selectOnAllLayersAtLocation(location: JLocation, params?: JMapSelectionParams | undefined): JMapSelection
|
|
614
616
|
selectOnAllLayersFromCircle(circle: JCircle, params?: JMapSelectionParams | undefined): JMapSelection
|
|
615
617
|
selectOnAllLayersFromLine(line: JLine, params?: JMapSelectionParams | undefined): JMapSelection
|
|
616
618
|
selectOnAllLayersFromPolygon(polygon: JPolygon, params?: JMapSelectionParams | undefined): JMapSelection
|
|
617
|
-
setLayerSelection(layerId:
|
|
619
|
+
setLayerSelection(layerId: string, features: Feature | Feature[]): void
|
|
618
620
|
setLayersSelection(params: JSelectionSetLayersSelectionParams[]): void
|
|
619
|
-
addFeaturesToLayerSelection(layerId:
|
|
620
|
-
removeFeaturesFromLayerSelection(layerId:
|
|
621
|
-
clearSelection(layerId?:
|
|
622
|
-
clearLayersSelection(layerIds:
|
|
621
|
+
addFeaturesToLayerSelection(layerId: string, features: Feature | Feature[]): void
|
|
622
|
+
removeFeaturesFromLayerSelection(layerId: string, featureIds: number | number[]): void
|
|
623
|
+
clearSelection(layerId?: string): void
|
|
624
|
+
clearLayersSelection(layerIds: string[]): void
|
|
623
625
|
}
|
|
624
626
|
|
|
625
627
|
export interface JMapFilterService {
|
|
626
|
-
applyHasAttribute(layerId:
|
|
627
|
-
applyHasNotAttribute(layerId:
|
|
628
|
-
applyAttributeValueEqualTo(layerId:
|
|
629
|
-
applyAttributeValueBetween(layerId:
|
|
630
|
-
applyAttributeValueNotEqualTo(layerId:
|
|
631
|
-
applyAttributeValueGreaterThan(layerId:
|
|
632
|
-
applyAttributeValueGreaterOrEqualsTo(layerId:
|
|
633
|
-
applyAttributeValueLowerThan(layerId:
|
|
634
|
-
applyAttributeValueLowerOrEqualsTo(layerId:
|
|
635
|
-
applyAttributeValueIn(layerId:
|
|
636
|
-
applyAttributeValueNotIn(layerId:
|
|
637
|
-
applySpatial(layerId:
|
|
628
|
+
applyHasAttribute(layerId: string, attributeId: string): string
|
|
629
|
+
applyHasNotAttribute(layerId: string, attributeId: string): string
|
|
630
|
+
applyAttributeValueEqualTo(layerId: string, attributeId: string, attributeValue: any): string
|
|
631
|
+
applyAttributeValueBetween(layerId: string, attributeId: string, start: any, end: any): string
|
|
632
|
+
applyAttributeValueNotEqualTo(layerId: string, attributeId: string, attributeValue: any): string
|
|
633
|
+
applyAttributeValueGreaterThan(layerId: string, attributeId: string, attributeValue: any): string
|
|
634
|
+
applyAttributeValueGreaterOrEqualsTo(layerId: string, attributeId: string, attributeValue: any): string
|
|
635
|
+
applyAttributeValueLowerThan(layerId: string, attributeId: string, attributeValue: any): string
|
|
636
|
+
applyAttributeValueLowerOrEqualsTo(layerId: string, attributeId: string, attributeValue: any): string
|
|
637
|
+
applyAttributeValueIn(layerId: string, attributeId: string, attributeValues: any[]): string
|
|
638
|
+
applyAttributeValueNotIn(layerId: string, attributeId: string, attributeValues: any[]): string
|
|
639
|
+
applySpatial(layerId: string, filterGeometry: JPolygon | JCircle): string
|
|
638
640
|
removeByFilterId(filterId: string): void
|
|
639
|
-
removeAllFilters(layerId:
|
|
641
|
+
removeAllFilters(layerId: string): void
|
|
640
642
|
}
|
|
641
643
|
|
|
642
644
|
export interface JProjectionService {
|
|
@@ -647,15 +649,15 @@ export interface JProjectionService {
|
|
|
647
649
|
export interface JProjectService {
|
|
648
650
|
hasProjectActivated(): boolean
|
|
649
651
|
getActiveProject(): JProject
|
|
650
|
-
activateById(projectId:
|
|
652
|
+
activateById(projectId: string): JProject
|
|
651
653
|
activateByName(projectName: string): JProject
|
|
652
654
|
deactivate(): void
|
|
653
655
|
getAllProjects(): Promise<JProject[]>
|
|
654
|
-
existsById(projectId:
|
|
656
|
+
existsById(projectId: string): boolean
|
|
655
657
|
existsByName(projectName: string): boolean
|
|
656
|
-
getById(projectId:
|
|
658
|
+
getById(projectId: string): JProject
|
|
657
659
|
getByName(projectName: string): JProject
|
|
658
|
-
getId():
|
|
660
|
+
getId(): string
|
|
659
661
|
getName(): string
|
|
660
662
|
getDescription(): string | undefined
|
|
661
663
|
getProjection(): JProjection
|
|
@@ -680,47 +682,50 @@ export interface JLayerService {
|
|
|
680
682
|
DynamicFilter: JDynamicFilterService
|
|
681
683
|
getMetadataSchema(): JLayerMetadataSchemaItem[]
|
|
682
684
|
getLayerTree(): JLayerTree
|
|
683
|
-
getLayerTreeElementsById():
|
|
685
|
+
getLayerTreeElementsById(): Record<string, JLayerTreeElement>
|
|
684
686
|
getLayers(): JLayer[]
|
|
685
|
-
getLayerIds():
|
|
686
|
-
setLayersMapOrder(layerIds:
|
|
687
|
+
getLayerIds(): string[]
|
|
688
|
+
setLayersMapOrder(layerIds: string[]): void
|
|
687
689
|
getVectorLayers(): JLayer[]
|
|
688
|
-
getVectorLayerIds():
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
690
|
+
getVectorLayerIds(): string[]
|
|
691
|
+
/** @deprecated Returns legacy views. Use the layer's attributes for the shared model. */
|
|
692
|
+
getLayerAttributes(layerId: string): JLayerAttribute[]
|
|
693
|
+
/** @deprecated Returns a legacy view. Use the layer's attributes for the shared model. */
|
|
694
|
+
getLayerAttribute(layerId: string, attributeName: string): JLayerAttribute
|
|
695
|
+
exists(layerId: string): boolean
|
|
696
|
+
attributeExists(layerId: string, attributeName: string): boolean
|
|
697
|
+
getById(layerId: string): JLayerTreeElement
|
|
698
|
+
getSelfOrChildren(layerId: string): JLayer[]
|
|
699
|
+
getName(layerId: string): string
|
|
700
|
+
getDescription(layerId: string): string
|
|
701
|
+
getEPSG4326Extent(layerId: string): Promise<JBoundaryBox | null>
|
|
702
|
+
isVisible(layerId: string, checkParentVisibility?: boolean): boolean
|
|
703
|
+
isVectorLayerById(layerId: string): boolean
|
|
704
|
+
isSelectableById(layerId: string): boolean
|
|
705
|
+
setSelectabilityById(layerId: string, selectability: boolean, ignoreVisibility?: boolean): void
|
|
702
706
|
setLayersSelectability(params: JLayerSetLayersSelectabilityParams[]): void
|
|
703
|
-
isAllLayerParentsVisible(layerId:
|
|
704
|
-
setVisible(layerId:
|
|
707
|
+
isAllLayerParentsVisible(layerId: string): boolean
|
|
708
|
+
setVisible(layerId: string, visible: boolean): void
|
|
705
709
|
setLayersVisibility(params: JLayerSetLayersVisibilityParams[]): void
|
|
706
|
-
ensureLayerIsVisible(layerId:
|
|
707
|
-
ensureLayersAreVisible(layerIds:
|
|
708
|
-
setLayerGroupExpansion(layerGroupId:
|
|
710
|
+
ensureLayerIsVisible(layerId: string): void
|
|
711
|
+
ensureLayersAreVisible(layerIds: string[]): void
|
|
712
|
+
setLayerGroupExpansion(layerGroupId: string, isExpanded: boolean): void
|
|
709
713
|
setLayerGroupsExpansion(params: JLayerSetLayerGroupsExpansionParams[]): void
|
|
710
|
-
deleteLayer(layerId:
|
|
711
|
-
getDataSourceAttributes(layerId:
|
|
714
|
+
deleteLayer(layerId: string): void
|
|
715
|
+
getDataSourceAttributes(layerId: string): Promise<DataSourceAttribute[]>
|
|
716
|
+
getData(layerId: string, params?: JLayerDataParams): Promise<JDataSourceData>
|
|
712
717
|
}
|
|
713
718
|
|
|
714
719
|
export interface JDataSourceService {
|
|
715
|
-
getAttributes(dataSourceId:
|
|
716
|
-
getById(dataSourceId:
|
|
717
|
-
getData(dataSourceId:
|
|
718
|
-
getPermissions(dataSourceId:
|
|
719
|
-
createRow(dataSourceId:
|
|
720
|
-
updateRow(dataSourceId:
|
|
721
|
-
deleteRow(dataSourceId:
|
|
722
|
-
updateFeatureProperties(dataSourceId:
|
|
723
|
-
deleteFeature(dataSourceId:
|
|
720
|
+
getAttributes(dataSourceId: string, dataSourceOrganizationId: string): Promise<DataSourceAttribute[]>
|
|
721
|
+
getById(dataSourceId: string, dataSourceOrganizationId: string): Promise<JDataSource>
|
|
722
|
+
getData(dataSourceId: string, dataSourceOrganizationId: string, params: JDataSourceDataParams, dataSourceType?: JDataSourceType): Promise<JDataSourceData>
|
|
723
|
+
getPermissions(dataSourceId: string, dataSourceOrganizationId: string): Promise<JDataSourcePermissions>
|
|
724
|
+
createRow(dataSourceId: string, dataSourceOrganizationId: string, row: { [key: string]: any }): Promise<{ id: number; links: any[] }>
|
|
725
|
+
updateRow(dataSourceId: string, dataSourceOrganizationId: string, rowId: number, row: { [key: string]: any }): Promise<void>
|
|
726
|
+
deleteRow(dataSourceId: string, dataSourceOrganizationId: string, rowId: number): Promise<void>
|
|
727
|
+
updateFeatureProperties(dataSourceId: string, dataSourceOrganizationId: string, featureId: number, properties: { [key: string]: any }): Promise<GeoJSON.Feature>
|
|
728
|
+
deleteFeature(dataSourceId: string, dataSourceOrganizationId: string, featureId: number): Promise<number>
|
|
724
729
|
getFeature(dataSourceId: string, dataSourceOrganizationId: string, featureId: number): Promise<GeoJSON.Feature>
|
|
725
730
|
getRow(dataSourceId: string, dataSourceOrganizationId: string, rowId: number): Promise<{ [key: string]: any }>
|
|
726
731
|
getRelationship(dataSourceId: string, dataSourceOrganizationId: string, relationshipId: string): Promise<JRelationship>
|
|
@@ -729,14 +734,14 @@ export interface JDataSourceService {
|
|
|
729
734
|
export interface JTableService {
|
|
730
735
|
DynamicFilter: JDynamicFilterService
|
|
731
736
|
getTables(): JTable[]
|
|
732
|
-
getTableData(tableId:
|
|
733
|
-
getById(tableId:
|
|
734
|
-
createRow(tableId:
|
|
735
|
-
updateRow(tableId:
|
|
736
|
-
deleteRow(tableId:
|
|
737
|
-
getDataSourceAttributes(tableId:
|
|
737
|
+
getTableData(tableId: string, params: JTableDataParams): Promise<JTableData>
|
|
738
|
+
getById(tableId: string): JTable
|
|
739
|
+
createRow(tableId: string, row: { [key: string]: any }): Promise<{ id: number; links: Array<any> }>
|
|
740
|
+
updateRow(tableId: string, rowId: number, row: { [key: string]: any }): Promise<void>
|
|
741
|
+
deleteRow(tableId: string, rowId: number): Promise<void>
|
|
742
|
+
getDataSourceAttributes(tableId: string): Promise<DataSourceAttribute[]>
|
|
738
743
|
/** @deprecated Use DynamicFilter.setIsActive instead. */
|
|
739
|
-
setDynamicFilterActive(tableId:
|
|
744
|
+
setDynamicFilterActive(tableId: string, filterId: string, isActive: boolean): void
|
|
740
745
|
}
|
|
741
746
|
|
|
742
747
|
export interface JLayerSearchService {
|
|
@@ -745,19 +750,19 @@ export interface JLayerSearchService {
|
|
|
745
750
|
|
|
746
751
|
export interface JLayerThematicService {
|
|
747
752
|
addThematic(params: JLayerAddThematicParams): Promise<void>
|
|
748
|
-
deleteThematic(layerId:
|
|
749
|
-
getAllByLayerId(layerId:
|
|
750
|
-
getById(layerId:
|
|
751
|
-
existsById(layerId:
|
|
752
|
-
hasAnyVisibleByLayerId(layerId:
|
|
753
|
-
getAllVisibleByLayerId(layerId:
|
|
754
|
-
setVisibilityById(layerId:
|
|
753
|
+
deleteThematic(layerId: string, thematicId: string): void
|
|
754
|
+
getAllByLayerId(layerId: string): JLayerThematic[]
|
|
755
|
+
getById(layerId: string, thematicId: string): JLayerThematic
|
|
756
|
+
existsById(layerId: string, thematicId: string): boolean
|
|
757
|
+
hasAnyVisibleByLayerId(layerId: string): boolean
|
|
758
|
+
getAllVisibleByLayerId(layerId: string): JLayerThematic[]
|
|
759
|
+
setVisibilityById(layerId: string, thematicId: string, visibility: boolean): void
|
|
755
760
|
setThematicsVisibility(params: JLayerThematicSetVisibilityParams[]): void
|
|
756
761
|
setCategoryVisibility(params: JLayerThematicSetCategoryVisibilityParams): void
|
|
757
|
-
setAllCategoriesVisibility(layerId:
|
|
762
|
+
setAllCategoriesVisibility(layerId: string, thematicId: string, visibility: boolean): void
|
|
758
763
|
setConditionVisibility(params: JLayerThematicSetConditionVisibilityParams): void
|
|
759
|
-
setAllConditionsVisibility(layerId:
|
|
760
|
-
getFamilyTypeById(layerId:
|
|
764
|
+
setAllConditionsVisibility(layerId: string, thematicId: string, visibility: boolean): void
|
|
765
|
+
getFamilyTypeById(layerId: string, thematicId: string): JLAYER_THEMATIC_FAMILY_TYPES
|
|
761
766
|
}
|
|
762
767
|
|
|
763
768
|
export interface JUserService {
|
|
@@ -836,12 +841,12 @@ export interface JServerService {
|
|
|
836
841
|
}
|
|
837
842
|
|
|
838
843
|
export interface JDynamicFilterService {
|
|
839
|
-
create(resourceId:
|
|
840
|
-
getAll(resourceId:
|
|
841
|
-
getById(resourceId:
|
|
842
|
-
update(resourceId:
|
|
843
|
-
remove(resourceId:
|
|
844
|
-
setIsActive(resourceId:
|
|
844
|
+
create(resourceId: string, params: JLocalDynamicFilterCreateParams): string
|
|
845
|
+
getAll(resourceId: string): JLocalDynamicFilter[]
|
|
846
|
+
getById(resourceId: string, filterId: string): JLocalDynamicFilter
|
|
847
|
+
update(resourceId: string, filterId: string, update: JLocalDynamicFilterUpdateParams): void
|
|
848
|
+
remove(resourceId: string, filterId: string): void
|
|
849
|
+
setIsActive(resourceId: string, filterId: string, isActive: boolean): void
|
|
845
850
|
}
|
|
846
851
|
|
|
847
852
|
// MISC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jmapcloud-ng-core-types",
|
|
3
|
-
"version": "2.0.20-qa.
|
|
3
|
+
"version": "2.0.20-qa.10",
|
|
4
4
|
"description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "ambient.d.ts",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "
|
|
14
|
+
"url": "https://github.com/k2geospatial/jmapcloud-frontend.git",
|
|
15
|
+
"directory": "app/jmapcloud-ng/ng-core-types"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|
|
17
18
|
"k2",
|
|
@@ -22,9 +23,9 @@
|
|
|
22
23
|
"author": "K2Geospatial",
|
|
23
24
|
"license": "MIT",
|
|
24
25
|
"bugs": {
|
|
25
|
-
"url": "https://github.com/k2geospatial/jmapcloud-
|
|
26
|
+
"url": "https://github.com/k2geospatial/jmapcloud-frontend/issues"
|
|
26
27
|
},
|
|
27
|
-
"homepage": "https://github.com/k2geospatial/jmapcloud-ng-core-types#readme",
|
|
28
|
+
"homepage": "https://github.com/k2geospatial/jmapcloud-frontend/tree/master/app/jmapcloud-ng/ng-core-types#readme",
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
30
31
|
"typedoc": "^0.25.13"
|