@vertigis/workflow 5.36.0 → 5.37.1

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 (453) hide show
  1. package/Activator.d.ts +25 -25
  2. package/Collections.d.ts +83 -91
  3. package/EnumUtils.d.ts +28 -28
  4. package/Errors.d.ts +155 -155
  5. package/Hooks.d.ts +32 -32
  6. package/IActivityHandler.d.ts +101 -101
  7. package/LanguageStringUtils.d.ts +16 -17
  8. package/LanguageStringUtils.js +1 -1
  9. package/ProgramInspectorFacility.d.ts +23 -24
  10. package/Task.d.ts +56 -56
  11. package/TemplateUtils.d.ts +28 -28
  12. package/Validation.d.ts +151 -26
  13. package/Validation.js +1 -1
  14. package/activities/app/GetApplicationData.d.ts +15 -12
  15. package/activities/app/GetApplicationData.js +1 -1
  16. package/activities/app/GetApplicationInfo.d.ts +15 -15
  17. package/activities/app/GetUserInfo.d.ts +15 -15
  18. package/activities/app/PublishEvent.d.ts +14 -14
  19. package/activities/app/RemoveApplicationData.d.ts +14 -11
  20. package/activities/app/RemoveApplicationData.js +1 -1
  21. package/activities/app/RunCommand.d.ts +17 -17
  22. package/activities/app/RunOperation.d.ts +25 -25
  23. package/activities/app/SetApplicationData.d.ts +13 -10
  24. package/activities/app/SetApplicationData.js +1 -1
  25. package/activities/app/applicationData.d.ts +12 -0
  26. package/activities/app/applicationData.js +1 -0
  27. package/activities/arcgis/AddAttachment.d.ts +22 -22
  28. package/activities/arcgis/AddFeatureLayer.d.ts +23 -23
  29. package/activities/arcgis/AddFeatureLayer.js +1 -1
  30. package/activities/arcgis/AddFeatures.d.ts +27 -27
  31. package/activities/arcgis/AddGraphics.d.ts +27 -27
  32. package/activities/arcgis/ArcadeScript.d.ts +17 -18
  33. package/activities/arcgis/AreaEngineTask.d.ts +20 -20
  34. package/activities/arcgis/BufferEngineTask.d.ts +27 -27
  35. package/activities/arcgis/BufferServiceTask.d.ts +33 -33
  36. package/activities/arcgis/BufferServiceTask.js +1 -1
  37. package/activities/arcgis/CastGeometry.d.ts +23 -23
  38. package/activities/arcgis/ClearGraphics.d.ts +12 -12
  39. package/activities/arcgis/ClearGraphics.js +1 -1
  40. package/activities/arcgis/ClipEngineTask.d.ts +18 -18
  41. package/activities/arcgis/ClosestFacilityTask.d.ts +90 -90
  42. package/activities/arcgis/ClosestFacilityTask.js +1 -1
  43. package/activities/arcgis/CompareGeometries.d.ts +19 -19
  44. package/activities/arcgis/ConvertValueToArcGisFieldType.d.ts +13 -0
  45. package/activities/arcgis/ConvertValueToArcGisFieldType.js +1 -0
  46. package/activities/arcgis/CreateFeatureSet.d.ts +16 -16
  47. package/activities/arcgis/CreateFeatureSet.js +1 -1
  48. package/activities/arcgis/CreateGraphic.d.ts +17 -17
  49. package/activities/arcgis/CreateGraphic.js +1 -1
  50. package/activities/arcgis/CreatePoint.d.ts +17 -17
  51. package/activities/arcgis/CutEngineTask.d.ts +18 -18
  52. package/activities/arcgis/DeleteAttachments.d.ts +22 -22
  53. package/activities/arcgis/DeleteFeatures.d.ts +30 -30
  54. package/activities/arcgis/DensifyEngineTask.d.ts +20 -20
  55. package/activities/arcgis/DifferenceEngineTask.d.ts +23 -23
  56. package/activities/arcgis/DistanceEngineTask.d.ts +20 -20
  57. package/activities/arcgis/DistanceServiceTask.d.ts +24 -24
  58. package/activities/arcgis/DistanceServiceTask.js +1 -1
  59. package/activities/arcgis/ExtendedSpatialReferenceInfoEngineTask.d.ts +17 -17
  60. package/activities/arcgis/FeatureSetFromJson.d.ts +16 -16
  61. package/activities/arcgis/FeatureTableMap.d.ts +12 -12
  62. package/activities/arcgis/FlipEngineTask.d.ts +21 -21
  63. package/activities/arcgis/FromGeoCoordinateStringServiceTask.d.ts +24 -24
  64. package/activities/arcgis/GeneralizeEngineTask.d.ts +22 -22
  65. package/activities/arcgis/GenerateArcGisToken.d.ts +23 -23
  66. package/activities/arcgis/GenerateWebmapForReport.d.ts +20 -20
  67. package/activities/arcgis/GenerateWebmapForReport.js +1 -1
  68. package/activities/arcgis/Geocode.d.ts +37 -38
  69. package/activities/arcgis/Geocode.js +1 -1
  70. package/activities/arcgis/GeometryFromJson.d.ts +16 -16
  71. package/activities/arcgis/Geoprocessing.d.ts +25 -26
  72. package/activities/arcgis/Geoprocessing.js +1 -1
  73. package/activities/arcgis/GeoprocessingAsync.d.ts +36 -37
  74. package/activities/arcgis/GeoprocessingAsync.js +1 -1
  75. package/activities/arcgis/GetAttributeValue.d.ts +22 -22
  76. package/activities/arcgis/GetAttributeValues.d.ts +20 -20
  77. package/activities/arcgis/GetCentroid.d.ts +16 -16
  78. package/activities/arcgis/GetCodedValueDomain.d.ts +29 -29
  79. package/activities/arcgis/GetCodedValueDomain.js +1 -1
  80. package/activities/arcgis/GetCurrentPosition.d.ts +46 -46
  81. package/activities/arcgis/GetFeatureGeometries.d.ts +20 -20
  82. package/activities/arcgis/GetFeatureGeometry.d.ts +18 -18
  83. package/activities/arcgis/GetFeatureLayerInfo.d.ts +22 -22
  84. package/activities/arcgis/GetFeatureSetExtent.d.ts +18 -18
  85. package/activities/arcgis/GetFeatureSetObjectIds.d.ts +20 -20
  86. package/activities/arcgis/GetFormElementItemsFromFeatures.d.ts +49 -50
  87. package/activities/arcgis/GetFormElementItemsFromFeatures.js +1 -1
  88. package/activities/arcgis/GetGeometryExtent.d.ts +17 -17
  89. package/activities/arcgis/GetGraphics.d.ts +19 -19
  90. package/activities/arcgis/GetLayer.d.ts +21 -21
  91. package/activities/arcgis/GetLayerDefinitionExpression.d.ts +18 -18
  92. package/activities/arcgis/GetLayerProperty.d.ts +18 -18
  93. package/activities/arcgis/GetLayerVisibility.d.ts +18 -18
  94. package/activities/arcgis/GetMap.d.ts +11 -11
  95. package/activities/arcgis/GetMapScreenshot.d.ts +18 -18
  96. package/activities/arcgis/GetPortalUser.d.ts +20 -20
  97. package/activities/arcgis/GetTable.d.ts +18 -18
  98. package/activities/arcgis/GetViewExtent.d.ts +16 -16
  99. package/activities/arcgis/GetViewpoint.d.ts +12 -12
  100. package/activities/arcgis/IntersectEngineTask.d.ts +20 -20
  101. package/activities/arcgis/LabelPointsServiceTask.d.ts +18 -18
  102. package/activities/arcgis/LengthEngineTask.d.ts +20 -20
  103. package/activities/arcgis/MapProvider.d.ts +133 -132
  104. package/activities/arcgis/MapProvider.js +1 -1
  105. package/activities/arcgis/NearestCoordinateEngineTask.d.ts +26 -26
  106. package/activities/arcgis/NearestVertexEngineTask.d.ts +26 -26
  107. package/activities/arcgis/NearestVerticesEngineTask.d.ts +34 -34
  108. package/activities/arcgis/OffsetEngineTask.d.ts +25 -25
  109. package/activities/arcgis/ProjectServiceTask.d.ts +27 -27
  110. package/activities/arcgis/ProjectServiceTask.js +1 -1
  111. package/activities/arcgis/QueryAttachmentInfos.d.ts +21 -21
  112. package/activities/arcgis/QueryTask.d.ts +77 -77
  113. package/activities/arcgis/QueryTask.js +1 -1
  114. package/activities/arcgis/RefreshLayer.d.ts +12 -12
  115. package/activities/arcgis/RegisterCorsUrl.d.ts +21 -21
  116. package/activities/arcgis/RelateEngineTask.d.ts +22 -22
  117. package/activities/arcgis/RelationServiceTask.d.ts +29 -29
  118. package/activities/arcgis/RelationServiceTask.js +1 -1
  119. package/activities/arcgis/RelationshipQueryTask.d.ts +37 -38
  120. package/activities/arcgis/RelationshipQueryTask.js +1 -1
  121. package/activities/arcgis/RemoveFeatureSetFields.d.ts +22 -22
  122. package/activities/arcgis/RemoveFeatureSetFields.js +1 -1
  123. package/activities/arcgis/RemoveGraphics.d.ts +14 -14
  124. package/activities/arcgis/RemoveGraphics.js +1 -1
  125. package/activities/arcgis/RemoveLayer.d.ts +16 -16
  126. package/activities/arcgis/RendererFromJson.d.ts +16 -16
  127. package/activities/arcgis/ReshapeServiceTask.d.ts +20 -20
  128. package/activities/arcgis/ReverseGeocode.d.ts +31 -31
  129. package/activities/arcgis/ReverseGeocode.js +1 -1
  130. package/activities/arcgis/RotateEngineTask.d.ts +20 -20
  131. package/activities/arcgis/RouteTask.d.ts +91 -91
  132. package/activities/arcgis/RouteTask.js +1 -1
  133. package/activities/arcgis/RunPrint.d.ts +33 -34
  134. package/activities/arcgis/RunPrint.js +1 -1
  135. package/activities/arcgis/RunReport.d.ts +37 -38
  136. package/activities/arcgis/RunReport.js +1 -1
  137. package/activities/arcgis/RunWorkflow.d.ts +51 -52
  138. package/activities/arcgis/SendLayerToAttributeTable.d.ts +10 -10
  139. package/activities/arcgis/ServiceAreaTask.d.ts +87 -87
  140. package/activities/arcgis/ServiceAreaTask.js +1 -1
  141. package/activities/arcgis/SetFeatureAttribute.d.ts +15 -15
  142. package/activities/arcgis/SetFeatureGeometry.d.ts +13 -13
  143. package/activities/arcgis/SetFeaturePopup.d.ts +12 -12
  144. package/activities/arcgis/SetFeatureSymbol.d.ts +13 -13
  145. package/activities/arcgis/SetImageryLayerOptions.d.ts +27 -27
  146. package/activities/arcgis/SetLayerDefinitionExpression.d.ts +21 -21
  147. package/activities/arcgis/SetLayerDefinitionExpression.js +1 -1
  148. package/activities/arcgis/SetLayerPopup.d.ts +12 -12
  149. package/activities/arcgis/SetLayerProperty.d.ts +23 -23
  150. package/activities/arcgis/SetLayerVisibility.d.ts +23 -23
  151. package/activities/arcgis/SetMap.d.ts +14 -14
  152. package/activities/arcgis/SetViewExtent.d.ts +27 -27
  153. package/activities/arcgis/SetViewpoint.d.ts +23 -23
  154. package/activities/arcgis/ShowFeaturePopup.d.ts +11 -11
  155. package/activities/arcgis/ShowResults.d.ts +51 -51
  156. package/activities/arcgis/SimplifyEngineTask.d.ts +15 -15
  157. package/activities/arcgis/SortFeatureSet.d.ts +20 -20
  158. package/activities/arcgis/SymbolFromJson.d.ts +16 -16
  159. package/activities/arcgis/ToGeoCoordinateStringServiceTask.d.ts +30 -30
  160. package/activities/arcgis/TypeChecking.d.ts +46 -46
  161. package/activities/arcgis/UnionEngineTask.d.ts +19 -19
  162. package/activities/arcgis/UnionServiceTask.d.ts +20 -20
  163. package/activities/arcgis/UpdateAttachment.d.ts +29 -29
  164. package/activities/arcgis/UpdateFeatures.d.ts +27 -27
  165. package/activities/arcgis/libs/arcGisRestApi.d.ts +18 -18
  166. package/activities/arcgis/runUtils.d.ts +93 -93
  167. package/activities/arcgis/shared.d.ts +61 -61
  168. package/activities/arcgis/tools.d.ts +42 -40
  169. package/activities/arcgis/tools.js +1 -1
  170. package/activities/browser/GetBrowserInfo.d.ts +13 -13
  171. package/activities/browser/InjectCss.d.ts +11 -11
  172. package/activities/constants.d.ts +19 -19
  173. package/activities/core/AddItem.d.ts +12 -12
  174. package/activities/core/AddItems.d.ts +12 -12
  175. package/activities/core/Annotation.d.ts +8 -8
  176. package/activities/core/Cast.d.ts +16 -16
  177. package/activities/core/ChannelProvider.d.ts +89 -90
  178. package/activities/core/ChannelProvider.js +1 -1
  179. package/activities/core/ClearItems.d.ts +10 -10
  180. package/activities/core/Container.d.ts +7 -7
  181. package/activities/core/ConvertBytesToText.d.ts +14 -14
  182. package/activities/core/ConvertDataTableToFeatureSet.d.ts +12 -12
  183. package/activities/core/ConvertTextToBytes.d.ts +14 -14
  184. package/activities/core/ConvertToJson.d.ts +16 -16
  185. package/activities/core/ConvertToJson.js +1 -1
  186. package/activities/core/CreateFile.d.ts +18 -18
  187. package/activities/core/CreateValue.d.ts +21 -21
  188. package/activities/core/DecodeUriComponent.d.ts +14 -14
  189. package/activities/core/Delay.d.ts +18 -18
  190. package/activities/core/EncodeUriComponent.d.ts +14 -14
  191. package/activities/core/Evaluate.d.ts +18 -18
  192. package/activities/core/EvaluateAsync.d.ts +18 -18
  193. package/activities/core/Exit.d.ts +7 -7
  194. package/activities/core/ForEach.d.ts +25 -26
  195. package/activities/core/FormatDate.d.ts +23 -23
  196. package/activities/core/GetBase64StringFromBytes.d.ts +15 -15
  197. package/activities/core/GetBase64StringFromFile.d.ts +15 -15
  198. package/activities/core/GetBytesFromBase64String.d.ts +15 -15
  199. package/activities/core/GetFirstItem.d.ts +14 -14
  200. package/activities/core/GetItemAtIndex.d.ts +15 -15
  201. package/activities/core/GetLastItem.d.ts +14 -14
  202. package/activities/core/GetLogLevel.d.ts +9 -9
  203. package/activities/core/GetTextFromFile.d.ts +16 -16
  204. package/activities/core/GetWorkflowInputs.d.ts +12 -12
  205. package/activities/core/If.d.ts +18 -18
  206. package/activities/core/Log.d.ts +14 -14
  207. package/activities/core/Log.js +1 -1
  208. package/activities/core/Loop.d.ts +27 -27
  209. package/activities/core/Loop.js +1 -1
  210. package/activities/core/ParseJson.d.ts +16 -16
  211. package/activities/core/ParseNumber.d.ts +12 -12
  212. package/activities/core/ParseUrl.d.ts +24 -25
  213. package/activities/core/ParseUrl.js +1 -1
  214. package/activities/core/Placeholder.d.ts +6 -6
  215. package/activities/core/RegexMatches.d.ts +17 -17
  216. package/activities/core/RegexReplace.d.ts +18 -18
  217. package/activities/core/RemoveItem.d.ts +14 -14
  218. package/activities/core/RunActivity.d.ts +12 -13
  219. package/activities/core/RunSubworkflow.d.ts +14 -15
  220. package/activities/core/SetLogLevel.d.ts +9 -9
  221. package/activities/core/SetProperty.d.ts +15 -15
  222. package/activities/core/SetWorkflowOutput.d.ts +12 -12
  223. package/activities/core/Subworkflow.d.ts +14 -15
  224. package/activities/core/Switch.d.ts +19 -19
  225. package/activities/core/TextReplace.d.ts +16 -16
  226. package/activities/core/Throw.d.ts +12 -12
  227. package/activities/core/TryCatch.d.ts +12 -12
  228. package/activities/core/WebRequest.d.ts +49 -50
  229. package/activities/core/converters.d.ts +10 -10
  230. package/activities/csv/ConvertCsvToDataTable.d.ts +15 -15
  231. package/activities/csv/ConvertDataTableToCsv.d.ts +15 -15
  232. package/activities/essentials/GetEssentialsSite.d.ts +225 -225
  233. package/activities/essentials/RunEssentialsWorkflow.d.ts +25 -26
  234. package/activities/essentials/RunEssentialsWorkflowActivity.d.ts +17 -18
  235. package/activities/forms/ActivateFormElement.d.ts +13 -13
  236. package/activities/forms/ActivateFormElement.js +1 -1
  237. package/activities/forms/AddFormElement.d.ts +18 -18
  238. package/activities/forms/ClearFormElementError.d.ts +13 -13
  239. package/activities/forms/CompleteForm.d.ts +11 -11
  240. package/activities/forms/DisplayForm.d.ts +48 -49
  241. package/activities/forms/Errors.d.ts +18 -18
  242. package/activities/forms/FilterFormElementItems.d.ts +16 -16
  243. package/activities/forms/FormElementMap.d.ts +13 -13
  244. package/activities/forms/FormRenderer.d.ts +139 -140
  245. package/activities/forms/FormRenderer.js +1 -1
  246. package/activities/forms/GetFormElementItemsFromCollection.d.ts +49 -50
  247. package/activities/forms/GetFormElementItemsFromCollection.js +1 -1
  248. package/activities/forms/GetFormElementProperty.d.ts +19 -19
  249. package/activities/forms/GetFormElementValue.d.ts +17 -17
  250. package/activities/forms/GetFormEventData.d.ts +17 -17
  251. package/activities/forms/HideFormElement.d.ts +13 -13
  252. package/activities/forms/PropagateFormEvent.d.ts +10 -10
  253. package/activities/forms/SetCurrentFormElementItem.d.ts +18 -18
  254. package/activities/forms/SetCurrentFormElementItem.js +1 -1
  255. package/activities/forms/SetFormElementError.d.ts +17 -17
  256. package/activities/forms/SetFormElementEvent.d.ts +18 -18
  257. package/activities/forms/SetFormElementItemProperty.d.ts +34 -21
  258. package/activities/forms/SetFormElementItemProperty.js +1 -1
  259. package/activities/forms/SetFormElementItems.d.ts +18 -19
  260. package/activities/forms/SetFormElementProperty.d.ts +32 -19
  261. package/activities/forms/SetFormElementProperty.js +1 -1
  262. package/activities/forms/ShowFormElement.d.ts +15 -15
  263. package/activities/image/GetImageMetadata.d.ts +16 -16
  264. package/activities/image/RotateImage.d.ts +15 -15
  265. package/activities/index.d.ts +4 -2
  266. package/activities/index.js +1 -1
  267. package/activities/main.d.ts +1 -1
  268. package/activities/math/Abs.d.ts +14 -14
  269. package/activities/math/Cos.d.ts +14 -14
  270. package/activities/math/Max.d.ts +16 -16
  271. package/activities/math/Min.d.ts +16 -16
  272. package/activities/math/Pow.d.ts +15 -15
  273. package/activities/math/Random.d.ts +10 -10
  274. package/activities/math/Sin.d.ts +14 -14
  275. package/activities/math/Sqrt.d.ts +14 -14
  276. package/activities/math/Tan.d.ts +14 -14
  277. package/activities/pdf/AddGeoreferenceToPdf.d.ts +19 -19
  278. package/activities/pdf/AddImageToPdf.d.ts +63 -0
  279. package/activities/pdf/AddImageToPdf.js +1 -0
  280. package/activities/pdf/AddTextToPdf.d.ts +59 -0
  281. package/activities/pdf/AddTextToPdf.js +1 -0
  282. package/activities/pdf/CreatePdf.d.ts +49 -0
  283. package/activities/pdf/CreatePdf.js +1 -0
  284. package/activities/pdf/ExtractPdfPages.d.ts +17 -17
  285. package/activities/pdf/MergePdfs.d.ts +15 -15
  286. package/activities/server/CopyFile.d.ts +10 -10
  287. package/activities/server/CreateDirectory.d.ts +9 -9
  288. package/activities/server/CreateDownload.d.ts +18 -18
  289. package/activities/server/CreateEmailAttachment.d.ts +16 -16
  290. package/activities/server/CreateZipFromDirectory.d.ts +12 -12
  291. package/activities/server/DeleteDirectory.d.ts +9 -9
  292. package/activities/server/DeleteFile.d.ts +9 -9
  293. package/activities/server/DirectoryExists.d.ts +13 -13
  294. package/activities/server/ExtractZipToDirectory.d.ts +11 -11
  295. package/activities/server/FileExists.d.ts +13 -13
  296. package/activities/server/GetDirectoriesInDirectory.d.ts +14 -14
  297. package/activities/server/GetFilesInDirectory.d.ts +14 -14
  298. package/activities/server/MoveFile.d.ts +10 -10
  299. package/activities/server/ReadFile.d.ts +14 -14
  300. package/activities/server/ReadFileBytes.d.ts +13 -13
  301. package/activities/server/RunApplication.d.ts +22 -22
  302. package/activities/server/RunPython.d.ts +23 -23
  303. package/activities/server/SendEmail.d.ts +16 -16
  304. package/activities/server/SqlNonQuery.d.ts +18 -18
  305. package/activities/server/SqlQuery.d.ts +18 -18
  306. package/activities/server/SqlQueryUnsafe.d.ts +18 -18
  307. package/activities/server/WriteFile.d.ts +11 -11
  308. package/activities/server/WriteFileBytes.d.ts +10 -10
  309. package/activities/ui/Alert.d.ts +17 -17
  310. package/activities/ui/Confirm.d.ts +24 -24
  311. package/activities/ui/Prompt.d.ts +26 -26
  312. package/activities/wab/OpenWidget.d.ts +10 -10
  313. package/activities/wab/PublishWidgetData.d.ts +11 -11
  314. package/activities/xlsx/ConvertDataTableToXlsx.d.ts +15 -15
  315. package/activities/xlsx/ConvertXlsxToDataSet.d.ts +15 -15
  316. package/constants.d.ts +2 -2
  317. package/definition/Activity.d.ts +12 -13
  318. package/definition/ActivityInput.d.ts +31 -31
  319. package/definition/Component.d.ts +10 -10
  320. package/definition/DeploymentConfig.d.ts +4 -5
  321. package/definition/Form.d.ts +5 -5
  322. package/definition/Program.d.ts +29 -30
  323. package/definition/ProgramInspector.d.ts +290 -288
  324. package/definition/ProgramInspector.js +1 -1
  325. package/definition/Reference.d.ts +11 -11
  326. package/definition/Resource.d.ts +26 -26
  327. package/definition/Step.d.ts +9 -9
  328. package/definition/Transition.d.ts +17 -17
  329. package/diagnostics/ConsoleDebugLogger.d.ts +10 -10
  330. package/diagnostics/logging.d.ts +5 -5
  331. package/execution/ActivityLoader.d.ts +23 -24
  332. package/execution/Engine.d.ts +84 -85
  333. package/execution/IDebugSession.d.ts +43 -44
  334. package/execution/ModuleLoader.d.ts +42 -42
  335. package/execution/ProgramRunner.d.ts +1 -1
  336. package/execution/ProgramRunner.js +1 -1
  337. package/forms/Calendar.d.ts +89 -89
  338. package/forms/ExclusiveTimer.d.ts +13 -13
  339. package/forms/FormComponent.d.ts +47 -47
  340. package/forms/FormComponent.js +1 -1
  341. package/forms/FormDefinition.d.ts +451 -452
  342. package/forms/FormElement.d.ts +24 -59
  343. package/forms/FormElement.js +1 -1
  344. package/forms/FormHost.d.ts +225 -231
  345. package/forms/FormHost.js +1 -1
  346. package/forms/FormPresenterHost.d.ts +62 -74
  347. package/forms/MutuallyExclusiveSectionGroup.d.ts +41 -41
  348. package/forms/NumberParser.d.ts +27 -26
  349. package/forms/NumberParser.js +1 -1
  350. package/forms/common.d.ts +67 -62
  351. package/forms/common.js +1 -1
  352. package/forms/components/AccordionGroup.d.ts +15 -15
  353. package/forms/components/AutoComplete.d.ts +8 -8
  354. package/forms/components/ButtonBar.d.ts +8 -8
  355. package/forms/components/CheckBox.d.ts +7 -7
  356. package/forms/components/CheckGroup.d.ts +8 -8
  357. package/forms/components/Custom.d.ts +7 -7
  358. package/forms/components/DatePicker.d.ts +8 -8
  359. package/forms/components/DatePicker.js +1 -1
  360. package/forms/components/DateRangePicker.d.ts +12 -12
  361. package/forms/components/DateRangePicker.js +1 -1
  362. package/forms/components/DateTimePicker.d.ts +8 -8
  363. package/forms/components/DateTimePicker.js +1 -1
  364. package/forms/components/DropDownList.d.ts +8 -7
  365. package/forms/components/DropDownList.js +1 -1
  366. package/forms/components/FilePicker.d.ts +10 -9
  367. package/forms/components/FilePicker.js +1 -1
  368. package/forms/components/Form.d.ts +23 -23
  369. package/forms/components/Form.js +1 -1
  370. package/forms/components/FormLabelNumberField.d.ts +17 -17
  371. package/forms/components/GeometryPicker.d.ts +5 -4
  372. package/forms/components/GeometryPicker.js +1 -1
  373. package/forms/components/GeometryPickerListItem.d.ts +23 -23
  374. package/forms/components/HorizontalRule.d.ts +7 -7
  375. package/forms/components/Image.d.ts +7 -7
  376. package/forms/components/ItemPicker.d.ts +15 -17
  377. package/forms/components/ItemPicker.js +1 -1
  378. package/forms/components/ListBox.d.ts +8 -8
  379. package/forms/components/Markdown.d.ts +14 -14
  380. package/forms/components/Number.d.ts +8 -8
  381. package/forms/components/Number.js +1 -1
  382. package/forms/components/NumberRangeSlider.d.ts +12 -12
  383. package/forms/components/NumberSlider.d.ts +11 -11
  384. package/forms/components/RadioGroup.d.ts +8 -8
  385. package/forms/components/Scanner.d.ts +11 -9
  386. package/forms/components/Scanner.js +1 -1
  387. package/forms/components/Section.d.ts +14 -14
  388. package/forms/components/Section.js +1 -1
  389. package/forms/components/Signature.d.ts +12 -11
  390. package/forms/components/Signature.js +1 -1
  391. package/forms/components/SignatureDialog.d.ts +22 -22
  392. package/forms/components/Text.d.ts +8 -8
  393. package/forms/components/TextArea.d.ts +7 -7
  394. package/forms/components/TextBox.d.ts +7 -7
  395. package/forms/components/TimePicker.d.ts +8 -8
  396. package/forms/components/TimePicker.js +1 -1
  397. package/forms/constants.d.ts +81 -81
  398. package/forms/dateUtilities.d.ts +102 -103
  399. package/forms/dateUtilities.js +1 -1
  400. package/forms/elements/AutoComplete.d.ts +13 -13
  401. package/forms/elements/ButtonBar.d.ts +9 -9
  402. package/forms/elements/CheckBox.d.ts +7 -7
  403. package/forms/elements/CheckGroup.d.ts +11 -11
  404. package/forms/elements/Custom.d.ts +7 -7
  405. package/forms/elements/DatePicker.d.ts +6 -6
  406. package/forms/elements/DateRangePicker.d.ts +6 -6
  407. package/forms/elements/DateTimePicker.d.ts +6 -6
  408. package/forms/elements/DropDownList.d.ts +6 -6
  409. package/forms/elements/FilePicker.d.ts +8 -8
  410. package/forms/elements/GeometryPicker.d.ts +18 -18
  411. package/forms/elements/Header.d.ts +10 -10
  412. package/forms/elements/HorizontalRule.d.ts +2 -2
  413. package/forms/elements/Image.d.ts +2 -2
  414. package/forms/elements/ItemPicker.d.ts +13 -13
  415. package/forms/elements/ListBox.d.ts +11 -11
  416. package/forms/elements/Number.d.ts +11 -11
  417. package/forms/elements/NumberRangeSlider.d.ts +10 -10
  418. package/forms/elements/NumberSlider.d.ts +6 -6
  419. package/forms/elements/PasswordBox.d.ts +5 -5
  420. package/forms/elements/RadioGroup.d.ts +6 -6
  421. package/forms/elements/Scanner.d.ts +19 -19
  422. package/forms/elements/Section.d.ts +2 -2
  423. package/forms/elements/Signature.d.ts +16 -16
  424. package/forms/elements/Text.d.ts +2 -2
  425. package/forms/elements/TextArea.d.ts +7 -7
  426. package/forms/elements/TextBox.d.ts +5 -5
  427. package/forms/elements/TimePicker.d.ts +6 -6
  428. package/forms/elements/types.d.ts +83 -83
  429. package/forms/index.d.ts +124 -108
  430. package/forms/keyboard.d.ts +9 -9
  431. package/forms/listUtilities.d.ts +3 -3
  432. package/forms/manifest.d.ts +3 -3
  433. package/forms/manifest.js +1 -1
  434. package/forms/numberFormatter.d.ts +90 -94
  435. package/forms/numberFormatter.js +1 -1
  436. package/forms/numberUtilities.d.ts +150 -150
  437. package/forms/numberUtilities.js +1 -1
  438. package/forms/presenter.d.ts +21 -21
  439. package/forms/presenter.js +1 -1
  440. package/forms/renderers.d.ts +5 -8
  441. package/forms/renderers.js +1 -1
  442. package/forms/textUtilities.d.ts +33 -23
  443. package/forms/textUtilities.js +1 -1
  444. package/forms/utils.d.ts +177 -146
  445. package/forms/utils.js +1 -1
  446. package/index.d.ts +2 -2
  447. package/libs/version.d.ts +1 -1
  448. package/libs/version.js +1 -1
  449. package/licensing/LicenseChecker.d.ts +1 -1
  450. package/licensing/Watermark.d.ts +7 -7
  451. package/package.json +9 -11
  452. package/activities/app/constants.d.ts +0 -1
  453. package/activities/app/constants.js +0 -1
package/Hooks.d.ts CHANGED
@@ -1,32 +1,32 @@
1
- import { IFacility } from "./Activator";
2
- import { IActivityHandler, IActivityContext } from "./IActivityHandler";
3
- /** Do not reference. */
4
- export interface IActivityHandlerConstructorWithFacility<T> {
5
- new (): IActivityHandlerWithFacility<T>;
6
- prototype: IActivityHandlerWithFacility<T>;
7
- }
8
- /** Do not reference. */
9
- export interface IActivityHandlerConstructorWithTwoFacilities<T1, T2> {
10
- new (): IActivityHandlerWithTwoFacilities<T1, T2>;
11
- prototype: IActivityHandlerWithTwoFacilities<T1, T2>;
12
- }
13
- /** Do not reference. */
14
- export interface IActivityHandlerWithFacility<T> {
15
- execute(inputs: {}, context: IActivityContext, facility: T, ...args: any[]): Promise<{}> | {};
16
- }
17
- /** Do not reference. */
18
- export interface IActivityHandlerWithTwoFacilities<T1, T2> {
19
- execute(inputs: {}, context: IActivityContext, facility1: T1, facility2: T2, ...args: any[]): Promise<{}>;
20
- }
21
- /**
22
- * Decorates activity handlers which require a facility.
23
- * @public
24
- */
25
- export declare function activate<T extends IFacility>(basis: T): (target: IActivityHandlerConstructorWithFacility<T>) => void;
26
- /** Decorates activity handlers which require two facilities. */
27
- export declare function activateTwo<T1 extends IFacility, T2 extends IFacility>(basis1: T1, basis2: T2): (target: IActivityHandlerConstructorWithTwoFacilities<T1, T2>) => void;
28
- /**
29
- * Discovered facility types previously assigned to the specified handler.
30
- * @param handler An activity handler to inspect for associated facilities.
31
- */
32
- export declare function query(handler: IActivityHandler): IFacility[];
1
+ import { IFacility } from "./Activator";
2
+ import { IActivityHandler, IActivityContext } from "./IActivityHandler";
3
+ /** Do not reference. */
4
+ export interface IActivityHandlerConstructorWithFacility<T> {
5
+ new (): IActivityHandlerWithFacility<T>;
6
+ prototype: IActivityHandlerWithFacility<T>;
7
+ }
8
+ /** Do not reference. */
9
+ export interface IActivityHandlerConstructorWithTwoFacilities<T1, T2> {
10
+ new (): IActivityHandlerWithTwoFacilities<T1, T2>;
11
+ prototype: IActivityHandlerWithTwoFacilities<T1, T2>;
12
+ }
13
+ /** Do not reference. */
14
+ export interface IActivityHandlerWithFacility<T> {
15
+ execute(inputs: {}, context: IActivityContext, facility: T, ...args: any[]): Promise<{}> | {};
16
+ }
17
+ /** Do not reference. */
18
+ export interface IActivityHandlerWithTwoFacilities<T1, T2> {
19
+ execute(inputs: {}, context: IActivityContext, facility1: T1, facility2: T2, ...args: any[]): Promise<{}>;
20
+ }
21
+ /**
22
+ * Decorates activity handlers which require a facility.
23
+ * @public
24
+ */
25
+ export declare function activate<T extends IFacility>(basis: T): (target: IActivityHandlerConstructorWithFacility<T>) => void;
26
+ /** Decorates activity handlers which require two facilities. */
27
+ export declare function activateTwo<T1 extends IFacility, T2 extends IFacility>(basis1: T1, basis2: T2): (target: IActivityHandlerConstructorWithTwoFacilities<T1, T2>) => void;
28
+ /**
29
+ * Discovered facility types previously assigned to the specified handler.
30
+ * @param handler An activity handler to inspect for associated facilities.
31
+ */
32
+ export declare function query(handler: IActivityHandler): IFacility[];
@@ -1,101 +1,101 @@
1
- import Bluebird from "bluebird";
2
- import { Task } from "./Task";
3
- import { LogLevel } from "./diagnostics/logging";
4
- /**
5
- * Implemented by activity handlers.
6
- * @public
7
- */
8
- export interface IActivityHandler {
9
- /** Executes the logic for an activity. */
10
- execute(inputs: {}, context: IActivityContext, ...args: any[]): PromiseLike<{}> | {};
11
- }
12
- /**
13
- * Describes ambient-level state.
14
- * @public
15
- */
16
- export interface IAmbientState {
17
- /** Indicates the ActivityContexts with group name monikers that are in scope. */
18
- activityContexts: {};
19
- /** Indicates the completion object. */
20
- completion: Bluebird<{}>;
21
- /** Indicates the environment for expressions evaluation. */
22
- environment: {};
23
- /** Indicates the resources for expression evaluation. */
24
- resources: {};
25
- /** Indicates the error given to the workflow consumer. */
26
- error: Error;
27
- /** Indicates the inputs given to the workflow consumer. */
28
- inputs: {};
29
- /** Indicates the current workflow locale. */
30
- locale: string | undefined;
31
- /** Indicates the current workflow log level. */
32
- logLevel: LogLevel;
33
- /** Indicates the outputs that the workflow should return. */
34
- outputs: {};
35
- /** Indicates the trivia for storing ambient-level state. */
36
- trivia: {};
37
- /** Immediately completes the workflow. */
38
- complete(outputs?: {}): void;
39
- /** Immediately completes the workflow with an error. */
40
- reject(error?: Error): void;
41
- }
42
- /**
43
- * Describes something that can be aborted via an `AbortController`.
44
- */
45
- export interface Abortable {
46
- /**
47
- * An `AbortSignal` to be passed to Esri's web-based APIs.
48
- * When aborted, the operation will be cancelled.
49
- */
50
- signal?: AbortSignal;
51
- }
52
- /**
53
- * Describes an activity currently being executed.
54
- * @public
55
- */
56
- export interface IActivityContext {
57
- /** Indicates the locally-unique identifier that changes per-run per-activity. */
58
- luid: any;
59
- /** Indicates the ambient state. */
60
- ambient: IAmbientState;
61
- /** Indicates the action being executed. */
62
- action: string;
63
- /** Indicates the branch being executed. */
64
- branch: boolean | number | string;
65
- /** Indicates the cancellation token. */
66
- cancellationToken: Task<void> & Abortable;
67
- /** Indicates the number of passes on the current step. */
68
- passes: number;
69
- /** Indicates the state that was persisted. */
70
- state: any;
71
- /** Indicates the error that was caught. */
72
- caught: Error;
73
- /** Attempts to call on a transition chain. */
74
- call(branch?: boolean | number | string): void;
75
- /** Attempts to fork to a transition chain. */
76
- fork(branch?: boolean | number | string): void;
77
- /** Attempts to jump to a transition chain. */
78
- jump(branch?: boolean | number | string): void;
79
- /** Instructs the engine to allow the activity to handle errors. */
80
- registerForErrors(): void;
81
- /** Indicates if any transitions are available for the given branch. */
82
- hasBranch(branch?: boolean | number | string): boolean;
83
- /** Persists state across invocations. */
84
- persist(state: any): void;
85
- /** Attempts to restart the workflow at the context. */
86
- goto(): void;
87
- }
88
- /**
89
- * Indicates an activity has no inputs. Should only be used in
90
- * an activity's execute method signature.
91
- * @public
92
- */
93
- export interface EmptyInputs {
94
- }
95
- /**
96
- * Indicates an activity has no outputs. Should only be used in
97
- * an activity's execute method signature.
98
- * @public
99
- */
100
- export interface EmptyOutputs {
101
- }
1
+ import Bluebird from "bluebird";
2
+ import { Task } from "./Task";
3
+ import { LogLevel } from "./diagnostics/logging";
4
+ /**
5
+ * Implemented by activity handlers.
6
+ * @public
7
+ */
8
+ export interface IActivityHandler {
9
+ /** Executes the logic for an activity. */
10
+ execute(inputs: {}, context: IActivityContext, ...args: any[]): PromiseLike<{}> | {};
11
+ }
12
+ /**
13
+ * Describes ambient-level state.
14
+ * @public
15
+ */
16
+ export interface IAmbientState {
17
+ /** Indicates the ActivityContexts with group name monikers that are in scope. */
18
+ activityContexts: Record<string, any>;
19
+ /** Indicates the completion object. */
20
+ completion: Bluebird<{}>;
21
+ /** Indicates the environment for expressions evaluation. */
22
+ environment: Record<string, any>;
23
+ /** Indicates the resources for expression evaluation. */
24
+ resources?: Record<string, any>;
25
+ /** Indicates the error given to the workflow consumer. */
26
+ error: Error;
27
+ /** Indicates the inputs given to the workflow consumer. */
28
+ inputs: Record<string, any>;
29
+ /** Indicates the current workflow locale. */
30
+ locale?: string;
31
+ /** Indicates the current workflow log level. */
32
+ logLevel?: LogLevel;
33
+ /** Indicates the outputs that the workflow should return. */
34
+ outputs: Record<string, any>;
35
+ /** Indicates the trivia for storing ambient-level state. */
36
+ trivia?: Record<string, any>;
37
+ /** Immediately completes the workflow. */
38
+ complete(outputs?: Record<string, any>): void;
39
+ /** Immediately completes the workflow with an error. */
40
+ reject(error?: Error): void;
41
+ }
42
+ /**
43
+ * Describes something that can be aborted via an `AbortController`.
44
+ */
45
+ export interface Abortable {
46
+ /**
47
+ * An `AbortSignal` to be passed to Esri's web-based APIs.
48
+ * When aborted, the operation will be cancelled.
49
+ */
50
+ signal?: AbortSignal;
51
+ }
52
+ /**
53
+ * Describes an activity currently being executed.
54
+ * @public
55
+ */
56
+ export interface IActivityContext {
57
+ /** Indicates the locally-unique identifier that changes per-run per-activity. */
58
+ luid: any;
59
+ /** Indicates the ambient state. */
60
+ ambient: IAmbientState;
61
+ /** Indicates the action being executed. */
62
+ action?: string;
63
+ /** Indicates the branch being executed. */
64
+ branch?: boolean | number | string;
65
+ /** Indicates the cancellation token. */
66
+ cancellationToken: Task<void> & Abortable;
67
+ /** Indicates the number of passes on the current step. */
68
+ passes: number;
69
+ /** Indicates the state that was persisted. */
70
+ state: any;
71
+ /** Indicates the error that was caught. */
72
+ caught?: Error;
73
+ /** Attempts to call on a transition chain. */
74
+ call(branch?: boolean | number | string): void;
75
+ /** Attempts to fork to a transition chain. */
76
+ fork(branch?: boolean | number | string): void;
77
+ /** Attempts to jump to a transition chain. */
78
+ jump(branch?: boolean | number | string): void;
79
+ /** Instructs the engine to allow the activity to handle errors. */
80
+ registerForErrors(): void;
81
+ /** Indicates if any transitions are available for the given branch. */
82
+ hasBranch(branch?: boolean | number | string): boolean;
83
+ /** Persists state across invocations. */
84
+ persist(state: any): void;
85
+ /** Attempts to restart the workflow at the context. */
86
+ goto(): void;
87
+ }
88
+ /**
89
+ * Indicates an activity has no inputs. Should only be used in
90
+ * an activity's execute method signature.
91
+ * @public
92
+ */
93
+ export interface EmptyInputs {
94
+ }
95
+ /**
96
+ * Indicates an activity has no outputs. Should only be used in
97
+ * an activity's execute method signature.
98
+ * @public
99
+ */
100
+ export interface EmptyOutputs {
101
+ }
@@ -1,17 +1,16 @@
1
- import { Lookup } from "./Collections";
2
- import { ProgramInspector } from "./definition/ProgramInspector";
3
- import { RunOptions } from "./execution/Engine";
4
- /**
5
- * Gets the language strings to be used by the program. These are accumulated from three different places in
6
- * the following order:
7
- *
8
- * * Firstly, we start with the hard-coded `defaultStrings`.
9
- * * Secondly, any language strings provided by the host application are added.
10
- * * Finally, any language strings defined in the workflow for the specified locale are added.
11
- *
12
- * In each case, when a language key is already present, the new value replaces the existing one.
13
- *
14
- * @param inspector The `ProgramInspector` for the workflow being executed.
15
- * @param options The `RunOptions` provided by the host application.
16
- */
17
- export declare function getStringsForProgram(inspector: ProgramInspector, options: RunOptions): Lookup<string>;
1
+ import type { ProgramInspector } from "./definition/ProgramInspector";
2
+ import type { RunOptions } from "./execution/Engine";
3
+ /**
4
+ * Gets the language strings to be used by the program. These are accumulated from three different places in
5
+ * the following order:
6
+ *
7
+ * * Firstly, we start with the hard-coded `defaultStrings`.
8
+ * * Secondly, any language strings provided by the host application are added.
9
+ * * Finally, any language strings defined in the workflow for the specified locale are added.
10
+ *
11
+ * In each case, when a language key is already present, the new value replaces the existing one.
12
+ *
13
+ * @param inspector The `ProgramInspector` for the workflow being executed.
14
+ * @param options The `RunOptions` provided by the host application.
15
+ */
16
+ export declare function getStringsForProgram(inspector: ProgramInspector, options: RunOptions): Record<string, string>;
@@ -1 +1 @@
1
- const defaultStrings={"common-all":"All","common-cancel":"Cancel","common-clear":"Clear","common-done":"Done","common-end":"End","common-none":"None","common-ok":"OK","common-start":"Start","common-to":"to","common-today":"Today","common-undo":"Undo","date-range-picker-end-text":"End Date","date-range-picker-start-text":"Start Date","file-picker-remove-item-label":"Remove file","form-element-status-failure":"Failure","form-element-status-invalid":"Invalid input","form-element-status-missing":"Required","form-element-status-pending":"Working...","form-element-status-trivial":"No data","geometry-picker-remove-item-label":"Remove location"};function getStringsForProgram(e,t){const o={...defaultStrings};if(t.strings)for(const r of Object.keys(t.strings))o[r]=t.strings[r];var n=e.getStrings(t.locale);for(const m of Object.keys(n))o[m]=n[m];return o}export{getStringsForProgram};
1
+ const defaultStrings={"common-all":"All","common-cancel":"Cancel","common-clear":"Clear","common-done":"Done","common-end":"End","common-none":"None","common-ok":"OK","common-start":"Start","common-to":"to","common-today":"Today","common-undo":"Undo","date-range-picker-end-text":"End Date","date-range-picker-start-text":"Start Date","file-picker-remove-item-label":"Remove file","form-element-status-failure":"Failure","form-element-status-invalid":"Invalid input","form-element-status-missing":"Required","form-element-status-pending":"Working...","form-element-status-trivial":"No data","geometry-picker-remove-item-label":"Remove location","item-picker-hidden-selected-item":"1 hidden item is also selected.","item-picker-hidden-selected-items":"hidden items are also selected.","item-picker-select":"Select","item-picker-select-visible":"Select Visible"};function getStringsForProgram(e,t){const o={...defaultStrings};if(t.strings)for(const i of Object.keys(t.strings))o[i]=t.strings[i];var n=e.getStrings(t.locale);for(const m of Object.keys(n))o[m]=n[m];return o}export{getStringsForProgram};
@@ -1,24 +1,23 @@
1
- import Bluebird from "bluebird";
2
- import { ProgramInspector } from "./definition/ProgramInspector";
3
- export interface ResolveArgs {
4
- id?: string;
5
- program?: string | {};
6
- url?: string;
7
- }
8
- /** @product This is intended for internal use only within VertiGIS Studio products. */
9
- export declare class ProgramInspectorFacility {
10
- private _cache;
11
- constructor();
12
- /**
13
- * Resolves the program inspector for a specified workflow `Program`. This function will cache the workflow program by default
14
- * and will return the cached version in subsequent lookups, unless instructed otherwise.
15
- * @param args The input `ResolveArgs` argument. Depending on the host, this may be a url or an object containing an id, url or workflow `Program` object.
16
- * @param useCache An optional boolean which determines whether caching is allowed for retrieved workflow programs. Defaults to true.
17
- * @param workflowDownloader An optional function which may be used to override the default download function for retrieving a workflow `Program`
18
- * This is useful on hosts like GVH where special processing may be required before downloading resources.
19
- */
20
- resolveInspector(args: ResolveArgs | string, useCache?: boolean, workflowDownloader?: (url: string) => Bluebird<any>): Bluebird<ProgramInspector>;
21
- private downloadAndResolveInspector;
22
- private loadWorkflow;
23
- private createInspector;
24
- }
1
+ import { ProgramInspector } from "./definition/ProgramInspector";
2
+ export interface ResolveArgs {
3
+ id?: string;
4
+ program?: string | {};
5
+ url?: string;
6
+ }
7
+ /** @product This is intended for internal use only within VertiGIS Studio products. */
8
+ export declare class ProgramInspectorFacility {
9
+ private _cache;
10
+ constructor();
11
+ /**
12
+ * Resolves the program inspector for a specified workflow `Program`. This function will cache the workflow program by default
13
+ * and will return the cached version in subsequent lookups, unless instructed otherwise.
14
+ * @param args The input `ResolveArgs` argument. Depending on the host, this may be a url or an object containing an id, url or workflow `Program` object.
15
+ * @param useCache An optional boolean which determines whether caching is allowed for retrieved workflow programs. Defaults to true.
16
+ * @param workflowDownloader An optional function which may be used to override the default download function for retrieving a workflow `Program`
17
+ * This is useful on hosts like GVH where special processing may be required before downloading resources.
18
+ */
19
+ resolveInspector(args: ResolveArgs | string, useCache?: boolean, workflowDownloader?: (url: string) => Promise<any>): Promise<ProgramInspector>;
20
+ private downloadAndResolveInspector;
21
+ private loadWorkflow;
22
+ private createInspector;
23
+ }
package/Task.d.ts CHANGED
@@ -1,56 +1,56 @@
1
- /** @product This is intended for internal use only within VertiGIS Studio products. */
2
- export declare class Task<T> implements PromiseLike<T> {
3
- private _state;
4
- private _value;
5
- private _reason;
6
- private _promise;
7
- constructor(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
8
- static attempt<T>(myFunction: () => T | Task<T>): Task<T>;
9
- /**
10
- * Creates a Task that is resolved or rejected when any of the provided Tasks are resolved
11
- * or rejected.
12
- * @param values An array of Tasks.
13
- * @returns A new Task.
14
- */
15
- static race<T>(values: readonly (T | PromiseLike<T>)[]): Task<T>;
16
- /**
17
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
18
- * resolved value cannot be modified from the callback.
19
- *
20
- * This polyfill is based on a Stack Overflow answer:
21
- * https://stackoverflow.com/a/53327815/5322405
22
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
23
- * @returns A Promise for the completion of the callback.
24
- */
25
- finally(onfinally?: (() => void) | undefined | null): Task<T>;
26
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Task<TResult1 | TResult2>;
27
- /**
28
- * Returns `true` if the task succeeded, `false` otherwise.
29
- */
30
- isFulfilled(): boolean;
31
- /**
32
- * Returns `true` if the task is still running, `false` otherwise.
33
- */
34
- isPending(): boolean;
35
- /**
36
- * Returns `true` if the task failed, `false` otherwise.
37
- */
38
- isRejected(): boolean;
39
- /**
40
- * Returns `true` if the task's fate has been decided one way or the other.
41
- * It is no longer pending.
42
- */
43
- isResolved(): boolean;
44
- /**
45
- * Returns the failure object (if any) if the task is rejected.
46
- * Otherwise throws an error. Call the `isRejected()` method to confirm
47
- * that a Task failed prior to calling this method.
48
- */
49
- reason(): any;
50
- /**
51
- * Returns the value (if any) if the task is resolved.
52
- * Otherwise throws an error. Call the `isResolved()` method to confirm
53
- * that a Task succeeded prior to calling this method.
54
- */
55
- value(): T;
56
- }
1
+ /** @product This is intended for internal use only within VertiGIS Studio products. */
2
+ export declare class Task<T> implements PromiseLike<T> {
3
+ private _state;
4
+ private _value;
5
+ private _reason;
6
+ private _promise;
7
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
8
+ static attempt<T>(myFunction: () => T | Task<T>): Task<T>;
9
+ /**
10
+ * Creates a Task that is resolved or rejected when any of the provided Tasks are resolved
11
+ * or rejected.
12
+ * @param values An array of Tasks.
13
+ * @returns A new Task.
14
+ */
15
+ static race<T>(values: readonly (T | PromiseLike<T>)[]): Task<T>;
16
+ /**
17
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
18
+ * resolved value cannot be modified from the callback.
19
+ *
20
+ * This polyfill is based on a Stack Overflow answer:
21
+ * https://stackoverflow.com/a/53327815/5322405
22
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
23
+ * @returns A Promise for the completion of the callback.
24
+ */
25
+ finally(onfinally: () => void): Task<T>;
26
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Task<TResult1 | TResult2>;
27
+ /**
28
+ * Returns `true` if the task succeeded, `false` otherwise.
29
+ */
30
+ isFulfilled(): boolean;
31
+ /**
32
+ * Returns `true` if the task is still running, `false` otherwise.
33
+ */
34
+ isPending(): boolean;
35
+ /**
36
+ * Returns `true` if the task failed, `false` otherwise.
37
+ */
38
+ isRejected(): boolean;
39
+ /**
40
+ * Returns `true` if the task's fate has been decided one way or the other.
41
+ * It is no longer pending.
42
+ */
43
+ isResolved(): boolean;
44
+ /**
45
+ * Returns the failure object (if any) if the task is rejected.
46
+ * Otherwise throws an error. Call the `isRejected()` method to confirm
47
+ * that a Task failed prior to calling this method.
48
+ */
49
+ reason(): any;
50
+ /**
51
+ * Returns the value (if any) if the task is resolved.
52
+ * Otherwise throws an error. Call the `isResolved()` method to confirm
53
+ * that a Task succeeded prior to calling this method.
54
+ */
55
+ value(): T;
56
+ }
@@ -1,28 +1,28 @@
1
- import { MarkdownRef } from "./forms/FormDefinition";
2
- export interface TokenInstance {
3
- token: string;
4
- start: number;
5
- end: number;
6
- }
7
- export interface TokenValues {
8
- [token: string]: string;
9
- }
10
- export declare function findTokenInstances(formatString: string): TokenInstance[];
11
- /**
12
- * Gets a string representation of the supplied value.
13
- * @param token The name of the token being replaced.
14
- * @param value The value to replace the token.
15
- */
16
- export declare function getTokenValueString(token: string, value: any): string;
17
- export declare function replacePlaceholders(formatString: string, tokenInstances: TokenInstance[], tokenValues: TokenValues): MarkdownRef;
18
- /**
19
- * Returns the value itself, or an empty string if the value is `null` or `undefined`.
20
- *
21
- * Care must be taken to handle two cases correctly:
22
- * 1) A "falsey" value such as zero should be preserved as it is still a legitimate value.
23
- * 2) Values of `undefined` and `null` must not be mistakenly interpreted to mean
24
- * "the field name was invalid".
25
- * @param value A value to inspect.
26
- * @returns The value itself, or an empty string if the value is `null` or `undefined`.
27
- */
28
- export declare function valueOrEmptyString(value: any): any;
1
+ import { MarkdownRef } from "./forms/FormDefinition";
2
+ export interface TokenInstance {
3
+ token: string;
4
+ start: number;
5
+ end: number;
6
+ }
7
+ export interface TokenValues {
8
+ [token: string]: string;
9
+ }
10
+ export declare function findTokenInstances(formatString: string | undefined): TokenInstance[];
11
+ /**
12
+ * Gets a string representation of the supplied value.
13
+ * @param token The name of the token being replaced.
14
+ * @param value The value to replace the token.
15
+ */
16
+ export declare function getTokenValueString(token: string, value: any): string;
17
+ export declare function replacePlaceholders(formatString: string, tokenInstances: TokenInstance[], tokenValues: TokenValues): MarkdownRef;
18
+ /**
19
+ * Returns the value itself, or an empty string if the value is `null` or `undefined`.
20
+ *
21
+ * Care must be taken to handle two cases correctly:
22
+ * 1) A "falsey" value such as zero should be preserved as it is still a legitimate value.
23
+ * 2) Values of `undefined` and `null` must not be mistakenly interpreted to mean
24
+ * "the field name was invalid".
25
+ * @param value A value to inspect.
26
+ * @returns The value itself, or an empty string if the value is `null` or `undefined`.
27
+ */
28
+ export declare function valueOrEmptyString(value: any): any;