@ideal-postcodes/sdk 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -23
- package/README.md +16 -18
- package/dist/autocomplete.cjs +1 -146
- package/dist/autocomplete.d.cts +26 -14
- package/dist/autocomplete.d.ts +26 -14
- package/dist/autocomplete.mjs +1 -146
- package/dist/chunk-BNT2VR2B.mjs +6 -0
- package/dist/chunk-HQKXKJXR.cjs +6 -0
- package/dist/chunk-OHO6PZYM.mjs +1 -0
- package/dist/chunk-UO7BIPJH.cjs +1 -0
- package/dist/index.cjs +1 -76
- package/dist/index.d-BuZcXRMe.d.cts +45 -0
- package/dist/index.d-BuZcXRMe.d.ts +45 -0
- package/dist/index.d.cts +6 -12
- package/dist/index.d.ts +6 -12
- package/dist/index.mjs +1 -76
- package/dist/preact-query.cjs +1 -497
- package/dist/preact-query.d.cts +379 -123
- package/dist/preact-query.d.ts +379 -123
- package/dist/preact-query.mjs +1 -497
- package/dist/react-query.cjs +1 -497
- package/dist/react-query.d.cts +378 -122
- package/dist/react-query.d.ts +378 -122
- package/dist/react-query.mjs +1 -497
- package/dist/sdk.gen-C6G6f1JU.d.ts +420 -0
- package/dist/sdk.gen-CMX5dsNg.d.cts +420 -0
- package/dist/{types.gen-l7tYP1ZJ.d.cts → types.gen-Dmx_l_fj.d.cts} +4612 -2685
- package/dist/{types.gen-l7tYP1ZJ.d.ts → types.gen-Dmx_l_fj.d.ts} +4612 -2685
- package/package.json +71 -38
- package/dist/autocomplete.cjs.map +0 -1
- package/dist/autocomplete.mjs.map +0 -1
- package/dist/chunk-AVMJGCHZ.mjs +0 -913
- package/dist/chunk-AVMJGCHZ.mjs.map +0 -1
- package/dist/chunk-ZZUZHG5D.cjs +0 -913
- package/dist/chunk-ZZUZHG5D.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/preact-query.cjs.map +0 -1
- package/dist/preact-query.mjs.map +0 -1
- package/dist/react-query.cjs.map +0 -1
- package/dist/react-query.mjs.map +0 -1
- package/dist/sdk.gen-C45EbTVQ.d.cts +0 -302
- package/dist/sdk.gen-_z1PNdoT.d.ts +0 -302
package/dist/preact-query.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { dataTagSymbol, dataTagErrorSymbol } from "@tanstack/preact-query";
|
|
2
|
+
import * as _tanstack_react_query from '@tanstack/preact-query';
|
|
2
3
|
import * as _tanstack_preact_query from '@tanstack/preact-query';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { O as Options } from './sdk.gen-
|
|
4
|
+
import { UseMutationOptions, InfiniteData } from '@tanstack/preact-query';
|
|
5
|
+
import { d as AddressCleanseData, g as AddressCleanseResponse, e as AddressCleanseError, n as AddressesData, l as AddressResponse, o as AddressesError, am as CreateConfigData, ap as CreateConfigResponse, an as CreateConfigError, ar as CreateLicenseeData, au as CreateLicenseeResponse, as as CreateLicenseeError, ay as DeleteConfigData, aB as DeleteConfigResponse, az as DeleteConfigError, aD as DeleteLicenseeData, aG as DeleteLicenseeResponse, aE as DeleteLicenseeError, aO as EmailValidationData, aN as EmailResponse, aU as ErrorResponse, F as FindAddressData, K as AutocompleteResponse, aZ as FindPlaceData, cg as PlaceResponse, bf as KeyAvailabilityData, I as ApiKeyResponse, bk as KeyDetailsData, z as ApiKeyDetailsResponse, bp as KeyLogsData, bu as KeyUsageData, J as ApiKeyUsageResponse, bJ as ListConfigsData, ae as ConfigsResponse, bO as ListLicenseesData, bH as LicenseesResponse, c6 as PhoneNumberValidationData, c5 as PhoneNumberResponse, ct as PostcodesData, cq as PostcodeResponse, cu as PostcodesError, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cD as ResolveAddressData, b5 as GbrResolveAddressResponse, cH as ResolvePlaceData, cK as ResolvePlaceResponse, cN as RetrieveConfigData, ac as ConfigResponse, cO as RetrieveConfigError, cS as RetrieveLicenseeData, bG as LicenseeResponse, d4 as UpdateConfigData, d7 as UpdateConfigResponse, d5 as UpdateConfigError, d9 as UpdateKeyDetailsData, dc as UpdateKeyDetailsResponse, da as UpdateKeyDetailsError, de as UpdateLicenseeData, dh as UpdateLicenseeResponse, df as UpdateLicenseeError } from './types.gen-Dmx_l_fj.js';
|
|
6
|
+
import { O as Options } from './sdk.gen-C6G6f1JU.js';
|
|
6
7
|
|
|
7
8
|
type QueryKey<TOptions extends Options> = [
|
|
8
9
|
Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
@@ -21,11 +22,19 @@ declare const postcodesQueryKey: (options: Options<PostcodesData>) => [Pick<Opti
|
|
|
21
22
|
*
|
|
22
23
|
* Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
|
|
23
24
|
*
|
|
24
|
-
*
|
|
25
|
+
* Each request looks up one postcode. To extract the addresses for several postcodes, send one request per postcode.
|
|
26
|
+
*
|
|
27
|
+
* Use it to power postcode driven address searches, like [Postcode Lookup](/docs/postcode-lookup/).
|
|
28
|
+
*
|
|
29
|
+
* Postcode lookup covers the United Kingdom, the Republic of Ireland, the Netherlands and Singapore. The API detects the format of the postcode you submit. UK and Irish postcodes are searched by default. For a Dutch or Singapore postcode, set `context` to `NLD` or `SGP`, or to `GLOBAL` to accept any supported format.
|
|
30
|
+
*
|
|
31
|
+
* UK postcodes need PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium on your key. Eircodes need ECAD or ECAF. Dutch postcodes need Kadaster. Singapore postcodes need HERE Asia Pacific. Without a matching licence the request is rejected.
|
|
32
|
+
*
|
|
33
|
+
* An unfound postcode costs no lookup. A postcode that returns addresses costs one.
|
|
25
34
|
*
|
|
26
35
|
* ## Postcode Not Found
|
|
27
36
|
*
|
|
28
|
-
*
|
|
37
|
+
* Invalid postcodes do not affect your lookup balance. The API returns a `404` response with this body:
|
|
29
38
|
*
|
|
30
39
|
* ```json
|
|
31
40
|
* {
|
|
@@ -37,15 +46,24 @@ declare const postcodesQueryKey: (options: Options<PostcodesData>) => [Pick<Opti
|
|
|
37
46
|
*
|
|
38
47
|
* ### Suggestions
|
|
39
48
|
*
|
|
40
|
-
* If a postcode cannot be found, the API
|
|
49
|
+
* If a postcode cannot be found, the API returns up to 5 of the closest matching postcodes. It corrects common errors first (e.g. mixing up `O` and `0` or `I` and `1`).
|
|
41
50
|
*
|
|
42
|
-
* If the suggestion list is small (fewer than 3),
|
|
51
|
+
* If the suggestion list is small (fewer than 3), the correct postcode is likely to be among them. Notify the user or trigger new searches immediately.
|
|
43
52
|
*
|
|
44
|
-
* The suggestion list
|
|
53
|
+
* The suggestion list is empty if the postcode has deviated too far from a valid postcode format.
|
|
45
54
|
*
|
|
46
55
|
* ## Multiple Residence
|
|
47
56
|
*
|
|
48
|
-
* A small number of postcodes
|
|
57
|
+
* A small number of postcodes return more than 100 premises. The API returns 100 addresses per page, so use `page` to paginate the result set.
|
|
58
|
+
*
|
|
59
|
+
* ## Testing
|
|
60
|
+
*
|
|
61
|
+
* - **ID1 1QD** Returns a successful postcode lookup response `2000`
|
|
62
|
+
* - **ID1 KFA** Returns "postcode not found" error `4040`
|
|
63
|
+
* - **ID1 CLIP** Returns "no lookups remaining" error `4020`
|
|
64
|
+
* - **ID1 CHOP** Returns "daily (or individual) lookup limit breached" error `4021`
|
|
65
|
+
*
|
|
66
|
+
* Test requests undergo the usual authentication and restriction rules. They surface any issues during implementation and do not cost you a lookup.
|
|
49
67
|
*
|
|
50
68
|
*/
|
|
51
69
|
declare const postcodesOptions: (options: Options<PostcodesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PostcodeResponse, PostcodesError, PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -74,11 +92,19 @@ declare const postcodesInfiniteQueryKey: (options: Options<PostcodesData>) => Qu
|
|
|
74
92
|
*
|
|
75
93
|
* Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
|
|
76
94
|
*
|
|
77
|
-
*
|
|
95
|
+
* Each request looks up one postcode. To extract the addresses for several postcodes, send one request per postcode.
|
|
96
|
+
*
|
|
97
|
+
* Use it to power postcode driven address searches, like [Postcode Lookup](/docs/postcode-lookup/).
|
|
98
|
+
*
|
|
99
|
+
* Postcode lookup covers the United Kingdom, the Republic of Ireland, the Netherlands and Singapore. The API detects the format of the postcode you submit. UK and Irish postcodes are searched by default. For a Dutch or Singapore postcode, set `context` to `NLD` or `SGP`, or to `GLOBAL` to accept any supported format.
|
|
100
|
+
*
|
|
101
|
+
* UK postcodes need PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium on your key. Eircodes need ECAD or ECAF. Dutch postcodes need Kadaster. Singapore postcodes need HERE Asia Pacific. Without a matching licence the request is rejected.
|
|
102
|
+
*
|
|
103
|
+
* An unfound postcode costs no lookup. A postcode that returns addresses costs one.
|
|
78
104
|
*
|
|
79
105
|
* ## Postcode Not Found
|
|
80
106
|
*
|
|
81
|
-
*
|
|
107
|
+
* Invalid postcodes do not affect your lookup balance. The API returns a `404` response with this body:
|
|
82
108
|
*
|
|
83
109
|
* ```json
|
|
84
110
|
* {
|
|
@@ -90,15 +116,24 @@ declare const postcodesInfiniteQueryKey: (options: Options<PostcodesData>) => Qu
|
|
|
90
116
|
*
|
|
91
117
|
* ### Suggestions
|
|
92
118
|
*
|
|
93
|
-
* If a postcode cannot be found, the API
|
|
119
|
+
* If a postcode cannot be found, the API returns up to 5 of the closest matching postcodes. It corrects common errors first (e.g. mixing up `O` and `0` or `I` and `1`).
|
|
94
120
|
*
|
|
95
|
-
* If the suggestion list is small (fewer than 3),
|
|
121
|
+
* If the suggestion list is small (fewer than 3), the correct postcode is likely to be among them. Notify the user or trigger new searches immediately.
|
|
96
122
|
*
|
|
97
|
-
* The suggestion list
|
|
123
|
+
* The suggestion list is empty if the postcode has deviated too far from a valid postcode format.
|
|
98
124
|
*
|
|
99
125
|
* ## Multiple Residence
|
|
100
126
|
*
|
|
101
|
-
* A small number of postcodes
|
|
127
|
+
* A small number of postcodes return more than 100 premises. The API returns 100 addresses per page, so use `page` to paginate the result set.
|
|
128
|
+
*
|
|
129
|
+
* ## Testing
|
|
130
|
+
*
|
|
131
|
+
* - **ID1 1QD** Returns a successful postcode lookup response `2000`
|
|
132
|
+
* - **ID1 KFA** Returns "postcode not found" error `4040`
|
|
133
|
+
* - **ID1 CLIP** Returns "no lookups remaining" error `4020`
|
|
134
|
+
* - **ID1 CHOP** Returns "daily (or individual) lookup limit breached" error `4021`
|
|
135
|
+
*
|
|
136
|
+
* Test requests undergo the usual authentication and restriction rules. They surface any issues during implementation and do not cost you a lookup.
|
|
102
137
|
*
|
|
103
138
|
*/
|
|
104
139
|
declare const postcodesInfiniteOptions: (options: Options<PostcodesData>) => _tanstack_preact_query.UseInfiniteQueryOptions<PostcodeResponse, PostcodesError, InfiniteData<PostcodeResponse, unknown>, QueryKey<Options<PostcodesData>>, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -129,14 +164,13 @@ declare const keyAvailabilityQueryKey: (options: Options<KeyAvailabilityData>) =
|
|
|
129
164
|
/**
|
|
130
165
|
* Availability
|
|
131
166
|
*
|
|
132
|
-
* Returns public information on
|
|
167
|
+
* Returns public information on an API Key: whether it can be used right now (`available`), the search contexts the key is licensed for (`contexts`) and the context that best matches the caller's IP address (`context`).
|
|
168
|
+
*
|
|
169
|
+
* The endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no `user_token`.
|
|
133
170
|
*
|
|
134
|
-
*
|
|
135
|
-
* - Determine if the key is currently usable via the `available` property
|
|
136
|
-
* - Determine available contexts for an API Key
|
|
137
|
-
* - Identify the currently likely context of a user given their location
|
|
171
|
+
* A key that exists but cannot be used, because it has no lookups left or has breached a limit, returns `200` with `"available": false`. An unknown or malformed key returns an error.
|
|
138
172
|
*
|
|
139
|
-
*
|
|
173
|
+
* Supply a valid `user_token` and the endpoint returns the key's private details instead, as `GET /keys/{key}/details` does. A `user_token` that does not own the key is rejected.
|
|
140
174
|
*
|
|
141
175
|
*/
|
|
142
176
|
declare const keyAvailabilityOptions: (options: Options<KeyAvailabilityData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyResponse, ErrorResponse, ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -167,8 +201,7 @@ declare const keyDetailsQueryKey: (options: Options<KeyDetailsData>) => [Pick<Op
|
|
|
167
201
|
/**
|
|
168
202
|
* Details
|
|
169
203
|
*
|
|
170
|
-
* Returns private data on
|
|
171
|
-
*
|
|
204
|
+
* Returns private data on a key: remaining lookups, licensed datasets, usage limits, notification settings and the search contexts the key can serve.
|
|
172
205
|
*/
|
|
173
206
|
declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyDetailsResponse, ErrorResponse, ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
174
207
|
_id: string;
|
|
@@ -193,7 +226,7 @@ declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack
|
|
|
193
226
|
/**
|
|
194
227
|
* Update Details
|
|
195
228
|
*
|
|
196
|
-
*
|
|
229
|
+
* Updates a key's settings and returns its private details. Only the fields you send change. A key on an unlimited plan ignores changes to `datasets`, `daily_limit` and `monthly_limit`.
|
|
197
230
|
*/
|
|
198
231
|
declare const updateKeyDetailsMutation: (options?: Partial<Options<UpdateKeyDetailsData>>) => UseMutationOptions<UpdateKeyDetailsResponse, UpdateKeyDetailsError, Options<UpdateKeyDetailsData>>;
|
|
199
232
|
declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -204,18 +237,14 @@ declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Option
|
|
|
204
237
|
/**
|
|
205
238
|
* Usage Stats
|
|
206
239
|
*
|
|
207
|
-
* Reports the number of lookups consumed
|
|
208
|
-
*
|
|
209
|
-
* A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
|
|
210
|
-
*
|
|
211
|
-
* If no `start` time is provided, the start time will be set to 21 days prior to the current time.
|
|
240
|
+
* Reports the number of lookups a key consumed over a date range, as a total and a daily breakdown.
|
|
212
241
|
*
|
|
213
|
-
*
|
|
242
|
+
* The range defaults to the last 21 days. `start` and `end` take UNIX timestamps in milliseconds, and `end` defaults to the current time. The maximum range is 90 days.
|
|
214
243
|
*
|
|
215
|
-
*
|
|
244
|
+
* Query at most three tags at once.
|
|
216
245
|
*
|
|
217
246
|
*/
|
|
218
|
-
declare const keyUsageOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyUsageResponse,
|
|
247
|
+
declare const keyUsageOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyUsageResponse, ErrorResponse, ApiKeyUsageResponse, [Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
219
248
|
_id: string;
|
|
220
249
|
_infinite?: boolean;
|
|
221
250
|
tags?: ReadonlyArray<string>;
|
|
@@ -232,25 +261,21 @@ declare const keyUsageOptions: (options: Options<KeyUsageData>) => _tanstack_rea
|
|
|
232
261
|
tags?: ReadonlyArray<string>;
|
|
233
262
|
}] & {
|
|
234
263
|
[dataTagSymbol]: ApiKeyUsageResponse;
|
|
235
|
-
[dataTagErrorSymbol]:
|
|
264
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
236
265
|
};
|
|
237
266
|
};
|
|
238
267
|
declare const keyUsageInfiniteQueryKey: (options: Options<KeyUsageData>) => QueryKey<Options<KeyUsageData>>;
|
|
239
268
|
/**
|
|
240
269
|
* Usage Stats
|
|
241
270
|
*
|
|
242
|
-
* Reports the number of lookups consumed
|
|
243
|
-
*
|
|
244
|
-
* A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
|
|
271
|
+
* Reports the number of lookups a key consumed over a date range, as a total and a daily breakdown.
|
|
245
272
|
*
|
|
246
|
-
*
|
|
273
|
+
* The range defaults to the last 21 days. `start` and `end` take UNIX timestamps in milliseconds, and `end` defaults to the current time. The maximum range is 90 days.
|
|
247
274
|
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
* Append `tags` to scope the number of lookups to those with matching tag values. E.g. `tags=foo,bar` will only count transactions that match `foo` and `bar`.
|
|
275
|
+
* Query at most three tags at once.
|
|
251
276
|
*
|
|
252
277
|
*/
|
|
253
|
-
declare const keyUsageInfiniteOptions: (options: Options<KeyUsageData>) => _tanstack_preact_query.UseInfiniteQueryOptions<ApiKeyUsageResponse,
|
|
278
|
+
declare const keyUsageInfiniteOptions: (options: Options<KeyUsageData>) => _tanstack_preact_query.UseInfiniteQueryOptions<ApiKeyUsageResponse, ErrorResponse, InfiniteData<ApiKeyUsageResponse, unknown>, QueryKey<Options<KeyUsageData>>, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
254
279
|
_id: string;
|
|
255
280
|
_infinite?: boolean;
|
|
256
281
|
tags?: ReadonlyArray<string>;
|
|
@@ -267,7 +292,7 @@ declare const keyUsageInfiniteOptions: (options: Options<KeyUsageData>) => _tans
|
|
|
267
292
|
} & {
|
|
268
293
|
queryKey: QueryKey<Options<KeyUsageData>> & {
|
|
269
294
|
[dataTagSymbol]: InfiniteData<ApiKeyUsageResponse, unknown>;
|
|
270
|
-
[dataTagErrorSymbol]:
|
|
295
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
271
296
|
};
|
|
272
297
|
};
|
|
273
298
|
declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -278,30 +303,40 @@ declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<
|
|
|
278
303
|
/**
|
|
279
304
|
* Logs (CSV)
|
|
280
305
|
*
|
|
281
|
-
*
|
|
306
|
+
* Returns a CSV of the paid lookups made on a key, with the information recorded against each one.
|
|
307
|
+
*
|
|
308
|
+
* This method requires a `user_token`, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
|
|
282
309
|
*
|
|
283
|
-
*
|
|
310
|
+
* You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
|
|
284
311
|
*
|
|
285
|
-
*
|
|
312
|
+
* The `Content-Type` returned is CSV (text/csv). For a non-200 response it reverts to JSON, with the error code and message in the body.
|
|
286
313
|
*
|
|
287
|
-
* ##
|
|
314
|
+
* ## CSV Format
|
|
288
315
|
*
|
|
289
|
-
*
|
|
316
|
+
* The CSV has no header row. Columns, in order:
|
|
290
317
|
*
|
|
291
|
-
*
|
|
318
|
+
* 1. Timestamp (ISO 8601)
|
|
319
|
+
* 2. IP address the request was received from
|
|
320
|
+
* 3. Search term
|
|
321
|
+
* 4. URL the request originated from
|
|
322
|
+
* 5. Lookup type
|
|
323
|
+
* 6. Tags
|
|
324
|
+
* 7. Lookups consumed
|
|
325
|
+
* 8. Licensee name (sublicensing keys only)
|
|
326
|
+
* 9. Source IP address
|
|
292
327
|
*
|
|
293
|
-
*
|
|
328
|
+
* The source IP column carries the address forwarded in the `IDPC-Source-IP` header. It is only recorded for keys with IP address forwarding enabled, and only when the header holds a valid IP address. It is empty otherwise.
|
|
294
329
|
*
|
|
295
330
|
* ## Data Redaction
|
|
296
331
|
*
|
|
297
|
-
* Personally Identifiable Data (PII)
|
|
332
|
+
* We redact Personally Identifiable Data (PII) in your usage log (including IP, source IP, search term and URL data) weekly.
|
|
298
333
|
*
|
|
299
|
-
* By default
|
|
334
|
+
* By default we redact PII older than 28 days. You can change this period from your dashboard.
|
|
300
335
|
*
|
|
301
|
-
*
|
|
336
|
+
* Set the interval to `0` days to prevent PII collection altogether.
|
|
302
337
|
*
|
|
303
338
|
*/
|
|
304
|
-
declare const keyLogsOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<string,
|
|
339
|
+
declare const keyLogsOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<string, ErrorResponse, string, [Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
305
340
|
_id: string;
|
|
306
341
|
_infinite?: boolean;
|
|
307
342
|
tags?: ReadonlyArray<string>;
|
|
@@ -318,37 +353,47 @@ declare const keyLogsOptions: (options: Options<KeyLogsData>) => _tanstack_react
|
|
|
318
353
|
tags?: ReadonlyArray<string>;
|
|
319
354
|
}] & {
|
|
320
355
|
[dataTagSymbol]: string;
|
|
321
|
-
[dataTagErrorSymbol]:
|
|
356
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
322
357
|
};
|
|
323
358
|
};
|
|
324
359
|
declare const keyLogsInfiniteQueryKey: (options: Options<KeyLogsData>) => QueryKey<Options<KeyLogsData>>;
|
|
325
360
|
/**
|
|
326
361
|
* Logs (CSV)
|
|
327
362
|
*
|
|
328
|
-
*
|
|
363
|
+
* Returns a CSV of the paid lookups made on a key, with the information recorded against each one.
|
|
364
|
+
*
|
|
365
|
+
* This method requires a `user_token`, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
|
|
329
366
|
*
|
|
330
|
-
*
|
|
367
|
+
* You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
|
|
331
368
|
*
|
|
332
|
-
*
|
|
369
|
+
* The `Content-Type` returned is CSV (text/csv). For a non-200 response it reverts to JSON, with the error code and message in the body.
|
|
333
370
|
*
|
|
334
|
-
* ##
|
|
371
|
+
* ## CSV Format
|
|
335
372
|
*
|
|
336
|
-
*
|
|
373
|
+
* The CSV has no header row. Columns, in order:
|
|
337
374
|
*
|
|
338
|
-
*
|
|
375
|
+
* 1. Timestamp (ISO 8601)
|
|
376
|
+
* 2. IP address the request was received from
|
|
377
|
+
* 3. Search term
|
|
378
|
+
* 4. URL the request originated from
|
|
379
|
+
* 5. Lookup type
|
|
380
|
+
* 6. Tags
|
|
381
|
+
* 7. Lookups consumed
|
|
382
|
+
* 8. Licensee name (sublicensing keys only)
|
|
383
|
+
* 9. Source IP address
|
|
339
384
|
*
|
|
340
|
-
*
|
|
385
|
+
* The source IP column carries the address forwarded in the `IDPC-Source-IP` header. It is only recorded for keys with IP address forwarding enabled, and only when the header holds a valid IP address. It is empty otherwise.
|
|
341
386
|
*
|
|
342
387
|
* ## Data Redaction
|
|
343
388
|
*
|
|
344
|
-
* Personally Identifiable Data (PII)
|
|
389
|
+
* We redact Personally Identifiable Data (PII) in your usage log (including IP, source IP, search term and URL data) weekly.
|
|
345
390
|
*
|
|
346
|
-
* By default
|
|
391
|
+
* By default we redact PII older than 28 days. You can change this period from your dashboard.
|
|
347
392
|
*
|
|
348
|
-
*
|
|
393
|
+
* Set the interval to `0` days to prevent PII collection altogether.
|
|
349
394
|
*
|
|
350
395
|
*/
|
|
351
|
-
declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tanstack_preact_query.UseInfiniteQueryOptions<string,
|
|
396
|
+
declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tanstack_preact_query.UseInfiniteQueryOptions<string, ErrorResponse, InfiniteData<string, unknown>, QueryKey<Options<KeyLogsData>>, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
352
397
|
_id: string;
|
|
353
398
|
_infinite?: boolean;
|
|
354
399
|
tags?: ReadonlyArray<string>;
|
|
@@ -365,27 +410,30 @@ declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tansta
|
|
|
365
410
|
} & {
|
|
366
411
|
queryKey: QueryKey<Options<KeyLogsData>> & {
|
|
367
412
|
[dataTagSymbol]: InfiniteData<string, unknown>;
|
|
368
|
-
[dataTagErrorSymbol]:
|
|
413
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
369
414
|
};
|
|
370
415
|
};
|
|
371
416
|
/**
|
|
372
417
|
* Cleanse Address
|
|
373
418
|
*
|
|
374
|
-
*
|
|
419
|
+
* Returns the closest matching address for a freeform address input, with Match Level indicators describing how closely each element of the suggested address matches the input. The more impaired the input address, the harder it is to cleanse.
|
|
420
|
+
*
|
|
421
|
+
* A cleanse that returns a match costs a lookup. A no-match response is free.
|
|
375
422
|
*
|
|
376
423
|
* ## Confidence Score
|
|
377
424
|
*
|
|
378
|
-
*
|
|
425
|
+
* Each incorrect, missing or misspelled element subtracts from the overall confidence score.
|
|
379
426
|
*
|
|
380
427
|
* ### Deciding on an Acceptable Confidence Score Threshold
|
|
381
428
|
*
|
|
382
|
-
*
|
|
429
|
+
* Inputs differ widely between address cleanse projects. Within a project, though, they tend to repeat the same errors. Some datasets are keyed in by hand and prone to typos. Others have a persistently missing datapoint such as organisation name or postcode. There is no absolute Confidence Score threshold. Set the acceptable score project by project, based on the systematic errors in the data and your business goals.
|
|
430
|
+
*
|
|
431
|
+
* To set a threshold, load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top to bottom shows matches from best to worst. As you reach the lower quality searches you can judge roughly:
|
|
383
432
|
*
|
|
384
|
-
* When determining an acceptable Confidence Score threshold you should load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top-to-bottom you will be able to observe matches from best to worst. As you start to hit the lower quality searches, you will be able to roughly determine:
|
|
385
433
|
* - Which confidence scores indicate ambiguous matches (i.e. up to building level only)
|
|
386
434
|
* - Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)
|
|
387
435
|
*
|
|
388
|
-
* Depending on your business goals, you can also use the Match Levels to determine an acceptable match.
|
|
436
|
+
* Depending on your business goals, you can also use the Match Levels to determine an acceptable match. You may need to match only up to the thoroughfare or building name, or accurate organisation names may matter.
|
|
389
437
|
*
|
|
390
438
|
*/
|
|
391
439
|
declare const addressCleanseMutation: (options?: Partial<Options<AddressCleanseData>>) => UseMutationOptions<AddressCleanseResponse, AddressCleanseError, Options<AddressCleanseData>>;
|
|
@@ -397,9 +445,9 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
|
|
|
397
445
|
/**
|
|
398
446
|
* Find Address
|
|
399
447
|
*
|
|
400
|
-
*
|
|
448
|
+
* Returns address suggestions for a partial address, ordered by relevance. Use it to power real-time address autofill.
|
|
401
449
|
*
|
|
402
|
-
* Consider
|
|
450
|
+
* Consider our address autocomplete JavaScript libraries, which add address lookup to a form without calling this API directly.
|
|
403
451
|
*
|
|
404
452
|
* ## API Usage
|
|
405
453
|
*
|
|
@@ -408,38 +456,44 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
|
|
|
408
456
|
* 1. Fetch address suggestions with `/autocomplete/addresses`
|
|
409
457
|
* 2. Acquire the complete address using the ID from the suggestion
|
|
410
458
|
*
|
|
411
|
-
* Step 2
|
|
459
|
+
* Step 2 decrements your lookup balance.
|
|
460
|
+
*
|
|
461
|
+
* Step 1 is not a free standalone resource. We rate limit and then suspend integrations that repeatedly make autocomplete requests without a paid Step 2 request.
|
|
462
|
+
*
|
|
463
|
+
* ## Context
|
|
412
464
|
*
|
|
413
|
-
*
|
|
465
|
+
* `context` limits the search, usually to a single country. It defaults to `GBR`, and an unrecognised context falls back to that default. If your key is not licensed for the datasets covering the context, the request is rejected.
|
|
466
|
+
*
|
|
467
|
+
* Querying a full postcode within a supported context returns the entire address list for that postcode.
|
|
414
468
|
*
|
|
415
469
|
* ## Query Filters
|
|
416
470
|
*
|
|
417
|
-
* Refine results by appending filters to your querystring, e.g
|
|
471
|
+
* Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`. Invalid filters return an empty set without affecting your lookup count.
|
|
418
472
|
*
|
|
419
|
-
* To apply multiple filter terms, use a comma-separated list, e.g
|
|
473
|
+
* To apply multiple filter terms, use a comma-separated list, e.g. `postcode_outward=e1,e2,e3` combines result sets for E1, E2 and E3. Unless otherwise specified, all filters support multiple terms.
|
|
420
474
|
*
|
|
421
|
-
*
|
|
475
|
+
* Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
|
|
422
476
|
*
|
|
423
477
|
* ## Address Bias
|
|
424
478
|
*
|
|
425
479
|
* Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
|
|
426
480
|
*
|
|
427
|
-
* For example, use `bias_postcode_area=SW,SE` to
|
|
481
|
+
* For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
|
|
428
482
|
*
|
|
429
483
|
* Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
|
|
430
484
|
*
|
|
431
485
|
* ## Suggestion Format
|
|
432
486
|
*
|
|
433
|
-
* The suggestion format is subject to change. We recommend using the suggestion as-is to
|
|
487
|
+
* The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
|
|
434
488
|
*
|
|
435
489
|
* ## Rate Limiting and Cost
|
|
436
490
|
*
|
|
437
|
-
* The rate limit
|
|
491
|
+
* The default rate limit is 3,000 requests per 5 minutes, counted per key and IP address. The `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers report where you stand.
|
|
438
492
|
*
|
|
439
|
-
* Autocomplete API usage does not impact your balance, but resolving a suggestion to a full address requires a paid request. Autocomplete requests without subsequent paid requests may
|
|
493
|
+
* Autocomplete API usage does not impact your balance, but resolving a suggestion to a full address requires a paid request. Autocomplete requests without subsequent paid requests may lead to rate limiting or suspension.
|
|
440
494
|
*
|
|
441
495
|
*/
|
|
442
|
-
declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<AutocompleteResponse,
|
|
496
|
+
declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<AutocompleteResponse, ErrorResponse, AutocompleteResponse, [Pick<Options<FindAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
443
497
|
_id: string;
|
|
444
498
|
_infinite?: boolean;
|
|
445
499
|
tags?: ReadonlyArray<string>;
|
|
@@ -456,7 +510,7 @@ declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanst
|
|
|
456
510
|
tags?: ReadonlyArray<string>;
|
|
457
511
|
}] & {
|
|
458
512
|
[dataTagSymbol]: AutocompleteResponse;
|
|
459
|
-
[dataTagErrorSymbol]:
|
|
513
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
460
514
|
};
|
|
461
515
|
};
|
|
462
516
|
declare const resolveAddressQueryKey: (options: Options<ResolveAddressData>) => [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -467,9 +521,13 @@ declare const resolveAddressQueryKey: (options: Options<ResolveAddressData>) =>
|
|
|
467
521
|
/**
|
|
468
522
|
* Resolve Address
|
|
469
523
|
*
|
|
470
|
-
*
|
|
524
|
+
* Returns the complete address for an autocomplete suggestion, identified by its address ID.
|
|
525
|
+
*
|
|
526
|
+
* This is the step of the autocomplete flow that costs a lookup. Fetching suggestions is free.
|
|
471
527
|
*
|
|
472
|
-
*
|
|
528
|
+
* The API returns resolved addresses, including addresses outside the UK, in a UK format (up to 3 address lines) using UK nomenclature such as postcode and county.
|
|
529
|
+
*
|
|
530
|
+
* An ID that matches no address returns `404`.
|
|
473
531
|
*
|
|
474
532
|
*/
|
|
475
533
|
declare const resolveAddressOptions: (options: Options<ResolveAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<GbrResolveAddressResponse, ErrorResponse, GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -492,6 +550,190 @@ declare const resolveAddressOptions: (options: Options<ResolveAddressData>) => _
|
|
|
492
550
|
[dataTagErrorSymbol]: ErrorResponse;
|
|
493
551
|
};
|
|
494
552
|
};
|
|
553
|
+
declare const addressesQueryKey: (options?: Options<AddressesData>) => [Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
554
|
+
_id: string;
|
|
555
|
+
_infinite?: boolean;
|
|
556
|
+
tags?: ReadonlyArray<string>;
|
|
557
|
+
}];
|
|
558
|
+
/**
|
|
559
|
+
* Extract Addresses
|
|
560
|
+
*
|
|
561
|
+
* Returns a list of UK addresses matching the query, ordered by relevance score. `limit` defaults to 10 and caps at 100. `page` defaults to 0.
|
|
562
|
+
*
|
|
563
|
+
* You may only extract a single address from each request. To extract multiple addresses, you must perform an individual request for each address.
|
|
564
|
+
*
|
|
565
|
+
* If the query is a valid postcode, the API returns the whole address list for that postcode and raises the limit to 100. Use `page` to reach the rest of a postcode holding more than 100 premises. You cannot page beyond 10,000 results.
|
|
566
|
+
*
|
|
567
|
+
* Your key needs at least one of PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium. Without one the request is rejected.
|
|
568
|
+
*
|
|
569
|
+
* A request that returns at least one address costs a lookup. Empty result sets are free.
|
|
570
|
+
*
|
|
571
|
+
* ## Reverse Geocoding
|
|
572
|
+
*
|
|
573
|
+
* Return the addresses around a point with the `lon=` and `lat=` querystring arguments. The search radius is 100m and the API sorts addresses by distance from the point.
|
|
574
|
+
*
|
|
575
|
+
* ## Filters
|
|
576
|
+
*
|
|
577
|
+
* Narrow your results by adding filters to your query string that correspond with an address attribute.
|
|
578
|
+
*
|
|
579
|
+
* For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
580
|
+
*
|
|
581
|
+
* If a filter term is invalid, e.g. `postcode=SW1A2AAA`, the API returns an empty result set and charges no lookup.
|
|
582
|
+
*
|
|
583
|
+
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
|
|
584
|
+
*
|
|
585
|
+
* All filters can accept multiple terms unless stated otherwise below.
|
|
586
|
+
*
|
|
587
|
+
* Multiple filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
|
|
588
|
+
*
|
|
589
|
+
* A combined maximum of 8 terms is allowed across all filters.
|
|
590
|
+
*
|
|
591
|
+
* ## Biases
|
|
592
|
+
*
|
|
593
|
+
* You can boost address results that correspond with a given address attribute. All bias searches are prefixed with `bias_`.
|
|
594
|
+
*
|
|
595
|
+
* Biased searches, unlike filtered searches, still allow unmatched addresses to appear. They rank lower.
|
|
596
|
+
*
|
|
597
|
+
* For instance, you can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
|
|
598
|
+
*
|
|
599
|
+
* If a bias term is invalid, e.g. `bias_postcode=SW1A2AAA`, no bias is applied.
|
|
600
|
+
*
|
|
601
|
+
* You may scope using multiple terms for the same bias with a comma separated list of terms. E.g. Prefer results in the `E1`, `E2` and `E3` outward codes: `bias_postcode_outward=e1,e2,e3`.
|
|
602
|
+
*
|
|
603
|
+
* All biases can accept multiple terms unless stated otherwise below.
|
|
604
|
+
*
|
|
605
|
+
* A combined maximum of 5 terms is allowed across all biases.
|
|
606
|
+
*
|
|
607
|
+
* ## Search by Postcode and Building Name or Number
|
|
608
|
+
*
|
|
609
|
+
* Search by postcode and building attribute with the postcode filter and query argument. E.g. For "SW1A 2AA Prime Minister" `/v1/addresses?postcode=sw1a2aa&q=prime minister`.
|
|
610
|
+
*
|
|
611
|
+
* Using a filter means a postcode mismatch returns no results and costs no lookup.
|
|
612
|
+
*
|
|
613
|
+
* ### Search by UPRN
|
|
614
|
+
*
|
|
615
|
+
* Search by UPRN using the `uprn` filter and excluding the query argument. E.g. `/v1/addresses?uprn=100`.
|
|
616
|
+
*
|
|
617
|
+
* ## Testing
|
|
618
|
+
*
|
|
619
|
+
* - **ID1 1QD** Returns a successful query response `2000`
|
|
620
|
+
* - **ID1 KFA** Returns an empty query response `2000`
|
|
621
|
+
* - **ID1 CLIP** Returns "no lookups remaining" error `4020`
|
|
622
|
+
* - **ID1 CHOP** Returns "daily (or individual) lookup limit breached" error `4021`
|
|
623
|
+
*
|
|
624
|
+
* Test requests undergo the usual authentication and restriction rules. They surface any issues during implementation and do not cost you a lookup.
|
|
625
|
+
*
|
|
626
|
+
*/
|
|
627
|
+
declare const addressesOptions: (options?: Options<AddressesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<AddressResponse, AddressesError, AddressResponse, [Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
628
|
+
_id: string;
|
|
629
|
+
_infinite?: boolean;
|
|
630
|
+
tags?: ReadonlyArray<string>;
|
|
631
|
+
}]>, "queryFn"> & {
|
|
632
|
+
queryFn?: _tanstack_react_query.QueryFunction<AddressResponse, [Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
633
|
+
_id: string;
|
|
634
|
+
_infinite?: boolean;
|
|
635
|
+
tags?: ReadonlyArray<string>;
|
|
636
|
+
}], never> | undefined;
|
|
637
|
+
} & {
|
|
638
|
+
queryKey: [Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
639
|
+
_id: string;
|
|
640
|
+
_infinite?: boolean;
|
|
641
|
+
tags?: ReadonlyArray<string>;
|
|
642
|
+
}] & {
|
|
643
|
+
[dataTagSymbol]: AddressResponse;
|
|
644
|
+
[dataTagErrorSymbol]: AddressesError;
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
declare const addressesInfiniteQueryKey: (options?: Options<AddressesData>) => QueryKey<Options<AddressesData>>;
|
|
648
|
+
/**
|
|
649
|
+
* Extract Addresses
|
|
650
|
+
*
|
|
651
|
+
* Returns a list of UK addresses matching the query, ordered by relevance score. `limit` defaults to 10 and caps at 100. `page` defaults to 0.
|
|
652
|
+
*
|
|
653
|
+
* You may only extract a single address from each request. To extract multiple addresses, you must perform an individual request for each address.
|
|
654
|
+
*
|
|
655
|
+
* If the query is a valid postcode, the API returns the whole address list for that postcode and raises the limit to 100. Use `page` to reach the rest of a postcode holding more than 100 premises. You cannot page beyond 10,000 results.
|
|
656
|
+
*
|
|
657
|
+
* Your key needs at least one of PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium. Without one the request is rejected.
|
|
658
|
+
*
|
|
659
|
+
* A request that returns at least one address costs a lookup. Empty result sets are free.
|
|
660
|
+
*
|
|
661
|
+
* ## Reverse Geocoding
|
|
662
|
+
*
|
|
663
|
+
* Return the addresses around a point with the `lon=` and `lat=` querystring arguments. The search radius is 100m and the API sorts addresses by distance from the point.
|
|
664
|
+
*
|
|
665
|
+
* ## Filters
|
|
666
|
+
*
|
|
667
|
+
* Narrow your results by adding filters to your query string that correspond with an address attribute.
|
|
668
|
+
*
|
|
669
|
+
* For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
|
|
670
|
+
*
|
|
671
|
+
* If a filter term is invalid, e.g. `postcode=SW1A2AAA`, the API returns an empty result set and charges no lookup.
|
|
672
|
+
*
|
|
673
|
+
* You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
|
|
674
|
+
*
|
|
675
|
+
* All filters can accept multiple terms unless stated otherwise below.
|
|
676
|
+
*
|
|
677
|
+
* Multiple filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
|
|
678
|
+
*
|
|
679
|
+
* A combined maximum of 8 terms is allowed across all filters.
|
|
680
|
+
*
|
|
681
|
+
* ## Biases
|
|
682
|
+
*
|
|
683
|
+
* You can boost address results that correspond with a given address attribute. All bias searches are prefixed with `bias_`.
|
|
684
|
+
*
|
|
685
|
+
* Biased searches, unlike filtered searches, still allow unmatched addresses to appear. They rank lower.
|
|
686
|
+
*
|
|
687
|
+
* For instance, you can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
|
|
688
|
+
*
|
|
689
|
+
* If a bias term is invalid, e.g. `bias_postcode=SW1A2AAA`, no bias is applied.
|
|
690
|
+
*
|
|
691
|
+
* You may scope using multiple terms for the same bias with a comma separated list of terms. E.g. Prefer results in the `E1`, `E2` and `E3` outward codes: `bias_postcode_outward=e1,e2,e3`.
|
|
692
|
+
*
|
|
693
|
+
* All biases can accept multiple terms unless stated otherwise below.
|
|
694
|
+
*
|
|
695
|
+
* A combined maximum of 5 terms is allowed across all biases.
|
|
696
|
+
*
|
|
697
|
+
* ## Search by Postcode and Building Name or Number
|
|
698
|
+
*
|
|
699
|
+
* Search by postcode and building attribute with the postcode filter and query argument. E.g. For "SW1A 2AA Prime Minister" `/v1/addresses?postcode=sw1a2aa&q=prime minister`.
|
|
700
|
+
*
|
|
701
|
+
* Using a filter means a postcode mismatch returns no results and costs no lookup.
|
|
702
|
+
*
|
|
703
|
+
* ### Search by UPRN
|
|
704
|
+
*
|
|
705
|
+
* Search by UPRN using the `uprn` filter and excluding the query argument. E.g. `/v1/addresses?uprn=100`.
|
|
706
|
+
*
|
|
707
|
+
* ## Testing
|
|
708
|
+
*
|
|
709
|
+
* - **ID1 1QD** Returns a successful query response `2000`
|
|
710
|
+
* - **ID1 KFA** Returns an empty query response `2000`
|
|
711
|
+
* - **ID1 CLIP** Returns "no lookups remaining" error `4020`
|
|
712
|
+
* - **ID1 CHOP** Returns "daily (or individual) lookup limit breached" error `4021`
|
|
713
|
+
*
|
|
714
|
+
* Test requests undergo the usual authentication and restriction rules. They surface any issues during implementation and do not cost you a lookup.
|
|
715
|
+
*
|
|
716
|
+
*/
|
|
717
|
+
declare const addressesInfiniteOptions: (options?: Options<AddressesData>) => _tanstack_preact_query.UseInfiniteQueryOptions<AddressResponse, AddressesError, InfiniteData<AddressResponse, unknown>, QueryKey<Options<AddressesData>>, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
718
|
+
_id: string;
|
|
719
|
+
_infinite?: boolean;
|
|
720
|
+
tags?: ReadonlyArray<string>;
|
|
721
|
+
}, "query" | "body" | "headers" | "path">> & {
|
|
722
|
+
initialData: InfiniteData<AddressResponse, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
723
|
+
_id: string;
|
|
724
|
+
_infinite?: boolean;
|
|
725
|
+
tags?: ReadonlyArray<string>;
|
|
726
|
+
}, "query" | "body" | "headers" | "path">> | (() => InfiniteData<AddressResponse, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
727
|
+
_id: string;
|
|
728
|
+
_infinite?: boolean;
|
|
729
|
+
tags?: ReadonlyArray<string>;
|
|
730
|
+
}, "query" | "body" | "headers" | "path">>) | undefined;
|
|
731
|
+
} & {
|
|
732
|
+
queryKey: QueryKey<Options<AddressesData>> & {
|
|
733
|
+
[dataTagSymbol]: InfiniteData<AddressResponse, unknown>;
|
|
734
|
+
[dataTagErrorSymbol]: AddressesError;
|
|
735
|
+
};
|
|
736
|
+
};
|
|
495
737
|
declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
496
738
|
_id: string;
|
|
497
739
|
_infinite?: boolean;
|
|
@@ -500,29 +742,25 @@ declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Opt
|
|
|
500
742
|
/**
|
|
501
743
|
* Find Place
|
|
502
744
|
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
* This API returns geographical information such as countries, capitals, administrative areas and more. It is ideal for correctly identifying a place along with any other details like geolocation.
|
|
745
|
+
* Returns place suggestions for a query, ranked by relevance. Places cover countries, administrative areas, capitals and other administrative seats.
|
|
506
746
|
*
|
|
507
747
|
* ## Implementing Place Autocomplete
|
|
508
748
|
*
|
|
509
|
-
*
|
|
749
|
+
* Retrieving a full place takes two requests:
|
|
510
750
|
*
|
|
511
|
-
* 1.
|
|
512
|
-
* 2.
|
|
751
|
+
* 1. Fetch suggestions from `/places`
|
|
752
|
+
* 2. Fetch the place using the `id` on a suggestion
|
|
513
753
|
*
|
|
514
|
-
*
|
|
515
|
-
*
|
|
516
|
-
* Each place suggestion contains a descriptive name which you can provide to users to uniquely identify a place.
|
|
754
|
+
* A query returns at most 10 suggestions. An empty query returns an empty result set. Show users the `descriptive_name`. The API drops suggestions that share one, so each name in a response identifies a single place.
|
|
517
755
|
*
|
|
518
756
|
* ## Rate Limiting and Cost
|
|
519
757
|
*
|
|
520
|
-
* The rate limit
|
|
758
|
+
* The rate limit is 3,000 requests per 5 minutes.
|
|
521
759
|
*
|
|
522
|
-
*
|
|
760
|
+
* `/places` does not decrement your lookup balance, but resolving a suggestion to a full place does. We rate limit and then suspend integrations that repeatedly call `/places` without resolving.
|
|
523
761
|
*
|
|
524
762
|
*/
|
|
525
|
-
declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PlaceResponse,
|
|
763
|
+
declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PlaceResponse, ErrorResponse, PlaceResponse, [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
526
764
|
_id: string;
|
|
527
765
|
_infinite?: boolean;
|
|
528
766
|
tags?: ReadonlyArray<string>;
|
|
@@ -539,7 +777,7 @@ declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_
|
|
|
539
777
|
tags?: ReadonlyArray<string>;
|
|
540
778
|
}] & {
|
|
541
779
|
[dataTagSymbol]: PlaceResponse;
|
|
542
|
-
[dataTagErrorSymbol]:
|
|
780
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
543
781
|
};
|
|
544
782
|
};
|
|
545
783
|
declare const resolvePlaceQueryKey: (options: Options<ResolvePlaceData>) => [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -550,7 +788,11 @@ declare const resolvePlaceQueryKey: (options: Options<ResolvePlaceData>) => [Pic
|
|
|
550
788
|
/**
|
|
551
789
|
* Resolve Place
|
|
552
790
|
*
|
|
553
|
-
*
|
|
791
|
+
* Returns the full place for a place ID taken from a `/places` suggestion.
|
|
792
|
+
*
|
|
793
|
+
* On top of the fields carried by the suggestion, the response adds coordinates, language and the underlying dataset record.
|
|
794
|
+
*
|
|
795
|
+
* Each request decrements your lookup balance. An unknown ID returns `404`.
|
|
554
796
|
*
|
|
555
797
|
*/
|
|
556
798
|
declare const resolvePlaceOptions: (options: Options<ResolvePlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ResolvePlaceResponse, ErrorResponse, ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -581,9 +823,9 @@ declare const listLicenseesQueryKey: (options: Options<ListLicenseesData>) => [P
|
|
|
581
823
|
/**
|
|
582
824
|
* List
|
|
583
825
|
*
|
|
584
|
-
* Returns a list
|
|
826
|
+
* Returns a key's licensees, oldest first, up to 100 per request. The list omits cancelled licensees. The key must be enabled for sub-licensing.
|
|
585
827
|
*/
|
|
586
|
-
declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseesResponse,
|
|
828
|
+
declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseesResponse, ErrorResponse, LicenseesResponse, [Pick<Options<ListLicenseesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
587
829
|
_id: string;
|
|
588
830
|
_infinite?: boolean;
|
|
589
831
|
tags?: ReadonlyArray<string>;
|
|
@@ -600,19 +842,19 @@ declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _ta
|
|
|
600
842
|
tags?: ReadonlyArray<string>;
|
|
601
843
|
}] & {
|
|
602
844
|
[dataTagSymbol]: LicenseesResponse;
|
|
603
|
-
[dataTagErrorSymbol]:
|
|
845
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
604
846
|
};
|
|
605
847
|
};
|
|
606
848
|
/**
|
|
607
849
|
* Create
|
|
608
850
|
*
|
|
609
|
-
*
|
|
851
|
+
* Creates a licensee on a key and returns it with its generated `sl_` key. The key must be enabled for sub-licensing.
|
|
610
852
|
*/
|
|
611
853
|
declare const createLicenseeMutation: (options?: Partial<Options<CreateLicenseeData>>) => UseMutationOptions<CreateLicenseeResponse, CreateLicenseeError, Options<CreateLicenseeData>>;
|
|
612
854
|
/**
|
|
613
855
|
* Cancel
|
|
614
856
|
*
|
|
615
|
-
* Cancels a licensee
|
|
857
|
+
* Cancels a licensee. Its key stops working and it drops out of the licensee list. Contact us to reverse it.
|
|
616
858
|
*/
|
|
617
859
|
declare const deleteLicenseeMutation: (options?: Partial<Options<DeleteLicenseeData>>) => UseMutationOptions<DeleteLicenseeResponse, DeleteLicenseeError, Options<DeleteLicenseeData>>;
|
|
618
860
|
declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>) => [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -623,9 +865,9 @@ declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>)
|
|
|
623
865
|
/**
|
|
624
866
|
* Retrieve
|
|
625
867
|
*
|
|
626
|
-
* Returns licensee
|
|
868
|
+
* Returns a licensee by its `sl_` key. A cancelled or unknown licensee returns `404`.
|
|
627
869
|
*/
|
|
628
|
-
declare const retrieveLicenseeOptions: (options: Options<RetrieveLicenseeData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseeResponse,
|
|
870
|
+
declare const retrieveLicenseeOptions: (options: Options<RetrieveLicenseeData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseeResponse, ErrorResponse, LicenseeResponse, [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
629
871
|
_id: string;
|
|
630
872
|
_infinite?: boolean;
|
|
631
873
|
tags?: ReadonlyArray<string>;
|
|
@@ -642,15 +884,21 @@ declare const retrieveLicenseeOptions: (options: Options<RetrieveLicenseeData>)
|
|
|
642
884
|
tags?: ReadonlyArray<string>;
|
|
643
885
|
}] & {
|
|
644
886
|
[dataTagSymbol]: LicenseeResponse;
|
|
645
|
-
[dataTagErrorSymbol]:
|
|
887
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
646
888
|
};
|
|
647
889
|
};
|
|
648
890
|
/**
|
|
649
891
|
* Update
|
|
650
892
|
*
|
|
651
|
-
*
|
|
893
|
+
* Updates a licensee's address, postcode, allowed URLs and daily limit. Returns the updated licensee. The name is fixed at creation.
|
|
652
894
|
*/
|
|
653
895
|
declare const updateLicenseeMutation: (options?: Partial<Options<UpdateLicenseeData>>) => UseMutationOptions<UpdateLicenseeResponse, UpdateLicenseeError, Options<UpdateLicenseeData>>;
|
|
896
|
+
/**
|
|
897
|
+
* Regenerate Key
|
|
898
|
+
*
|
|
899
|
+
* Regenerates a licensee's key and returns the licensee with the new key. The previous key stops working immediately, so update any integration that uses it.
|
|
900
|
+
*/
|
|
901
|
+
declare const regenerateLicenseeKeyMutation: (options?: Partial<Options<RegenerateLicenseeKeyData>>) => UseMutationOptions<RegenerateLicenseeKeyResponse, RegenerateLicenseeKeyError, Options<RegenerateLicenseeKeyData>>;
|
|
654
902
|
declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<Options<ListConfigsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
655
903
|
_id: string;
|
|
656
904
|
_infinite?: boolean;
|
|
@@ -659,9 +907,9 @@ declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<
|
|
|
659
907
|
/**
|
|
660
908
|
* List
|
|
661
909
|
*
|
|
662
|
-
*
|
|
910
|
+
* Returns every configuration stored against a key, oldest first.
|
|
663
911
|
*/
|
|
664
|
-
declare const listConfigsOptions: (options: Options<ListConfigsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ConfigsResponse,
|
|
912
|
+
declare const listConfigsOptions: (options: Options<ListConfigsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ConfigsResponse, ErrorResponse, ConfigsResponse, [Pick<Options<ListConfigsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
665
913
|
_id: string;
|
|
666
914
|
_infinite?: boolean;
|
|
667
915
|
tags?: ReadonlyArray<string>;
|
|
@@ -678,13 +926,13 @@ declare const listConfigsOptions: (options: Options<ListConfigsData>) => _tansta
|
|
|
678
926
|
tags?: ReadonlyArray<string>;
|
|
679
927
|
}] & {
|
|
680
928
|
[dataTagSymbol]: ConfigsResponse;
|
|
681
|
-
[dataTagErrorSymbol]:
|
|
929
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
682
930
|
};
|
|
683
931
|
};
|
|
684
932
|
/**
|
|
685
933
|
* Create
|
|
686
934
|
*
|
|
687
|
-
*
|
|
935
|
+
* Creates a named configuration on a key and returns it.
|
|
688
936
|
*/
|
|
689
937
|
declare const createConfigMutation: (options?: Partial<Options<CreateConfigData>>) => UseMutationOptions<CreateConfigResponse, CreateConfigError, Options<CreateConfigData>>;
|
|
690
938
|
/**
|
|
@@ -701,7 +949,7 @@ declare const retrieveConfigQueryKey: (options: Options<RetrieveConfigData>) =>
|
|
|
701
949
|
/**
|
|
702
950
|
* Retrieve
|
|
703
951
|
*
|
|
704
|
-
*
|
|
952
|
+
* Returns a configuration by name. This request needs no `user_token`, so a browser integration can read its own configuration at runtime.
|
|
705
953
|
*/
|
|
706
954
|
declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ConfigResponse, RetrieveConfigError, ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
707
955
|
_id: string;
|
|
@@ -726,7 +974,7 @@ declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _
|
|
|
726
974
|
/**
|
|
727
975
|
* Update
|
|
728
976
|
*
|
|
729
|
-
*
|
|
977
|
+
* Replaces a configuration's payload and returns the updated configuration. The name is fixed at creation.
|
|
730
978
|
*/
|
|
731
979
|
declare const updateConfigMutation: (options?: Partial<Options<UpdateConfigData>>) => UseMutationOptions<UpdateConfigResponse, UpdateConfigError, Options<UpdateConfigData>>;
|
|
732
980
|
declare const emailValidationQueryKey: (options: Options<EmailValidationData>) => [Pick<Options<EmailValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -737,10 +985,14 @@ declare const emailValidationQueryKey: (options: Options<EmailValidationData>) =
|
|
|
737
985
|
/**
|
|
738
986
|
* Email Validation
|
|
739
987
|
*
|
|
740
|
-
*
|
|
988
|
+
* Validates an email address and reports whether it is deliverable.
|
|
989
|
+
*
|
|
990
|
+
* Requires an API Key licensed for email validation. A query over 320 characters is rejected.
|
|
991
|
+
*
|
|
992
|
+
* A validated address decrements your lookup balance. An address the API cannot check returns `unknown` and costs no lookup. An address whose domain does not resolve, or publishes no MX records, returns `not_deliverable` and also costs no lookup. Only those two domain failures populate `suggestions`. Every other response returns an empty list.
|
|
741
993
|
*
|
|
742
994
|
*/
|
|
743
|
-
declare const emailValidationOptions: (options: Options<EmailValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<EmailResponse,
|
|
995
|
+
declare const emailValidationOptions: (options: Options<EmailValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<EmailResponse, ErrorResponse, EmailResponse, [Pick<Options<EmailValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
744
996
|
_id: string;
|
|
745
997
|
_infinite?: boolean;
|
|
746
998
|
tags?: ReadonlyArray<string>;
|
|
@@ -757,7 +1009,7 @@ declare const emailValidationOptions: (options: Options<EmailValidationData>) =>
|
|
|
757
1009
|
tags?: ReadonlyArray<string>;
|
|
758
1010
|
}] & {
|
|
759
1011
|
[dataTagSymbol]: EmailResponse;
|
|
760
|
-
[dataTagErrorSymbol]:
|
|
1012
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
761
1013
|
};
|
|
762
1014
|
};
|
|
763
1015
|
declare const phoneNumberValidationQueryKey: (options: Options<PhoneNumberValidationData>) => [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -768,10 +1020,14 @@ declare const phoneNumberValidationQueryKey: (options: Options<PhoneNumberValida
|
|
|
768
1020
|
/**
|
|
769
1021
|
* Phone Number Validation
|
|
770
1022
|
*
|
|
771
|
-
*
|
|
1023
|
+
* Validates a phone number and returns its country, its national and international formats, and the network it was originally assigned to.
|
|
1024
|
+
*
|
|
1025
|
+
* Requires an API Key licensed for phone validation.
|
|
1026
|
+
*
|
|
1027
|
+
* Every query decrements your lookup balance, including a number that fails to parse and a number reported as invalid.
|
|
772
1028
|
*
|
|
773
1029
|
*/
|
|
774
|
-
declare const phoneNumberValidationOptions: (options: Options<PhoneNumberValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PhoneNumberResponse,
|
|
1030
|
+
declare const phoneNumberValidationOptions: (options: Options<PhoneNumberValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PhoneNumberResponse, ErrorResponse, PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
775
1031
|
_id: string;
|
|
776
1032
|
_infinite?: boolean;
|
|
777
1033
|
tags?: ReadonlyArray<string>;
|
|
@@ -788,8 +1044,8 @@ declare const phoneNumberValidationOptions: (options: Options<PhoneNumberValidat
|
|
|
788
1044
|
tags?: ReadonlyArray<string>;
|
|
789
1045
|
}] & {
|
|
790
1046
|
[dataTagSymbol]: PhoneNumberResponse;
|
|
791
|
-
[dataTagErrorSymbol]:
|
|
1047
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
792
1048
|
};
|
|
793
1049
|
};
|
|
794
1050
|
|
|
795
|
-
export { type QueryKey, addressCleanseMutation, createConfigMutation, createLicenseeMutation, deleteConfigMutation, deleteLicenseeMutation, emailValidationOptions, emailValidationQueryKey, findAddressOptions, findAddressQueryKey, findPlaceOptions, findPlaceQueryKey, keyAvailabilityOptions, keyAvailabilityQueryKey, keyDetailsOptions, keyDetailsQueryKey, keyLogsInfiniteOptions, keyLogsInfiniteQueryKey, keyLogsOptions, keyLogsQueryKey, keyUsageInfiniteOptions, keyUsageInfiniteQueryKey, keyUsageOptions, keyUsageQueryKey, listConfigsOptions, listConfigsQueryKey, listLicenseesOptions, listLicenseesQueryKey, phoneNumberValidationOptions, phoneNumberValidationQueryKey, postcodesInfiniteOptions, postcodesInfiniteQueryKey, postcodesOptions, postcodesQueryKey, resolveAddressOptions, resolveAddressQueryKey, resolvePlaceOptions, resolvePlaceQueryKey, retrieveConfigOptions, retrieveConfigQueryKey, retrieveLicenseeOptions, retrieveLicenseeQueryKey, updateConfigMutation, updateKeyDetailsMutation, updateLicenseeMutation };
|
|
1051
|
+
export { type QueryKey, addressCleanseMutation, addressesInfiniteOptions, addressesInfiniteQueryKey, addressesOptions, addressesQueryKey, createConfigMutation, createLicenseeMutation, deleteConfigMutation, deleteLicenseeMutation, emailValidationOptions, emailValidationQueryKey, findAddressOptions, findAddressQueryKey, findPlaceOptions, findPlaceQueryKey, keyAvailabilityOptions, keyAvailabilityQueryKey, keyDetailsOptions, keyDetailsQueryKey, keyLogsInfiniteOptions, keyLogsInfiniteQueryKey, keyLogsOptions, keyLogsQueryKey, keyUsageInfiniteOptions, keyUsageInfiniteQueryKey, keyUsageOptions, keyUsageQueryKey, listConfigsOptions, listConfigsQueryKey, listLicenseesOptions, listLicenseesQueryKey, phoneNumberValidationOptions, phoneNumberValidationQueryKey, postcodesInfiniteOptions, postcodesInfiniteQueryKey, postcodesOptions, postcodesQueryKey, regenerateLicenseeKeyMutation, resolveAddressOptions, resolveAddressQueryKey, resolvePlaceOptions, resolvePlaceQueryKey, retrieveConfigOptions, retrieveConfigQueryKey, retrieveLicenseeOptions, retrieveLicenseeQueryKey, updateConfigMutation, updateKeyDetailsMutation, updateLicenseeMutation };
|