@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
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
import { e9 as TDataShape, ea as Options$1, C as Client, cl as PostcodesData, eb as RequestResult, co as PostcodesResponses, cm as PostcodesErrors, cq as KeyAvailabilityData, ct as KeyAvailabilityResponses, cr as KeyAvailabilityErrors, cv as KeyDetailsData, cy as KeyDetailsResponses, cw as KeyDetailsErrors, cA as UpdateKeyDetailsData, cD as UpdateKeyDetailsResponses, cB as UpdateKeyDetailsErrors, cF as KeyUsageData, cI as KeyUsageResponses, cG as KeyUsageErrors, cK as KeyLogsData, cN as KeyLogsResponses, cL as KeyLogsErrors, cP as AddressCleanseData, cS as AddressCleanseResponses, cQ as AddressCleanseErrors, cU as FindAddressData, cX as FindAddressResponses, cV as FindAddressErrors, cZ as ResolveAddressData, d0 as ResolveAddressResponses, c_ as ResolveAddressErrors, d2 as FindPlaceData, d5 as FindPlaceResponses, d3 as FindPlaceErrors, d7 as ResolvePlaceData, da as ResolvePlaceResponses, d8 as ResolvePlaceErrors, dc as ListLicenseesData, df as ListLicenseesResponses, dd as ListLicenseesErrors, dh as CreateLicenseeData, dk as CreateLicenseeResponses, di as CreateLicenseeErrors, dm as DeleteLicenseeData, dq as DeleteLicenseeResponses, dn as DeleteLicenseeErrors, ds as RetrieveLicenseeData, dv as RetrieveLicenseeResponses, dt as RetrieveLicenseeErrors, dx as UpdateLicenseeData, dA as UpdateLicenseeResponses, dy as UpdateLicenseeErrors, dC as ListConfigsData, dF as ListConfigsResponses, dD as ListConfigsErrors, dH as CreateConfigData, dK as CreateConfigResponses, dI as CreateConfigErrors, dM as DeleteConfigData, dP as DeleteConfigResponses, dN as DeleteConfigErrors, dR as RetrieveConfigData, dU as RetrieveConfigResponses, dS as RetrieveConfigErrors, dW as UpdateConfigData, dZ as UpdateConfigResponses, dX as UpdateConfigErrors, d$ as EmailValidationData, e2 as EmailValidationResponses, e0 as EmailValidationErrors, e4 as PhoneNumberValidationData, e7 as PhoneNumberValidationResponses, e5 as PhoneNumberValidationErrors } from './types.gen-l7tYP1ZJ.js';
|
|
2
|
-
|
|
3
|
-
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
4
|
-
/**
|
|
5
|
-
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
-
* individual options. This might be also useful if you want to implement a
|
|
7
|
-
* custom client.
|
|
8
|
-
*/
|
|
9
|
-
client?: Client;
|
|
10
|
-
/**
|
|
11
|
-
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
-
*/
|
|
14
|
-
meta?: Record<string, unknown>;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Lookup Postcode
|
|
18
|
-
*
|
|
19
|
-
* Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
|
|
20
|
-
*
|
|
21
|
-
* 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/).
|
|
22
|
-
*
|
|
23
|
-
* ## Postcode Not Found
|
|
24
|
-
*
|
|
25
|
-
* Lookup balance is unaffected by invalid postcodes. The API returns a `404` response with response body:
|
|
26
|
-
*
|
|
27
|
-
* ```json
|
|
28
|
-
* {
|
|
29
|
-
* "code": 4040,
|
|
30
|
-
* "message": "Postcode not found",
|
|
31
|
-
* "suggestions": ["SW1A 0AA"]
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* ### Suggestions
|
|
36
|
-
*
|
|
37
|
-
* 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`).
|
|
38
|
-
*
|
|
39
|
-
* 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.
|
|
40
|
-
*
|
|
41
|
-
* The suggestion list will be empty if the postcode has deviated too far from a valid postcode format.
|
|
42
|
-
*
|
|
43
|
-
* ## Multiple Residence
|
|
44
|
-
*
|
|
45
|
-
* A small number of postcodes will return more than 100 premises. These may require pagination. Use `page` to paginate the result set.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
declare const postcodes: <ThrowOnError extends boolean = false>(options: Options<PostcodesData, ThrowOnError>) => RequestResult<PostcodesResponses, PostcodesErrors, ThrowOnError, "fields">;
|
|
49
|
-
/**
|
|
50
|
-
* Availability
|
|
51
|
-
*
|
|
52
|
-
* Returns public information on your API Key.
|
|
53
|
-
*
|
|
54
|
-
* This endpoint can be used for the following:
|
|
55
|
-
* - Determine if the key is currently usable via the `available` property
|
|
56
|
-
* - Determine available contexts for an API Key
|
|
57
|
-
* - Identify the currently likely context of a user given their location
|
|
58
|
-
*
|
|
59
|
-
* You may pass both API Keys (beginning `ak_`) and Sub-licensed Keys (beginning `sl_`).
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
declare const keyAvailability: <ThrowOnError extends boolean = false>(options: Options<KeyAvailabilityData, ThrowOnError>) => RequestResult<KeyAvailabilityResponses, KeyAvailabilityErrors, ThrowOnError, "fields">;
|
|
63
|
-
/**
|
|
64
|
-
* Details
|
|
65
|
-
*
|
|
66
|
-
* Returns private data on the key including remaining lookups, available datasets and usage limits.
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
declare const keyDetails: <ThrowOnError extends boolean = false>(options: Options<KeyDetailsData, ThrowOnError>) => RequestResult<KeyDetailsResponses, KeyDetailsErrors, ThrowOnError, "fields">;
|
|
70
|
-
/**
|
|
71
|
-
* Update Details
|
|
72
|
-
*
|
|
73
|
-
* Update API Key Details
|
|
74
|
-
*/
|
|
75
|
-
declare const updateKeyDetails: <ThrowOnError extends boolean = false>(options: Options<UpdateKeyDetailsData, ThrowOnError>) => RequestResult<UpdateKeyDetailsResponses, UpdateKeyDetailsErrors, ThrowOnError, "fields">;
|
|
76
|
-
/**
|
|
77
|
-
* Usage Stats
|
|
78
|
-
*
|
|
79
|
-
* Reports the number of lookups consumed on a key for a range of days.
|
|
80
|
-
*
|
|
81
|
-
* 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.
|
|
82
|
-
*
|
|
83
|
-
* If no `start` time is provided, the start time will be set to 21 days prior to the current time.
|
|
84
|
-
*
|
|
85
|
-
* If no `end` time is provided, the current time will be used.
|
|
86
|
-
*
|
|
87
|
-
* 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`.
|
|
88
|
-
*
|
|
89
|
-
*/
|
|
90
|
-
declare const keyUsage: <ThrowOnError extends boolean = false>(options: Options<KeyUsageData, ThrowOnError>) => RequestResult<KeyUsageResponses, KeyUsageErrors, ThrowOnError, "fields">;
|
|
91
|
-
/**
|
|
92
|
-
* Logs (CSV)
|
|
93
|
-
*
|
|
94
|
-
* Reports lookup information on a key for paid lookups.
|
|
95
|
-
*
|
|
96
|
-
* This method requires a `user_token`, which can be found on your [accounts page](https://ideal-postcodes.co.uk/account).
|
|
97
|
-
*
|
|
98
|
-
* 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.
|
|
99
|
-
*
|
|
100
|
-
* ## Download Usage History (CSV)
|
|
101
|
-
*
|
|
102
|
-
* `GET /keys/:key/lookups`
|
|
103
|
-
*
|
|
104
|
-
* Returns a CSV download of lookups performed and associated information.
|
|
105
|
-
*
|
|
106
|
-
* Note that the Content-Type returned will be CSV (text/csv). For a non 200 response, the `Content-Type` will revert to JSON with the error code and message embedded.
|
|
107
|
-
*
|
|
108
|
-
* ## Data Redaction
|
|
109
|
-
*
|
|
110
|
-
* Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
|
|
111
|
-
*
|
|
112
|
-
* By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
|
|
113
|
-
*
|
|
114
|
-
* You may prevent PII collection altogether by setting the interval to `0` days.
|
|
115
|
-
*
|
|
116
|
-
*/
|
|
117
|
-
declare const keyLogs: <ThrowOnError extends boolean = false>(options: Options<KeyLogsData, ThrowOnError>) => RequestResult<KeyLogsResponses, KeyLogsErrors, ThrowOnError, "fields">;
|
|
118
|
-
/**
|
|
119
|
-
* Cleanse Address
|
|
120
|
-
*
|
|
121
|
-
* The address cleanse API attempts to return the closest matching address for any given address inputs. We also return a number of Match Level indicators that describe the degree to which the suggested address matches the input address. The more impaired the input address, the harder it is to cleanse.
|
|
122
|
-
*
|
|
123
|
-
* ## Confidence Score
|
|
124
|
-
*
|
|
125
|
-
* The confidence score is a number ranging between 0 and 1. Where 1 implies a full match and 0 implies no major elements completely match. Each incorrect, missing or misspelled element will subtract from the overall confidence score.
|
|
126
|
-
*
|
|
127
|
-
* ### Deciding on an Acceptable Confidence Score Threshold
|
|
128
|
-
*
|
|
129
|
-
* Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organisation name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.
|
|
130
|
-
*
|
|
131
|
-
* 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:
|
|
132
|
-
* - Which confidence scores indicate ambiguous matches (i.e. up to building level only)
|
|
133
|
-
* - Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)
|
|
134
|
-
*
|
|
135
|
-
* Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organisation names an important feature?
|
|
136
|
-
*
|
|
137
|
-
*/
|
|
138
|
-
declare const addressCleanse: <ThrowOnError extends boolean = false>(options: Options<AddressCleanseData, ThrowOnError>) => RequestResult<AddressCleanseResponses, AddressCleanseErrors, ThrowOnError, "fields">;
|
|
139
|
-
/**
|
|
140
|
-
* Find Address
|
|
141
|
-
*
|
|
142
|
-
* The Address Autocomplete API delivers address suggestions in order of relevance based on a provided query. It aids real-time address autofill implementations.
|
|
143
|
-
*
|
|
144
|
-
* Consider using our Address Autocomplete JavaScript libraries to add address lookup to a form in moments rather than interacting with this API directly.
|
|
145
|
-
*
|
|
146
|
-
* ## API Usage
|
|
147
|
-
*
|
|
148
|
-
* Implementing our Address Autocomplete API involves:
|
|
149
|
-
*
|
|
150
|
-
* 1. Fetch address suggestions with `/autocomplete/addresses`
|
|
151
|
-
* 2. Acquire the complete address using the ID from the suggestion
|
|
152
|
-
*
|
|
153
|
-
* Step 2 will decrement your lookup balance.
|
|
154
|
-
*
|
|
155
|
-
* Note that step 1 is not a free standalone resource. Integrations that consistently make autocomplete requests without a paid Step 2 request will be rate limited and then suspended.
|
|
156
|
-
*
|
|
157
|
-
* ## Query Filters
|
|
158
|
-
*
|
|
159
|
-
* 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.
|
|
160
|
-
*
|
|
161
|
-
* 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.
|
|
162
|
-
*
|
|
163
|
-
* Combine filters by `AND` logic, for instance, `su_organisation_indicator=Y&postcode_area=n`. The maximum allowed filter terms is **10**.
|
|
164
|
-
*
|
|
165
|
-
* ## Address Bias
|
|
166
|
-
*
|
|
167
|
-
* Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
|
|
168
|
-
*
|
|
169
|
-
* For example, use `bias_postcode_area=SW,SE` to favor addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
|
|
170
|
-
*
|
|
171
|
-
* Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
|
|
172
|
-
*
|
|
173
|
-
* ## Suggestion Format
|
|
174
|
-
*
|
|
175
|
-
* The suggestion format is subject to change. We recommend using the suggestion as-is to prevent potential integration issues.
|
|
176
|
-
*
|
|
177
|
-
* ## Rate Limiting and Cost
|
|
178
|
-
*
|
|
179
|
-
* The rate limit for the Autocomplete API is 3000 requests per 5 minutes. HTTP Headers inform about the current rate limit.
|
|
180
|
-
*
|
|
181
|
-
* 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 result in rate limitation or suspension.
|
|
182
|
-
*
|
|
183
|
-
*/
|
|
184
|
-
declare const findAddress: <ThrowOnError extends boolean = false>(options?: Options<FindAddressData, ThrowOnError>) => RequestResult<FindAddressResponses, FindAddressErrors, ThrowOnError, "fields">;
|
|
185
|
-
/**
|
|
186
|
-
* Resolve Address
|
|
187
|
-
*
|
|
188
|
-
* Resolves an address autocompletion by its address ID.
|
|
189
|
-
*
|
|
190
|
-
* Resolved addresses (including global addresses) are returned in a UK format (up to 3 address lines) using UK nomenclature (like postcode and county).
|
|
191
|
-
*
|
|
192
|
-
*/
|
|
193
|
-
declare const resolveAddress: <ThrowOnError extends boolean = false>(options: Options<ResolveAddressData, ThrowOnError>) => RequestResult<ResolveAddressResponses, ResolveAddressErrors, ThrowOnError, "fields">;
|
|
194
|
-
/**
|
|
195
|
-
* Find Place
|
|
196
|
-
*
|
|
197
|
-
* Query for geographical places across countries. Each query will return a list of place suggestions, which consists of a place name, descriptive name and id.
|
|
198
|
-
*
|
|
199
|
-
* 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.
|
|
200
|
-
*
|
|
201
|
-
* ## Implementing Place Autocomplete
|
|
202
|
-
*
|
|
203
|
-
* Extracting the full information of a place is a 2 step process:
|
|
204
|
-
*
|
|
205
|
-
* 1. Retrieve place suggestions via /places
|
|
206
|
-
* 2. Retrieve the entire place with the ID provided in the suggestion
|
|
207
|
-
*
|
|
208
|
-
* ## Suggestion Format
|
|
209
|
-
*
|
|
210
|
-
* Each place suggestion contains a descriptive name which you can provide to users to uniquely identify a place.
|
|
211
|
-
*
|
|
212
|
-
* ## Rate Limiting and Cost
|
|
213
|
-
*
|
|
214
|
-
* The rate limit for the Autocomplete API is 3000 requests per 5 minutes. HTTP Headers inform about the current rate limit.
|
|
215
|
-
*
|
|
216
|
-
* 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 result in rate limitation or suspension.
|
|
217
|
-
*
|
|
218
|
-
*/
|
|
219
|
-
declare const findPlace: <ThrowOnError extends boolean = false>(options?: Options<FindPlaceData, ThrowOnError>) => RequestResult<FindPlaceResponses, FindPlaceErrors, ThrowOnError, "fields">;
|
|
220
|
-
/**
|
|
221
|
-
* Resolve Place
|
|
222
|
-
*
|
|
223
|
-
* Resolves a place autocompletion by its place ID.
|
|
224
|
-
*
|
|
225
|
-
*/
|
|
226
|
-
declare const resolvePlace: <ThrowOnError extends boolean = false>(options: Options<ResolvePlaceData, ThrowOnError>) => RequestResult<ResolvePlaceResponses, ResolvePlaceErrors, ThrowOnError, "fields">;
|
|
227
|
-
/**
|
|
228
|
-
* List
|
|
229
|
-
*
|
|
230
|
-
* Returns a list of licensees for a key.
|
|
231
|
-
*/
|
|
232
|
-
declare const listLicensees: <ThrowOnError extends boolean = false>(options: Options<ListLicenseesData, ThrowOnError>) => RequestResult<ListLicenseesResponses, ListLicenseesErrors, ThrowOnError, "fields">;
|
|
233
|
-
/**
|
|
234
|
-
* Create
|
|
235
|
-
*
|
|
236
|
-
* Create a licensee for the specified API Key.
|
|
237
|
-
*/
|
|
238
|
-
declare const createLicensee: <ThrowOnError extends boolean = false>(options: Options<CreateLicenseeData, ThrowOnError>) => RequestResult<CreateLicenseeResponses, CreateLicenseeErrors, ThrowOnError, "fields">;
|
|
239
|
-
/**
|
|
240
|
-
* Cancel
|
|
241
|
-
*
|
|
242
|
-
* Cancels a licensee key. This renders a licensee unusable. This action can be reversed if you get in contact with us.
|
|
243
|
-
*/
|
|
244
|
-
declare const deleteLicensee: <ThrowOnError extends boolean = false>(options: Options<DeleteLicenseeData, ThrowOnError>) => RequestResult<DeleteLicenseeResponses, DeleteLicenseeErrors, ThrowOnError, "fields">;
|
|
245
|
-
/**
|
|
246
|
-
* Retrieve
|
|
247
|
-
*
|
|
248
|
-
* Returns licensee information as identified by the licensee key.
|
|
249
|
-
*/
|
|
250
|
-
declare const retrieveLicensee: <ThrowOnError extends boolean = false>(options: Options<RetrieveLicenseeData, ThrowOnError>) => RequestResult<RetrieveLicenseeResponses, RetrieveLicenseeErrors, ThrowOnError, "fields">;
|
|
251
|
-
/**
|
|
252
|
-
* Update
|
|
253
|
-
*
|
|
254
|
-
* Update Licensee
|
|
255
|
-
*/
|
|
256
|
-
declare const updateLicensee: <ThrowOnError extends boolean = false>(options: Options<UpdateLicenseeData, ThrowOnError>) => RequestResult<UpdateLicenseeResponses, UpdateLicenseeErrors, ThrowOnError, "fields">;
|
|
257
|
-
/**
|
|
258
|
-
* List
|
|
259
|
-
*
|
|
260
|
-
* Lists configurations associated with a key
|
|
261
|
-
*/
|
|
262
|
-
declare const listConfigs: <ThrowOnError extends boolean = false>(options: Options<ListConfigsData, ThrowOnError>) => RequestResult<ListConfigsResponses, ListConfigsErrors, ThrowOnError, "fields">;
|
|
263
|
-
/**
|
|
264
|
-
* Create
|
|
265
|
-
*
|
|
266
|
-
* Create a configuration
|
|
267
|
-
*/
|
|
268
|
-
declare const createConfig: <ThrowOnError extends boolean = false>(options: Options<CreateConfigData, ThrowOnError>) => RequestResult<CreateConfigResponses, CreateConfigErrors, ThrowOnError, "fields">;
|
|
269
|
-
/**
|
|
270
|
-
* Delete
|
|
271
|
-
*
|
|
272
|
-
* Permanently deletes a configuration object.
|
|
273
|
-
*/
|
|
274
|
-
declare const deleteConfig: <ThrowOnError extends boolean = false>(options: Options<DeleteConfigData, ThrowOnError>) => RequestResult<DeleteConfigResponses, DeleteConfigErrors, ThrowOnError, "fields">;
|
|
275
|
-
/**
|
|
276
|
-
* Retrieve
|
|
277
|
-
*
|
|
278
|
-
* Retrieve configuration object by name
|
|
279
|
-
*/
|
|
280
|
-
declare const retrieveConfig: <ThrowOnError extends boolean = false>(options: Options<RetrieveConfigData, ThrowOnError>) => RequestResult<RetrieveConfigResponses, RetrieveConfigErrors, ThrowOnError, "fields">;
|
|
281
|
-
/**
|
|
282
|
-
* Update
|
|
283
|
-
*
|
|
284
|
-
* Updates configuration object
|
|
285
|
-
*/
|
|
286
|
-
declare const updateConfig: <ThrowOnError extends boolean = false>(options: Options<UpdateConfigData, ThrowOnError>) => RequestResult<UpdateConfigResponses, UpdateConfigErrors, ThrowOnError, "fields">;
|
|
287
|
-
/**
|
|
288
|
-
* Email Validation
|
|
289
|
-
*
|
|
290
|
-
* Query for and validate email addresses.
|
|
291
|
-
*
|
|
292
|
-
*/
|
|
293
|
-
declare const emailValidation: <ThrowOnError extends boolean = false>(options: Options<EmailValidationData, ThrowOnError>) => RequestResult<EmailValidationResponses, EmailValidationErrors, ThrowOnError, "fields">;
|
|
294
|
-
/**
|
|
295
|
-
* Phone Number Validation
|
|
296
|
-
*
|
|
297
|
-
* Query for and validate phone numbers.
|
|
298
|
-
*
|
|
299
|
-
*/
|
|
300
|
-
declare const phoneNumberValidation: <ThrowOnError extends boolean = false>(options: Options<PhoneNumberValidationData, ThrowOnError>) => RequestResult<PhoneNumberValidationResponses, PhoneNumberValidationErrors, ThrowOnError, "fields">;
|
|
301
|
-
|
|
302
|
-
export { type Options as O, keyDetails as a, keyUsage as b, keyLogs as c, addressCleanse as d, findPlace as e, findAddress as f, resolvePlace as g, createLicensee as h, deleteLicensee as i, retrieveLicensee as j, keyAvailability as k, listLicensees as l, updateLicensee as m, listConfigs as n, createConfig as o, postcodes as p, deleteConfig as q, resolveAddress as r, retrieveConfig as s, updateConfig as t, updateKeyDetails as u, emailValidation as v, phoneNumberValidation as w };
|