@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
|
@@ -3,46 +3,35 @@ import type { ChannelInfo } from "./ChannelProvider";
|
|
|
3
3
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
4
4
|
/** Defines inputs for the WebRequest activity. */
|
|
5
5
|
export interface WebRequestInputs {
|
|
6
|
-
/** Indicates the URL for the request. */
|
|
7
6
|
url: string;
|
|
8
|
-
/** Indicates the request method. */
|
|
9
7
|
method?: "GET" | "POST" | string;
|
|
10
|
-
/** Indicates the headers for the request. */
|
|
11
8
|
headers?: Record<string, any>;
|
|
12
|
-
/** Indicates the query for the request query string. */
|
|
13
9
|
query?: Record<string, any>;
|
|
14
|
-
/** Indicates the form for the request content. */
|
|
15
10
|
form?: Record<string, any>;
|
|
16
|
-
/** Indicates the blob for the request content. */
|
|
17
11
|
blob?: ArrayBuffer | Blob;
|
|
18
|
-
/** Indicates the json for the request content. */
|
|
19
12
|
json?: any;
|
|
20
|
-
/** Indicates the text for the request content. */
|
|
21
13
|
text?: string;
|
|
22
|
-
/** Indicates what to expect in terms of a response. */
|
|
23
14
|
expect?: "blob" | "json" | "text" | string;
|
|
24
15
|
/** Indicates the channel to use to send the request. */
|
|
25
16
|
channel?: ChannelProvider;
|
|
26
|
-
/** Indicates the channel to use to send the request by name. */
|
|
27
17
|
channelName?: "default" | "arcgis" | "geocortex" | string;
|
|
28
|
-
/** Indicates the timeout for the request/response. */
|
|
29
18
|
timeout?: number;
|
|
30
|
-
/** Indicates whether to send credentials with a CORS request */
|
|
31
19
|
corsWithCredentials?: boolean;
|
|
32
20
|
failForNonSuccessStatusCodes?: boolean;
|
|
33
21
|
}
|
|
34
22
|
/** Defines outputs for the WebRequest activity. */
|
|
35
23
|
export interface WebRequestOutputs {
|
|
36
|
-
/**
|
|
24
|
+
/** @description The channel that was used for the request. The channel provides access the raw request and response objects. */
|
|
37
25
|
channel: ChannelInfo;
|
|
38
|
-
/**
|
|
26
|
+
/** @description The elapsed time (in milliseconds) of the request. */
|
|
39
27
|
elapsed: number;
|
|
40
|
-
/**
|
|
28
|
+
/** @description The binary/blob content of the response. */
|
|
41
29
|
blob?: ArrayBuffer;
|
|
42
|
-
/**
|
|
30
|
+
/** @description The JSON content of the response. */
|
|
43
31
|
json?: any;
|
|
32
|
+
/** @description The HTTP status code of the response. */
|
|
44
33
|
status?: number;
|
|
45
|
-
/**
|
|
34
|
+
/** @description The text content of the response. */
|
|
46
35
|
text?: string;
|
|
47
36
|
}
|
|
48
37
|
export declare class WebRequest implements IActivityHandler {
|
|
@@ -6,6 +6,7 @@ export interface ConvertCsvToDataTableInputs {
|
|
|
6
6
|
}
|
|
7
7
|
/** Defines outputs from the ConvertCsvToDataTable activity. */
|
|
8
8
|
export interface ConvertCsvToDataTableOutputs {
|
|
9
|
+
/** @description A DataTable representing the data from the Comma Separated Values string. */
|
|
9
10
|
result: object;
|
|
10
11
|
}
|
|
11
12
|
export declare class ConvertCsvToDataTable implements IActivityHandler {
|
|
@@ -6,6 +6,7 @@ export interface ConvertDataTableToCsvInputs {
|
|
|
6
6
|
}
|
|
7
7
|
/** Defines outputs from the ConvertDataTableToCsv activity. */
|
|
8
8
|
export interface ConvertDataTableToCsvOutputs {
|
|
9
|
+
/** @description The result Comma Separated Values (.csv) string. */
|
|
9
10
|
result: string;
|
|
10
11
|
}
|
|
11
12
|
export declare class ConvertDataTableToCsv implements IActivityHandler {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
|
+
/** Defines outputs for the ParseCsv activity. */
|
|
3
|
+
export interface ParseCsvInputs {
|
|
4
|
+
csv: string;
|
|
5
|
+
delimiter?: string;
|
|
6
|
+
quoteCharacter?: string;
|
|
7
|
+
headerPresent?: boolean;
|
|
8
|
+
parseNumbers?: boolean;
|
|
9
|
+
parseBooleans?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** Defines outputs for the ParseCsv activity. */
|
|
12
|
+
export interface ParseCsvOutputs {
|
|
13
|
+
/** @description An array of objects corresponding to the given CSV text. /*/
|
|
14
|
+
result: any[];
|
|
15
|
+
}
|
|
16
|
+
export declare class ParseCsv implements IActivityHandler {
|
|
17
|
+
static readonly action = "gcx:wf:csv::ParseCsv";
|
|
18
|
+
static readonly suite = "gcx:wf:builtin";
|
|
19
|
+
execute(inputs: ParseCsvInputs): ParseCsvOutputs;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ActivityInputError}from"../../Errors.js";import{validation}from"../../Validation.js";class ParseCsv{execute(e){const i=validation.string("csv",e.csv,validation.never);var t=validation.boolean("headerPresent",e.headerPresent,!0);const o=validation.string("quoteCharacter",e.quoteCharacter,'"'),u=validation.string("delimiter",e.delimiter,","),r=validation.boolean("parseBooleans",e.parseBooleans,!0),n=validation.boolean("parseNumbers",e.parseNumbers,!0);var a=(t=0)=>{const r=[];let n="",a="before";for(let e=t;e<i.length;e++){var s=i[e];if(s===o)switch(a){case"before":if(""!==n)throw new ActivityInputError("csv","Opening quote found within a value. Quotes must occur at the start and end, and be escaped when in between.");a="in";continue;case"in":i[e+1]===o?(n+=o,e++):a="after";continue}else if(s!==u)if("\r"===s&&"\n"===i[e+1]){if("in"!==a)return r.push(n),{values:r,startIndex:e+2};n+="\r\n",e++}else if("\n"===s){if("in"!==a)return r.push(n),{values:r,startIndex:e+1};n+=s}else{if("after"===a)throw new ActivityInputError("csv","Character found after closing quote. Quotes must occur at the start and end, and be escaped when in between.");n+=s}else"in"===a?n+=u:(r.push(n),n="",a="before")}return r.push(n),t=i.length,{values:r,startIndex:t}};let s=[],l=0;t&&(t=a(),s=t.values,l=t.startIndex);const c=[];for(;l<i.length;){const h=a(l);var v=h.values.map(e=>{if(n){if(""===e.trim())return e;var t=Number(e);if(!isNaN(t))return t}if(r){if("true"===e.toLowerCase())return!0;if("false"===e.toLowerCase())return!1}return e});const p={};for(let e=0;e<v.length;e++){var f=s[e]||e,d=v[e];p[f]=d}c.push(p),l=h.startIndex}return{result:c}}}ParseCsv.action="gcx:wf:csv::ParseCsv",ParseCsv.suite="gcx:wf:builtin";export{ParseCsv};
|
|
@@ -215,7 +215,7 @@ export interface Workflow {
|
|
|
215
215
|
}
|
|
216
216
|
/** Defines outputs from the GetEssentialsSite activity. */
|
|
217
217
|
export interface GetEssentialsSiteOutputs {
|
|
218
|
-
/** The Essentials site. */
|
|
218
|
+
/** @description The Essentials site. */
|
|
219
219
|
site: Site;
|
|
220
220
|
}
|
|
221
221
|
export declare class GetEssentialsSite implements IActivityHandler {
|
|
@@ -2,16 +2,13 @@ import { ChannelProvider } from "../core/ChannelProvider";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
3
3
|
/** Defines inputs for the RunEssentialsWorkflow activity. */
|
|
4
4
|
export interface RunEssentialsWorkflowInputs {
|
|
5
|
-
/** The URL of the Essentials Workflow, without the "/run" ending. */
|
|
6
5
|
url: string;
|
|
7
|
-
/** The input arguments of the Essentials workflow. */
|
|
8
6
|
arguments?: Record<string, any>;
|
|
9
|
-
/** The timeout for the request/response. */
|
|
10
7
|
timeout?: number;
|
|
11
8
|
}
|
|
12
9
|
/** Defines outputs for the RunEssentialsWorkflow activity. */
|
|
13
10
|
export interface RunEssentialsWorkflowOutputs {
|
|
14
|
-
/** The resulting values of the Out and In/Out Arguments from the Essentials workflow. */
|
|
11
|
+
/** @description The resulting values of the Out and In/Out Arguments from the Essentials workflow. */
|
|
15
12
|
result: Record<string, any>;
|
|
16
13
|
}
|
|
17
14
|
export declare class RunEssentialsWorkflow implements IActivityHandler {
|
|
@@ -2,14 +2,14 @@ import type { IActivityHandler } from "../../IActivityHandler";
|
|
|
2
2
|
/** Defines inputs for the RunEssentialsWorkflowActivity activity. */
|
|
3
3
|
export interface RunEssentialsWorkflowActivityInputs {
|
|
4
4
|
action: "Alert" | "CaptureGeometry" | "Confirm" | "ExportMap" | "GetBrowserUrl" | "GetExternalTimeInfo" | "GetExternalValue" | "GetSelectedFeatures" | "PrintMap" | "Prompt" | "Report" | "SetExternalValue" | string;
|
|
5
|
-
/** The input arguments to the activity. */
|
|
6
5
|
inputs: any;
|
|
7
6
|
}
|
|
8
7
|
/** Defines outputs for the RunEssentialsWorkflow activity. */
|
|
9
8
|
export interface RunEssentialsWorkflowActivityOutputs {
|
|
10
|
-
/** The output arguments of the Essentials workflow activity. */
|
|
9
|
+
/** @description The output arguments of the Essentials workflow activity. */
|
|
11
10
|
result: Record<string, any>;
|
|
12
11
|
}
|
|
12
|
+
/** Runs a Geocortex Essentials (client-side) workflow activity. */
|
|
13
13
|
export declare class RunEssentialsWorkflowActivity implements IActivityHandler {
|
|
14
14
|
static readonly action = "gcx:wf:essentials::RunEssentialsWorkflowActivity";
|
|
15
15
|
static readonly suite = "gcx:wf:builtin";
|
|
@@ -3,11 +3,8 @@ import type { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
|
3
3
|
import type * as defs from "../../forms/FormDefinition";
|
|
4
4
|
export interface AddFormElementInputs {
|
|
5
5
|
form: DisplayFormOutputs;
|
|
6
|
-
/** The ID of the form element to add. */
|
|
7
6
|
elementName: string;
|
|
8
|
-
/** The type of form element to add. */
|
|
9
7
|
elementType: "AutoComplete" | "ButtonBar" | "CheckBox" | "CheckGroup" | "Custom" | "DatePicker" | "DateRangePicker" | "DateTimePicker" | "DropDownList" | "FilePicker" | "GeometryPicker" | "HorizontalRule" | "Image" | "ItemPicker" | "ListBox" | "Number" | "NumberRangeSlider" | "NumberSlider" | "PasswordBox" | "RadioGroup" | "Scanner" | "Section" | "Signature" | "Sketch" | "Text" | "TextArea" | "TextBox" | "TimePicker" | string;
|
|
10
|
-
/** The definition of the form element to add. */
|
|
11
8
|
element: defs.Element;
|
|
12
9
|
targetForm?: DisplayFormOutputs;
|
|
13
10
|
targetElement?: string | defs.Element;
|
|
@@ -9,7 +9,6 @@ export interface DisplayFormInputs {
|
|
|
9
9
|
form: defs.Form;
|
|
10
10
|
/** Indicates the form template to load if not yet loaded. */
|
|
11
11
|
template?: defs.Form;
|
|
12
|
-
/** Indicates what container to use when displaying the form. */
|
|
13
12
|
container?: "default" | "modal" | string;
|
|
14
13
|
/** Indicates what region to use when activating the form's container. */
|
|
15
14
|
region?: string;
|
|
@@ -21,12 +20,11 @@ export interface DisplayFormInputs {
|
|
|
21
20
|
* @public
|
|
22
21
|
*/
|
|
23
22
|
export interface DisplayFormOutputs {
|
|
24
|
-
/**
|
|
23
|
+
/** @description The state of the form. Use this to update or access the values of form elements. */
|
|
25
24
|
state: Record<string, defs.Element>;
|
|
26
|
-
/**
|
|
25
|
+
/** @description The result of the form. */
|
|
27
26
|
result?: string;
|
|
28
27
|
}
|
|
29
|
-
/** Displays a form. */
|
|
30
28
|
export declare class DisplayForm implements IActivityHandler {
|
|
31
29
|
static renderers: Record<string, FormRenderer | undefined>;
|
|
32
30
|
/**
|
|
@@ -7,6 +7,7 @@ export interface FilterFormElementItemsInputs {
|
|
|
7
7
|
phrase?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface FilterFormElementItemsOutputs {
|
|
10
|
+
/** @description The result indicates if any items remain after filtering. */
|
|
10
11
|
result: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare class FilterFormElementItems implements IActivityHandler {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ActivityAbortedError}from"../../Errors.js";import{FormHost,defs}from"../../forms/FormHost.js";import{FormElementTypes}from"../../forms/constants.js";import{getContent}from"../../forms/textUtilities.js";import{text}from"../../forms/utils.js";import{FormElementNotFoundError,NoFormElementAvailableError}from"./Errors.js";function toMarkdownRef(e,t){return"string"!=typeof t?t:{markdown:t}}const guid="F889738A-EBE2-4D52-8B46-3E24CC6E30F6:";class FormRenderer extends FormHost{static create(){return new this}static createCustom(){const e=new this;return e.custom=!0,e}static register(e){e.factories.push(e=>e===this.type?this:void 0)}addElement(e,r,t,o){if(r===FormElementTypes.HEADER)throw new Error("A form cannot contain more than one header element.");const n=this.form["elements"];if(n[e])throw new Error(`Element already present: ${e}`);const s={};if("object"==typeof t)for(const E in t)s[E]=t[E];s.type=r;var i=o?.targetElementName;let m=o?.relativePosition,a=!
|
|
1
|
+
import{ActivityAbortedError}from"../../Errors.js";import{FormHost,defs}from"../../forms/FormHost.js";import{FormElementTypes}from"../../forms/constants.js";import{getContent}from"../../forms/textUtilities.js";import{text}from"../../forms/utils.js";import{FormElementNotFoundError,NoFormElementAvailableError}from"./Errors.js";function toMarkdownRef(e,t){return"string"!=typeof t?t:{markdown:t}}const guid="F889738A-EBE2-4D52-8B46-3E24CC6E30F6:";class FormRenderer extends FormHost{static create(){return new this}static createCustom(){const e=new this;return e.custom=!0,e}static register(e){e.factories.push(e=>e===this.type?this:void 0)}addElement(e,r,t,o){if(r===FormElementTypes.HEADER)throw new Error("A form cannot contain more than one header element.");const n=this.form["elements"];if(n[e])throw new Error(`Element already present: ${e}`);const s={};if("object"==typeof t)for(const E in t)s[E]=t[E];s.type=r;var i=o?.targetElementName;let m=o?.relativePosition,a=!1;o=()=>{let e=-1;for(const t of Object.values(n))void 0!==t.rowNumber&&(e=Math.max(e,t.rowNumber));return e};let l,f;if(i&&m&&n[i]){let e=0,t=0;i=n[i];switch("header"===i.section?m="above":"footer"===i.section?(m="below",e=o()):(e=i.rowNumber,t=i.rowIndex,i.type!==FormElementTypes.SECTION&&r!==FormElementTypes.SECTION||(t=0,"before"===m?m="above":"after"===m&&(m="below"))),m){case"before":a=!1,l=e,f=t;break;case"after":a=!1,l=e,f=t+1;break;case"above":a=!0,l=e,f=0;break;default:a=!0,l=e+1,f=0}}else f=void 0!==s.rowNumber&&void 0!==s.rowIndex?(l=s.rowNumber||0,s.rowIndex||0):(l=o()+1,0);s.rowNumber=l,s.rowIndex=f;for(const t of Object.values(n)){var{rowNumber:c,rowIndex:u}=t;void 0!==c&&void 0!==u&&(a?c>=l&&t.rowNumber++:c===l&&u>=f&&t.rowIndex++)}n[e]=s;const d=[];for(const e of Object.keys(n)){const t=n[e];t.type===FormElementTypes.SECTION&&(d[t.rowNumber]={name:e})}for(const t of Object.values(n))void 0===t.rowNumber||t.rowNumber<l||t.type!==FormElementTypes.SECTION&&(t.section=(e=>{for(;0<=e;){var t=d[e];if(t)return t;e--}})(t.rowNumber));return this.invalidate(),s}assignElementProperty(t,r,o,e=!1,n=!0){e&&(o=toMarkdownRef(r,o));const s=this.getElement(t);if(s[r]!==o){const i={},m=this.getElementRegistration(s);if(m?.onPropertyChange)try{const a=(e,t)=>{i[e]!==t&&(i[e]=t,m.onPropertyChange({properties:{...s,...i},property:e,setProperty:a}))};a(r,o)}catch(e){throw console.error(`Error setting element property.\nElement: "${t}"\nProperty: "${r}"\nValue: ${o}\n`,e),e}else i[r]=o;for(const l of Object.keys(i))s[l]=i[l];m&&"value"in i&&!1!==n&&(t={..."object"==typeof n?n:{},name:t,value:i.value},this.post("changed",t)),this.refresh()}}assignElementItemProperty(e,t,r,o,n){const s=this.getElement(e),i=s.items||{};if(i[t][r]=n?toMarkdownRef(r,o):o,"checked"===r&&[FormElementTypes.CHECKGROUP,FormElementTypes.ITEMPICKER,FormElementTypes.LISTBOX].includes(s.type)){const a=[];for(const t in i){var m=i[t];m.checked&&a.push(m)}s.value=0===a.length?void 0:{refValueType:"items",items:a}}this.refresh(e)}assignItemsToElement(e,t,r){const o=this.getElement(e);let n=o.items||{};!1!==r&&(n={});for(const s in t)n[s]=t[s];o.items=n,o.type!==FormElementTypes.GEOMETRYPICKER&&o.type!==FormElementTypes.ITEMPICKER||delete o.state,this.invalidate(e)}cancelTool(){}deriveLocale(){return this.state?.locale||super.deriveLocale()}dispose(){if(super.dispose()){const e=this.state;return void 0!==e&&null!==e&&e.completion.isPending()&&e.reject(new ActivityAbortedError),!0}return!1}filterItems(e,t){const r=this.find(e);if(void 0===r||null===r)return!1;var o=r.items;if(null==o)return!1;if("string"!=typeof t)return t;let n=!1;const s={};var i=t.toLowerCase().split(/\s+/);for(const l in o){var m=o[l];const f=this.renderText(m.label);var a=f.toLowerCase().split(/\s+/);for(const c of i)if(0<c.length)for(const u of a)0<u.length&&0===u.indexOf(c)&&(n=!0,s[l]=m)}return r.items=s,this.invalidate(e),n}getElement(e,t){let r;if(e){if("string"!=typeof e)return e;r=e}else t?.name&&(r=t.name);if(r){t=this.form.elements[r];if(!t)throw new FormElementNotFoundError(r);return t}throw new NoFormElementAvailableError}getElementName(e,t){if(e){if("string"==typeof e)return e;for(const r in this.form.elements)if(this.form.elements[r]===e)return r;throw new FormElementNotFoundError(e)}if(t?.name)return t.name;throw new NoFormElementAvailableError}getElementRegistration(e){return this.state?.trivia?.getFormElementRegistration?.(e.customType??e.type)}getText(e){var t=this.state;if(void 0!==t){const r=t.environment.getText;if("function"==typeof r){if(text.isMarkdown(e))return{markdown:r(e.markdown)};if(text.isStatus(e))return{markdown:r(`@form-element-status-${e.status}`)};if(e&&"@"===e[0]){t=r(e);if(t)return t}}}return e}hideElement(e){e.visible=!1,this.invalidate()}isRelated(e){return this.state?.trivia?.isDescendantOf?.(e.state)}load(e,t){t=super.load(e,t);if(t&&this.form?.elements)for(const o in this.form.elements){var r=this.form.elements[o];const n=this.getElementRegistration(r);n&&n.getInitialProperties&&(r={...r,...n.getInitialProperties()},this.form.elements[o]=r)}return t}renderText(e){return super.renderText(this.getText(e))}setCurrentItem(e,t,r){const n=this.getElement(e);if(!n||!n.items)return!1;let o;switch(r){case"index":o=(e,t,r)=>{var o=Object.keys(n.items);return 0<o.length&&e===o[r]};break;case"item":o=(e,t,r)=>r===t;break;case"key":o=(e,t,r)=>r===e;break;case"label":o=(e,t,r)=>getContent(r)===getContent(t.label);break;case"value":o=(e,t,r)=>r===t.value;break;default:throw new Error("Unsupported value for itemMatchType: "+r)}for(const s in n.items)if(o(s,n.items[s],t))return n.current=s,[FormElementTypes.AUTOCOMPLETE,FormElementTypes.DROPDOWNLIST,FormElementTypes.RADIOGROUP].includes(n.type)&&(n.label=n.items[s].label,n.value=n.items[s].value),this.invalidate(e),this.cascade(e),!0;return!1}setElementError(e,t,r=!1){this.errors[e]=r?toMarkdownRef("error",t):t}showElement(e){e.visible=!0,this.invalidate()}spinNoBlock(){return this.spin()}translateText(e){return super.translateText(this.getText(e))}}FormRenderer.type=guid+"FormRenderer";export{defs,FormRenderer};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import type { IActivityHandler } from "../../IActivityHandler";
|
|
2
2
|
import type { Item } from "../../forms/FormDefinition";
|
|
3
3
|
export interface GetFormElementItemsFromCollectionInputs {
|
|
4
|
-
/** The collection to be converted to the items collection. */
|
|
5
4
|
collection: any[];
|
|
6
|
-
/** The name of the field used to populate the items' labels. If not provided, the item itself will be used as the label. */
|
|
7
5
|
labelFieldName?: string;
|
|
8
|
-
/** The name of the field used to populate the items' values. If not provided, the item itself is used in a DataRef object. */
|
|
9
6
|
valueFieldName?: string;
|
|
10
7
|
}
|
|
11
8
|
export interface GetFormElementItemsFromCollectionOutputs {
|
|
12
|
-
/** The result items collection. */
|
|
9
|
+
/** @description The result items collection. */
|
|
13
10
|
items: Record<string, Item>;
|
|
14
11
|
}
|
|
15
12
|
export declare class GetFormElementItemsFromCollection implements IActivityHandler {
|
|
@@ -5,11 +5,10 @@ export interface GetFormElementPropertyInputs {
|
|
|
5
5
|
form: DisplayFormOutputs;
|
|
6
6
|
/** The name of the form element. */
|
|
7
7
|
elementName?: string | defs.Element;
|
|
8
|
-
/** The name of the element property to get. */
|
|
9
8
|
name: string;
|
|
10
9
|
}
|
|
11
10
|
export interface GetFormElementPropertyOutputs {
|
|
12
|
-
/** The value of the property. */
|
|
11
|
+
/** @description The value of the property. */
|
|
13
12
|
value: any;
|
|
14
13
|
}
|
|
15
14
|
export declare class GetFormElementProperty implements IActivityHandler {
|
|
@@ -7,7 +7,7 @@ export interface GetFormElementValueInputs {
|
|
|
7
7
|
elementName?: string | defs.Element;
|
|
8
8
|
}
|
|
9
9
|
export interface GetFormElementValueOutputs {
|
|
10
|
-
/** The value of the form element. */
|
|
10
|
+
/** @description The value of the form element. */
|
|
11
11
|
value: any;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetFormElementValue implements IActivityHandler {
|
|
@@ -4,10 +4,15 @@ export interface GetFormEventDataInputs {
|
|
|
4
4
|
form: DisplayFormOutputs;
|
|
5
5
|
}
|
|
6
6
|
export interface GetFormEventDataOutputs {
|
|
7
|
+
/** @description The id of the form element that raised the event. */
|
|
7
8
|
elementId?: string;
|
|
9
|
+
/** @description The id of the form element item that raised the event. */
|
|
8
10
|
itemId?: string;
|
|
11
|
+
/** @description The type of event. */
|
|
9
12
|
type?: string;
|
|
13
|
+
/** @description The argument for the event. */
|
|
10
14
|
argument?: any;
|
|
15
|
+
/** @description The current value of the form element or item that raised the event. */
|
|
11
16
|
value?: any;
|
|
12
17
|
}
|
|
13
18
|
export declare class GetFormEventData implements IActivityHandler {
|
|
@@ -9,6 +9,7 @@ export interface SetCurrentFormElementItemInputs {
|
|
|
9
9
|
value: any;
|
|
10
10
|
}
|
|
11
11
|
export interface SetCurrentFormElementItemOutputs {
|
|
12
|
+
/** @description True if a match was found, false otherwise. */
|
|
12
13
|
result: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare class SetCurrentFormElementItem implements IActivityHandler {
|
|
@@ -5,9 +5,7 @@ export interface SetFormElementErrorInputs {
|
|
|
5
5
|
form: DisplayFormOutputs;
|
|
6
6
|
/** The ID of the form element to apply the error to. */
|
|
7
7
|
elementName?: string | defs.Element;
|
|
8
|
-
/** The error message to apply to the form element. */
|
|
9
8
|
error: string;
|
|
10
|
-
/** Controls when strings are interpreted as markdown. */
|
|
11
9
|
markdown?: boolean;
|
|
12
10
|
}
|
|
13
11
|
export declare class SetFormElementError implements IActivityHandler {
|
|
@@ -2,13 +2,10 @@ import type { DisplayFormOutputs } from "./DisplayForm";
|
|
|
2
2
|
import type { IActivityHandler, IActivityContext, EmptyOutputs } from "../../IActivityHandler";
|
|
3
3
|
export interface SetFormElementEventInputs {
|
|
4
4
|
form: DisplayFormOutputs;
|
|
5
|
-
/** The id of the Display Form activity that contains the element to add the event to. */
|
|
6
5
|
displayFormId: string;
|
|
7
6
|
/** The ID of the form element to apply the event to. */
|
|
8
7
|
elementName?: string;
|
|
9
|
-
/** The name of the event to add to the Element. */
|
|
10
8
|
eventName: "cancel" | "changed" | "clicked" | "custom" | "dragged" | "load" | "populate" | "submit" | "suggest" | "validate" | string;
|
|
11
|
-
/** The id of the activity to be used as the event handler. This can be a Container, Function, or Try Catch. */
|
|
12
9
|
targetActivityId: string;
|
|
13
10
|
}
|
|
14
11
|
export declare class SetFormElementEvent implements IActivityHandler {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";class SetFormElementEvent{execute(e,t){const{eventName:i,form:r}=e;let{displayFormId:n,elementName:o,targetActivityId:m}=e;if(n=validation.string("displayFormId",n),o=validation.string("elementName",o),m=validation.string("targetActivityId",m,validation.never),n&&"$"===n[0]&&(n=n.substring(1)),n=n||t.ambient.activityContexts.$$form.activity.id,!n)throw new GenericActivityError(
|
|
1
|
+
import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";class SetFormElementEvent{execute(e,t){const{eventName:i,form:r}=e;let{displayFormId:n,elementName:o,targetActivityId:m}=e;if(n=validation.string("displayFormId",n),o=validation.string("elementName",o),m=validation.string("targetActivityId",m,validation.never),n&&"$"===n[0]&&(n=n.substring(1)),n=n||t.ambient.activityContexts.$$form.activity.id,!n)throw new GenericActivityError(void 0,`No form could be found. displayFormId=${e.displayFormId}`);if(!(o=r.actor.getElementName(o,r.event)))throw new GenericActivityError(void 0,`No form element could be found to assign the event to. elementName=${e.elementName}`);return"$"===m[0]&&(m=m.substring(1)),t.ambient.trivia.setFormElementEvent(n,m,o,i),{}}}SetFormElementEvent.action="gcx:wf:forms::SetFormElementEvent",SetFormElementEvent.suite="gcx:wf:builtin";export{SetFormElementEvent};
|
|
@@ -5,13 +5,9 @@ export interface SetFormElementItemPropertyInputs {
|
|
|
5
5
|
form: DisplayFormOutputs;
|
|
6
6
|
/** The ID of the form element bearing the items. */
|
|
7
7
|
elementName?: string | defs.Element;
|
|
8
|
-
/** The key of the item to modify. */
|
|
9
8
|
itemKey: string | number;
|
|
10
|
-
/** The name of the property to modify. */
|
|
11
9
|
propertyName: "checked" | "default" | "enabled" | "index" | "label" | "styleName" | "tooltip" | "validates" | "value" | "visible" | string;
|
|
12
|
-
/** The value of the property to assign. */
|
|
13
10
|
propertyValue: any;
|
|
14
|
-
/** Controls when strings are interpreted as markdown. */
|
|
15
11
|
markdown?: boolean;
|
|
16
12
|
}
|
|
17
13
|
export declare class SetFormElementItemProperty implements IActivityHandler {
|
|
@@ -6,9 +6,7 @@ export interface SetFormElementItemsInputs {
|
|
|
6
6
|
form: DisplayFormOutputs;
|
|
7
7
|
/** The ID of the fom element to assign items to. */
|
|
8
8
|
elementName?: string | defs.Element;
|
|
9
|
-
/** The collection of items to assign to the element. */
|
|
10
9
|
items: Record<string, Item>;
|
|
11
|
-
/** Controls if the collection is cleared prior to assigning the items. */
|
|
12
10
|
reset?: boolean;
|
|
13
11
|
}
|
|
14
12
|
export declare class SetFormElementItems implements IActivityHandler {
|
|
@@ -5,11 +5,8 @@ export interface SetFormElementPropertyInputs {
|
|
|
5
5
|
form: DisplayFormOutputs;
|
|
6
6
|
/** The ID of the form element to modify. */
|
|
7
7
|
elementName?: string | defs.Element;
|
|
8
|
-
/** The name of the element property to modify. */
|
|
9
8
|
propertyName: "accessibleDescription" | "autoActivate" | "checked" | "collapsed" | "current" | "delay" | "dependsOn" | "description" | "enabled" | "error" | "fileTypes" | "format" | "itemLabel" | "items" | "label" | "manualEntry" | "maxLength" | "minLength" | "orientation" | "prompt" | "readOnly" | "require" | "rowIndex" | "rowNumber" | "selectionMode" | "showFilter" | "showMinMaxLabels" | "showTickMarks" | "size" | "source" | "styleName" | "title" | "titleLocation" | "tooltip" | "type" | "validates" | "value" | "visible" | "wrap" | string;
|
|
10
|
-
/** The value to assign to the property. */
|
|
11
9
|
propertyValue: any;
|
|
12
|
-
/** Controls when strings are interpreted as markdown. */
|
|
13
10
|
markdown?: boolean;
|
|
14
11
|
}
|
|
15
12
|
export declare class SetFormElementProperty implements IActivityHandler {
|
|
@@ -3,9 +3,7 @@ import type { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
|
3
3
|
import type * as defs from "../../forms/FormDefinition";
|
|
4
4
|
export interface ShowFormElementInputs {
|
|
5
5
|
form: DisplayFormOutputs;
|
|
6
|
-
/** The ID of the form element to show. */
|
|
7
6
|
elementName?: string | defs.Element;
|
|
8
|
-
/** Whether to make the element visible. */
|
|
9
7
|
visible?: boolean;
|
|
10
8
|
}
|
|
11
9
|
export declare class ShowFormElement implements IActivityHandler {
|
|
@@ -5,8 +5,11 @@ export interface GetImageMetadataInputs {
|
|
|
5
5
|
}
|
|
6
6
|
/** Defines outputs from the GetImageMetadata activity. */
|
|
7
7
|
export interface GetImageMetadataOutputs {
|
|
8
|
+
/** @description The latitude where the image was captured. */
|
|
8
9
|
latitude?: number | string;
|
|
10
|
+
/** @description The longitude where the image was captured. */
|
|
9
11
|
longitude?: number | string;
|
|
12
|
+
/** @description All of the metadata from the image. */
|
|
10
13
|
metadata: object;
|
|
11
14
|
}
|
|
12
15
|
export declare class GetImageMetadata implements IActivityHandler {
|
|
@@ -6,6 +6,7 @@ export interface RotateImageInputs {
|
|
|
6
6
|
}
|
|
7
7
|
/** Defines outputs from the RotateImage activity. */
|
|
8
8
|
export interface RotateImageOutputs {
|
|
9
|
+
/** @description The byte content of the rotated image. */
|
|
9
10
|
result: number[];
|
|
10
11
|
}
|
|
11
12
|
export declare class RotateImage implements IActivityHandler {
|