jmapcloud-ng-core-types 1.1.9 → 1.1.11

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
@@ -566,8 +566,7 @@ export interface JServerState extends JServerInfo {
566
566
  export type JHistoryListener = (oldValue: string | undefined, newValue: string | undefined) => void
567
567
 
568
568
  export interface JFormJMCService {
569
- getJsonForm(dataSourceId: string): Promise<JJsonFormSchemas>
570
- getForm(layerId: string): Promise<JFormJMC>
569
+ getForm(dataSourceId: string): Promise<JFormJMC | null>
571
570
  }
572
571
 
573
572
  export interface JFormService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,8 +25,7 @@
25
25
  },
26
26
  "homepage": "https://github.com/k2geospatial/jmapcloud-ng-core-types#readme",
27
27
  "devDependencies": {
28
- "typedoc": "^0.25.13",
29
- "patch-package": "^8.0.0"
28
+ "typedoc": "^0.25.13"
30
29
  },
31
30
  "dependencies": {
32
31
  "@auth0/auth0-spa-js": "^2.1.3",
package/public/core.d.ts CHANGED
@@ -9990,45 +9990,24 @@ declare namespace JMap {
9990
9990
  * Here you'll find all form related methods
9991
9991
  */
9992
9992
  namespace FormJMC {
9993
- /**
9994
- * ***JMap.FormJMC.getJsonForm***
9995
- *
9996
- * Returns the jsonForm schema and uiSchema for a data source.
9997
- *
9998
- * fetch the attributes of a data source and then builds and returns the schema and uiSchema required for jsonForms. The schemas will be null if there is no attributes on the data source
9999
- *
10000
- * @param dataSourceId the JMap data source id
10001
- * @example
10002
- * ```ts
10003
- * // returns the schema and uiSchema for data source id=f47ac10b-58cc-4372-a567-0e02b2c3d479
10004
-
10005
-
10006
- * JMap.FormJMC
10007
- * .getJsonForm("f47ac10b-58cc-4372-a567-0e02b2c3d479")
10008
- * .then(schemas => console.log("jsonForms schemas of data source f47ac10b-58cc-4372-a567-0e02b2c3d479", schemas))
10009
- * .catch(error => console.error("An error occurred when getting jsonForm schema", error))
10010
- * ```
10011
- */
10012
- function getJsonForm(dataSourceId: JId): Promise<JJsonFormSchemas>
10013
-
10014
9993
  /**
10015
9994
  * ***JMap.FormJMC.getForm***
10016
9995
  *
10017
- * Returns the form for a layer.
9996
+ * Returns the form for a data source.
10018
9997
  *
10019
- * @param layerId the JMap layer id
9998
+ * @param dataSourceId the JMap data source id
10020
9999
  * @example
10021
10000
  * ```ts
10022
- * // returns the form for layer id=f47ac10b-58cc-4372-a567-0e02b2c3d479
10001
+ * // returns the form for data source id=f47ac10b-58cc-4372-a567-0e02b2c3d479
10023
10002
 
10024
10003
 
10025
10004
  * JMap.FormJMC
10026
10005
  * .getForm("f47ac10b-58cc-4372-a567-0e02b2c3d479")
10027
- * .then(form => console.log("form of layer f47ac10b-58cc-4372-a567-0e02b2c3d479", form))
10028
- * .catch(error => console.error("An error occurred when getting the form for layer f47ac10b-58cc-4372-a567-0e02b2c3d479", error))
10006
+ * .then(form => console.log("form of data source f47ac10b-58cc-4372-a567-0e02b2c3d479", form))
10007
+ * .catch(error => console.error("An error occurred when getting the form for data source f47ac10b-58cc-4372-a567-0e02b2c3d479", error))
10029
10008
  * ```
10030
10009
  */
10031
- function getForm(layerId: JId): Promise<JFormJMC>
10010
+ function getForm(dataSourceId: JId): Promise<JFormJMC | null>
10032
10011
  }
10033
10012
  /**
10034
10013
  * **JMap.Form**
@@ -102,14 +102,14 @@ declare interface FormNodeLayout extends FormNodeBase {
102
102
 
103
103
  declare interface FormNodeVertical extends FormNodeLayout {
104
104
  type: "VerticalLayout"
105
- designComponent: "VerticalLayout"
105
+ designComponent: "Column"
106
106
  isRoot?: boolean
107
107
  translations?: JFormTranslations
108
108
  }
109
109
 
110
110
  declare interface FormNodeHorizontal extends FormNodeLayout {
111
111
  type: "HorizontalLayout"
112
- designComponent: "HorizontalLayout"
112
+ designComponent: "Row"
113
113
  }
114
114
  declare interface FormNodeGroup extends FormNodeLayout {
115
115
  type: "Group"
@@ -3,6 +3,7 @@ declare interface JTable {
3
3
  organizationId: string
4
4
  projectId: string
5
5
  name: string
6
+ listed: boolean
6
7
  description: JLocaleTranslation
7
8
  dataSourceId: string
8
9
  allowClientSideEditing: boolean