jmapserver-ng-core-types 2.0.4 → 2.0.6

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 CHANGED
@@ -842,7 +842,7 @@ export interface JLayerService {
842
842
  exists(layerId: JId): boolean
843
843
  attributeExists(layerId: JId, attributeName: string): boolean
844
844
  getById(layerId: JId): JLayerTreeElement
845
- getLayerAttributesWithStatistics(layerId: JId): Promise<JLayerAttribute[]>
845
+ getLayerAttributesWithStatistics(layerId: JId): Promise<JLayerAttributeWithStatistics[]>
846
846
  getSelfOrChildren(layerId: JId): JLayer[]
847
847
  getName(layerId: JId): string
848
848
  getDescription(layerId: JId): string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapserver-ng-core-types",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "JMap Server specific version of JMap Server NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/public/core.d.ts CHANGED
@@ -1802,7 +1802,7 @@ declare namespace JMap {
1802
1802
  * JMap.Layer.getLayerAttributesWithStatistics(3)
1803
1803
  * ```
1804
1804
  */
1805
- function getLayerAttributesWithStatistics(layerId: JId): Promise<JLayerAttribute[]>
1805
+ function getLayerAttributesWithStatistics(layerId: JId): Promise<JLayerAttributeWithStatistics[]>
1806
1806
 
1807
1807
  /**
1808
1808
  * **JMap.Layer.getSelfOrChildren**
@@ -350,6 +350,10 @@ declare interface JLayerAttribute {
350
350
  attributeStatistics: JLayerAttributeStatistics | null
351
351
  }
352
352
 
353
+ declare interface JLayerAttributeWithStatistics extends JLayerAttribute {
354
+ attributeStatistics: JLayerAttributeStatistics
355
+ }
356
+
353
357
  declare interface JLayerAttributeStatistics {
354
358
  tooManyUniqueValues: boolean
355
359
  uniqueValues?: any[]