From 8bdb30bbc65ce0bdda6f0976ad631bb2bc987951 Mon Sep 17 00:00:00 2001 From: john gravois Date: Thu, 11 Oct 2018 16:05:34 -0700 Subject: [PATCH] fix(:musical_keyboard:): more types for new services/layer definitions AFFECTS PACKAGES: @esri/arcgis-rest-common-types @esri/arcgis-rest-feature-service-admin --- packages/arcgis-rest-common-types/src/webmap.ts | 6 ++++++ .../arcgis-rest-feature-service-admin/src/create.ts | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/packages/arcgis-rest-common-types/src/webmap.ts b/packages/arcgis-rest-common-types/src/webmap.ts index 59b32686ae..8af8d51195 100644 --- a/packages/arcgis-rest-common-types/src/webmap.ts +++ b/packages/arcgis-rest-common-types/src/webmap.ts @@ -901,6 +901,12 @@ export interface ILayerDefinition extends IHasZM { */ visibilityField?: string; relationships?: any[]; + editFieldsInfo?: { + creationDateField?: string; + creatorField?: string; + editDateField?: string; + editorField?: string; + }; } export interface ITypeInfoDomain { diff --git a/packages/arcgis-rest-feature-service-admin/src/create.ts b/packages/arcgis-rest-feature-service-admin/src/create.ts index 664e766b54..6ce7089321 100644 --- a/packages/arcgis-rest-feature-service-admin/src/create.ts +++ b/packages/arcgis-rest-feature-service-admin/src/create.ts @@ -69,6 +69,18 @@ export interface ICreateServiceParams { * A JSON object specifying the properties of cross-site scripting prevention. */ xssPreventionInfo?: any; + /** + * Editor tracking info. + */ + editorTrackingInfo?: { + enableEditorTracking?: boolean; + enableOwnershipAccessControl?: boolean; + allowOthersToUpdate?: boolean; + allowOthersToDelete?: boolean; + allowOthersToQuery?: boolean; + allowAnonymousToUpdate?: boolean; + allowAnonymousToDelete?: boolean; + }; } export interface ICreateServiceRequestOptions extends IItemCrudRequestOptions {