From e5467f0bcc611cd9b928c2f0dd46567794a699c5 Mon Sep 17 00:00:00 2001 From: rgwozdz Date: Mon, 9 Nov 2020 09:48:55 -0800 Subject: [PATCH] feat(arcgis-rest-types): add editingInfo to ILayerDefinition AFFECTS PACKAGES: @esri/arcgis-rest-feature-layer @esri/arcgis-rest-types --- packages/arcgis-rest-feature-layer/test/mocks/service.ts | 3 +++ packages/arcgis-rest-types/src/webmap.ts | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/packages/arcgis-rest-feature-layer/test/mocks/service.ts b/packages/arcgis-rest-feature-layer/test/mocks/service.ts index 4d8e1a3ca7..0f3ccbc37c 100644 --- a/packages/arcgis-rest-feature-layer/test/mocks/service.ts +++ b/packages/arcgis-rest-feature-layer/test/mocks/service.ts @@ -187,6 +187,9 @@ export const getFeatureServiceResponse: ILayerDefinition = { supportsDistinct: true, supportsSqlExpression: true }, + editingInfo: { + lastEditDate: (new Date()).getTime() + }, extent: { xmin: -1.4842597721444273e7, ymin: -7250478.783951572, diff --git a/packages/arcgis-rest-types/src/webmap.ts b/packages/arcgis-rest-types/src/webmap.ts index e5c71d9680..121b23a04b 100644 --- a/packages/arcgis-rest-types/src/webmap.ts +++ b/packages/arcgis-rest-types/src/webmap.ts @@ -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: * @@ -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. */