@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.
- package/Activator.d.ts +25 -25
- package/Collections.d.ts +83 -91
- package/EnumUtils.d.ts +28 -28
- package/Errors.d.ts +155 -155
- package/Hooks.d.ts +32 -32
- package/IActivityHandler.d.ts +101 -101
- package/LanguageStringUtils.d.ts +16 -17
- package/LanguageStringUtils.js +1 -1
- package/ProgramInspectorFacility.d.ts +23 -24
- package/Task.d.ts +56 -56
- package/TemplateUtils.d.ts +28 -28
- package/Validation.d.ts +151 -26
- package/Validation.js +1 -1
- package/activities/app/GetApplicationData.d.ts +15 -12
- package/activities/app/GetApplicationData.js +1 -1
- package/activities/app/GetApplicationInfo.d.ts +15 -15
- package/activities/app/GetUserInfo.d.ts +15 -15
- package/activities/app/PublishEvent.d.ts +14 -14
- package/activities/app/RemoveApplicationData.d.ts +14 -11
- package/activities/app/RemoveApplicationData.js +1 -1
- package/activities/app/RunCommand.d.ts +17 -17
- package/activities/app/RunOperation.d.ts +25 -25
- package/activities/app/SetApplicationData.d.ts +13 -10
- package/activities/app/SetApplicationData.js +1 -1
- package/activities/app/applicationData.d.ts +12 -0
- package/activities/app/applicationData.js +1 -0
- package/activities/arcgis/AddAttachment.d.ts +22 -22
- package/activities/arcgis/AddFeatureLayer.d.ts +23 -23
- package/activities/arcgis/AddFeatureLayer.js +1 -1
- package/activities/arcgis/AddFeatures.d.ts +27 -27
- package/activities/arcgis/AddGraphics.d.ts +27 -27
- package/activities/arcgis/ArcadeScript.d.ts +17 -18
- package/activities/arcgis/AreaEngineTask.d.ts +20 -20
- package/activities/arcgis/BufferEngineTask.d.ts +27 -27
- package/activities/arcgis/BufferServiceTask.d.ts +33 -33
- package/activities/arcgis/BufferServiceTask.js +1 -1
- package/activities/arcgis/CastGeometry.d.ts +23 -23
- package/activities/arcgis/ClearGraphics.d.ts +12 -12
- package/activities/arcgis/ClearGraphics.js +1 -1
- package/activities/arcgis/ClipEngineTask.d.ts +18 -18
- package/activities/arcgis/ClosestFacilityTask.d.ts +90 -90
- package/activities/arcgis/ClosestFacilityTask.js +1 -1
- package/activities/arcgis/CompareGeometries.d.ts +19 -19
- package/activities/arcgis/ConvertValueToArcGisFieldType.d.ts +13 -0
- package/activities/arcgis/ConvertValueToArcGisFieldType.js +1 -0
- package/activities/arcgis/CreateFeatureSet.d.ts +16 -16
- package/activities/arcgis/CreateFeatureSet.js +1 -1
- package/activities/arcgis/CreateGraphic.d.ts +17 -17
- package/activities/arcgis/CreateGraphic.js +1 -1
- package/activities/arcgis/CreatePoint.d.ts +17 -17
- package/activities/arcgis/CutEngineTask.d.ts +18 -18
- package/activities/arcgis/DeleteAttachments.d.ts +22 -22
- package/activities/arcgis/DeleteFeatures.d.ts +30 -30
- package/activities/arcgis/DensifyEngineTask.d.ts +20 -20
- package/activities/arcgis/DifferenceEngineTask.d.ts +23 -23
- package/activities/arcgis/DistanceEngineTask.d.ts +20 -20
- package/activities/arcgis/DistanceServiceTask.d.ts +24 -24
- package/activities/arcgis/DistanceServiceTask.js +1 -1
- package/activities/arcgis/ExtendedSpatialReferenceInfoEngineTask.d.ts +17 -17
- package/activities/arcgis/FeatureSetFromJson.d.ts +16 -16
- package/activities/arcgis/FeatureTableMap.d.ts +12 -12
- package/activities/arcgis/FlipEngineTask.d.ts +21 -21
- package/activities/arcgis/FromGeoCoordinateStringServiceTask.d.ts +24 -24
- package/activities/arcgis/GeneralizeEngineTask.d.ts +22 -22
- package/activities/arcgis/GenerateArcGisToken.d.ts +23 -23
- package/activities/arcgis/GenerateWebmapForReport.d.ts +20 -20
- package/activities/arcgis/GenerateWebmapForReport.js +1 -1
- package/activities/arcgis/Geocode.d.ts +37 -38
- package/activities/arcgis/Geocode.js +1 -1
- package/activities/arcgis/GeometryFromJson.d.ts +16 -16
- package/activities/arcgis/Geoprocessing.d.ts +25 -26
- package/activities/arcgis/Geoprocessing.js +1 -1
- package/activities/arcgis/GeoprocessingAsync.d.ts +36 -37
- package/activities/arcgis/GeoprocessingAsync.js +1 -1
- package/activities/arcgis/GetAttributeValue.d.ts +22 -22
- package/activities/arcgis/GetAttributeValues.d.ts +20 -20
- package/activities/arcgis/GetCentroid.d.ts +16 -16
- package/activities/arcgis/GetCodedValueDomain.d.ts +29 -29
- package/activities/arcgis/GetCodedValueDomain.js +1 -1
- package/activities/arcgis/GetCurrentPosition.d.ts +46 -46
- package/activities/arcgis/GetFeatureGeometries.d.ts +20 -20
- package/activities/arcgis/GetFeatureGeometry.d.ts +18 -18
- package/activities/arcgis/GetFeatureLayerInfo.d.ts +22 -22
- package/activities/arcgis/GetFeatureSetExtent.d.ts +18 -18
- package/activities/arcgis/GetFeatureSetObjectIds.d.ts +20 -20
- package/activities/arcgis/GetFormElementItemsFromFeatures.d.ts +49 -50
- package/activities/arcgis/GetFormElementItemsFromFeatures.js +1 -1
- package/activities/arcgis/GetGeometryExtent.d.ts +17 -17
- package/activities/arcgis/GetGraphics.d.ts +19 -19
- package/activities/arcgis/GetLayer.d.ts +21 -21
- package/activities/arcgis/GetLayerDefinitionExpression.d.ts +18 -18
- package/activities/arcgis/GetLayerProperty.d.ts +18 -18
- package/activities/arcgis/GetLayerVisibility.d.ts +18 -18
- package/activities/arcgis/GetMap.d.ts +11 -11
- package/activities/arcgis/GetMapScreenshot.d.ts +18 -18
- package/activities/arcgis/GetPortalUser.d.ts +20 -20
- package/activities/arcgis/GetTable.d.ts +18 -18
- package/activities/arcgis/GetViewExtent.d.ts +16 -16
- package/activities/arcgis/GetViewpoint.d.ts +12 -12
- package/activities/arcgis/IntersectEngineTask.d.ts +20 -20
- package/activities/arcgis/LabelPointsServiceTask.d.ts +18 -18
- package/activities/arcgis/LengthEngineTask.d.ts +20 -20
- package/activities/arcgis/MapProvider.d.ts +133 -132
- package/activities/arcgis/MapProvider.js +1 -1
- package/activities/arcgis/NearestCoordinateEngineTask.d.ts +26 -26
- package/activities/arcgis/NearestVertexEngineTask.d.ts +26 -26
- package/activities/arcgis/NearestVerticesEngineTask.d.ts +34 -34
- package/activities/arcgis/OffsetEngineTask.d.ts +25 -25
- package/activities/arcgis/ProjectServiceTask.d.ts +27 -27
- package/activities/arcgis/ProjectServiceTask.js +1 -1
- package/activities/arcgis/QueryAttachmentInfos.d.ts +21 -21
- package/activities/arcgis/QueryTask.d.ts +77 -77
- package/activities/arcgis/QueryTask.js +1 -1
- package/activities/arcgis/RefreshLayer.d.ts +12 -12
- package/activities/arcgis/RegisterCorsUrl.d.ts +21 -21
- package/activities/arcgis/RelateEngineTask.d.ts +22 -22
- package/activities/arcgis/RelationServiceTask.d.ts +29 -29
- package/activities/arcgis/RelationServiceTask.js +1 -1
- package/activities/arcgis/RelationshipQueryTask.d.ts +37 -38
- package/activities/arcgis/RelationshipQueryTask.js +1 -1
- package/activities/arcgis/RemoveFeatureSetFields.d.ts +22 -22
- package/activities/arcgis/RemoveFeatureSetFields.js +1 -1
- package/activities/arcgis/RemoveGraphics.d.ts +14 -14
- package/activities/arcgis/RemoveGraphics.js +1 -1
- package/activities/arcgis/RemoveLayer.d.ts +16 -16
- package/activities/arcgis/RendererFromJson.d.ts +16 -16
- package/activities/arcgis/ReshapeServiceTask.d.ts +20 -20
- package/activities/arcgis/ReverseGeocode.d.ts +31 -31
- package/activities/arcgis/ReverseGeocode.js +1 -1
- package/activities/arcgis/RotateEngineTask.d.ts +20 -20
- package/activities/arcgis/RouteTask.d.ts +91 -91
- package/activities/arcgis/RouteTask.js +1 -1
- package/activities/arcgis/RunPrint.d.ts +33 -34
- package/activities/arcgis/RunPrint.js +1 -1
- package/activities/arcgis/RunReport.d.ts +37 -38
- package/activities/arcgis/RunReport.js +1 -1
- package/activities/arcgis/RunWorkflow.d.ts +51 -52
- package/activities/arcgis/SendLayerToAttributeTable.d.ts +10 -10
- package/activities/arcgis/ServiceAreaTask.d.ts +87 -87
- package/activities/arcgis/ServiceAreaTask.js +1 -1
- package/activities/arcgis/SetFeatureAttribute.d.ts +15 -15
- package/activities/arcgis/SetFeatureGeometry.d.ts +13 -13
- package/activities/arcgis/SetFeaturePopup.d.ts +12 -12
- package/activities/arcgis/SetFeatureSymbol.d.ts +13 -13
- package/activities/arcgis/SetImageryLayerOptions.d.ts +27 -27
- package/activities/arcgis/SetLayerDefinitionExpression.d.ts +21 -21
- package/activities/arcgis/SetLayerDefinitionExpression.js +1 -1
- package/activities/arcgis/SetLayerPopup.d.ts +12 -12
- package/activities/arcgis/SetLayerProperty.d.ts +23 -23
- package/activities/arcgis/SetLayerVisibility.d.ts +23 -23
- package/activities/arcgis/SetMap.d.ts +14 -14
- package/activities/arcgis/SetViewExtent.d.ts +27 -27
- package/activities/arcgis/SetViewpoint.d.ts +23 -23
- package/activities/arcgis/ShowFeaturePopup.d.ts +11 -11
- package/activities/arcgis/ShowResults.d.ts +51 -51
- package/activities/arcgis/SimplifyEngineTask.d.ts +15 -15
- package/activities/arcgis/SortFeatureSet.d.ts +20 -20
- package/activities/arcgis/SymbolFromJson.d.ts +16 -16
- package/activities/arcgis/ToGeoCoordinateStringServiceTask.d.ts +30 -30
- package/activities/arcgis/TypeChecking.d.ts +46 -46
- package/activities/arcgis/UnionEngineTask.d.ts +19 -19
- package/activities/arcgis/UnionServiceTask.d.ts +20 -20
- package/activities/arcgis/UpdateAttachment.d.ts +29 -29
- package/activities/arcgis/UpdateFeatures.d.ts +27 -27
- package/activities/arcgis/libs/arcGisRestApi.d.ts +18 -18
- package/activities/arcgis/runUtils.d.ts +93 -93
- package/activities/arcgis/shared.d.ts +61 -61
- package/activities/arcgis/tools.d.ts +42 -40
- package/activities/arcgis/tools.js +1 -1
- package/activities/browser/GetBrowserInfo.d.ts +13 -13
- package/activities/browser/InjectCss.d.ts +11 -11
- package/activities/constants.d.ts +19 -19
- package/activities/core/AddItem.d.ts +12 -12
- package/activities/core/AddItems.d.ts +12 -12
- package/activities/core/Annotation.d.ts +8 -8
- package/activities/core/Cast.d.ts +16 -16
- package/activities/core/ChannelProvider.d.ts +89 -90
- package/activities/core/ChannelProvider.js +1 -1
- package/activities/core/ClearItems.d.ts +10 -10
- package/activities/core/Container.d.ts +7 -7
- package/activities/core/ConvertBytesToText.d.ts +14 -14
- package/activities/core/ConvertDataTableToFeatureSet.d.ts +12 -12
- package/activities/core/ConvertTextToBytes.d.ts +14 -14
- package/activities/core/ConvertToJson.d.ts +16 -16
- package/activities/core/ConvertToJson.js +1 -1
- package/activities/core/CreateFile.d.ts +18 -18
- package/activities/core/CreateValue.d.ts +21 -21
- package/activities/core/DecodeUriComponent.d.ts +14 -14
- package/activities/core/Delay.d.ts +18 -18
- package/activities/core/EncodeUriComponent.d.ts +14 -14
- package/activities/core/Evaluate.d.ts +18 -18
- package/activities/core/EvaluateAsync.d.ts +18 -18
- package/activities/core/Exit.d.ts +7 -7
- package/activities/core/ForEach.d.ts +25 -26
- package/activities/core/FormatDate.d.ts +23 -23
- package/activities/core/GetBase64StringFromBytes.d.ts +15 -15
- package/activities/core/GetBase64StringFromFile.d.ts +15 -15
- package/activities/core/GetBytesFromBase64String.d.ts +15 -15
- package/activities/core/GetFirstItem.d.ts +14 -14
- package/activities/core/GetItemAtIndex.d.ts +15 -15
- package/activities/core/GetLastItem.d.ts +14 -14
- package/activities/core/GetLogLevel.d.ts +9 -9
- package/activities/core/GetTextFromFile.d.ts +16 -16
- package/activities/core/GetWorkflowInputs.d.ts +12 -12
- package/activities/core/If.d.ts +18 -18
- package/activities/core/Log.d.ts +14 -14
- package/activities/core/Log.js +1 -1
- package/activities/core/Loop.d.ts +27 -27
- package/activities/core/Loop.js +1 -1
- package/activities/core/ParseJson.d.ts +16 -16
- package/activities/core/ParseNumber.d.ts +12 -12
- package/activities/core/ParseUrl.d.ts +24 -25
- package/activities/core/ParseUrl.js +1 -1
- package/activities/core/Placeholder.d.ts +6 -6
- package/activities/core/RegexMatches.d.ts +17 -17
- package/activities/core/RegexReplace.d.ts +18 -18
- package/activities/core/RemoveItem.d.ts +14 -14
- package/activities/core/RunActivity.d.ts +12 -13
- package/activities/core/RunSubworkflow.d.ts +14 -15
- package/activities/core/SetLogLevel.d.ts +9 -9
- package/activities/core/SetProperty.d.ts +15 -15
- package/activities/core/SetWorkflowOutput.d.ts +12 -12
- package/activities/core/Subworkflow.d.ts +14 -15
- package/activities/core/Switch.d.ts +19 -19
- package/activities/core/TextReplace.d.ts +16 -16
- package/activities/core/Throw.d.ts +12 -12
- package/activities/core/TryCatch.d.ts +12 -12
- package/activities/core/WebRequest.d.ts +49 -50
- package/activities/core/converters.d.ts +10 -10
- package/activities/csv/ConvertCsvToDataTable.d.ts +15 -15
- package/activities/csv/ConvertDataTableToCsv.d.ts +15 -15
- package/activities/essentials/GetEssentialsSite.d.ts +225 -225
- package/activities/essentials/RunEssentialsWorkflow.d.ts +25 -26
- package/activities/essentials/RunEssentialsWorkflowActivity.d.ts +17 -18
- package/activities/forms/ActivateFormElement.d.ts +13 -13
- package/activities/forms/ActivateFormElement.js +1 -1
- package/activities/forms/AddFormElement.d.ts +18 -18
- package/activities/forms/ClearFormElementError.d.ts +13 -13
- package/activities/forms/CompleteForm.d.ts +11 -11
- package/activities/forms/DisplayForm.d.ts +48 -49
- package/activities/forms/Errors.d.ts +18 -18
- package/activities/forms/FilterFormElementItems.d.ts +16 -16
- package/activities/forms/FormElementMap.d.ts +13 -13
- package/activities/forms/FormRenderer.d.ts +139 -140
- package/activities/forms/FormRenderer.js +1 -1
- package/activities/forms/GetFormElementItemsFromCollection.d.ts +49 -50
- package/activities/forms/GetFormElementItemsFromCollection.js +1 -1
- package/activities/forms/GetFormElementProperty.d.ts +19 -19
- package/activities/forms/GetFormElementValue.d.ts +17 -17
- package/activities/forms/GetFormEventData.d.ts +17 -17
- package/activities/forms/HideFormElement.d.ts +13 -13
- package/activities/forms/PropagateFormEvent.d.ts +10 -10
- package/activities/forms/SetCurrentFormElementItem.d.ts +18 -18
- package/activities/forms/SetCurrentFormElementItem.js +1 -1
- package/activities/forms/SetFormElementError.d.ts +17 -17
- package/activities/forms/SetFormElementEvent.d.ts +18 -18
- package/activities/forms/SetFormElementItemProperty.d.ts +34 -21
- package/activities/forms/SetFormElementItemProperty.js +1 -1
- package/activities/forms/SetFormElementItems.d.ts +18 -19
- package/activities/forms/SetFormElementProperty.d.ts +32 -19
- package/activities/forms/SetFormElementProperty.js +1 -1
- package/activities/forms/ShowFormElement.d.ts +15 -15
- package/activities/image/GetImageMetadata.d.ts +16 -16
- package/activities/image/RotateImage.d.ts +15 -15
- package/activities/index.d.ts +4 -2
- package/activities/index.js +1 -1
- package/activities/main.d.ts +1 -1
- package/activities/math/Abs.d.ts +14 -14
- package/activities/math/Cos.d.ts +14 -14
- package/activities/math/Max.d.ts +16 -16
- package/activities/math/Min.d.ts +16 -16
- package/activities/math/Pow.d.ts +15 -15
- package/activities/math/Random.d.ts +10 -10
- package/activities/math/Sin.d.ts +14 -14
- package/activities/math/Sqrt.d.ts +14 -14
- package/activities/math/Tan.d.ts +14 -14
- package/activities/pdf/AddGeoreferenceToPdf.d.ts +19 -19
- package/activities/pdf/AddImageToPdf.d.ts +63 -0
- package/activities/pdf/AddImageToPdf.js +1 -0
- package/activities/pdf/AddTextToPdf.d.ts +59 -0
- package/activities/pdf/AddTextToPdf.js +1 -0
- package/activities/pdf/CreatePdf.d.ts +49 -0
- package/activities/pdf/CreatePdf.js +1 -0
- package/activities/pdf/ExtractPdfPages.d.ts +17 -17
- package/activities/pdf/MergePdfs.d.ts +15 -15
- package/activities/server/CopyFile.d.ts +10 -10
- package/activities/server/CreateDirectory.d.ts +9 -9
- package/activities/server/CreateDownload.d.ts +18 -18
- package/activities/server/CreateEmailAttachment.d.ts +16 -16
- package/activities/server/CreateZipFromDirectory.d.ts +12 -12
- package/activities/server/DeleteDirectory.d.ts +9 -9
- package/activities/server/DeleteFile.d.ts +9 -9
- package/activities/server/DirectoryExists.d.ts +13 -13
- package/activities/server/ExtractZipToDirectory.d.ts +11 -11
- package/activities/server/FileExists.d.ts +13 -13
- package/activities/server/GetDirectoriesInDirectory.d.ts +14 -14
- package/activities/server/GetFilesInDirectory.d.ts +14 -14
- package/activities/server/MoveFile.d.ts +10 -10
- package/activities/server/ReadFile.d.ts +14 -14
- package/activities/server/ReadFileBytes.d.ts +13 -13
- package/activities/server/RunApplication.d.ts +22 -22
- package/activities/server/RunPython.d.ts +23 -23
- package/activities/server/SendEmail.d.ts +16 -16
- package/activities/server/SqlNonQuery.d.ts +18 -18
- package/activities/server/SqlQuery.d.ts +18 -18
- package/activities/server/SqlQueryUnsafe.d.ts +18 -18
- package/activities/server/WriteFile.d.ts +11 -11
- package/activities/server/WriteFileBytes.d.ts +10 -10
- package/activities/ui/Alert.d.ts +17 -17
- package/activities/ui/Confirm.d.ts +24 -24
- package/activities/ui/Prompt.d.ts +26 -26
- package/activities/wab/OpenWidget.d.ts +10 -10
- package/activities/wab/PublishWidgetData.d.ts +11 -11
- package/activities/xlsx/ConvertDataTableToXlsx.d.ts +15 -15
- package/activities/xlsx/ConvertXlsxToDataSet.d.ts +15 -15
- package/constants.d.ts +2 -2
- package/definition/Activity.d.ts +12 -13
- package/definition/ActivityInput.d.ts +31 -31
- package/definition/Component.d.ts +10 -10
- package/definition/DeploymentConfig.d.ts +4 -5
- package/definition/Form.d.ts +5 -5
- package/definition/Program.d.ts +29 -30
- package/definition/ProgramInspector.d.ts +290 -288
- package/definition/ProgramInspector.js +1 -1
- package/definition/Reference.d.ts +11 -11
- package/definition/Resource.d.ts +26 -26
- package/definition/Step.d.ts +9 -9
- package/definition/Transition.d.ts +17 -17
- package/diagnostics/ConsoleDebugLogger.d.ts +10 -10
- package/diagnostics/logging.d.ts +5 -5
- package/execution/ActivityLoader.d.ts +23 -24
- package/execution/Engine.d.ts +84 -85
- package/execution/IDebugSession.d.ts +43 -44
- package/execution/ModuleLoader.d.ts +42 -42
- package/execution/ProgramRunner.d.ts +1 -1
- package/execution/ProgramRunner.js +1 -1
- package/forms/Calendar.d.ts +89 -89
- package/forms/ExclusiveTimer.d.ts +13 -13
- package/forms/FormComponent.d.ts +47 -47
- package/forms/FormComponent.js +1 -1
- package/forms/FormDefinition.d.ts +451 -452
- package/forms/FormElement.d.ts +24 -59
- package/forms/FormElement.js +1 -1
- package/forms/FormHost.d.ts +225 -231
- package/forms/FormHost.js +1 -1
- package/forms/FormPresenterHost.d.ts +62 -74
- package/forms/MutuallyExclusiveSectionGroup.d.ts +41 -41
- package/forms/NumberParser.d.ts +27 -26
- package/forms/NumberParser.js +1 -1
- package/forms/common.d.ts +67 -62
- package/forms/common.js +1 -1
- package/forms/components/AccordionGroup.d.ts +15 -15
- package/forms/components/AutoComplete.d.ts +8 -8
- package/forms/components/ButtonBar.d.ts +8 -8
- package/forms/components/CheckBox.d.ts +7 -7
- package/forms/components/CheckGroup.d.ts +8 -8
- package/forms/components/Custom.d.ts +7 -7
- package/forms/components/DatePicker.d.ts +8 -8
- package/forms/components/DatePicker.js +1 -1
- package/forms/components/DateRangePicker.d.ts +12 -12
- package/forms/components/DateRangePicker.js +1 -1
- package/forms/components/DateTimePicker.d.ts +8 -8
- package/forms/components/DateTimePicker.js +1 -1
- package/forms/components/DropDownList.d.ts +8 -7
- package/forms/components/DropDownList.js +1 -1
- package/forms/components/FilePicker.d.ts +10 -9
- package/forms/components/FilePicker.js +1 -1
- package/forms/components/Form.d.ts +23 -23
- package/forms/components/Form.js +1 -1
- package/forms/components/FormLabelNumberField.d.ts +17 -17
- package/forms/components/GeometryPicker.d.ts +5 -4
- package/forms/components/GeometryPicker.js +1 -1
- package/forms/components/GeometryPickerListItem.d.ts +23 -23
- package/forms/components/HorizontalRule.d.ts +7 -7
- package/forms/components/Image.d.ts +7 -7
- package/forms/components/ItemPicker.d.ts +15 -17
- package/forms/components/ItemPicker.js +1 -1
- package/forms/components/ListBox.d.ts +8 -8
- package/forms/components/Markdown.d.ts +14 -14
- package/forms/components/Number.d.ts +8 -8
- package/forms/components/Number.js +1 -1
- package/forms/components/NumberRangeSlider.d.ts +12 -12
- package/forms/components/NumberSlider.d.ts +11 -11
- package/forms/components/RadioGroup.d.ts +8 -8
- package/forms/components/Scanner.d.ts +11 -9
- package/forms/components/Scanner.js +1 -1
- package/forms/components/Section.d.ts +14 -14
- package/forms/components/Section.js +1 -1
- package/forms/components/Signature.d.ts +12 -11
- package/forms/components/Signature.js +1 -1
- package/forms/components/SignatureDialog.d.ts +22 -22
- package/forms/components/Text.d.ts +8 -8
- package/forms/components/TextArea.d.ts +7 -7
- package/forms/components/TextBox.d.ts +7 -7
- package/forms/components/TimePicker.d.ts +8 -8
- package/forms/components/TimePicker.js +1 -1
- package/forms/constants.d.ts +81 -81
- package/forms/dateUtilities.d.ts +102 -103
- package/forms/dateUtilities.js +1 -1
- package/forms/elements/AutoComplete.d.ts +13 -13
- package/forms/elements/ButtonBar.d.ts +9 -9
- package/forms/elements/CheckBox.d.ts +7 -7
- package/forms/elements/CheckGroup.d.ts +11 -11
- package/forms/elements/Custom.d.ts +7 -7
- package/forms/elements/DatePicker.d.ts +6 -6
- package/forms/elements/DateRangePicker.d.ts +6 -6
- package/forms/elements/DateTimePicker.d.ts +6 -6
- package/forms/elements/DropDownList.d.ts +6 -6
- package/forms/elements/FilePicker.d.ts +8 -8
- package/forms/elements/GeometryPicker.d.ts +18 -18
- package/forms/elements/Header.d.ts +10 -10
- package/forms/elements/HorizontalRule.d.ts +2 -2
- package/forms/elements/Image.d.ts +2 -2
- package/forms/elements/ItemPicker.d.ts +13 -13
- package/forms/elements/ListBox.d.ts +11 -11
- package/forms/elements/Number.d.ts +11 -11
- package/forms/elements/NumberRangeSlider.d.ts +10 -10
- package/forms/elements/NumberSlider.d.ts +6 -6
- package/forms/elements/PasswordBox.d.ts +5 -5
- package/forms/elements/RadioGroup.d.ts +6 -6
- package/forms/elements/Scanner.d.ts +19 -19
- package/forms/elements/Section.d.ts +2 -2
- package/forms/elements/Signature.d.ts +16 -16
- package/forms/elements/Text.d.ts +2 -2
- package/forms/elements/TextArea.d.ts +7 -7
- package/forms/elements/TextBox.d.ts +5 -5
- package/forms/elements/TimePicker.d.ts +6 -6
- package/forms/elements/types.d.ts +83 -83
- package/forms/index.d.ts +124 -108
- package/forms/keyboard.d.ts +9 -9
- package/forms/listUtilities.d.ts +3 -3
- package/forms/manifest.d.ts +3 -3
- package/forms/manifest.js +1 -1
- package/forms/numberFormatter.d.ts +90 -94
- package/forms/numberFormatter.js +1 -1
- package/forms/numberUtilities.d.ts +150 -150
- package/forms/numberUtilities.js +1 -1
- package/forms/presenter.d.ts +21 -21
- package/forms/presenter.js +1 -1
- package/forms/renderers.d.ts +5 -8
- package/forms/renderers.js +1 -1
- package/forms/textUtilities.d.ts +33 -23
- package/forms/textUtilities.js +1 -1
- package/forms/utils.d.ts +177 -146
- package/forms/utils.js +1 -1
- package/index.d.ts +2 -2
- package/libs/version.d.ts +1 -1
- package/libs/version.js +1 -1
- package/licensing/LicenseChecker.d.ts +1 -1
- package/licensing/Watermark.d.ts +7 -7
- package/package.json +9 -11
- package/activities/app/constants.d.ts +0 -1
- package/activities/app/constants.js +0 -1
package/Validation.d.ts
CHANGED
|
@@ -1,26 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const never:
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
/** An object used to facilitate activity input validation. */
|
|
2
|
+
export declare namespace validation {
|
|
3
|
+
type TNever = {};
|
|
4
|
+
export const never: TNever;
|
|
5
|
+
/**
|
|
6
|
+
* Coerces an array out of a value.
|
|
7
|
+
* @param inputName The name of the input being checked.
|
|
8
|
+
* @param value The value of the input.
|
|
9
|
+
*/
|
|
10
|
+
export function array<T>(inputName: string, value: T | T[] | undefined | null): T[] | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Coerces an array out of a value.
|
|
13
|
+
* @param inputName The name of the input being checked.
|
|
14
|
+
* @param value The value of the input.
|
|
15
|
+
* @param defaultValue The value to use if `value` is `undefined` or `null`. When this is `validation.never` the function will throw an `ActivityInputError` instead.
|
|
16
|
+
*/
|
|
17
|
+
export function array<T>(inputName: string, value: T | T[] | undefined | null, defaultValue: undefined): T[] | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Coerces an array out of a value.
|
|
20
|
+
* @param inputName The name of the input being checked.
|
|
21
|
+
* @param value The value of the input.
|
|
22
|
+
* @param defaultValue The value to use if `value` is `undefined` or `null`. When this is `validation.never` the function will throw an `ActivityInputError` instead.
|
|
23
|
+
*/
|
|
24
|
+
export function array<T>(inputName: string, value: T | T[] | undefined | null, defaultValue: T | T[] | TNever): T[];
|
|
25
|
+
export function isBoolean(value: boolean | TNever): value is boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Checks if the given value is a boolean. If not a default value is returned instead.
|
|
28
|
+
* When `defaultValue` is `validation.never`, an error is thrown instead.
|
|
29
|
+
* @param inputName The name of the input being checked.
|
|
30
|
+
* @param value The value of the input.
|
|
31
|
+
* @param defaultValue The value to use if `value` is `undefined` or `null`. When this is `validation.never` the function will throw an `ActivityInputError` instead.
|
|
32
|
+
* @returns `value` if it is a boolean, `defaultValue` if it is a boolean. Otherwise an ActivityInputError is thrown.
|
|
33
|
+
*/
|
|
34
|
+
export function boolean(inputName: string, value: any): boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Checks if the given value is a boolean. If not a default value is returned instead.
|
|
37
|
+
* When `defaultValue` is `validation.never`, an error is thrown instead.
|
|
38
|
+
* @param inputName The name of the input being checked.
|
|
39
|
+
* @param value The value of the input.
|
|
40
|
+
* @param defaultValue The value to use if `value` is `undefined` or `null`. When this is `validation.never` the function will throw an `ActivityInputError` instead.
|
|
41
|
+
* @returns `value` if it is a boolean, `defaultValue` if it is a boolean. Otherwise an ActivityInputError is thrown.
|
|
42
|
+
*/
|
|
43
|
+
export function boolean(inputName: string, value: any, defaultValue: undefined): boolean | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Checks if the given value is a boolean. If not a default value is returned instead.
|
|
46
|
+
* When `defaultValue` is `validation.never`, an error is thrown instead.
|
|
47
|
+
* @param inputName The name of the input being checked.
|
|
48
|
+
* @param value The value of the input.
|
|
49
|
+
* @param defaultValue The value to use if `value` is `undefined` or `null`. When this is `validation.never` the function will throw an `ActivityInputError` instead.
|
|
50
|
+
* @returns `value` if it is a boolean, `defaultValue` if it is a boolean. Otherwise an ActivityInputError is thrown.
|
|
51
|
+
*/
|
|
52
|
+
export function boolean(inputName: string, value: any, defaultValue: boolean | TNever): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Checks if the given value is defined and throws an error if not.
|
|
55
|
+
* @param inputName The name of the input being checked.
|
|
56
|
+
* @param value The value of the input.
|
|
57
|
+
* @returns The supplied value, if it is defined.
|
|
58
|
+
* @throws An `ActivityInputError` if `value` is `undefined` or `null`.
|
|
59
|
+
*/
|
|
60
|
+
export function exists<T>(inputName: string, value: T | undefined): T;
|
|
61
|
+
/**
|
|
62
|
+
* Checks if the given value is defined and throws an error if not.
|
|
63
|
+
* @param inputName The name of the input being checked.
|
|
64
|
+
* @param value The value of the input.
|
|
65
|
+
* @param defaultValue The default value to use when `value` is not defined. If `validation.never`, an error is thrown instead.
|
|
66
|
+
* @returns The supplied value, if it is defined. Otherwise, `defaultValue` if it is not `validation.never`.
|
|
67
|
+
* @throws An `ActivityInputError` if `value` is `undefined` or `null` and `defaultValue` is `validation.never`.
|
|
68
|
+
*/
|
|
69
|
+
export function exists<T>(inputName: string, value: T | undefined, defaultValue: T | TNever): T;
|
|
70
|
+
export function id(inputName: string, value: any): string | number | undefined;
|
|
71
|
+
export function id(inputName: string, value: any, defaultValue: undefined): string | number | undefined;
|
|
72
|
+
export function id(inputName: string, value: any, defaultValue: string | number | TNever): string | number;
|
|
73
|
+
/**
|
|
74
|
+
* Checks if the given value is a number or a type that can be converted into one.
|
|
75
|
+
* If so, the numeric value is returned.
|
|
76
|
+
* If not, `undefined` is returned.
|
|
77
|
+
* @param inputName The name of the input being checked.
|
|
78
|
+
* @param value The value of the input.
|
|
79
|
+
*/
|
|
80
|
+
export function number(inputName: string, value: number): number;
|
|
81
|
+
/**
|
|
82
|
+
* Checks if the given value is a number or a type that can be converted into one.
|
|
83
|
+
* If so, the numeric value is returned.
|
|
84
|
+
* If not, `undefined` is returned.
|
|
85
|
+
* @param inputName The name of the input being checked.
|
|
86
|
+
* @param value The value of the input.
|
|
87
|
+
*/
|
|
88
|
+
export function number(inputName: string, value: number | undefined): number | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Checks if the given value is a number or a type that can be converted into one.
|
|
91
|
+
* If so, the numeric value is returned.
|
|
92
|
+
* If not, `undefined` is returned.
|
|
93
|
+
* @param inputName The name of the input being checked.
|
|
94
|
+
* @param value The value of the input.
|
|
95
|
+
*/
|
|
96
|
+
export function number(inputName: string, value: any): number | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Checks if the given value is a number or a type that can be converted into one.
|
|
99
|
+
* If so, the numeric value is returned.
|
|
100
|
+
* If not, `undefined` is returned.
|
|
101
|
+
* @param inputName The name of the input being checked.
|
|
102
|
+
* @param value The value of the input.
|
|
103
|
+
* @param defaultValue A value to return if `value` could not be converted to a number.
|
|
104
|
+
*/
|
|
105
|
+
export function number(inputName: string, value: any, defaultValue: undefined): number | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Checks if the given value is a number or a type that can be converted into one.
|
|
108
|
+
* If so, the numeric value is returned.
|
|
109
|
+
* If not, `undefined` is returned.
|
|
110
|
+
* @param inputName The name of the input being checked.
|
|
111
|
+
* @param value The value of the input.
|
|
112
|
+
* @param defaultValue A value to return if `value` could not be converted to a number. If `validation.never`, an `ActivityInputError` is thrown instead.
|
|
113
|
+
*/
|
|
114
|
+
export function number(inputName: string, value: any, defaultValue: number | TNever): number;
|
|
115
|
+
/**
|
|
116
|
+
* Checks if the given value is a string.
|
|
117
|
+
* @param inputName The name of the input being checked.
|
|
118
|
+
* @param value The value of the input.
|
|
119
|
+
*/
|
|
120
|
+
export function string(inputName: string, value: string): string;
|
|
121
|
+
/**
|
|
122
|
+
* Checks if the given value is a string.
|
|
123
|
+
* If so, the value is returned. If not, undefined is returned.
|
|
124
|
+
* @param inputName The name of the input being checked.
|
|
125
|
+
* @param value The value of the input.
|
|
126
|
+
*/
|
|
127
|
+
export function string(inputName: string, value: any): string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Checks if the given value is a string.
|
|
130
|
+
* If so, the value is returned. If not, the default value is returned.
|
|
131
|
+
* @param inputName The name of the input being checked.
|
|
132
|
+
* @param value The value of the input.
|
|
133
|
+
* @param defaultValue The value to return if `value` is not a string.
|
|
134
|
+
*/
|
|
135
|
+
export function string(inputName: string, value: any, defaultValue: undefined): string | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Checks if the given value is a string.
|
|
138
|
+
* If so, the value is returned. If not, the default value is returned
|
|
139
|
+
* unless the default value is `validation.never`, in which case an `ActivityInputError` is thrown.
|
|
140
|
+
* @param inputName The name of the input being checked.
|
|
141
|
+
* @param value The value of the input.
|
|
142
|
+
* @param defaultValue The value to return if `value` is not a string.
|
|
143
|
+
*/
|
|
144
|
+
export function string(inputName: string, value: any, defaultValue: string | TNever): string;
|
|
145
|
+
/** Checks if an input object contains a url or an esri layer with a url. */
|
|
146
|
+
export function urlOrLayer(inputs: {
|
|
147
|
+
url?: string;
|
|
148
|
+
layer?: __esri.Layer;
|
|
149
|
+
}): string;
|
|
150
|
+
export {};
|
|
151
|
+
}
|
package/Validation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ActivityInputError}from"./Errors.js";var validation;!function(i){function
|
|
1
|
+
import{ActivityInputError}from"./Errors.js";var validation;!function(i){function e(r){return"boolean"==typeof r}i.never={},i.array=function(r,t,n){if(null!=t)return t instanceof Array?t:[t];if(n===i.never)throw new ActivityInputError(r,"array");return 2<arguments.length?n:void 0},i.isBoolean=e,i.boolean=function(r,t,n){if(null==t){if(n===i.never)throw new ActivityInputError(r,"boolean");return 2<arguments.length?n:void 0}if(e(t))return t;if(2<arguments.length){if(n===i.never)throw new ActivityInputError(r,"boolean");return n}throw new ActivityInputError(r,"boolean")},i.exists=function(r,t,n){if(null!=t)return t;if(2<arguments.length&&n!==i.never)return n;throw new ActivityInputError(r,"exists")},i.id=function(r,t,n){if(null==t){if(n===i.never)throw new ActivityInputError(r,"id");return 2<arguments.length?n:void 0}if("string"==typeof t)return t;if("number"==typeof t&&0*t==0)return t;if(2<arguments.length){if(n===i.never)throw new ActivityInputError(r,"id");return n}throw new ActivityInputError(r,"id")},i.number=function(r,t,n){if(null==t){if(n===i.never)throw new ActivityInputError(r,"number");return 2<arguments.length?n:void 0}var e=t.valueOf();if("number"==typeof e)return e;if("boolean"==typeof e)return e?1:0;if("string"==typeof e){e=parseFloat(t);if(!isNaN(e))return e}if(2<arguments.length){if(n===i.never)throw new ActivityInputError(r,"number");return n}throw new ActivityInputError(r,"number")},i.string=function(r,t,n){if(null==t){if(n===i.never)throw new ActivityInputError(r,"string");return 2<arguments.length?n:void 0}if("string"==typeof t)return t;if(2<arguments.length){if(n===i.never)throw new ActivityInputError(r,"string");return n}throw new ActivityInputError(r,"string")},i.urlOrLayer=function(t){if(null!=t){let r=t.url;t=t.layer;if(!r&&t?.url&&(r=void 0!==t.layerId&&null!==t.layerId?`${t.url}/${t.layerId}`:t.url),r)return r}throw new ActivityInputError("url or layer","url or layer input is required. layer must have a valid url property.")}}(validation=validation||{});export{validation};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { IActivityHandler } from "../../IActivityHandler";
|
|
2
|
-
export interface GetApplicationDataInputs {
|
|
3
|
-
key: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
static readonly
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { IActivityHandler } from "../../IActivityHandler";
|
|
2
|
+
export interface GetApplicationDataInputs {
|
|
3
|
+
key: string;
|
|
4
|
+
visibility: "memory" | "application" | "global" | string;
|
|
5
|
+
}
|
|
6
|
+
export interface GetApplicationDataOutputs {
|
|
7
|
+
value: any;
|
|
8
|
+
}
|
|
9
|
+
export declare class GetApplicationData implements IActivityHandler {
|
|
10
|
+
static readonly action = "gcx:wf:app::GetApplicationData";
|
|
11
|
+
static readonly suite = "gcx:wf:builtin";
|
|
12
|
+
protected getAppId(): string;
|
|
13
|
+
private getValueFromLocalStorage;
|
|
14
|
+
execute(inputs: GetApplicationDataInputs): Promise<GetApplicationDataOutputs>;
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{validation}from"../../Validation.js";import{
|
|
1
|
+
import{validation}from"../../Validation.js";import{ApplicationDataDocumentProperty,getLocalStorageKey}from"./applicationData.js";class GetApplicationData{getAppId(){throw new Error("This version of the activity does not support application visibility.")}getValueFromLocalStorage(a){let t;if(localStorage[a])try{t=JSON.parse(localStorage[a])}catch(t){console.warn(`Failed to deserialize "${a}" from Local Storage.`,t.message)}return t}async execute(t){var a=validation.string("key",t.key,validation.never);let i,e;switch(validation.string("visibility",t.visibility)){case"application":i=this.getAppId();case"global":var o=getLocalStorageKey(a,i);e=this.getValueFromLocalStorage(o);break;default:o=document;o[ApplicationDataDocumentProperty]&&(e=o[ApplicationDataDocumentProperty][a])}return{value:e}}}GetApplicationData.action="gcx:wf:app::GetApplicationData",GetApplicationData.suite="gcx:wf:builtin";export{GetApplicationData};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { EmptyInputs, IActivityHandler } from "../../IActivityHandler";
|
|
2
|
-
/**
|
|
3
|
-
* Defines outputs from the GetApplicationInfo activity.
|
|
4
|
-
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
|
-
*/
|
|
6
|
-
export interface GetApplicationInfoOutputs {
|
|
7
|
-
name: string;
|
|
8
|
-
version?: string;
|
|
9
|
-
info: any;
|
|
10
|
-
}
|
|
11
|
-
export declare class GetApplicationInfo implements IActivityHandler {
|
|
12
|
-
static readonly action = "gcx:wf:app::GetApplicationInfo";
|
|
13
|
-
static readonly suite = "gcx:wf:builtin";
|
|
14
|
-
execute(inputs: EmptyInputs): GetApplicationInfoOutputs;
|
|
15
|
-
}
|
|
1
|
+
import { EmptyInputs, IActivityHandler } from "../../IActivityHandler";
|
|
2
|
+
/**
|
|
3
|
+
* Defines outputs from the GetApplicationInfo activity.
|
|
4
|
+
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetApplicationInfoOutputs {
|
|
7
|
+
name: string;
|
|
8
|
+
version?: string;
|
|
9
|
+
info: any;
|
|
10
|
+
}
|
|
11
|
+
export declare class GetApplicationInfo implements IActivityHandler {
|
|
12
|
+
static readonly action = "gcx:wf:app::GetApplicationInfo";
|
|
13
|
+
static readonly suite = "gcx:wf:builtin";
|
|
14
|
+
execute(inputs: EmptyInputs): GetApplicationInfoOutputs;
|
|
15
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IActivityHandler, EmptyInputs } from "../../IActivityHandler";
|
|
2
|
-
/**
|
|
3
|
-
* Defines outputs from the GetUserInfo activity.
|
|
4
|
-
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
|
-
*/
|
|
6
|
-
export interface GetUserInfoOutputs {
|
|
7
|
-
username: string;
|
|
8
|
-
email: string;
|
|
9
|
-
roles: string[];
|
|
10
|
-
}
|
|
11
|
-
export declare class GetUserInfo implements IActivityHandler {
|
|
12
|
-
static readonly action = "gcx:wf:app::GetUserInfo";
|
|
13
|
-
static readonly suite = "gcx:wf:builtin";
|
|
14
|
-
execute(inputs: EmptyInputs): GetUserInfoOutputs;
|
|
15
|
-
}
|
|
1
|
+
import { IActivityHandler, EmptyInputs } from "../../IActivityHandler";
|
|
2
|
+
/**
|
|
3
|
+
* Defines outputs from the GetUserInfo activity.
|
|
4
|
+
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetUserInfoOutputs {
|
|
7
|
+
username: string;
|
|
8
|
+
email: string;
|
|
9
|
+
roles: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare class GetUserInfo implements IActivityHandler {
|
|
12
|
+
static readonly action = "gcx:wf:app::GetUserInfo";
|
|
13
|
+
static readonly suite = "gcx:wf:builtin";
|
|
14
|
+
execute(inputs: EmptyInputs): GetUserInfoOutputs;
|
|
15
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
-
/** Inputs for the PublishEvent activity. */
|
|
3
|
-
export interface PublishEventInputs {
|
|
4
|
-
/** The name of the event to publish. */
|
|
5
|
-
eventName: string;
|
|
6
|
-
/** The event argument data to publish. */
|
|
7
|
-
eventArgument?: any;
|
|
8
|
-
}
|
|
9
|
-
/** Activity which publishes a named event in the host application. */
|
|
10
|
-
export declare class PublishEvent implements IActivityHandler {
|
|
11
|
-
static readonly action = "gcx:wf:app::PublishEvent";
|
|
12
|
-
static readonly suite = "gcx:wf:builtin";
|
|
13
|
-
execute(inputs: PublishEventInputs): EmptyOutputs;
|
|
14
|
-
}
|
|
1
|
+
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
/** Inputs for the PublishEvent activity. */
|
|
3
|
+
export interface PublishEventInputs {
|
|
4
|
+
/** The name of the event to publish. */
|
|
5
|
+
eventName: string;
|
|
6
|
+
/** The event argument data to publish. */
|
|
7
|
+
eventArgument?: any;
|
|
8
|
+
}
|
|
9
|
+
/** Activity which publishes a named event in the host application. */
|
|
10
|
+
export declare class PublishEvent implements IActivityHandler {
|
|
11
|
+
static readonly action = "gcx:wf:app::PublishEvent";
|
|
12
|
+
static readonly suite = "gcx:wf:builtin";
|
|
13
|
+
execute(inputs: PublishEventInputs): EmptyOutputs;
|
|
14
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
export interface RemoveApplicationDataInputs {
|
|
2
|
-
key: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
static readonly
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export interface RemoveApplicationDataInputs {
|
|
2
|
+
key: string;
|
|
3
|
+
visibility: "memory" | "application" | "global" | string;
|
|
4
|
+
}
|
|
5
|
+
export interface RemoveApplicationDataOutputs {
|
|
6
|
+
removed: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class RemoveApplicationData {
|
|
9
|
+
static readonly action = "gcx:wf:app::RemoveApplicationData";
|
|
10
|
+
static readonly suite = "gcx:wf:builtin";
|
|
11
|
+
protected getAppId(): string;
|
|
12
|
+
private removeValueFromLocalStorage;
|
|
13
|
+
execute(inputs: RemoveApplicationDataInputs): Promise<RemoveApplicationDataOutputs>;
|
|
14
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{validation}from"../../Validation.js";import{
|
|
1
|
+
import{validation}from"../../Validation.js";import{ApplicationDataDocumentProperty,getLocalStorageKey}from"./applicationData.js";class RemoveApplicationData{getAppId(){throw new Error("This version of the activity does not support application visibility.")}removeValueFromLocalStorage(t){let a=!1;return localStorage[t]&&(delete localStorage[t],a=!0),a}async execute(t){var a=validation.string("key",t.key,validation.never);let e,o=!1;switch(validation.string("visibility",t.visibility)){case"application":e=this.getAppId();case"global":var i=getLocalStorageKey(a,e);o=this.removeValueFromLocalStorage(i);break;default:{const r=document;r[ApplicationDataDocumentProperty]&&void 0!==r[ApplicationDataDocumentProperty][a]&&(delete r[ApplicationDataDocumentProperty][a],o=!0);break}}return{removed:o}}}RemoveApplicationData.action="gcx:wf:app::RemoveApplicationData",RemoveApplicationData.suite="gcx:wf:builtin";export{RemoveApplicationData};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IActivityHandler, IActivityContext, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
-
/**
|
|
3
|
-
* Inputs for the RunCommand activity.
|
|
4
|
-
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
|
-
*/
|
|
6
|
-
export interface RunCommandInputs {
|
|
7
|
-
/** The name of the command to invoke. */
|
|
8
|
-
commandName: string;
|
|
9
|
-
/** The parameter to pass to the command. */
|
|
10
|
-
commandParameter?: any;
|
|
11
|
-
}
|
|
12
|
-
/** Activity which runs a named command in the host application. */
|
|
13
|
-
export declare class RunCommand implements IActivityHandler {
|
|
14
|
-
static readonly action = "gcx:wf:app::RunCommand";
|
|
15
|
-
static readonly suite = "gcx:wf:builtin";
|
|
16
|
-
execute(inputs: RunCommandInputs, context: IActivityContext): EmptyOutputs;
|
|
17
|
-
}
|
|
1
|
+
import { IActivityHandler, IActivityContext, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
/**
|
|
3
|
+
* Inputs for the RunCommand activity.
|
|
4
|
+
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
|
+
*/
|
|
6
|
+
export interface RunCommandInputs {
|
|
7
|
+
/** The name of the command to invoke. */
|
|
8
|
+
commandName: string;
|
|
9
|
+
/** The parameter to pass to the command. */
|
|
10
|
+
commandParameter?: any;
|
|
11
|
+
}
|
|
12
|
+
/** Activity which runs a named command in the host application. */
|
|
13
|
+
export declare class RunCommand implements IActivityHandler {
|
|
14
|
+
static readonly action = "gcx:wf:app::RunCommand";
|
|
15
|
+
static readonly suite = "gcx:wf:builtin";
|
|
16
|
+
execute(inputs: RunCommandInputs, context: IActivityContext): EmptyOutputs;
|
|
17
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
-
/**
|
|
3
|
-
* Inputs for the RunOperation activity.
|
|
4
|
-
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
|
-
*/
|
|
6
|
-
export interface RunOperationInputs {
|
|
7
|
-
/** The name of the operation to invoke. */
|
|
8
|
-
operationName: string;
|
|
9
|
-
/** The parameter to pass to the operation. */
|
|
10
|
-
operationParameter?: any;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Outputs for the RunOperation activity.
|
|
14
|
-
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
15
|
-
*/
|
|
16
|
-
export interface RunOperationOutputs {
|
|
17
|
-
/** The result of the operation. */
|
|
18
|
-
result: any;
|
|
19
|
-
}
|
|
20
|
-
/** Activity which runs a named operation in the host application. */
|
|
21
|
-
export declare class RunOperation implements IActivityHandler {
|
|
22
|
-
static readonly action = "gcx:wf:app::RunOperation";
|
|
23
|
-
static readonly suite = "gcx:wf:builtin";
|
|
24
|
-
execute(inputs: RunOperationInputs, context: IActivityContext): RunOperationOutputs;
|
|
25
|
-
}
|
|
1
|
+
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
+
/**
|
|
3
|
+
* Inputs for the RunOperation activity.
|
|
4
|
+
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
|
+
*/
|
|
6
|
+
export interface RunOperationInputs {
|
|
7
|
+
/** The name of the operation to invoke. */
|
|
8
|
+
operationName: string;
|
|
9
|
+
/** The parameter to pass to the operation. */
|
|
10
|
+
operationParameter?: any;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Outputs for the RunOperation activity.
|
|
14
|
+
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
15
|
+
*/
|
|
16
|
+
export interface RunOperationOutputs {
|
|
17
|
+
/** The result of the operation. */
|
|
18
|
+
result: any;
|
|
19
|
+
}
|
|
20
|
+
/** Activity which runs a named operation in the host application. */
|
|
21
|
+
export declare class RunOperation implements IActivityHandler {
|
|
22
|
+
static readonly action = "gcx:wf:app::RunOperation";
|
|
23
|
+
static readonly suite = "gcx:wf:builtin";
|
|
24
|
+
execute(inputs: RunOperationInputs, context: IActivityContext): RunOperationOutputs;
|
|
25
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
-
export interface SetApplicationDataInputs {
|
|
3
|
-
key: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
static readonly
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
export interface SetApplicationDataInputs {
|
|
3
|
+
key: string;
|
|
4
|
+
visibility: "memory" | "application" | "global" | string;
|
|
5
|
+
value: any;
|
|
6
|
+
}
|
|
7
|
+
export declare class SetApplicationData implements IActivityHandler {
|
|
8
|
+
static readonly action = "gcx:wf:app::SetApplicationData";
|
|
9
|
+
static readonly suite = "gcx:wf:builtin";
|
|
10
|
+
protected getAppId(): string;
|
|
11
|
+
private setValueInLocalStorage;
|
|
12
|
+
execute(inputs: SetApplicationDataInputs): EmptyOutputs;
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{validation}from"../../Validation.js";import{
|
|
1
|
+
import{validation}from"../../Validation.js";import{ApplicationDataDocumentProperty,getLocalStorageKey}from"./applicationData.js";class SetApplicationData{getAppId(){throw new Error("This version of the activity does not support application visibility.")}setValueInLocalStorage(t,a){localStorage[t]=JSON.stringify(a)}execute(t){var a=validation.string("key",t.key,validation.never),i=validation.string("visibility",t.visibility),o=t.value;let e;switch(i){case"application":e=this.getAppId();case"global":var p=getLocalStorageKey(a,e);this.setValueInLocalStorage(p,o);break;default:{const l=document;l[ApplicationDataDocumentProperty]||(l[ApplicationDataDocumentProperty]={}),l[ApplicationDataDocumentProperty][a]=o;break}}return{}}}SetApplicationData.action="gcx:wf:app::SetApplicationData",SetApplicationData.suite="gcx:wf:builtin";export{SetApplicationData};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document property name used when referencing data in memory for Get/Set/Remove Application Data.
|
|
3
|
+
*/
|
|
4
|
+
export declare const ApplicationDataDocumentProperty = "__VSWF_ApplicationData__";
|
|
5
|
+
/**
|
|
6
|
+
* Gets the key for a location in local storage for when referencing data with application or global visibility
|
|
7
|
+
* for Get/Set/Remove Application Data.
|
|
8
|
+
* @param dataKey The key for the data item to interact with.
|
|
9
|
+
* @param appID The key for the app that the item belongs to, or `undefined` if global visibility is to be used.
|
|
10
|
+
* @returns The key for retrieving the item from Local Storage.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getLocalStorageKey(dataKey: string, appID?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const ApplicationDataDocumentProperty="__VSWF_ApplicationData__";function getLocalStorageKey(t,a){return`vswf:ApplicationData:${a?`app:${a}`:"global"}:${t}`}export{ApplicationDataDocumentProperty,getLocalStorageKey};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
-
export interface AddAttachmentInputs {
|
|
3
|
-
/** The URL of the ArcGIS feature layer or table. Either url or layer is required. */
|
|
4
|
-
url?: string;
|
|
5
|
-
/** The ArcGIS feature layer or table. Either url or layer is required. */
|
|
6
|
-
layer?: __esri.Layer;
|
|
7
|
-
objectId: number;
|
|
8
|
-
attachment: File;
|
|
9
|
-
/** 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+. */
|
|
10
|
-
gdbVersion?: string;
|
|
11
|
-
/** The time span in milliseconds to wait for the request's results. */
|
|
12
|
-
timeout?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface AddAttachmentOutputs {
|
|
15
|
-
result: any;
|
|
16
|
-
}
|
|
17
|
-
/** Add an attachment to the feature specified by the object id. */
|
|
18
|
-
export declare class AddAttachment implements IActivityHandler {
|
|
19
|
-
static readonly action = "gcx:wf:arcgis::AddAttachment";
|
|
20
|
-
static readonly suite = "gcx:wf:builtin";
|
|
21
|
-
execute(inputs: AddAttachmentInputs, context: IActivityContext): Promise<AddAttachmentOutputs>;
|
|
22
|
-
}
|
|
1
|
+
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
+
export interface AddAttachmentInputs {
|
|
3
|
+
/** The URL of the ArcGIS feature layer or table. Either url or layer is required. */
|
|
4
|
+
url?: string;
|
|
5
|
+
/** The ArcGIS feature layer or table. Either url or layer is required. */
|
|
6
|
+
layer?: __esri.Layer;
|
|
7
|
+
objectId: number;
|
|
8
|
+
attachment: File;
|
|
9
|
+
/** 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+. */
|
|
10
|
+
gdbVersion?: string;
|
|
11
|
+
/** The time span in milliseconds to wait for the request's results. */
|
|
12
|
+
timeout?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface AddAttachmentOutputs {
|
|
15
|
+
result: any;
|
|
16
|
+
}
|
|
17
|
+
/** Add an attachment to the feature specified by the object id. */
|
|
18
|
+
export declare class AddAttachment implements IActivityHandler {
|
|
19
|
+
static readonly action = "gcx:wf:arcgis::AddAttachment";
|
|
20
|
+
static readonly suite = "gcx:wf:builtin";
|
|
21
|
+
execute(inputs: AddAttachmentInputs, context: IActivityContext): Promise<AddAttachmentOutputs>;
|
|
22
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
-
import { MapProvider } from "./MapProvider";
|
|
3
|
-
/** Defines the inputs for the Add Feature Layer activity */
|
|
4
|
-
export interface AddFeatureLayerInputs {
|
|
5
|
-
/** The features to be included in the new layer. */
|
|
6
|
-
features: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
|
|
7
|
-
/** The display name of the new layer. */
|
|
8
|
-
displayName: string;
|
|
9
|
-
/** The fields to be included in the new layer. */
|
|
10
|
-
fields: __esri.Field[];
|
|
11
|
-
}
|
|
12
|
-
/** Defines the outputs for the Add Feature Layer Activity */
|
|
13
|
-
export interface AddFeatureLayerOutputs {
|
|
14
|
-
/** The new feature layer that was created. */
|
|
15
|
-
layer
|
|
16
|
-
}
|
|
17
|
-
export declare class AddFeatureLayer implements IActivityHandler {
|
|
18
|
-
static readonly action = "gcx:wf:arcgis::AddFeatureLayer";
|
|
19
|
-
static readonly suite = "gcx:wf:builtin";
|
|
20
|
-
execute(inputs: AddFeatureLayerInputs, _context: IActivityContext, type: typeof MapProvider): Promise<AddFeatureLayerOutputs>;
|
|
21
|
-
/** Override within a host implementation for custom behaviour. */
|
|
22
|
-
protected addLayerToMap(map: MapProvider, layer: __esri.FeatureLayer): void;
|
|
23
|
-
}
|
|
1
|
+
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
+
import { MapProvider } from "./MapProvider";
|
|
3
|
+
/** Defines the inputs for the Add Feature Layer activity */
|
|
4
|
+
export interface AddFeatureLayerInputs {
|
|
5
|
+
/** The features to be included in the new layer. */
|
|
6
|
+
features: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
|
|
7
|
+
/** The display name of the new layer. */
|
|
8
|
+
displayName: string;
|
|
9
|
+
/** The fields to be included in the new layer. */
|
|
10
|
+
fields: __esri.Field[];
|
|
11
|
+
}
|
|
12
|
+
/** Defines the outputs for the Add Feature Layer Activity */
|
|
13
|
+
export interface AddFeatureLayerOutputs {
|
|
14
|
+
/** The new feature layer that was created. */
|
|
15
|
+
layer?: __esri.FeatureLayer;
|
|
16
|
+
}
|
|
17
|
+
export declare class AddFeatureLayer implements IActivityHandler {
|
|
18
|
+
static readonly action = "gcx:wf:arcgis::AddFeatureLayer";
|
|
19
|
+
static readonly suite = "gcx:wf:builtin";
|
|
20
|
+
execute(inputs: AddFeatureLayerInputs, _context: IActivityContext, type: typeof MapProvider): Promise<AddFeatureLayerOutputs>;
|
|
21
|
+
/** Override within a host implementation for custom behaviour. */
|
|
22
|
+
protected addLayerToMap(map: MapProvider, layer: __esri.FeatureLayer): void;
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate}from"tslib";import Collection from"@arcgis/core/core/Collection";import FeatureLayer from"@arcgis/core/layers/FeatureLayer";import{activate}from"../../Hooks.js";import{validation}from"../../Validation.js";import{MapProvider}from"./MapProvider.js";import{featuresToArray}from"./tools.js";let AddFeatureLayer=class{async execute(e,a,r){var t=featuresToArray(validation.exists("features",e.features)),i=validation.string("displayName",e.displayName,validation.never);const o=validation.array("fields",e.fields,validation.never),d=r.create();await d.load();let
|
|
1
|
+
import{__decorate}from"tslib";import Collection from"@arcgis/core/core/Collection";import FeatureLayer from"@arcgis/core/layers/FeatureLayer";import{activate}from"../../Hooks.js";import{validation}from"../../Validation.js";import{MapProvider}from"./MapProvider.js";import{featuresToArray}from"./tools.js";let AddFeatureLayer=class{async execute(e,a,r){var t=featuresToArray(validation.exists("features",e.features)),i=validation.string("displayName",e.displayName,validation.never);const o=validation.array("fields",e.fields,validation.never),d=r.create();await d.load();let l;r=o.filter(e=>"oid"===e.type)[0];return r?.name&&(t=new Collection(t),l=new FeatureLayer({fields:o,objectIdField:r.name,title:i,source:t}),this.addLayerToMap(d,l)),{layer:l}}addLayerToMap(e,a){e.view.map.add(a)}};AddFeatureLayer.action="gcx:wf:arcgis::AddFeatureLayer",AddFeatureLayer.suite="gcx:wf:builtin",AddFeatureLayer=__decorate([activate(MapProvider)],AddFeatureLayer);export{AddFeatureLayer};
|