diff --git a/packages/arcgis-rest-routing/src/solveRoute.ts b/packages/arcgis-rest-routing/src/solveRoute.ts index 21c5ff903c..ee613b5e84 100644 --- a/packages/arcgis-rest-routing/src/solveRoute.ts +++ b/packages/arcgis-rest-routing/src/solveRoute.ts @@ -12,7 +12,7 @@ import { import { ARCGIS_ONLINE_ROUTING_URL, IEndpointOptions } from "./helpers"; -export interface ISolveRouteRequestOptions extends IEndpointOptions { +export interface ISolveRouteOptions extends IEndpointOptions { /** * Specify two or more locations between which the route is to be found. */ @@ -75,9 +75,9 @@ function isLocation( * @returns A Promise that will resolve with routes and directions for the request. */ export function solveRoute( - requestOptions: ISolveRouteRequestOptions + requestOptions: ISolveRouteOptions ): Promise { - const options: ISolveRouteRequestOptions = { + const options: ISolveRouteOptions = { endpoint: requestOptions.endpoint || ARCGIS_ONLINE_ROUTING_URL, params: {}, ...requestOptions diff --git a/packages/arcgis-rest-service-admin/src/addTo.ts b/packages/arcgis-rest-service-admin/src/addTo.ts index 966216dd3e..70fa0ef32d 100644 --- a/packages/arcgis-rest-service-admin/src/addTo.ts +++ b/packages/arcgis-rest-service-admin/src/addTo.ts @@ -5,8 +5,7 @@ import { request, cleanUrl } from "@esri/arcgis-rest-request"; import { ILayer, ILayerDefinition, ITable } from "@esri/arcgis-rest-types"; import { IUserRequestOptions } from "@esri/arcgis-rest-auth"; -export interface IAddToServiceDefinitionRequestOptions - extends IUserRequestOptions { +export interface IAddToServiceDefinitionOptions extends IUserRequestOptions { /** * Layers to add */ @@ -47,7 +46,7 @@ export interface IAddToServiceDefinitionResult { */ export function addToServiceDefinition( url: string, - requestOptions: IAddToServiceDefinitionRequestOptions + requestOptions: IAddToServiceDefinitionOptions ): Promise { const adminUrl = `${cleanUrl(url).replace( `/rest/services`, diff --git a/packages/arcgis-rest-service-admin/src/create.ts b/packages/arcgis-rest-service-admin/src/create.ts index 77546ac416..1a363a0f9e 100644 --- a/packages/arcgis-rest-service-admin/src/create.ts +++ b/packages/arcgis-rest-service-admin/src/create.ts @@ -85,7 +85,7 @@ export interface ICreateServiceParams { }; } -export interface ICreateServiceRequestOptions extends IItemCrudRequestOptions { +export interface ICreateServiceOptions extends IItemCrudRequestOptions { /** * A JSON object specifying the properties of the newly-created service. See the [REST * Documentation](https://developers.arcgis.com/rest/users-groups-and-items/working-with-users-groups-and-items.htm) @@ -166,12 +166,12 @@ export interface ICreateServiceResult { * @returns A Promise that resolves with service details once the service has been created */ export function createFeatureService( - requestOptions: ICreateServiceRequestOptions + requestOptions: ICreateServiceOptions ): Promise { const owner = determineOwner(requestOptions); const baseUrl = `${getPortalUrl(requestOptions)}/content/users/${owner}`; const url = `${baseUrl}/createService`; - const options: ICreateServiceRequestOptions = { + const options: ICreateServiceOptions = { ...requestOptions, rawResponse: false };