jmapcloud-ng-core-types 1.0.53 → 1.0.54
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 +1 -0
- package/package.json +1 -1
- package/public/core.d.ts +16 -0
- package/public/jmap/formJMC.d.ts +6 -1
- package/public/jmap/layer.d.ts +35 -0
package/index.ts
CHANGED
|
@@ -892,6 +892,7 @@ export interface JLayerService {
|
|
|
892
892
|
deleteLayer(layerId: JId): void
|
|
893
893
|
hasInformationReport(layerId: JId): boolean
|
|
894
894
|
openInformationReportInNewTab(layerId: JId, featureIds: JId[]): Promise<string>
|
|
895
|
+
getDataSourceAttributes(dataSourceId: JId): Promise<JAttribute[]>
|
|
895
896
|
}
|
|
896
897
|
|
|
897
898
|
export interface JTableService {
|
package/package.json
CHANGED
package/public/core.d.ts
CHANGED
|
@@ -2417,6 +2417,22 @@ declare namespace JMap {
|
|
|
2417
2417
|
* ```
|
|
2418
2418
|
**/
|
|
2419
2419
|
function openInformationReportInNewTab(layerId: JId, featureIds: JId[]): Promise<string>
|
|
2420
|
+
|
|
2421
|
+
/**
|
|
2422
|
+
* **JMap.Layer.getDataSourceAttributes**
|
|
2423
|
+
*
|
|
2424
|
+
* Returns attributes, for a given dataSource.
|
|
2425
|
+
*
|
|
2426
|
+
* @param dataSourceId the JMap dataSource id
|
|
2427
|
+
* @throws if dataSourceId not valid or dataSource not found
|
|
2428
|
+
* @example
|
|
2429
|
+
* ```ts
|
|
2430
|
+
* // Returns attributes, for dataSource id=3
|
|
2431
|
+
* JMap.Layer
|
|
2432
|
+
* .getDataSourceAttributes(3)
|
|
2433
|
+
* ```
|
|
2434
|
+
**/
|
|
2435
|
+
function getDataSourceAttributes(dataSourceId: JId): Promise<JAttribute[]>
|
|
2420
2436
|
}
|
|
2421
2437
|
|
|
2422
2438
|
/**
|
package/public/jmap/formJMC.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare interface JFormSchemaPropertyJMC {
|
|
|
18
18
|
default?: any
|
|
19
19
|
minimum?: number
|
|
20
20
|
maximum?: number
|
|
21
|
-
|
|
21
|
+
oneOf?: Array<{ const: string; title: string }>
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
declare const enum FORMSCHEMA_TYPES {
|
|
@@ -104,6 +104,7 @@ declare interface FormNodeVertical extends FormNodeLayout {
|
|
|
104
104
|
type: "VerticalLayout"
|
|
105
105
|
designComponent: "VerticalLayout"
|
|
106
106
|
isRoot?: boolean
|
|
107
|
+
translations?: JFormTranslations
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
declare interface FormNodeHorizontal extends FormNodeLayout {
|
|
@@ -131,3 +132,7 @@ declare type FormNodesControl = FormNodeText | FormNodeNumber | FormNodeBoolean
|
|
|
131
132
|
declare type FormNodesLayout = FormNodeVertical | FormNodeHorizontal | FormNodeGroup | FormNodeTabs | FormNodeTab
|
|
132
133
|
|
|
133
134
|
declare type FormNode = FormNodesControl | FormNodesLayout | FormNodeLabel
|
|
135
|
+
|
|
136
|
+
declare type JFormTranslations = {
|
|
137
|
+
[L in JLOCALES]: Record<string, string>
|
|
138
|
+
}
|
package/public/jmap/layer.d.ts
CHANGED
|
@@ -598,3 +598,38 @@ declare interface JLayerSetLayerGroupsExpansionParams {
|
|
|
598
598
|
layerGroupId: JId
|
|
599
599
|
open: boolean
|
|
600
600
|
}
|
|
601
|
+
|
|
602
|
+
declare interface JAttribute {
|
|
603
|
+
id: string
|
|
604
|
+
name: string
|
|
605
|
+
type: ATTRIBUTE_TYPES
|
|
606
|
+
indexed: boolean
|
|
607
|
+
title: JLocaleTranslation
|
|
608
|
+
valueDomain?: JValueDomain[]
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
declare enum ATTRIBUTE_TYPES {
|
|
612
|
+
TINYINT = "TINYINT",
|
|
613
|
+
SMALLINT = "SMALLINT",
|
|
614
|
+
INTEGER = "INTEGER",
|
|
615
|
+
BIGINT = "BIGINT",
|
|
616
|
+
FLOAT = "FLOAT",
|
|
617
|
+
REAL = "REAL",
|
|
618
|
+
DOUBLE = "DOUBLE",
|
|
619
|
+
NUMERIC = "NUMERIC",
|
|
620
|
+
DECIMAL = "DECIMAL",
|
|
621
|
+
CHAR = "CHAR",
|
|
622
|
+
VARCHAR = "VARCHAR",
|
|
623
|
+
LONGVARCHAR = "LONGVARCHAR",
|
|
624
|
+
DATE = "DATE",
|
|
625
|
+
TIME = "TIME",
|
|
626
|
+
TIMESTAMP = "TIMESTAMP",
|
|
627
|
+
ARRAY = "ARRAY",
|
|
628
|
+
BOOLEAN = "BOOLEAN"
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
declare interface JValueDomain {
|
|
632
|
+
value?: any
|
|
633
|
+
nullValue?: boolean
|
|
634
|
+
title: JLocaleTranslation
|
|
635
|
+
}
|