@vertigis/workflow 5.45.1 → 5.46.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/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
|
@@ -2,16 +2,15 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the SetLayerDefinitionExpression activity. */
|
|
4
4
|
export interface SetLayerDefinitionExpressionInputs {
|
|
5
|
-
/** The ID of the layer whose definition is of interest. */
|
|
6
5
|
layerId: string | number;
|
|
7
|
-
/** The optional index of the sublayer whose definition is of interest. Sublayers are associated with MapImageLayers. */
|
|
8
6
|
sublayerId?: string | number;
|
|
9
|
-
/** The layer definition expression. */
|
|
10
7
|
expression: string;
|
|
11
8
|
}
|
|
12
9
|
/** Defines outputs for the SetLayerDefinitionExpression activity. */
|
|
13
10
|
export interface SetLayerDefinitionExpressionOutputs {
|
|
11
|
+
/** @description The previous layer definition expression. */
|
|
14
12
|
oldExpression?: string;
|
|
13
|
+
/** @description The new layer definition expression. */
|
|
15
14
|
newExpression?: string;
|
|
16
15
|
}
|
|
17
16
|
export declare class SetLayerDefinitionExpression implements IActivityHandler {
|
|
@@ -4,7 +4,6 @@ export interface SetLayerPopupInputs {
|
|
|
4
4
|
template: object;
|
|
5
5
|
layerId: string | number;
|
|
6
6
|
}
|
|
7
|
-
/** Sets a popup template on the given layer. The popup applies to all features of the layer. */
|
|
8
7
|
export declare class SetLayerPopup implements IActivityHandler {
|
|
9
8
|
static readonly action = "gcx:wf:arcgis::SetLayerPopup";
|
|
10
9
|
static readonly suite = "gcx:wf:builtin";
|
|
@@ -2,18 +2,15 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the SetLayerProperty activity. */
|
|
4
4
|
export interface SetLayerPropertyInputs {
|
|
5
|
-
/** The ID of the layer whose property is of interest. */
|
|
6
5
|
layerId: string | number;
|
|
7
|
-
/** The name of the property of interest. This name is case-sensitive. */
|
|
8
6
|
name: string;
|
|
9
|
-
/** The value for the property to set. */
|
|
10
7
|
value: any;
|
|
11
8
|
}
|
|
12
9
|
/** Defines outputs for the SetLayerProperty activity. */
|
|
13
10
|
export interface SetLayerPropertyOutputs {
|
|
14
|
-
/** The
|
|
11
|
+
/** @description The previous property value. */
|
|
15
12
|
oldValue: any;
|
|
16
|
-
/** The new value. */
|
|
13
|
+
/** @description The new property value. */
|
|
17
14
|
newValue: any;
|
|
18
15
|
}
|
|
19
16
|
export declare class SetLayerProperty implements IActivityHandler {
|
|
@@ -2,18 +2,15 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the SetLayerVisibility activity. */
|
|
4
4
|
export interface SetLayerVisibilityInputs {
|
|
5
|
-
/** The ID of the layer whose visibility is of interest. */
|
|
6
5
|
layerId: string | number;
|
|
7
|
-
/** The optional index of the sublayer whose visibility is of interest. Sublayers are associated with MapImageLayers. */
|
|
8
6
|
sublayerId?: string | number;
|
|
9
|
-
/** The visibility to set on the layer. */
|
|
10
7
|
visible?: boolean;
|
|
11
8
|
}
|
|
12
9
|
/** Defines outputs for the SetLayerVisibility activity. */
|
|
13
10
|
export interface SetLayerVisibilityOutputs {
|
|
14
|
-
/**
|
|
11
|
+
/** @description Whether the layer was originally visible. */
|
|
15
12
|
wasVisible?: boolean;
|
|
16
|
-
/**
|
|
13
|
+
/** @description Whether the layer was visible at the time of completing the activity. */
|
|
17
14
|
nowVisible?: boolean;
|
|
18
15
|
}
|
|
19
16
|
export declare class SetLayerVisibility implements IActivityHandler {
|
|
@@ -4,7 +4,6 @@ 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 SetMapInputs {
|
|
7
|
-
/** The unique id of the map to use from now on. */
|
|
8
7
|
mapId: string;
|
|
9
8
|
}
|
|
10
9
|
export declare class SetMap implements IActivityHandler {
|
|
@@ -2,22 +2,19 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the SetViewExtent activity. */
|
|
4
4
|
export interface SetViewExtentInputs {
|
|
5
|
-
/** The scale to set after the extent is set. */
|
|
6
5
|
scale?: number;
|
|
7
|
-
/** Indicates the geometry to go to. */
|
|
8
6
|
geometry?: __esri.Geometry | __esri.Geometry[];
|
|
9
|
-
/** Indicates the features to go to. */
|
|
10
7
|
features?: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
|
|
11
8
|
}
|
|
12
9
|
/** Defines outputs for the SetViewExtent activity. */
|
|
13
10
|
export interface SetViewExtentOutputs {
|
|
14
|
-
/** The previous extent. */
|
|
11
|
+
/** @description The previous extent. */
|
|
15
12
|
oldExtent?: __esri.Extent;
|
|
16
|
-
/** The previous scale. */
|
|
13
|
+
/** @description The previous scale. */
|
|
17
14
|
oldScale?: number;
|
|
18
|
-
/** The extent of the view
|
|
15
|
+
/** @description The extent of the view. */
|
|
19
16
|
newExtent?: __esri.Extent;
|
|
20
|
-
/** The new scale at the current extent. */
|
|
17
|
+
/** @description The new scale at the current extent. */
|
|
21
18
|
newScale?: number;
|
|
22
19
|
}
|
|
23
20
|
export declare class SetViewExtent implements IActivityHandler {
|
|
@@ -2,18 +2,15 @@ import { MapProvider } from "./MapProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the SetViewpoint activity. */
|
|
4
4
|
export interface SetViewpointInputs {
|
|
5
|
-
/** Indicates the geometry to go to. */
|
|
6
5
|
geometry?: __esri.Geometry | __esri.Geometry[];
|
|
7
|
-
/** Indicates the features to go to. */
|
|
8
6
|
features?: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
|
|
9
|
-
/** Indicates the viewpoint to go to. */
|
|
10
7
|
viewpoint?: __esri.Viewpoint;
|
|
11
8
|
}
|
|
12
9
|
/** Defines outputs for the SetViewpoint activity. */
|
|
13
10
|
export interface SetViewpointOutputs {
|
|
14
|
-
/** The previous viewpoint
|
|
11
|
+
/** @description The previous viewpoint. */
|
|
15
12
|
oldViewpoint?: __esri.Viewpoint;
|
|
16
|
-
/** The updated viewpoint
|
|
13
|
+
/** @description The updated viewpoint. */
|
|
17
14
|
newViewpoint?: __esri.Viewpoint;
|
|
18
15
|
}
|
|
19
16
|
export declare class SetViewpoint implements IActivityHandler {
|
|
@@ -3,7 +3,6 @@ import type { IActivityHandler, IActivityContext, EmptyOutputs } from "../../IAc
|
|
|
3
3
|
export interface ShowFeaturePopupInputs {
|
|
4
4
|
features: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
|
|
5
5
|
}
|
|
6
|
-
/** Shows a popup for the given features. */
|
|
7
6
|
export declare class ShowFeaturePopup implements IActivityHandler {
|
|
8
7
|
static readonly action = "gcx:wf:arcgis::ShowFeaturePopup";
|
|
9
8
|
static readonly suite = "gcx:wf:builtin";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Simplify activity. This activity relies on the geometry engine. */
|
|
3
3
|
export interface SimplifyEngineTaskInputs {
|
|
4
|
-
/** The geometry to be simplified. */
|
|
5
4
|
geometry: __esri.Geometry;
|
|
6
5
|
}
|
|
7
6
|
/** Defines outputs for the Simplify activity. */
|
|
8
7
|
export interface SimplifyEngineTaskOutputs {
|
|
8
|
+
/** @description The simplified geometry. */
|
|
9
9
|
geometry: __esri.Geometry;
|
|
10
10
|
}
|
|
11
11
|
export declare class SimplifyEngineTask implements IActivityHandler {
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Sort Feature Set activity. */
|
|
3
3
|
export interface SortFeatureSetInputs {
|
|
4
|
-
/** The feature set to sort. */
|
|
5
4
|
features: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
|
|
6
|
-
/** The case-sensitive name of the attribute to sort on. */
|
|
7
5
|
sortAttribute: string;
|
|
8
|
-
/** Whether or not to sort in ascending order. If set to false, the feature set will be sorted in descending order. Defaults to true. */
|
|
9
6
|
ascending?: boolean;
|
|
10
7
|
}
|
|
11
8
|
/** Defines outputs for the Sort Feature Set activity. */
|
|
12
9
|
export interface SortFeatureSetOutputs {
|
|
13
|
-
/** The sorted features held within the feature set. */
|
|
10
|
+
/** @description The sorted features held within the feature set. */
|
|
14
11
|
features: __esri.Graphic[];
|
|
15
12
|
}
|
|
16
13
|
export declare class SortFeatureSet implements IActivityHandler {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Symbol From JSON activity. */
|
|
3
3
|
export interface SymbolFromJsonInputs {
|
|
4
|
-
/** The symbol JSON as a string or object. */
|
|
5
4
|
json: string | object;
|
|
6
5
|
}
|
|
7
6
|
/** Defines outputs for the Symbol From JSON activity. */
|
|
8
7
|
export interface SymbolFromJsonOutputs {
|
|
9
|
-
/** The symbol. */
|
|
8
|
+
/** @description The symbol result. */
|
|
10
9
|
symbol?: __esri.Symbol;
|
|
11
10
|
}
|
|
12
11
|
export declare class SymbolFromJson implements IActivityHandler {
|
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the ToGeoCoordinateString task. This task requires a geometry service. */
|
|
3
3
|
export interface ToGeoCoordinateStringServiceTaskInputs {
|
|
4
|
-
/** The URL of the ArcGIS geometry service. */
|
|
5
4
|
url: string;
|
|
6
|
-
/** The spatial reference (or WKID of the spatial reference) of the XY-coordinates to be converted. */
|
|
7
5
|
spatialReference: string | number | __esri.SpatialReference;
|
|
8
|
-
/** An array of XY-coordinates (in JSON format) to be converted. */
|
|
9
6
|
coordinates: number[][];
|
|
10
|
-
/** The conversion type of the input strings. The default value is mgrs. */
|
|
11
7
|
conversionType: "mgrs" | "usng" | "utm" | "geo-ref" | "gars" | "dms" | "ddm" | "dd" | string;
|
|
12
|
-
/** Conversion options for mgrs and utm conversion types. See http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r30000026w000000 for valid conversion modes and their descriptions. */
|
|
13
8
|
conversionMode?: string;
|
|
14
|
-
/** The number of digits to output for each of the numerical portions of the string. The default value depends on conversionType. */
|
|
15
9
|
numOfDigits?: number;
|
|
16
|
-
/** If true, then numeric portions of the string are rounded to the nearest whole magnitude as specified by numOfDigits. Otherwise, numeric portions of the string are truncated. The rounding parameter applies only to conversion types mgrs, usng, and geo-ref. Defaults to true. */
|
|
17
10
|
rounding?: boolean;
|
|
18
|
-
/** If true, then spaces are added between components of the string. The addSpaces parameter applies only to conversion types mgrs, usng, and utm. The default value for mgrs is false, while the default value for both usng and utm is true. */
|
|
19
11
|
addSpaces?: boolean;
|
|
20
12
|
}
|
|
21
13
|
/** Defines outputs for the ToGeoCoordinateString task. */
|
|
22
14
|
export interface ToGeoCoordinateStringServiceTaskOutputs {
|
|
23
|
-
/** The array of well-known geocoordinate strings. */
|
|
15
|
+
/** @description The array of well-known geocoordinate strings. */
|
|
24
16
|
strings: string[];
|
|
25
17
|
}
|
|
26
18
|
export declare class ToGeoCoordinateStringServiceTask implements IActivityHandler {
|
|
@@ -2,14 +2,12 @@ import type { IActivityHandler } from "../../IActivityHandler";
|
|
|
2
2
|
/** Defines inputs to the Union activity. This activity makes use of the geometry engine.
|
|
3
3
|
This activity constructs the set- theoretic union of the geometries in the input array.All inputs must be of the same type. */
|
|
4
4
|
export interface UnionEngineTaskInputs {
|
|
5
|
-
/** An array of geometries to be unioned. */
|
|
6
5
|
geometry1: __esri.Geometry | __esri.Geometry[];
|
|
7
|
-
/** An array of geometries to be unioned. */
|
|
8
6
|
geometry2: __esri.Geometry | __esri.Geometry[];
|
|
9
7
|
}
|
|
10
8
|
/** Defines outputs to the Union activity. */
|
|
11
9
|
export interface UnionEngineTaskOutputs {
|
|
12
|
-
/** The
|
|
10
|
+
/** @description The unioned geometry result. */
|
|
13
11
|
geometry: __esri.Geometry;
|
|
14
12
|
}
|
|
15
13
|
export declare class UnionEngineTask implements IActivityHandler {
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
2
|
/** Defines inputs for the Union. This activity relies on an ArcGIS Geometry Service REST endpoint. */
|
|
3
3
|
export interface UnionServiceTaskInputs {
|
|
4
|
-
/** The URL of the ArcGIS geometry service. */
|
|
5
4
|
url: string;
|
|
6
|
-
/** Indicates a single geometry or an array of geometries to union. */
|
|
7
5
|
geometry1: __esri.Geometry | __esri.Geometry[];
|
|
8
|
-
/** Indicates a single geometry or an array of geometries to union. */
|
|
9
6
|
geometry2: __esri.Geometry | __esri.Geometry[];
|
|
10
7
|
}
|
|
11
8
|
/** Defines the outputs for the Union activity. */
|
|
12
9
|
export interface UnionServiceTaskOutputs {
|
|
13
|
-
/** The results
|
|
10
|
+
/** @description The unioned results. */
|
|
14
11
|
geometry: __esri.Geometry;
|
|
15
12
|
}
|
|
16
13
|
export declare class UnionServiceTask implements IActivityHandler {
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
2
|
export interface UpdateAttachmentInputs {
|
|
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
|
attachmentId: number;
|
|
9
7
|
attachment: File;
|
|
10
|
-
/** Optional name for the attachment. When absent, the name of the file is used. */
|
|
11
8
|
attachmentName?: string;
|
|
12
|
-
/** 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+. */
|
|
13
9
|
gdbVersion?: string;
|
|
14
|
-
/** Optional parameter specifying whether the response will report the time attachments were updated. If returnEditMoment = true, the server will report the time in the response's editMoment key. The default value is false. Requires ArcGIS Server v.10.5+. */
|
|
15
10
|
returnEditMoment?: boolean;
|
|
16
|
-
/** The ID of the attachment that has already been uploaded to the server.This parameter only applies if the supportsAttachmentsByUploadId property of the layer or table is true. Requires ArcGIS Server v.10.4+. */
|
|
17
11
|
uploadId?: number;
|
|
18
|
-
/** The time span in milliseconds to wait for the request's results. */
|
|
19
12
|
timeout?: number;
|
|
20
13
|
}
|
|
21
14
|
export interface UpdateAttachmentOutputs {
|
|
15
|
+
/** @description The result object indicating if the attachment was successfully updated. */
|
|
22
16
|
result: any;
|
|
23
17
|
}
|
|
24
|
-
/** Update an attachment to the feature specified by the object id. */
|
|
25
18
|
export declare class UpdateAttachment implements IActivityHandler {
|
|
26
19
|
static readonly action = "gcx:wf:arcgis::UpdateAttachment";
|
|
27
20
|
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 UpdateAttachment{async execute(t,e){var a=validation.urlOrLayer(t).trim(),n=validation.number("objectId",t.objectId,validation.never);const i=validation.number("attachmentId",t.attachmentId,validation.never);var r=validation.exists("attachment",t.attachment,validation.never),o=validation.string("gdbVersion",t.gdbVersion),d=validation.boolean("returnEditMoment",t.returnEditMoment,!1),m=validation.number("uploadId",t.uploadId),c=validation.number("timeout",t.timeout),n=addToPath(a,`${n}/updateAttachment`);let s=validation.string("attachmentName",t.attachmentName,"").trim();""===s&&(s=void 0);const l=new FormData;l.append("f","json"),l.append("attachmentId",i.toString()),l.append("attachment",r,s),o&&l.append("gdbVersion",o),l.append("returnEditMoment",d?"true":"false"),null!=m&&l.append("uploadId",m?"true":"false");c={body:l,cacheBust:!1,method:"post",responseType:"json",signal:e.cancellationToken.signal,timeout:c},c=(await esriRequest(n,c)).data.updateAttachmentResult;if(!c)throw new GenericActivityError('Error running the "Update Attachment" activity. The response did not include the required "updateAttachmentResult" property.');return{result:c}}}UpdateAttachment.action="gcx:wf:arcgis::UpdateAttachment",UpdateAttachment.suite="gcx:wf:builtin";export{UpdateAttachment};
|
|
1
|
+
import esriRequest from"@arcgis/core/request";import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{addToPath}from"./tools.js";class UpdateAttachment{async execute(t,e){var a=validation.urlOrLayer(t).trim(),n=validation.number("objectId",t.objectId,validation.never);const i=validation.number("attachmentId",t.attachmentId,validation.never);var r=validation.exists("attachment",t.attachment,validation.never),o=validation.string("gdbVersion",t.gdbVersion),d=validation.boolean("returnEditMoment",t.returnEditMoment,!1),m=validation.number("uploadId",t.uploadId),c=validation.number("timeout",t.timeout),n=addToPath(a,`${n}/updateAttachment`);let s=validation.string("attachmentName",t.attachmentName,"").trim();""===s&&(s=void 0);const l=new FormData;l.append("f","json"),l.append("attachmentId",i.toString()),l.append("attachment",r,s),o&&l.append("gdbVersion",o),l.append("returnEditMoment",d?"true":"false"),null!=m&&l.append("uploadId",m?"true":"false");c={body:l,cacheBust:!1,method:"post",responseType:"json",signal:e.cancellationToken.signal,timeout:c},c=(await esriRequest(n,c)).data.updateAttachmentResult;if(!c)throw new GenericActivityError(void 0,'Error running the "Update Attachment" activity. The response did not include the required "updateAttachmentResult" property.');return{result:c}}}UpdateAttachment.action="gcx:wf:arcgis::UpdateAttachment",UpdateAttachment.suite="gcx:wf:builtin";export{UpdateAttachment};
|
|
@@ -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 UpdateFeatures activity. */
|
|
4
4
|
export interface UpdateFeaturesInputs {
|
|
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 update in 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 UpdateFeaturesOutputs {
|
|
17
|
-
/**
|
|
12
|
+
/** @description The results of the update operation. */
|
|
18
13
|
results: ApplyEditResult[];
|
|
14
|
+
/** @description Whether the update operation completed successfully. */
|
|
19
15
|
success: boolean;
|
|
20
16
|
}
|
|
21
17
|
export declare class UpdateFeatures implements IActivityHandler {
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
export declare const ENGINE_TASK_ASYNC_POLLING_INTERVAL_MS = 1500;
|
|
2
|
+
export declare const ENGINE_TASK_PARAM_WEB_MAP = "Web_Map_as_JSON";
|
|
3
|
+
export declare const ENGINE_TASK_PARAM_ADDITIONAL_SETTINGS = "Additional_Settings_as_JSON";
|
|
4
|
+
export declare const ENGINE_TASK_PARAM_ADDITIONAL_WEB_MAPS = "Additional_Web_Maps_as_JSON";
|
|
5
|
+
export declare const ENGINE_TASK_PARAM_FORMAT = "Format";
|
|
6
|
+
export declare const ENGINE_TASK_PARAM_LAYOUT_TEMPLATE = "Layout_Template";
|
|
7
|
+
export declare const ENGINE_VGS_LAYOUT_REF_PREFEX = "vglay_";
|
|
8
|
+
export declare const ENGINE_TASK_PARAM_RETURN_ADDITIONAL_LAYOUT_INFO = "Return_Additional_Info";
|
|
9
|
+
export interface CustomPictureElementProps {
|
|
10
|
+
/** Width and Height of the Element in Page Units. */
|
|
11
|
+
elementSize: number[];
|
|
12
|
+
/** Default Value of the Element. */
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Custom Picture Element.
|
|
17
|
+
* The key is the element name. The value is the default value of the Element.
|
|
18
|
+
*/
|
|
19
|
+
export type CustomPictureElement = Record<string, CustomPictureElementProps>;
|
|
20
|
+
/**
|
|
21
|
+
* Custom Text Element.
|
|
22
|
+
* The key is the element name. The value is the default value of the Element.
|
|
23
|
+
*/
|
|
24
|
+
export type CustomTextElement = Record<string, string>;
|
|
25
|
+
/** Map Frame Information. */
|
|
26
|
+
export interface WebMapFrameElement {
|
|
27
|
+
/** Width and Height of the Element in Page Units. */
|
|
28
|
+
elementSize: number[];
|
|
29
|
+
/** Name of the Map Frame. */
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
/** Further Layout Information. */
|
|
33
|
+
export interface LayoutOptions {
|
|
34
|
+
/** [non-ESRI Property] List of available Custom Picture Elements. See Print Documentation for more Information on Custom Picture Elements. */
|
|
35
|
+
customPictureElements?: CustomPictureElement[];
|
|
36
|
+
/** List of available Custom Text Elements. See Print Documentation for more Information on Custom Text Elements. */
|
|
37
|
+
customTextElements?: CustomTextElement[];
|
|
38
|
+
/** Whether a predefined Author Text is available. */
|
|
39
|
+
hasAuthorText: boolean;
|
|
40
|
+
/** Whether a predefined Copyright Text is available. */
|
|
41
|
+
hasCopyrightText: boolean;
|
|
42
|
+
/** Whether a Legend Element is available. */
|
|
43
|
+
hasLegend: boolean;
|
|
44
|
+
/** Whether a predefined Title Text is available. */
|
|
45
|
+
hasTitleText: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Layout Template Information. If Task is requested with Parameter 'Return_Additional_Info' = true,
|
|
49
|
+
* the Layout Information might contain additional Properties, not available in the ESRI Standard.
|
|
50
|
+
* See Print Documentation for more Information.
|
|
51
|
+
*/
|
|
52
|
+
export interface LayoutInfo {
|
|
53
|
+
/** Further Layout Information. */
|
|
54
|
+
layoutOptions: LayoutOptions;
|
|
55
|
+
/** Name of the Layout. */
|
|
56
|
+
layoutTemplate: string;
|
|
57
|
+
/** Page Size [width, height] */
|
|
58
|
+
pageSize: number[];
|
|
59
|
+
/** Page Units. */
|
|
60
|
+
pageUnits: string;
|
|
61
|
+
/** */
|
|
62
|
+
portalItem: {
|
|
63
|
+
description: string;
|
|
64
|
+
/** Url of the item in portal. */
|
|
65
|
+
home: string;
|
|
66
|
+
/** The id of the portal item. */
|
|
67
|
+
id: string;
|
|
68
|
+
/** The name of the print layout. */
|
|
69
|
+
name: string;
|
|
70
|
+
/** The title of the print layout. */
|
|
71
|
+
title: string;
|
|
72
|
+
vgsId: string;
|
|
73
|
+
vgsLayoutPackageRefs: string[];
|
|
74
|
+
vgsPrintPageType: string;
|
|
75
|
+
vgsPrintRequestTypes: string[];
|
|
76
|
+
};
|
|
77
|
+
/** [non-ESRI Property] Further Map Frame Information. */
|
|
78
|
+
webMapFrameElements?: WebMapFrameElement[];
|
|
79
|
+
/** Size of the Map Frame. [width, height] If there are multiple Map Frames on the Layout, it returns Information only for the Map Frame that is named 'WEBMAP_MAP_FRAME'. */
|
|
80
|
+
webMapFrameSize?: number[];
|
|
81
|
+
}
|
|
82
|
+
export interface AdditionalMap {
|
|
83
|
+
name: string;
|
|
84
|
+
Map_As_JSON: ExportWebMap;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The name of a Map Frame element within a layout.
|
|
88
|
+
*/
|
|
89
|
+
export declare enum MapFrameElementName {
|
|
90
|
+
WEBMAP_MAP_FRAME = "WEBMAP_MAP_FRAME",
|
|
91
|
+
OVERVIEW = "OVERVIEW"
|
|
92
|
+
}
|
|
93
|
+
export interface ExportSpatialReference {
|
|
94
|
+
wkid: number;
|
|
95
|
+
latestWkid?: number;
|
|
96
|
+
}
|
|
97
|
+
export interface ExportExtent {
|
|
98
|
+
xmin: number;
|
|
99
|
+
ymin: number;
|
|
100
|
+
xmax: number;
|
|
101
|
+
ymax: number;
|
|
102
|
+
spatialReference: ExportSpatialReference;
|
|
103
|
+
}
|
|
104
|
+
export interface ExportMapOptions {
|
|
105
|
+
/**
|
|
106
|
+
* You can change the map's background color. When there are more than one maps in a layout,
|
|
107
|
+
* this is applied to the map associated to a map frame named `WEBMAP_MAP_FRAME`.
|
|
108
|
+
*/
|
|
109
|
+
background?: {
|
|
110
|
+
color: number[];
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* A required property that defines the extent of the map.
|
|
114
|
+
* The spatial reference of the extent object is optional;
|
|
115
|
+
* when it is not provided, it is assumed to be in the map's spatial reference.
|
|
116
|
+
* When the aspect ratio of the map extent is different than the size of the map
|
|
117
|
+
* on the output page or the `exportOptions:outputSize`, you might notice
|
|
118
|
+
* more features on the output map.
|
|
119
|
+
*/
|
|
120
|
+
extent: ExportExtent;
|
|
121
|
+
/**
|
|
122
|
+
* This represents the number of degrees by which the data frame will be rotated, measured counterclockwise from the north. To rotate clockwise, use a negative value.
|
|
123
|
+
*/
|
|
124
|
+
rotation?: number;
|
|
125
|
+
/**
|
|
126
|
+
* The map scale at which you want your map to be exported. This property is optional but recommended for getting optimal results. The scale property is especially useful when map services in this web map have scale-dependent layers or reference scales set. Since the map that you are viewing on the web app may be smaller than the size of the output map (for example, 8.5 x 11 in. or A4 size), the scale of the output map will be different and you could see differences in features and/or symbols in the web application as compared with the output map.
|
|
127
|
+
*
|
|
128
|
+
* When scale is used, it takes precedence over the extent, but the output map is drawn at the requested scale centered on the center of the extent.
|
|
129
|
+
*/
|
|
130
|
+
scale?: number;
|
|
131
|
+
/**
|
|
132
|
+
* The spatial reference of the map. The order of preference when spatialReference is missing is as follows:
|
|
133
|
+
*
|
|
134
|
+
* 1. `mapOptions.extent.spatialReference`
|
|
135
|
+
* 2. `baseMap.baseMapLayers.spatialReference`
|
|
136
|
+
* 3. Map template's spatial reference
|
|
137
|
+
*/
|
|
138
|
+
spatialReference?: ExportSpatialReference;
|
|
139
|
+
/**
|
|
140
|
+
* If there is a time-aware layer and you want it to be drawn at a specified time, specify this property.
|
|
141
|
+
* This order list can have one or two elements. Add two elements (startTime followed by endTime ) to represent a time extent,
|
|
142
|
+
* or provide only one time element to represent a time instant. Times are always in UTC.
|
|
143
|
+
*/
|
|
144
|
+
time?: any[];
|
|
145
|
+
}
|
|
146
|
+
export interface ExportOperationalLayer {
|
|
147
|
+
id?: string;
|
|
148
|
+
layerType: "ArcGISFeatureLayer" | "ArcGISImageServiceLayer" | "ArcGISMapServiceLayer" | "ArcGISTiledImageServiceLayer" | "ArcGISTiledMapServiceLayer" | "VectorTileLayer" | "WebTiledLayer" | "WFS" | "WMS" | "KML";
|
|
149
|
+
url?: string;
|
|
150
|
+
token?: string;
|
|
151
|
+
title?: string;
|
|
152
|
+
opacity?: number;
|
|
153
|
+
visibility?: boolean;
|
|
154
|
+
minScale?: number;
|
|
155
|
+
maxScale?: number;
|
|
156
|
+
}
|
|
157
|
+
export interface ExportBaseMapLayer {
|
|
158
|
+
url: string;
|
|
159
|
+
opacity?: number;
|
|
160
|
+
}
|
|
161
|
+
export interface ExportBaseMap {
|
|
162
|
+
title: string;
|
|
163
|
+
baseMapLayers: ExportBaseMapLayer[];
|
|
164
|
+
}
|
|
165
|
+
export interface ExportOptions {
|
|
166
|
+
dpi?: number;
|
|
167
|
+
outputSize?: number[];
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
171
|
+
*/
|
|
172
|
+
export interface ExportWebMap {
|
|
173
|
+
baseMap: ExportBaseMap;
|
|
174
|
+
/** The base layers. */
|
|
175
|
+
baseLayers?: any[];
|
|
176
|
+
/** */
|
|
177
|
+
exportOptions?: ExportOptions;
|
|
178
|
+
/** The ground layers. */
|
|
179
|
+
groundLayers?: any[];
|
|
180
|
+
/** Details about the layout of the map. */
|
|
181
|
+
layoutOptions?: {
|
|
182
|
+
authorText?: string;
|
|
183
|
+
copyrightText?: string;
|
|
184
|
+
customTextElements?: Record<string, string>[];
|
|
185
|
+
legendOptions?: {
|
|
186
|
+
operationalLayersAutoSet: false;
|
|
187
|
+
operationalLayers: Record<string, string>[];
|
|
188
|
+
};
|
|
189
|
+
titleText?: string;
|
|
190
|
+
};
|
|
191
|
+
/** VertiGIS Export Web Map - Map Options as JSON. Remaining Properties are defined by ESRI Export Web Map - Map Options Specification. */
|
|
192
|
+
mapOptions: ExportMapOptions;
|
|
193
|
+
/** The operational layers. */
|
|
194
|
+
operationalLayers: ExportOperationalLayer[];
|
|
195
|
+
reportOptions: any;
|
|
196
|
+
/** The spatial reference. */
|
|
197
|
+
spatialReference: __esri.SpatialReference;
|
|
198
|
+
}
|
|
199
|
+
/** The parameters that are required for including a map in a
|
|
200
|
+
* report or print job.
|
|
201
|
+
*/
|
|
202
|
+
export interface WebmapPrintParameters {
|
|
203
|
+
/** The extent in 4326 spatial reference. */
|
|
204
|
+
extent?: __esri.Extent;
|
|
205
|
+
/** The name of the map control in the report or print template. */
|
|
206
|
+
mapName: string;
|
|
207
|
+
/** The scale of the map in the report or print template. */
|
|
208
|
+
scale?: number;
|
|
209
|
+
/** The webmap. */
|
|
210
|
+
webmap: ExportWebMap;
|
|
211
|
+
}
|
|
212
|
+
export declare function getWebMapOverviewPrintScale(printScale: number, overviewMapFrame: WebMapFrameElement, mainMapFrame: WebMapFrameElement | undefined): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const ENGINE_OVERVIEW_MAP_ZOOM_OUT_FACTOR=4,ENGINE_TASK_ASYNC_POLLING_INTERVAL_MS=1500,ENGINE_TASK_PARAM_WEB_MAP="Web_Map_as_JSON",ENGINE_TASK_PARAM_ADDITIONAL_SETTINGS="Additional_Settings_as_JSON",ENGINE_TASK_PARAM_ADDITIONAL_WEB_MAPS="Additional_Web_Maps_as_JSON",ENGINE_TASK_PARAM_FORMAT="Format",ENGINE_TASK_PARAM_LAYOUT_TEMPLATE="Layout_Template",ENGINE_VGS_LAYOUT_REF_PREFEX="vglay_",ENGINE_TASK_PARAM_RETURN_ADDITIONAL_LAYOUT_INFO="Return_Additional_Info";var MapFrameElementName;function getWebMapOverviewPrintScale(_,A,E){if(A&&E){const N=A.elementSize[0],e=A.elementSize[1],T=E.elementSize[0],I=E.elementSize[1];E=Math.min(T/N,I/e);_=Math.round(_*E*ENGINE_OVERVIEW_MAP_ZOOM_OUT_FACTOR)}return _}!function(_){_.WEBMAP_MAP_FRAME="WEBMAP_MAP_FRAME",_.OVERVIEW="OVERVIEW"}(MapFrameElementName=MapFrameElementName||{});export{ENGINE_TASK_ASYNC_POLLING_INTERVAL_MS,ENGINE_TASK_PARAM_WEB_MAP,ENGINE_TASK_PARAM_ADDITIONAL_SETTINGS,ENGINE_TASK_PARAM_ADDITIONAL_WEB_MAPS,ENGINE_TASK_PARAM_FORMAT,ENGINE_TASK_PARAM_LAYOUT_TEMPLATE,ENGINE_VGS_LAYOUT_REF_PREFEX,ENGINE_TASK_PARAM_RETURN_ADDITIONAL_LAYOUT_INFO,MapFrameElementName,getWebMapOverviewPrintScale};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare enum LayoutField {
|
|
2
|
+
TITLE = "title_value",
|
|
3
|
+
TITLE_CAPTION = "title_caption",
|
|
4
|
+
CREATOR = "creator_value",
|
|
5
|
+
CREATOR_CAPTION = "creator_caption",
|
|
6
|
+
CREATED = "createdat_value",
|
|
7
|
+
CREATED_CAPTION = "createdat_caption",
|
|
8
|
+
ORGNAME = "orgname_value",
|
|
9
|
+
ORGNAME_CAPTION = "orgname_caption",
|
|
10
|
+
ORGADRESS = "orgadr_value",
|
|
11
|
+
ORGADRESS_CAPTION = "orgadr_caption",
|
|
12
|
+
DISCLAIMER = "disclaimer_value",
|
|
13
|
+
DISCLAIMER_CAPTION = "disclaimer_caption",
|
|
14
|
+
SCALE = "scale_value",
|
|
15
|
+
SCALE_CAPTION = "scale_caption",
|
|
16
|
+
SCALE_OV = "scale_value_ov",
|
|
17
|
+
SCALE_OV_CAPTION = "scale_caption_ov",
|
|
18
|
+
PHONE = "phone_value",
|
|
19
|
+
PHONE_CAPTION = "phone_caption",
|
|
20
|
+
MOBILEPHONE = "mobilephone_value",
|
|
21
|
+
MOBILEPHONE_CAPTION = "mobilephone_caption",
|
|
22
|
+
FAX = "fax_value",
|
|
23
|
+
FAX_CAPTION = "fax_caption",
|
|
24
|
+
EMAIL = "email_value",
|
|
25
|
+
EMAIL_CAPTION = "email_caption",
|
|
26
|
+
CRS = "syn_crs",
|
|
27
|
+
CRS_CAPTION = "syn_crs_caption",
|
|
28
|
+
PAGE_INFO = "syn_index",
|
|
29
|
+
PAGE_INFO_CAPTION = "syn_index_caption",
|
|
30
|
+
TIME_CAPTION = "time_caption",
|
|
31
|
+
TIME_CURRENT = "current_time_value",
|
|
32
|
+
TIME_CURRENT_CAPTION = "current_time_caption",
|
|
33
|
+
TIME_START_END = "start_end_time_value",
|
|
34
|
+
TIME_START_END_CAPTION = "start_end_time_caption",
|
|
35
|
+
TIME_START = "start_time_value",
|
|
36
|
+
TIME_START_CAPTION = "start_time_caption",
|
|
37
|
+
TIME_END = "end_time_value",
|
|
38
|
+
TIME_END_CAPTION = "end_time_caption",
|
|
39
|
+
RANGE_CAPTION = "range_caption",
|
|
40
|
+
COPYRIGHT = "syn_copyright",
|
|
41
|
+
COPYRIGHT_CAPTION = "syn_copyright_caption",
|
|
42
|
+
MAPVIEW = "syn_mapview",
|
|
43
|
+
MAPVIEW_CAPTION = "syn_mapview_caption",
|
|
44
|
+
USER_GIVEN_NAME = "user_given_name_value",
|
|
45
|
+
USER_GIVEN_NAME_CAPTION = "user_given_name_caption",
|
|
46
|
+
USER_LAST_NAME = "user_sur_name_value",
|
|
47
|
+
USER_LAST_NAME_CAPTION = "user_sur_name_caption",
|
|
48
|
+
USER_COMPANY = "user_company_value",
|
|
49
|
+
USER_COMPANY_CAPTION = "user_company_caption",
|
|
50
|
+
USER_DIVISION = "user_division_value",
|
|
51
|
+
USER_DIVISION_CAPTION = "user_division_caption",
|
|
52
|
+
USER_DEPARTMENT = "user_department_value",
|
|
53
|
+
USER_DEPARTMENT_CAPTION = "user_department_caption",
|
|
54
|
+
USER_COUNTRY = "user_country_value",
|
|
55
|
+
USER_COUNTRY_CAPTION = "user_country_caption",
|
|
56
|
+
USER_CITY = "user_city_value",
|
|
57
|
+
USER_CITY_CAPTION = "user_city_caption",
|
|
58
|
+
USER_STREET_ADDRESS = "user_street_address_value",
|
|
59
|
+
USER_STREET_ADDRESS_CAPTION = "user_street_address_caption",
|
|
60
|
+
USER_ZIPCODE = "user_zipcode_value",
|
|
61
|
+
USER_ZIPCODE_CAPTION = "user_zipcode_caption"
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* This defines the language keys for members of `LayoutField` that must be translated
|
|
65
|
+
* prior to being sent in a Gen2 print operation. Any `LayoutField` absent from this list
|
|
66
|
+
* is not a translated caption field.
|
|
67
|
+
*/
|
|
68
|
+
export declare const LayoutFieldTranslations: Record<string, string>;
|
|
69
|
+
/**
|
|
70
|
+
* Details about whether the layout field is an auto-value or not.
|
|
71
|
+
* An auto-value is a field whose value can be auto-generated by the client or printing engine.
|
|
72
|
+
*/
|
|
73
|
+
export interface AutoValueInfo {
|
|
74
|
+
/**
|
|
75
|
+
* True if a field is an auto-value, false otherwise.
|
|
76
|
+
*/
|
|
77
|
+
isAutoValue: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* True if the auot-value must be set by the client, false if the printing engine will populate it.
|
|
80
|
+
*/
|
|
81
|
+
isClientValue: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Gets information about whether the specified layout field is an auto-value or not.
|
|
85
|
+
* @param layoutFieldName The name of a layout field.
|
|
86
|
+
* @returns Details about whether the layout field is an auto-value or not.
|
|
87
|
+
*/
|
|
88
|
+
export declare function getAutoValueInfo(layoutFieldName: string): AutoValueInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var LayoutField;!function(e){e.TITLE="title_value",e.TITLE_CAPTION="title_caption",e.CREATOR="creator_value",e.CREATOR_CAPTION="creator_caption",e.CREATED="createdat_value",e.CREATED_CAPTION="createdat_caption",e.ORGNAME="orgname_value",e.ORGNAME_CAPTION="orgname_caption",e.ORGADRESS="orgadr_value",e.ORGADRESS_CAPTION="orgadr_caption",e.DISCLAIMER="disclaimer_value",e.DISCLAIMER_CAPTION="disclaimer_caption",e.SCALE="scale_value",e.SCALE_CAPTION="scale_caption",e.SCALE_OV="scale_value_ov",e.SCALE_OV_CAPTION="scale_caption_ov",e.PHONE="phone_value",e.PHONE_CAPTION="phone_caption",e.MOBILEPHONE="mobilephone_value",e.MOBILEPHONE_CAPTION="mobilephone_caption",e.FAX="fax_value",e.FAX_CAPTION="fax_caption",e.EMAIL="email_value",e.EMAIL_CAPTION="email_caption",e.CRS="syn_crs",e.CRS_CAPTION="syn_crs_caption",e.PAGE_INFO="syn_index",e.PAGE_INFO_CAPTION="syn_index_caption",e.TIME_CAPTION="time_caption",e.TIME_CURRENT="current_time_value",e.TIME_CURRENT_CAPTION="current_time_caption",e.TIME_START_END="start_end_time_value",e.TIME_START_END_CAPTION="start_end_time_caption",e.TIME_START="start_time_value",e.TIME_START_CAPTION="start_time_caption",e.TIME_END="end_time_value",e.TIME_END_CAPTION="end_time_caption",e.RANGE_CAPTION="range_caption",e.COPYRIGHT="syn_copyright",e.COPYRIGHT_CAPTION="syn_copyright_caption",e.MAPVIEW="syn_mapview",e.MAPVIEW_CAPTION="syn_mapview_caption",e.USER_GIVEN_NAME="user_given_name_value",e.USER_GIVEN_NAME_CAPTION="user_given_name_caption",e.USER_LAST_NAME="user_sur_name_value",e.USER_LAST_NAME_CAPTION="user_sur_name_caption",e.USER_COMPANY="user_company_value",e.USER_COMPANY_CAPTION="user_company_caption",e.USER_DIVISION="user_division_value",e.USER_DIVISION_CAPTION="user_division_caption",e.USER_DEPARTMENT="user_department_value",e.USER_DEPARTMENT_CAPTION="user_department_caption",e.USER_COUNTRY="user_country_value",e.USER_COUNTRY_CAPTION="user_country_caption",e.USER_CITY="user_city_value",e.USER_CITY_CAPTION="user_city_caption",e.USER_STREET_ADDRESS="user_street_address_value",e.USER_STREET_ADDRESS_CAPTION="user_street_address_caption",e.USER_ZIPCODE="user_zipcode_value",e.USER_ZIPCODE_CAPTION="user_zipcode_caption"}(LayoutField=LayoutField||{});const LayoutFieldTranslations={[LayoutField.TITLE_CAPTION]:"printing-gen2-title",[LayoutField.CREATOR_CAPTION]:"printing-gen2-creator",[LayoutField.CREATED_CAPTION]:"printing-gen2-created",[LayoutField.ORGNAME_CAPTION]:"printing-gen2-organization",[LayoutField.ORGADRESS_CAPTION]:"printing-gen2-address",[LayoutField.DISCLAIMER_CAPTION]:"printing-gen2-disclaimer",[LayoutField.SCALE_CAPTION]:"printing-gen2-scale",[LayoutField.SCALE_OV_CAPTION]:"printing-gen2-overview-scale",[LayoutField.PHONE_CAPTION]:"printing-gen2-phone",[LayoutField.MOBILEPHONE_CAPTION]:"printing-gen2-mobile-phone",[LayoutField.FAX_CAPTION]:"printing-gen2-fax",[LayoutField.EMAIL_CAPTION]:"printing-gen2-email",[LayoutField.CRS_CAPTION]:"printing-gen2-spatial-reference",[LayoutField.PAGE_INFO_CAPTION]:"printing-gen2-page",[LayoutField.TIME_CAPTION]:"printing-gen2-time",[LayoutField.TIME_CURRENT_CAPTION]:"printing-gen2-current-time",[LayoutField.TIME_START_END_CAPTION]:"printing-gen2-start-end-time",[LayoutField.TIME_START_CAPTION]:"printing-gen2-start-time",[LayoutField.TIME_END_CAPTION]:"printing-gen2-end-time",[LayoutField.RANGE_CAPTION]:"printing-gen2-range",[LayoutField.COPYRIGHT_CAPTION]:"printing-gen2-copyright",[LayoutField.MAPVIEW_CAPTION]:"printing-gen2-map-view",[LayoutField.USER_GIVEN_NAME_CAPTION]:"printing-gen2-first-name",[LayoutField.USER_LAST_NAME_CAPTION]:"printing-gen2-last-name",[LayoutField.USER_COMPANY_CAPTION]:"printing-gen2-company",[LayoutField.USER_DIVISION_CAPTION]:"printing-gen2-division",[LayoutField.USER_DEPARTMENT_CAPTION]:"printing-gen2-department",[LayoutField.USER_COUNTRY_CAPTION]:"printing-gen2-country",[LayoutField.USER_CITY_CAPTION]:"printing-gen2-city",[LayoutField.USER_STREET_ADDRESS_CAPTION]:"printing-gen2-street",[LayoutField.USER_ZIPCODE_CAPTION]:"printing-gen2-zip-code"};function getAutoValueInfo(e){let _=!1,i=!1;switch(e){case LayoutField.CREATOR:case LayoutField.EMAIL:case LayoutField.USER_GIVEN_NAME:case LayoutField.USER_LAST_NAME:i=!0;case LayoutField.CREATED:case LayoutField.CRS:case LayoutField.SCALE:case LayoutField.SCALE_OV:case LayoutField.PAGE_INFO:case LayoutField.TIME_CURRENT:case LayoutField.TIME_START_END:case LayoutField.TIME_START:case LayoutField.TIME_END:_=!0}return{isAutoValue:_,isClientValue:i}}export{LayoutField,LayoutFieldTranslations,getAutoValueInfo};
|