@vertigis/viewer-spec 48.11.0 → 48.12.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.
@@ -25,6 +25,7 @@ import { SystemOperations } from "./system.js";
25
25
  import { TasksOperations } from "./tasks.js";
26
26
  import { UIOperations } from "./ui.js";
27
27
  import { ViewerOperations } from "./viewer.js";
28
+ import { WorkflowOperations } from "./workflow.js";
28
29
  export declare class Operations extends OperationRegistry {
29
30
  readonly arcade: ArcadeOperations;
30
31
  readonly auth: AuthOperations;
@@ -51,6 +52,7 @@ export declare class Operations extends OperationRegistry {
51
52
  readonly tasks: TasksOperations;
52
53
  readonly ui: UIOperations;
53
54
  readonly viewer: ViewerOperations;
55
+ readonly workflow: WorkflowOperations;
54
56
  /**
55
57
  * @deprecated
56
58
  */
@@ -1 +1 @@
1
- import{OperationRegistry}from"../OperationRegistry.js";import{AppOperations}from"./app.js";import{ArcadeOperations}from"./arcade.js";import{AuthOperations}from"./auth.js";import{BasemapOperations}from"./basemap.js";import{ChartOperations}from"./charts.js";import{DebugConsoleOperations}from"./debugConsole.js";import{DrawingOperations}from"./drawing.js";import{EditOperations}from"./edit.js";import{FileOperations}from"./file.js";import{GeocodeOperations}from"./geocode.js";import{GeolocationOperations}from"./geolocation.js";import{GeometryOperations}from"./geometry.js";import{HighlightsOperations}from"./highlights.js";import{KpiOperations}from"./kpi.js";import{LogViewerOperations}from"./logViewer.js";import{MapOperations}from"./map.js";import{MeasurementOperations}from"./measurement.js";import{MessagingOperations}from"./messaging.js";import{NetworkOperations}from"./network.js";import{OfflineOperations}from"./offline.js";import{ResultsOperations}from"./results.js";import{SketchingOperations}from"./sketching.js";import{SystemOperations}from"./system.js";import{TasksOperations}from"./tasks.js";import{UIOperations}from"./ui.js";import{ViewerOperations}from"./viewer.js";export class Operations extends OperationRegistry{constructor(){super(...arguments),this.arcade=new ArcadeOperations(this._messages),this.auth=new AuthOperations(this._messages),this.app=new AppOperations(this._messages),this.basemap=new BasemapOperations(this._messages),this.charts=new ChartOperations(this._messages),this.edit=new EditOperations(this._messages),this.drawing=new DrawingOperations(this._messages),this.file=new FileOperations(this._messages),this.geocode=new GeocodeOperations(this._messages),this.geolocation=new GeolocationOperations(this._messages),this.geometry=new GeometryOperations(this._messages),this.highlights=new HighlightsOperations(this._messages),this.kpi=new KpiOperations(this._messages),this.logViewer=new LogViewerOperations(this._messages),this.map=new MapOperations(this._messages),this.measurement=new MeasurementOperations(this._messages),this.messaging=new MessagingOperations(this._messages),this.network=new NetworkOperations(this._messages),this.offline=new OfflineOperations(this._messages),this.sketching=new SketchingOperations(this._messages),this.system=new SystemOperations(this._messages),this.results=new ResultsOperations(this._messages),this.tasks=new TasksOperations(this._messages),this.ui=new UIOperations(this._messages),this.viewer=new ViewerOperations(this._messages),this.debugConsole=new DebugConsoleOperations(this._messages)}}
1
+ import{OperationRegistry}from"../OperationRegistry.js";import{AppOperations}from"./app.js";import{ArcadeOperations}from"./arcade.js";import{AuthOperations}from"./auth.js";import{BasemapOperations}from"./basemap.js";import{ChartOperations}from"./charts.js";import{DebugConsoleOperations}from"./debugConsole.js";import{DrawingOperations}from"./drawing.js";import{EditOperations}from"./edit.js";import{FileOperations}from"./file.js";import{GeocodeOperations}from"./geocode.js";import{GeolocationOperations}from"./geolocation.js";import{GeometryOperations}from"./geometry.js";import{HighlightsOperations}from"./highlights.js";import{KpiOperations}from"./kpi.js";import{LogViewerOperations}from"./logViewer.js";import{MapOperations}from"./map.js";import{MeasurementOperations}from"./measurement.js";import{MessagingOperations}from"./messaging.js";import{NetworkOperations}from"./network.js";import{OfflineOperations}from"./offline.js";import{ResultsOperations}from"./results.js";import{SketchingOperations}from"./sketching.js";import{SystemOperations}from"./system.js";import{TasksOperations}from"./tasks.js";import{UIOperations}from"./ui.js";import{ViewerOperations}from"./viewer.js";import{WorkflowOperations}from"./workflow.js";export class Operations extends OperationRegistry{constructor(){super(...arguments),this.arcade=new ArcadeOperations(this._messages),this.auth=new AuthOperations(this._messages),this.app=new AppOperations(this._messages),this.basemap=new BasemapOperations(this._messages),this.charts=new ChartOperations(this._messages),this.edit=new EditOperations(this._messages),this.drawing=new DrawingOperations(this._messages),this.file=new FileOperations(this._messages),this.geocode=new GeocodeOperations(this._messages),this.geolocation=new GeolocationOperations(this._messages),this.geometry=new GeometryOperations(this._messages),this.highlights=new HighlightsOperations(this._messages),this.kpi=new KpiOperations(this._messages),this.logViewer=new LogViewerOperations(this._messages),this.map=new MapOperations(this._messages),this.measurement=new MeasurementOperations(this._messages),this.messaging=new MessagingOperations(this._messages),this.network=new NetworkOperations(this._messages),this.offline=new OfflineOperations(this._messages),this.sketching=new SketchingOperations(this._messages),this.system=new SystemOperations(this._messages),this.results=new ResultsOperations(this._messages),this.tasks=new TasksOperations(this._messages),this.ui=new UIOperations(this._messages),this.viewer=new ViewerOperations(this._messages),this.workflow=new WorkflowOperations(this._messages),this.debugConsole=new DebugConsoleOperations(this._messages)}}
@@ -2,11 +2,10 @@ import type { Command } from "../Command.js";
2
2
  import { CommandRegistry } from "../CommandRegistry.js";
3
3
  import type { Event } from "../Event.js";
4
4
  import { EventRegistry } from "../EventRegistry.js";
5
+ import type { Operation } from "../Operation.js";
6
+ import { OperationRegistry } from "../OperationRegistry.js";
5
7
  import type { MapsLike } from "../common.js";
6
- /**
7
- * Arguments for the workflow.run command.
8
- */
9
- export interface RunWorkflowArgs {
8
+ interface ExecuteWorkflowArgs {
10
9
  /**
11
10
  * The ID of the workflow item in app config.
12
11
  */
@@ -46,6 +45,11 @@ export interface RunWorkflowArgs {
46
45
  * child of the targeted container, and removed when the workflow finishes running.
47
46
  */
48
47
  target?: string;
48
+ }
49
+ /**
50
+ * Arguments for the workflow.run command.
51
+ */
52
+ export interface RunWorkflowArgs extends ExecuteWorkflowArgs {
49
53
  /**
50
54
  * Whether or not the workflow should be executed asynchronously. If this
51
55
  * property is true, the workflow will be executed but the command will not
@@ -55,6 +59,11 @@ export interface RunWorkflowArgs {
55
59
  */
56
60
  async?: boolean;
57
61
  }
62
+ /**
63
+ * Arguments for the workflow.evaluate command.
64
+ */
65
+ export interface EvaluateWorkflowArgs extends ExecuteWorkflowArgs {
66
+ }
58
67
  interface WorkflowModel {
59
68
  }
60
69
  /**
@@ -95,7 +104,8 @@ export interface WorkflowFinishedEventArgs extends WorkflowEventBase {
95
104
  export declare type WorkflowEvent = unknown;
96
105
  export declare class WorkflowCommands extends CommandRegistry {
97
106
  /**
98
- * Runs a workflow with the given arguments.
107
+ * Runs a workflow with the given arguments. See the `workflow.evaluate`
108
+ * operation if you want to run a workflow and expect output values to be returned.
99
109
  */
100
110
  get run(): Command<RunWorkflowArgs>;
101
111
  /**
@@ -111,6 +121,15 @@ export declare class WorkflowCommands extends CommandRegistry {
111
121
  */
112
122
  get cancel(): Command<string>;
113
123
  }
124
+ export declare class WorkflowOperations extends OperationRegistry {
125
+ /**
126
+ * Runs a workflow with the given arguments and returns the workflow's
127
+ * output as the result of the operation. The output in the workflow is set
128
+ * using the "Set Workflow Output" activity. See the "workflow.run" command
129
+ * if you want to run a workflow without any output values.
130
+ */
131
+ get evaluate(): Operation<EvaluateWorkflowArgs, Record<string, unknown>>;
132
+ }
114
133
  export declare class WorkflowEvents extends EventRegistry {
115
134
  /**
116
135
  * Raised when a workflow has started running.
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";export class WorkflowCommands extends CommandRegistry{get run(){return this._messages.command("workflow.run")}get refresh(){return this._messages.command("workflow.refresh")}get cancel(){return this._messages.command("workflow.cancel")}}export class WorkflowEvents extends EventRegistry{get workflowStarted(){return this._messages.event("workflow.workflow-started")}get starting(){return this._messages.event("workflow.starting")}get workflowFinished(){return this._messages.event("workflow.workflow-finished")}get workflowError(){return this._messages.event("workflow.workflow-error")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class WorkflowCommands extends CommandRegistry{get run(){return this._messages.command("workflow.run")}get refresh(){return this._messages.command("workflow.refresh")}get cancel(){return this._messages.command("workflow.cancel")}}export class WorkflowOperations extends OperationRegistry{get evaluate(){return this._messages.operation("workflow.evaluate")}}export class WorkflowEvents extends EventRegistry{get workflowStarted(){return this._messages.event("workflow.workflow-started")}get starting(){return this._messages.event("workflow.starting")}get workflowFinished(){return this._messages.event("workflow.workflow-finished")}get workflowError(){return this._messages.event("workflow.workflow-error")}}
@@ -1185,6 +1185,48 @@
1185
1185
  ],
1186
1186
  "type": "string"
1187
1187
  },
1188
+ "EvaluateWorkflowArgs": {
1189
+ "additionalProperties": false,
1190
+ "description": "Arguments for the workflow.evaluate command.",
1191
+ "properties": {
1192
+ "commandArgumentInput": {
1193
+ "description": "The workflow input that the command's context will map to.",
1194
+ "type": "string"
1195
+ },
1196
+ "icon": {
1197
+ "description": "An icon to display for the workflow.",
1198
+ "type": "string"
1199
+ },
1200
+ "id": {
1201
+ "description": "The ID of the workflow item in app config.",
1202
+ "type": "string"
1203
+ },
1204
+ "inputs": {
1205
+ "$ref": "__type",
1206
+ "description": "The inputs to be passed into the workflow."
1207
+ },
1208
+ "instanceId": {
1209
+ "description": "A unique Id to identify an instance of this workflow running.",
1210
+ "type": "string"
1211
+ },
1212
+ "maps": {
1213
+ "$ref": "MapsLike",
1214
+ "description": "The map to target, if omitted Web will attempt to choose the best map for you."
1215
+ },
1216
+ "target": {
1217
+ "description": "The layout ID of the workflow component to use for any workflow forms, or the ID of a container component like taskbar, panel, stack, etc. In the latter case, a new workflow component will be created dynamically as a child of the targeted container, and removed when the workflow finishes running.",
1218
+ "type": "string"
1219
+ },
1220
+ "title": {
1221
+ "description": "The title of the workflow.",
1222
+ "type": "string"
1223
+ }
1224
+ },
1225
+ "required": [
1226
+ "id"
1227
+ ],
1228
+ "type": "object"
1229
+ },
1188
1230
  "Features": {
1189
1231
  "anyOf": [
1190
1232
  {
@@ -12771,6 +12813,22 @@
12771
12813
  ],
12772
12814
  "type": "object"
12773
12815
  },
12816
+ {
12817
+ "additionalProperties": false,
12818
+ "properties": {
12819
+ "arguments": {
12820
+ "$ref": "#/definitions/workflow.evaluate:input"
12821
+ },
12822
+ "name": {
12823
+ "$ref": "#/definitions/workflow.evaluate"
12824
+ }
12825
+ },
12826
+ "required": [
12827
+ "name",
12828
+ "arguments"
12829
+ ],
12830
+ "type": "object"
12831
+ },
12774
12832
  {
12775
12833
  "additionalProperties": false,
12776
12834
  "properties": {
@@ -12955,6 +13013,9 @@
12955
13013
  {
12956
13014
  "$ref": "#/definitions/ui.set-theme"
12957
13015
  },
13016
+ {
13017
+ "$ref": "#/definitions/workflow.evaluate"
13018
+ },
12958
13019
  {
12959
13020
  "$ref": "#/definitions/workflow.run"
12960
13021
  }
@@ -13220,8 +13281,17 @@
13220
13281
  }
13221
13282
  ]
13222
13283
  },
13284
+ "workflow.evaluate": {
13285
+ "description": "Runs a workflow with the given arguments and returns the workflow's output as the result of the operation. The output in the workflow is set using the \"Set Workflow Output\" activity. See the \"workflow.run\" command if you want to run a workflow without any output values.",
13286
+ "enum": [
13287
+ "workflow.evaluate"
13288
+ ]
13289
+ },
13290
+ "workflow.evaluate:input": {
13291
+ "$ref": "#/definitions/EvaluateWorkflowArgs"
13292
+ },
13223
13293
  "workflow.run": {
13224
- "description": "Runs a workflow with the given arguments.",
13294
+ "description": "Runs a workflow with the given arguments. See the `workflow.evaluate` operation if you want to run a workflow and expect output values to be returned.",
13225
13295
  "enum": [
13226
13296
  "workflow.run"
13227
13297
  ]
@@ -1431,6 +1431,48 @@
1431
1431
  },
1432
1432
  "type": "object"
1433
1433
  },
1434
+ "EvaluateWorkflowArgs": {
1435
+ "additionalProperties": false,
1436
+ "description": "Arguments for the workflow.evaluate command.",
1437
+ "properties": {
1438
+ "commandArgumentInput": {
1439
+ "description": "The workflow input that the command's context will map to.",
1440
+ "type": "string"
1441
+ },
1442
+ "icon": {
1443
+ "description": "An icon to display for the workflow.",
1444
+ "type": "string"
1445
+ },
1446
+ "id": {
1447
+ "description": "The ID of the workflow item in app config.",
1448
+ "type": "string"
1449
+ },
1450
+ "inputs": {
1451
+ "$ref": "__type",
1452
+ "description": "The inputs to be passed into the workflow."
1453
+ },
1454
+ "instanceId": {
1455
+ "description": "A unique Id to identify an instance of this workflow running.",
1456
+ "type": "string"
1457
+ },
1458
+ "maps": {
1459
+ "$ref": "MapsLike",
1460
+ "description": "The map to target, if omitted Web will attempt to choose the best map for you."
1461
+ },
1462
+ "target": {
1463
+ "description": "The layout ID of the workflow component to use for any workflow forms, or the ID of a container component like taskbar, panel, stack, etc. In the latter case, a new workflow component will be created dynamically as a child of the targeted container, and removed when the workflow finishes running.",
1464
+ "type": "string"
1465
+ },
1466
+ "title": {
1467
+ "description": "The title of the workflow.",
1468
+ "type": "string"
1469
+ }
1470
+ },
1471
+ "required": [
1472
+ "id"
1473
+ ],
1474
+ "type": "object"
1475
+ },
1434
1476
  "ExportMapImageArgs": {
1435
1477
  "additionalProperties": false,
1436
1478
  "description": "Arguments for the \"map.export-image\" operation.",
@@ -15588,6 +15630,22 @@
15588
15630
  ],
15589
15631
  "type": "object"
15590
15632
  },
15633
+ {
15634
+ "additionalProperties": false,
15635
+ "properties": {
15636
+ "arguments": {
15637
+ "$ref": "#/definitions/workflow.evaluate:input"
15638
+ },
15639
+ "name": {
15640
+ "$ref": "#/definitions/workflow.evaluate"
15641
+ }
15642
+ },
15643
+ "required": [
15644
+ "name",
15645
+ "arguments"
15646
+ ],
15647
+ "type": "object"
15648
+ },
15591
15649
  {
15592
15650
  "additionalProperties": false,
15593
15651
  "properties": {
@@ -16004,6 +16062,9 @@
16004
16062
  {
16005
16063
  "$ref": "#/definitions/workflow.cancel"
16006
16064
  },
16065
+ {
16066
+ "$ref": "#/definitions/workflow.evaluate"
16067
+ },
16007
16068
  {
16008
16069
  "$ref": "#/definitions/workflow.refresh"
16009
16070
  },
@@ -16819,6 +16880,15 @@
16819
16880
  "workflow.cancel:input": {
16820
16881
  "type": "string"
16821
16882
  },
16883
+ "workflow.evaluate": {
16884
+ "description": "Runs a workflow with the given arguments and returns the workflow's output as the result of the operation. The output in the workflow is set using the \"Set Workflow Output\" activity. See the \"workflow.run\" command if you want to run a workflow without any output values.",
16885
+ "enum": [
16886
+ "workflow.evaluate"
16887
+ ]
16888
+ },
16889
+ "workflow.evaluate:input": {
16890
+ "$ref": "#/definitions/EvaluateWorkflowArgs"
16891
+ },
16822
16892
  "workflow.refresh": {
16823
16893
  "description": "Refreshes a workflow with the given arguments.",
16824
16894
  "enum": [
@@ -16829,7 +16899,7 @@
16829
16899
  "$ref": "#/definitions/RunWorkflowArgs"
16830
16900
  },
16831
16901
  "workflow.run": {
16832
- "description": "Runs a workflow with the given arguments.",
16902
+ "description": "Runs a workflow with the given arguments. See the `workflow.evaluate` operation if you want to run a workflow and expect output values to be returned.",
16833
16903
  "enum": [
16834
16904
  "workflow.run"
16835
16905
  ]
@@ -1958,6 +1958,48 @@
1958
1958
  ],
1959
1959
  "type": "string"
1960
1960
  },
1961
+ "EvaluateWorkflowArgs": {
1962
+ "additionalProperties": false,
1963
+ "description": "Arguments for the workflow.evaluate command.",
1964
+ "properties": {
1965
+ "commandArgumentInput": {
1966
+ "description": "The workflow input that the command's context will map to.",
1967
+ "type": "string"
1968
+ },
1969
+ "icon": {
1970
+ "description": "An icon to display for the workflow.",
1971
+ "type": "string"
1972
+ },
1973
+ "id": {
1974
+ "description": "The ID of the workflow item in app config.",
1975
+ "type": "string"
1976
+ },
1977
+ "inputs": {
1978
+ "$ref": "__type",
1979
+ "description": "The inputs to be passed into the workflow."
1980
+ },
1981
+ "instanceId": {
1982
+ "description": "A unique Id to identify an instance of this workflow running.",
1983
+ "type": "string"
1984
+ },
1985
+ "maps": {
1986
+ "$ref": "MapsLike",
1987
+ "description": "The map to target, if omitted Web will attempt to choose the best map for you."
1988
+ },
1989
+ "target": {
1990
+ "description": "The layout ID of the workflow component to use for any workflow forms, or the ID of a container component like taskbar, panel, stack, etc. In the latter case, a new workflow component will be created dynamically as a child of the targeted container, and removed when the workflow finishes running.",
1991
+ "type": "string"
1992
+ },
1993
+ "title": {
1994
+ "description": "The title of the workflow.",
1995
+ "type": "string"
1996
+ }
1997
+ },
1998
+ "required": [
1999
+ "id"
2000
+ ],
2001
+ "type": "object"
2002
+ },
1961
2003
  "Features": {
1962
2004
  "anyOf": [
1963
2005
  {
@@ -19954,6 +19996,22 @@
19954
19996
  ],
19955
19997
  "type": "object"
19956
19998
  },
19999
+ {
20000
+ "additionalProperties": false,
20001
+ "properties": {
20002
+ "arguments": {
20003
+ "$ref": "#/definitions/workflow.evaluate:input"
20004
+ },
20005
+ "name": {
20006
+ "$ref": "#/definitions/workflow.evaluate"
20007
+ }
20008
+ },
20009
+ "required": [
20010
+ "name",
20011
+ "arguments"
20012
+ ],
20013
+ "type": "object"
20014
+ },
19957
20015
  {
19958
20016
  "additionalProperties": false,
19959
20017
  "properties": {
@@ -20402,6 +20460,9 @@
20402
20460
  {
20403
20461
  "$ref": "#/definitions/viewer.set-debug-mode"
20404
20462
  },
20463
+ {
20464
+ "$ref": "#/definitions/workflow.evaluate"
20465
+ },
20405
20466
  {
20406
20467
  "$ref": "#/definitions/workflow.run"
20407
20468
  }
@@ -21633,8 +21694,17 @@
21633
21694
  "viewer.set-debug-mode:input": {
21634
21695
  "type": "boolean"
21635
21696
  },
21697
+ "workflow.evaluate": {
21698
+ "description": "Runs a workflow with the given arguments and returns the workflow's output as the result of the operation. The output in the workflow is set using the \"Set Workflow Output\" activity. See the \"workflow.run\" command if you want to run a workflow without any output values.",
21699
+ "enum": [
21700
+ "workflow.evaluate"
21701
+ ]
21702
+ },
21703
+ "workflow.evaluate:input": {
21704
+ "$ref": "#/definitions/EvaluateWorkflowArgs"
21705
+ },
21636
21706
  "workflow.run": {
21637
- "description": "Runs a workflow with the given arguments.",
21707
+ "description": "Runs a workflow with the given arguments. See the `workflow.evaluate` operation if you want to run a workflow and expect output values to be returned.",
21638
21708
  "enum": [
21639
21709
  "workflow.run"
21640
21710
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "48.11.0",
3
+ "version": "48.12.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 Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "48.11.0";
4
+ export declare const version = "48.12.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export const version = "48.11.0";
4
+ export const version = "48.12.0";