@vertigis/workflow 5.45.0 → 5.46.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.
Files changed (252) hide show
  1. package/LanguageStringUtils.js +1 -1
  2. package/activities/app/GetApplicationData.d.ts +1 -0
  3. package/activities/app/GetApplicationInfo.d.ts +3 -0
  4. package/activities/app/GetUserInfo.d.ts +3 -0
  5. package/activities/app/PublishEvent.d.ts +0 -3
  6. package/activities/app/RemoveApplicationData.d.ts +1 -0
  7. package/activities/app/RunCommand.d.ts +0 -3
  8. package/activities/app/RunOperation.d.ts +1 -4
  9. package/activities/arcgis/AddAttachment.d.ts +1 -6
  10. package/activities/arcgis/AddAttachment.js +1 -1
  11. package/activities/arcgis/AddFeatureLayer.d.ts +1 -4
  12. package/activities/arcgis/AddFeatures.d.ts +2 -6
  13. package/activities/arcgis/AddGraphics.d.ts +1 -4
  14. package/activities/arcgis/ArcadeScript.d.ts +1 -4
  15. package/activities/arcgis/AreaEngineTask.d.ts +1 -3
  16. package/activities/arcgis/BufferEngineTask.d.ts +2 -7
  17. package/activities/arcgis/BufferServiceTask.d.ts +2 -10
  18. package/activities/arcgis/CastGeometry.d.ts +5 -5
  19. package/activities/arcgis/ClearGraphics.d.ts +0 -1
  20. package/activities/arcgis/ClipEngineTask.d.ts +1 -3
  21. package/activities/arcgis/ClosestFacilityTask.d.ts +8 -34
  22. package/activities/arcgis/CompareGeometries.d.ts +1 -3
  23. package/activities/arcgis/ConvertValueToArcGisFieldType.d.ts +1 -0
  24. package/activities/arcgis/CreateFeatureSet.d.ts +1 -1
  25. package/activities/arcgis/CreateGraphic.d.ts +1 -1
  26. package/activities/arcgis/CreatePoint.d.ts +1 -1
  27. package/activities/arcgis/CutEngineTask.d.ts +1 -3
  28. package/activities/arcgis/DeleteAttachments.d.ts +1 -5
  29. package/activities/arcgis/DeleteAttachments.js +1 -1
  30. package/activities/arcgis/DeleteFeatures.d.ts +2 -7
  31. package/activities/arcgis/DeleteFeatures.js +1 -1
  32. package/activities/arcgis/DensifyEngineTask.d.ts +1 -4
  33. package/activities/arcgis/DifferenceEngineTask.d.ts +2 -5
  34. package/activities/arcgis/DistanceEngineTask.d.ts +1 -4
  35. package/activities/arcgis/DistanceServiceTask.d.ts +1 -6
  36. package/activities/arcgis/ExtendedSpatialReferenceInfoEngineTask.d.ts +1 -2
  37. package/activities/arcgis/FeatureSetFromJson.d.ts +1 -2
  38. package/activities/arcgis/FlipEngineTask.d.ts +1 -4
  39. package/activities/arcgis/FromGeoCoordinateStringServiceTask.d.ts +1 -6
  40. package/activities/arcgis/GeneralizeEngineTask.d.ts +1 -5
  41. package/activities/arcgis/GenerateArcGisToken.d.ts +2 -2
  42. package/activities/arcgis/GenerateWebmapForReport.d.ts +3 -2
  43. package/activities/arcgis/GenerateWebmapForReport.js +1 -1
  44. package/activities/arcgis/Geocode.d.ts +3 -12
  45. package/activities/arcgis/GeometryFromJson.d.ts +1 -2
  46. package/activities/arcgis/Geoprocessing.d.ts +2 -6
  47. package/activities/arcgis/GeoprocessingAsync.d.ts +4 -8
  48. package/activities/arcgis/GetAttributeValue.d.ts +2 -5
  49. package/activities/arcgis/GetAttributeValues.d.ts +2 -4
  50. package/activities/arcgis/GetCentroid.d.ts +1 -2
  51. package/activities/arcgis/GetCodedValueDomain.d.ts +1 -7
  52. package/activities/arcgis/GetCurrentPosition.d.ts +23 -4
  53. package/activities/arcgis/GetFeatureGeometries.d.ts +2 -4
  54. package/activities/arcgis/GetFeatureGeometry.d.ts +1 -3
  55. package/activities/arcgis/GetFeatureLayerInfo.d.ts +1 -4
  56. package/activities/arcgis/GetFeatureLayerInfo.js +1 -1
  57. package/activities/arcgis/GetFeatureSetExtent.d.ts +2 -3
  58. package/activities/arcgis/GetFeatureSetObjectIds.d.ts +2 -4
  59. package/activities/arcgis/GetFormElementItemsFromFeatures.d.ts +1 -4
  60. package/activities/arcgis/GetGeometryExtent.d.ts +2 -2
  61. package/activities/arcgis/GetGraphics.d.ts +1 -3
  62. package/activities/arcgis/GetLayer.d.ts +2 -4
  63. package/activities/arcgis/GetLayerDefinitionExpression.d.ts +1 -2
  64. package/activities/arcgis/GetLayerProperty.d.ts +1 -2
  65. package/activities/arcgis/GetLayerVisibility.d.ts +1 -2
  66. package/activities/arcgis/GetMap.d.ts +1 -0
  67. package/activities/arcgis/GetMapScreenshot.d.ts +1 -2
  68. package/activities/arcgis/GetMapScreenshot.js +1 -1
  69. package/activities/arcgis/GetPortalUser.d.ts +6 -3
  70. package/activities/arcgis/GetPortalUser.js +1 -1
  71. package/activities/arcgis/GetTable.d.ts +1 -2
  72. package/activities/arcgis/GetViewExtent.d.ts +3 -3
  73. package/activities/arcgis/GetViewpoint.d.ts +1 -1
  74. package/activities/arcgis/IntersectEngineTask.d.ts +2 -4
  75. package/activities/arcgis/LabelPointsServiceTask.d.ts +1 -3
  76. package/activities/arcgis/LengthEngineTask.d.ts +1 -3
  77. package/activities/arcgis/MapProvider.d.ts +18 -1
  78. package/activities/arcgis/MapProvider.js +1 -1
  79. package/activities/arcgis/NearestCoordinateEngineTask.d.ts +5 -7
  80. package/activities/arcgis/NearestVertexEngineTask.d.ts +5 -7
  81. package/activities/arcgis/NearestVerticesEngineTask.d.ts +6 -10
  82. package/activities/arcgis/OffsetEngineTask.d.ts +1 -6
  83. package/activities/arcgis/ProjectServiceTask.d.ts +2 -7
  84. package/activities/arcgis/QueryAttachmentInfos.d.ts +4 -5
  85. package/activities/arcgis/QueryAttachmentInfos.js +1 -1
  86. package/activities/arcgis/QueryTask.d.ts +3 -27
  87. package/activities/arcgis/RefreshLayer.d.ts +0 -1
  88. package/activities/arcgis/RegisterCorsUrl.d.ts +1 -3
  89. package/activities/arcgis/RelateEngineTask.d.ts +2 -5
  90. package/activities/arcgis/RelationServiceTask.d.ts +2 -6
  91. package/activities/arcgis/RelationshipQueryTask.d.ts +1 -12
  92. package/activities/arcgis/RemoveFeatureSetFields.d.ts +2 -5
  93. package/activities/arcgis/RemoveGraphics.d.ts +0 -2
  94. package/activities/arcgis/RemoveLayer.d.ts +1 -1
  95. package/activities/arcgis/RendererFromJson.d.ts +1 -2
  96. package/activities/arcgis/ResetAllLayerDefinitionExpressions.d.ts +10 -0
  97. package/activities/arcgis/ResetAllLayerDefinitionExpressions.js +1 -0
  98. package/activities/arcgis/ResetLayerDefinitionExpression.d.ts +2 -7
  99. package/activities/arcgis/ReshapeServiceTask.d.ts +1 -4
  100. package/activities/arcgis/ReverseGeocode.d.ts +2 -8
  101. package/activities/arcgis/RotateEngineTask.d.ts +1 -4
  102. package/activities/arcgis/RouteTask.d.ts +5 -36
  103. package/activities/arcgis/RunPrint.d.ts +7 -4
  104. package/activities/arcgis/RunPrint.js +1 -1
  105. package/activities/arcgis/RunReport.d.ts +5 -3
  106. package/activities/arcgis/RunReport.js +1 -1
  107. package/activities/arcgis/RunWorkflow.d.ts +1 -3
  108. package/activities/arcgis/ServiceAreaTask.d.ts +7 -33
  109. package/activities/arcgis/SetFeatureAttribute.d.ts +0 -3
  110. package/activities/arcgis/SetFeatureGeometry.d.ts +0 -2
  111. package/activities/arcgis/SetFeaturePopup.d.ts +0 -1
  112. package/activities/arcgis/SetFeatureSymbol.d.ts +0 -2
  113. package/activities/arcgis/SetImageryLayerOptions.d.ts +4 -9
  114. package/activities/arcgis/SetLayerDefinitionExpression.d.ts +2 -3
  115. package/activities/arcgis/SetLayerPopup.d.ts +0 -1
  116. package/activities/arcgis/SetLayerProperty.d.ts +2 -5
  117. package/activities/arcgis/SetLayerVisibility.d.ts +2 -5
  118. package/activities/arcgis/SetMap.d.ts +0 -1
  119. package/activities/arcgis/SetViewExtent.d.ts +4 -7
  120. package/activities/arcgis/SetViewpoint.d.ts +2 -5
  121. package/activities/arcgis/ShowFeaturePopup.d.ts +0 -1
  122. package/activities/arcgis/SimplifyEngineTask.d.ts +1 -1
  123. package/activities/arcgis/SortFeatureSet.d.ts +1 -4
  124. package/activities/arcgis/SymbolFromJson.d.ts +1 -2
  125. package/activities/arcgis/ToGeoCoordinateStringServiceTask.d.ts +1 -9
  126. package/activities/arcgis/UnionEngineTask.d.ts +1 -3
  127. package/activities/arcgis/UnionServiceTask.d.ts +1 -4
  128. package/activities/arcgis/UpdateAttachment.d.ts +1 -8
  129. package/activities/arcgis/UpdateAttachment.js +1 -1
  130. package/activities/arcgis/UpdateFeatures.d.ts +2 -6
  131. package/activities/arcgis/printing.d.ts +212 -0
  132. package/activities/arcgis/printing.js +1 -0
  133. package/activities/arcgis/printingFields.d.ts +88 -0
  134. package/activities/arcgis/printingFields.js +1 -0
  135. package/activities/arcgis/runUtils.d.ts +1 -20
  136. package/activities/arcgis/runUtils.js +1 -1
  137. package/activities/arcgis/shared.js +1 -1
  138. package/activities/browser/GetBrowserInfo.d.ts +2 -2
  139. package/activities/core/Annotation.d.ts +0 -1
  140. package/activities/core/CalculateDate.d.ts +2 -0
  141. package/activities/core/Cast.d.ts +1 -1
  142. package/activities/core/Container.d.ts +0 -1
  143. package/activities/core/ConvertBytesToText.d.ts +1 -0
  144. package/activities/core/ConvertDataTableToFeatureSet.d.ts +1 -0
  145. package/activities/core/ConvertTextToBytes.d.ts +1 -0
  146. package/activities/core/ConvertToJson.d.ts +1 -2
  147. package/activities/core/CreateFile.d.ts +1 -0
  148. package/activities/core/CreateValue.d.ts +1 -6
  149. package/activities/core/DecodeUriComponent.d.ts +1 -0
  150. package/activities/core/Delay.d.ts +0 -1
  151. package/activities/core/EncodeUriComponent.d.ts +1 -0
  152. package/activities/core/Evaluate.d.ts +1 -3
  153. package/activities/core/EvaluateAsync.d.ts +1 -3
  154. package/activities/core/ExecuteFunction.d.ts +1 -1
  155. package/activities/core/ForEach.d.ts +10 -11
  156. package/activities/core/FormatDate.d.ts +5 -0
  157. package/activities/core/Function.d.ts +3 -0
  158. package/activities/core/GetBase64StringFromBytes.d.ts +1 -1
  159. package/activities/core/GetBase64StringFromFile.d.ts +1 -0
  160. package/activities/core/GetBytesFromBase64String.d.ts +1 -1
  161. package/activities/core/GetFirstItem.d.ts +1 -0
  162. package/activities/core/GetItemAtIndex.d.ts +1 -0
  163. package/activities/core/GetLastItem.d.ts +1 -0
  164. package/activities/core/GetLogLevel.d.ts +5 -0
  165. package/activities/core/GetTextFromFile.d.ts +1 -0
  166. package/activities/core/GetWorkflowInputs.d.ts +1 -1
  167. package/activities/core/If.d.ts +1 -3
  168. package/activities/core/Log.d.ts +0 -2
  169. package/activities/core/Loop.d.ts +2 -7
  170. package/activities/core/ParseJson.d.ts +1 -2
  171. package/activities/core/ParseNumber.d.ts +1 -0
  172. package/activities/core/ParseUrl.d.ts +5 -6
  173. package/activities/core/RegexMatches.d.ts +1 -0
  174. package/activities/core/RegexReplace.d.ts +1 -0
  175. package/activities/core/RemoveItem.d.ts +1 -0
  176. package/activities/core/RunActivity.d.ts +0 -1
  177. package/activities/core/SetProperty.d.ts +0 -3
  178. package/activities/core/Switch.d.ts +2 -3
  179. package/activities/core/TextReplace.d.ts +1 -0
  180. package/activities/core/TryCatch.d.ts +1 -1
  181. package/activities/core/WebRequest.d.ts +6 -17
  182. package/activities/csv/ConvertCsvToDataTable.d.ts +1 -0
  183. package/activities/csv/ConvertDataTableToCsv.d.ts +1 -0
  184. package/activities/csv/ParseCsv.d.ts +20 -0
  185. package/activities/csv/ParseCsv.js +1 -0
  186. package/activities/essentials/GetEssentialsSite.d.ts +1 -1
  187. package/activities/essentials/RunEssentialsWorkflow.d.ts +1 -4
  188. package/activities/essentials/RunEssentialsWorkflowActivity.d.ts +2 -2
  189. package/activities/forms/AddFormElement.d.ts +0 -3
  190. package/activities/forms/DisplayForm.d.ts +2 -4
  191. package/activities/forms/FilterFormElementItems.d.ts +1 -0
  192. package/activities/forms/FormRenderer.js +1 -1
  193. package/activities/forms/GetFormElementItemsFromCollection.d.ts +1 -4
  194. package/activities/forms/GetFormElementProperty.d.ts +1 -2
  195. package/activities/forms/GetFormElementValue.d.ts +1 -1
  196. package/activities/forms/GetFormEventData.d.ts +5 -0
  197. package/activities/forms/SetCurrentFormElementItem.d.ts +1 -0
  198. package/activities/forms/SetFormElementError.d.ts +0 -2
  199. package/activities/forms/SetFormElementEvent.d.ts +0 -3
  200. package/activities/forms/SetFormElementEvent.js +1 -1
  201. package/activities/forms/SetFormElementItemProperty.d.ts +0 -4
  202. package/activities/forms/SetFormElementItems.d.ts +0 -2
  203. package/activities/forms/SetFormElementProperty.d.ts +0 -3
  204. package/activities/forms/ShowFormElement.d.ts +0 -2
  205. package/activities/image/GetImageMetadata.d.ts +3 -0
  206. package/activities/image/RotateImage.d.ts +1 -0
  207. package/activities/index.js +1 -1
  208. package/activities/math/Abs.d.ts +1 -0
  209. package/activities/math/Cos.d.ts +1 -0
  210. package/activities/math/Max.d.ts +1 -0
  211. package/activities/math/Min.d.ts +1 -0
  212. package/activities/math/Pow.d.ts +1 -0
  213. package/activities/math/Random.d.ts +1 -0
  214. package/activities/math/Sin.d.ts +1 -0
  215. package/activities/math/Sqrt.d.ts +1 -0
  216. package/activities/math/Tan.d.ts +1 -0
  217. package/activities/pdf/AddGeoreferenceToPdf.d.ts +1 -0
  218. package/activities/pdf/AddImageToPdf.d.ts +1 -41
  219. package/activities/pdf/AddTextToPdf.d.ts +0 -38
  220. package/activities/pdf/CreatePdf.d.ts +0 -26
  221. package/activities/pdf/ExtractPdfPages.d.ts +2 -0
  222. package/activities/pdf/MergePdfs.d.ts +2 -0
  223. package/activities/server/CreateDownload.d.ts +1 -1
  224. package/activities/server/CreateEmailAttachment.d.ts +1 -1
  225. package/activities/server/DirectoryExists.d.ts +1 -1
  226. package/activities/server/FileExists.d.ts +1 -1
  227. package/activities/server/GetDirectoriesInDirectory.d.ts +1 -1
  228. package/activities/server/GetFilesInDirectory.d.ts +1 -1
  229. package/activities/server/ReadFile.d.ts +1 -0
  230. package/activities/server/ReadFileBytes.d.ts +1 -0
  231. package/activities/server/RunApplication.d.ts +3 -3
  232. package/activities/server/RunPython.d.ts +4 -4
  233. package/activities/server/SqlNonQuery.d.ts +1 -0
  234. package/activities/server/SqlQuery.d.ts +1 -0
  235. package/activities/server/SqlQueryUnsafe.d.ts +1 -0
  236. package/activities/ui/Alert.d.ts +0 -4
  237. package/activities/ui/Confirm.d.ts +1 -4
  238. package/activities/ui/Prompt.d.ts +1 -5
  239. package/activities/xlsx/ConvertDataTableToXlsx.d.ts +1 -0
  240. package/activities/xlsx/ConvertXlsxToDataSet.d.ts +1 -0
  241. package/execution/ProgramRunner.js +1 -1
  242. package/forms/FormDefinition.d.ts +4 -1
  243. package/forms/components/DateTimePicker.js +1 -1
  244. package/forms/components/TimePicker.js +1 -1
  245. package/forms/constants.d.ts +1 -1
  246. package/forms/dateUtilities.d.ts +12 -0
  247. package/forms/dateUtilities.js +1 -1
  248. package/forms/utils.d.ts +1 -1
  249. package/forms/utils.js +1 -1
  250. package/libs/version.d.ts +1 -1
  251. package/libs/version.js +1 -1
  252. package/package.json +1 -1
@@ -2,16 +2,14 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
3
3
  /** Defines inputs for the GetLayer activity. */
4
4
  export interface GetLayerInputs {
5
- /** The ID of the layer to be retrieved. */
6
5
  layerId: string | number;
7
- /** The optional ID of the sublayer to be retrieved. Sublayers are associated with MapImageLayers. */
8
6
  sublayerId?: string | number;
9
7
  }
10
8
  /** Defines outputs for the GetLayer activity. */
11
9
  export interface GetLayerOutputs {
12
- /** Indicates the layer. */
10
+ /** @description The result layer. */
13
11
  layer?: __esri.Layer;
14
- /** Indicates the sublayer. */
12
+ /** @description The result sublayer. */
15
13
  sublayer?: __esri.Sublayer;
16
14
  }
17
15
  export declare class GetLayer implements IActivityHandler {
@@ -2,13 +2,12 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
3
3
  /** Defines inputs for the GetLayerDefinitionExpression activity. */
4
4
  export interface GetLayerDefinitionExpressionInputs {
5
- /** The ID of the layer whose definition is of interest. */
6
5
  layerId: string | number;
7
- /** The optional index of the sublayer whose definition is of interest. Sublayers are associated with MapImageLayers. */
8
6
  sublayerId?: string | number;
9
7
  }
10
8
  /** Defines outputs for the GetLayerDefinitionExpression activity. */
11
9
  export interface GetLayerDefinitionExpressionOutputs {
10
+ /** @description The layer definition expresion. */
12
11
  expression?: string;
13
12
  }
14
13
  export declare class GetLayerDefinitionExpression implements IActivityHandler {
@@ -2,13 +2,12 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
3
3
  /** Defines inputs for the GetLayerProperty activity. */
4
4
  export interface GetLayerPropertyInputs {
5
- /** The ID of the layer whose property is of interest. */
6
5
  layerId: string | number;
7
- /** The name of the property of interest. The name is case-sensitive. */
8
6
  name: string;
9
7
  }
10
8
  /** Defines outputs for the GetLayerProperty activity. */
11
9
  export interface GetLayerPropertyOutputs {
10
+ /** @description The value of the property. */
12
11
  value: any;
13
12
  }
14
13
  export declare class GetLayerProperty implements IActivityHandler {
@@ -2,13 +2,12 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
3
3
  /** Defines inputs for the GetLayerVisibility activity. */
4
4
  export interface GetLayerVisibilityInputs {
5
- /** The ID of the layer whose visibility is of interest. */
6
5
  layerId: string | number;
7
- /** The optional index of the sublayer whose visibility is of interest. Sublayers are associated with MapImageLayers. */
8
6
  sublayerId?: string | number;
9
7
  }
10
8
  /** Defines outputs for the GetLayerVisibility activity. */
11
9
  export interface GetLayerVisibilityOutputs {
10
+ /** @description Whether the layer is visible. */
12
11
  visible?: boolean;
13
12
  }
14
13
  export declare class GetLayerVisibility implements IActivityHandler {
@@ -3,6 +3,7 @@ import type { MapInfo } from "./MapProvider";
3
3
  import type { IActivityHandler, IActivityContext, EmptyInputs } from "../../IActivityHandler";
4
4
  /** Defines outputs for the GetMap activity. */
5
5
  export interface GetMapOutputs {
6
+ /** @description The map. */
6
7
  map: MapInfo;
7
8
  }
8
9
  export declare class GetMap implements IActivityHandler {
@@ -2,13 +2,12 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
3
3
  /** Defines inputs for the GetMapScreenshot activity. */
4
4
  export interface GetMapScreenshotInputs {
5
- /** The height of the screenshot. */
6
5
  height?: number;
7
- /** The width of the screenshot. */
8
6
  width?: number;
9
7
  }
10
8
  /** Defines outputs for the GetMapScreenshot activity. */
11
9
  export interface GetMapScreenshotOutputs {
10
+ /** @description The screenshot image as a data URL. */
12
11
  dataUrl: string;
13
12
  }
14
13
  export declare class GetMapScreenshot implements IActivityHandler {
@@ -1 +1 @@
1
- import{__decorate}from"tslib";import{GenericActivityError}from"../../Errors.js";import{activate}from"../../Hooks.js";import{MapProvider}from"./MapProvider.js";let GetMapScreenshot=class{async execute(e,t,r){var{height:a,width:e}=e;const o=r.create();if(await o.load(),!o.view)throw new GenericActivityError("No map or scene view available. Unable to create screenshot.");return{dataUrl:(await o.view.takeScreenshot({height:a,width:e})).dataUrl}}};GetMapScreenshot.action="gcx:wf:arcgis::GetMapScreenshot",GetMapScreenshot.suite="gcx:wf:builtin",GetMapScreenshot=__decorate([activate(MapProvider)],GetMapScreenshot);export{GetMapScreenshot};
1
+ import{__decorate}from"tslib";import{GenericActivityError}from"../../Errors.js";import{activate}from"../../Hooks.js";import{MapProvider}from"./MapProvider.js";let GetMapScreenshot=class{async execute(e,t,r){var{height:a,width:e}=e;const o=r.create();if(await o.load(),!o.view)throw new GenericActivityError(void 0,"No map or scene view available. Unable to create screenshot.");return{dataUrl:(await o.view.takeScreenshot({height:a,width:e})).dataUrl}}};GetMapScreenshot.action="gcx:wf:arcgis::GetMapScreenshot",GetMapScreenshot.suite="gcx:wf:builtin",GetMapScreenshot=__decorate([activate(MapProvider)],GetMapScreenshot);export{GetMapScreenshot};
@@ -4,11 +4,14 @@ export interface GetPortalUserInputs {
4
4
  }
5
5
  /** Defines outputs from the GetPortalUser activity. */
6
6
  export interface GetPortalUserOutputs {
7
- /** The registered user of the Portal. */
7
+ /** @description The registered user of the Portal. */
8
8
  user?: __esri.PortalUser;
9
- /** The Portal Groups that the user belongs to. This will be empty if the Load Groups input is set to false. */
9
+ /**
10
+ * @description The Portal Groups that the user belongs to. This will be empty if the Load Groups input is
11
+ * set to false.
12
+ */
10
13
  groups: __esri.PortalGroup[];
11
- /** The token generated by the token service for this user. */
14
+ /** @description The token generated by the token service for the user. */
12
15
  token?: string;
13
16
  }
14
17
  export declare class GetPortalUser implements IActivityHandler {
@@ -1 +1 @@
1
- import esriId from"@arcgis/core/identity/IdentityManager";import Portal from"@arcgis/core/portal/Portal";import{GenericActivityError}from"../../Errors.js";class GetPortalUser{async execute(r){const e={user:void 0,token:void 0,groups:[]};try{const t=new Portal;await t.load();const{user:o,url:i}=t;o&&(e.user=o,e.token=i?esriId.findCredential(i,o.username)?.token:void 0,!1!==r.loadGroups&&(e.groups=await o.fetchGroups()))}catch(r){throw console.error(r),new GenericActivityError('Error running the "Get Portal User" activity. The requested resource failed to load.')}return e}}GetPortalUser.action="gcx:wf:arcgis::GetPortalUser",GetPortalUser.suite="gcx:wf:builtin";export{GetPortalUser};
1
+ import esriId from"@arcgis/core/identity/IdentityManager";import Portal from"@arcgis/core/portal/Portal";import{GenericActivityError}from"../../Errors.js";class GetPortalUser{async execute(r){const e={user:void 0,token:void 0,groups:[]};try{const t=new Portal;await t.load();const{user:o,url:i}=t;o&&(e.user=o,e.token=i?esriId.findCredential(i,o.username)?.token:void 0,!1!==r.loadGroups&&(e.groups=await o.fetchGroups()))}catch(r){throw console.error(r),new GenericActivityError(void 0,'Error running the "Get Portal User" activity. The requested resource failed to load.')}return e}}GetPortalUser.action="gcx:wf:arcgis::GetPortalUser",GetPortalUser.suite="gcx:wf:builtin";export{GetPortalUser};
@@ -2,13 +2,12 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
3
3
  /** Defines inputs for the GetTable activity. */
4
4
  export interface GetTableInputs {
5
- /** The ID of the table to be retrieved. */
6
5
  tableId: string | number;
7
6
  mapServiceId?: string | number;
8
7
  }
9
8
  /** Defines outputs for the GetTable activity. */
10
9
  export interface GetTableOutputs {
11
- /** Indicates the table. */
10
+ /** @description The result table. */
12
11
  table?: __esri.Layer;
13
12
  }
14
13
  export declare class GetTable implements IActivityHandler {
@@ -2,11 +2,11 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext, EmptyInputs } from "../../IActivityHandler";
3
3
  /** Defines outputs for the GetViewExtent activity. */
4
4
  export interface GetViewExtentOutputs {
5
- /** The extent of the view. */
5
+ /** @description The extent of the view. */
6
6
  extent?: __esri.Extent;
7
- /** The center of the extent. */
7
+ /** @description The center of the extent. */
8
8
  center?: __esri.Point;
9
- /** The scale of the extent. */
9
+ /** @description The scale at the extent. */
10
10
  scale?: number;
11
11
  }
12
12
  export declare class GetViewExtent implements IActivityHandler {
@@ -2,7 +2,7 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext, EmptyInputs } from "../../IActivityHandler";
3
3
  /** Defines outputs for the GetViewpoint activity. */
4
4
  export interface GetViewpointOutputs {
5
- /** The viewpoint of the scene. */
5
+ /** @description The viewpoint of the scene. */
6
6
  viewpoint?: __esri.Viewpoint;
7
7
  }
8
8
  export declare class GetViewpoint implements IActivityHandler {
@@ -1,16 +1,14 @@
1
1
  import type { IActivityHandler } from "../../IActivityHandler";
2
2
  /** Defines inputs for the Intersect activity. This activity relies on the geometry engine. */
3
3
  export interface IntersectEngineTaskInputs {
4
- /** The input geometry (or geometries). */
5
4
  geometry1: __esri.Geometry | __esri.Geometry[];
6
- /** The input geometry (or geometries). */
7
5
  geometry2: __esri.Geometry | __esri.Geometry[];
8
6
  }
9
7
  /** Defines outputs for the Intersect activity. */
10
8
  export interface IntersectEngineTaskOutputs {
11
- /** Indicates the first intersection result. */
9
+ /** @description The first intersection result. */
12
10
  geometry?: __esri.Geometry;
13
- /** Indicates all intersection results. */
11
+ /** @description The intersection results. */
14
12
  results?: __esri.Geometry[];
15
13
  }
16
14
  export declare class IntersectEngineTask implements IActivityHandler {
@@ -1,14 +1,12 @@
1
1
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
2
2
  /** Defines inputs for the LabelPoints task. This tasks requires a geometry service. */
3
3
  export interface LabelPointsServiceTaskInputs {
4
- /** The URL of the ArcGIS geometry service. */
5
4
  url: string;
6
- /** The array of polygons to process. */
7
5
  geometry: __esri.Polygon | __esri.Polygon[];
8
6
  }
9
7
  /** Defines outputs for the LabelPoints task. */
10
8
  export interface LabelPointsServiceTaskOutputs {
11
- /** An array of points defining the interior points of the input polygons that may be used for labeling. */
9
+ /** @description An array of points defining the interior points of the input polygons that may be used for labeling. */
12
10
  points: __esri.Point[];
13
11
  }
14
12
  export declare class LabelPointsServiceTask implements IActivityHandler {
@@ -1,15 +1,13 @@
1
1
  import type { IActivityHandler } from "../../IActivityHandler";
2
2
  /** Defines inputs for the Length activity. This activity relies on the geometry engine. */
3
3
  export interface LengthEngineTaskInputs {
4
- /** The input geometry whose length is to be calculated. */
5
4
  geometry: __esri.Geometry;
6
- /** Determines whether the length to be calculated is geodesic. If not, the planar length is returned. Defaults to false. Note: geodesic only works with WGS84 (wkid: 4326) and Web Mercator spatial references. */
7
5
  geodesic?: boolean;
8
- /** Measurement unit of the return value. Defaults to the units of the input geometry. Known values: meters | feet | kilometers | miles | nautical-miles | yards. */
9
6
  unit?: "meters" | "feet" | "kilometers" | "miles" | "nautical-miles" | "yards" | string | number;
10
7
  }
11
8
  /** Defines outputs for the Length activity. */
12
9
  export interface LengthEngineTaskOutputs {
10
+ /** @description The calulated length. */
13
11
  length: number;
14
12
  }
15
13
  export declare class LengthEngineTask implements IActivityHandler {
@@ -115,11 +115,27 @@ export declare class MapProvider implements MapInfo {
115
115
  getDefinitionExpression(): string | undefined;
116
116
  /** Sets the definition expression for the map/layer. */
117
117
  setDefinitionExpression(clause: string): boolean | undefined;
118
+ /**
119
+ * Resets the definition expression for all layers and sublayers
120
+ * to their initial state from when the map was loaded.
121
+ * @param onlyInitialLayers If true, only layers that were initially loaded with the map will be reset.
122
+ * Otherwise, all layers currently present in the map will be reset.
123
+ */
124
+ resetDefinitionExpressions: (onlyInitialLayers: boolean) => void;
118
125
  /**
119
126
  * Resets the definition expression for the layer or sublayer
120
127
  * to its initial state from when the map was loaded.
121
128
  */
122
129
  resetDefinitionExpression(): string | undefined;
130
+ /**
131
+ * Gets the initial definition expressions for all layers and sublayers
132
+ * that were present when the map was first loaded.
133
+ * @param onlyInitialLayers If true, only layers that were initially loaded with the map will be returned.
134
+ * Otherwise, all layers currently present in the map will be returned.
135
+ * @returns The initial definition expressions for all layers and sublayers. The key is the layerId
136
+ * and sublayerId (if applicable) separated by a semicolon, and the value is the definition expression.
137
+ */
138
+ getInitialDefinitionExpressions(onlyInitialLayers: boolean): Record<string, string>;
123
139
  /**
124
140
  * Gets the definition expression for the layer/sublayer that was present when it was first loaded.
125
141
  * @param layerId The unique id of the layer.
@@ -128,7 +144,8 @@ export declare class MapProvider implements MapInfo {
128
144
  */
129
145
  getInitialDefinitionExpression(layerId: string, sublayerId?: number): string;
130
146
  /**
131
- * Sets the definition expression for the layer/sublayer that to be used as its initial state.
147
+ * Sets the definition expression for the layer/sublayer to be used as its initial state.
148
+ * This should only be used for layers/sublayers that were added after the map was loaded.
132
149
  * @param layerId The unique id of the layer.
133
150
  * @param sublayerId The unique id of the sublayer, or undefined if this is not for a sublayer.
134
151
  * @param definitionExpression The initial definition expression to store for the layer/sublayer.
@@ -1 +1 @@
1
- import PopupTemplate from"@arcgis/core/PopupTemplate";import SpatialReference from"@arcgis/core/geometry/SpatialReference";import GraphicsLayer from"@arcgis/core/layers/GraphicsLayer";import SubtypeGroupLayer from"@arcgis/core/layers/SubtypeGroupLayer";import Sublayer from"@arcgis/core/layers/support/Sublayer";import*as TypeChecking from"./TypeChecking.js";import{extentOf}from"./tools.js";function layerCanChangeDefinitionExpression(e){return["csv","feature","geojson","imagery","scene","stream","subtype-group","wfs"].includes(e.type)}function sublayerCanChangeDefinitionExpression(e){return"building-component"===e.layer.type||"esri.layers.support.Sublayer"===e.declaredClass&&"tile"!==e.layer.type}class MapProvider{static getOutSR(e){return"number"==typeof e?new SpatialReference({wkid:e}):"string"==typeof e?new SpatialReference({wkt:e}):e}static create(){return new this(this)}static register(e){e.factories.push(e=>this.type===e?this:void 0)}constructor(e,i,r){null!=i&&(this.map=i.map,this.view=i),this.mapName=r,this.type=e}loadMap(){}loadView(){const e=this.view;if(void 0!==e&&null!==e){if(e.isFulfilled())return Promise.resolve();return e.when(()=>{})}}loadLayer(){const e=this.layer||void 0;if(void 0!==e){if(e.loaded)return Promise.resolve();var i=e.loadError||void 0;return void 0!==i?Promise.reject(i):e.load().then(()=>{})}}load(){return this.loadLayer()||this.loadView()||this.loadMap()||Promise.resolve()}getExtent(){var e=this.view;if(null!=e){var i=e.extent;if(null!=i)return i}i=this.map;if(null!=i){i=i.extent;if(null!=i)return i}}getCenter(){var e=this.view;if(null!=e){var i=e.center;if(null!=i)return i}i=this.map||void 0;if(void 0!==i){i=i.extent;if(null!=i)return i.center}}getScale(){var e=this.view;if(null!=e){e=e.scale;if("number"==typeof e)return e}}getSpatialReference(){var e=this.view;if(null!=e)return e.spatialReference}getViewpoint(){var e=this.view;if(null!=e)return e.viewpoint}setExtent(e,i){let r;e=extentOf(e)||void 0;void 0!==e&&(r=e.center);const t=this.view||void 0;if(void 0!==t){if(void 0!==r&&"number"==typeof i)return t.goTo({center:r,scale:i});if(void 0!==e)return t.goTo(e);if(void 0!==r)return t.goTo(r)}return Promise.resolve()}setViewpoint(e,i){let r;e=extentOf(e)||void 0;void 0!==e&&(r=e.center);const t=this.view;if(void 0!==t&&null!==t){if(void 0!==r&&null!=i)return t.goTo(i).then(()=>t.goTo(r));if(void 0!==e)return t.goTo(e);if(void 0!==r)return t.goTo(r)}return Promise.resolve()}findLayer(i,r){if(null==r){const t=this.map;if(void 0!==t&&null!==t){const n=i.toString();let e=t.findLayerById(n)||void 0;if(void 0===e&&(e=t.allLayers.find(e=>e.title===n)||void 0),void 0!==e){const o=this.clone();return o.layer=e,o.sublayer=void 0,o}}}else{i=new Number(i).valueOf();let e;if(r instanceof SubtypeGroupLayer?e=r.findSublayerForSubtypeCode(i):TypeChecking.isLayerWithSublayers(r)&&(e=r.findSublayerById(i)),e){const s=this.clone();return s.layer=r,s.sublayer=e,s}}}findTable(e,i){if(e){const r=this.map;if(r){const t=e.toLowerCase();e=r.allTables.find(e=>void 0!==e.id&&null!==e.id&&e.id.toLowerCase()===t);if(e){const n=this.clone();return n.layer=e,n.sublayer=void 0,n}}}}formatSubLayerId(e){return e}getVisible(){var e=this.layer||void 0;if(void 0===e)return!1;var i=this.sublayer||void 0;return(void 0!==i?i:e).visible}setVisible(e){const i=this.layer||void 0;if(void 0===i)return!1;{const r=this.sublayer||void 0;return void 0!==r?(r.visible=!0===e,r.visible===(!0===e)):(i.visible=!0===e,i.visible===(!0===e))}}getProperty(e){var i=this.layer;if(null!=i)return i[e]}setProperty(e,i){const r=this.layer||void 0;return void 0!==r&&(r.set(e,i),this.getProperty(e)===i)}getDefinitionExpression(){var{layer:e,sublayer:i}=this;if(e){if(i){if("definitionExpression"in i){i=i.definitionExpression;return"string"==typeof i?i:void 0}return}if("definitionExpression"in e){e=e.definitionExpression;return"string"==typeof e?e:void 0}}}setDefinitionExpression(e){const{layer:i,sublayer:r}=this;if(i){if(r)return r instanceof Sublayer&&sublayerCanChangeDefinitionExpression(r)&&"definitionExpression"in r?(r.definitionExpression=e,r.definitionExpression===e):void 0;if(layerCanChangeDefinitionExpression(i)&&"definitionExpression"in i)return i.definitionExpression=e,i.definitionExpression===e}}resetDefinitionExpression(){const{layer:e,sublayer:i}=this;if(e){if(i)return i instanceof Sublayer&&sublayerCanChangeDefinitionExpression(i)&&"definitionExpression"in i?(i.definitionExpression=this.getInitialDefinitionExpression(e.id,i.id),i.definitionExpression):void 0;if(layerCanChangeDefinitionExpression(e)&&"definitionExpression"in e)return e.definitionExpression=this.getInitialDefinitionExpression(e.id),e.definitionExpression}}getInitialDefinitionExpression(e,i){return""}setInitialDefinitionExpression(e,i,r){}clearFeatures(){const e=this.layer;return!(void 0===e||null===e||!TypeChecking.isGraphicsLayer(e))&&(e.removeAll(),!0)}removeFeatures(e){const i=this.layer;if(void 0!==i&&null!==i&&TypeChecking.isGraphicsLayer(i))return i.removeMany(e),!0}getFeatures(){const e=this.layer||void 0;if(void 0!==e&&TypeChecking.isGraphicsLayer(e))return e.graphics.toArray()}addFeatures(e,i){const r=this.map||void 0;if(void 0===r)return[];let t=this.layer||void 0;return void 0===t&&(t=new GraphicsLayer({id:i.toString()}),r.add(t)),TypeChecking.isGraphicsLayer(t)&&t.addMany(e),TypeChecking.isGraphicsLayer(t)?t.graphics.toArray():[]}removeLayer(){const e=this.map||void 0;if(void 0===e)return!1;var i=this.layer||void 0;return void 0!==i&&(e.remove(i),!0)}redraw(){const e=this.layer||void 0;void 0!==e&&TypeChecking.isLayerWithRedraw(e)&&e.redraw()}clone(){const e=new this.type(this.type,this.view||this.map,this.mapName);return e.layer=this.layer,e.sublayer=this.sublayer,e}static setPopup(e,i){if(i&&e){var r=new PopupTemplate(e);for(const t of i)t.popupTemplate=r}}setPopup(e){const i=this.layer;i&&e&&(e=new PopupTemplate(e),TypeChecking.isLayerWithPopupTemplate(i)&&(i.popupTemplate=e))}showPopup(e){if(e&&e.length){var i=e.filter(e=>e.geometry)[0],i=i?extentOf([i.geometry]):this.map.extent;const r=this.view?.popup;r&&r.open({features:e,location:i?.center})}}}MapProvider.type="5B3643D6-5FF4-4B30-B439-39C70AD68DE3:MapProvider";export{layerCanChangeDefinitionExpression,sublayerCanChangeDefinitionExpression,MapProvider};
1
+ import PopupTemplate from"@arcgis/core/PopupTemplate";import SpatialReference from"@arcgis/core/geometry/SpatialReference";import GraphicsLayer from"@arcgis/core/layers/GraphicsLayer";import SubtypeGroupLayer from"@arcgis/core/layers/SubtypeGroupLayer";import Sublayer from"@arcgis/core/layers/support/Sublayer";import*as TypeChecking from"./TypeChecking.js";import{extentOf}from"./tools.js";function layerCanChangeDefinitionExpression(e){return["csv","feature","geojson","imagery","scene","stream","subtype-group","wfs"].includes(e.type)}function sublayerCanChangeDefinitionExpression(e){return"building-component"===e.layer.type||"esri.layers.support.Sublayer"===e.declaredClass&&"tile"!==e.layer.type}class MapProvider{static getOutSR(e){return"number"==typeof e?new SpatialReference({wkid:e}):"string"==typeof e?new SpatialReference({wkt:e}):e}static create(){return new this(this)}static register(e){e.factories.push(e=>this.type===e?this:void 0)}constructor(e,i,r){this.resetDefinitionExpressions=e=>{e=this.getInitialDefinitionExpressions(e);for(const t of Object.entries(e)){const[n,o]=t;var[i,r]=n.split(";");const s=this.findLayer(i);if(s?.layer)if(r){const a=s.findLayer(r,s.layer);a?.sublayer&&"definitionExpression"in a.sublayer&&(a.sublayer.definitionExpression=o)}else"definitionExpression"in s.layer&&(s.layer.definitionExpression=o)}},null!=i&&(this.map=i.map,this.view=i),this.mapName=r,this.type=e}loadMap(){}loadView(){const e=this.view;if(void 0!==e&&null!==e){if(e.isFulfilled())return Promise.resolve();return e.when(()=>{})}}loadLayer(){const e=this.layer||void 0;if(void 0!==e){if(e.loaded)return Promise.resolve();var i=e.loadError||void 0;return void 0!==i?Promise.reject(i):e.load().then(()=>{})}}load(){return this.loadLayer()||this.loadView()||this.loadMap()||Promise.resolve()}getExtent(){var e=this.view;if(null!=e){const i=e.extent;if(void 0!==i&&null!==i)return i.clone()}e=this.map;if(null!=e){const r=e.extent;if(void 0!==r&&null!==r)return r.clone()}}getCenter(){var e=this.view;if(null!=e){var i=e.center;if(null!=i)return i}i=this.map||void 0;if(void 0!==i){i=i.extent;if(null!=i)return i.center}}getScale(){var e=this.view;if(null!=e){e=e.scale;if("number"==typeof e)return e}}getSpatialReference(){var e=this.view;if(null!=e)return e.spatialReference}getViewpoint(){var e=this.view;if(null!=e)return e.viewpoint}setExtent(e,i){let r;e=extentOf(e)||void 0;void 0!==e&&(r=e.center);const t=this.view||void 0;if(void 0!==t){if(void 0!==r&&"number"==typeof i)return t.goTo({center:r,scale:i});if(void 0!==e)return t.goTo(e);if(void 0!==r)return t.goTo(r)}return Promise.resolve()}setViewpoint(e,i){let r;e=extentOf(e)||void 0;void 0!==e&&(r=e.center);const t=this.view;if(void 0!==t&&null!==t){if(void 0!==r&&null!=i)return t.goTo(i).then(()=>t.goTo(r));if(void 0!==e)return t.goTo(e);if(void 0!==r)return t.goTo(r)}return Promise.resolve()}findLayer(i,r){if(null==r){const t=this.map;if(void 0!==t&&null!==t){const n=i.toString();let e=t.findLayerById(n)||void 0;if(void 0===e&&(e=t.allLayers.find(e=>e.title===n)||void 0),void 0!==e){const o=this.clone();return o.layer=e,o.sublayer=void 0,o}}}else{i=new Number(i).valueOf();let e;if(r instanceof SubtypeGroupLayer?e=r.findSublayerForSubtypeCode(i):TypeChecking.isLayerWithSublayers(r)&&(e=r.findSublayerById(i)),e){const s=this.clone();return s.layer=r,s.sublayer=e,s}}}findTable(e,i){if(e){const r=this.map;if(r){const t=e.toLowerCase();e=r.allTables.find(e=>void 0!==e.id&&null!==e.id&&e.id.toLowerCase()===t);if(e){const n=this.clone();return n.layer=e,n.sublayer=void 0,n}}}}formatSubLayerId(e){return e}getVisible(){var e=this.layer||void 0;if(void 0===e)return!1;var i=this.sublayer||void 0;return(void 0!==i?i:e).visible}setVisible(e){const i=this.layer||void 0;if(void 0===i)return!1;{const r=this.sublayer||void 0;return void 0!==r?(r.visible=!0===e,r.visible===(!0===e)):(i.visible=!0===e,i.visible===(!0===e))}}getProperty(e){var i=this.layer;if(null!=i)return i[e]}setProperty(e,i){const r=this.layer||void 0;return void 0!==r&&(r.set(e,i),this.getProperty(e)===i)}getDefinitionExpression(){var{layer:e,sublayer:i}=this;if(e){if(i){if("definitionExpression"in i){i=i.definitionExpression;return"string"==typeof i?i:void 0}return}if("definitionExpression"in e){e=e.definitionExpression;return"string"==typeof e?e:void 0}}}setDefinitionExpression(e){const{layer:i,sublayer:r}=this;if(i){if(r)return r instanceof Sublayer&&sublayerCanChangeDefinitionExpression(r)&&"definitionExpression"in r?(r.definitionExpression=e,r.definitionExpression===e):void 0;if(layerCanChangeDefinitionExpression(i)&&"definitionExpression"in i)return i.definitionExpression=e,i.definitionExpression===e}}resetDefinitionExpression(){const{layer:e,sublayer:i}=this;if(e){if(i)return i instanceof Sublayer&&sublayerCanChangeDefinitionExpression(i)&&"definitionExpression"in i?(i.definitionExpression=this.getInitialDefinitionExpression(e.id,i.id),i.definitionExpression):void 0;if(layerCanChangeDefinitionExpression(e)&&"definitionExpression"in e)return e.definitionExpression=this.getInitialDefinitionExpression(e.id),e.definitionExpression}}getInitialDefinitionExpressions(e){return{}}getInitialDefinitionExpression(e,i){return""}setInitialDefinitionExpression(e,i,r){}clearFeatures(){const e=this.layer;return!(void 0===e||null===e||!TypeChecking.isGraphicsLayer(e))&&(e.removeAll(),!0)}removeFeatures(e){const i=this.layer;if(void 0!==i&&null!==i&&TypeChecking.isGraphicsLayer(i))return i.removeMany(e),!0}getFeatures(){const e=this.layer||void 0;if(void 0!==e&&TypeChecking.isGraphicsLayer(e))return e.graphics.toArray()}addFeatures(e,i){const r=this.map||void 0;if(void 0===r)return[];let t=this.layer||void 0;return void 0===t&&(t=new GraphicsLayer({id:i.toString()}),r.add(t)),TypeChecking.isGraphicsLayer(t)&&t.addMany(e),TypeChecking.isGraphicsLayer(t)?t.graphics.toArray():[]}removeLayer(){const e=this.map||void 0;if(void 0===e)return!1;var i=this.layer||void 0;return void 0!==i&&(e.remove(i),!0)}redraw(){const e=this.layer||void 0;void 0!==e&&TypeChecking.isLayerWithRedraw(e)&&e.redraw()}clone(){const e=new this.type(this.type,this.view||this.map,this.mapName);return e.layer=this.layer,e.sublayer=this.sublayer,e}static setPopup(e,i){if(i&&e){var r=new PopupTemplate(e);for(const t of i)t.popupTemplate=r}}setPopup(e){const i=this.layer;i&&e&&(e=new PopupTemplate(e),TypeChecking.isLayerWithPopupTemplate(i)&&(i.popupTemplate=e))}showPopup(e){if(e&&e.length){var i=e.filter(e=>e.geometry)[0],i=i?extentOf([i.geometry]):this.map.extent;const r=this.view?.popup;r&&r.open({features:e,location:i?.center})}}}MapProvider.type="5B3643D6-5FF4-4B30-B439-39C70AD68DE3:MapProvider";export{layerCanChangeDefinitionExpression,sublayerCanChangeDefinitionExpression,MapProvider};
@@ -1,22 +1,20 @@
1
1
  import type { IActivityHandler } from "../../IActivityHandler";
2
2
  /** Defines inputs to the NearestCoordinate activity. This activity relies on the geometry engine and combines the nearestVertex() and nearestCoordinate() tasks. */
3
3
  export interface NearestCoordinateEngineTaskInputs {
4
- /** The geometry to consider. */
5
4
  geometry: __esri.Geometry;
6
- /** The point used to search the nearest coordinate (or vertex) in the geometry. */
7
5
  point: __esri.Point;
8
6
  }
9
7
  /** Defines outputs to the NearestCoordinate activity. */
10
8
  export interface NearestCoordinateEngineTaskOutputs {
11
- /** Indicates the point. */
9
+ /** @description The result point. */
12
10
  point: __esri.Point;
13
- /** Indicates the distance to the point. */
11
+ /** @description The distance to the point. */
14
12
  distance: number;
15
- /** Indicates if the point is on the left or right of the line-segment. */
13
+ /** @description Whether the point is on the left or right of the line-segment. */
16
14
  side?: "left" | "right" | string;
17
- /** Indicates the index of the vertex. */
15
+ /** @description The index of the vertex. */
18
16
  index: number;
19
- /** Indicates if the result is empty. */
17
+ /** @description Whether the result is empty. */
20
18
  empty: boolean;
21
19
  }
22
20
  export declare class NearestCoordinateEngineTask implements IActivityHandler {
@@ -1,22 +1,20 @@
1
1
  import type { IActivityHandler } from "../../IActivityHandler";
2
2
  /** Defines inputs to the NearestVertex activity. This activity relies on the geometry engine. */
3
3
  export interface NearestVertexEngineTaskInputs {
4
- /** The geometry to consider. */
5
4
  geometry: __esri.Geometry;
6
- /** The point used to search for the nearest vertex in the geometry. */
7
5
  point: __esri.Point;
8
6
  }
9
7
  /** Defines outputs to the NearestCoordinateOrVertex activity. */
10
8
  export interface NearestVertexEngineTaskOutputs {
11
- /** Indicates the point. */
9
+ /** @description The result point. */
12
10
  point: __esri.Point;
13
- /** Indicates the distance to the point. */
11
+ /** @description The distance to the point. */
14
12
  distance: number;
15
- /** Indicates if the point is on the left or right of the line-segment. */
13
+ /** @description Whether the point is on the left or right of the line-segment. */
16
14
  side?: "left" | "right" | string;
17
- /** The index of the vertex. */
15
+ /** @description The index of the vertex. */
18
16
  index: number;
19
- /** Indicates if the result is empty. */
17
+ /** @description Whether the result is empty. */
20
18
  empty: boolean;
21
19
  }
22
20
  export declare class NearestVertexEngineTask implements IActivityHandler {
@@ -1,30 +1,26 @@
1
1
  import type { IActivityHandler } from "../../IActivityHandler";
2
2
  /** Defines inputs for the NearestVertices activity. This activity relies on the geometry engine. */
3
3
  export interface NearestVerticesEngineTaskInputs {
4
- /** The geometry to consider. */
5
4
  geometry: __esri.Geometry;
6
- /** The point from which to measure. */
7
5
  point: __esri.Point;
8
- /** The distance to search from the input point. */
9
6
  proximity?: number;
10
- /** The maximum number of vertices to return. */
11
7
  maxVertices?: number;
12
8
  }
13
9
  export interface NearestVertex {
14
- /** Indicates the point. */
10
+ /** @description The result point. */
15
11
  point?: __esri.Point;
16
- /** Indicates the distance to the point. */
12
+ /** @description The distance to the point. */
17
13
  distance?: number;
18
- /** Indicates if the point is on the left or right of the line-segment. */
14
+ /** @description Whether the point is on the left or right of the line-segment. */
19
15
  side?: "left" | "right" | string;
20
- /** Indicates the index of the vertex. */
16
+ /** @description The index of the vertex. */
21
17
  index?: number;
22
- /** Indicates if the result is empty. */
18
+ /** @description Whether the result is empty. */
23
19
  empty?: boolean;
24
20
  }
25
21
  /** Defines outputs for the NearestVertices activity. */
26
22
  export interface NearestVerticesEngineTaskOutputs {
27
- /** Indicates the results. */
23
+ /** @description The results. */
28
24
  results?: NearestVertex[];
29
25
  }
30
26
  export declare class NearestVerticesEngineTask implements IActivityHandler {
@@ -1,21 +1,16 @@
1
1
  import type { IActivityHandler } from "../../IActivityHandler";
2
2
  /** Defines inputs to the Offset activity. This activity relies on the geometry engine. */
3
3
  export interface OffsetEngineTaskInputs {
4
- /** The geometries to offset. */
5
4
  geometry: __esri.Geometry;
6
- /** The offset distance for the geometry. If offsetDistance > 0, then the offset geometry is constructed to the right of the oriented input geometry; if offsetDistance = 0, then there is no change to the geometry; otherwise the geometry is constructed to the left. For a simple polygon, the orientation of outer rings is clockwise and for inner rings is counterclockwise, so the "right side" of a simple polygon is always its inside. */
7
5
  distance: number;
8
- /** The join type. */
9
6
  joinType: "round" | "bevel" | "miter" | "square" | string;
10
- /** Measurement unit of the offset distance. Defaults to the units of the input geometry. Known values: meters | feet | kilometers | miles | nautical-miles | yards. */
11
7
  unit?: string | number;
12
- /** Applicable when joinType = 'miter'; bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is beveled. */
13
8
  bevelRatio?: number;
14
- /** Applicable when joinType = 'round'; flattenError determines the maximum distance of the resulting segments compared to the true circular arc. The algorithem never produces more than around 180 vertices for each round join. */
15
9
  flattenError?: number;
16
10
  }
17
11
  /** Defines outputs to the Offset activity. */
18
12
  export interface OffsetEngineTaskOutputs {
13
+ /** @description The offset geometry. */
19
14
  geometry: __esri.Geometry;
20
15
  }
21
16
  export declare class OffsetEngineTask implements IActivityHandler {
@@ -2,22 +2,17 @@ import { MapProvider } from "./MapProvider";
2
2
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
3
3
  /** Defines inputs for the Project activity. */
4
4
  export interface ProjectServiceTaskInputs {
5
- /** The URL of the ArcGIS geometry service. If a url is not specified, the ArcGIS API will be used if possible. If that is not possible, the geometry service at https://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer will be used */
6
5
  url?: string;
7
- /** The input geometries to project. */
8
6
  geometry: __esri.Geometry | __esri.Geometry[];
9
- /** The spatial reference to which you are projecting the geometries. */
10
7
  outSpatialReference?: string | number | __esri.SpatialReference;
11
- /** The well-known id {wkid:number} or well-known text {wkt:string} of the datum transformation to be applied to the projected geometries. A list of valid IDs can be viewed at https://developers.arcgis.com/rest/services-reference/datum-transformations.htm. */
12
8
  transformation?: string | number | object;
13
- /** Indicates whether to transform forward or not. The forward or reverse direction of transformation is implied in the name of the transformation. */
14
9
  reverse?: boolean;
15
10
  }
16
11
  /** Defines outputs for the Project Geometry activity. */
17
12
  export interface ProjectServiceTaskOutputs {
18
- /** Indicates the first result geometry. */
13
+ /** @description The first result geometry. */
19
14
  geometry?: __esri.Geometry;
20
- /** Indicates all the result geometries. */
15
+ /** @description The result geometries. */
21
16
  results?: __esri.Geometry[];
22
17
  }
23
18
  export declare class ProjectServiceTask implements IActivityHandler {
@@ -1,19 +1,18 @@
1
1
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
2
2
  export interface QueryAttachmentInfosInputs {
3
- /** The URL of the ArcGIS feature layer or table. Either url or layer is required. */
4
3
  url?: string;
5
- /** The ArcGIS feature layer or table. Either url or layer is required. */
6
4
  layer?: __esri.Layer;
7
5
  objectId: number;
8
- /** The geodatabase version on which the operation will be performed. This argument only applies to layers or tables that support versioned data. Requires ArcGIS Server v.10.1+. */
9
6
  gdbVersion?: string;
10
- /** The time span in milliseconds to wait for the request's results. */
11
7
  timeout?: number;
12
8
  }
13
9
  export interface QueryAttachmentInfosOutputs {
10
+ /**
11
+ * @description Information about the attachments associated with the feature.
12
+ * Each element in this array is an object with the following properties: id, name, contentType, size.
13
+ */
14
14
  infos: object[];
15
15
  }
16
- /** Query for information about attachments associated with the specified object id. */
17
16
  export declare class QueryAttachmentInfos implements IActivityHandler {
18
17
  static readonly action = "gcx:wf:arcgis::QueryAttachmentInfos";
19
18
  static readonly suite = "gcx:wf:builtin";
@@ -1 +1 @@
1
- import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{addToPath,performRequest}from"./tools.js";class QueryAttachmentInfos{async execute(t,e){var r=validation.urlOrLayer(t).trim(),n=validation.number("objectId",t.objectId,validation.never),o=validation.string("gdbVersion",t.gdbVersion),t=validation.number("timeout",t.timeout,void 0),n=addToPath(r,`${n}/attachments`),o=o?{gdbVersion:o}:{},e=(await performRequest(n,o,t,e.cancellationToken.signal))["attachmentInfos"];if(!e)throw new GenericActivityError('Error running the "Query Attachment Infos" activity. The response did not include the required "attachmentInfos" property.');return{infos:e}}}QueryAttachmentInfos.action="gcx:wf:arcgis::QueryAttachmentInfos",QueryAttachmentInfos.suite="gcx:wf:builtin";export{QueryAttachmentInfos};
1
+ import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{addToPath,performRequest}from"./tools.js";class QueryAttachmentInfos{async execute(t,e){var r=validation.urlOrLayer(t).trim(),n=validation.number("objectId",t.objectId,validation.never),o=validation.string("gdbVersion",t.gdbVersion),t=validation.number("timeout",t.timeout,void 0),n=addToPath(r,`${n}/attachments`),o=o?{gdbVersion:o}:{},e=(await performRequest(n,o,t,e.cancellationToken.signal))["attachmentInfos"];if(!e)throw new GenericActivityError(void 0,'Error running the "Query Attachment Infos" activity. The response did not include the required "attachmentInfos" property.');return{infos:e}}}QueryAttachmentInfos.action="gcx:wf:arcgis::QueryAttachmentInfos",QueryAttachmentInfos.suite="gcx:wf:builtin";export{QueryAttachmentInfos};
@@ -5,55 +5,32 @@ import type { IActivityHandler, IActivityContext } from "../../IActivityHandler"
5
5
  * @product This is intended for internal use only within VertiGIS Studio products.
6
6
  */
7
7
  export interface QueryTaskInputs {
8
- /** The URL to the ArcGIS layer or table to query. Either url or layer is required. */
9
8
  url?: string;
10
- /** The ArcGIS layer or table to query. Either url or layer is required. */
11
9
  layer?: __esri.Layer | __esri.SubtypeSublayer;
12
- /** A where clause of the query. */
13
10
  where?: string;
14
11
  geometry?: __esri.Geometry;
15
- /** If true, each feature in the resulting Feature Set includes the geometry. Set to false (default) if you do not plan to include highlighted features on a map since the geometry takes up a significant portion of the response. */
16
12
  returnGeometry?: boolean;
17
- /** If true, the result will contain distinct values based on the fields specified in the Output Fields property. Only applies if supportsAdvancedQueries property of the layer or table is true. Requires ArcGIS Server 10.1.1+. */
18
13
  returnDistinctValues?: boolean;
19
14
  returnZ?: boolean;
20
15
  returnM?: boolean;
21
- /** The spatial reference for the returned geometry. If not specified, the geometry is returned in the spatial reference of the service being queried. */
22
16
  outSpatialReference?: number | string | __esri.SpatialReference;
23
17
  outFields?: string | string[];
24
- /** The sorting order for the results. Specify ASC (ascending) or DESC (descending) after the field name to control the order. The default order is ASC. Order By Fields is only supported on dynamic layers and tables where supportsAdvancedQueries is true. Requires ArcGIS Server 10.1+. */
25
18
  orderByFields?: string | string[];
26
- /** The version of the geodatabase on which the query will be performed. This property applies to feature services. When querying dynamic layers, include gdbVersion in the layer definition rather than supplying it here. Requires ArcGIS Server 10.0+. */
27
19
  gdbVersion?: string;
28
- /** Distance to buffer input geometry. Query results will include features within the distance specified of the query geometry. Valid only for feature services hosted on ArcGIS Online. */
29
20
  distance?: number;
30
- /** Specify the number of decimal places for the geometries returned by the query operation. */
31
21
  geometryPrecision?: number;
32
- /** One or more field names that will be used to group the statistics. This is only valid when outStatistics has been defined. Requires ArcGIS Server 10.1+. */
33
22
  groupByFieldsForStatistics?: string | string[];
34
- /** The maximum allowable offset to be used for generalizing geometries returned by the query operation. The offset is in the units of spatialReference. If spatialReference is not defined, the spatial reference of the map is used. Requires ArcGIS Server 10+. */
35
23
  maxAllowableOffset?: number;
36
- /** Parameter to support querying feature services whose data source is a multipatch featureclass. Known values: xyFootprint. */
37
24
  multipatchOption?: string;
38
- /** Number of features to retrieve. Should be used in conjunction with query.start. Use this to implement paging and retrieve "pages" of results when querying. If not provided, but an instance of Query has a "start" property, num defaults to 10. Valid only for feature services hosted on ArcGIS Online. */
39
25
  count?: number;
40
- /** An object ID or an array of object IDs or a global ID or an array of global IDs to query for. */
41
26
  ids?: number | number[] | string | string[];
42
- /** The definitions for one or more field-based statistics to be calculated. Only supported on layers and tables where supportsStatistics is set to true. If outStatistics is specified, the only other query parameters that will be used are Group By Fields For Statistics, Order By Fields, Text, Time Extent, and Where. Requires ArcGIS Server 10.1+. */
43
27
  outStatistics?: __esri.StatisticDefinition | __esri.StatisticDefinition[];
44
- /** Specify the pixel level to be identified on the X and Y axis. Defaults to the base resolution of the dataset if not specified. Applicable only to Image Service layers. */
45
28
  pixelSize?: __esri.Symbol | __esri.Point;
46
- /** Used to project the geometry onto a virtual grid, likely representing pixels on the screen. Valid only for services hosted on ArcGIS Online. */
47
29
  quantizationParameters?: __esri.QueryQuantizationParameters;
48
- /** The layer source used with a dynamic layer. */
49
30
  source?: any;
50
- /** The spatial relationship to be applied on the input geometry while performing the query. */
51
31
  spatialRelationship?: "contains" | "crosses" | "disjoint" | "envelope-intersects" | "index-intersects" | "intersects" | "overlaps" | "touches" | "within" | string;
52
- /** Zero-based index indicating where to begin retrieving features. Should be used in conjunction with query.num. Use this to implement paging and retrieve "pages" of results when querying. Features are sorted ascending by object ID by default. Valid only for feature services hosted on ArcGIS Online. */
53
32
  start?: number;
54
- /** Shorthand for a literal search text on the display field, equivalent to: Where <displayField> like '%%'. The text is case sensitive. This parameter is ignored if the where parameter is specified. You can determine what the display field is for a layer or table using the ArcGIS Services Directory. */
55
33
  text?: string;
56
- /** Indicates if the features to be queried should be identified by Global IDs instead of Object IDs. The default value is false. */
57
34
  useGlobalIds?: boolean;
58
35
  /** Indicates the field which contains the OBJECTID or GlobalID for all features. */
59
36
  objectIdField?: string;
@@ -67,14 +44,13 @@ export interface QueryTaskInputs {
67
44
  * @product This is intended for internal use only within VertiGIS Studio products.
68
45
  */
69
46
  export interface QueryTaskOutputs {
70
- /** The first feature of the result feature set. */
47
+ /** @description The first feature of the result feature set. */
71
48
  feature?: __esri.Graphic;
72
- /** The features of the result feature set. */
49
+ /** @description The features of the result feature set. */
73
50
  features?: __esri.Graphic[];
74
- /** Indicates the feature set returned by the query operation. */
51
+ /** @description The feature set returned by the query operation. */
75
52
  results?: __esri.FeatureSet;
76
53
  }
77
- /** Performs an ArcGIS Server query. */
78
54
  export declare class QueryTask implements IActivityHandler {
79
55
  static readonly action = "gcx:wf:arcgis:query:QueryTask";
80
56
  static readonly suite = "gcx:wf:builtin";
@@ -1,7 +1,6 @@
1
1
  import type { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
2
2
  /** Defines inputs for the RefreshLayer activity. */
3
3
  export interface RefreshLayerInputs {
4
- /** The map layer or table to refresh. */
5
4
  layer: __esri.Layer;
6
5
  }
7
6
  export declare class RefreshLayer implements IActivityHandler {
@@ -2,14 +2,12 @@ import config from "@arcgis/core/config";
2
2
  import type { IActivityHandler } from "../../IActivityHandler";
3
3
  /** Defines inputs for the RegisterCorsUrl activity. */
4
4
  export interface RegisterCorsUrlInputs {
5
- /** Indicates the URL of the server to register as CORS enabled. */
6
5
  url: string;
7
- /** Indicates whether or not the CORS enabled server supports credentials. */
8
6
  withCredentials?: boolean;
9
7
  }
10
8
  /** Defines outputs for the RegisterCorsUrl activity. */
11
9
  export interface RegisterCorsUrlOutputs {
12
- /** A boolean which indicates whether the server was successfully registered as CORS enabled. */
10
+ /** @description Whether the server was successfully registered as CORS enabled. */
13
11
  success: boolean;
14
12
  }
15
13
  export declare class RegisterCorsUrl implements IActivityHandler {
@@ -1,18 +1,15 @@
1
1
  import type { IActivityHandler } from "../../IActivityHandler";
2
2
  /** Defines inputs for the Relate activity. This activity relies on the geometry engine. */
3
3
  export interface RelateEngineTaskInputs {
4
- /** The first geometry for the relation. */
5
4
  geometry1: __esri.Geometry;
6
- /** The second geometry for the relation. */
7
5
  geometry2: __esri.Geometry;
8
- /** The Dimensionally Extended 9 Intersection Model (DE-9IM) matrix relation (encoded as a string) to test against the relationship of the two geometries. This string contains the test result of each intersection represented in the DE-9IM matrix. Each result is one character of the string and may be represented as either a number (maximum dimension returned: 0,1,2), a Boolean value (T or F), or a mask character (for ignoring results: '*'). See https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#relate. */
9
6
  relations: string | string[];
10
7
  }
11
8
  /** Defines outputs for the Relate activity. */
12
9
  export interface RelateEngineTaskOutputs {
13
- /** Returns true if the relation holds on the input geometries. */
10
+ /** @description Returns true if the relation holds on the input geometries. */
14
11
  incident?: boolean;
15
- /** Returns an array of values that indicate what aspects of the relation hold. */
12
+ /** @description Returns an array of values that indicate what aspects of the relation hold. */
16
13
  incidents?: boolean[];
17
14
  }
18
15
  export declare class RelateEngineTask implements IActivityHandler {