@vertigis/viewer-spec 53.3.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.
- package/messaging/registry/reports.d.ts +20 -0
- package/messaging/schema/web-action.schema.json +32 -0
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.
|
|
@@ -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."
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED