@ideal-postcodes/sdk 0.1.0 → 0.2.1
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 +27 -15
- package/dist/autocomplete.d.ts +27 -15
- package/dist/autocomplete.mjs +1 -146
- package/dist/chunk-27HFF2QV.mjs +6 -0
- package/dist/chunk-62UQ3UYV.mjs +1 -0
- package/dist/chunk-6R56WDLC.mjs +1 -0
- package/dist/chunk-CKB3E7DA.cjs +1 -0
- package/dist/chunk-MO2HGDFA.cjs +1 -0
- package/dist/chunk-WQKSRULX.cjs +6 -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 +342 -325
- package/dist/preact-query.d.ts +342 -325
- package/dist/preact-query.mjs +1 -497
- package/dist/react-query.cjs +1 -497
- package/dist/react-query.d.cts +341 -324
- package/dist/react-query.d.ts +341 -324
- package/dist/react-query.mjs +1 -497
- package/dist/sdk.gen-C47s0BYz.d.ts +416 -0
- package/dist/sdk.gen-DdAMouYk.d.cts +416 -0
- package/dist/{types.gen-l7tYP1ZJ.d.cts → types.gen-Cr3qI_1Q.d.cts} +4658 -2712
- package/dist/{types.gen-l7tYP1ZJ.d.ts → types.gen-Cr3qI_1Q.d.ts} +4658 -2712
- 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/react-query.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { dataTagSymbol, dataTagErrorSymbol } from "@tanstack/react-query";
|
|
1
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { UseMutationOptions, InfiniteData } from '@tanstack/react-query';
|
|
4
|
+
import { O as Options } from './sdk.gen-C47s0BYz.js';
|
|
5
|
+
import { d as AddressCleanseData, g as AddressCleanseResponse, e as AddressCleanseError, n as AddressesData, 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, F as FindAddressData, K as AutocompleteResponse, aU as ErrorResponse, 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, ct as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cD as ResolveAddressData, cH as ResolvePlaceData, 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, l as AddressResponse, o as AddressesError, aN as EmailResponse, c5 as PhoneNumberResponse, cq as PostcodeResponse, cu as PostcodesError, b5 as GbrResolveAddressResponse, cK as ResolvePlaceResponse } from './types.gen-Cr3qI_1Q.js';
|
|
5
6
|
|
|
6
7
|
type QueryKey<TOptions extends Options> = [
|
|
7
8
|
Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
@@ -10,117 +11,13 @@ type QueryKey<TOptions extends Options> = [
|
|
|
10
11
|
tags?: ReadonlyArray<string>;
|
|
11
12
|
}
|
|
12
13
|
];
|
|
13
|
-
declare const postcodesQueryKey: (options: Options<PostcodesData>) => [Pick<Options<PostcodesData>, "query" | "body" | "
|
|
14
|
+
declare const postcodesQueryKey: (options: Options<PostcodesData>) => [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
14
15
|
_id: string;
|
|
15
16
|
_infinite?: boolean;
|
|
16
17
|
tags?: ReadonlyArray<string>;
|
|
17
18
|
}];
|
|
18
|
-
/**
|
|
19
|
-
* Lookup Postcode
|
|
20
|
-
*
|
|
21
|
-
* Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
|
|
22
|
-
*
|
|
23
|
-
* The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Postcode Lookup driven address searches, like [Postcode Lookup](/docs/postcode-lookup/).
|
|
24
|
-
*
|
|
25
|
-
* ## Postcode Not Found
|
|
26
|
-
*
|
|
27
|
-
* Lookup balance is unaffected by invalid postcodes. The API returns a `404` response with response body:
|
|
28
|
-
*
|
|
29
|
-
* ```json
|
|
30
|
-
* {
|
|
31
|
-
* "code": 4040,
|
|
32
|
-
* "message": "Postcode not found",
|
|
33
|
-
* "suggestions": ["SW1A 0AA"]
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* ### Suggestions
|
|
38
|
-
*
|
|
39
|
-
* If a postcode cannot be found, the API will provide up to 5 closest matching postcodes. Common errors will be corrected first (e.g. mixing up `O` and `0` or `I` and `1`).
|
|
40
|
-
*
|
|
41
|
-
* If the suggestion list is small (fewer than 3), there is a high probability the correct postcode is there. You may notify the user or immediately trigger new searches.
|
|
42
|
-
*
|
|
43
|
-
* The suggestion list will be empty if the postcode has deviated too far from a valid postcode format.
|
|
44
|
-
*
|
|
45
|
-
* ## Multiple Residence
|
|
46
|
-
*
|
|
47
|
-
* A small number of postcodes will return more than 100 premises. These may require pagination. Use `page` to paginate the result set.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
declare const postcodesOptions: (options: Options<PostcodesData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<PostcodeResponse, PostcodesError, PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
51
|
-
_id: string;
|
|
52
|
-
_infinite?: boolean;
|
|
53
|
-
tags?: ReadonlyArray<string>;
|
|
54
|
-
}]>, "queryFn"> & {
|
|
55
|
-
queryFn?: _tanstack_react_query.QueryFunction<PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
56
|
-
_id: string;
|
|
57
|
-
_infinite?: boolean;
|
|
58
|
-
tags?: ReadonlyArray<string>;
|
|
59
|
-
}], never> | undefined;
|
|
60
|
-
} & {
|
|
61
|
-
queryKey: [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
62
|
-
_id: string;
|
|
63
|
-
_infinite?: boolean;
|
|
64
|
-
tags?: ReadonlyArray<string>;
|
|
65
|
-
}] & {
|
|
66
|
-
[dataTagSymbol]: PostcodeResponse;
|
|
67
|
-
[dataTagErrorSymbol]: PostcodesError;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
19
|
declare const postcodesInfiniteQueryKey: (options: Options<PostcodesData>) => QueryKey<Options<PostcodesData>>;
|
|
71
|
-
|
|
72
|
-
* Lookup Postcode
|
|
73
|
-
*
|
|
74
|
-
* Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
|
|
75
|
-
*
|
|
76
|
-
* The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Postcode Lookup driven address searches, like [Postcode Lookup](/docs/postcode-lookup/).
|
|
77
|
-
*
|
|
78
|
-
* ## Postcode Not Found
|
|
79
|
-
*
|
|
80
|
-
* Lookup balance is unaffected by invalid postcodes. The API returns a `404` response with response body:
|
|
81
|
-
*
|
|
82
|
-
* ```json
|
|
83
|
-
* {
|
|
84
|
-
* "code": 4040,
|
|
85
|
-
* "message": "Postcode not found",
|
|
86
|
-
* "suggestions": ["SW1A 0AA"]
|
|
87
|
-
* }
|
|
88
|
-
* ```
|
|
89
|
-
*
|
|
90
|
-
* ### Suggestions
|
|
91
|
-
*
|
|
92
|
-
* If a postcode cannot be found, the API will provide up to 5 closest matching postcodes. Common errors will be corrected first (e.g. mixing up `O` and `0` or `I` and `1`).
|
|
93
|
-
*
|
|
94
|
-
* If the suggestion list is small (fewer than 3), there is a high probability the correct postcode is there. You may notify the user or immediately trigger new searches.
|
|
95
|
-
*
|
|
96
|
-
* The suggestion list will be empty if the postcode has deviated too far from a valid postcode format.
|
|
97
|
-
*
|
|
98
|
-
* ## Multiple Residence
|
|
99
|
-
*
|
|
100
|
-
* A small number of postcodes will return more than 100 premises. These may require pagination. Use `page` to paginate the result set.
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
declare const postcodesInfiniteOptions: (options: Options<PostcodesData>) => _tanstack_react_query.UseInfiniteQueryOptions<PostcodeResponse, PostcodesError, InfiniteData<PostcodeResponse, unknown>, QueryKey<Options<PostcodesData>>, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
104
|
-
_id: string;
|
|
105
|
-
_infinite?: boolean;
|
|
106
|
-
tags?: ReadonlyArray<string>;
|
|
107
|
-
}, "query" | "body" | "headers" | "path">> & {
|
|
108
|
-
initialData: InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
109
|
-
_id: string;
|
|
110
|
-
_infinite?: boolean;
|
|
111
|
-
tags?: ReadonlyArray<string>;
|
|
112
|
-
}, "query" | "body" | "headers" | "path">> | (() => InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
113
|
-
_id: string;
|
|
114
|
-
_infinite?: boolean;
|
|
115
|
-
tags?: ReadonlyArray<string>;
|
|
116
|
-
}, "query" | "body" | "headers" | "path">>) | undefined;
|
|
117
|
-
} & {
|
|
118
|
-
queryKey: QueryKey<Options<PostcodesData>> & {
|
|
119
|
-
[dataTagSymbol]: InfiniteData<PostcodeResponse, unknown>;
|
|
120
|
-
[dataTagErrorSymbol]: PostcodesError;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
declare const keyAvailabilityQueryKey: (options: Options<KeyAvailabilityData>) => [Pick<Options<KeyAvailabilityData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
20
|
+
declare const keyAvailabilityQueryKey: (options: Options<KeyAvailabilityData>) => [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
124
21
|
_id: string;
|
|
125
22
|
_infinite?: boolean;
|
|
126
23
|
tags?: ReadonlyArray<string>;
|
|
@@ -128,28 +25,27 @@ declare const keyAvailabilityQueryKey: (options: Options<KeyAvailabilityData>) =
|
|
|
128
25
|
/**
|
|
129
26
|
* Availability
|
|
130
27
|
*
|
|
131
|
-
* Returns public information on
|
|
28
|
+
* 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`).
|
|
132
29
|
*
|
|
133
|
-
*
|
|
134
|
-
* - Determine if the key is currently usable via the `available` property
|
|
135
|
-
* - Determine available contexts for an API Key
|
|
136
|
-
* - Identify the currently likely context of a user given their location
|
|
30
|
+
* The endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no Management Key.
|
|
137
31
|
*
|
|
138
|
-
*
|
|
32
|
+
* 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.
|
|
33
|
+
*
|
|
34
|
+
* Supply a valid Management Key and the endpoint returns the key's private details instead, as `GET /keys/{key}/details` does. A Management Key that does not own the key is rejected.
|
|
139
35
|
*
|
|
140
36
|
*/
|
|
141
|
-
declare const keyAvailabilityOptions: (options: Options<KeyAvailabilityData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ApiKeyResponse, ErrorResponse, ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "
|
|
37
|
+
declare const keyAvailabilityOptions: (options: Options<KeyAvailabilityData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ApiKeyResponse, ErrorResponse, ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
142
38
|
_id: string;
|
|
143
39
|
_infinite?: boolean;
|
|
144
40
|
tags?: ReadonlyArray<string>;
|
|
145
41
|
}]>, "queryFn"> & {
|
|
146
|
-
queryFn?: _tanstack_react_query.QueryFunction<ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "
|
|
42
|
+
queryFn?: _tanstack_react_query.QueryFunction<ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
147
43
|
_id: string;
|
|
148
44
|
_infinite?: boolean;
|
|
149
45
|
tags?: ReadonlyArray<string>;
|
|
150
46
|
}], never> | undefined;
|
|
151
47
|
} & {
|
|
152
|
-
queryKey: [Pick<Options<KeyAvailabilityData>, "query" | "body" | "
|
|
48
|
+
queryKey: [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
153
49
|
_id: string;
|
|
154
50
|
_infinite?: boolean;
|
|
155
51
|
tags?: ReadonlyArray<string>;
|
|
@@ -158,7 +54,7 @@ declare const keyAvailabilityOptions: (options: Options<KeyAvailabilityData>) =>
|
|
|
158
54
|
[dataTagErrorSymbol]: ErrorResponse;
|
|
159
55
|
};
|
|
160
56
|
};
|
|
161
|
-
declare const keyDetailsQueryKey: (options: Options<KeyDetailsData>) => [Pick<Options<KeyDetailsData>, "query" | "body" | "
|
|
57
|
+
declare const keyDetailsQueryKey: (options: Options<KeyDetailsData>) => [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
162
58
|
_id: string;
|
|
163
59
|
_infinite?: boolean;
|
|
164
60
|
tags?: ReadonlyArray<string>;
|
|
@@ -166,21 +62,20 @@ declare const keyDetailsQueryKey: (options: Options<KeyDetailsData>) => [Pick<Op
|
|
|
166
62
|
/**
|
|
167
63
|
* Details
|
|
168
64
|
*
|
|
169
|
-
* Returns private data on
|
|
170
|
-
*
|
|
65
|
+
* Returns private data on a key: remaining lookups, licensed datasets, usage limits, notification settings and the search contexts the key can serve.
|
|
171
66
|
*/
|
|
172
|
-
declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ApiKeyDetailsResponse, ErrorResponse, ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "
|
|
67
|
+
declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ApiKeyDetailsResponse, ErrorResponse, ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
173
68
|
_id: string;
|
|
174
69
|
_infinite?: boolean;
|
|
175
70
|
tags?: ReadonlyArray<string>;
|
|
176
71
|
}]>, "queryFn"> & {
|
|
177
|
-
queryFn?: _tanstack_react_query.QueryFunction<ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "
|
|
72
|
+
queryFn?: _tanstack_react_query.QueryFunction<ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
178
73
|
_id: string;
|
|
179
74
|
_infinite?: boolean;
|
|
180
75
|
tags?: ReadonlyArray<string>;
|
|
181
76
|
}], never> | undefined;
|
|
182
77
|
} & {
|
|
183
|
-
queryKey: [Pick<Options<KeyDetailsData>, "query" | "body" | "
|
|
78
|
+
queryKey: [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
184
79
|
_id: string;
|
|
185
80
|
_infinite?: boolean;
|
|
186
81
|
tags?: ReadonlyArray<string>;
|
|
@@ -192,10 +87,10 @@ declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack
|
|
|
192
87
|
/**
|
|
193
88
|
* Update Details
|
|
194
89
|
*
|
|
195
|
-
*
|
|
90
|
+
* 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`.
|
|
196
91
|
*/
|
|
197
92
|
declare const updateKeyDetailsMutation: (options?: Partial<Options<UpdateKeyDetailsData>>) => UseMutationOptions<UpdateKeyDetailsResponse, UpdateKeyDetailsError, Options<UpdateKeyDetailsData>>;
|
|
198
|
-
declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Options<KeyUsageData>, "query" | "body" | "
|
|
93
|
+
declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
199
94
|
_id: string;
|
|
200
95
|
_infinite?: boolean;
|
|
201
96
|
tags?: ReadonlyArray<string>;
|
|
@@ -203,73 +98,65 @@ declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Option
|
|
|
203
98
|
/**
|
|
204
99
|
* Usage Stats
|
|
205
100
|
*
|
|
206
|
-
* Reports the number of lookups consumed
|
|
207
|
-
*
|
|
208
|
-
* 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.
|
|
101
|
+
* Reports the number of lookups a key consumed over a date range, as a total and a daily breakdown.
|
|
209
102
|
*
|
|
210
|
-
*
|
|
103
|
+
* 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.
|
|
211
104
|
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* 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`.
|
|
105
|
+
* Query at most three tags at once.
|
|
215
106
|
*
|
|
216
107
|
*/
|
|
217
|
-
declare const keyUsageOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ApiKeyUsageResponse,
|
|
108
|
+
declare const keyUsageOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ApiKeyUsageResponse, ErrorResponse, ApiKeyUsageResponse, [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
218
109
|
_id: string;
|
|
219
110
|
_infinite?: boolean;
|
|
220
111
|
tags?: ReadonlyArray<string>;
|
|
221
112
|
}]>, "queryFn"> & {
|
|
222
|
-
queryFn?: _tanstack_react_query.QueryFunction<ApiKeyUsageResponse, [Pick<Options<KeyUsageData>, "query" | "body" | "
|
|
113
|
+
queryFn?: _tanstack_react_query.QueryFunction<ApiKeyUsageResponse, [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
223
114
|
_id: string;
|
|
224
115
|
_infinite?: boolean;
|
|
225
116
|
tags?: ReadonlyArray<string>;
|
|
226
117
|
}], never> | undefined;
|
|
227
118
|
} & {
|
|
228
|
-
queryKey: [Pick<Options<KeyUsageData>, "query" | "body" | "
|
|
119
|
+
queryKey: [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
229
120
|
_id: string;
|
|
230
121
|
_infinite?: boolean;
|
|
231
122
|
tags?: ReadonlyArray<string>;
|
|
232
123
|
}] & {
|
|
233
124
|
[dataTagSymbol]: ApiKeyUsageResponse;
|
|
234
|
-
[dataTagErrorSymbol]:
|
|
125
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
235
126
|
};
|
|
236
127
|
};
|
|
237
128
|
declare const keyUsageInfiniteQueryKey: (options: Options<KeyUsageData>) => QueryKey<Options<KeyUsageData>>;
|
|
238
129
|
/**
|
|
239
130
|
* Usage Stats
|
|
240
131
|
*
|
|
241
|
-
* Reports the number of lookups consumed
|
|
242
|
-
*
|
|
243
|
-
* 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.
|
|
244
|
-
*
|
|
245
|
-
* If no `start` time is provided, the start time will be set to 21 days prior to the current time.
|
|
132
|
+
* Reports the number of lookups a key consumed over a date range, as a total and a daily breakdown.
|
|
246
133
|
*
|
|
247
|
-
*
|
|
134
|
+
* 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.
|
|
248
135
|
*
|
|
249
|
-
*
|
|
136
|
+
* Query at most three tags at once.
|
|
250
137
|
*
|
|
251
138
|
*/
|
|
252
|
-
declare const keyUsageInfiniteOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.UseInfiniteQueryOptions<ApiKeyUsageResponse,
|
|
139
|
+
declare const keyUsageInfiniteOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.UseInfiniteQueryOptions<ApiKeyUsageResponse, ErrorResponse, InfiniteData<ApiKeyUsageResponse, unknown>, QueryKey<Options<KeyUsageData>>, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
253
140
|
_id: string;
|
|
254
141
|
_infinite?: boolean;
|
|
255
142
|
tags?: ReadonlyArray<string>;
|
|
256
|
-
}, "query" | "body" | "
|
|
257
|
-
initialData: InfiniteData<ApiKeyUsageResponse, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "
|
|
143
|
+
}, "query" | "body" | "path" | "headers">> & {
|
|
144
|
+
initialData: InfiniteData<ApiKeyUsageResponse, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
258
145
|
_id: string;
|
|
259
146
|
_infinite?: boolean;
|
|
260
147
|
tags?: ReadonlyArray<string>;
|
|
261
|
-
}, "query" | "body" | "
|
|
148
|
+
}, "query" | "body" | "path" | "headers">> | (() => InfiniteData<ApiKeyUsageResponse, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
262
149
|
_id: string;
|
|
263
150
|
_infinite?: boolean;
|
|
264
151
|
tags?: ReadonlyArray<string>;
|
|
265
|
-
}, "query" | "body" | "
|
|
152
|
+
}, "query" | "body" | "path" | "headers">>) | undefined;
|
|
266
153
|
} & {
|
|
267
154
|
queryKey: QueryKey<Options<KeyUsageData>> & {
|
|
268
155
|
[dataTagSymbol]: InfiniteData<ApiKeyUsageResponse, unknown>;
|
|
269
|
-
[dataTagErrorSymbol]:
|
|
156
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
270
157
|
};
|
|
271
158
|
};
|
|
272
|
-
declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<KeyLogsData>, "query" | "body" | "
|
|
159
|
+
declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
273
160
|
_id: string;
|
|
274
161
|
_infinite?: boolean;
|
|
275
162
|
tags?: ReadonlyArray<string>;
|
|
@@ -277,118 +164,155 @@ declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<
|
|
|
277
164
|
/**
|
|
278
165
|
* Logs (CSV)
|
|
279
166
|
*
|
|
280
|
-
*
|
|
167
|
+
* Returns a CSV of the paid lookups made on a key, with the information recorded against each one.
|
|
168
|
+
*
|
|
169
|
+
* This method requires your Management Key, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
|
|
281
170
|
*
|
|
282
|
-
*
|
|
171
|
+
* You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
|
|
283
172
|
*
|
|
284
|
-
*
|
|
173
|
+
* 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.
|
|
285
174
|
*
|
|
286
|
-
* ##
|
|
175
|
+
* ## CSV Format
|
|
287
176
|
*
|
|
288
|
-
*
|
|
177
|
+
* The CSV has no header row. Columns, in order:
|
|
289
178
|
*
|
|
290
|
-
*
|
|
179
|
+
* 1. Timestamp (ISO 8601)
|
|
180
|
+
* 2. IP address the request was received from
|
|
181
|
+
* 3. Search term
|
|
182
|
+
* 4. URL the request originated from
|
|
183
|
+
* 5. Lookup type
|
|
184
|
+
* 6. Tags
|
|
185
|
+
* 7. Lookups consumed
|
|
186
|
+
* 8. Licensee name (sublicensing keys only)
|
|
187
|
+
* 9. Source IP address
|
|
291
188
|
*
|
|
292
|
-
*
|
|
189
|
+
* 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.
|
|
293
190
|
*
|
|
294
191
|
* ## Data Redaction
|
|
295
192
|
*
|
|
296
|
-
* Personally Identifiable Data (PII)
|
|
193
|
+
* We redact Personally Identifiable Data (PII) in your usage log (including IP, source IP, search term and URL data) weekly.
|
|
297
194
|
*
|
|
298
|
-
* By default
|
|
195
|
+
* By default we redact PII older than 28 days. You can change this period from your dashboard.
|
|
299
196
|
*
|
|
300
|
-
*
|
|
197
|
+
* Set the interval to `0` days to prevent PII collection altogether.
|
|
301
198
|
*
|
|
302
199
|
*/
|
|
303
|
-
declare const keyLogsOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string,
|
|
200
|
+
declare const keyLogsOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string, ErrorResponse, string, [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
304
201
|
_id: string;
|
|
305
202
|
_infinite?: boolean;
|
|
306
203
|
tags?: ReadonlyArray<string>;
|
|
307
204
|
}]>, "queryFn"> & {
|
|
308
|
-
queryFn?: _tanstack_react_query.QueryFunction<string, [Pick<Options<KeyLogsData>, "query" | "body" | "
|
|
205
|
+
queryFn?: _tanstack_react_query.QueryFunction<string, [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
309
206
|
_id: string;
|
|
310
207
|
_infinite?: boolean;
|
|
311
208
|
tags?: ReadonlyArray<string>;
|
|
312
209
|
}], never> | undefined;
|
|
313
210
|
} & {
|
|
314
|
-
queryKey: [Pick<Options<KeyLogsData>, "query" | "body" | "
|
|
211
|
+
queryKey: [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
315
212
|
_id: string;
|
|
316
213
|
_infinite?: boolean;
|
|
317
214
|
tags?: ReadonlyArray<string>;
|
|
318
215
|
}] & {
|
|
319
216
|
[dataTagSymbol]: string;
|
|
320
|
-
[dataTagErrorSymbol]:
|
|
217
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
321
218
|
};
|
|
322
219
|
};
|
|
323
220
|
declare const keyLogsInfiniteQueryKey: (options: Options<KeyLogsData>) => QueryKey<Options<KeyLogsData>>;
|
|
324
221
|
/**
|
|
325
222
|
* Logs (CSV)
|
|
326
223
|
*
|
|
327
|
-
*
|
|
224
|
+
* Returns a CSV of the paid lookups made on a key, with the information recorded against each one.
|
|
225
|
+
*
|
|
226
|
+
* This method requires your Management Key, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
|
|
328
227
|
*
|
|
329
|
-
*
|
|
228
|
+
* You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
|
|
330
229
|
*
|
|
331
|
-
*
|
|
230
|
+
* 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.
|
|
332
231
|
*
|
|
333
|
-
* ##
|
|
232
|
+
* ## CSV Format
|
|
334
233
|
*
|
|
335
|
-
*
|
|
234
|
+
* The CSV has no header row. Columns, in order:
|
|
336
235
|
*
|
|
337
|
-
*
|
|
236
|
+
* 1. Timestamp (ISO 8601)
|
|
237
|
+
* 2. IP address the request was received from
|
|
238
|
+
* 3. Search term
|
|
239
|
+
* 4. URL the request originated from
|
|
240
|
+
* 5. Lookup type
|
|
241
|
+
* 6. Tags
|
|
242
|
+
* 7. Lookups consumed
|
|
243
|
+
* 8. Licensee name (sublicensing keys only)
|
|
244
|
+
* 9. Source IP address
|
|
338
245
|
*
|
|
339
|
-
*
|
|
246
|
+
* 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.
|
|
340
247
|
*
|
|
341
248
|
* ## Data Redaction
|
|
342
249
|
*
|
|
343
|
-
* Personally Identifiable Data (PII)
|
|
250
|
+
* We redact Personally Identifiable Data (PII) in your usage log (including IP, source IP, search term and URL data) weekly.
|
|
344
251
|
*
|
|
345
|
-
* By default
|
|
252
|
+
* By default we redact PII older than 28 days. You can change this period from your dashboard.
|
|
346
253
|
*
|
|
347
|
-
*
|
|
254
|
+
* Set the interval to `0` days to prevent PII collection altogether.
|
|
348
255
|
*
|
|
349
256
|
*/
|
|
350
|
-
declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.UseInfiniteQueryOptions<string,
|
|
257
|
+
declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.UseInfiniteQueryOptions<string, ErrorResponse, InfiniteData<string, unknown>, QueryKey<Options<KeyLogsData>>, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
351
258
|
_id: string;
|
|
352
259
|
_infinite?: boolean;
|
|
353
260
|
tags?: ReadonlyArray<string>;
|
|
354
|
-
}, "query" | "body" | "
|
|
355
|
-
initialData: InfiniteData<string, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "
|
|
261
|
+
}, "query" | "body" | "path" | "headers">> & {
|
|
262
|
+
initialData: InfiniteData<string, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
356
263
|
_id: string;
|
|
357
264
|
_infinite?: boolean;
|
|
358
265
|
tags?: ReadonlyArray<string>;
|
|
359
|
-
}, "query" | "body" | "
|
|
266
|
+
}, "query" | "body" | "path" | "headers">> | (() => InfiniteData<string, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
360
267
|
_id: string;
|
|
361
268
|
_infinite?: boolean;
|
|
362
269
|
tags?: ReadonlyArray<string>;
|
|
363
|
-
}, "query" | "body" | "
|
|
270
|
+
}, "query" | "body" | "path" | "headers">>) | undefined;
|
|
364
271
|
} & {
|
|
365
272
|
queryKey: QueryKey<Options<KeyLogsData>> & {
|
|
366
273
|
[dataTagSymbol]: InfiniteData<string, unknown>;
|
|
367
|
-
[dataTagErrorSymbol]:
|
|
274
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
368
275
|
};
|
|
369
276
|
};
|
|
370
277
|
/**
|
|
371
278
|
* Cleanse Address
|
|
372
279
|
*
|
|
373
|
-
*
|
|
280
|
+
* 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.
|
|
281
|
+
*
|
|
282
|
+
* A cleanse that returns a match costs a lookup. A no-match response is free.
|
|
283
|
+
*
|
|
284
|
+
* ## Countries
|
|
285
|
+
*
|
|
286
|
+
* Cleanse defaults to the UK. Pass `context` with an ISO 3166-1 alpha-3 country
|
|
287
|
+
* code to cleanse an address elsewhere, e.g. `context=USA` or `context=FRA`. The
|
|
288
|
+
* address datasets your key is licensed for decide which countries it can
|
|
289
|
+
* cleanse.
|
|
290
|
+
*
|
|
291
|
+
* The response shape is the same for every country: a standardised address in
|
|
292
|
+
* `match`, the raw source record in `match.native`, and the same confidence,
|
|
293
|
+
* fit and Match Level indicators. The Match Levels and confidence score are at
|
|
294
|
+
* their most discriminating for the UK, where cleanse runs against
|
|
295
|
+
* purpose-built indexes; elsewhere they are computed from the country's address
|
|
296
|
+
* dataset.
|
|
374
297
|
*
|
|
375
298
|
* ## Confidence Score
|
|
376
299
|
*
|
|
377
|
-
*
|
|
300
|
+
* Each incorrect, missing or misspelled element subtracts from the overall confidence score.
|
|
378
301
|
*
|
|
379
302
|
* ### Deciding on an Acceptable Confidence Score Threshold
|
|
380
303
|
*
|
|
381
|
-
*
|
|
304
|
+
* 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.
|
|
305
|
+
*
|
|
306
|
+
* 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:
|
|
382
307
|
*
|
|
383
|
-
* 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:
|
|
384
308
|
* - Which confidence scores indicate ambiguous matches (i.e. up to building level only)
|
|
385
309
|
* - Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)
|
|
386
310
|
*
|
|
387
|
-
* Depending on your business goals, you can also use the Match Levels to determine an acceptable match.
|
|
311
|
+
* 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.
|
|
388
312
|
*
|
|
389
313
|
*/
|
|
390
314
|
declare const addressCleanseMutation: (options?: Partial<Options<AddressCleanseData>>) => UseMutationOptions<AddressCleanseResponse, AddressCleanseError, Options<AddressCleanseData>>;
|
|
391
|
-
declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick<Options<FindAddressData>, "query" | "body" | "
|
|
315
|
+
declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
392
316
|
_id: string;
|
|
393
317
|
_infinite?: boolean;
|
|
394
318
|
tags?: ReadonlyArray<string>;
|
|
@@ -396,9 +320,9 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
|
|
|
396
320
|
/**
|
|
397
321
|
* Find Address
|
|
398
322
|
*
|
|
399
|
-
*
|
|
323
|
+
* Returns address suggestions for a partial address, ordered by relevance. Use it to power real-time address autofill.
|
|
400
324
|
*
|
|
401
|
-
* Consider
|
|
325
|
+
* Consider our address autocomplete JavaScript libraries, which add address lookup to a form without calling this API directly.
|
|
402
326
|
*
|
|
403
327
|
* ## API Usage
|
|
404
328
|
*
|
|
@@ -407,91 +331,75 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
|
|
|
407
331
|
* 1. Fetch address suggestions with `/autocomplete/addresses`
|
|
408
332
|
* 2. Acquire the complete address using the ID from the suggestion
|
|
409
333
|
*
|
|
410
|
-
* Step 2
|
|
334
|
+
* Step 2 decrements your lookup balance.
|
|
335
|
+
*
|
|
336
|
+
* 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.
|
|
337
|
+
*
|
|
338
|
+
* ## Context
|
|
411
339
|
*
|
|
412
|
-
*
|
|
340
|
+
* `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.
|
|
341
|
+
*
|
|
342
|
+
* Querying a full postcode within a supported context returns the entire address list for that postcode.
|
|
413
343
|
*
|
|
414
344
|
* ## Query Filters
|
|
415
345
|
*
|
|
416
|
-
* Refine results by appending filters to your querystring, e.g
|
|
346
|
+
* 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.
|
|
417
347
|
*
|
|
418
|
-
* To apply multiple filter terms, use a comma-separated list, e.g
|
|
348
|
+
* 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.
|
|
419
349
|
*
|
|
420
|
-
*
|
|
350
|
+
* Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
|
|
421
351
|
*
|
|
422
352
|
* ## Address Bias
|
|
423
353
|
*
|
|
424
354
|
* Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
|
|
425
355
|
*
|
|
426
|
-
* For example, use `bias_postcode_area=SW,SE` to
|
|
356
|
+
* For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
|
|
427
357
|
*
|
|
428
358
|
* Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
|
|
429
359
|
*
|
|
430
360
|
* ## Suggestion Format
|
|
431
361
|
*
|
|
432
|
-
* The suggestion format is subject to change. We recommend using the suggestion as-is to
|
|
362
|
+
* The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
|
|
433
363
|
*
|
|
434
364
|
* ## Rate Limiting and Cost
|
|
435
365
|
*
|
|
436
|
-
* The rate limit
|
|
366
|
+
* 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.
|
|
437
367
|
*
|
|
438
|
-
* 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
|
|
368
|
+
* 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.
|
|
439
369
|
*
|
|
440
370
|
*/
|
|
441
|
-
declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AutocompleteResponse,
|
|
371
|
+
declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AutocompleteResponse, ErrorResponse, AutocompleteResponse, [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
442
372
|
_id: string;
|
|
443
373
|
_infinite?: boolean;
|
|
444
374
|
tags?: ReadonlyArray<string>;
|
|
445
375
|
}]>, "queryFn"> & {
|
|
446
|
-
queryFn?: _tanstack_react_query.QueryFunction<AutocompleteResponse, [Pick<Options<FindAddressData>, "query" | "body" | "
|
|
376
|
+
queryFn?: _tanstack_react_query.QueryFunction<AutocompleteResponse, [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
447
377
|
_id: string;
|
|
448
378
|
_infinite?: boolean;
|
|
449
379
|
tags?: ReadonlyArray<string>;
|
|
450
380
|
}], never> | undefined;
|
|
451
381
|
} & {
|
|
452
|
-
queryKey: [Pick<Options<FindAddressData>, "query" | "body" | "
|
|
382
|
+
queryKey: [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
453
383
|
_id: string;
|
|
454
384
|
_infinite?: boolean;
|
|
455
385
|
tags?: ReadonlyArray<string>;
|
|
456
386
|
}] & {
|
|
457
387
|
[dataTagSymbol]: AutocompleteResponse;
|
|
458
|
-
[dataTagErrorSymbol]:
|
|
388
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
459
389
|
};
|
|
460
390
|
};
|
|
461
|
-
declare const resolveAddressQueryKey: (options: Options<ResolveAddressData>) => [Pick<Options<ResolveAddressData>, "query" | "body" | "
|
|
391
|
+
declare const resolveAddressQueryKey: (options: Options<ResolveAddressData>) => [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
462
392
|
_id: string;
|
|
463
393
|
_infinite?: boolean;
|
|
464
394
|
tags?: ReadonlyArray<string>;
|
|
465
395
|
}];
|
|
466
|
-
|
|
467
|
-
* Resolve Address
|
|
468
|
-
*
|
|
469
|
-
* Resolves an address autocompletion by its address ID.
|
|
470
|
-
*
|
|
471
|
-
* Resolved addresses (including global addresses) are returned in a UK format (up to 3 address lines) using UK nomenclature (like postcode and county).
|
|
472
|
-
*
|
|
473
|
-
*/
|
|
474
|
-
declare const resolveAddressOptions: (options: Options<ResolveAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GbrResolveAddressResponse, ErrorResponse, GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
396
|
+
declare const addressesQueryKey: (options?: Options<AddressesData>) => [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
475
397
|
_id: string;
|
|
476
398
|
_infinite?: boolean;
|
|
477
399
|
tags?: ReadonlyArray<string>;
|
|
478
|
-
}]
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
_infinite?: boolean;
|
|
482
|
-
tags?: ReadonlyArray<string>;
|
|
483
|
-
}], never> | undefined;
|
|
484
|
-
} & {
|
|
485
|
-
queryKey: [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
486
|
-
_id: string;
|
|
487
|
-
_infinite?: boolean;
|
|
488
|
-
tags?: ReadonlyArray<string>;
|
|
489
|
-
}] & {
|
|
490
|
-
[dataTagSymbol]: GbrResolveAddressResponse;
|
|
491
|
-
[dataTagErrorSymbol]: ErrorResponse;
|
|
492
|
-
};
|
|
493
|
-
};
|
|
494
|
-
declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
400
|
+
}];
|
|
401
|
+
declare const addressesInfiniteQueryKey: (options?: Options<AddressesData>) => QueryKey<Options<AddressesData>>;
|
|
402
|
+
declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
495
403
|
_id: string;
|
|
496
404
|
_infinite?: boolean;
|
|
497
405
|
tags?: ReadonlyArray<string>;
|
|
@@ -499,80 +407,50 @@ declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Opt
|
|
|
499
407
|
/**
|
|
500
408
|
* Find Place
|
|
501
409
|
*
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
* 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.
|
|
410
|
+
* Returns place suggestions for a query, ranked by relevance. Places cover countries, administrative areas, capitals and other administrative seats.
|
|
505
411
|
*
|
|
506
412
|
* ## Implementing Place Autocomplete
|
|
507
413
|
*
|
|
508
|
-
*
|
|
414
|
+
* Retrieving a full place takes two requests:
|
|
509
415
|
*
|
|
510
|
-
* 1.
|
|
511
|
-
* 2.
|
|
416
|
+
* 1. Fetch suggestions from `/places`
|
|
417
|
+
* 2. Fetch the place using the `id` on a suggestion
|
|
512
418
|
*
|
|
513
|
-
*
|
|
514
|
-
*
|
|
515
|
-
* Each place suggestion contains a descriptive name which you can provide to users to uniquely identify a place.
|
|
419
|
+
* 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.
|
|
516
420
|
*
|
|
517
421
|
* ## Rate Limiting and Cost
|
|
518
422
|
*
|
|
519
|
-
* The rate limit
|
|
423
|
+
* The rate limit is 3,000 requests per 5 minutes.
|
|
520
424
|
*
|
|
521
|
-
*
|
|
425
|
+
* `/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.
|
|
522
426
|
*
|
|
523
427
|
*/
|
|
524
|
-
declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<PlaceResponse,
|
|
428
|
+
declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<PlaceResponse, ErrorResponse, PlaceResponse, [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
525
429
|
_id: string;
|
|
526
430
|
_infinite?: boolean;
|
|
527
431
|
tags?: ReadonlyArray<string>;
|
|
528
432
|
}]>, "queryFn"> & {
|
|
529
|
-
queryFn?: _tanstack_react_query.QueryFunction<PlaceResponse, [Pick<Options<FindPlaceData>, "query" | "body" | "
|
|
433
|
+
queryFn?: _tanstack_react_query.QueryFunction<PlaceResponse, [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
530
434
|
_id: string;
|
|
531
435
|
_infinite?: boolean;
|
|
532
436
|
tags?: ReadonlyArray<string>;
|
|
533
437
|
}], never> | undefined;
|
|
534
438
|
} & {
|
|
535
|
-
queryKey: [Pick<Options<FindPlaceData>, "query" | "body" | "
|
|
439
|
+
queryKey: [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
536
440
|
_id: string;
|
|
537
441
|
_infinite?: boolean;
|
|
538
442
|
tags?: ReadonlyArray<string>;
|
|
539
443
|
}] & {
|
|
540
444
|
[dataTagSymbol]: PlaceResponse;
|
|
541
|
-
[dataTagErrorSymbol]:
|
|
445
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
542
446
|
};
|
|
543
447
|
};
|
|
544
|
-
declare const resolvePlaceQueryKey: (options: Options<ResolvePlaceData>) => [Pick<Options<ResolvePlaceData>, "query" | "body" | "
|
|
448
|
+
declare const resolvePlaceQueryKey: (options: Options<ResolvePlaceData>) => [Pick<Options<ResolvePlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
545
449
|
_id: string;
|
|
546
450
|
_infinite?: boolean;
|
|
547
451
|
tags?: ReadonlyArray<string>;
|
|
548
452
|
}];
|
|
549
|
-
|
|
550
|
-
* Resolve Place
|
|
551
|
-
*
|
|
552
|
-
* Resolves a place autocompletion by its place ID.
|
|
553
|
-
*
|
|
554
|
-
*/
|
|
555
|
-
declare const resolvePlaceOptions: (options: Options<ResolvePlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ResolvePlaceResponse, ErrorResponse, ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
556
|
-
_id: string;
|
|
557
|
-
_infinite?: boolean;
|
|
558
|
-
tags?: ReadonlyArray<string>;
|
|
559
|
-
}]>, "queryFn"> & {
|
|
560
|
-
queryFn?: _tanstack_react_query.QueryFunction<ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
561
|
-
_id: string;
|
|
562
|
-
_infinite?: boolean;
|
|
563
|
-
tags?: ReadonlyArray<string>;
|
|
564
|
-
}], never> | undefined;
|
|
565
|
-
} & {
|
|
566
|
-
queryKey: [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
567
|
-
_id: string;
|
|
568
|
-
_infinite?: boolean;
|
|
569
|
-
tags?: ReadonlyArray<string>;
|
|
570
|
-
}] & {
|
|
571
|
-
[dataTagSymbol]: ResolvePlaceResponse;
|
|
572
|
-
[dataTagErrorSymbol]: ErrorResponse;
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
declare const listLicenseesQueryKey: (options: Options<ListLicenseesData>) => [Pick<Options<ListLicenseesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
453
|
+
declare const listLicenseesQueryKey: (options: Options<ListLicenseesData>) => [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
576
454
|
_id: string;
|
|
577
455
|
_infinite?: boolean;
|
|
578
456
|
tags?: ReadonlyArray<string>;
|
|
@@ -580,41 +458,41 @@ declare const listLicenseesQueryKey: (options: Options<ListLicenseesData>) => [P
|
|
|
580
458
|
/**
|
|
581
459
|
* List
|
|
582
460
|
*
|
|
583
|
-
* Returns a list
|
|
461
|
+
* Returns a key's licensees, oldest first, up to 100 per request. The list omits cancelled licensees. The key must be enabled for sublicensing.
|
|
584
462
|
*/
|
|
585
|
-
declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<LicenseesResponse,
|
|
463
|
+
declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<LicenseesResponse, ErrorResponse, LicenseesResponse, [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
586
464
|
_id: string;
|
|
587
465
|
_infinite?: boolean;
|
|
588
466
|
tags?: ReadonlyArray<string>;
|
|
589
467
|
}]>, "queryFn"> & {
|
|
590
|
-
queryFn?: _tanstack_react_query.QueryFunction<LicenseesResponse, [Pick<Options<ListLicenseesData>, "query" | "body" | "
|
|
468
|
+
queryFn?: _tanstack_react_query.QueryFunction<LicenseesResponse, [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
591
469
|
_id: string;
|
|
592
470
|
_infinite?: boolean;
|
|
593
471
|
tags?: ReadonlyArray<string>;
|
|
594
472
|
}], never> | undefined;
|
|
595
473
|
} & {
|
|
596
|
-
queryKey: [Pick<Options<ListLicenseesData>, "query" | "body" | "
|
|
474
|
+
queryKey: [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
597
475
|
_id: string;
|
|
598
476
|
_infinite?: boolean;
|
|
599
477
|
tags?: ReadonlyArray<string>;
|
|
600
478
|
}] & {
|
|
601
479
|
[dataTagSymbol]: LicenseesResponse;
|
|
602
|
-
[dataTagErrorSymbol]:
|
|
480
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
603
481
|
};
|
|
604
482
|
};
|
|
605
483
|
/**
|
|
606
484
|
* Create
|
|
607
485
|
*
|
|
608
|
-
*
|
|
486
|
+
* Creates a licensee on a key and returns it with its generated `sl_` key. The key must be enabled for sublicensing.
|
|
609
487
|
*/
|
|
610
488
|
declare const createLicenseeMutation: (options?: Partial<Options<CreateLicenseeData>>) => UseMutationOptions<CreateLicenseeResponse, CreateLicenseeError, Options<CreateLicenseeData>>;
|
|
611
489
|
/**
|
|
612
490
|
* Cancel
|
|
613
491
|
*
|
|
614
|
-
* Cancels a licensee
|
|
492
|
+
* Cancels a licensee. Its key stops working and it drops out of the licensee list. Contact us to reverse it.
|
|
615
493
|
*/
|
|
616
494
|
declare const deleteLicenseeMutation: (options?: Partial<Options<DeleteLicenseeData>>) => UseMutationOptions<DeleteLicenseeResponse, DeleteLicenseeError, Options<DeleteLicenseeData>>;
|
|
617
|
-
declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>) => [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "
|
|
495
|
+
declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>) => [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
618
496
|
_id: string;
|
|
619
497
|
_infinite?: boolean;
|
|
620
498
|
tags?: ReadonlyArray<string>;
|
|
@@ -622,35 +500,41 @@ declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>)
|
|
|
622
500
|
/**
|
|
623
501
|
* Retrieve
|
|
624
502
|
*
|
|
625
|
-
* Returns licensee
|
|
503
|
+
* Returns a licensee by its `sl_` key. A cancelled or unknown licensee returns `404`.
|
|
626
504
|
*/
|
|
627
|
-
declare const retrieveLicenseeOptions: (options: Options<RetrieveLicenseeData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<LicenseeResponse,
|
|
505
|
+
declare const retrieveLicenseeOptions: (options: Options<RetrieveLicenseeData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<LicenseeResponse, ErrorResponse, LicenseeResponse, [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
628
506
|
_id: string;
|
|
629
507
|
_infinite?: boolean;
|
|
630
508
|
tags?: ReadonlyArray<string>;
|
|
631
509
|
}]>, "queryFn"> & {
|
|
632
|
-
queryFn?: _tanstack_react_query.QueryFunction<LicenseeResponse, [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "
|
|
510
|
+
queryFn?: _tanstack_react_query.QueryFunction<LicenseeResponse, [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
633
511
|
_id: string;
|
|
634
512
|
_infinite?: boolean;
|
|
635
513
|
tags?: ReadonlyArray<string>;
|
|
636
514
|
}], never> | undefined;
|
|
637
515
|
} & {
|
|
638
|
-
queryKey: [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "
|
|
516
|
+
queryKey: [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
639
517
|
_id: string;
|
|
640
518
|
_infinite?: boolean;
|
|
641
519
|
tags?: ReadonlyArray<string>;
|
|
642
520
|
}] & {
|
|
643
521
|
[dataTagSymbol]: LicenseeResponse;
|
|
644
|
-
[dataTagErrorSymbol]:
|
|
522
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
645
523
|
};
|
|
646
524
|
};
|
|
647
525
|
/**
|
|
648
526
|
* Update
|
|
649
527
|
*
|
|
650
|
-
*
|
|
528
|
+
* Updates a licensee's address, postcode, allowed URLs and daily limit. Returns the updated licensee. The name is fixed at creation.
|
|
651
529
|
*/
|
|
652
530
|
declare const updateLicenseeMutation: (options?: Partial<Options<UpdateLicenseeData>>) => UseMutationOptions<UpdateLicenseeResponse, UpdateLicenseeError, Options<UpdateLicenseeData>>;
|
|
653
|
-
|
|
531
|
+
/**
|
|
532
|
+
* Regenerate Key
|
|
533
|
+
*
|
|
534
|
+
* 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.
|
|
535
|
+
*/
|
|
536
|
+
declare const regenerateLicenseeKeyMutation: (options?: Partial<Options<RegenerateLicenseeKeyData>>) => UseMutationOptions<RegenerateLicenseeKeyResponse, RegenerateLicenseeKeyError, Options<RegenerateLicenseeKeyData>>;
|
|
537
|
+
declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
654
538
|
_id: string;
|
|
655
539
|
_infinite?: boolean;
|
|
656
540
|
tags?: ReadonlyArray<string>;
|
|
@@ -658,32 +542,32 @@ declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<
|
|
|
658
542
|
/**
|
|
659
543
|
* List
|
|
660
544
|
*
|
|
661
|
-
*
|
|
545
|
+
* Returns every configuration stored against a key, oldest first.
|
|
662
546
|
*/
|
|
663
|
-
declare const listConfigsOptions: (options: Options<ListConfigsData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ConfigsResponse,
|
|
547
|
+
declare const listConfigsOptions: (options: Options<ListConfigsData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ConfigsResponse, ErrorResponse, ConfigsResponse, [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
664
548
|
_id: string;
|
|
665
549
|
_infinite?: boolean;
|
|
666
550
|
tags?: ReadonlyArray<string>;
|
|
667
551
|
}]>, "queryFn"> & {
|
|
668
|
-
queryFn?: _tanstack_react_query.QueryFunction<ConfigsResponse, [Pick<Options<ListConfigsData>, "query" | "body" | "
|
|
552
|
+
queryFn?: _tanstack_react_query.QueryFunction<ConfigsResponse, [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
669
553
|
_id: string;
|
|
670
554
|
_infinite?: boolean;
|
|
671
555
|
tags?: ReadonlyArray<string>;
|
|
672
556
|
}], never> | undefined;
|
|
673
557
|
} & {
|
|
674
|
-
queryKey: [Pick<Options<ListConfigsData>, "query" | "body" | "
|
|
558
|
+
queryKey: [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
675
559
|
_id: string;
|
|
676
560
|
_infinite?: boolean;
|
|
677
561
|
tags?: ReadonlyArray<string>;
|
|
678
562
|
}] & {
|
|
679
563
|
[dataTagSymbol]: ConfigsResponse;
|
|
680
|
-
[dataTagErrorSymbol]:
|
|
564
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
681
565
|
};
|
|
682
566
|
};
|
|
683
567
|
/**
|
|
684
568
|
* Create
|
|
685
569
|
*
|
|
686
|
-
*
|
|
570
|
+
* Creates a named configuration on a key and returns it.
|
|
687
571
|
*/
|
|
688
572
|
declare const createConfigMutation: (options?: Partial<Options<CreateConfigData>>) => UseMutationOptions<CreateConfigResponse, CreateConfigError, Options<CreateConfigData>>;
|
|
689
573
|
/**
|
|
@@ -692,7 +576,7 @@ declare const createConfigMutation: (options?: Partial<Options<CreateConfigData>
|
|
|
692
576
|
* Permanently deletes a configuration object.
|
|
693
577
|
*/
|
|
694
578
|
declare const deleteConfigMutation: (options?: Partial<Options<DeleteConfigData>>) => UseMutationOptions<DeleteConfigResponse, DeleteConfigError, Options<DeleteConfigData>>;
|
|
695
|
-
declare const retrieveConfigQueryKey: (options: Options<RetrieveConfigData>) => [Pick<Options<RetrieveConfigData>, "query" | "body" | "
|
|
579
|
+
declare const retrieveConfigQueryKey: (options: Options<RetrieveConfigData>) => [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
696
580
|
_id: string;
|
|
697
581
|
_infinite?: boolean;
|
|
698
582
|
tags?: ReadonlyArray<string>;
|
|
@@ -700,20 +584,20 @@ declare const retrieveConfigQueryKey: (options: Options<RetrieveConfigData>) =>
|
|
|
700
584
|
/**
|
|
701
585
|
* Retrieve
|
|
702
586
|
*
|
|
703
|
-
*
|
|
587
|
+
* Returns a configuration by name. This request needs no `user_token`, so a browser integration can read its own configuration at runtime.
|
|
704
588
|
*/
|
|
705
|
-
declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ConfigResponse, RetrieveConfigError, ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "
|
|
589
|
+
declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ConfigResponse, RetrieveConfigError, ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
706
590
|
_id: string;
|
|
707
591
|
_infinite?: boolean;
|
|
708
592
|
tags?: ReadonlyArray<string>;
|
|
709
593
|
}]>, "queryFn"> & {
|
|
710
|
-
queryFn?: _tanstack_react_query.QueryFunction<ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "
|
|
594
|
+
queryFn?: _tanstack_react_query.QueryFunction<ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
711
595
|
_id: string;
|
|
712
596
|
_infinite?: boolean;
|
|
713
597
|
tags?: ReadonlyArray<string>;
|
|
714
598
|
}], never> | undefined;
|
|
715
599
|
} & {
|
|
716
|
-
queryKey: [Pick<Options<RetrieveConfigData>, "query" | "body" | "
|
|
600
|
+
queryKey: [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
717
601
|
_id: string;
|
|
718
602
|
_infinite?: boolean;
|
|
719
603
|
tags?: ReadonlyArray<string>;
|
|
@@ -725,70 +609,203 @@ declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _
|
|
|
725
609
|
/**
|
|
726
610
|
* Update
|
|
727
611
|
*
|
|
728
|
-
*
|
|
612
|
+
* Replaces a configuration's payload and returns the updated configuration. The name is fixed at creation.
|
|
729
613
|
*/
|
|
730
614
|
declare const updateConfigMutation: (options?: Partial<Options<UpdateConfigData>>) => UseMutationOptions<UpdateConfigResponse, UpdateConfigError, Options<UpdateConfigData>>;
|
|
731
|
-
declare const emailValidationQueryKey: (options: Options<EmailValidationData>) => [Pick<Options<EmailValidationData>, "query" | "body" | "
|
|
615
|
+
declare const emailValidationQueryKey: (options: Options<EmailValidationData>) => [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
732
616
|
_id: string;
|
|
733
617
|
_infinite?: boolean;
|
|
734
618
|
tags?: ReadonlyArray<string>;
|
|
735
619
|
}];
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
declare const
|
|
620
|
+
declare const phoneNumberValidationQueryKey: (options: Options<PhoneNumberValidationData>) => [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
621
|
+
_id: string;
|
|
622
|
+
_infinite?: boolean;
|
|
623
|
+
tags?: ReadonlyArray<string>;
|
|
624
|
+
}];
|
|
625
|
+
|
|
626
|
+
declare const postcodesOptions: (options: Options<PostcodesData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<PostcodeResponse, PostcodesError, PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
743
627
|
_id: string;
|
|
744
628
|
_infinite?: boolean;
|
|
745
629
|
tags?: ReadonlyArray<string>;
|
|
746
630
|
}]>, "queryFn"> & {
|
|
747
|
-
queryFn?: _tanstack_react_query.QueryFunction<
|
|
631
|
+
queryFn?: _tanstack_react_query.QueryFunction<PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
748
632
|
_id: string;
|
|
749
633
|
_infinite?: boolean;
|
|
750
634
|
tags?: ReadonlyArray<string>;
|
|
751
635
|
}], never> | undefined;
|
|
752
636
|
} & {
|
|
753
|
-
queryKey: [Pick<Options<
|
|
637
|
+
queryKey: [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
754
638
|
_id: string;
|
|
755
639
|
_infinite?: boolean;
|
|
756
640
|
tags?: ReadonlyArray<string>;
|
|
757
641
|
}] & {
|
|
758
|
-
[dataTagSymbol]:
|
|
759
|
-
[dataTagErrorSymbol]:
|
|
642
|
+
[dataTagSymbol]: PostcodeResponse;
|
|
643
|
+
[dataTagErrorSymbol]: PostcodesError;
|
|
760
644
|
};
|
|
645
|
+
} & {
|
|
646
|
+
gcTime: 0;
|
|
647
|
+
staleTime: 0;
|
|
761
648
|
};
|
|
762
|
-
declare const
|
|
649
|
+
declare const postcodesInfiniteOptions: (options: Options<PostcodesData>) => _tanstack_react_query.UseInfiniteQueryOptions<PostcodeResponse, PostcodesError, _tanstack_react_query.InfiniteData<PostcodeResponse, unknown>, QueryKey<Options<PostcodesData>>, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
763
650
|
_id: string;
|
|
764
651
|
_infinite?: boolean;
|
|
765
652
|
tags?: ReadonlyArray<string>;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
653
|
+
}, "query" | "body" | "path" | "headers">> & {
|
|
654
|
+
initialData: _tanstack_react_query.InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
655
|
+
_id: string;
|
|
656
|
+
_infinite?: boolean;
|
|
657
|
+
tags?: ReadonlyArray<string>;
|
|
658
|
+
}, "query" | "body" | "path" | "headers">> | (() => _tanstack_react_query.InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
659
|
+
_id: string;
|
|
660
|
+
_infinite?: boolean;
|
|
661
|
+
tags?: ReadonlyArray<string>;
|
|
662
|
+
}, "query" | "body" | "path" | "headers">>) | undefined;
|
|
663
|
+
} & {
|
|
664
|
+
queryKey: QueryKey<Options<PostcodesData>> & {
|
|
665
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<PostcodeResponse, unknown>;
|
|
666
|
+
[dataTagErrorSymbol]: PostcodesError;
|
|
667
|
+
};
|
|
668
|
+
} & {
|
|
669
|
+
gcTime: 0;
|
|
670
|
+
staleTime: 0;
|
|
671
|
+
};
|
|
672
|
+
declare const resolveAddressOptions: (options: Options<ResolveAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GbrResolveAddressResponse, ErrorResponse, GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
774
673
|
_id: string;
|
|
775
674
|
_infinite?: boolean;
|
|
776
675
|
tags?: ReadonlyArray<string>;
|
|
777
676
|
}]>, "queryFn"> & {
|
|
778
|
-
queryFn?: _tanstack_react_query.QueryFunction<
|
|
677
|
+
queryFn?: _tanstack_react_query.QueryFunction<GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
779
678
|
_id: string;
|
|
780
679
|
_infinite?: boolean;
|
|
781
680
|
tags?: ReadonlyArray<string>;
|
|
782
681
|
}], never> | undefined;
|
|
783
682
|
} & {
|
|
784
|
-
queryKey: [Pick<Options<
|
|
683
|
+
queryKey: [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
684
|
+
_id: string;
|
|
685
|
+
_infinite?: boolean;
|
|
686
|
+
tags?: ReadonlyArray<string>;
|
|
687
|
+
}] & {
|
|
688
|
+
[dataTagSymbol]: GbrResolveAddressResponse;
|
|
689
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
690
|
+
};
|
|
691
|
+
} & {
|
|
692
|
+
gcTime: 0;
|
|
693
|
+
staleTime: 0;
|
|
694
|
+
};
|
|
695
|
+
declare const addressesOptions: (options?: Options<AddressesData> | undefined) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AddressResponse, AddressesError, AddressResponse, [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
696
|
+
_id: string;
|
|
697
|
+
_infinite?: boolean;
|
|
698
|
+
tags?: ReadonlyArray<string>;
|
|
699
|
+
}]>, "queryFn"> & {
|
|
700
|
+
queryFn?: _tanstack_react_query.QueryFunction<AddressResponse, [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
701
|
+
_id: string;
|
|
702
|
+
_infinite?: boolean;
|
|
703
|
+
tags?: ReadonlyArray<string>;
|
|
704
|
+
}], never> | undefined;
|
|
705
|
+
} & {
|
|
706
|
+
queryKey: [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
707
|
+
_id: string;
|
|
708
|
+
_infinite?: boolean;
|
|
709
|
+
tags?: ReadonlyArray<string>;
|
|
710
|
+
}] & {
|
|
711
|
+
[dataTagSymbol]: AddressResponse;
|
|
712
|
+
[dataTagErrorSymbol]: AddressesError;
|
|
713
|
+
};
|
|
714
|
+
} & {
|
|
715
|
+
gcTime: 0;
|
|
716
|
+
staleTime: 0;
|
|
717
|
+
};
|
|
718
|
+
declare const addressesInfiniteOptions: (options?: Options<AddressesData> | undefined) => _tanstack_react_query.UseInfiniteQueryOptions<AddressResponse, AddressesError, _tanstack_react_query.InfiniteData<AddressResponse, unknown>, QueryKey<Options<AddressesData>>, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
719
|
+
_id: string;
|
|
720
|
+
_infinite?: boolean;
|
|
721
|
+
tags?: ReadonlyArray<string>;
|
|
722
|
+
}, "query" | "body" | "path" | "headers">> & {
|
|
723
|
+
initialData: _tanstack_react_query.InfiniteData<AddressResponse, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
724
|
+
_id: string;
|
|
725
|
+
_infinite?: boolean;
|
|
726
|
+
tags?: ReadonlyArray<string>;
|
|
727
|
+
}, "query" | "body" | "path" | "headers">> | (() => _tanstack_react_query.InfiniteData<AddressResponse, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
728
|
+
_id: string;
|
|
729
|
+
_infinite?: boolean;
|
|
730
|
+
tags?: ReadonlyArray<string>;
|
|
731
|
+
}, "query" | "body" | "path" | "headers">>) | undefined;
|
|
732
|
+
} & {
|
|
733
|
+
queryKey: QueryKey<Options<AddressesData>> & {
|
|
734
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<AddressResponse, unknown>;
|
|
735
|
+
[dataTagErrorSymbol]: AddressesError;
|
|
736
|
+
};
|
|
737
|
+
} & {
|
|
738
|
+
gcTime: 0;
|
|
739
|
+
staleTime: 0;
|
|
740
|
+
};
|
|
741
|
+
declare const resolvePlaceOptions: (options: Options<ResolvePlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ResolvePlaceResponse, ErrorResponse, ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
742
|
+
_id: string;
|
|
743
|
+
_infinite?: boolean;
|
|
744
|
+
tags?: ReadonlyArray<string>;
|
|
745
|
+
}]>, "queryFn"> & {
|
|
746
|
+
queryFn?: _tanstack_react_query.QueryFunction<ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
747
|
+
_id: string;
|
|
748
|
+
_infinite?: boolean;
|
|
749
|
+
tags?: ReadonlyArray<string>;
|
|
750
|
+
}], never> | undefined;
|
|
751
|
+
} & {
|
|
752
|
+
queryKey: [Pick<Options<ResolvePlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
753
|
+
_id: string;
|
|
754
|
+
_infinite?: boolean;
|
|
755
|
+
tags?: ReadonlyArray<string>;
|
|
756
|
+
}] & {
|
|
757
|
+
[dataTagSymbol]: ResolvePlaceResponse;
|
|
758
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
759
|
+
};
|
|
760
|
+
} & {
|
|
761
|
+
gcTime: 0;
|
|
762
|
+
staleTime: 0;
|
|
763
|
+
};
|
|
764
|
+
declare const emailValidationOptions: (options: Options<EmailValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<EmailResponse, ErrorResponse, EmailResponse, [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
765
|
+
_id: string;
|
|
766
|
+
_infinite?: boolean;
|
|
767
|
+
tags?: ReadonlyArray<string>;
|
|
768
|
+
}]>, "queryFn"> & {
|
|
769
|
+
queryFn?: _tanstack_react_query.QueryFunction<EmailResponse, [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
770
|
+
_id: string;
|
|
771
|
+
_infinite?: boolean;
|
|
772
|
+
tags?: ReadonlyArray<string>;
|
|
773
|
+
}], never> | undefined;
|
|
774
|
+
} & {
|
|
775
|
+
queryKey: [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
776
|
+
_id: string;
|
|
777
|
+
_infinite?: boolean;
|
|
778
|
+
tags?: ReadonlyArray<string>;
|
|
779
|
+
}] & {
|
|
780
|
+
[dataTagSymbol]: EmailResponse;
|
|
781
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
782
|
+
};
|
|
783
|
+
} & {
|
|
784
|
+
gcTime: 0;
|
|
785
|
+
staleTime: 0;
|
|
786
|
+
};
|
|
787
|
+
declare const phoneNumberValidationOptions: (options: Options<PhoneNumberValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<PhoneNumberResponse, ErrorResponse, PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
788
|
+
_id: string;
|
|
789
|
+
_infinite?: boolean;
|
|
790
|
+
tags?: ReadonlyArray<string>;
|
|
791
|
+
}]>, "queryFn"> & {
|
|
792
|
+
queryFn?: _tanstack_react_query.QueryFunction<PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
793
|
+
_id: string;
|
|
794
|
+
_infinite?: boolean;
|
|
795
|
+
tags?: ReadonlyArray<string>;
|
|
796
|
+
}], never> | undefined;
|
|
797
|
+
} & {
|
|
798
|
+
queryKey: [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
|
|
785
799
|
_id: string;
|
|
786
800
|
_infinite?: boolean;
|
|
787
801
|
tags?: ReadonlyArray<string>;
|
|
788
802
|
}] & {
|
|
789
803
|
[dataTagSymbol]: PhoneNumberResponse;
|
|
790
|
-
[dataTagErrorSymbol]:
|
|
804
|
+
[dataTagErrorSymbol]: ErrorResponse;
|
|
791
805
|
};
|
|
806
|
+
} & {
|
|
807
|
+
gcTime: 0;
|
|
808
|
+
staleTime: 0;
|
|
792
809
|
};
|
|
793
810
|
|
|
794
|
-
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 };
|
|
811
|
+
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 };
|