Skip to content

Commit

Permalink
feat(arcgis-rest-types): add editingInfo to ILayerDefinition
Browse files Browse the repository at this point in the history
AFFECTS PACKAGES:
@esri/arcgis-rest-feature-layer
@esri/arcgis-rest-types
  • Loading branch information
rgwozdz committed Nov 9, 2020
1 parent 9dfebbb commit e5467f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/arcgis-rest-feature-layer/test/mocks/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ export const getFeatureServiceResponse: ILayerDefinition = {
supportsDistinct: true,
supportsSqlExpression: true
},
editingInfo: {
lastEditDate: (new Date()).getTime()
},
extent: {
xmin: -1.4842597721444273e7,
ymin: -7250478.783951572,
Expand Down
7 changes: 7 additions & 0 deletions packages/arcgis-rest-types/src/webmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,11 @@ export interface IDrawingInfo {
transparency?: number;
}

export interface IEditingInfo {
/** date of last edit to the layer */
lastEditDate?: number
}

/**
* `ILayerDefinition` can also be imported from the following packages:
*
Expand Down Expand Up @@ -923,6 +928,8 @@ export interface ILayerDefinition extends IHasZM {
drawingInfo?: any;
/** An object defining the rectangular area. */
extent?: IExtent | null;
/** An object defining the editing info (last edit date). */
editingInfo?: IEditingInfo;
/** Feature reductions declutter the screen by hiding features that would otherwise intersect with other features on screen. */
featureReduction?: any;
/** An array of field objects containing information about the attribute fields for the feature collection or layer. */
Expand Down

0 comments on commit e5467f0

Please sign in to comment.