@vertigis/workflow 5.49.0 → 5.50.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.
Files changed (172) hide show
  1. package/Collections.d.ts +27 -27
  2. package/Collections.js +1 -1
  3. package/EnumUtils.d.ts +5 -5
  4. package/EnumUtils.js +1 -1
  5. package/Errors.d.ts +27 -27
  6. package/Hooks.d.ts +2 -2
  7. package/IActivityHandler.d.ts +14 -14
  8. package/ProgramInspectorFacility.d.ts +1 -1
  9. package/ProgramInspectorFacility.js +1 -1
  10. package/Task.d.ts +3 -3
  11. package/Task.js +1 -1
  12. package/TemplateUtils.d.ts +2 -2
  13. package/Validation.d.ts +10 -1
  14. package/Validation.js +1 -1
  15. package/activities/app/GetApplicationData.d.ts +1 -1
  16. package/activities/app/GetApplicationData.js +1 -1
  17. package/activities/app/RemoveApplicationData.d.ts +1 -1
  18. package/activities/app/RemoveApplicationData.js +1 -1
  19. package/activities/app/SetApplicationData.d.ts +1 -1
  20. package/activities/app/SetApplicationData.js +1 -1
  21. package/activities/arcgis/AddFeatures.d.ts +7 -4
  22. package/activities/arcgis/AddFeatures.js +1 -1
  23. package/activities/arcgis/AreaEngineTask.d.ts +1 -1
  24. package/activities/arcgis/AreaEngineTask.js +1 -1
  25. package/activities/arcgis/BufferEngineTask.d.ts +1 -1
  26. package/activities/arcgis/BufferEngineTask.js +1 -1
  27. package/activities/arcgis/CastGeometry.d.ts +4 -4
  28. package/activities/arcgis/CompareGeometries.d.ts +1 -1
  29. package/activities/arcgis/CompareGeometries.js +1 -1
  30. package/activities/arcgis/DeleteFeatures.d.ts +7 -3
  31. package/activities/arcgis/DeleteFeatures.js +1 -1
  32. package/activities/arcgis/DifferenceEngineTask.d.ts +1 -1
  33. package/activities/arcgis/DifferenceEngineTask.js +1 -1
  34. package/activities/arcgis/FlipEngineTask.d.ts +1 -1
  35. package/activities/arcgis/FlipEngineTask.js +1 -1
  36. package/activities/arcgis/GenerateArcGisToken.d.ts +2 -2
  37. package/activities/arcgis/GeoprocessingAsync.d.ts +2 -2
  38. package/activities/arcgis/GetAttributeValue.d.ts +1 -0
  39. package/activities/arcgis/GetAttributeValues.d.ts +1 -0
  40. package/activities/arcgis/GetCurrentPosition.d.ts +28 -28
  41. package/activities/arcgis/GetFeatureGeometries.d.ts +2 -2
  42. package/activities/arcgis/GetFeatureSetExtent.d.ts +2 -2
  43. package/activities/arcgis/GetFormElementItemsFromFeatures.d.ts +2 -2
  44. package/activities/arcgis/GetFormElementItemsFromFeatures.js +1 -1
  45. package/activities/arcgis/GetGeometryExtent.d.ts +2 -2
  46. package/activities/arcgis/LengthEngineTask.d.ts +1 -1
  47. package/activities/arcgis/LengthEngineTask.js +1 -1
  48. package/activities/arcgis/MapProvider.d.ts +92 -92
  49. package/activities/arcgis/MapProvider.js +1 -1
  50. package/activities/arcgis/NearestCoordinateEngineTask.d.ts +6 -6
  51. package/activities/arcgis/NearestVertexEngineTask.d.ts +6 -6
  52. package/activities/arcgis/NearestVerticesEngineTask.d.ts +6 -6
  53. package/activities/arcgis/ProjectServiceTask.js +1 -1
  54. package/activities/arcgis/ResetLayerDefinitionExpression.d.ts +2 -2
  55. package/activities/arcgis/RunPrint.d.ts +1 -1
  56. package/activities/arcgis/RunPrint.js +1 -1
  57. package/activities/arcgis/RunReport.js +1 -1
  58. package/activities/arcgis/RunWorkflow.d.ts +4 -4
  59. package/activities/arcgis/RunWorkflow.js +1 -1
  60. package/activities/arcgis/SetImageryLayerOptions.d.ts +2 -2
  61. package/activities/arcgis/SetLayerDefinitionExpression.d.ts +2 -2
  62. package/activities/arcgis/SetLayerProperty.d.ts +2 -2
  63. package/activities/arcgis/SetLayerVisibility.d.ts +2 -2
  64. package/activities/arcgis/SetViewExtent.d.ts +4 -4
  65. package/activities/arcgis/SetViewpoint.d.ts +2 -2
  66. package/activities/arcgis/TypeChecking.d.ts +3 -3
  67. package/activities/arcgis/UpdateFeatures.d.ts +6 -3
  68. package/activities/arcgis/UpdateFeatures.js +1 -1
  69. package/activities/arcgis/libs/arcGisRestApi.d.ts +4 -4
  70. package/activities/arcgis/libs/shared.d.ts +9 -0
  71. package/activities/arcgis/libs/shared.js +1 -0
  72. package/activities/arcgis/printing.d.ts +14 -14
  73. package/activities/arcgis/runUtils.d.ts +2 -2
  74. package/activities/arcgis/runUtils.js +1 -1
  75. package/activities/arcgis/shared.d.ts +9 -2
  76. package/activities/arcgis/shared.js +1 -1
  77. package/activities/core/CalculateDate.d.ts +1 -1
  78. package/activities/core/CalculateDate.js +1 -1
  79. package/activities/core/ChannelProvider.d.ts +42 -42
  80. package/activities/core/ChannelProvider.js +1 -1
  81. package/activities/core/ForEach.d.ts +4 -4
  82. package/activities/core/FormatDate.d.ts +21 -21
  83. package/activities/core/FormatDate.js +1 -1
  84. package/activities/core/GetFirstItem.d.ts +1 -0
  85. package/activities/core/GetItemAtIndex.d.ts +1 -0
  86. package/activities/core/GetLastItem.d.ts +1 -0
  87. package/activities/core/GetWorkflowInputs.d.ts +6 -2
  88. package/activities/core/Log.d.ts +1 -1
  89. package/activities/core/Log.js +1 -1
  90. package/activities/core/Loop.d.ts +2 -2
  91. package/activities/core/ParseJson.d.ts +1 -0
  92. package/activities/core/WebRequest.d.ts +2 -2
  93. package/activities/csv/ParseCsv.d.ts +1 -0
  94. package/activities/essentials/GetEssentialsSite.d.ts +2 -2
  95. package/activities/essentials/RunEssentialsWorkflow.d.ts +2 -2
  96. package/activities/essentials/RunEssentialsWorkflow.js +1 -1
  97. package/activities/forms/DisplayForm.d.ts +6 -6
  98. package/activities/forms/DisplayForm.js +1 -1
  99. package/activities/forms/FormActor.d.ts +22 -22
  100. package/activities/forms/FormRenderer.d.ts +2 -2
  101. package/activities/forms/FormRenderer.js +1 -1
  102. package/activities/forms/GetFormElementItemsFromCollection.d.ts +7 -7
  103. package/activities/forms/GetFormElementItemsFromCollection.js +1 -1
  104. package/activities/math/Max.d.ts +1 -1
  105. package/activities/math/Max.js +1 -1
  106. package/activities/math/Min.d.ts +1 -1
  107. package/activities/math/Min.js +1 -1
  108. package/activities/server/RunApplication.d.ts +2 -2
  109. package/activities/server/RunPython.d.ts +4 -4
  110. package/activities/ui/DialogContent.d.ts +6 -6
  111. package/activities/ui/DialogProvider.d.ts +5 -5
  112. package/activities/ui/DialogProvider.js +1 -1
  113. package/definition/ActivityInput.d.ts +6 -6
  114. package/definition/ProgramInspector.d.ts +118 -118
  115. package/definition/ProgramInspector.js +1 -1
  116. package/definition/Reference.d.ts +2 -2
  117. package/definition/Resource.d.ts +15 -15
  118. package/definition/Transition.d.ts +4 -4
  119. package/diagnostics/ConsoleDebugLogger.d.ts +2 -2
  120. package/diagnostics/ConsoleDebugLogger.js +1 -1
  121. package/execution/ActivityContext.d.ts +35 -35
  122. package/execution/ActivityContext.js +1 -1
  123. package/execution/ActivityContextProxy.d.ts +7 -7
  124. package/execution/ActivityContextProxy.js +1 -1
  125. package/execution/AmbientState.d.ts +29 -29
  126. package/execution/AmbientState.js +1 -1
  127. package/execution/AmbientStateProxy.d.ts +10 -10
  128. package/execution/AmbientStateProxy.js +1 -1
  129. package/execution/AsyncContext.d.ts +1 -1
  130. package/execution/AsyncContext.js +1 -1
  131. package/execution/Engine.d.ts +27 -28
  132. package/execution/Engine.js +1 -1
  133. package/execution/IDebugSession.d.ts +10 -10
  134. package/execution/MonikerFrame.d.ts +2 -2
  135. package/execution/MonikerFrame.js +1 -1
  136. package/execution/Proxy.d.ts +1 -1
  137. package/execution/Proxy.js +1 -1
  138. package/execution/StepContext.d.ts +1 -1
  139. package/execution/StepContext.js +1 -1
  140. package/execution/TransitionContext.d.ts +1 -1
  141. package/execution/TransitionContext.js +1 -1
  142. package/forms/ExclusiveTimer.d.ts +2 -2
  143. package/forms/ExclusiveTimer.js +1 -1
  144. package/forms/FormComponent.d.ts +7 -7
  145. package/forms/FormComponent.js +1 -1
  146. package/forms/FormDefinition.d.ts +42 -42
  147. package/forms/FormHost.d.ts +148 -148
  148. package/forms/FormHost.js +1 -1
  149. package/forms/FormPresenterHost.d.ts +42 -42
  150. package/forms/MutuallyExclusiveSectionGroup.d.ts +6 -6
  151. package/forms/MutuallyExclusiveSectionGroup.js +1 -1
  152. package/forms/NumberParser.d.ts +2 -2
  153. package/forms/branding/WorkflowColor.d.ts +5 -5
  154. package/forms/branding/WorkflowColor.js +1 -1
  155. package/forms/components/Button.js +1 -1
  156. package/forms/components/DateTimePicker.js +1 -1
  157. package/forms/components/FormLabelNumberField.d.ts +4 -4
  158. package/forms/components/GeometryPickerListItem.d.ts +4 -4
  159. package/forms/components/SignatureDialog.d.ts +2 -2
  160. package/forms/components/SketchDialog.d.ts +5 -5
  161. package/forms/components/common.js +1 -1
  162. package/forms/dateUtilities.d.ts +2 -2
  163. package/forms/elements/types.d.ts +2 -2
  164. package/forms/index.d.ts +2 -2
  165. package/forms/numberFormatter.d.ts +8 -8
  166. package/forms/numberUtilities.d.ts +1 -1
  167. package/forms/utils.d.ts +6 -12
  168. package/libs/version.d.ts +1 -1
  169. package/libs/version.js +1 -1
  170. package/package.json +1 -1
  171. package/ui/UIService.d.ts +2 -2
  172. package/ui/UIService.js +1 -1
@@ -5,16 +5,16 @@ export interface CastGeometryInputs {
5
5
  }
6
6
  /** Defines outputs for the Cast Geometry activity. */
7
7
  export interface CastGeometryOutputs {
8
+ /** @description The geometry as an extent. */
9
+ extent?: __esri.Extent;
10
+ /** @description The geometry as a multipoint. */
11
+ multipoint?: __esri.Multipoint;
8
12
  /** @description The geometry as a point. */
9
13
  point?: __esri.Point;
10
14
  /** @description The geometry as a polygon. */
11
15
  polygon?: __esri.Polygon;
12
16
  /** @description The geometry as a polyline. */
13
17
  polyline?: __esri.Polyline;
14
- /** @description The geometry as an extent. */
15
- extent?: __esri.Extent;
16
- /** @description The geometry as a multipoint. */
17
- multipoint?: __esri.Multipoint;
18
18
  }
19
19
  export declare class CastGeometry implements IActivityHandler {
20
20
  static readonly action = "gcx:wf:arcgis::CastGeometry";
@@ -12,6 +12,6 @@ export interface CompareGeometriesOutputs {
12
12
  export declare class CompareGeometries implements IActivityHandler {
13
13
  static readonly action = "gcx:wf:arcgis::CompareGeometries";
14
14
  static readonly suite = "gcx:wf:builtin";
15
- private executeWith;
16
15
  execute(inputs: CompareGeometriesInputs): CompareGeometriesOutputs;
16
+ private executeWith;
17
17
  }
@@ -1 +1 @@
1
- import{execute as executeContains}from"@arcgis/core/geometry/operators/containsOperator";import{execute as executeCrosses}from"@arcgis/core/geometry/operators/crossesOperator";import{execute as executeDisjoint}from"@arcgis/core/geometry/operators/disjointOperator";import{execute as executeEquals}from"@arcgis/core/geometry/operators/equalsOperator";import{execute as executeIntersects}from"@arcgis/core/geometry/operators/intersectsOperator";import{execute as executeOverlaps}from"@arcgis/core/geometry/operators/overlapsOperator";import{execute as executeTouches}from"@arcgis/core/geometry/operators/touchesOperator";import{execute as executeWithin}from"@arcgis/core/geometry/operators/withinOperator";import{validation}from"../../Validation.js";export class CompareGeometries{executeWith(e,r,t){switch(e){case"contains":return executeContains(r,t);case"crosses":return executeCrosses(r,t);case"disjoint":return executeDisjoint(r,t);case"equals":return executeEquals(r,t);case"intersects":return executeIntersects(r,t);case"overlaps":return executeOverlaps(r,t);case"touches":return executeTouches(r,t);case"within":return executeWithin(r,t)}}execute(e){const r=validation.exists("geometry1",e.geometry1),t=validation.exists("geometry2",e.geometry2),o=validation.string("operation",e.operation);return{result:this.executeWith(o,r,t)}}}CompareGeometries.action="gcx:wf:arcgis::CompareGeometries",CompareGeometries.suite="gcx:wf:builtin";
1
+ import{execute as executeContains}from"@arcgis/core/geometry/operators/containsOperator";import{execute as executeCrosses}from"@arcgis/core/geometry/operators/crossesOperator";import{execute as executeDisjoint}from"@arcgis/core/geometry/operators/disjointOperator";import{execute as executeEquals}from"@arcgis/core/geometry/operators/equalsOperator";import{execute as executeIntersects}from"@arcgis/core/geometry/operators/intersectsOperator";import{execute as executeOverlaps}from"@arcgis/core/geometry/operators/overlapsOperator";import{execute as executeTouches}from"@arcgis/core/geometry/operators/touchesOperator";import{execute as executeWithin}from"@arcgis/core/geometry/operators/withinOperator";import{validation}from"../../Validation.js";export class CompareGeometries{execute(e){const r=validation.exists("geometry1",e.geometry1),t=validation.exists("geometry2",e.geometry2),o=validation.string("operation",e.operation);return{result:this.executeWith(o,r,t)}}executeWith(e,r,t){switch(e){case"contains":return executeContains(r,t);case"crosses":return executeCrosses(r,t);case"disjoint":return executeDisjoint(r,t);case"equals":return executeEquals(r,t);case"intersects":return executeIntersects(r,t);case"overlaps":return executeOverlaps(r,t);case"touches":return executeTouches(r,t);case"within":return executeWithin(r,t)}}}CompareGeometries.action="gcx:wf:arcgis::CompareGeometries",CompareGeometries.suite="gcx:wf:builtin";
@@ -1,4 +1,5 @@
1
- import type { ApplyEditResult, ApplyEditsResponse } from "./libs/arcGisRestApi";
1
+ import type { ApplyEditsResponse } from "./libs/arcGisRestApi";
2
+ import type { EditResult } from "./libs/shared";
2
3
  import type { IActivityHandler, IActivityContext } from "../../IActivityHandler";
3
4
  /** Defines inputs for the DeleteFeatures activity. */
4
5
  export interface DeleteFeaturesInputs {
@@ -12,7 +13,7 @@ export interface DeleteFeaturesInputs {
12
13
  }
13
14
  export interface DeleteFeaturesOutputs {
14
15
  /** @description The results given after deletion. */
15
- results: ApplyEditResult[];
16
+ results: EditResult[];
16
17
  /** @description Whether the delete operation completed successfully. */
17
18
  success: boolean;
18
19
  }
@@ -21,5 +22,8 @@ export declare class DeleteFeatures implements IActivityHandler {
21
22
  static readonly suite = "gcx:wf:builtin";
22
23
  execute(inputs: DeleteFeaturesInputs, context: IActivityContext): Promise<DeleteFeaturesOutputs>;
23
24
  /** Called after the apply edit operation completes. */
24
- protected onApplyEditsComplete(results: ApplyEditsResponse): void;
25
+ protected onApplyEditsComplete(result: __esri.EditsResult | ApplyEditsResponse): void;
26
+ private deleteUsingLayer;
27
+ private deleteUsingRestEndpoint;
28
+ private getIdsToDelete;
25
29
  }
@@ -1 +1 @@
1
- import{GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{combineGlobalIds,getFieldName}from"./shared.js";import{addToPath,post}from"./tools.js";export class DeleteFeatures{async execute(e,t){let s=validation.urlOrLayer(e);s=addToPath(s,"applyEdits");const o=validation.boolean("useGlobalIds",e.useGlobalIds,!1),i=validation.string("objectIdField",e.objectIdField,o?"GlobalID":"OBJECTID"),a=validation.string("gdbVersion",e.gdbVersion),r=validation.number("timeout",e.timeout),l=validation.array("features",e.features,validation.never),n=[],d=[];let u;for(const e of l)if("number"==typeof e)n.push(e);else if("string"==typeof e)if(o)d.push(e);else{const t=parseInt(e);isNaN(t)||n.push(t)}else{const t=e.attributes;if("object"==typeof t){if(!u&&(u=getFieldName(i,t),!u))throw new GenericActivityError(void 0,`Error running the "Delete Features" activity. Feature does not have a "${i}" property.`);const e=t[u];o?d.push(e):n.push(e)}}const c=o?combineGlobalIds(d):n.toString(),p=post(s,{deletes:c,gdbVersion:a,useGlobalIds:o},r,t.cancellationToken.signal),b=await p;this.onApplyEditsComplete(b);const f=!!b.deleteResults?.every(e=>e.success);return{results:b.deleteResults,success:f}}onApplyEditsComplete(e){}}DeleteFeatures.action="gcx:wf:arcgis::DeleteFeatures",DeleteFeatures.suite="gcx:wf:builtin";
1
+ import FeatureLayer from"@arcgis/core/layers/FeatureLayer";import SubtypeGroupLayer from"@arcgis/core/layers/SubtypeGroupLayer";import SubtypeSublayer from"@arcgis/core/layers/support/SubtypeSublayer";import{ActivityInputError,GenericActivityError}from"../../Errors.js";import{validation}from"../../Validation.js";import{combineGlobalIds,getFieldName}from"./shared.js";import{addToPath,post}from"./tools.js";export class DeleteFeatures{async execute(e,t){const o=validation.layer(e),r=validation.string("gdbVersion",e.gdbVersion),s=validation.array("features",e.features,validation.never),a=validation.boolean("useGlobalIds",e.useGlobalIds,!1),i=validation.string("objectIdField",e.objectIdField,a?"GlobalID":"OBJECTID");if(o instanceof FeatureLayer||o instanceof SubtypeGroupLayer||o instanceof SubtypeSublayer){await o.load({signal:t.cancellationToken.signal});const{globalIds:l,objectIds:n}=this.getIdsToDelete(s,a,i);return o.capabilities?.operations?.supportsDelete?this.deleteUsingLayer(o,r,l,n):this.deleteUsingRestEndpoint(e,r,l,n,t)}throw new ActivityInputError("layer","Layer is not a supported type.")}onApplyEditsComplete(e){}async deleteUsingLayer(e,t,o,r){const s=[];for(const e of o)s.push({globalId:e});for(const e of r)s.push({objectId:e});const a=await e.applyEdits({deleteFeatures:s},{gdbVersion:t}),{deleteFeatureResults:i}=a,l=i.map(e=>({error:e.error?{message:e.error.message,name:e.error.name}:void 0,globalId:e.globalId??void 0,objectId:e.objectId??void 0,success:!e.error}));this.onApplyEditsComplete(a);const n=l.every(e=>e.success);return{results:l,success:n}}async deleteUsingRestEndpoint(e,t,o,r,s){let a=validation.urlOrLayer(e);a=addToPath(a,"applyEdits");const i=validation.number("timeout",e.timeout),l=o.length>0,n=l?combineGlobalIds(o):r.toString(),d=post(a,{deletes:n,gdbVersion:t,useGlobalIds:l},i,s.cancellationToken.signal),c=await d;this.onApplyEditsComplete(c);const u=!!c.deleteResults?.every(e=>e.success);return{results:c.deleteResults.map(e=>({error:e.error?{message:e.error.description,name:e.error.code+""}:void 0,globalId:e.globalId??void 0,objectId:e.objectId??void 0,success:!e.error})),success:u}}getIdsToDelete(e,t,o){const r=[],s=[];let a;for(const i of e)if("number"==typeof i)r.push(i);else if("string"==typeof i)if(t)s.push(i);else{const e=parseInt(i);isNaN(e)||r.push(e)}else{const e=i.attributes;if("object"==typeof e){if(!a&&(a=getFieldName(o,e),!a))throw new GenericActivityError(void 0,`Error running the "Delete Features" activity. Feature does not have a "${o}" property.`);const i=e[a];t?s.push(i):r.push(i)}}return{globalIds:s,objectIds:r}}}DeleteFeatures.action="gcx:wf:arcgis::DeleteFeatures",DeleteFeatures.suite="gcx:wf:builtin";
@@ -15,6 +15,6 @@ export interface DifferenceEngineTaskOutputs {
15
15
  export declare class DifferenceEngineTask implements IActivityHandler {
16
16
  static readonly action = "gcx:wf:arcgis::DifferenceEngineTask";
17
17
  static readonly suite = "gcx:wf:builtin";
18
- private executeUsing;
19
18
  execute(inputs: DifferenceEngineTaskInputs): DifferenceEngineTaskOutputs;
19
+ private executeUsing;
20
20
  }
@@ -1 +1 @@
1
- import{executeMany as executeManyDifference}from"@arcgis/core/geometry/operators/differenceOperator";import{executeMany as executeManySymmetricDifference}from"@arcgis/core/geometry/operators/symmetricDifferenceOperator";import{validation}from"../../Validation.js";export class DifferenceEngineTask{executeUsing(e,r,t){return e?executeManySymmetricDifference(r,t):executeManyDifference(r,t)}execute(e){const r=validation.array("geometry",e.geometry,validation.never),t=validation.exists("subtractor",e.subtractor),i=validation.boolean("symmetric",e.symmetric,!1),n=this.executeUsing(i,r,t);return{geometry:n[0],results:n}}}DifferenceEngineTask.action="gcx:wf:arcgis::DifferenceEngineTask",DifferenceEngineTask.suite="gcx:wf:builtin";
1
+ import{executeMany as executeManyDifference}from"@arcgis/core/geometry/operators/differenceOperator";import{executeMany as executeManySymmetricDifference}from"@arcgis/core/geometry/operators/symmetricDifferenceOperator";import{validation}from"../../Validation.js";export class DifferenceEngineTask{execute(e){const r=validation.array("geometry",e.geometry,validation.never),t=validation.exists("subtractor",e.subtractor),i=validation.boolean("symmetric",e.symmetric,!1),n=this.executeUsing(i,r,t);return{geometry:n[0],results:n}}executeUsing(e,r,t){return e?executeManySymmetricDifference(r,t):executeManyDifference(r,t)}}DifferenceEngineTask.action="gcx:wf:arcgis::DifferenceEngineTask",DifferenceEngineTask.suite="gcx:wf:builtin";
@@ -13,6 +13,6 @@ export interface FlipEngineTaskOutputs {
13
13
  export declare class FlipEngineTask implements IActivityHandler {
14
14
  static readonly action = "gcx:wf:arcgis::FlipEngineTask";
15
15
  static readonly suite = "gcx:wf:builtin";
16
- executeUsing(orientation: string, geometry: __esri.GeometryUnion, origin: __esri.Point): __esri.GeometryUnion;
17
16
  execute(inputs: FlipEngineTaskInputs): FlipEngineTaskOutputs;
17
+ executeUsing(orientation: string, geometry: __esri.GeometryUnion, origin: __esri.Point): __esri.GeometryUnion;
18
18
  }
@@ -1 +1 @@
1
- import{execute as executeAffineTransform}from"@arcgis/core/geometry/operators/affineTransformOperator";import Transformation from"@arcgis/core/geometry/operators/support/Transformation";import{validation}from"../../Validation.js";import{calculateOrigin}from"./shared.js";export class FlipEngineTask{executeUsing(e,i,r){const t=new Transformation,{x:o,y:n}=r;if("vertical"===e)t.flipY(n,n);else t.flipX(o,o);return executeAffineTransform(i,t)}execute(e){const i=validation.exists("geometry",e.geometry),r=validation.string("orientation",e.orientation),t=calculateOrigin(i,e.origin);return{geometry:this.executeUsing(r,i,t)}}}FlipEngineTask.action="gcx:wf:arcgis::FlipEngineTask",FlipEngineTask.suite="gcx:wf:builtin";
1
+ import{execute as executeAffineTransform}from"@arcgis/core/geometry/operators/affineTransformOperator";import Transformation from"@arcgis/core/geometry/operators/support/Transformation";import{validation}from"../../Validation.js";import{calculateOrigin}from"./shared.js";export class FlipEngineTask{execute(e){const i=validation.exists("geometry",e.geometry),r=validation.string("orientation",e.orientation),t=calculateOrigin(i,e.origin);return{geometry:this.executeUsing(r,i,t)}}executeUsing(e,i,r){const t=new Transformation,{x:o,y:n}=r;if("vertical"===e)t.flipY(n,n);else t.flipX(o,o);return executeAffineTransform(i,t)}}FlipEngineTask.action="gcx:wf:arcgis::FlipEngineTask",FlipEngineTask.suite="gcx:wf:builtin";
@@ -11,10 +11,10 @@ export interface GenerateArcGisTokenInputs {
11
11
  }
12
12
  /** Defines outputs for the GenerateArcGisToken activity. */
13
13
  export interface GenerateArcGisTokenOutputs {
14
- /** @description The generated access token. */
15
- token: string;
16
14
  /** @description The expiration time of the token in milliseconds since January 1st, 1970. */
17
15
  expires: number;
16
+ /** @description The generated access token. */
17
+ token: string;
18
18
  }
19
19
  export declare class GenerateArcGisToken implements IActivityHandler {
20
20
  static readonly action = "gcx:wf:arcgis::GenerateArcGisToken";
@@ -11,12 +11,12 @@ export interface GeoprocessingAsyncInputs {
11
11
  export interface GeoprocessingAsyncOutputs {
12
12
  /** @description The ID of the geoprocessing job. */
13
13
  id?: string;
14
- /** @description The status of the geoprocessing job. */
15
- status?: string;
16
14
  /** @description The messages from the geoprocessing job. */
17
15
  messages?: __esri.GPMessage[];
18
16
  /** @description The results of the geoprocessing job. */
19
17
  results?: Record<string, any>;
18
+ /** @description The status of the geoprocessing job. */
19
+ status?: string;
20
20
  }
21
21
  export declare class GeoprocessingAsync implements IActivityHandler {
22
22
  static readonly action = "gcx:wf:arcgis::GeoprocessingAsync";
@@ -4,6 +4,7 @@ export interface GetAttributeValueInputs {
4
4
  features: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
5
5
  attribute: string;
6
6
  index?: number;
7
+ valueType?: "any" | "ArrayBuffer" | "boolean" | "Date" | "Error" | "Function" | "number" | "number[]" | "Object" | "string" | "string[]" | "esri.Graphic" | "esri.Extent" | "esri.Geometry" | "esri.Multipoint" | "esri.Point" | "esri.Polygon" | "esri.Polyline" | "esri.PortalGroup" | "esri.PortalUser" | "esri.SpatialReference" | "esri.Layer" | "esri.Symbol" | "esri.AddressCandidate" | "esri.FeatureSet" | "{ id: number; name: string; location: esri.Point; }" | string;
7
8
  }
8
9
  /** Defines outputs for the Get Attribute Value activity. */
9
10
  export interface GetAttributeValueOutputs {
@@ -3,6 +3,7 @@ import type { IActivityHandler } from "../../IActivityHandler";
3
3
  export interface GetAttributeValuesInputs {
4
4
  features: __esri.Graphic | __esri.FeatureSet | __esri.Graphic[];
5
5
  attribute: string;
6
+ valueType?: "any" | "ArrayBuffer" | "boolean" | "Date" | "Error" | "Function" | "number" | "number[]" | "Object" | "string" | "string[]" | "esri.Graphic" | "esri.Extent" | "esri.Geometry" | "esri.Multipoint" | "esri.Point" | "esri.Polygon" | "esri.Polyline" | "esri.PortalGroup" | "esri.PortalUser" | "esri.SpatialReference" | "esri.Layer" | "esri.Symbol" | "esri.AddressCandidate" | "esri.FeatureSet" | "{ id: number; name: string; location: esri.Point; }" | string;
6
7
  }
7
8
  /** Defines outputs for the Get Attribute Values activity. */
8
9
  export interface GetAttributeValuesOutputs {
@@ -9,52 +9,52 @@ export interface GetCurrentPositionInputs {
9
9
  }
10
10
  /** Defines outputs for the GetCurrentPosition activity. */
11
11
  export interface GetCurrentPositionOutputs {
12
- /** @description The position in WGS84. */
13
- position: __esri.Point;
14
12
  /** @description Represents the accuracy of the latitude and longitude properties, expressed in meters. */
15
13
  accuracy: number;
16
14
  /** @description Represents the position's altitude in metres, relative to sea level. This value can be null if the implementation cannot provide the data. */
17
15
  altitude?: number;
18
16
  /** @description Represents the position's altitude in metres, relative to sea level. This value can be null if the implementation cannot provide the data. */
19
17
  altitudeAccuracy?: number;
18
+ /** @description Represents the average horizontal accuracy(m). */
19
+ averageAccuracy?: number;
20
+ /** @description Represents the average vertical accuracy(m). */
21
+ averageAltitudeAccuracy?: number;
22
+ /** @description Represents the number of positions used in determining the average location. */
23
+ averagedPositions?: number;
24
+ /** @description Represents the age of the differential correction being applied to the location(s). */
25
+ correctionAge?: number;
26
+ /** @description Represents the reason of an error occurring when using the geolocating device. This value will be defined if there was an error. */
27
+ errorCode?: number;
28
+ /** @description Represents the reason of an error occurring when using the geolocating device. This value will be defined if there was an error. */
29
+ errorMessage?: string;
30
+ /** @description Represents the type of gnss location fix. Possible values are: 0 [Invalid], 1 [GPS], 2 [Differential GPS], 3 [Precise Positioning Service], 4 [Real Time Kinematic (Fixed)], 5 [Real Time Kinematic (Floating)], 6 [Estimated], 7 [Manual Input] or 8 [Simulation]. */
31
+ fixType?: number;
32
+ /** @description Represents the horizontal dilution of precision. */
33
+ hdop?: number;
20
34
  /** @description Represents the direction in which the device is traveling. This value, specified in degrees, indicates how far off from heading true north the device is. If the device is unable to provide heading information, this value is null. */
21
35
  heading?: number;
22
36
  /** @description Represents the position's latitude in decimal degrees. */
23
37
  latitude: number;
24
38
  /** @description Represents the position's longitude in decimal degrees. */
25
39
  longitude: number;
40
+ /** @description Represents the number of satellites used in calculating position. */
41
+ numberOfSatellites?: number;
42
+ /** @description Represents the position dilution of precision. */
43
+ pdop?: number;
44
+ /** @description The position in WGS84. */
45
+ position: __esri.Point;
46
+ /** @description Represents the name of the receiver used to get the location. */
47
+ recieverName?: string;
26
48
  /** @description Represents the velocity of the device in meters per second. This value can be null. */
27
49
  speed?: number;
50
+ /** @description Represents the standard deviation of the average. */
51
+ standardDeviation?: number;
52
+ /** @description Represents the well known id of the station used for differential correction. */
53
+ stationId?: number;
28
54
  /** @description Represents the time (in Unix Epoch milliseconds) at which the location was retrieved. */
29
55
  timestamp: number;
30
- /** @description Represents the name of the receiver used to get the location. */
31
- recieverName?: string;
32
- /** @description Represents the position dilution of precision. */
33
- pdop?: number;
34
- /** @description Represents the horizontal dilution of precision. */
35
- hdop?: number;
36
56
  /** @description Represents the vertical dilution of precision. */
37
57
  vdop?: number;
38
- /** @description Represents the type of gnss location fix. Possible values are: 0 [Invalid], 1 [GPS], 2 [Differential GPS], 3 [Precise Positioning Service], 4 [Real Time Kinematic (Fixed)], 5 [Real Time Kinematic (Floating)], 6 [Estimated], 7 [Manual Input] or 8 [Simulation]. */
39
- fixType?: number;
40
- /** @description Represents the age of the differential correction being applied to the location(s). */
41
- correctionAge?: number;
42
- /** @description Represents the well known id of the station used for differential correction. */
43
- stationId?: number;
44
- /** @description Represents the number of satellites used in calculating position. */
45
- numberOfSatellites?: number;
46
- /** @description Represents the average horizontal accuracy(m). */
47
- averageAccuracy?: number;
48
- /** @description Represents the average vertical accuracy(m). */
49
- averageAltitudeAccuracy?: number;
50
- /** @description Represents the number of positions used in determining the average location. */
51
- averagedPositions?: number;
52
- /** @description Represents the standard deviation of the average. */
53
- standardDeviation?: number;
54
- /** @description Represents the reason of an error occurring when using the geolocating device. This value will be defined if there was an error. */
55
- errorCode?: number;
56
- /** @description Represents the reason of an error occurring when using the geolocating device. This value will be defined if there was an error. */
57
- errorMessage?: string;
58
58
  }
59
59
  export declare class GetCurrentPosition implements IActivityHandler {
60
60
  static readonly action = "gcx:wf:arcgis::GetCurrentPosition";
@@ -6,10 +6,10 @@ export interface GetFeatureGeometriesInputs {
6
6
  }
7
7
  /** Defines outputs for the Get Geometries activity. */
8
8
  export interface GetFeatureGeometriesOutputs {
9
- /** @description The first geometry result. */
10
- geometry?: __esri.Geometry | null | undefined;
11
9
  /** @description The result geometries. */
12
10
  geometries?: (__esri.Geometry | null | undefined)[];
11
+ /** @description The first geometry result. */
12
+ geometry?: __esri.Geometry | null | undefined;
13
13
  }
14
14
  export declare class GetFeatureGeometries implements IActivityHandler {
15
15
  static readonly action = "gcx:wf:arcgis::GetFeatureGeometries";
@@ -5,10 +5,10 @@ export interface GetFeatureSetExtentInputs {
5
5
  }
6
6
  /** Defines outputs for the GetFeatureSetExtent activity. */
7
7
  export interface GetFeatureSetExtentOutputs {
8
- /** @description The extent of all the input features. */
9
- extent: __esri.Extent;
10
8
  /** @description The center of the extent. */
11
9
  center: __esri.Point;
10
+ /** @description The extent of all the input features. */
11
+ extent: __esri.Extent;
12
12
  }
13
13
  export declare class GetFeatureSetExtent implements IActivityHandler {
14
14
  static readonly action = "gcx:wf:arcgis::GetFeatureSetExtent";
@@ -14,6 +14,7 @@ export interface GetFormElementItemsFromFeaturesOutputs {
14
14
  export declare class GetFormElementItemsFromFeatures implements IActivityHandler {
15
15
  static readonly action = "gcx:wf:forms::GetFormElementItemsFromFeatures";
16
16
  static readonly suite = "gcx:wf:builtin";
17
+ execute(inputs: GetFormElementItemsFromFeaturesInputs): GetFormElementItemsFromFeaturesOutputs;
17
18
  /**
18
19
  * Gets the value of the specified attribute.
19
20
  * This also accepts aliases and performs a case-insensitive lookup.
@@ -33,6 +34,7 @@ export declare class GetFormElementItemsFromFeatures implements IActivityHandler
33
34
  * @returns The name of the matching field, or `undefined` if no match was found.
34
35
  */
35
36
  private _getFieldName;
37
+ private _getTokenValues;
36
38
  /**
37
39
  * Checks if there is a field name that matches the supplied label.
38
40
  * This also accepts aliases and performs a case-insensitive lookup.
@@ -41,6 +43,4 @@ export declare class GetFormElementItemsFromFeatures implements IActivityHandler
41
43
  * @returns True if the label matches a field name or alias, false otherwise.
42
44
  */
43
45
  private _isLabelFieldName;
44
- private _getTokenValues;
45
- execute(inputs: GetFormElementItemsFromFeaturesInputs): GetFormElementItemsFromFeaturesOutputs;
46
46
  }
@@ -1 +1 @@
1
- import*as TemplateUtils from"../../TemplateUtils.js";import{validation}from"../../Validation.js";import{text}from"../../forms/utils.js";import{getFieldName as getFieldNameIgnoreCase}from"./shared.js";export class GetFormElementItemsFromFeatures{_getAttributeValue(e,t,s,a){if(!(e=this._getFieldName(e,t)))return;const l=s[e];return a?TemplateUtils.valueOrEmptyString(l):l}_getFieldName(e,t){return t[getFieldNameIgnoreCase(e,t)||e]}_isLabelFieldName(e,t){return null!=e&&!!getFieldNameIgnoreCase(e,t)}_getTokenValues(e,t,s){const a={},l=Object.keys(a);for(const i of e){const e=i.token;if(!l.includes(e)){const l=this._getAttributeValue(e,s,t,!0),i=TemplateUtils.getTokenValueString(e,l);a[e]=text.escapeTextForMarkdown(i)}}return a}execute(e){const t=e.features||[],s=e.fields||[],a=validation.string("labelFieldName",e.labelFieldName),l=e.valueFieldName||void 0,i={},r={};for(const e of s)"string"==typeof e.alias&&"string"==typeof e.name&&(r[e.alias]=e.name);const o=t.length>0?Object.keys(t[0].attributes):[];for(const e of o)r[e]=e;const n=this._isLabelFieldName(a,r),m=n?[]:TemplateUtils.findTokenInstances(a);for(let e=0;e<t.length;++e){const s=t[e],o=s.attributes||{},u={};let d;if(n)d=this._getAttributeValue(a,r,o,!0);else{const e=this._getTokenValues(m,o,r);d=TemplateUtils.replacePlaceholders(a,m,e)}const g=l?this._getAttributeValue(l,r,o,!1):void 0;let c;c=text.isMarkdown(d)?d:String(d),u.label=c,u.value=l?g:{refValueType:"data",type:"feature",data:s},u.index=e,i[e]=u}return{items:i}}}GetFormElementItemsFromFeatures.action="gcx:wf:forms::GetFormElementItemsFromFeatures",GetFormElementItemsFromFeatures.suite="gcx:wf:builtin";
1
+ import*as TemplateUtils from"../../TemplateUtils.js";import{validation}from"../../Validation.js";import{text}from"../../forms/utils.js";import{getFieldName as getFieldNameIgnoreCase}from"./shared.js";export class GetFormElementItemsFromFeatures{execute(e){const t=e.features||[],s=e.fields||[],a=validation.string("labelFieldName",e.labelFieldName),l=e.valueFieldName||void 0,i={},r={};for(const e of s)"string"==typeof e.alias&&"string"==typeof e.name&&(r[e.alias]=e.name);const o=t.length>0?Object.keys(t[0].attributes):[];for(const e of o)r[e]=e;const n=this._isLabelFieldName(a,r),m=n?[]:TemplateUtils.findTokenInstances(a);for(let e=0;e<t.length;++e){const s=t[e],o=s.attributes||{},u={};let d;if(n)d=this._getAttributeValue(a,r,o,!0);else{const e=this._getTokenValues(m,o,r);d=TemplateUtils.replacePlaceholders(a,m,e)}const g=l?this._getAttributeValue(l,r,o,!1):void 0;let c;c=text.isMarkdown(d)?d:String(d),u.label=c,u.value=l?g:{refValueType:"data",type:"feature",data:s},u.index=e,i[e]=u}return{items:i}}_getAttributeValue(e,t,s,a){if(!(e=this._getFieldName(e,t)))return;const l=s[e];return a?TemplateUtils.valueOrEmptyString(l):l}_getFieldName(e,t){return t[getFieldNameIgnoreCase(e,t)||e]}_getTokenValues(e,t,s){const a={},l=Object.keys(a);for(const i of e){const e=i.token;if(!l.includes(e)){const l=this._getAttributeValue(e,s,t,!0),i=TemplateUtils.getTokenValueString(e,l);a[e]=text.escapeTextForMarkdown(i)}}return a}_isLabelFieldName(e,t){return null!=e&&!!getFieldNameIgnoreCase(e,t)}}GetFormElementItemsFromFeatures.action="gcx:wf:forms::GetFormElementItemsFromFeatures",GetFormElementItemsFromFeatures.suite="gcx:wf:builtin";
@@ -5,10 +5,10 @@ export interface GetGeometryExtentInputs {
5
5
  }
6
6
  /** Defines outputs for the GetGeometryExtent activity. */
7
7
  export interface GetGeometryExtentOutputs {
8
- /** @description The extent of the geometries. */
9
- extent: __esri.Extent;
10
8
  /** @description The center of the extent of the geometries. */
11
9
  center: __esri.Point;
10
+ /** @description The extent of the geometries. */
11
+ extent: __esri.Extent;
12
12
  }
13
13
  export declare class GetGeometryExtent implements IActivityHandler {
14
14
  static readonly action = "gcx:wf:arcgis::GetGeometryExtent";
@@ -13,6 +13,6 @@ export interface LengthEngineTaskOutputs {
13
13
  export declare class LengthEngineTask implements IActivityHandler {
14
14
  static readonly action = "gcx:wf:arcgis::LengthEngineTask";
15
15
  static readonly suite = "gcx:wf:builtin";
16
- private executeUsing;
17
16
  execute(inputs: LengthEngineTaskInputs): Promise<LengthEngineTaskOutputs>;
17
+ private executeUsing;
18
18
  }
@@ -1 +1 @@
1
- import{execute as executeGeodetic,isLoaded,load}from"@arcgis/core/geometry/operators/geodeticLengthOperator";import{execute as executePlanar}from"@arcgis/core/geometry/operators/lengthOperator";import{validation}from"../../Validation.js";export class LengthEngineTask{async executeUsing(e,t,a){return e?(isLoaded()||await load(),executeGeodetic(t,{unit:a})):executePlanar(t,{unit:a})}async execute(e){const t=validation.exists("geometry",e.geometry),a=validation.boolean("geodesic",e.geodesic,!1);return{length:await this.executeUsing(a,t,e.unit)}}}LengthEngineTask.action="gcx:wf:arcgis::LengthEngineTask",LengthEngineTask.suite="gcx:wf:builtin";
1
+ import{execute as executeGeodetic,isLoaded,load}from"@arcgis/core/geometry/operators/geodeticLengthOperator";import{execute as executePlanar}from"@arcgis/core/geometry/operators/lengthOperator";import{validation}from"../../Validation.js";export class LengthEngineTask{async execute(e){const t=validation.exists("geometry",e.geometry),a=validation.boolean("geodesic",e.geodesic,!1);return{length:await this.executeUsing(a,t,e.unit)}}async executeUsing(e,t,a){return e?(isLoaded()||await load(),executeGeodetic(t,{unit:a})):executePlanar(t,{unit:a})}}LengthEngineTask.action="gcx:wf:arcgis::LengthEngineTask",LengthEngineTask.suite="gcx:wf:builtin";
@@ -15,10 +15,10 @@ interface MapExtension {
15
15
  }
16
16
  /** Exposes map information. */
17
17
  export interface MapInfo {
18
- /** Gets the extent. */
19
- getExtent(): __esri.Extent | undefined;
20
18
  /** Gets the center. */
21
19
  getCenter(): __esri.Point | undefined;
20
+ /** Gets the extent. */
21
+ getExtent(): __esri.Extent | undefined;
22
22
  /** Gets the scale. */
23
23
  getScale(): number | undefined;
24
24
  /** Gets the spatial reference. */
@@ -32,50 +32,36 @@ export declare function sublayerCanChangeDefinitionExpression(sublayer: __esri.S
32
32
  */
33
33
  export declare class MapProvider implements MapInfo {
34
34
  static type: string;
35
- /** Indicates the map. */
36
- map?: __esri.Map & MapExtension;
37
- /** Indicates the view. */
38
- view?: __esri.View & ViewExtension;
39
35
  /** Indicates the layer. */
40
36
  layer?: __esri.Layer;
37
+ /** Indicates the map. */
38
+ map?: __esri.Map & MapExtension;
39
+ /** Indicates the map name. */
40
+ mapName?: string;
41
41
  /** Indicates the sublayer. */
42
42
  sublayer?: (__esri.Sublayer & SublayerExtension) | {
43
43
  id?: string | number;
44
44
  visible?: boolean;
45
45
  };
46
46
  /** Indicates the map name. */
47
- mapName?: string;
48
- /** Indicates the map name. */
49
47
  type?: typeof MapProvider;
50
- /** Gets the output SR (or the default). */
51
- static getOutSR(sr?: __esri.SpatialReference | number | string): __esri.SpatialReference | undefined;
48
+ /** Indicates the view. */
49
+ view?: __esri.View & ViewExtension;
50
+ constructor(type: typeof MapProvider, mapView?: MapViewLike, mapName?: string);
52
51
  /** Creates an instance of this class. */
53
52
  static create(): MapProvider;
53
+ /** Gets the output SR (or the default). */
54
+ static getOutSR(sr?: __esri.SpatialReference | number | string): __esri.SpatialReference | undefined;
54
55
  /** Registers the provider class with the activator. */
55
56
  static register(activator: Activator): void;
56
- constructor(type: typeof MapProvider, mapView?: MapViewLike, mapName?: string);
57
- /** Loads the map if applicable. */
58
- protected loadMap(): PromiseLike<void> | undefined;
59
- /** Loads the view if applicable. */
60
- protected loadView(): PromiseLike<void> | undefined;
61
- /** Loads the layer if applicable. */
62
- protected loadLayer(): PromiseLike<void> | undefined;
63
- /** Loads the map/layer. */
64
- load(): PromiseLike<void>;
65
- /** Gets the extent. */
66
- getExtent(): __esri.Extent | undefined;
67
- /** Gets the center. */
68
- getCenter(): __esri.Point | undefined;
69
- /** Gets the scale. */
70
- getScale(): number | undefined;
71
- /** Gets the spatial reference. */
72
- getSpatialReference(): SpatialReference | undefined;
73
- /** Gets the viewpoint. */
74
- getViewpoint(): __esri.Viewpoint | undefined;
75
- /** Sets the extent. */
76
- setExtent(target: __esri.Geometry[], scale?: number): PromiseLike<void>;
77
- /** Sets the viewpoint. */
78
- setViewpoint(target: __esri.Geometry[], viewpoint?: __esri.Viewpoint): PromiseLike<void>;
57
+ /** Adds popup to the template. */
58
+ static setPopup(template: object, features: __esri.Graphic[]): void;
59
+ /** Adds features to the layer. */
60
+ addFeatures(features: __esri.Graphic[], layerId: string | number): __esri.Graphic[];
61
+ /** Clears features from the map/layer. */
62
+ clearFeatures(): boolean;
63
+ /** Clones this provider. */
64
+ clone(): MapProvider;
79
65
  /** Finds the layer. */
80
66
  findLayer(id: string | number, parent?: __esri.Layer): MapProvider | undefined;
81
67
  /**
@@ -84,48 +70,21 @@ export declare class MapProvider implements MapInfo {
84
70
  * @param mapServiceId The unique id of the map service that the table belongs to.
85
71
  */
86
72
  findTable(id: string, mapServiceId?: string): MapProvider | undefined;
87
- /**
88
- * Allows sub classes to convert ids to a different format,
89
- * to suit their implementation.
90
- * @param id The unique id of a sublayer.
91
- */
92
- protected formatSubLayerId(id: any): any;
93
- /** Gets the visibility for the map/layer. */
94
- getVisible(): boolean | undefined;
95
- /** Sets the visibility for the map/layer. */
96
- setVisible(visible: boolean): boolean;
97
- /** Gets the property's value for the map/layer. */
98
- getProperty(name: "mosaicRule"): __esri.MosaicRule;
99
- getProperty(name: "rasterFunction"): __esri.RasterFunction;
100
- getProperty(name: "renderingRule"): __esri.RasterFunction;
101
- getProperty(name: "pixelFilter"): __esri.PixelFilterFunction;
102
- getProperty(name: string): any;
103
- /** Sets the `mosaicRule` property on the current layer. */
104
- setProperty(name: "mosaicRule", value: __esri.MosaicRule): boolean;
105
- /** Sets the `rasterFunction` property on the current layer. */
106
- setProperty(name: "rasterFunction", value: __esri.RasterFunction): boolean;
107
- /** Sets the `renderingRule` property on the current layer. */
108
- setProperty(name: "renderingRule", value: __esri.RasterFunction): boolean;
109
- /** Sets the `pixelFilter` property on the current layer. */
110
- setProperty(name: "pixelFilter", value: __esri.PixelFilterFunction): boolean;
111
- /** Sets the specified property on the current layer. */
112
- setProperty(name: string, value: any): boolean;
73
+ /** Gets the center. */
74
+ getCenter(): __esri.Point | undefined;
113
75
  /** Gets the definition expression for the map/layer. */
114
76
  getDefinitionExpression(): string | undefined;
115
- /** Sets the definition expression for the map/layer. */
116
- setDefinitionExpression(clause: string): boolean | undefined;
117
- /**
118
- * Resets the definition expression for all layers and sublayers
119
- * to their initial state from when the map was loaded.
120
- * @param onlyInitialLayers If true, only layers that were initially loaded with the map will be reset.
121
- * Otherwise, all layers currently present in the map will be reset.
122
- */
123
- resetDefinitionExpressions: (onlyInitialLayers: boolean) => void;
77
+ /** Gets the extent. */
78
+ getExtent(): __esri.Extent | undefined;
79
+ /** Gets features from the map/layer. */
80
+ getFeatures(): __esri.Graphic[] | undefined;
124
81
  /**
125
- * Resets the definition expression for the layer or sublayer
126
- * to its initial state from when the map was loaded.
82
+ * Gets the definition expression for the layer/sublayer that was present when it was first loaded.
83
+ * @param layerId The unique id of the layer.
84
+ * @param sublayerId (optional) The unique id of the sublayer.
85
+ * @returns The definition expression for the layer/sublayer that was present when it was first loaded.
127
86
  */
128
- resetDefinitionExpression(): string | nullish;
87
+ getInitialDefinitionExpression(layerId: string, sublayerId?: number): string | null | undefined;
129
88
  /**
130
89
  * Gets the initial definition expressions for all layers and sublayers
131
90
  * that were present when the map was first loaded.
@@ -135,13 +94,44 @@ export declare class MapProvider implements MapInfo {
135
94
  * and sublayerId (if applicable) separated by a semicolon, and the value is the definition expression.
136
95
  */
137
96
  getInitialDefinitionExpressions(onlyInitialLayers: boolean): Record<string, string | null | undefined>;
97
+ /** Gets the property's value for the map/layer. */
98
+ getProperty(name: "mosaicRule"): __esri.MosaicRule;
99
+ getProperty(name: "rasterFunction"): __esri.RasterFunction;
100
+ getProperty(name: "renderingRule"): __esri.RasterFunction;
101
+ getProperty(name: "pixelFilter"): __esri.PixelFilterFunction;
102
+ getProperty(name: string): any;
103
+ /** Gets the scale. */
104
+ getScale(): number | undefined;
105
+ /** Gets the spatial reference. */
106
+ getSpatialReference(): SpatialReference | undefined;
107
+ /** Gets the viewpoint. */
108
+ getViewpoint(): __esri.Viewpoint | undefined;
109
+ /** Gets the visibility for the map/layer. */
110
+ getVisible(): boolean | undefined;
111
+ /** Loads the map/layer. */
112
+ load(): PromiseLike<void>;
113
+ /** Redraws the layer. */
114
+ redraw(): void;
115
+ /** Removes features from the map/layer. */
116
+ removeFeatures(features: __esri.Graphic[]): true | undefined;
117
+ /** Removes the layer. */
118
+ removeLayer(): boolean;
138
119
  /**
139
- * Gets the definition expression for the layer/sublayer that was present when it was first loaded.
140
- * @param layerId The unique id of the layer.
141
- * @param sublayerId (optional) The unique id of the sublayer.
142
- * @returns The definition expression for the layer/sublayer that was present when it was first loaded.
120
+ * Resets the definition expression for the layer or sublayer
121
+ * to its initial state from when the map was loaded.
143
122
  */
144
- getInitialDefinitionExpression(layerId: string, sublayerId?: number): string | null | undefined;
123
+ resetDefinitionExpression(): string | nullish;
124
+ /**
125
+ * Resets the definition expression for all layers and sublayers
126
+ * to their initial state from when the map was loaded.
127
+ * @param onlyInitialLayers If true, only layers that were initially loaded with the map will be reset.
128
+ * Otherwise, all layers currently present in the map will be reset.
129
+ */
130
+ resetDefinitionExpressions: (onlyInitialLayers: boolean) => void;
131
+ /** Sets the definition expression for the map/layer. */
132
+ setDefinitionExpression(clause: string): boolean | undefined;
133
+ /** Sets the extent. */
134
+ setExtent(target: __esri.Geometry[], scale?: number): PromiseLike<void>;
145
135
  /**
146
136
  * Sets the definition expression for the layer/sublayer to be used as its initial state.
147
137
  * This should only be used for layers/sublayers that were added after the map was loaded.
@@ -150,25 +140,35 @@ export declare class MapProvider implements MapInfo {
150
140
  * @param definitionExpression The initial definition expression to store for the layer/sublayer.
151
141
  */
152
142
  setInitialDefinitionExpression(layerId: string, sublayerId: number | undefined, definitionExpression: string | null | undefined): void;
153
- /** Clears features from the map/layer. */
154
- clearFeatures(): boolean;
155
- /** Removes features from the map/layer. */
156
- removeFeatures(features: __esri.Graphic[]): true | undefined;
157
- /** Gets features from the map/layer. */
158
- getFeatures(): __esri.Graphic[] | undefined;
159
- /** Adds features to the layer. */
160
- addFeatures(features: __esri.Graphic[], layerId: string | number): __esri.Graphic[];
161
- /** Removes the layer. */
162
- removeLayer(): boolean;
163
- /** Redraws the layer. */
164
- redraw(): void;
165
- /** Clones this provider. */
166
- clone(): MapProvider;
167
- /** Adds popup to the template. */
168
- static setPopup(template: object, features: __esri.Graphic[]): void;
169
143
  /** Adds popup to the map/layer. */
170
144
  setPopup(template: object): void;
145
+ /** Sets the `mosaicRule` property on the current layer. */
146
+ setProperty(name: "mosaicRule", value: __esri.MosaicRule): boolean;
147
+ /** Sets the `rasterFunction` property on the current layer. */
148
+ setProperty(name: "rasterFunction", value: __esri.RasterFunction): boolean;
149
+ /** Sets the `renderingRule` property on the current layer. */
150
+ setProperty(name: "renderingRule", value: __esri.RasterFunction): boolean;
151
+ /** Sets the `pixelFilter` property on the current layer. */
152
+ setProperty(name: "pixelFilter", value: __esri.PixelFilterFunction): boolean;
153
+ /** Sets the specified property on the current layer. */
154
+ setProperty(name: string, value: any): boolean;
155
+ /** Sets the viewpoint. */
156
+ setViewpoint(target: __esri.Geometry[], viewpoint?: __esri.Viewpoint): PromiseLike<void>;
157
+ /** Sets the visibility for the map/layer. */
158
+ setVisible(visible: boolean): boolean;
171
159
  /** Shows a popup for a given feature collection */
172
160
  showPopup(features: __esri.Graphic[]): void;
161
+ /**
162
+ * Allows sub classes to convert ids to a different format,
163
+ * to suit their implementation.
164
+ * @param id The unique id of a sublayer.
165
+ */
166
+ protected formatSubLayerId(id: any): any;
167
+ /** Loads the layer if applicable. */
168
+ protected loadLayer(): PromiseLike<void> | undefined;
169
+ /** Loads the map if applicable. */
170
+ protected loadMap(): PromiseLike<void> | undefined;
171
+ /** Loads the view if applicable. */
172
+ protected loadView(): PromiseLike<void> | undefined;
173
173
  }
174
174
  export {};