diff --git a/src/api/search.ts b/src/api/search.ts index a7478614..186a8a0d 100644 --- a/src/api/search.ts +++ b/src/api/search.ts @@ -114,7 +114,6 @@ class SearchAPI { radius, chains, categories, - groups, limit, } = params; @@ -134,9 +133,6 @@ class SearchAPI { if (Array.isArray(categories)) { categories = categories.join(','); } - if (Array.isArray(groups)) { - groups = groups.join(','); - } const response: any = await Http.request({ method: 'GET', @@ -146,7 +142,6 @@ class SearchAPI { radius, chains, categories, - groups, limit, }, }); diff --git a/src/types.ts b/src/types.ts index bdedfafe..8b3ddfbb 100644 --- a/src/types.ts +++ b/src/types.ts @@ -353,7 +353,6 @@ export interface RadarSearchPlacesParams { radius?: number; chains?: string[] | string; categories?: string[] | string; - groups?: string[] | string; limit?: number; } diff --git a/test/api/search.test.ts b/test/api/search.test.ts index 17864cf0..1f417103 100644 --- a/test/api/search.test.ts +++ b/test/api/search.test.ts @@ -13,7 +13,6 @@ describe('Search', () => { const radius = 100; const chains = ['dunkin', 'sbucks']; const categories = ['coffee-shop']; - const groups = ['airport']; const tags = ['geofence-tag']; const metadata = { 'geofence-metadata-key': 'geofence-metadata-value' }; const layers: RadarGeocodeLayer[] = ['address']; @@ -69,7 +68,7 @@ describe('Search', () => { const near = { latitude, longitude }; - const response = await Search.searchPlaces({ near, radius, chains, categories, groups, limit }) + const response = await Search.searchPlaces({ near, radius, chains, categories, limit }) const validateResponse = getResponseWithDebug(options.debug, placesResponse, placesResponse); expect(response).toEqual(validateResponse); }); diff --git a/test/radar.test.ts b/test/radar.test.ts index 39d66514..d41635b7 100644 --- a/test/radar.test.ts +++ b/test/radar.test.ts @@ -35,7 +35,6 @@ describe('Radar', () => { const radius = 100; const chains = ['dunkin', 'sbucks']; const categories = ['coffee-shop']; - const groups = ['airport']; const tags = ['geofence-tags']; const limit = 50; @@ -311,7 +310,7 @@ describe('Radar', () => { it('should call searchPlaces', async () => { searchStub.mockResolvedValue({ places: [] }); - const response = await Radar.searchPlaces({ radius, chains, categories, groups, limit }); + const response = await Radar.searchPlaces({ radius, chains, categories, limit }); expect(response.places).toEqual([]); }); });