@vertigis/workflow 5.45.1 → 5.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LanguageStringUtils.js +1 -1
- package/activities/app/GetApplicationData.d.ts +1 -0
- package/activities/app/GetApplicationInfo.d.ts +3 -0
- package/activities/app/GetUserInfo.d.ts +3 -0
- package/activities/app/PublishEvent.d.ts +0 -3
- package/activities/app/RemoveApplicationData.d.ts +1 -0
- package/activities/app/RunCommand.d.ts +0 -3
- package/activities/app/RunOperation.d.ts +1 -4
- package/activities/arcgis/AddAttachment.d.ts +1 -6
- package/activities/arcgis/AddAttachment.js +1 -1
- package/activities/arcgis/AddFeatureLayer.d.ts +1 -4
- package/activities/arcgis/AddFeatures.d.ts +2 -6
- package/activities/arcgis/AddGraphics.d.ts +1 -4
- package/activities/arcgis/ArcadeScript.d.ts +1 -4
- package/activities/arcgis/AreaEngineTask.d.ts +1 -3
- package/activities/arcgis/BufferEngineTask.d.ts +2 -7
- package/activities/arcgis/BufferServiceTask.d.ts +2 -10
- package/activities/arcgis/CastGeometry.d.ts +5 -5
- package/activities/arcgis/ClearGraphics.d.ts +0 -1
- package/activities/arcgis/ClipEngineTask.d.ts +1 -3
- package/activities/arcgis/ClosestFacilityTask.d.ts +8 -34
- package/activities/arcgis/CompareGeometries.d.ts +1 -3
- package/activities/arcgis/ConvertValueToArcGisFieldType.d.ts +1 -0
- package/activities/arcgis/CreateFeatureSet.d.ts +1 -1
- package/activities/arcgis/CreateGraphic.d.ts +1 -1
- package/activities/arcgis/CreatePoint.d.ts +1 -1
- package/activities/arcgis/CutEngineTask.d.ts +1 -3
- package/activities/arcgis/DeleteAttachments.d.ts +1 -5
- package/activities/arcgis/DeleteAttachments.js +1 -1
- package/activities/arcgis/DeleteFeatures.d.ts +2 -7
- package/activities/arcgis/DeleteFeatures.js +1 -1
- package/activities/arcgis/DensifyEngineTask.d.ts +1 -4
- package/activities/arcgis/DifferenceEngineTask.d.ts +2 -5
- package/activities/arcgis/DistanceEngineTask.d.ts +1 -4
- package/activities/arcgis/DistanceServiceTask.d.ts +1 -6
- package/activities/arcgis/ExtendedSpatialReferenceInfoEngineTask.d.ts +1 -2
- package/activities/arcgis/FeatureSetFromJson.d.ts +1 -2
- package/activities/arcgis/FlipEngineTask.d.ts +1 -4
- package/activities/arcgis/FromGeoCoordinateStringServiceTask.d.ts +1 -6
- package/activities/arcgis/GeneralizeEngineTask.d.ts +1 -5
- package/activities/arcgis/GenerateArcGisToken.d.ts +2 -2
- package/activities/arcgis/GenerateWebmapForReport.d.ts +3 -2
- package/activities/arcgis/GenerateWebmapForReport.js +1 -1
- package/activities/arcgis/Geocode.d.ts +3 -12
- package/activities/arcgis/GeometryFromJson.d.ts +1 -2
- package/activities/arcgis/Geoprocessing.d.ts +2 -6
- package/activities/arcgis/GeoprocessingAsync.d.ts +4 -8
- package/activities/arcgis/GetAttributeValue.d.ts +2 -5
- package/activities/arcgis/GetAttributeValues.d.ts +2 -4
- package/activities/arcgis/GetCentroid.d.ts +1 -2
- package/activities/arcgis/GetCodedValueDomain.d.ts +1 -7
- package/activities/arcgis/GetCurrentPosition.d.ts +23 -4
- package/activities/arcgis/GetFeatureGeometries.d.ts +2 -4
- package/activities/arcgis/GetFeatureGeometry.d.ts +1 -3
- package/activities/arcgis/GetFeatureLayerInfo.d.ts +1 -4
- package/activities/arcgis/GetFeatureLayerInfo.js +1 -1
- package/activities/arcgis/GetFeatureSetExtent.d.ts +2 -3
- package/activities/arcgis/GetFeatureSetObjectIds.d.ts +2 -4
- package/activities/arcgis/GetFormElementItemsFromFeatures.d.ts +1 -4
- package/activities/arcgis/GetGeometryExtent.d.ts +2 -2
- package/activities/arcgis/GetGraphics.d.ts +1 -3
- package/activities/arcgis/GetLayer.d.ts +2 -4
- package/activities/arcgis/GetLayerDefinitionExpression.d.ts +1 -2
- package/activities/arcgis/GetLayerProperty.d.ts +1 -2
- package/activities/arcgis/GetLayerVisibility.d.ts +1 -2
- package/activities/arcgis/GetMap.d.ts +1 -0
- package/activities/arcgis/GetMapScreenshot.d.ts +1 -2
- package/activities/arcgis/GetMapScreenshot.js +1 -1
- package/activities/arcgis/GetPortalUser.d.ts +6 -3
- package/activities/arcgis/GetPortalUser.js +1 -1
- package/activities/arcgis/GetTable.d.ts +1 -2
- package/activities/arcgis/GetViewExtent.d.ts +3 -3
- package/activities/arcgis/GetViewpoint.d.ts +1 -1
- package/activities/arcgis/IntersectEngineTask.d.ts +2 -4
- package/activities/arcgis/LabelPointsServiceTask.d.ts +1 -3
- package/activities/arcgis/LengthEngineTask.d.ts +1 -3
- package/activities/arcgis/MapProvider.js +1 -1
- package/activities/arcgis/NearestCoordinateEngineTask.d.ts +5 -7
- package/activities/arcgis/NearestVertexEngineTask.d.ts +5 -7
- package/activities/arcgis/NearestVerticesEngineTask.d.ts +6 -10
- package/activities/arcgis/OffsetEngineTask.d.ts +1 -6
- package/activities/arcgis/ProjectServiceTask.d.ts +2 -7
- package/activities/arcgis/QueryAttachmentInfos.d.ts +4 -5
- package/activities/arcgis/QueryAttachmentInfos.js +1 -1
- package/activities/arcgis/QueryTask.d.ts +3 -27
- package/activities/arcgis/RefreshLayer.d.ts +0 -1
- package/activities/arcgis/RegisterCorsUrl.d.ts +1 -3
- package/activities/arcgis/RelateEngineTask.d.ts +2 -5
- package/activities/arcgis/RelationServiceTask.d.ts +2 -6
- package/activities/arcgis/RelationshipQueryTask.d.ts +1 -12
- package/activities/arcgis/RemoveFeatureSetFields.d.ts +2 -5
- package/activities/arcgis/RemoveGraphics.d.ts +0 -2
- package/activities/arcgis/RemoveLayer.d.ts +1 -1
- package/activities/arcgis/RendererFromJson.d.ts +1 -2
- package/activities/arcgis/ResetLayerDefinitionExpression.d.ts +2 -7
- package/activities/arcgis/ReshapeServiceTask.d.ts +1 -4
- package/activities/arcgis/ReverseGeocode.d.ts +2 -8
- package/activities/arcgis/RotateEngineTask.d.ts +1 -4
- package/activities/arcgis/RouteTask.d.ts +5 -36
- package/activities/arcgis/RunPrint.d.ts +7 -4
- package/activities/arcgis/RunPrint.js +1 -1
- package/activities/arcgis/RunReport.d.ts +5 -3
- package/activities/arcgis/RunReport.js +1 -1
- package/activities/arcgis/RunWorkflow.d.ts +1 -3
- package/activities/arcgis/ServiceAreaTask.d.ts +7 -33
- package/activities/arcgis/SetFeatureAttribute.d.ts +0 -3
- package/activities/arcgis/SetFeatureGeometry.d.ts +0 -2
- package/activities/arcgis/SetFeaturePopup.d.ts +0 -1
- package/activities/arcgis/SetFeatureSymbol.d.ts +0 -2
- package/activities/arcgis/SetImageryLayerOptions.d.ts +4 -9
- package/activities/arcgis/SetLayerDefinitionExpression.d.ts +2 -3
- package/activities/arcgis/SetLayerPopup.d.ts +0 -1
- package/activities/arcgis/SetLayerProperty.d.ts +2 -5
- package/activities/arcgis/SetLayerVisibility.d.ts +2 -5
- package/activities/arcgis/SetMap.d.ts +0 -1
- package/activities/arcgis/SetViewExtent.d.ts +4 -7
- package/activities/arcgis/SetViewpoint.d.ts +2 -5
- package/activities/arcgis/ShowFeaturePopup.d.ts +0 -1
- package/activities/arcgis/SimplifyEngineTask.d.ts +1 -1
- package/activities/arcgis/SortFeatureSet.d.ts +1 -4
- package/activities/arcgis/SymbolFromJson.d.ts +1 -2
- package/activities/arcgis/ToGeoCoordinateStringServiceTask.d.ts +1 -9
- package/activities/arcgis/UnionEngineTask.d.ts +1 -3
- package/activities/arcgis/UnionServiceTask.d.ts +1 -4
- package/activities/arcgis/UpdateAttachment.d.ts +1 -8
- package/activities/arcgis/UpdateAttachment.js +1 -1
- package/activities/arcgis/UpdateFeatures.d.ts +2 -6
- package/activities/arcgis/printing.d.ts +212 -0
- package/activities/arcgis/printing.js +1 -0
- package/activities/arcgis/printingFields.d.ts +88 -0
- package/activities/arcgis/printingFields.js +1 -0
- package/activities/arcgis/runUtils.d.ts +1 -20
- package/activities/arcgis/runUtils.js +1 -1
- package/activities/arcgis/shared.js +1 -1
- package/activities/browser/GetBrowserInfo.d.ts +2 -2
- package/activities/core/Annotation.d.ts +0 -1
- package/activities/core/CalculateDate.d.ts +2 -0
- package/activities/core/Cast.d.ts +1 -1
- package/activities/core/Container.d.ts +0 -1
- package/activities/core/ConvertBytesToText.d.ts +1 -0
- package/activities/core/ConvertDataTableToFeatureSet.d.ts +1 -0
- package/activities/core/ConvertTextToBytes.d.ts +1 -0
- package/activities/core/ConvertToJson.d.ts +1 -2
- package/activities/core/CreateFile.d.ts +1 -0
- package/activities/core/CreateValue.d.ts +1 -6
- package/activities/core/DecodeUriComponent.d.ts +1 -0
- package/activities/core/Delay.d.ts +0 -1
- package/activities/core/EncodeUriComponent.d.ts +1 -0
- package/activities/core/Evaluate.d.ts +1 -3
- package/activities/core/EvaluateAsync.d.ts +1 -3
- package/activities/core/ExecuteFunction.d.ts +1 -1
- package/activities/core/ForEach.d.ts +4 -6
- package/activities/core/FormatDate.d.ts +5 -0
- package/activities/core/Function.d.ts +3 -0
- package/activities/core/GetBase64StringFromBytes.d.ts +1 -1
- package/activities/core/GetBase64StringFromFile.d.ts +1 -0
- package/activities/core/GetBytesFromBase64String.d.ts +1 -1
- package/activities/core/GetFirstItem.d.ts +1 -0
- package/activities/core/GetItemAtIndex.d.ts +1 -0
- package/activities/core/GetLastItem.d.ts +1 -0
- package/activities/core/GetLogLevel.d.ts +5 -0
- package/activities/core/GetTextFromFile.d.ts +1 -0
- package/activities/core/GetWorkflowInputs.d.ts +1 -1
- package/activities/core/If.d.ts +1 -3
- package/activities/core/Log.d.ts +0 -2
- package/activities/core/Loop.d.ts +2 -7
- package/activities/core/ParseJson.d.ts +1 -2
- package/activities/core/ParseNumber.d.ts +1 -0
- package/activities/core/ParseUrl.d.ts +5 -6
- package/activities/core/RegexMatches.d.ts +1 -0
- package/activities/core/RegexReplace.d.ts +1 -0
- package/activities/core/RemoveItem.d.ts +1 -0
- package/activities/core/RunActivity.d.ts +0 -1
- package/activities/core/SetProperty.d.ts +0 -3
- package/activities/core/Switch.d.ts +2 -3
- package/activities/core/TextReplace.d.ts +1 -0
- package/activities/core/TryCatch.d.ts +1 -1
- package/activities/core/WebRequest.d.ts +6 -17
- package/activities/csv/ConvertCsvToDataTable.d.ts +1 -0
- package/activities/csv/ConvertDataTableToCsv.d.ts +1 -0
- package/activities/csv/ParseCsv.d.ts +20 -0
- package/activities/csv/ParseCsv.js +1 -0
- package/activities/essentials/GetEssentialsSite.d.ts +1 -1
- package/activities/essentials/RunEssentialsWorkflow.d.ts +1 -4
- package/activities/essentials/RunEssentialsWorkflowActivity.d.ts +2 -2
- package/activities/forms/AddFormElement.d.ts +0 -3
- package/activities/forms/DisplayForm.d.ts +2 -4
- package/activities/forms/FilterFormElementItems.d.ts +1 -0
- package/activities/forms/FormRenderer.js +1 -1
- package/activities/forms/GetFormElementItemsFromCollection.d.ts +1 -4
- package/activities/forms/GetFormElementProperty.d.ts +1 -2
- package/activities/forms/GetFormElementValue.d.ts +1 -1
- package/activities/forms/GetFormEventData.d.ts +5 -0
- package/activities/forms/SetCurrentFormElementItem.d.ts +1 -0
- package/activities/forms/SetFormElementError.d.ts +0 -2
- package/activities/forms/SetFormElementEvent.d.ts +0 -3
- package/activities/forms/SetFormElementEvent.js +1 -1
- package/activities/forms/SetFormElementItemProperty.d.ts +0 -4
- package/activities/forms/SetFormElementItems.d.ts +0 -2
- package/activities/forms/SetFormElementProperty.d.ts +0 -3
- package/activities/forms/ShowFormElement.d.ts +0 -2
- package/activities/image/GetImageMetadata.d.ts +3 -0
- package/activities/image/RotateImage.d.ts +1 -0
- package/activities/index.js +1 -1
- package/activities/math/Abs.d.ts +1 -0
- package/activities/math/Cos.d.ts +1 -0
- package/activities/math/Max.d.ts +1 -0
- package/activities/math/Min.d.ts +1 -0
- package/activities/math/Pow.d.ts +1 -0
- package/activities/math/Random.d.ts +1 -0
- package/activities/math/Sin.d.ts +1 -0
- package/activities/math/Sqrt.d.ts +1 -0
- package/activities/math/Tan.d.ts +1 -0
- package/activities/pdf/AddGeoreferenceToPdf.d.ts +1 -0
- package/activities/pdf/AddImageToPdf.d.ts +1 -41
- package/activities/pdf/AddTextToPdf.d.ts +0 -38
- package/activities/pdf/CreatePdf.d.ts +0 -26
- package/activities/pdf/ExtractPdfPages.d.ts +2 -0
- package/activities/pdf/MergePdfs.d.ts +2 -0
- package/activities/server/CreateDownload.d.ts +1 -1
- package/activities/server/CreateEmailAttachment.d.ts +1 -1
- package/activities/server/DirectoryExists.d.ts +1 -1
- package/activities/server/FileExists.d.ts +1 -1
- package/activities/server/GetDirectoriesInDirectory.d.ts +1 -1
- package/activities/server/GetFilesInDirectory.d.ts +1 -1
- package/activities/server/ReadFile.d.ts +1 -0
- package/activities/server/ReadFileBytes.d.ts +1 -0
- package/activities/server/RunApplication.d.ts +3 -3
- package/activities/server/RunPython.d.ts +4 -4
- package/activities/server/SqlNonQuery.d.ts +1 -0
- package/activities/server/SqlQuery.d.ts +1 -0
- package/activities/server/SqlQueryUnsafe.d.ts +1 -0
- package/activities/ui/Alert.d.ts +0 -4
- package/activities/ui/Confirm.d.ts +1 -4
- package/activities/ui/Prompt.d.ts +1 -5
- package/activities/xlsx/ConvertDataTableToXlsx.d.ts +1 -0
- package/activities/xlsx/ConvertXlsxToDataSet.d.ts +1 -0
- package/execution/ProgramRunner.js +1 -1
- package/forms/FormDefinition.d.ts +4 -1
- package/forms/components/DateTimePicker.js +1 -1
- package/forms/components/TimePicker.js +1 -1
- package/forms/constants.d.ts +1 -1
- package/forms/dateUtilities.d.ts +12 -0
- package/forms/dateUtilities.js +1 -1
- package/forms/utils.d.ts +1 -1
- package/forms/utils.js +1 -1
- package/libs/version.d.ts +1 -1
- package/libs/version.js +1 -1
- package/package.json +1 -1
package/LanguageStringUtils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const defaultStrings={"common-all":"All","common-cancel":"Cancel","common-clear":"Clear","common-color":"Color","common-done":"Done","common-edit":"Edit","common-end":"End","common-none":"None","common-ok":"OK","common-start":"Start","common-to":"to","common-today":"Today","common-undo":"Undo","date-range-picker-end-text":"End Date","date-range-picker-start-text":"Start Date","file-picker-remove-item-label":"Remove file","form-element-status-failure":"Failure","form-element-status-invalid":"Invalid input","form-element-status-missing":"Required","form-element-status-pending":"Working...","form-element-status-trivial":"No data","geometry-picker-remove-item-label":"Remove location","item-picker-hidden-selected-item":"1 hidden item is also selected.","item-picker-hidden-selected-items":"hidden items are also selected.","item-picker-select":"Select","item-picker-select-visible":"Select Visible","sketch-size":"Size","sketch-tool":"Tool","sketch-tool-highlighter":"Highlighter","sketch-tool-pen":"Pen"};function getStringsForProgram(e,
|
|
1
|
+
const defaultStrings={"common-all":"All","common-cancel":"Cancel","common-clear":"Clear","common-color":"Color","common-done":"Done","common-edit":"Edit","common-end":"End","common-none":"None","common-ok":"OK","common-start":"Start","common-to":"to","common-today":"Today","common-undo":"Undo","date-range-picker-end-text":"End Date","date-range-picker-start-text":"Start Date","file-picker-remove-item-label":"Remove file","form-element-status-failure":"Failure","form-element-status-invalid":"Invalid input","form-element-status-missing":"Required","form-element-status-pending":"Working...","form-element-status-trivial":"No data","geometry-picker-remove-item-label":"Remove location","item-picker-hidden-selected-item":"1 hidden item is also selected.","item-picker-hidden-selected-items":"hidden items are also selected.","item-picker-select":"Select","item-picker-select-visible":"Select Visible","printing-gen2-address":"Address","printing-gen2-city":"City","printing-gen2-company":"Company","printing-gen2-copyright":"Copyright","printing-gen2-country":"Country","printing-gen2-created":"Created","printing-gen2-creator":"Creator","printing-gen2-current-time":"Time","printing-gen2-department":"Department","printing-gen2-disclaimer":"Disclaimer","printing-gen2-division":"Division","printing-gen2-email":"E-Mail","printing-gen2-end-time":"End Time","printing-gen2-fax":"Fax","printing-gen2-first-name":"First Name","printing-gen2-last-name":"Last Name","printing-gen2-map-view":"Map View","printing-gen2-mobile-phone":"Mobile Phone","printing-gen2-organization":"Organization","printing-gen2-overview-scale":"Overview Scale","printing-gen2-page":"Page","printing-gen2-phone":"Phone","printing-gen2-range":"Range","printing-gen2-scale":"Scale","printing-gen2-spatial-reference":"Spatial Reference","printing-gen2-start-end-time":"Start / End Time","printing-gen2-start-time":"Start Time","printing-gen2-street":"Street","printing-gen2-time":"Time","printing-gen2-title":"Title","printing-gen2-zip-code":"ZIP Code","sketch-size":"Size","sketch-tool":"Tool","sketch-tool-highlighter":"Highlighter","sketch-tool-pen":"Pen"};function getStringsForProgram(e,n){const i={...defaultStrings};if(n.strings)for(const r of Object.keys(n.strings))i[r]=n.strings[r];var t=e.getStrings(n.locale);for(const o of Object.keys(t))i[o]=t[o];return i}export{getStringsForProgram};
|
|
@@ -4,6 +4,7 @@ export interface GetApplicationDataInputs {
|
|
|
4
4
|
visibility: "memory" | "application" | "global" | string;
|
|
5
5
|
}
|
|
6
6
|
export interface GetApplicationDataOutputs {
|
|
7
|
+
/** @description The data that was retrieved. */
|
|
7
8
|
value: any;
|
|
8
9
|
}
|
|
9
10
|
export declare class GetApplicationData implements IActivityHandler {
|
|
@@ -4,8 +4,11 @@ import type { IActivityHandler } from "../../IActivityHandler";
|
|
|
4
4
|
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
5
|
*/
|
|
6
6
|
export interface GetApplicationInfoOutputs {
|
|
7
|
+
/** @description The name of the application. */
|
|
7
8
|
name: string;
|
|
9
|
+
/** @description The version of the application. */
|
|
8
10
|
version?: string;
|
|
11
|
+
/** @description Additional application information that is specific to the host application. */
|
|
9
12
|
info: any;
|
|
10
13
|
}
|
|
11
14
|
export declare class GetApplicationInfo implements IActivityHandler {
|
|
@@ -4,8 +4,11 @@ import type { IActivityHandler } from "../../IActivityHandler";
|
|
|
4
4
|
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
5
|
*/
|
|
6
6
|
export interface GetUserInfoOutputs {
|
|
7
|
+
/** @description The login name of the currently logged-in user. */
|
|
7
8
|
username: string;
|
|
9
|
+
/** @description The email address of the currently logged-in user. */
|
|
8
10
|
email: string;
|
|
11
|
+
/** @description The security roles that the currently logged-in user belongs to. */
|
|
9
12
|
roles: string[];
|
|
10
13
|
}
|
|
11
14
|
export declare class GetUserInfo implements IActivityHandler {
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
2
|
/** Inputs for the PublishEvent activity. */
|
|
3
3
|
export interface PublishEventInputs {
|
|
4
|
-
/** The name of the event to publish. */
|
|
5
4
|
eventName: string;
|
|
6
|
-
/** The event argument data to publish. */
|
|
7
5
|
eventArgument?: any;
|
|
8
6
|
}
|
|
9
|
-
/** Activity which publishes a named event in the host application. */
|
|
10
7
|
export declare class PublishEvent implements IActivityHandler {
|
|
11
8
|
static readonly action = "gcx:wf:app::PublishEvent";
|
|
12
9
|
static readonly suite = "gcx:wf:builtin";
|
|
@@ -3,6 +3,7 @@ export interface RemoveApplicationDataInputs {
|
|
|
3
3
|
visibility: "memory" | "application" | "global" | string;
|
|
4
4
|
}
|
|
5
5
|
export interface RemoveApplicationDataOutputs {
|
|
6
|
+
/** @description Whether or not the specified key was removed. */
|
|
6
7
|
removed: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare class RemoveApplicationData {
|
|
@@ -4,12 +4,9 @@ import type { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
|
4
4
|
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
5
|
*/
|
|
6
6
|
export interface RunCommandInputs {
|
|
7
|
-
/** The name of the command to invoke. */
|
|
8
7
|
commandName: string;
|
|
9
|
-
/** The parameter to pass to the command. */
|
|
10
8
|
commandParameter?: any;
|
|
11
9
|
}
|
|
12
|
-
/** Activity which runs a named command in the host application. */
|
|
13
10
|
export declare class RunCommand implements IActivityHandler {
|
|
14
11
|
static readonly action = "gcx:wf:app::RunCommand";
|
|
15
12
|
static readonly suite = "gcx:wf:builtin";
|
|
@@ -4,9 +4,7 @@ import type { IActivityHandler } from "../../IActivityHandler";
|
|
|
4
4
|
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
5
5
|
*/
|
|
6
6
|
export interface RunOperationInputs {
|
|
7
|
-
/** The name of the operation to invoke. */
|
|
8
7
|
operationName: string;
|
|
9
|
-
/** The parameter to pass to the operation. */
|
|
10
8
|
operationParameter?: any;
|
|
11
9
|
}
|
|
12
10
|
/**
|
|
@@ -14,10 +12,9 @@ export interface RunOperationInputs {
|
|
|
14
12
|
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
15
13
|
*/
|
|
16
14
|
export interface RunOperationOutputs {
|
|
17
|
-
/** The result of the operation. */
|
|
15
|
+
/** @description The result of the operation. */
|
|
18
16
|
result: any;
|
|
19
17
|
}
|
|
20
|
-
/** Activity which runs a named operation in the host application. */
|
|
21
18
|
export declare class RunOperation implements IActivityHandler {
|
|
22
19
|
static readonly action = "gcx:wf:app::RunOperation";
|
|
23
20
|
static readonly suite = "gcx:wf:builtin";
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
2
|
export interface AddAttachmentInputs {
|
|
3
|
-
/** The URL of the ArcGIS feature layer or table. Either url or layer is required. */
|
|
4
3
|
url?: string;
|
|
5
|
-
/** The ArcGIS feature layer or table. Either url or layer is required. */
|
|
6
4
|
layer?: __esri.Layer;
|
|
7
5
|
objectId: number;
|
|
8
6
|
attachment: File;
|
|
9
|
-
/** Optional name for the attachment. When absent, the name of the file is used. */
|
|
10
7
|
attachmentName?: string;
|
|
11
|
-
/** 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+. */
|
|
12
8
|
gdbVersion?: string;
|
|
13
|
-
/** The time span in milliseconds to wait for the request's results. */
|
|
14
9
|
timeout?: number;
|
|
15
10
|
}
|
|
16
11
|
export interface AddAttachmentOutputs {
|
|
12
|
+
/** @description The result object indicating if the attachment was successfully added. */
|
|
17
13
|
result: any;
|
|
18
14
|
}
|
|
19
|
-
/** Add an attachment to the feature specified by the object id. */
|
|
20
15
|
export declare class AddAttachment implements IActivityHandler {
|
|
21
16
|
static readonly action = "gcx:wf:arcgis::AddAttachment";
|
|
22
17
|
static readonly suite = "gcx:wf:builtin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import esriRequest from"@arcgis/core/request";import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{addToPath}from"./tools.js";class AddAttachment{async execute(t,e){var a=validation.urlOrLayer(t).trim(),i=validation.number("objectId",t.objectId,validation.never),n=validation.exists("attachmentIds",t.attachment,validation.never),r=validation.string("gdbVersion",t.gdbVersion),o=validation.number("timeout",t.timeout,void 0),i=addToPath(a,`${i}/addAttachment`);let d=validation.string("attachmentName",t.attachmentName,"").trim();""===d&&(d=void 0);const s=new FormData;s.append("attachment",n,d),r&&s.append("gdbVersion",r),s.append("f","json");o={body:s,cacheBust:!1,method:"post",responseType:"json",signal:e.cancellationToken.signal,timeout:o},o=(await esriRequest(i,o)).data?.addAttachmentResult;if(!o)throw new GenericActivityError('Error running the "Add Attachment" activity. The response did not include the required "addAttachmentResult" property.');return{result:o}}}AddAttachment.action="gcx:wf:arcgis::AddAttachment",AddAttachment.suite="gcx:wf:builtin";export{AddAttachment};
|
|
1
|
+
import esriRequest from"@arcgis/core/request";import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{addToPath}from"./tools.js";class AddAttachment{async execute(t,e){var a=validation.urlOrLayer(t).trim(),i=validation.number("objectId",t.objectId,validation.never),n=validation.exists("attachmentIds",t.attachment,validation.never),r=validation.string("gdbVersion",t.gdbVersion),o=validation.number("timeout",t.timeout,void 0),i=addToPath(a,`${i}/addAttachment`);let d=validation.string("attachmentName",t.attachmentName,"").trim();""===d&&(d=void 0);const s=new FormData;s.append("attachment",n,d),r&&s.append("gdbVersion",r),s.append("f","json");o={body:s,cacheBust:!1,method:"post",responseType:"json",signal:e.cancellationToken.signal,timeout:o},o=(await esriRequest(i,o)).data?.addAttachmentResult;if(!o)throw new GenericActivityError(void 0,'Error running the "Add Attachment" activity. The response did not include the required "addAttachmentResult" property.');return{result:o}}}AddAttachment.action="gcx:wf:arcgis::AddAttachment",AddAttachment.suite="gcx:wf:builtin";export{AddAttachment};
|
|
@@ -2,16 +2,13 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines the inputs for the Add Feature Layer activity */
|
|
4
4
|
export interface AddFeatureLayerInputs {
|
|
5
|
-
/** The features to be included in the new layer. */
|
|
6
5
|
features: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
|
|
7
|
-
/** The display name of the new layer. */
|
|
8
6
|
displayName: string;
|
|
9
|
-
/** The fields to be included in the new layer. */
|
|
10
7
|
fields: __esri.Field[];
|
|
11
8
|
}
|
|
12
9
|
/** Defines the outputs for the Add Feature Layer Activity */
|
|
13
10
|
export interface AddFeatureLayerOutputs {
|
|
14
|
-
/** The new feature layer that was created. */
|
|
11
|
+
/** @description The new feature layer that was created. */
|
|
15
12
|
layer?: __esri.FeatureLayer;
|
|
16
13
|
}
|
|
17
14
|
export declare class AddFeatureLayer implements IActivityHandler {
|
|
@@ -2,20 +2,16 @@ import type { ApplyEditResult, ApplyEditsResponse } from "./libs/arcGisRestApi";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the AddFeatures activity. */
|
|
4
4
|
export interface AddFeaturesInputs {
|
|
5
|
-
/** The URL of the ArcGIS feature layer or table to edit. Either url or layer input is required. */
|
|
6
5
|
url?: string;
|
|
7
|
-
/** The ArcGIS feature layer or table to edit. Either url or layer input is required. */
|
|
8
6
|
layer?: __esri.Layer;
|
|
9
|
-
/** The features to add to the layer or table. When adding to a layer, the features' geometries must have the same spatial reference as the layer. */
|
|
10
7
|
features: __esri.Graphic | __esri.Graphic[];
|
|
11
|
-
/** 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+. */
|
|
12
8
|
gdbVersion?: string;
|
|
13
|
-
/** The time span in milliseconds to wait for the request's results. */
|
|
14
9
|
timeout?: number;
|
|
15
10
|
}
|
|
16
11
|
export interface AddFeaturesOutputs {
|
|
17
|
-
/**
|
|
12
|
+
/** @description The results that were returned. */
|
|
18
13
|
results: ApplyEditResult[];
|
|
14
|
+
/** @description Whether the add operation completed successfully. */
|
|
19
15
|
success: boolean;
|
|
20
16
|
}
|
|
21
17
|
export declare class AddFeatures implements IActivityHandler {
|
|
@@ -5,11 +5,8 @@ import type { IActivityHandler, IActivityContext } from "../../IActivityHandler"
|
|
|
5
5
|
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
6
6
|
*/
|
|
7
7
|
export interface AddGraphicsInputs {
|
|
8
|
-
/** The ID of the graphics layer to add the features to. */
|
|
9
8
|
layerId?: string | number;
|
|
10
|
-
/** The set of features to add to the layer. */
|
|
11
9
|
features: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
|
|
12
|
-
/** Whether or not all features should be removed from the layer. Defauts to false. */
|
|
13
10
|
removeAllFeatures?: boolean;
|
|
14
11
|
}
|
|
15
12
|
/**
|
|
@@ -17,7 +14,7 @@ export interface AddGraphicsInputs {
|
|
|
17
14
|
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
18
15
|
*/
|
|
19
16
|
export interface AddGraphicsOutputs {
|
|
20
|
-
/**
|
|
17
|
+
/** @description The features that were added. */
|
|
21
18
|
features: __esri.Graphic[];
|
|
22
19
|
}
|
|
23
20
|
export declare class AddGraphics implements IActivityHandler {
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Arcade script. */
|
|
3
3
|
export interface ArcadeScriptInputs {
|
|
4
|
-
/** The Arcade script to execute. */
|
|
5
4
|
script: string;
|
|
6
|
-
/** The parameters to pass to the Arcade script. */
|
|
7
5
|
parameters?: Record<string, any>;
|
|
8
|
-
/** The profile describing the types of the parameters. */
|
|
9
6
|
profile?: __esri.Profile | "feature-reduction-popup" | "feature-reduction-popup-element" | "feature-z" | "field-calculation" | "form-calculation" | "form-constraint" | "labeling" | "popup" | "popup-element" | "visualization" | string;
|
|
10
|
-
/** The spatial reference to use when executing the Arcade script. */
|
|
11
7
|
spatialReference?: __esri.SpatialReference;
|
|
12
8
|
}
|
|
13
9
|
/** Defines outputs for the Arcade script. */
|
|
14
10
|
export interface ArcadeScriptOutputs {
|
|
11
|
+
/** @description The result of the Arcade script. */
|
|
15
12
|
result: any;
|
|
16
13
|
}
|
|
17
14
|
export declare class ArcadeScript implements IActivityHandler {
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Area activity. This activity relies on the geometry engine. */
|
|
3
3
|
export interface AreaEngineTaskInputs {
|
|
4
|
-
/** The polygon whose area is being calculated. */
|
|
5
4
|
geometry: __esri.Polygon;
|
|
6
|
-
/** Determines whether the area to be calculated is geodesic. If not, the planar area is returned. Defaults to false. Note: geodesic areas only work with WGS84 (wkid: 4326) and Web Mercator spatial references. */
|
|
7
5
|
geodesic?: boolean;
|
|
8
|
-
/** Measurement unit of the return value. Defaults to the units of the input geometry. */
|
|
9
6
|
unit?: "acres" | "ares" | "hectares" | "square-feet" | "square-meters" | "square-yards" | "square-kilometers" | "square-miles" | string | number;
|
|
10
7
|
}
|
|
11
8
|
/** Defines outputs for the Area activity. */
|
|
12
9
|
export interface AreaEngineTaskOutputs {
|
|
10
|
+
/** @description The result area. */
|
|
13
11
|
area: number;
|
|
14
12
|
}
|
|
15
13
|
export declare class AreaEngineTask implements IActivityHandler {
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs to the Buffer activity. This activity makes use of the geometry engine. */
|
|
3
3
|
export interface BufferEngineTaskInputs {
|
|
4
|
-
/** The buffer input geometry. The geometry and distance parameters must be specified as either both arrays or both non-arrays. */
|
|
5
4
|
geometry: __esri.Geometry | __esri.Geometry[];
|
|
6
|
-
/** The specified distance(s) for buffering. */
|
|
7
5
|
distance: number | number[];
|
|
8
|
-
/** Measurement unit of the distances. Defaults to the units of the input geometries. */
|
|
9
6
|
unit?: "meters" | "feet" | "kilometers" | "miles" | "nautical-miles" | "yards" | string;
|
|
10
|
-
/** Determines whether to use a geodesic buffer or a non-geodesic buffer */
|
|
11
7
|
geodesic?: boolean;
|
|
12
|
-
/** Determines whether the output geometries should be unioned into a single polygon. */
|
|
13
8
|
union?: boolean;
|
|
14
9
|
}
|
|
15
10
|
/** Defines outputs for the Buffer activity. */
|
|
16
11
|
export interface BufferEngineTaskOutputs {
|
|
17
|
-
/**
|
|
12
|
+
/** @description The first buffer or result (or the union result). */
|
|
18
13
|
geometry?: __esri.Polygon;
|
|
19
|
-
/**
|
|
14
|
+
/** @description The buffer results. */
|
|
20
15
|
results?: __esri.Polygon[];
|
|
21
16
|
}
|
|
22
17
|
export declare class BufferEngineTask implements IActivityHandler {
|
|
@@ -2,28 +2,20 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the Buffer activity. This activity relies on an ArcGIS Geometry Service REST endpoint. */
|
|
4
4
|
export interface BufferServiceTaskInputs {
|
|
5
|
-
/** The URL of the ArcGIS geometry service. */
|
|
6
5
|
url: string;
|
|
7
|
-
/** The geometries to buffer. */
|
|
8
6
|
geometry: __esri.Geometry | __esri.Geometry[];
|
|
9
|
-
/** The distances the input geometries are buffered. */
|
|
10
7
|
distance: number | number[];
|
|
11
|
-
/** The units for calculating each buffer distance. If units are not specified, they are inferred from bufferSpatialReference. If bufferSpatialReference is not specified, units are derived from the features being buffered. */
|
|
12
8
|
unit?: "meters" | "feet" | "kilometers" | "miles" | "nautical-miles" | "yards" | string;
|
|
13
|
-
/** The spatial reference in which the geometries are buffered. If bufferSpatialReference is not specified, the geometries are buffered in the spatial reference specified by outSpatialReference. If outSpatialReference is also not specified, they are buffered in the spatial reference of the features. */
|
|
14
9
|
bufferSpatialReference?: number | string | __esri.SpatialReference;
|
|
15
|
-
/** The spatial reference for the returned geometries. If outSpatialReference is not specified, the geometries are output in the spatial reference specified by bufferSpatialReference. If bufferSpatialReference is also not specified, they are in the spatial reference of the features. */
|
|
16
10
|
outSpatialReference?: number | string | __esri.SpatialReference;
|
|
17
|
-
/** If the input geometries are in geographic coordinate system, set geodesic to true in order to generate a buffer polygon using a geodesic distance. Requires ArcGIS Server 10.1+ geometry service. */
|
|
18
11
|
geodesic?: boolean;
|
|
19
|
-
/** If true, all geometries buffered at a given distance are unioned into a single (possibly multipart) polygon, and the unioned geometry is placed in the output array. Defaults to false. */
|
|
20
12
|
union?: boolean;
|
|
21
13
|
}
|
|
22
14
|
/** Defines outputs for the Buffer activity. */
|
|
23
15
|
export interface BufferServiceTaskOutputs {
|
|
24
|
-
/**
|
|
16
|
+
/** @description The first buffer result. */
|
|
25
17
|
geometry?: __esri.Polygon;
|
|
26
|
-
/**
|
|
18
|
+
/** @description The buffer results. */
|
|
27
19
|
results?: __esri.Polygon[];
|
|
28
20
|
}
|
|
29
21
|
export declare class BufferServiceTask implements IActivityHandler {
|
|
@@ -5,15 +5,15 @@ export interface CastGeometryInputs {
|
|
|
5
5
|
}
|
|
6
6
|
/** Defines outputs for the Cast Geometry activity. */
|
|
7
7
|
export interface CastGeometryOutputs {
|
|
8
|
-
/** The geometry as a point. */
|
|
8
|
+
/** @description The geometry as a point. */
|
|
9
9
|
point?: __esri.Point;
|
|
10
|
-
/** The geometry as a polygon. */
|
|
10
|
+
/** @description The geometry as a polygon. */
|
|
11
11
|
polygon?: __esri.Polygon;
|
|
12
|
-
/** The geometry as a polyline. */
|
|
12
|
+
/** @description The geometry as a polyline. */
|
|
13
13
|
polyline?: __esri.Polyline;
|
|
14
|
-
/** The geometry as
|
|
14
|
+
/** @description The geometry as an extent. */
|
|
15
15
|
extent?: __esri.Extent;
|
|
16
|
-
/** The geometry as a multipoint. */
|
|
16
|
+
/** @description The geometry as a multipoint. */
|
|
17
17
|
multipoint?: __esri.Multipoint;
|
|
18
18
|
}
|
|
19
19
|
export declare class CastGeometry implements IActivityHandler {
|
|
@@ -2,7 +2,6 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext, EmptyOutputs } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the ClearGraphics activity. */
|
|
4
4
|
export interface ClearGraphicsInputs {
|
|
5
|
-
/** The ID of the graphics layer to clear. */
|
|
6
5
|
layerId?: string | number;
|
|
7
6
|
}
|
|
8
7
|
export declare class ClearGraphics implements IActivityHandler {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Clip activity. This activity makes use of the geometry engine. */
|
|
3
3
|
export interface ClipEngineTaskInputs {
|
|
4
|
-
/** The geometry to be clipped. */
|
|
5
4
|
geometry: __esri.Geometry;
|
|
6
|
-
/** The envelope used to clip. */
|
|
7
5
|
extent: __esri.Extent;
|
|
8
6
|
}
|
|
9
7
|
/** Defines outputs for the Clip activity. */
|
|
10
8
|
export interface ClipEngineTaskOutputs {
|
|
11
|
-
/** The clipped geometry. */
|
|
9
|
+
/** @description The clipped geometry. */
|
|
12
10
|
geometry: __esri.Geometry;
|
|
13
11
|
}
|
|
14
12
|
export declare class ClipEngineTask implements IActivityHandler {
|
|
@@ -2,85 +2,59 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the basic Closest Facility Task activity. This task is related to the Route and Service Area tasks. */
|
|
4
4
|
export interface ClosestFacilityTaskInputs {
|
|
5
|
-
/** The URL to the ArcGIS network analysis service. */
|
|
6
5
|
url: string;
|
|
7
|
-
/** The set of facilities loaded as network locations during analysis. These can be specified as either a DataLayer or a FeatureSet. Either the URL or the features should be specified, but not both. */
|
|
8
6
|
facilities: __esri.DataLayer | __esri.FeatureSet | __esri.NetworkFeatureSet | __esri.NetworkUrl;
|
|
9
|
-
/** The set of incidents loaded as network locations during analysis. Can be an instance of a DataLayer or FeatureSet. Either a URL or features should be supplied, but not both. */
|
|
10
7
|
incidents: __esri.DataLayer | __esri.FeatureSet | __esri.NetworkFeatureSet | __esri.NetworkUrl;
|
|
11
|
-
/** The list of network attribute names to be accumulated with the analysis; i.e., which attributes should be returned as part of the response. The defaulted is as defined in the specific routing network layer. See: http://resources.arcgis.com/en/help/main/10.2/index.html#//00470000000m000000 */
|
|
12
8
|
accumulateAttributes?: string[];
|
|
13
|
-
/** An array of parameter values. If present, an attribute name, parameter name, and value must be specified. */
|
|
14
9
|
attributeParameterValues?: __esri.AttributeParameterValue[];
|
|
15
|
-
/** The cutoff value used to determine when to stop traversing. */
|
|
16
10
|
defaultCutoff?: number;
|
|
17
|
-
/** The number of facilities to find. */
|
|
18
11
|
defaultTargetFacilityCount?: number;
|
|
19
|
-
/** The language used when generating driving directions. This parameter applies only when returnDirections parameter is set to true. If an unsupported language code is specified, the service returns the directions using the default language, English. */
|
|
20
12
|
directionsLanguage?: string;
|
|
21
|
-
/** The length unit to use when computing directions. The default is as defined in the specific routing network layer. Known values: centimeters | decimal-degrees | decimeters | feet | inches | kilometers | meters | miles | millimeters | nautical-miles | points | yards. */
|
|
22
13
|
directionsLengthUnits?: string;
|
|
23
|
-
/** Defines the amount of direction information returned. Default value: standard. Known values: complete | complete-no-events | instructions-only | standard | summary-only. */
|
|
24
14
|
directionsOutputType?: string;
|
|
25
|
-
/** The style to be used when returning directions. The default will be as defined in the network layer. View the REST layer description for your network service to see a list of supported styles. */
|
|
26
15
|
directionsStyleName?: "desktop" | "navigation" | "campus" | string;
|
|
27
|
-
/** The name of network attribute to use for the drive time when computing directions. The default is as defined in the specific routing network layer. */
|
|
28
16
|
directionsTimeAttribute?: string;
|
|
29
|
-
/** If true, avoids network elements restricted by barriers or restrictions specified in restrictionAttributes. Default value: true. */
|
|
30
17
|
doNotLocateOnRestrictedElements?: boolean;
|
|
31
|
-
/** The network attribute name to be used as the impedance attribute in the analysis. The default is as defined in the routing network layer. You can specify any attribute names listed in the Service Directory under Network Dataset -> Network Attributes as "Usage Type: esriNAUTCost". You can also specify a value of "none" to indicate that no network attributes should be used for impedance. For example, set impedanceAttribute to "Time" for the quickest route, or to "Length" for the shortest drive, assuming the service has those two esriNAUTCost attributes. */
|
|
32
18
|
impedanceAttribute?: string;
|
|
33
19
|
impedenceAttribute?: string;
|
|
34
|
-
/** The precision of the output geometry after generalization. If 0, no generalization of output geometry is performed. If present and positive, it represents the MaximumAllowableOffset parameter and generalization is performed according to IPolycurve.Generalize. */
|
|
35
20
|
outputGeometryPrecision?: number;
|
|
36
|
-
/** The units of the output geometry precision. Known Values: centimeters | decimal-degrees | decimeters | feet | inches | kilometers | meters | miles | millimeters | nautical-miles | points | yards. */
|
|
37
21
|
outputGeometryPrecisionUnits?: string;
|
|
38
|
-
/** The type of output lines to be generated in the result. Default Value: true-shape. Known Values: none | straight | true-shape | true-shape-with-measure. */
|
|
39
22
|
outputLines?: string;
|
|
40
|
-
/** The spatial reference (or well-known ID of same) for the geometries returned with the analysis results. If not specified, the geometries are returned in the spatial reference of the map. */
|
|
41
23
|
outSpatialReference?: number | string | __esri.SpatialReference;
|
|
42
|
-
/** The set of point barriers loaded as network locations during analysis. Can be an instance of a DataLayer or FeatureSet. Either a URL or features should be supplied, but not both. */
|
|
43
24
|
pointBarriers?: __esri.DataLayer | __esri.FeatureSet;
|
|
44
|
-
/** The set of polygon barriers loaded as network locations during analysis. At ArcGIS Server 10.1, an optional url property was added. Use this property to specify a REST query request to a Feature, Map or GP Service that returns a JSON feature set. The url property can be specified using DataFile. Note that either the features or url property should be specified. */
|
|
45
25
|
polygonBarriers?: __esri.DataLayer | __esri.FeatureSet;
|
|
46
|
-
/** The set of polyline barriers loaded as network locations during analysis. At ArcGIS Server 10.1, an optional url property was added. Use this property to specify a REST query request to a Feature, Map or GP Service that returns a JSON feature set. The url property can be specified using DataFile. Note that either the features or url property should be specified. */
|
|
47
26
|
polylineBarriers?: __esri.DataLayer | __esri.FeatureSet;
|
|
48
|
-
/** The list of network attribute names to be used as restrictions with the analysis. The default is as defined in the specific routing network layer used in your ClosestFacilityTask. Possible values are listed in the Service Directory under Network Dataset -> Network Attributes. You can also specify a value of none to indicate that no network attributes should be used as restrictions. If you specify an empty array, it will default to the default of the service. */
|
|
49
27
|
restrictionAttributes?: string[];
|
|
50
|
-
/** Specifies how U-Turns should be handled. The default is as defined in the specific routing network layer. Known Values: allow-backtrack | at-dead-ends-only | no-backtrack | at-dead-ends-and-intersections. */
|
|
51
28
|
restrictUTurns?: string;
|
|
52
|
-
/** If true, barriers are returned in the directions property of each RouteResult. Default Value: false. */
|
|
53
29
|
returnDirections?: boolean;
|
|
54
|
-
/** If true, facilities will be returned with the analysis results. Default Value: false */
|
|
55
30
|
returnFacilities?: boolean;
|
|
56
|
-
/** If true, incidents will be returned with the analysis results. Default value: false. */
|
|
57
31
|
returnIncidents?: boolean;
|
|
58
|
-
/** If true, point barriers will be returned in the barriers property of the ClosestFacilitySolveResult. Default value: false. */
|
|
59
32
|
returnPointBarriers?: boolean;
|
|
60
|
-
/** If true, polygon barriers are returned in the barriers property of the ClosestFacilitySolveResult. Default value: false. */
|
|
61
33
|
returnPolygonBarriers?: boolean;
|
|
62
|
-
/** If true, polyline barriers are returned in the barriers property of the ClosestFacilitySolveResult. Default value: false. */
|
|
63
34
|
returnPolylineBarriers?: boolean;
|
|
64
|
-
/** If true, routes are generated and returned in the route property of each ClosestFacilitySolveResult. Default Value: true */
|
|
65
35
|
returnRoutes?: boolean;
|
|
66
|
-
/** The arrival or departure date and time. For example, if the travelDirection is set to TO_FACILITY and timeOfDayUsage is set to "end" and timeOfDay is set to 8:00 a.m., the returned route(s) will be setup to arrive at the facility at 8:00 a.m. local time. Requires ArcGIS Server service version 10.1 or greater. */
|
|
67
36
|
timeOfDay?: Date;
|
|
68
|
-
/** Defines the way the timeOfDay value is used. The default value is defined in the network layer. Requires ArcGIS Server service version 10.1 or greater. Known values: start | end. */
|
|
69
37
|
timeOfDayUsage?: string;
|
|
70
|
-
/** Options for traveling to or from the facility. Default values are defined by the network layer. See NATravelDirection for a list of valid values. */
|
|
71
38
|
travelDirection?: string;
|
|
72
|
-
/** If true, the hierarchy attribute for the network should be used in analysis. The default is as defined in the specific routing network layer. */
|
|
73
39
|
useHierarchy?: boolean;
|
|
74
40
|
}
|
|
75
41
|
/** defines outputs for the Closest Facility Task activity. */
|
|
76
42
|
export interface ClosestFacilityTaskOutputs {
|
|
43
|
+
/** @description The directions. */
|
|
77
44
|
directions: __esri.DirectionsFeatureSet | __esri.DirectionsFeatureSet[];
|
|
45
|
+
/** @description The facilities points. */
|
|
78
46
|
facilities: __esri.FeatureSet;
|
|
47
|
+
/** @description The incidents points. */
|
|
79
48
|
incidents: __esri.FeatureSet;
|
|
49
|
+
/** @description The messages returned by the network analysis service. */
|
|
80
50
|
messages: __esri.NAMessage[];
|
|
51
|
+
/** @description The point barriers. */
|
|
81
52
|
pointBarriers: __esri.FeatureSet;
|
|
53
|
+
/** @description The polygon barriers. */
|
|
82
54
|
polygonBarriers: __esri.FeatureSet;
|
|
55
|
+
/** @description The polyline barriers. */
|
|
83
56
|
polylineBarriers: __esri.FeatureSet;
|
|
57
|
+
/** @description The routes. */
|
|
84
58
|
routes: __esri.FeatureSet;
|
|
85
59
|
}
|
|
86
60
|
export declare class ClosestFacilityTask implements IActivityHandler {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines imports for the CompareGeometries activity. This activity relies on the geometry engine. */
|
|
3
3
|
export interface CompareGeometriesInputs {
|
|
4
|
-
/** The first geometry being compared. */
|
|
5
4
|
geometry1: __esri.Geometry;
|
|
6
|
-
/** The second geometry being compared. */
|
|
7
5
|
geometry2: __esri.Geometry;
|
|
8
|
-
/** The comparison operation. */
|
|
9
6
|
operation: "contains" | "crosses" | "disjoint" | "equals" | "intersects" | "overlaps" | "touches" | "within" | string;
|
|
10
7
|
}
|
|
11
8
|
export interface CompareGeometriesOutputs {
|
|
9
|
+
/** @description The result of the geometry comparison. */
|
|
12
10
|
result?: boolean;
|
|
13
11
|
}
|
|
14
12
|
export declare class CompareGeometries implements IActivityHandler {
|
|
@@ -4,6 +4,7 @@ export interface ConvertValueToArcGisFieldTypeInputs {
|
|
|
4
4
|
type: "double" | "integer" | "long" | "oid" | "single" | "small-integer" | string;
|
|
5
5
|
}
|
|
6
6
|
export interface ConvertValueToArcGisFieldTypeOutputs {
|
|
7
|
+
/** @description The value converted to the specified type. */
|
|
7
8
|
result: object;
|
|
8
9
|
}
|
|
9
10
|
export declare class ConvertValueToArcGisFieldType implements IActivityHandler {
|
|
@@ -7,7 +7,7 @@ export interface CreateFeatureSetInputs {
|
|
|
7
7
|
}
|
|
8
8
|
/** Defines outputs for the Create Feature Set activity. */
|
|
9
9
|
export interface CreateFeatureSetOutputs {
|
|
10
|
-
/** The
|
|
10
|
+
/** @description The Feature Set result. */
|
|
11
11
|
featureSet: __esri.FeatureSet;
|
|
12
12
|
}
|
|
13
13
|
export declare class CreateFeatureSet implements IActivityHandler {
|
|
@@ -7,7 +7,7 @@ export interface CreateGraphicInputs {
|
|
|
7
7
|
}
|
|
8
8
|
/** Defines outputs for the Create Graphic activity. */
|
|
9
9
|
export interface CreateGraphicOutputs {
|
|
10
|
-
/** The Feature result. */
|
|
10
|
+
/** @description The Feature result. */
|
|
11
11
|
feature: __esri.Graphic;
|
|
12
12
|
}
|
|
13
13
|
export declare class CreateGraphic implements IActivityHandler {
|
|
@@ -7,7 +7,7 @@ export interface CreatePointInputs {
|
|
|
7
7
|
}
|
|
8
8
|
/** Defines outputs for the Create Point activity. */
|
|
9
9
|
export interface CreatePointOutputs {
|
|
10
|
-
/** The Point. */
|
|
10
|
+
/** @description The Point result. */
|
|
11
11
|
point: __esri.Point;
|
|
12
12
|
}
|
|
13
13
|
export declare class CreatePoint implements IActivityHandler {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Cut activity. This activity relies on the geometry engine. */
|
|
3
3
|
export interface CutEngineTaskInputs {
|
|
4
|
-
/** The geometry (a Polyline or Polygon) to be cut. */
|
|
5
4
|
geometry: __esri.Geometry;
|
|
6
|
-
/** The polyline which cuts the geometry. */
|
|
7
5
|
cutter: __esri.Polyline;
|
|
8
6
|
}
|
|
9
7
|
/** Defines outputs for the Cut activity. */
|
|
10
8
|
export interface CutEngineTaskOutputs {
|
|
11
|
-
/**
|
|
9
|
+
/** @description The result array of geometries created by cutting the input geometry with the cutter. */
|
|
12
10
|
geometry: __esri.Geometry[];
|
|
13
11
|
}
|
|
14
12
|
export declare class CutEngineTask implements IActivityHandler {
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
2
|
export interface DeleteAttachmentsInputs {
|
|
3
|
-
/** The URL of the ArcGIS feature layer or table. Either url or layer is required. */
|
|
4
3
|
url?: string;
|
|
5
|
-
/** The ArcGIS feature layer or table. Either url or layer is required. */
|
|
6
4
|
layer?: __esri.Layer;
|
|
7
5
|
objectId: number;
|
|
8
6
|
attachmentIds: number | number[];
|
|
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
7
|
gdbVersion?: string;
|
|
11
|
-
/** The time span in milliseconds to wait for the request's results. */
|
|
12
8
|
timeout?: number;
|
|
13
9
|
}
|
|
14
10
|
export interface DeleteAttachmentsOutputs {
|
|
11
|
+
/** @description The result objects, one for each attachment indicating if it was successfully removed. */
|
|
15
12
|
results: object[];
|
|
16
13
|
}
|
|
17
|
-
/** Delete attachments associated with the specified object id. */
|
|
18
14
|
export declare class DeleteAttachments implements IActivityHandler {
|
|
19
15
|
static readonly action = "gcx:wf:arcgis::DeleteAttachments";
|
|
20
16
|
static readonly suite = "gcx:wf:builtin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{addToPath,post}from"./tools.js";class DeleteAttachments{async execute(t,e){var a=validation.urlOrLayer(t).trim(),i=validation.number("objectId",t.objectId,validation.never),n=validation.array("attachmentIds",t.attachmentIds,validation.never).join(","),r=validation.string("gdbVersion",t.gdbVersion),t=validation.number("timeout",t.timeout,void 0),i=addToPath(a,`${i}/deleteAttachments`);const o={attachmentIds:n};r&&(o.gdbVersion=r);var e=(await post(i,o,t,e.cancellationToken.signal))["deleteAttachmentResults"];if(!e)throw new GenericActivityError('Error running the "Delete Attachments" activity. The response did not include the required "deleteAttachmentResults" property.');return{results:e}}}DeleteAttachments.action="gcx:wf:arcgis::DeleteAttachments",DeleteAttachments.suite="gcx:wf:builtin";export{DeleteAttachments};
|
|
1
|
+
import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{addToPath,post}from"./tools.js";class DeleteAttachments{async execute(t,e){var a=validation.urlOrLayer(t).trim(),i=validation.number("objectId",t.objectId,validation.never),n=validation.array("attachmentIds",t.attachmentIds,validation.never).join(","),r=validation.string("gdbVersion",t.gdbVersion),t=validation.number("timeout",t.timeout,void 0),i=addToPath(a,`${i}/deleteAttachments`);const o={attachmentIds:n};r&&(o.gdbVersion=r);var e=(await post(i,o,t,e.cancellationToken.signal))["deleteAttachmentResults"];if(!e)throw new GenericActivityError(void 0,'Error running the "Delete Attachments" activity. The response did not include the required "deleteAttachmentResults" property.');return{results:e}}}DeleteAttachments.action="gcx:wf:arcgis::DeleteAttachments",DeleteAttachments.suite="gcx:wf:builtin";export{DeleteAttachments};
|
|
@@ -2,23 +2,18 @@ import type { ApplyEditResult, ApplyEditsResponse } from "./libs/arcGisRestApi";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the DeleteFeatures activity. */
|
|
4
4
|
export interface DeleteFeaturesInputs {
|
|
5
|
-
/** The URL of the ArcGIS feature layer or table to edit. Either url or layer is required. */
|
|
6
5
|
url?: string;
|
|
7
|
-
/** The ArcGIS feature layer or table to edit. Either url or layer is required. */
|
|
8
6
|
layer?: __esri.Layer;
|
|
9
7
|
features?: number | number[] | __esri.Graphic | __esri.Graphic[] | string | string[];
|
|
10
|
-
/** Indicates if the features to be deleted should be identified by Global IDs instead of Object IDs. The default value is false. */
|
|
11
8
|
useGlobalIds?: boolean;
|
|
12
|
-
/** Indicates the field which contains the OBJECTID or GlobalID for all features. */
|
|
13
9
|
objectIdField?: string;
|
|
14
|
-
/** 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+. */
|
|
15
10
|
gdbVersion?: string;
|
|
16
|
-
/** The time span in milliseconds to wait for the request's results. */
|
|
17
11
|
timeout?: number;
|
|
18
12
|
}
|
|
19
13
|
export interface DeleteFeaturesOutputs {
|
|
20
|
-
/**
|
|
14
|
+
/** @description The results given after deletion. */
|
|
21
15
|
results: ApplyEditResult[];
|
|
16
|
+
/** @description Whether the delete operation completed successfully. */
|
|
22
17
|
success: boolean;
|
|
23
18
|
}
|
|
24
19
|
export declare class DeleteFeatures implements IActivityHandler {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{combineGlobalIds,getFieldName}from"./shared.js";import{addToPath,post}from"./tools.js";class DeleteFeatures{async execute(e,t){var
|
|
1
|
+
import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{combineGlobalIds,getFieldName}from"./shared.js";import{addToPath,post}from"./tools.js";class DeleteFeatures{async execute(e,t){var o=validation.urlOrLayer(e),o=addToPath(o,"applyEdits"),s=validation.boolean("useGlobalIds",e.useGlobalIds,!1),i=validation.string("objectIdField",e.objectIdField,s?"GlobalID":"OBJECTID"),a=validation.string("gdbVersion",e.gdbVersion),r=validation.number("timeout",e.timeout);const l=[],n=[];let d;for(const p of validation.array("features",e.features,validation.never))if("number"==typeof p)l.push(p);else if("string"==typeof p)s?n.push(p):(u=parseInt(p),isNaN(u)||l.push(u));else{var u=p.attributes;if("object"==typeof u){if(!d&&(d=getFieldName(i,u),!d))throw new GenericActivityError(void 0,`Error running the "Delete Features" activity. Feature does not have a "${i}" property.`);u=u[d];(s?n:l).push(u)}}a={deletes:s?combineGlobalIds(n):l.toString(),gdbVersion:a,useGlobalIds:s};const c=await post(o,a,r,t.cancellationToken.signal);this.onApplyEditsComplete(c);t=!!c.deleteResults?.every(e=>e.success);return{results:c.deleteResults,success:t}}onApplyEditsComplete(e){}}DeleteFeatures.action="gcx:wf:arcgis::DeleteFeatures",DeleteFeatures.suite="gcx:wf:builtin";export{DeleteFeatures};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Densify activity. This activity relies on the geometry engine. */
|
|
3
3
|
export interface DensifyEngineTaskInputs {
|
|
4
|
-
/** The geometry to be densified. */
|
|
5
4
|
geometry: __esri.Geometry;
|
|
6
|
-
/** The maximum segment length allowed. Must be a positive value. */
|
|
7
5
|
maxSegmentLength?: number;
|
|
8
|
-
/** Measurement unit for maxSegmentLength. Defaults to the units of the input geometry. Known values: meters | feet | kilometers | miles | nautical-miles | yards. */
|
|
9
6
|
unit?: string | number;
|
|
10
7
|
}
|
|
11
8
|
/** Defines outputs for the Densify activity. */
|
|
12
9
|
export interface DensifyEngineTaskOutputs {
|
|
13
|
-
/** The densified geometry. */
|
|
10
|
+
/** @description The densified geometry. */
|
|
14
11
|
geometry: __esri.Geometry;
|
|
15
12
|
}
|
|
16
13
|
export declare class DensifyEngineTask implements IActivityHandler {
|