@vertigis/viewer-spec 58.21.1 → 58.22.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.
@@ -0,0 +1,15 @@
1
+ import type { Event } from "../Event.js";
2
+ import { EventRegistry } from "../EventRegistry.js";
3
+ import type { TraceCompletedArgs } from "./utility-network.js";
4
+ /**
5
+ * Events relating to utility network tracing.
6
+ */
7
+ export declare class TracingEvents extends EventRegistry {
8
+ protected readonly _prefix = "tracing";
9
+ /**
10
+ * Raised when a utility network trace is succesfully completed.
11
+ *
12
+ * @mobileOnly
13
+ */
14
+ get completed(): Event<TraceCompletedArgs>;
15
+ }
@@ -0,0 +1 @@
1
+ import{EventRegistry as e}from"../EventRegistry.js";export class TracingEvents extends e{_prefix="tracing";get completed(){return this._get("trace-completed")}}
@@ -0,0 +1,99 @@
1
+ /// <reference types="esri-runtime-sdk" />
2
+ import type UtilityElement from "esri-runtime-sdk/UtilityElement";
3
+ import type UtilityNamedTraceConfiguration from "esri-runtime-sdk/UtilityNamedTraceConfiguration";
4
+ import type UtilityNetwork from "esri-runtime-sdk/UtilityNetwork";
5
+ import type UtilityTraceResult from "esri-runtime-sdk/UtilityTraceResult";
6
+ import type { Command } from "../Command.js";
7
+ import { CommandRegistry } from "../CommandRegistry.js";
8
+ import type { Operation } from "../Operation.js";
9
+ import { OperationRegistry } from "../OperationRegistry.js";
10
+ import type { HasMaps, MapsFeatureResultArgs, HasMapsAndFeatures } from "../common.js";
11
+ /**
12
+ * Arguments relating to a utility network.
13
+ */
14
+ export interface HasUtilityNetwork {
15
+ /**
16
+ * The utility network involved in the operation.
17
+ */
18
+ utilityNetwork: UtilityNetwork;
19
+ }
20
+ /**
21
+ * Results from a completed trace.
22
+ */
23
+ export interface TraceCompletedArgs extends MapsFeatureResultArgs, HasUtilityNetwork {
24
+ /**
25
+ * Results from the trace.
26
+ */
27
+ traceResults: UtilityTraceResult[];
28
+ /**
29
+ * The configuration that was used to get these results.
30
+ */
31
+ traceConfiguration: UtilityNamedTraceConfiguration;
32
+ }
33
+ /**
34
+ * Arguments for the runTrace operation.
35
+ */
36
+ export interface NetworkTraceArgs extends UtilityNetworkArgs {
37
+ /**
38
+ * The start point(s) to use for the trace.
39
+ */
40
+ startPoints: UtilityElement[];
41
+ /**
42
+ * The barriers to use for the trace (optional).
43
+ */
44
+ barriers?: UtilityElement[];
45
+ /**
46
+ * The configuration to use for the trace.
47
+ */
48
+ traceConfiguration: UtilityNamedTraceConfiguration;
49
+ }
50
+ /**
51
+ * Arguments for the getUtilityElementsFromFeatures operation.
52
+ */
53
+ export interface GetUtilityElementsArgs extends HasUtilityNetwork, HasMapsAndFeatures {
54
+ }
55
+ /**
56
+ * Arguments relating to a utility network.
57
+ */
58
+ export interface UtilityNetworkArgs extends HasUtilityNetwork, HasMaps {
59
+ }
60
+ /**
61
+ * Commands relating to utility networks.
62
+ */
63
+ export declare class UtilityNetworkCommands extends CommandRegistry {
64
+ protected readonly _prefix = "utility-network";
65
+ /**
66
+ * Displays the UI panel to perform a named trace. Mobile only. Only
67
+ * available to VertiGIS Networks customers.
68
+ *
69
+ * @mobileOnly
70
+ */
71
+ get showTracePanel(): Command;
72
+ }
73
+ /**
74
+ * Operations relating to utility networks.
75
+ */
76
+ export declare class UtilityNetworkOperations extends OperationRegistry {
77
+ protected readonly _prefix = "utility-network";
78
+ /**
79
+ * Runs a trace on a utility network. Mobile only. Only available to
80
+ * VertiGIS Networks customers.
81
+ *
82
+ * @mobileOnly
83
+ */
84
+ get runTrace(): Operation<NetworkTraceArgs, TraceCompletedArgs>;
85
+ /**
86
+ * Gets a list of UtilityElements from a list of Features. Mobile only. Only
87
+ * available to VertiGIS Networks customers.
88
+ *
89
+ * @mobileOnly
90
+ */
91
+ get getUtilityElementsFromFeatures(): Operation<GetUtilityElementsArgs, UtilityElement[]>;
92
+ /**
93
+ * Returns a list of available named traces from the specified network.
94
+ * Mobile only. Only available to VertiGIS Networks customers.
95
+ *
96
+ * @mobileOnly
97
+ */
98
+ get getNamedTraces(): Operation<UtilityNetworkArgs, UtilityNamedTraceConfiguration[]>;
99
+ }
@@ -0,0 +1 @@
1
+ import{CommandRegistry as t}from"../CommandRegistry.js";import{OperationRegistry as e}from"../OperationRegistry.js";export class UtilityNetworkCommands extends t{_prefix="utility-network";get showTracePanel(){return this._get("show-network-trace-panel")}}export class UtilityNetworkOperations extends e{_prefix="utility-network";get runTrace(){return this._get("run-trace")}get getUtilityElementsFromFeatures(){return this._get("get-elements-from-features")}get getNamedTraces(){return this._get("get-trace-configurations")}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "58.21.1",
3
+ "version": "58.22.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 = "58.21.1";
4
+ export declare const version = "58.22.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 = "58.21.1";
4
+ export const version = "58.22.0";