Description
We are setting indexes
through updateServiceDefinition
.
See example 7 on https://developers.arcgis.com/rest/services-reference/update-definition-feature-layer-.htm
However, indexes
is not part of IFeatureServiceDefinition
so we are getting a TS error.
There are a couple of admin properties like indexes
or drawingInfo
that are only available when accessing the feature service through the admin URL (/rest/admin/services
).
If I'm not mistaken, IFeatureServiceDefinition
only seems to have the properties that are accessible through the regular feature service URL (/rest/services
).
How should these properties be handled with regard to IFeatureServiceDefinition
?
Should these properties be added to IFeatureServiceDefinition
or should something like an IAdminFeatureServiceDefinition
be created?
interface IAdminFeatureServiceDefinition extends IFeatureServiceDefinition {
indexes: {
...
}
}
Let me know what you think.