@vepler/http-sdk
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -12,7 +12,19 @@ export interface QueryPropertyResult { | ||
area?: Array<{ | ||
type: 'point' | 'polygon' | 'multipolygon' | 'postcode' | 'locationId'; | ||
radius?: number; | ||
coordinates?: [number, number]; | ||
postcode?: string; | ||
locationId?: string; | ||
type: 'point'; | ||
radius: number; | ||
coordinates: [number, number]; | ||
} | { | ||
type: 'polygon'; | ||
coordinates: [number, number][]; | ||
} | { | ||
type: 'multipolygon'; | ||
coordinates: [number, number][][]; | ||
} | { | ||
type: 'postcode'; | ||
value: string; | ||
} | { | ||
type: 'outcode'; | ||
value: string; | ||
} | { | ||
locationId: string; | ||
}>; | ||
@@ -19,0 +31,0 @@ attributes?: string[]; |
@@ -53,5 +53,5 @@ "use strict"; | ||
offset: offset, | ||
area: area, | ||
area: area ? area : undefined, | ||
attributes: attributes ? attributes.join(',') : undefined, | ||
query: query, | ||
query: query ? query : undefined, | ||
}, { | ||
@@ -58,0 +58,0 @@ apiKey: config_1.initialisedConfig.apiKey, |
{ | ||
"name": "@vepler/http-sdk", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "The Official Propbar HTTP SDK.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -14,9 +14,27 @@ import { getApiInstance, initialisedConfig } from '../../../config'; | ||
offset?: number; | ||
area?: Array<{ | ||
type: 'point' | 'polygon' | 'multipolygon' | 'postcode' | 'locationId'; | ||
radius?: number; | ||
coordinates?: [number, number]; | ||
postcode?: string; | ||
locationId?: string; | ||
}>; | ||
area?: Array< | ||
| { | ||
type: 'point'; | ||
radius: number; | ||
coordinates: [number, number]; | ||
} | ||
| { | ||
type: 'polygon'; | ||
coordinates: [number, number][]; | ||
} | ||
| { | ||
type: 'multipolygon'; | ||
coordinates: [number, number][][]; | ||
} | ||
| { | ||
type: 'postcode'; | ||
value: string; | ||
} | ||
| { | ||
type: 'outcode'; | ||
value: string; | ||
} | ||
| { | ||
locationId: string; | ||
}> | ||
attributes?: string[]; | ||
@@ -53,5 +71,5 @@ query?: Array<{ | ||
offset, | ||
area, | ||
area: area ? area : undefined, | ||
attributes: attributes ? attributes.join(',') : undefined, | ||
query, | ||
query: query ? query : undefined, | ||
}, | ||
@@ -58,0 +76,0 @@ { |
Sorry, the diff of this file is not supported yet
39759
793