@disy/cadenza.js 10.5.6 → 10.6.1

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/apidoc/classes/AbortError.html +3 -3
  3. package/apidoc/classes/CadenzaClient.html +29 -29
  4. package/apidoc/classes/CadenzaError.html +5 -5
  5. package/apidoc/functions/cadenza.html +4 -4
  6. package/apidoc/index.html +2 -2
  7. package/apidoc/interfaces/AreaIntersectionsResult.html +4 -4
  8. package/apidoc/interfaces/CadenzaClientOptions.html +6 -6
  9. package/apidoc/interfaces/CadenzaEvent.html +4 -4
  10. package/apidoc/interfaces/CommonEditGeometryOptions.html +12 -12
  11. package/apidoc/interfaces/Distance.html +2 -2
  12. package/apidoc/interfaces/ExternalLinkKey.html +4 -4
  13. package/apidoc/interfaces/Feature.html +9 -9
  14. package/apidoc/interfaces/FeatureCollection.html +4 -4
  15. package/apidoc/interfaces/Geometry.html +4 -4
  16. package/apidoc/interfaces/GeometryExtentStrategy.html +4 -4
  17. package/apidoc/interfaces/LayerDataExtentStrategy.html +4 -4
  18. package/apidoc/interfaces/LayerDefinition.html +4 -4
  19. package/apidoc/interfaces/LocationFinderExtentStrategy.html +4 -4
  20. package/apidoc/interfaces/PageSource.html +3 -3
  21. package/apidoc/interfaces/ProblemDetails.html +6 -6
  22. package/apidoc/interfaces/SnappingOptions.html +3 -3
  23. package/apidoc/interfaces/SpatialFilterValue.html +4 -4
  24. package/apidoc/interfaces/StaticExtentStrategy.html +4 -4
  25. package/apidoc/modules.html +1 -1
  26. package/apidoc/types/CadenzaActionEvent.html +2 -2
  27. package/apidoc/types/CadenzaChangeExtentEvent.html +2 -2
  28. package/apidoc/types/CadenzaChangeSelectionEvent.html +2 -2
  29. package/apidoc/types/CadenzaDrillThroughEvent.html +2 -2
  30. package/apidoc/types/CadenzaEditGeometryCancelEvent.html +2 -2
  31. package/apidoc/types/CadenzaEditGeometryCreateEvent.html +2 -2
  32. package/apidoc/types/CadenzaEditGeometryDeleteEvent.html +2 -2
  33. package/apidoc/types/CadenzaEditGeometryEditEvent.html +2 -2
  34. package/apidoc/types/CadenzaEditGeometryOkEvent.html +2 -2
  35. package/apidoc/types/CadenzaEditGeometryUpdateEvent.html +2 -2
  36. package/apidoc/types/CadenzaErrorEvent.html +2 -2
  37. package/apidoc/types/CadenzaEventByType.html +1 -1
  38. package/apidoc/types/CadenzaEventType.html +2 -2
  39. package/apidoc/types/CadenzaReloadEvent.html +2 -2
  40. package/apidoc/types/CadenzaSelectObjectsCancelEvent.html +2 -2
  41. package/apidoc/types/CadenzaSelectObjectsOkEvent.html +2 -2
  42. package/apidoc/types/Coordinate.html +2 -2
  43. package/apidoc/types/CustomValidityType.html +2 -2
  44. package/apidoc/types/DataType.html +2 -2
  45. package/apidoc/types/EmbeddingTargetId.html +2 -2
  46. package/apidoc/types/Extent.html +2 -2
  47. package/apidoc/types/ExtentStrategy.html +2 -2
  48. package/apidoc/types/FilterVariables.html +2 -2
  49. package/apidoc/types/GeometryType.html +2 -2
  50. package/apidoc/types/GlobalId.html +2 -2
  51. package/apidoc/types/Layout.html +2 -2
  52. package/apidoc/types/LengthUnit.html +1 -1
  53. package/apidoc/types/OpaqueString.html +2 -2
  54. package/apidoc/types/OperationMode.html +2 -2
  55. package/apidoc/types/Polygon.html +1 -1
  56. package/apidoc/types/SpatialRelation.html +2 -2
  57. package/apidoc/types/TablePart.html +2 -2
  58. package/apidoc/types/UiFeature.html +2 -2
  59. package/apidoc/types/WorkbookLayerPath.html +2 -2
  60. package/apidoc/types/WorksheetPlaceholders.html +2 -2
  61. package/cadenza.d.ts +3 -3
  62. package/cadenza.js +6 -6
  63. package/package.json +1 -1
  64. package/sandbox.html +1 -0
package/cadenza.js CHANGED
@@ -18,7 +18,7 @@
18
18
  */
19
19
  // This placeholder is replaced when Cadenza JS is released,
20
20
  // i.e. during development, the version is not available.
21
- const CADENZAJS_VERSION = '10.5.6';
21
+ const CADENZAJS_VERSION = '10.6.1';
22
22
  /**
23
23
  * Creates an instance of the Cadenza JS client.
24
24
  *
@@ -181,7 +181,7 @@ globalThis.cadenza = Object.assign((/** @type Parameters<cadenza> */ ...args) =>
181
181
  * @property {boolean} [useMapSrs] - Whether the coordinates specified in other parameters are specified in the map's SRS and the created geometry should use the map's SRS (otherwise EPSG:4326 is assumed)
182
182
  */
183
183
  /**
184
- * @typedef {'csv' | 'excel' | 'json' | 'pdf' | 'png'} DataType - A data type
184
+ * @typedef {'csv' | 'excel' | 'ods' | 'json' | 'pdf' | 'png'} DataType - A data type
185
185
  *
186
186
  * See [JSON Representation of Cadenza Object Data](../index.html#md:json-representation-of-cadenza-object-data) for JSON data.
187
187
  */
@@ -1084,7 +1084,7 @@ export class CadenzaClient {
1084
1084
  *
1085
1085
  * @param {EmbeddingTargetId} source - The workbook view to fetch data from.
1086
1086
  * @param {DataType} dataType - The data type you want to get back from the server.
1087
- * Currently, `"csv"`, `"excel"` and `"json"` are supported for embedding targets of type view with a view type of
1087
+ * Currently, `"csv"`, `"excel"`, `"ods"`, and `"json"` are supported for embedding targets of type view with a view type of
1088
1088
  * table and indicator. `"pdf"` is supported for embedding targets of type report and of type view with a view type
1089
1089
  * of "JasperReports report".
1090
1090
  * @param {object} [__namedParameters] - Options
@@ -1097,7 +1097,7 @@ export class CadenzaClient {
1097
1097
  */
1098
1098
  fetchData(source, dataType, { filter, parts, signal } = {}) {
1099
1099
  this.#log('CadenzaClient#fetchData', ...arguments);
1100
- assertSupportedDataType(dataType, ['csv', 'excel', 'json', 'pdf']);
1100
+ assertSupportedDataType(dataType, ['csv', 'excel', 'ods', 'json', 'pdf']);
1101
1101
  const params = this.#createParams({ dataType, filter, parts });
1102
1102
  return this.#fetch(resolvePath(source), params, signal);
1103
1103
  }
@@ -1199,7 +1199,7 @@ export class CadenzaClient {
1199
1199
  *
1200
1200
  * @param {EmbeddingTargetId} source - The workbook view to fetch data from.
1201
1201
  * @param {DataType} dataType - The data type you want to get back from the server.
1202
- * Currently, `"csv"`, `"excel"` and `"json"` are supported for embedding targets of type view with a view type of
1202
+ * Currently, `"csv"`, `"excel"`, `"ods"`, and `"json"` are supported for embedding targets of type view with a view type of
1203
1203
  * table and indicator. `"pdf"` is supported for embedding targets of type report and of type view with a view type
1204
1204
  * of "JasperReports report".
1205
1205
  * @param {object} [__namedParameters] - Options
@@ -1211,7 +1211,7 @@ export class CadenzaClient {
1211
1211
  */
1212
1212
  downloadData(source, dataType, { fileName, filter, parts } = {}) {
1213
1213
  this.#log('CadenzaClient#downloadData', ...arguments);
1214
- assertSupportedDataType(dataType, ['csv', 'excel', 'json', 'pdf']);
1214
+ assertSupportedDataType(dataType, ['csv', 'excel', 'ods', 'json', 'pdf']);
1215
1215
  const params = this.#createParams({ dataType, fileName, filter, parts });
1216
1216
  this.#download(resolvePath(source), params);
1217
1217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@disy/cadenza.js",
3
- "version": "10.5.6",
3
+ "version": "10.6.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": "github:DisyInformationssysteme/cadenza.js",
6
6
  "type": "module",
package/sandbox.html CHANGED
@@ -501,6 +501,7 @@
501
501
  <select name="dataType" id="dataType" required>
502
502
  <option>csv</option>
503
503
  <option>excel</option>
504
+ <option>ods</option>
504
505
  <option>json</option>
505
506
  <option>pdf</option>
506
507
  </select>