@vertigis/viewer-spec 53.2.0 → 53.4.0

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.
@@ -4,6 +4,22 @@ import { CommandRegistry } from "../CommandRegistry.js";
4
4
  import type { Event } from "../Event.js";
5
5
  import { EventRegistry } from "../EventRegistry.js";
6
6
  import type { FeaturesLike } from "../common.js";
7
+ /**
8
+ * Represents a data source for VertiGIS Studio Reporting. A data source created
9
+ * at report design time will be replaced by this data source at runtime.
10
+ */
11
+ export interface ReportDataSource {
12
+ /**
13
+ * The name is the name of the data source whose data you want to replace.
14
+ * The name must match the name of the data source in the report.
15
+ */
16
+ name: string;
17
+ /**
18
+ * The value is an object that defines the data to use in the report. The
19
+ * value is defined using the same schema as the data source in the report.
20
+ */
21
+ value: unknown;
22
+ }
7
23
  /**
8
24
  * The arguments required by the reports.run command.
9
25
  */
@@ -28,6 +44,10 @@ export interface RunReportArgs {
28
44
  * The features passed to the report.
29
45
  */
30
46
  features?: FeaturesLike;
47
+ /**
48
+ * Replace the data from one or more data sources at run time.
49
+ */
50
+ dataSources?: ReportDataSource | ReportDataSource[];
31
51
  }
32
52
  /**
33
53
  * Base for the Report Event Args interfaces.
@@ -15,7 +15,7 @@ export declare class ViewerCommands extends CommandRegistry {
15
15
  */
16
16
  get loadLayout(): Command<string | Model>;
17
17
  /**
18
- * Post a message to the parent iframe of the viewer.
18
+ * Post a message to the parent frame of the viewer.
19
19
  *
20
20
  * @webOnly
21
21
  */
@@ -75,6 +75,12 @@ export declare class ViewerOperations extends OperationRegistry {
75
75
  * @webOnly
76
76
  */
77
77
  get getVersion(): Operation<void, string>;
78
+ /**
79
+ * Post a message to the parent frame of the viewer and await the reply.
80
+ *
81
+ * @webOnly
82
+ */
83
+ get postMessageAwaitReply(): Operation<unknown, unknown>;
78
84
  }
79
85
  /**
80
86
  * Arguments for the 'viewer.publish-event' command.
@@ -1 +1 @@
1
- import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as s}from"../OperationRegistry.js";export class ViewerCommands extends e{get loadLayout(){return this._messages.command("viewer.load-layout")}get postMessage(){return this._messages.command("viewer.post-message")}get publishEvent(){return this._messages.command("viewer.publish-event")}get setDebugMode(){return this._messages.command("viewer.set-debug-mode")}}export class ViewerEvents extends t{get layoutChanged(){return this._messages.event("viewer.layout-changed")}}export class ViewerOperations extends s{get getAllLayouts(){return this._messages.operation("viewer.get-all-layouts")}get getCurrentLayout(){return this._messages.operation("viewer.get-current-layout")}get getCapabilities(){return this._messages.operation("viewer.get-capabilities")}get getInDebugMode(){return this._messages.operation("viewer.get-in-debug-mode")}get getVersion(){return this._messages.operation("viewer.get-version")}}
1
+ import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as s}from"../OperationRegistry.js";export class ViewerCommands extends e{get loadLayout(){return this._messages.command("viewer.load-layout")}get postMessage(){return this._messages.command("viewer.post-message")}get publishEvent(){return this._messages.command("viewer.publish-event")}get setDebugMode(){return this._messages.command("viewer.set-debug-mode")}}export class ViewerEvents extends t{get layoutChanged(){return this._messages.event("viewer.layout-changed")}}export class ViewerOperations extends s{get getAllLayouts(){return this._messages.operation("viewer.get-all-layouts")}get getCurrentLayout(){return this._messages.operation("viewer.get-current-layout")}get getCapabilities(){return this._messages.operation("viewer.get-capabilities")}get getInDebugMode(){return this._messages.operation("viewer.get-in-debug-mode")}get getVersion(){return this._messages.operation("viewer.get-version")}get postMessageAwaitReply(){return this._messages.operation("viewer.post-message-await-reply")}}
@@ -5043,6 +5043,24 @@
5043
5043
  },
5044
5044
  "type": "object"
5045
5045
  },
5046
+ "ReportDataSource": {
5047
+ "additionalProperties": false,
5048
+ "description": "Represents a data source for VertiGIS Studio Reporting. A data source created at report design time will be replaced by this data source at runtime.",
5049
+ "properties": {
5050
+ "name": {
5051
+ "description": "The name is the name of the data source whose data you want to replace. The name must match the name of the data source in the report.",
5052
+ "type": "string"
5053
+ },
5054
+ "value": {
5055
+ "description": "The value is an object that defines the data to use in the report. The value is defined using the same schema as the data source in the report."
5056
+ }
5057
+ },
5058
+ "required": [
5059
+ "name",
5060
+ "value"
5061
+ ],
5062
+ "type": "object"
5063
+ },
5046
5064
  "Results": {
5047
5065
  "additionalProperties": false,
5048
5066
  "description": "Feature results from an operation.",
@@ -5240,6 +5258,20 @@
5240
5258
  "additionalProperties": false,
5241
5259
  "description": "The arguments required by the reports.run command.",
5242
5260
  "properties": {
5261
+ "dataSources": {
5262
+ "anyOf": [
5263
+ {
5264
+ "$ref": "#/definitions/ReportDataSource"
5265
+ },
5266
+ {
5267
+ "items": {
5268
+ "$ref": "#/definitions/ReportDataSource"
5269
+ },
5270
+ "type": "array"
5271
+ }
5272
+ ],
5273
+ "description": "Replace the data from one or more data sources at run time."
5274
+ },
5243
5275
  "features": {
5244
5276
  "$ref": "#/definitions/FeaturesLike",
5245
5277
  "description": "The features passed to the report."
@@ -23745,6 +23777,9 @@
23745
23777
  {
23746
23778
  "$ref": "#/definitions/viewer.post-message"
23747
23779
  },
23780
+ {
23781
+ "$ref": "#/definitions/viewer.post-message-await-reply"
23782
+ },
23748
23783
  {
23749
23784
  "$ref": "#/definitions/viewer.set-debug-mode"
23750
23785
  },
@@ -25319,11 +25354,17 @@
25319
25354
  ]
25320
25355
  },
25321
25356
  "viewer.post-message": {
25322
- "description": "Post a message to the parent iframe of the viewer.",
25357
+ "description": "Post a message to the parent frame of the viewer.",
25323
25358
  "enum": [
25324
25359
  "viewer.post-message"
25325
25360
  ]
25326
25361
  },
25362
+ "viewer.post-message-await-reply": {
25363
+ "description": "Post a message to the parent frame of the viewer and await the reply.",
25364
+ "enum": [
25365
+ "viewer.post-message-await-reply"
25366
+ ]
25367
+ },
25327
25368
  "viewer.set-debug-mode": {
25328
25369
  "description": "Turn the debug mode of the viewer on or off. This can also be done using the debug=true URL parameter.",
25329
25370
  "enum": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "53.2.0",
3
+ "version": "53.4.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export declare const version = "53.2.0";
4
+ export declare const version = "53.4.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the VertiGIS Studio Viewer Specification.
3
3
  */
4
- export const version = "53.2.0";
4
+ export const version = "53.4.0";