import type { UtilityNetworkFeatureClassUsageType, DividePolicyType, CombinePolicyType, UnitIdentifier, UnitRange } from "@arcgis/core/networks/support/jsonTypes.js";Type definitions
UtilityNetworkFeatureClassUsageType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "esriUNFCUTDevice" | "esriUNFCUTJunction" | "esriUNFCUTLine" | "esriUNFCUTAssembly" | "esriUNFCUTSubnetLine" | "esriUNFCUTStructureJunction" | "esriUNFCUTStructureLine" | "esriUNFCUTStructureBoundary" | "esriUNFCUTJunctionObject" | "esriUNFCUTEdgeObject" | "esriUNFCUTStructureJunctionObject" | "esriUNFCUTStructureEdgeObject" | "esriUNFCUTCircuit" | "esriUNFCUTCircuitSection" | "esriUNFCUTSubcircuit"
DividePolicyType
- Since
- ArcGIS Maps SDK for JavaScript 5.1
- Type
- "esriDPTUnitApportioned" | "esriDPTDefaultValue"
CombinePolicyType
- Since
- ArcGIS Maps SDK for JavaScript 5.1
- Type
- "esriCPTSumValues" | "esriCPTDefaultValue"
UnitIdentifier
- Since
- ArcGIS Maps SDK for JavaScript 4.34
Uniquely identifies an element by network source ID and global ID.
sourceId
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The element's network source ID.
UnitRange
- Since
- ArcGIS Maps SDK for JavaScript 4.34
A range of unit identifiers in a container feature or object's containment hierarchy.
firstUnit
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The unit offset in the grouped object.
lastUnit
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The last unit in the unit identifier range.
isGap
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Whether the unit identifier range is a gap, i.e., is not utilized.
content
- Type
- UnitIdentifier | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The object consuming the unit identifiers in this range.
CircuitExportResult
- Since
- ArcGIS Maps SDK for JavaScript 4.34
Results returned from the CircuitManager.export() method.
circuitName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The name of the exported circuit.
url
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The location of the exported circuit JSON file.
isDefaultTraceConfigurationModified
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Indicates if the default trace configuration has been modified.
status
- Type
- CircuitStatus
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The status of the exported circuit.
success
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates if the export was successful.
AssetTypeJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
AssetTypeJSON represents asset type. Attribute domains are assigned on the asset type field at the subtype level for each network class. It represents the minor classification of the utility network classes.
assetTypeCode
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The unique code for the asset type.
AssetGroupJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
AssetGroupJSON represents the asset group. The asset group is the subtype field and represents the major classification of utility network classes.
assetGroupCode
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The unique code for the asset group.
assetTypes
- Type
- AssetTypeJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of asset types associated with the asset group.
CircuitSourceJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
layerId
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The layer id of the point layer.
sourceId
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The network source id of the layer.
NetworkSourceJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
JunctionSourceJSON represents the point layers that participate in the utility network service.
- Supertypes
- CircuitSourceJSON
assetGroups
- Type
- AssetGroupJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The asset group attribute values for the point layer.
supportedProperties
- Type
- string[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Supported properties for the edge source.
usesGeometry
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.1
Indicates if the source uses geometry.
DomainNetworkJSON
- Since
- ArcGIS Maps SDK for JavaScript 4.34
Describes a domain network in a utility network data element.
domainNetworkName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The name of the domain network.
isStructureNetwork
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates if this domain network is a structure network.
isTelecomNetwork
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates if this domain network is a telecom domain network.
junctionSources
- Type
- NetworkSourceJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of network source objects that represent the sources of junction features.
edgeSources
- Type
- NetworkSourceJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of network source objects that represent the sources of edge features.
circuitSources
- Type
- CircuitSourceJSON[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of circuit source objects for telecom networks.
circuitProperties
- Type
- CircuitPropertiesJSON | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Circuit properties for telecom networks.
colorSchemes
- Type
- ColorSchemeJSON[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of objects to describe color schemes in a telecom domain network.
dividePolicies
- Type
- DividePolicyJSON[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of objects describing divide policies for a telecom domain network.
combinePolicies
- Type
- CombinePolicyJSON[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of objects describing combine policies.
traceConfiguration
- Type
- UNTraceConfiguration | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A UNTraceConfiguration object that defines the trace configuration for the domain network. This configuration includes parameters specific to utility networks.
colorSets
- Type
- ColorSetJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of objects representing color sets in a telecom domain network.
wavelengthSchemes
- Type
- WavelengthSchemeJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of objects representing wavelength schemes in a telecom domain network.
WavelengthSchemeJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.1
id
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The unique ID for the wavelength scheme.
name
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The name of the wavelength scheme.
wavelengths
- Type
- WavelengthJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of objects representing wavelengths in the wavelength scheme.
WavelengthJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.1
length
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The numeric value of the wavelength
ColorSchemeJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
colorSetId
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The ID of the color set associated with the color scheme.
levels
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The number of levels in the color scheme.
groups
- Type
- ColorSchemeGroupJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of objects representing color groups in the color scheme.
ColorSetJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.1
colorCodes
- Type
- ColorCodeJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of objects representing color codes in the color set.
ColorCodeJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.1
hexCodes
- Type
- string[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
An array of hex codes representing the color code.
ColorSchemeGroupJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.1
delimiter
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The delimiter for the color group.
capacity
- Type
- number[]
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The capacity for the color group.
DividePolicyJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.1
attributeName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The attribute name for the policy.
CombinePolicyJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.1
attributeName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.1
The attribute name for the policy.
TerminalConfigurationJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
terminalConfigurationId
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The Id that uniquely identifies the terminal configuration.
NetworkDataElementJSON
- Since
- ArcGIS Maps SDK for JavaScript 4.33
Contains the full network definition.
domainNetworks
- Type
- DomainNetworkJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of domain networks included in the utility network.
userIdentity
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The user identity associated with the network definition.
schemaGeneration
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The schema generation version number of the utility network.
terminalConfigurations
- Type
- TerminalConfigurationJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of terminal configuration objects available in the network.
serviceTerritoryFeatureLayerId
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The layer Id of the feature layer representing service territories within the network.
FunctionType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "add" | "subtract" | "average" | "count" | "min" | "max"
ConditionType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "networkAttribute" | "category"
OperatorType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
- Type
- "equal" | "notEqual" | "greaterThan" | "greaterThanEqual" | "lessThan" | "lessThanEqual" | "includesTheValues" | "doesNotIncludeTheValues" | "includesAny" | "doesNotIncludeAny"
BarrierJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Contains the Barrier information in JSON format.
operator
- Type
- OperatorType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The type of the operator used in the barrier.
value
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The value used by the barrier when evaluating network attributes or categories.
combineUsingOr
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether this barrier is combined with other barriers using OR (true) or AND (false).
isSpecificValue
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether the barrier evaluates a specific value.
ConditionJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Contains the condition information in JSON format. Conditions are used to define the criteria for barriers in a utility network trace.
operator
- Type
- OperatorType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The type of the operator used in the condition.
value
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The value used by the condition when evaluating network attributes or categories.
combineUsingOr
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether this condition is combined with other conditions using OR (true) or AND (false).
isSpecificValue
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether the condition evaluates a specific value.
OutputConditionJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Contains the output condition information in JSON format. Output conditions define which traced features are returned.
type
- Type
- ConditionType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The type of the output condition.
operator
- Type
- OperatorType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The type of the operator used in the output condition.
value
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The value used by the output condition when evaluating network attributes or categories.
combineUsingOr
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether this output condition is combined with other conditions using OR (true) or AND (false).
isSpecificValue
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Indicates whether the output condition evaluates a specific value.
FunctionJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Contains the function information in JSON format.
functionType
- Type
- FunctionType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The type of function used for the calculation.
networkAttributeName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The network attribute name used by the function.
conditions
- Type
- ConditionJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The set of conditions used to filter elements included in the function calculation.
FunctionBarrierJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Contains the function barrier information in JSON format.
functionType
- Type
- FunctionType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The type of function used for evaluating the barrier.
networkAttributeName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The network attribute name used by the function barrier.
operator
- Type
- OperatorType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The type of the operator used in the function barrier.
value
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The value used to evaluate the function barrier.
AssetJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Contains asset information in JSON format.
networkSourceId
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The network source ID of the asset.
assetGroupCode
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The asset group code of the asset.
assetTypeCode
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The asset type code of the asset.
NearestNeighborJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The properties below are returned by the nearestNeighbor object when using Describe on a utility network.
count
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
If the filter nearest function is being used, this is the value of the number of features to be returned. If the filter nearest function is not being used, this property returns a -1 value.
costNetworkAttributeName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
If the filter nearest function is being used, this is the name of the network attribute that is being used to calculate the cost. If the filter nearest function is not being used, this property returns an empty string.
nearestCategories
- Type
- string[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
If the filter nearest function is being used, these are the names of the categories that will be returned. If the filter nearest function is not being used, this property returns an empty list.
nearestAssets
- Type
- AssetJSON[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The nearestAssets object. If the filter nearest function is being used, these are the asset groups and asset types that will be returned. If the filter nearest function is not being used, this property returns an empty list.
PropagatorJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Propagators define how values are propagated during a trace.
networkAttributeName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The name of the network attribute used to filter the propagator condition.
substitutionAttributeName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The network attribute used for substitution.
operator
- Type
- OperatorType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The operator used for propagation (for example, equal to or less than).
value
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The specific value of the network attribute or category used for propagation.
propagatedAttributeName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The name of the field used to store calculated propagated values.
ResultType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies the type of results to return after running a trace.
includeGeometry
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies whether to return geometry values in resultTypes.
includePropagatedValues
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies whether to return propagated values in resultTypes.
networkAttributeNames
- Type
- string[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies the network attribute names.
diagramTemplateName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies the name of a predefined Diagram Template.
- Example
- // Creates a new instance of this class and initializes it with values inputted in json format. A resultTypes object is passed into the resultTypes property.const traceParameters = TraceParameters.fromJSON({traceConfigurationGlobalId: "{DF22DA8D-6EC0-408B-A8B2-E468EC7DC9BF}",moment: 1554214441244,gdbVersion: "SDE.DEFAULT",resultTypes: [{type: "elements",includeGeometry: false,includePropagatedValues: false,networkAttributeNames: [],diagramTemplateName: "",resultTypeFields: []},{type: "aggregatedGeometry",includeGeometry: false,includePropagatedValues: false,networkAttributeNames: [],diagramTemplateName: "",resultTypeFields: []}],traceType: "subnetwork"});
ExportCircuitsResultType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies the type of results to export for circuits.
includeGeometry
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Whether to include geometry values in the export.
includeDomainDescriptions
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies whether domain descriptions will be included in the output file to communicate domain mapping for features and connectivity.
networkAttributeNames
- Type
- string[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The network attributes that will be included in the result.
diagramTemplateName
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The name of a predefined diagram template.
- Example
- const exportCircuitProperties = {circuitNames: ["TESTCIRCUIT"],exportAcknowledgement: false,resultTypes: [{type: "features",includeGeometry: true,includeDomainDescriptions: true,networkAttributeNames: ["Asset group", "Asset type"],diagramTemplateName: "",resultTypeFields: [{ networkSourceId: 20, fieldName: "FIRSTUNIT" },{ networkSourceId: 20, fieldName: "LASTUNIT" },],},],};const exportResult = await circuitManager.export(exportCircuitProperties);
ValidationSetItemJSON
- Since
- ArcGIS Maps SDK for JavaScript 5.0
ValidationSetItemJSON represents the set of features and objects to validate.
globalIds
- Type
- string[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An array of globalId strings to validate.
- Example
- const validationResult = await network.submitTopologyValidationJob(new ValidateNetworkTopologyParameters({validateArea: extent,gdbVersion: "sde.DEFAULT",validationType: "rebuild",sessionID: "{7865BAA6-ED9C-4346-9F72-894A49E10C73}",validationSet: [{sourceId: 4134325151,globalIds: ["{7865BAA6-ED9C-4346-9F72-894A49E10C73}"]}]}));console.log("result: ", validationResult);