/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { storeFinderFindNearbyDistance } from "../funcs/storeFinderFindNearbyDistance.js"; import { storeFinderFindPlaceNames } from "../funcs/storeFinderFindPlaceNames.js"; import { storeFinderGeocodeGlobalTypeAhead } from "../funcs/storeFinderGeocodeGlobalTypeAhead.js"; import { storeFinderGeocodingGlobal } from "../funcs/storeFinderGeocodingGlobal.js"; import { storeFinderGetMappingUrl } from "../funcs/storeFinderGetMappingUrl.js"; import { storeFinderRetrieveCoordinates } from "../funcs/storeFinderRetrieveCoordinates.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; import { LocationManagement } from "./locationmanagement.js"; export class StoreFinder extends ClientSDK { private _locationManagement?: LocationManagement; get locationManagement(): LocationManagement { return (this._locationManagement ??= new LocationManagement(this._options)); } /** * LocationServices_Geocoding_GlobalTypeAhead */ async geocodeGlobalTypeAhead( request?: operations.TypeAheadGeocodingRequest | undefined, options?: RequestOptions, ): Promise< Array< models.LocationServicesGeocodingGlobalTypeAheadExternalTypeaheadResponseItem > > { return unwrapAsync(storeFinderGeocodeGlobalTypeAhead( this, request, options, )); } /** * LocationServices_Geocoding_Global */ async geocodingGlobal( request?: operations.GeocodingRequest | undefined, options?: RequestOptions, ): Promise< Array > { return unwrapAsync(storeFinderGeocodingGlobal( this, request, options, )); } /** * LocationServices_DistanceFinder_Nearby */ async findNearbyDistance( request?: operations.NearByRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(storeFinderFindNearbyDistance( this, request, options, )); } /** * LocationServices_Mapping_GetUrl */ async getMappingUrl( request?: operations.TileUrlGeneratorRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(storeFinderGetMappingUrl( this, request, options, )); } /** * StoreFinder_Interactive_FindPlaceNames * * @remarks * Retrieves the names of places. */ async findPlaceNames( request: operations.StoreFinderInteractiveFindPlaceNamesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(storeFinderFindPlaceNames( this, request, options, )); } /** * StoreFinder_Interactive_RetrieveCoordinates * * @remarks * Retrieves the coordinates of a place found using the FindPlaceNames service. */ async retrieveCoordinates( request: operations.StoreFinderInteractiveRetrieveCoordinatesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(storeFinderRetrieveCoordinates( this, request, options, )); } }