jmapcloud-ng-core-types 1.0.1002 → 1.0.1003
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/index.ts +5 -2
- package/package.json +1 -1
- package/public/core.d.ts +14 -8
- package/public/jmap/simple-search.d.ts +1 -1
package/index.ts
CHANGED
|
@@ -149,8 +149,11 @@ export interface JFeatureService {
|
|
|
149
149
|
getById(layerId: JId, featureId: JId): Promise<GeoJSON.Feature>
|
|
150
150
|
getByIds(layerId: JId, featureIds: JId[]): Promise<GeoJSON.Feature[]>
|
|
151
151
|
geometryUpdateById(params: JFeatureGeometryUpdateParams): Promise<GeoJSON.Feature>
|
|
152
|
-
deleteById(layerId: JId, featureId: JId): Promise<
|
|
153
|
-
deleteByIds(layerId: JId, featureIds: JId[]): Promise<JFeatureDeleteByIdsResult>
|
|
152
|
+
deleteById(layerId: JId, featureId: JId): Promise<JId>
|
|
153
|
+
// deleteByIds(layerId: JId, featureIds: JId[]): Promise<JFeatureDeleteByIdsResult>
|
|
154
|
+
// TODO: see if the future endpoint will return detail about individual deleted features success or failure
|
|
155
|
+
// https://k2geospatial.atlassian.net/browse/JMAP8-1589
|
|
156
|
+
deleteByIds(layerId: JId, featureIds: JId[]): Promise<JId[]>
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
export interface JCoreMainService {
|
package/package.json
CHANGED
package/public/core.d.ts
CHANGED
|
@@ -566,11 +566,11 @@ declare namespace JMap {
|
|
|
566
566
|
* // deletes the feature id="4" on layer id="3"
|
|
567
567
|
* JMap.Feature
|
|
568
568
|
* .deleteById(3, 4)
|
|
569
|
-
* .then(
|
|
569
|
+
* .then(deletedFeatureId => console.info("Feature id=" + deletedFeatureId + " has been deleted"))
|
|
570
570
|
* .catch(error => console.error("An error occured", error))
|
|
571
571
|
* ```
|
|
572
572
|
*/
|
|
573
|
-
function deleteById(layerId: JId, featureId: JId): Promise<
|
|
573
|
+
function deleteById(layerId: JId, featureId: JId): Promise<JId>
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
576
|
* **JMap.Feature.deleteByIds**
|
|
@@ -589,7 +589,11 @@ declare namespace JMap {
|
|
|
589
589
|
* .catch(error => console.error("An error occured", error))
|
|
590
590
|
* ```
|
|
591
591
|
*/
|
|
592
|
-
|
|
592
|
+
|
|
593
|
+
// deleteByIds(layerId: JId, featureIds: JId[]): Promise<JFeatureDeleteByIdsResult>
|
|
594
|
+
// TODO: see if the future endpoint will return detail about individual deleted features success or failure
|
|
595
|
+
// https://k2geospatial.atlassian.net/browse/JMAP8-1589
|
|
596
|
+
function deleteByIds(layerId: JId, featureIds: JId[]): Promise<JId[]>
|
|
593
597
|
}
|
|
594
598
|
|
|
595
599
|
/**
|
|
@@ -6792,9 +6796,9 @@ declare namespace JMap {
|
|
|
6792
6796
|
/**
|
|
6793
6797
|
* **JMap.SimpleSearch**
|
|
6794
6798
|
*
|
|
6795
|
-
* A search mecanism that let the user
|
|
6799
|
+
* A search mecanism that let the user find features on any layer that has been indexed.
|
|
6796
6800
|
*
|
|
6797
|
-
* The JMap Cloud administrator is responsible
|
|
6801
|
+
* The JMap Cloud administrator is responsible for specifying which attributes of which spatial data sources are indexed. Once indices are set, a global search can be made over a whole project to find features based on those indexed attributes.
|
|
6798
6802
|
*
|
|
6799
6803
|
* JMap Cloud implements the OpenSearch standard. For more details, see {@link https://opensearch.org/docs/latest/ the official documentation}
|
|
6800
6804
|
*
|
|
@@ -6804,11 +6808,13 @@ declare namespace JMap {
|
|
|
6804
6808
|
/**
|
|
6805
6809
|
* ***JMap.SimpleSearch.setQueryString***
|
|
6806
6810
|
*
|
|
6807
|
-
*
|
|
6811
|
+
* Executes a "query string" search on all layers of the current project using the passed string as the query. See {@link https://opensearch.org/docs/latest/query-dsl/full-text/query-string/#query-string-syntax here} for details.
|
|
6812
|
+
*
|
|
6813
|
+
* All query_string reserved characters are escaped, and the following characters can't be used: "<>"
|
|
6808
6814
|
*
|
|
6809
6815
|
* This method will fetch a result object indicating all matches found.
|
|
6810
6816
|
*
|
|
6811
|
-
* @throws if no project is loaded
|
|
6817
|
+
* @throws if no project is loaded, if the passed search string is not a string or if it contains invalid characters.
|
|
6812
6818
|
* @param queryString the search string to be used
|
|
6813
6819
|
* @example ```ts
|
|
6814
6820
|
*
|
|
@@ -6833,7 +6839,7 @@ declare namespace JMap {
|
|
|
6833
6839
|
/**
|
|
6834
6840
|
* **JMap.SimpleSearch.getInvalidQueryStringCharacters**
|
|
6835
6841
|
*
|
|
6836
|
-
* Returns a string composed of all
|
|
6842
|
+
* Returns a string composed of all forbidden characters in simple search strings.
|
|
6837
6843
|
*
|
|
6838
6844
|
* @example ```ts
|
|
6839
6845
|
*
|
|
@@ -27,7 +27,7 @@ declare interface JSimpleSearchResult {
|
|
|
27
27
|
|
|
28
28
|
declare interface JSimpleSearchResultHit {
|
|
29
29
|
_index: string
|
|
30
|
-
_source: {
|
|
30
|
+
_source: { [attributeName: string]: any }
|
|
31
31
|
_id: JId
|
|
32
32
|
_score: number
|
|
33
33
|
highlight?: { [attributeName: string]: string[] }
|