@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
|
@@ -1,288 +1,290 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Activity } from "./Activity";
|
|
3
|
-
import { Component } from "./Component";
|
|
4
|
-
import { DeploymentConfig } from "./DeploymentConfig";
|
|
5
|
-
import { Form } from "./Form";
|
|
6
|
-
import { Program } from "./Program";
|
|
7
|
-
import { Reference } from "./Reference";
|
|
8
|
-
import { Resource } from "./Resource";
|
|
9
|
-
import { Step } from "./Step";
|
|
10
|
-
import { Transition } from "./Transition";
|
|
11
|
-
/** Contains the results of the import operation. */
|
|
12
|
-
export interface ImportResults
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/** Indicates the
|
|
30
|
-
protected
|
|
31
|
-
/** Indicates the
|
|
32
|
-
protected
|
|
33
|
-
/** Indicates the
|
|
34
|
-
protected
|
|
35
|
-
/** Indicates the
|
|
36
|
-
protected
|
|
37
|
-
/** Indicates the
|
|
38
|
-
protected
|
|
39
|
-
/** Indicates the
|
|
40
|
-
|
|
41
|
-
/** Indicates the
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
/** Retrieves the
|
|
50
|
-
|
|
51
|
-
/** Retrieves the
|
|
52
|
-
|
|
53
|
-
/** Retrieves the
|
|
54
|
-
|
|
55
|
-
/** Retrieves the reference for the given identifier or name. */
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
/** Iterates over all the assets. */
|
|
60
|
-
|
|
61
|
-
/** Iterates over the
|
|
62
|
-
|
|
63
|
-
/** Iterates over the
|
|
64
|
-
|
|
65
|
-
/** Iterates over the
|
|
66
|
-
|
|
67
|
-
/** Iterates over the
|
|
68
|
-
|
|
69
|
-
/** Iterates over the
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
/** Adds a new
|
|
74
|
-
|
|
75
|
-
/** Adds a
|
|
76
|
-
|
|
77
|
-
/** Adds a
|
|
78
|
-
|
|
79
|
-
/** Adds a new
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
|
|
83
|
-
/** Forms a lookup cache of the
|
|
84
|
-
|
|
85
|
-
/** Forms a lookup cache of the
|
|
86
|
-
|
|
87
|
-
/** Forms a lookup cache of the
|
|
88
|
-
|
|
89
|
-
/** Forms a lookup cache of the
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
|
|
93
|
-
/** Relates
|
|
94
|
-
relate(
|
|
95
|
-
/** Relates
|
|
96
|
-
relate(
|
|
97
|
-
/** Relates
|
|
98
|
-
relate(
|
|
99
|
-
/**
|
|
100
|
-
|
|
101
|
-
/** Removes the given
|
|
102
|
-
remove(
|
|
103
|
-
/** Removes the given resources via an iterator. */
|
|
104
|
-
remove(resources:
|
|
105
|
-
/** Removes the given
|
|
106
|
-
|
|
107
|
-
/** Removes the given
|
|
108
|
-
|
|
109
|
-
/** Removes the given
|
|
110
|
-
|
|
111
|
-
/** Removes the given
|
|
112
|
-
|
|
113
|
-
/** Removes the given
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
/** Renames the given component to another identifer. */
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
|
|
121
|
-
/** Shifts the given
|
|
122
|
-
|
|
123
|
-
/** Shifts the given step to another identifier. */
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
|
|
127
|
-
/** Renames the given
|
|
128
|
-
|
|
129
|
-
/** Renames the given
|
|
130
|
-
|
|
131
|
-
/** Renames the given
|
|
132
|
-
|
|
133
|
-
/** Renames the given
|
|
134
|
-
|
|
135
|
-
/** Renames the given
|
|
136
|
-
|
|
137
|
-
/** Renames the given
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
-
/** Changes the
|
|
142
|
-
|
|
143
|
-
/** Changes the
|
|
144
|
-
|
|
145
|
-
/** Changes the
|
|
146
|
-
|
|
147
|
-
/** Changes the
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
|
|
151
|
-
/** Tests if the given resource is a
|
|
152
|
-
|
|
153
|
-
/** Tests if the given resource is a
|
|
154
|
-
|
|
155
|
-
/** Tests if the given resource is
|
|
156
|
-
|
|
157
|
-
/** Tests if the given resource is
|
|
158
|
-
|
|
159
|
-
/** Tests if the given resource is a
|
|
160
|
-
|
|
161
|
-
/** Tests if the given resource is a
|
|
162
|
-
|
|
163
|
-
/** Tests if the given resource is
|
|
164
|
-
|
|
165
|
-
/** Tests if the given resource is the
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
*
|
|
187
|
-
* @param
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
*
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
export declare function
|
|
1
|
+
import { Dictionary, Iterator, Iterable } from "../Collections";
|
|
2
|
+
import { Activity } from "./Activity";
|
|
3
|
+
import { Component } from "./Component";
|
|
4
|
+
import { DeploymentConfig } from "./DeploymentConfig";
|
|
5
|
+
import { Form } from "./Form";
|
|
6
|
+
import { Program } from "./Program";
|
|
7
|
+
import { Reference } from "./Reference";
|
|
8
|
+
import { Resource } from "./Resource";
|
|
9
|
+
import { Step } from "./Step";
|
|
10
|
+
import { Transition } from "./Transition";
|
|
11
|
+
/** Contains the results of the import operation. */
|
|
12
|
+
export interface ImportResults {
|
|
13
|
+
[id: number]: Resource | undefined;
|
|
14
|
+
[name: string]: Resource | undefined;
|
|
15
|
+
start?: Step;
|
|
16
|
+
}
|
|
17
|
+
/** Delegates remapping of identifiers and names. */
|
|
18
|
+
export interface NameIdMapper {
|
|
19
|
+
(id: number, name: string): boolean | number | string | {
|
|
20
|
+
id?: number;
|
|
21
|
+
name?: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Inspects and manipulates a Workflow program.
|
|
26
|
+
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
27
|
+
*/
|
|
28
|
+
export declare class ProgramInspector {
|
|
29
|
+
/** Indicates the map of incidents. */
|
|
30
|
+
protected incidents: IncidentList;
|
|
31
|
+
/** Indicates the components being built. */
|
|
32
|
+
protected components: ComponentList;
|
|
33
|
+
/** Indicates the forms being built. */
|
|
34
|
+
protected forms: FormList;
|
|
35
|
+
/** Indicates the references being built. */
|
|
36
|
+
protected references: ReferenceList;
|
|
37
|
+
/** Indicates the steps being built. */
|
|
38
|
+
protected steps: StepList;
|
|
39
|
+
/** Indicates the transitions being built. */
|
|
40
|
+
protected transitions: TransitionList;
|
|
41
|
+
/** Indicates the program being built. */
|
|
42
|
+
program: Program;
|
|
43
|
+
/** Indicates the starting step. */
|
|
44
|
+
start: Step | undefined;
|
|
45
|
+
/** Yields a new identifier that is not currently in use. */
|
|
46
|
+
newId(nextId?: number): number;
|
|
47
|
+
/** Checks to see if the given identifier exists. */
|
|
48
|
+
exists(resource: Resource | undefined): boolean;
|
|
49
|
+
/** Retrieves the resource for the given identifier. */
|
|
50
|
+
find(id: number): Resource | undefined;
|
|
51
|
+
/** Retrieves the component for the given identifier or name. */
|
|
52
|
+
findComponent(nameId: number | string): Component | undefined;
|
|
53
|
+
/** Retrieves the form for the given identifier or name. */
|
|
54
|
+
findForm(nameId: number | string): Form | undefined;
|
|
55
|
+
/** Retrieves the reference for the given identifier or name. */
|
|
56
|
+
findReference(nameId: number | string): Reference | undefined;
|
|
57
|
+
/** Retrieves the reference for the given identifier or name. */
|
|
58
|
+
findStep(nameId: number | string): Step | undefined;
|
|
59
|
+
/** Iterates over all the assets. */
|
|
60
|
+
findTransition(nameId: number | string): Transition | undefined;
|
|
61
|
+
/** Iterates over all the assets. */
|
|
62
|
+
all(): Iterator<Resource>;
|
|
63
|
+
/** Iterates over the components. */
|
|
64
|
+
allComponents(): Iterator<Component>;
|
|
65
|
+
/** Iterates over the forms. */
|
|
66
|
+
allForms(): Iterator<Form>;
|
|
67
|
+
/** Iterates over the references. */
|
|
68
|
+
allReferences(): Iterator<Reference>;
|
|
69
|
+
/** Iterates over the steps. */
|
|
70
|
+
allSteps(): Iterator<Step>;
|
|
71
|
+
/** Iterates over the transitions. */
|
|
72
|
+
allTransitions(): Iterator<Transition>;
|
|
73
|
+
/** Adds a new component. */
|
|
74
|
+
addComponent(): Component;
|
|
75
|
+
/** Adds a new form. */
|
|
76
|
+
addForm(): Form;
|
|
77
|
+
/** Adds a reference. */
|
|
78
|
+
addReference(): Reference;
|
|
79
|
+
/** Adds a new step. */
|
|
80
|
+
addStep(): Step;
|
|
81
|
+
/** Adds a new transition. */
|
|
82
|
+
addTransition(source: Step, target: Step): Transition | undefined;
|
|
83
|
+
/** Forms a lookup cache of the components. */
|
|
84
|
+
cacheComponents(): Record<string, Component>;
|
|
85
|
+
/** Forms a lookup cache of the forms. */
|
|
86
|
+
cacheForms(): Record<string, Form>;
|
|
87
|
+
/** Forms a lookup cache of the references. */
|
|
88
|
+
cacheReference(): Record<string, Reference>;
|
|
89
|
+
/** Forms a lookup cache of the steps. */
|
|
90
|
+
cacheSteps(): Record<string, Step>;
|
|
91
|
+
/** Forms a lookup cache of the transitions. */
|
|
92
|
+
cacheTransitions(): Record<string, Transition>;
|
|
93
|
+
/** Relates components to steps and transitions. */
|
|
94
|
+
relate(components: Iterable<Component>): Iterator<Activity>;
|
|
95
|
+
/** Relates steps to transitions. */
|
|
96
|
+
relate(steps: Iterable<Step>, branch?: boolean | number | string): Iterator<Transition>;
|
|
97
|
+
/** Relates transitions to steps. */
|
|
98
|
+
relate(transitions: Iterable<Transition>): Iterator<Step>;
|
|
99
|
+
/** Relates resources to resources. */
|
|
100
|
+
relate(member: Iterable<Resource>): Iterator<Resource>;
|
|
101
|
+
/** Removes the given resource. */
|
|
102
|
+
remove(resource: Resource, orphan?: boolean): boolean;
|
|
103
|
+
/** Removes the given resources via an iterator. */
|
|
104
|
+
remove(resources: Resource[], orphan?: boolean): number;
|
|
105
|
+
/** Removes the given resources via an iterator. */
|
|
106
|
+
remove(resources: Iterator<Resource>, orphan?: boolean): number;
|
|
107
|
+
/** Removes the given component. */
|
|
108
|
+
removeComponent(resource: Resource): boolean;
|
|
109
|
+
/** Removes the given form. */
|
|
110
|
+
removeForm(resource: Resource): boolean;
|
|
111
|
+
/** Removes the given reference. */
|
|
112
|
+
removeReference(resource: Resource): boolean;
|
|
113
|
+
/** Removes the given step. */
|
|
114
|
+
removeStep(resource: Resource): boolean;
|
|
115
|
+
/** Removes the given transition. */
|
|
116
|
+
removeTransition(resource: Resource): boolean;
|
|
117
|
+
/** Renames the given component to another identifer. */
|
|
118
|
+
shift(resource: Resource, id: number): false | void;
|
|
119
|
+
/** Renames the given component to another identifer. */
|
|
120
|
+
shiftComponent(resource: Resource, id: number): boolean;
|
|
121
|
+
/** Shifts the given form to another identifier. */
|
|
122
|
+
shiftForm(resource: Resource, id: number): boolean;
|
|
123
|
+
/** Shifts the given step to another identifier. */
|
|
124
|
+
shiftReference(resource: Resource, id: number): boolean;
|
|
125
|
+
/** Shifts the given step to another identifier. */
|
|
126
|
+
shiftStep(resource: Resource, id: number): boolean;
|
|
127
|
+
/** Renames the given transition to another identifier. */
|
|
128
|
+
shiftTransition(resource: Resource, id: number): boolean;
|
|
129
|
+
/** Renames the given resource. */
|
|
130
|
+
rename(resource: Resource, name: string): string | undefined;
|
|
131
|
+
/** Renames the given componnent. */
|
|
132
|
+
renameComponent(resource: Resource, name: string): boolean;
|
|
133
|
+
/** Renames the given form. */
|
|
134
|
+
renameForm(resource: Resource, name: string): boolean;
|
|
135
|
+
/** Renames the given reference. */
|
|
136
|
+
renameReference(resource: Resource, name: string): boolean;
|
|
137
|
+
/** Renames the given step. */
|
|
138
|
+
renameStep(resource: Resource, name: string): boolean;
|
|
139
|
+
/** Renames the given transition. */
|
|
140
|
+
renameTransition(resource: Resource, name: string): boolean;
|
|
141
|
+
/** Changes the starting step. */
|
|
142
|
+
changeStart(step: Step): boolean;
|
|
143
|
+
/** Changes the branch of the given step or transition. */
|
|
144
|
+
changeBranch(transition: Transition, branch: boolean | number | string): boolean;
|
|
145
|
+
/** Changes the parent of the given step or transition. */
|
|
146
|
+
changeParent(activity: Activity, parent: Component | undefined): boolean;
|
|
147
|
+
/** Changes the source of the given transition. */
|
|
148
|
+
changeSource(transition: Transition, source: Step | undefined): boolean;
|
|
149
|
+
/** Changes the target of the given transition. */
|
|
150
|
+
changeTarget(transition: Transition, target: Step | undefined): boolean;
|
|
151
|
+
/** Tests if the given resource is a component */
|
|
152
|
+
isComponent(resource: Resource | undefined): resource is Component;
|
|
153
|
+
/** Tests if the given resource is a member of the component. */
|
|
154
|
+
isParent(component: Component, resource: Resource): resource is Activity;
|
|
155
|
+
/** Tests if the given resource is a form. */
|
|
156
|
+
isForm(resource: Resource | undefined): resource is Form;
|
|
157
|
+
/** Tests if the given resource is an activity. */
|
|
158
|
+
isActivity(resource: Resource): resource is Activity;
|
|
159
|
+
/** Tests if the given resource is a reference. */
|
|
160
|
+
isReference(resource: Resource | undefined): resource is Reference;
|
|
161
|
+
/** Tests if the given resource is a step. */
|
|
162
|
+
isStep(resource: Resource | undefined): resource is Step;
|
|
163
|
+
/** Tests if the given resource is a transition. */
|
|
164
|
+
isTransition(resource: Resource | undefined): resource is Transition;
|
|
165
|
+
/** Tests if the given resource is the source for the given transition. */
|
|
166
|
+
isSource(transition: Transition, resource: Resource): resource is Step;
|
|
167
|
+
/** Tests if the given resource is the target for the given transition. */
|
|
168
|
+
isTarget(transition: Transition, resource: Resource): resource is Step;
|
|
169
|
+
/** Returns deployment configuration details. */
|
|
170
|
+
getDeploymentConfig(): DeploymentConfig;
|
|
171
|
+
/**
|
|
172
|
+
* Retrieves the default locale for the workflow.
|
|
173
|
+
*/
|
|
174
|
+
getDefaultLocale(): string;
|
|
175
|
+
/**
|
|
176
|
+
* Retrieves the string lookups for the given locale.
|
|
177
|
+
* @param locale The locale of the strings to retrieve. Defaults to the invariant strings.
|
|
178
|
+
*/
|
|
179
|
+
getStrings(locale?: string): Record<string, string>;
|
|
180
|
+
/** Attempts to align the underlying program with the actual state of the inspector. */
|
|
181
|
+
/** Use this to get a static view of the program (say for saving a project). */
|
|
182
|
+
realize(): void;
|
|
183
|
+
release(): void;
|
|
184
|
+
resolveStart(start?: Step | number | string): Step | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* Imports a workflow program (must be pure JSON).
|
|
187
|
+
* @param program The program as JSON or as a JSON-string.
|
|
188
|
+
* @param compact Instructs the parsing to assume compact form.
|
|
189
|
+
* @param mapper Indicates how identifiers and names should get preserved.
|
|
190
|
+
*/
|
|
191
|
+
import(program: Program | string, compact?: boolean, mapper?: NameIdMapper): ImportResults;
|
|
192
|
+
/** Exports the program. */
|
|
193
|
+
export(): Program;
|
|
194
|
+
/** Resets the entire state. */
|
|
195
|
+
reset(): void;
|
|
196
|
+
toJSON(): Program;
|
|
197
|
+
}
|
|
198
|
+
export interface Incident<TResource extends Resource> {
|
|
199
|
+
token: string;
|
|
200
|
+
master?: ResourceList<TResource, Incident<TResource>>;
|
|
201
|
+
resource?: TResource;
|
|
202
|
+
}
|
|
203
|
+
export declare class IncidentList extends Dictionary<Incident<Resource>> {
|
|
204
|
+
nextId: number;
|
|
205
|
+
findFor(resource: Resource | undefined): Incident<Resource> | undefined;
|
|
206
|
+
newId(): number;
|
|
207
|
+
relate(resource: Resource, branch: string | undefined): Iterable<Resource>;
|
|
208
|
+
}
|
|
209
|
+
export declare abstract class ResourceList<T extends Resource, TIncident extends Incident<T>> extends Dictionary<TIncident> {
|
|
210
|
+
incidents: IncidentList;
|
|
211
|
+
protected cacheLookup: Record<string, T> | undefined;
|
|
212
|
+
abstract qualify(name: string): string;
|
|
213
|
+
abstract create(): T;
|
|
214
|
+
constructor(incidents: IncidentList);
|
|
215
|
+
all(): Iterator<T>;
|
|
216
|
+
cache(): Record<string, T>;
|
|
217
|
+
findFor(resource: Resource | undefined): TIncident | undefined;
|
|
218
|
+
test(incident: Incident<Resource> | undefined): incident is TIncident;
|
|
219
|
+
findWith(nameId: number | string): T | undefined;
|
|
220
|
+
shift(incident: TIncident, id: number): void;
|
|
221
|
+
shiftFor(resource: Resource | undefined, id: number): boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Renames the specified item, returning the old name.
|
|
224
|
+
* @param incident The thing to be renamed.
|
|
225
|
+
* @param name The new name.
|
|
226
|
+
*/
|
|
227
|
+
rename(incident: TIncident, name: string | undefined): string | undefined;
|
|
228
|
+
renameFor(resource: Resource | undefined, name: string): boolean;
|
|
229
|
+
add(): TIncident;
|
|
230
|
+
removeFor(resource: Resource | undefined): boolean;
|
|
231
|
+
unlink(incident: Incident<Resource>): number;
|
|
232
|
+
relate(_incident: Incident<Resource>, _branch: string | undefined): Iterable<Resource>;
|
|
233
|
+
changeParent(this: StepList | TransitionList, incident: StepIncident | TransitionIncident, parent: ComponentIncident | undefined): void;
|
|
234
|
+
}
|
|
235
|
+
export interface ComponentIncident extends Incident<Component> {
|
|
236
|
+
steps?: Dictionary<StepIncident>;
|
|
237
|
+
transitions?: Dictionary<TransitionIncident>;
|
|
238
|
+
}
|
|
239
|
+
export declare class ComponentList extends ResourceList<Component, ComponentIncident> {
|
|
240
|
+
create(): Component;
|
|
241
|
+
qualify(name: string): string;
|
|
242
|
+
unlink(incident: ComponentIncident): number;
|
|
243
|
+
relate(incident: ComponentIncident, branch: string): Iterable<Activity>;
|
|
244
|
+
}
|
|
245
|
+
export declare class FormList extends ResourceList<Form, Incident<Form>> {
|
|
246
|
+
create(): Form;
|
|
247
|
+
qualify(name: string): string;
|
|
248
|
+
}
|
|
249
|
+
export declare class ReferenceList extends ResourceList<Reference, Incident<Reference>> {
|
|
250
|
+
create(): Reference;
|
|
251
|
+
qualify(name: string): string;
|
|
252
|
+
}
|
|
253
|
+
export interface StepIncident extends Incident<Step> {
|
|
254
|
+
master?: StepList;
|
|
255
|
+
parent?: ComponentIncident;
|
|
256
|
+
branches?: Record<string, Transition | Transition[]>;
|
|
257
|
+
transitions?: Dictionary<TransitionIncident>;
|
|
258
|
+
}
|
|
259
|
+
export declare class StepList extends ResourceList<Step, StepIncident> {
|
|
260
|
+
create(): Step;
|
|
261
|
+
qualify(name: string): string;
|
|
262
|
+
siblings(incident: ComponentIncident): Dictionary<StepIncident | TransitionIncident>;
|
|
263
|
+
unlink(incident: StepIncident): number;
|
|
264
|
+
relate(incident: StepIncident, branch: string): Iterable<Transition>;
|
|
265
|
+
}
|
|
266
|
+
export interface TransitionIncident extends Incident<Transition> {
|
|
267
|
+
master?: TransitionList;
|
|
268
|
+
parent?: ComponentIncident;
|
|
269
|
+
source?: StepIncident;
|
|
270
|
+
target?: StepIncident;
|
|
271
|
+
}
|
|
272
|
+
export declare class TransitionList extends ResourceList<Transition, TransitionIncident> {
|
|
273
|
+
create(): Transition;
|
|
274
|
+
qualify(name: string): string;
|
|
275
|
+
siblings(incident: ComponentIncident): Dictionary<StepIncident | TransitionIncident>;
|
|
276
|
+
unlink(incident: TransitionIncident): number;
|
|
277
|
+
relate(incident: TransitionIncident, branch: string): Iterable<Step>;
|
|
278
|
+
}
|
|
279
|
+
export type LocaleParts = {
|
|
280
|
+
language: string;
|
|
281
|
+
script?: string;
|
|
282
|
+
territory?: string;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Parses a locale code into its component parts.
|
|
286
|
+
* If the locale is invalid, nothing is returned.
|
|
287
|
+
*/
|
|
288
|
+
export declare function parseLocale(locale: string | undefined): LocaleParts | undefined;
|
|
289
|
+
/** Converts a locale code to its canonicalized form, e.g. "de-ch" becomes "de-CH", "ZH-HANS-CN" becomes "zh-Hans-CN"). */
|
|
290
|
+
export declare function canonicalizeLocale(locale: string | undefined): string | undefined;
|