smartystreets-javascript-sdk 8.2.0 → 8.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.md +183 -184
- package/README.md +145 -0
- package/dist/cjs/AgentSender.cjs +1 -1
- package/dist/cjs/BaseUrlSender.cjs +1 -1
- package/dist/cjs/Batch.cjs +1 -1
- package/dist/cjs/ClientBuilder.cjs +1 -1
- package/dist/cjs/CustomHeaderSender.cjs +1 -1
- package/dist/cjs/Errors.cjs +1 -1
- package/dist/cjs/HttpSender.cjs +1 -1
- package/dist/cjs/InputData.cjs +1 -1
- package/dist/cjs/LicenseSender.cjs +1 -1
- package/dist/cjs/Request.cjs +1 -1
- package/dist/cjs/Response.cjs +1 -1
- package/dist/cjs/RetrySender.cjs +1 -1
- package/dist/cjs/SigningSender.cjs +1 -1
- package/dist/cjs/StatusCodeSender.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/international_address_autocomplete/Client.cjs +1 -1
- package/dist/cjs/international_address_autocomplete/Lookup.cjs +1 -1
- package/dist/cjs/international_address_autocomplete/Suggestion.cjs +1 -1
- package/dist/cjs/international_postal_code/Client.cjs +1 -1
- package/dist/cjs/international_postal_code/Lookup.cjs +1 -1
- package/dist/cjs/international_postal_code/Result.cjs +1 -1
- package/dist/cjs/international_street/Candidate.cjs +1 -1
- package/dist/cjs/international_street/Client.cjs +1 -1
- package/dist/cjs/international_street/Lookup.cjs +1 -1
- package/dist/cjs/us_autocomplete_pro/Client.cjs +1 -1
- package/dist/cjs/us_autocomplete_pro/Lookup.cjs +1 -1
- package/dist/cjs/us_autocomplete_pro/Suggestion.cjs +1 -1
- package/dist/cjs/us_enrichment/Client.cjs +1 -1
- package/dist/cjs/us_enrichment/Lookup.cjs +1 -1
- package/dist/cjs/us_enrichment/Response.cjs +1 -1
- package/dist/cjs/us_extract/Address.cjs +1 -1
- package/dist/cjs/us_extract/Client.cjs +1 -1
- package/dist/cjs/us_extract/Lookup.cjs +1 -1
- package/dist/cjs/us_extract/Result.cjs +1 -1
- package/dist/cjs/us_reverse_geo/Client.cjs +1 -1
- package/dist/cjs/us_reverse_geo/Lookup.cjs +1 -1
- package/dist/cjs/us_reverse_geo/Response.cjs +1 -1
- package/dist/cjs/us_reverse_geo/Result.cjs +1 -1
- package/dist/cjs/us_street/Candidate.cjs +1 -1
- package/dist/cjs/us_street/Client.cjs +1 -1
- package/dist/cjs/us_street/Lookup.cjs +1 -1
- package/dist/cjs/us_zipcode/Client.cjs +1 -1
- package/dist/cjs/us_zipcode/Lookup.cjs +1 -1
- package/dist/cjs/us_zipcode/Result.cjs +1 -1
- package/dist/cjs/util/apiToSDKKeyMap.cjs +1 -1
- package/dist/cjs/util/buildClients.cjs +1 -1
- package/dist/cjs/util/buildInputData.cjs +1 -1
- package/dist/cjs/util/buildSmartyResponse.cjs +1 -1
- package/dist/cjs/util/buildUsStreetInputData.cjs +1 -1
- package/dist/cjs/util/sendBatch.cjs +1 -1
- package/dist/esm/AgentSender.mjs +1 -1
- package/dist/esm/BaseUrlSender.mjs +1 -1
- package/dist/esm/Batch.mjs +1 -1
- package/dist/esm/ClientBuilder.mjs +1 -1
- package/dist/esm/CustomHeaderSender.mjs +1 -1
- package/dist/esm/Errors.mjs +1 -1
- package/dist/esm/HttpSender.mjs +1 -1
- package/dist/esm/InputData.mjs +1 -1
- package/dist/esm/LicenseSender.mjs +1 -1
- package/dist/esm/Request.mjs +1 -1
- package/dist/esm/Response.mjs +1 -1
- package/dist/esm/RetrySender.mjs +1 -1
- package/dist/esm/SigningSender.mjs +1 -1
- package/dist/esm/StatusCodeSender.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/international_address_autocomplete/Client.mjs +1 -1
- package/dist/esm/international_address_autocomplete/Lookup.mjs +1 -1
- package/dist/esm/international_address_autocomplete/Suggestion.mjs +1 -1
- package/dist/esm/international_postal_code/Client.mjs +1 -1
- package/dist/esm/international_postal_code/Lookup.mjs +1 -1
- package/dist/esm/international_postal_code/Result.mjs +1 -1
- package/dist/esm/international_street/Candidate.mjs +1 -1
- package/dist/esm/international_street/Client.mjs +1 -1
- package/dist/esm/international_street/Lookup.mjs +1 -1
- package/dist/esm/us_autocomplete_pro/Client.mjs +1 -1
- package/dist/esm/us_autocomplete_pro/Lookup.mjs +1 -1
- package/dist/esm/us_autocomplete_pro/Suggestion.mjs +1 -1
- package/dist/esm/us_enrichment/Client.mjs +1 -1
- package/dist/esm/us_enrichment/Lookup.mjs +1 -1
- package/dist/esm/us_enrichment/Response.mjs +1 -1
- package/dist/esm/us_extract/Address.mjs +1 -1
- package/dist/esm/us_extract/Client.mjs +1 -1
- package/dist/esm/us_extract/Lookup.mjs +1 -1
- package/dist/esm/us_extract/Result.mjs +1 -1
- package/dist/esm/us_reverse_geo/Client.mjs +1 -1
- package/dist/esm/us_reverse_geo/Lookup.mjs +1 -1
- package/dist/esm/us_reverse_geo/Response.mjs +1 -1
- package/dist/esm/us_reverse_geo/Result.mjs +1 -1
- package/dist/esm/us_street/Candidate.mjs +1 -1
- package/dist/esm/us_street/Client.mjs +1 -1
- package/dist/esm/us_street/Lookup.mjs +1 -1
- package/dist/esm/us_zipcode/Client.mjs +1 -1
- package/dist/esm/us_zipcode/Lookup.mjs +1 -1
- package/dist/esm/us_zipcode/Result.mjs +1 -1
- package/dist/esm/util/apiToSDKKeyMap.mjs +1 -1
- package/dist/esm/util/buildClients.mjs +1 -1
- package/dist/esm/util/buildInputData.mjs +1 -1
- package/dist/esm/util/buildSmartyResponse.mjs +1 -1
- package/dist/esm/util/buildUsStreetInputData.mjs +1 -1
- package/dist/esm/util/sendBatch.mjs +1 -1
- package/dist/types/index.d.ts +180 -0
- package/dist/types/src/Batch.d.ts +12 -0
- package/dist/types/src/ClientBuilder.d.ts +55 -0
- package/dist/types/src/Errors.d.ts +59 -0
- package/dist/types/src/HttpSender.d.ts +11 -0
- package/dist/types/src/InputData.d.ts +9 -0
- package/dist/types/src/LicenseSender.d.ts +7 -0
- package/dist/types/src/Request.d.ts +9 -0
- package/dist/types/src/Response.d.ts +8 -0
- package/dist/types/{SigningSender.d.ts → src/SigningSender.d.ts} +1 -5
- package/dist/types/src/StatusCodeSender.d.ts +6 -0
- package/dist/types/src/international_address_autocomplete/Client.d.ts +7 -0
- package/dist/types/src/international_address_autocomplete/Lookup.d.ts +20 -0
- package/dist/types/src/international_address_autocomplete/Suggestion.d.ts +25 -0
- package/dist/types/src/international_postal_code/Client.d.ts +7 -0
- package/dist/types/src/international_postal_code/Lookup.d.ts +12 -0
- package/dist/types/src/international_postal_code/Result.d.ts +27 -0
- package/dist/types/src/international_street/Candidate.d.ts +250 -0
- package/dist/types/src/international_street/Client.d.ts +7 -0
- package/dist/types/src/international_street/Lookup.d.ts +24 -0
- package/dist/types/{types.d.ts → src/types.d.ts} +11 -1
- package/dist/types/src/us_autocomplete_pro/Client.d.ts +7 -0
- package/dist/types/src/us_autocomplete_pro/Lookup.d.ts +21 -0
- package/dist/types/src/us_autocomplete_pro/Suggestion.d.ts +19 -0
- package/dist/types/src/us_enrichment/Client.d.ts +11 -0
- package/dist/types/src/us_enrichment/Lookup.d.ts +13 -0
- package/dist/types/src/us_enrichment/Response.d.ts +1081 -0
- package/dist/types/src/us_extract/Address.d.ts +18 -0
- package/dist/types/src/us_extract/Client.d.ts +7 -0
- package/dist/types/src/us_extract/Lookup.d.ts +12 -0
- package/dist/types/src/us_extract/Result.d.ts +26 -0
- package/dist/types/src/us_reverse_geo/Client.d.ts +7 -0
- package/dist/types/src/us_reverse_geo/Lookup.d.ts +10 -0
- package/dist/types/src/us_reverse_geo/Response.d.ts +9 -0
- package/dist/types/src/us_reverse_geo/Result.d.ts +41 -0
- package/dist/types/src/us_street/Candidate.d.ts +189 -0
- package/dist/types/src/us_street/Client.d.ts +8 -0
- package/dist/types/src/us_street/Lookup.d.ts +24 -0
- package/dist/types/src/us_zipcode/Client.d.ts +8 -0
- package/dist/types/src/us_zipcode/Lookup.d.ts +11 -0
- package/dist/types/src/us_zipcode/Result.d.ts +67 -0
- package/dist/types/src/util/apiToSDKKeyMap.d.ts +13 -0
- package/dist/types/src/util/buildClients.d.ts +25 -0
- package/dist/types/src/util/buildInputData.d.ts +6 -0
- package/dist/types/src/util/buildSmartyResponse.d.ts +9 -0
- package/dist/types/src/util/buildUsStreetInputData.d.ts +2 -0
- package/dist/types/src/util/sendBatch.d.ts +5 -0
- package/dist/types/tests/fixtures/MockSleeper.d.ts +5 -0
- package/dist/types/tests/fixtures/mock_senders.d.ts +25 -0
- package/dist/types/tests/international_address_autocomplete/test_Client.d.ts +1 -0
- package/dist/types/tests/international_address_autocomplete/test_Lookup.d.ts +1 -0
- package/dist/types/tests/international_postal_code/test_Client.d.ts +1 -0
- package/dist/types/tests/international_postal_code/test_Lookup.d.ts +1 -0
- package/dist/types/tests/international_postal_code/test_Result.d.ts +1 -0
- package/dist/types/tests/international_street/test_Candidate.d.ts +1 -0
- package/dist/types/tests/international_street/test_Client.d.ts +1 -0
- package/dist/types/tests/international_street/test_Lookup.d.ts +1 -0
- package/dist/types/tests/test_AgentSender.d.ts +1 -0
- package/dist/types/tests/test_BaseUrlSender.d.ts +1 -0
- package/dist/types/tests/test_BasicAuthCredentials.d.ts +1 -0
- package/dist/types/tests/test_Batch.d.ts +1 -0
- package/dist/types/tests/test_ClientBuilder.d.ts +1 -0
- package/dist/types/tests/test_CustomHeaderSender.d.ts +1 -0
- package/dist/types/tests/test_CustomQuerySender.d.ts +1 -0
- package/dist/types/tests/test_ExtractExample.d.ts +1 -0
- package/dist/types/tests/test_HttpSender.d.ts +1 -0
- package/dist/types/tests/test_LicenseSender.d.ts +1 -0
- package/dist/types/tests/test_RetrySender.d.ts +1 -0
- package/dist/types/tests/test_SigningSender.d.ts +1 -0
- package/dist/types/tests/test_StatusCodeSender.d.ts +1 -0
- package/dist/types/tests/us_autocomplete_pro/test_Client.d.ts +1 -0
- package/dist/types/tests/us_autocomplete_pro/test_Lookup.d.ts +1 -0
- package/dist/types/tests/us_autocomplete_pro/test_Suggestion.d.ts +1 -0
- package/dist/types/tests/us_enrichment/test_Client.d.ts +1 -0
- package/dist/types/tests/us_enrichment/test_Lookup.d.ts +1 -0
- package/dist/types/tests/us_enrichment/test_Response.d.ts +1 -0
- package/dist/types/tests/us_extract/test_Address.d.ts +1 -0
- package/dist/types/tests/us_extract/test_Client.d.ts +1 -0
- package/dist/types/tests/us_extract/test_Lookup.d.ts +1 -0
- package/dist/types/tests/us_extract/test_Result.d.ts +1 -0
- package/dist/types/tests/us_reverse_geo/test_Client.d.ts +1 -0
- package/dist/types/tests/us_reverse_geo/test_Lookup.d.ts +1 -0
- package/dist/types/tests/us_reverse_geo/test_Response.d.ts +1 -0
- package/dist/types/tests/us_street/test_Candidate.d.ts +1 -0
- package/dist/types/tests/us_street/test_Client.d.ts +1 -0
- package/dist/types/tests/us_street/test_Lookup.d.ts +1 -0
- package/dist/types/tests/us_zipcode/test_Client.d.ts +1 -0
- package/dist/types/tests/us_zipcode/test_Result.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -5
- package/Readme.md +0 -11
- package/dist/cjs/_virtual/Batch.cjs +0 -1
- package/dist/cjs/_virtual/Candidate.cjs +0 -1
- package/dist/cjs/_virtual/Candidate2.cjs +0 -1
- package/dist/cjs/_virtual/ClientBuilder.cjs +0 -1
- package/dist/cjs/_virtual/Errors.cjs +0 -1
- package/dist/cjs/_virtual/Lookup.cjs +0 -1
- package/dist/cjs/_virtual/Lookup2.cjs +0 -1
- package/dist/cjs/_virtual/Lookup3.cjs +0 -1
- package/dist/cjs/_virtual/Lookup4.cjs +0 -1
- package/dist/cjs/_virtual/Lookup5.cjs +0 -1
- package/dist/cjs/_virtual/Lookup6.cjs +0 -1
- package/dist/cjs/_virtual/Lookup7.cjs +0 -1
- package/dist/cjs/_virtual/Lookup8.cjs +0 -1
- package/dist/cjs/_virtual/Lookup9.cjs +0 -1
- package/dist/cjs/_virtual/Response.cjs +0 -1
- package/dist/cjs/_virtual/Result.cjs +0 -1
- package/dist/cjs/_virtual/Result2.cjs +0 -1
- package/dist/cjs/_virtual/Result3.cjs +0 -1
- package/dist/cjs/_virtual/Suggestion.cjs +0 -1
- package/dist/cjs/_virtual/Suggestion2.cjs +0 -1
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/cjs/_virtual/buildClients.cjs +0 -1
- package/dist/esm/_virtual/Batch.mjs +0 -1
- package/dist/esm/_virtual/Candidate.mjs +0 -1
- package/dist/esm/_virtual/Candidate2.mjs +0 -1
- package/dist/esm/_virtual/ClientBuilder.mjs +0 -1
- package/dist/esm/_virtual/Errors.mjs +0 -1
- package/dist/esm/_virtual/Lookup.mjs +0 -1
- package/dist/esm/_virtual/Lookup2.mjs +0 -1
- package/dist/esm/_virtual/Lookup3.mjs +0 -1
- package/dist/esm/_virtual/Lookup4.mjs +0 -1
- package/dist/esm/_virtual/Lookup5.mjs +0 -1
- package/dist/esm/_virtual/Lookup6.mjs +0 -1
- package/dist/esm/_virtual/Lookup7.mjs +0 -1
- package/dist/esm/_virtual/Lookup8.mjs +0 -1
- package/dist/esm/_virtual/Lookup9.mjs +0 -1
- package/dist/esm/_virtual/Response.mjs +0 -1
- package/dist/esm/_virtual/Result.mjs +0 -1
- package/dist/esm/_virtual/Result2.mjs +0 -1
- package/dist/esm/_virtual/Result3.mjs +0 -1
- package/dist/esm/_virtual/Suggestion.mjs +0 -1
- package/dist/esm/_virtual/Suggestion2.mjs +0 -1
- package/dist/esm/_virtual/_commonjsHelpers.mjs +0 -1
- package/dist/esm/_virtual/buildClients.mjs +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/Batch.d.ts +0 -19
- package/dist/types/ClientBuilder.d.ts +0 -126
- package/dist/types/Errors.d.ts +0 -42
- package/dist/types/HttpSender.d.ts +0 -22
- package/dist/types/InputData.d.ts +0 -10
- package/dist/types/LicenseSender.d.ts +0 -7
- package/dist/types/Request.d.ts +0 -13
- package/dist/types/Response.d.ts +0 -8
- package/dist/types/StatusCodeSender.d.ts +0 -6
- package/dist/types/international_address_autocomplete/Client.d.ts +0 -6
- package/dist/types/international_address_autocomplete/Lookup.d.ts +0 -15
- package/dist/types/international_address_autocomplete/Suggestion.d.ts +0 -14
- package/dist/types/international_postal_code/Client.d.ts +0 -15
- package/dist/types/international_postal_code/Lookup.d.ts +0 -17
- package/dist/types/international_postal_code/Result.d.ts +0 -18
- package/dist/types/international_street/Candidate.d.ts +0 -26
- package/dist/types/international_street/Client.d.ts +0 -10
- package/dist/types/international_street/Lookup.d.ts +0 -29
- package/dist/types/us_autocomplete_pro/Client.d.ts +0 -10
- package/dist/types/us_autocomplete_pro/Lookup.d.ts +0 -28
- package/dist/types/us_autocomplete_pro/Suggestion.d.ts +0 -14
- package/dist/types/us_enrichment/Client.d.ts +0 -10
- package/dist/types/us_enrichment/Lookup.d.ts +0 -13
- package/dist/types/us_enrichment/Response.d.ts +0 -20
- package/dist/types/us_extract/Address.d.ts +0 -13
- package/dist/types/us_extract/Client.d.ts +0 -10
- package/dist/types/us_extract/Lookup.d.ts +0 -23
- package/dist/types/us_extract/Result.d.ts +0 -19
- package/dist/types/us_reverse_geo/Client.d.ts +0 -10
- package/dist/types/us_reverse_geo/Lookup.d.ts +0 -16
- package/dist/types/us_reverse_geo/Response.d.ts +0 -8
- package/dist/types/us_reverse_geo/Result.d.ts +0 -13
- package/dist/types/us_street/Candidate.d.ts +0 -22
- package/dist/types/us_street/Client.d.ts +0 -15
- package/dist/types/us_street/Lookup.d.ts +0 -26
- package/dist/types/us_zipcode/Client.d.ts +0 -15
- package/dist/types/us_zipcode/Lookup.d.ts +0 -16
- package/dist/types/us_zipcode/Result.d.ts +0 -13
- package/dist/types/util/apiToSDKKeyMap.d.ts +0 -94
- package/dist/types/util/buildClients.d.ts +0 -10
- package/dist/types/util/buildInputData.d.ts +0 -2
- package/dist/types/util/buildSmartyResponse.d.ts +0 -2
- package/dist/types/util/buildUsStreetInputData.d.ts +0 -2
- package/dist/types/util/sendBatch.d.ts +0 -2
- /package/dist/types/{AgentSender.d.ts → src/AgentSender.d.ts} +0 -0
- /package/dist/types/{BaseUrlSender.d.ts → src/BaseUrlSender.d.ts} +0 -0
- /package/dist/types/{BasicAuthCredentials.d.ts → src/BasicAuthCredentials.d.ts} +0 -0
- /package/dist/types/{CustomHeaderSender.d.ts → src/CustomHeaderSender.d.ts} +0 -0
- /package/dist/types/{CustomQuerySender.d.ts → src/CustomQuerySender.d.ts} +0 -0
- /package/dist/types/{RetrySender.d.ts → src/RetrySender.d.ts} +0 -0
- /package/dist/types/{SharedCredentials.d.ts → src/SharedCredentials.d.ts} +0 -0
- /package/dist/types/{StaticCredentials.d.ts → src/StaticCredentials.d.ts} +0 -0
- /package/dist/types/{util → src/util}/Sleeper.d.ts +0 -0
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export = ClientBuilder;
|
|
2
|
-
/**
|
|
3
|
-
* The ClientBuilder class helps you build a client object for one of the supported Smarty APIs.<br>
|
|
4
|
-
* You can use ClientBuilder's methods to customize settings like maximum retries or timeout duration. These methods<br>
|
|
5
|
-
* are chainable, so you can usually get set up with one line of code.
|
|
6
|
-
*/
|
|
7
|
-
declare class ClientBuilder {
|
|
8
|
-
constructor(signer: any);
|
|
9
|
-
signer: any;
|
|
10
|
-
httpSender: any;
|
|
11
|
-
maxRetries: number;
|
|
12
|
-
maxTimeout: number;
|
|
13
|
-
baseUrl: any;
|
|
14
|
-
proxy: {
|
|
15
|
-
host: any;
|
|
16
|
-
port: any;
|
|
17
|
-
protocol: any;
|
|
18
|
-
} | undefined;
|
|
19
|
-
customHeaders: {};
|
|
20
|
-
appendHeaders: {};
|
|
21
|
-
debug: boolean | undefined;
|
|
22
|
-
licenses: any[];
|
|
23
|
-
customQueries: Map<any, any>;
|
|
24
|
-
/**
|
|
25
|
-
* @param retries The maximum number of times to retry sending the request to the API. (Default is 5)
|
|
26
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
27
|
-
*/
|
|
28
|
-
withMaxRetries(retries: any): this;
|
|
29
|
-
/**
|
|
30
|
-
* @param timeout The maximum time (in milliseconds) to wait for a connection, and also to wait for <br>
|
|
31
|
-
* the response to be read. (Default is 10000)
|
|
32
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
33
|
-
*/
|
|
34
|
-
withMaxTimeout(timeout: any): this;
|
|
35
|
-
/**
|
|
36
|
-
* @param sender Default is a series of nested senders. See <b>buildSender()</b>.
|
|
37
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
38
|
-
*/
|
|
39
|
-
withSender(sender: any): this;
|
|
40
|
-
/**
|
|
41
|
-
* This may be useful when using a local installation of the Smarty APIs.
|
|
42
|
-
* @param url Defaults to the URL for the API corresponding to the <b>Client</b> object being built.
|
|
43
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
44
|
-
*/
|
|
45
|
-
withBaseUrl(url: any): this;
|
|
46
|
-
/**
|
|
47
|
-
* Use this to specify a proxy through which to send all lookups.
|
|
48
|
-
* @param host The host of the proxy server (do not include the port).
|
|
49
|
-
* @param port The port on the proxy server to which you wish to connect.
|
|
50
|
-
* @param protocol The protocol on the proxy server to which you wish to connect. If the proxy server uses HTTPS, then you must set the protocol to 'https'.
|
|
51
|
-
* @param username The username to login to the proxy.
|
|
52
|
-
* @param password The password to login to the proxy.
|
|
53
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
54
|
-
*/
|
|
55
|
-
withProxy(host: any, port: any, protocol: any, username: any, password: any): this;
|
|
56
|
-
/**
|
|
57
|
-
* Use this to add any additional headers you need.
|
|
58
|
-
* @param customHeaders A String to Object <b>Map</b> of header name/value pairs.
|
|
59
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
60
|
-
*/
|
|
61
|
-
withCustomHeaders(customHeaders: any): this;
|
|
62
|
-
/**
|
|
63
|
-
* Appends the provided value to the existing header value using the specified separator,
|
|
64
|
-
* rather than replacing it. This is useful for single-value headers like User-Agent.
|
|
65
|
-
* @param key The header name.
|
|
66
|
-
* @param value The value to append.
|
|
67
|
-
* @param separator The separator to use when joining values.
|
|
68
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
69
|
-
*/
|
|
70
|
-
withAppendedHeader(key: any, value: any, separator: any): this;
|
|
71
|
-
/**
|
|
72
|
-
* Enables debug mode, which will print information about the HTTP request and response to console.log
|
|
73
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
74
|
-
*/
|
|
75
|
-
withDebug(): this;
|
|
76
|
-
/**
|
|
77
|
-
* Allows the caller to specify the subscription license (aka "track") they wish to use.
|
|
78
|
-
* @param licenses A String Array of licenses.
|
|
79
|
-
* @returns ClientBuilder <b>this</b> to accommodate method chaining.
|
|
80
|
-
*/
|
|
81
|
-
withLicenses(licenses: any): this;
|
|
82
|
-
/**
|
|
83
|
-
* Allows the caller to specify key and value pair that is added to the request
|
|
84
|
-
* @param {string} key - The query parameter key
|
|
85
|
-
* @param {string} value - The query parameter value
|
|
86
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
87
|
-
*/
|
|
88
|
-
withCustomQuery(key: string, value: string): this;
|
|
89
|
-
/**
|
|
90
|
-
* Allows the caller to specify key and value pair and appends the value associated with the key, seperated by a comma.
|
|
91
|
-
* @param {string} key - The query parameter key
|
|
92
|
-
* @param {string} value - The query parameter value
|
|
93
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
94
|
-
*/
|
|
95
|
-
withCustomCommaSeperatedQuery(key: string, value: string): this;
|
|
96
|
-
/**
|
|
97
|
-
* Adds to the request query to use the component analysis feature.
|
|
98
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
99
|
-
*/
|
|
100
|
-
withFeatureComponentAnalysis(): this;
|
|
101
|
-
/**
|
|
102
|
-
* Adds to the request query to use the financial history feature.
|
|
103
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
104
|
-
*/
|
|
105
|
-
withFinancialHistory(): this;
|
|
106
|
-
/**
|
|
107
|
-
* Adds to the request query to use the occupant use feature.
|
|
108
|
-
* @return ClientBuilder <b>this</b> to accommodate method chaining.
|
|
109
|
-
*/
|
|
110
|
-
withOccupantUse(): this;
|
|
111
|
-
/**
|
|
112
|
-
* withFeatureIANATimeZone turns on the IANA timezone feature for the request.
|
|
113
|
-
*/
|
|
114
|
-
withFeatureIANATimeZone(): this;
|
|
115
|
-
buildSender(): any;
|
|
116
|
-
buildClient(baseUrl: any, Client: any): any;
|
|
117
|
-
buildUsStreetApiClient(): any;
|
|
118
|
-
buildUsZipcodeClient(): any;
|
|
119
|
-
buildInternationalPostalCodeClient(): any;
|
|
120
|
-
buildUsAutocompleteProClient(): any;
|
|
121
|
-
buildUsExtractClient(): any;
|
|
122
|
-
buildInternationalStreetClient(): any;
|
|
123
|
-
buildUsReverseGeoClient(): any;
|
|
124
|
-
buildInternationalAddressAutocompleteClient(): any;
|
|
125
|
-
buildUsEnrichmentClient(): any;
|
|
126
|
-
}
|
package/dist/types/Errors.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export class BatchFullError extends SmartyError {
|
|
2
|
-
constructor();
|
|
3
|
-
}
|
|
4
|
-
export class BatchEmptyError extends SmartyError {
|
|
5
|
-
constructor();
|
|
6
|
-
}
|
|
7
|
-
export class UndefinedLookupError extends SmartyError {
|
|
8
|
-
constructor();
|
|
9
|
-
}
|
|
10
|
-
export class BadCredentialsError extends SmartyError {
|
|
11
|
-
constructor();
|
|
12
|
-
}
|
|
13
|
-
export class PaymentRequiredError extends SmartyError {
|
|
14
|
-
constructor();
|
|
15
|
-
}
|
|
16
|
-
export class RequestEntityTooLargeError extends SmartyError {
|
|
17
|
-
constructor();
|
|
18
|
-
}
|
|
19
|
-
export class BadRequestError extends SmartyError {
|
|
20
|
-
constructor();
|
|
21
|
-
}
|
|
22
|
-
export class UnprocessableEntityError extends SmartyError {
|
|
23
|
-
constructor(message: any);
|
|
24
|
-
}
|
|
25
|
-
export class TooManyRequestsError extends SmartyError {
|
|
26
|
-
constructor();
|
|
27
|
-
}
|
|
28
|
-
export class InternalServerError extends SmartyError {
|
|
29
|
-
constructor();
|
|
30
|
-
}
|
|
31
|
-
export class ServiceUnavailableError extends SmartyError {
|
|
32
|
-
constructor();
|
|
33
|
-
}
|
|
34
|
-
export class GatewayTimeoutError extends SmartyError {
|
|
35
|
-
constructor();
|
|
36
|
-
}
|
|
37
|
-
export class DefaultError extends SmartyError {
|
|
38
|
-
constructor(message: any);
|
|
39
|
-
}
|
|
40
|
-
declare class SmartyError extends Error {
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export = HttpSender;
|
|
2
|
-
declare class HttpSender {
|
|
3
|
-
constructor(timeout: number | undefined, proxyConfig: any, debug?: boolean);
|
|
4
|
-
axiosInstance: any;
|
|
5
|
-
timeout: number;
|
|
6
|
-
proxyConfig: any;
|
|
7
|
-
buildRequestConfig({ payload, parameters, headers, baseUrl }: {
|
|
8
|
-
payload: any;
|
|
9
|
-
parameters: any;
|
|
10
|
-
headers: any;
|
|
11
|
-
baseUrl: any;
|
|
12
|
-
}): {
|
|
13
|
-
method: string;
|
|
14
|
-
timeout: number;
|
|
15
|
-
params: any;
|
|
16
|
-
headers: any;
|
|
17
|
-
baseURL: any;
|
|
18
|
-
validateStatus: (status: any) => boolean;
|
|
19
|
-
};
|
|
20
|
-
send(request: any): Promise<any>;
|
|
21
|
-
enableDebug(): void;
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export = InputData;
|
|
2
|
-
declare class InputData {
|
|
3
|
-
constructor(lookup: any);
|
|
4
|
-
lookup: any;
|
|
5
|
-
data: {};
|
|
6
|
-
add(apiField: any, lookupField: any): void;
|
|
7
|
-
addCustomParameter(key: any, value: any): void;
|
|
8
|
-
formatData(field: any): any;
|
|
9
|
-
lookupFieldIsPopulated(lookupField: any): boolean;
|
|
10
|
-
}
|
package/dist/types/Request.d.ts
DELETED
package/dist/types/Response.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export = Lookup;
|
|
2
|
-
declare class Lookup {
|
|
3
|
-
constructor({ search, addressId, country, maxResults, includeOnlyLocality, includeOnlyPostalCode }?: {
|
|
4
|
-
maxResults?: number | undefined;
|
|
5
|
-
});
|
|
6
|
-
result: any[];
|
|
7
|
-
search: any;
|
|
8
|
-
addressId: any;
|
|
9
|
-
country: any;
|
|
10
|
-
maxResults: number;
|
|
11
|
-
includeOnlyLocality: any;
|
|
12
|
-
includeOnlyPostalCode: any;
|
|
13
|
-
customParameters: {};
|
|
14
|
-
addCustomParameter(key: any, value: any): void;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export = Suggestion;
|
|
2
|
-
declare class Suggestion {
|
|
3
|
-
constructor(responseData: any);
|
|
4
|
-
street: any;
|
|
5
|
-
locality: any;
|
|
6
|
-
administrativeArea: any;
|
|
7
|
-
administrativeAreaShort: any;
|
|
8
|
-
administrativeAreaLong: any;
|
|
9
|
-
postalCode: any;
|
|
10
|
-
countryIso3: any;
|
|
11
|
-
entries: any;
|
|
12
|
-
addressText: any;
|
|
13
|
-
addressId: any;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export = Client;
|
|
2
|
-
/**
|
|
3
|
-
* This client sends lookups to the Smarty International Postal Code API, <br>
|
|
4
|
-
* and attaches the results to the appropriate Lookup objects.
|
|
5
|
-
*/
|
|
6
|
-
declare class Client {
|
|
7
|
-
constructor(sender: any);
|
|
8
|
-
sender: any;
|
|
9
|
-
/**
|
|
10
|
-
* Sends a single lookup for validation.
|
|
11
|
-
* @param data A Lookup object
|
|
12
|
-
* @throws SmartyException
|
|
13
|
-
*/
|
|
14
|
-
send(lookup: any): Promise<any>;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export = Lookup;
|
|
2
|
-
/**
|
|
3
|
-
* In addition to holding all of the input data for this lookup, this class also<br>
|
|
4
|
-
* will contain the result of the lookup after it comes back from the API.
|
|
5
|
-
* @see "https://www.smarty.com/docs/cloud/international-postal-code-api#http-request-input-fields"
|
|
6
|
-
*/
|
|
7
|
-
declare class Lookup {
|
|
8
|
-
constructor(country: any, postalCode: any, administrativeArea: any, locality: any, inputId: any);
|
|
9
|
-
inputId: any;
|
|
10
|
-
country: any;
|
|
11
|
-
postalCode: any;
|
|
12
|
-
administrativeArea: any;
|
|
13
|
-
locality: any;
|
|
14
|
-
result: any[];
|
|
15
|
-
customParameters: {};
|
|
16
|
-
addCustomParameter(key: any, value: any): void;
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export = Result;
|
|
2
|
-
/**
|
|
3
|
-
* @see "https://www.smarty.com/docs/cloud/international-postal-code-api#output-fields"
|
|
4
|
-
*/
|
|
5
|
-
declare class Result {
|
|
6
|
-
constructor(responseData: any);
|
|
7
|
-
inputId: any;
|
|
8
|
-
administrativeArea: any;
|
|
9
|
-
superAdministrativeArea: any;
|
|
10
|
-
subAdministrativeArea: any;
|
|
11
|
-
locality: any;
|
|
12
|
-
dependentLocality: any;
|
|
13
|
-
dependentLocalityName: any;
|
|
14
|
-
doubleDependentLocality: any;
|
|
15
|
-
postalCode: any;
|
|
16
|
-
postalCodeExtra: any;
|
|
17
|
-
countryIso3: any;
|
|
18
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export = Candidate;
|
|
2
|
-
/**
|
|
3
|
-
* A candidate is a possible match for an address that was submitted.<br>
|
|
4
|
-
* A lookup can have multiple candidates if the address was ambiguous.
|
|
5
|
-
*
|
|
6
|
-
* @see "https://www.smarty.com/docs/cloud/international-street-api#root"
|
|
7
|
-
*/
|
|
8
|
-
declare class Candidate {
|
|
9
|
-
constructor(responseData: any);
|
|
10
|
-
organization: any;
|
|
11
|
-
address1: any;
|
|
12
|
-
address2: any;
|
|
13
|
-
address3: any;
|
|
14
|
-
address4: any;
|
|
15
|
-
address5: any;
|
|
16
|
-
address6: any;
|
|
17
|
-
address7: any;
|
|
18
|
-
address8: any;
|
|
19
|
-
address9: any;
|
|
20
|
-
address10: any;
|
|
21
|
-
address11: any;
|
|
22
|
-
address12: any;
|
|
23
|
-
components: {};
|
|
24
|
-
analysis: {};
|
|
25
|
-
metadata: {};
|
|
26
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export = Client;
|
|
2
|
-
/**
|
|
3
|
-
* This client sends lookups to the Smarty International Street API, <br>
|
|
4
|
-
* and attaches the results to the appropriate Lookup objects.
|
|
5
|
-
*/
|
|
6
|
-
declare class Client {
|
|
7
|
-
constructor(sender: any);
|
|
8
|
-
sender: any;
|
|
9
|
-
send(lookup: any): Promise<any>;
|
|
10
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export = Lookup;
|
|
2
|
-
/**
|
|
3
|
-
* In addition to holding all of the input data for this lookup, this class also<br>
|
|
4
|
-
* will contain the result of the lookup after it comes back from the API.
|
|
5
|
-
* <p><b>Note: </b><i>Lookups must have certain required fields set with non-blank values. <br>
|
|
6
|
-
* These can be found at the URL below.</i></p>
|
|
7
|
-
* @see "https://www.smarty.com/docs/cloud/international-street-api#http-input-fields"
|
|
8
|
-
*/
|
|
9
|
-
declare class Lookup {
|
|
10
|
-
constructor(country: any, freeform: any);
|
|
11
|
-
result: any[];
|
|
12
|
-
country: any;
|
|
13
|
-
freeform: any;
|
|
14
|
-
address1: any;
|
|
15
|
-
address2: any;
|
|
16
|
-
address3: any;
|
|
17
|
-
address4: any;
|
|
18
|
-
organization: any;
|
|
19
|
-
locality: any;
|
|
20
|
-
administrativeArea: any;
|
|
21
|
-
postalCode: any;
|
|
22
|
-
geocode: any;
|
|
23
|
-
language: any;
|
|
24
|
-
inputId: any;
|
|
25
|
-
ensureEnoughInfo(): boolean;
|
|
26
|
-
ensureValidData(): boolean;
|
|
27
|
-
customParameters: {};
|
|
28
|
-
addCustomParameter(key: any, value: any): void;
|
|
29
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export = Client;
|
|
2
|
-
/**
|
|
3
|
-
* This client sends lookups to the Smarty US Autocomplete Pro API, <br>
|
|
4
|
-
* and attaches the suggestions to the appropriate Lookup objects.
|
|
5
|
-
*/
|
|
6
|
-
declare class Client {
|
|
7
|
-
constructor(sender: any);
|
|
8
|
-
sender: any;
|
|
9
|
-
send(lookup: any): Promise<any>;
|
|
10
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export = Lookup;
|
|
2
|
-
/**
|
|
3
|
-
* In addition to holding all of the input data for this lookup, this class also<br>
|
|
4
|
-
* will contain the result of the lookup after it comes back from the API.
|
|
5
|
-
* @see "https://www.smarty.com/docs/cloud/us-autocomplete-api#pro-http-request-input-fields"
|
|
6
|
-
*/
|
|
7
|
-
declare class Lookup {
|
|
8
|
-
/**
|
|
9
|
-
* @param search The beginning of an address. This is required to be set.
|
|
10
|
-
*/
|
|
11
|
-
constructor(search: any);
|
|
12
|
-
result: any[];
|
|
13
|
-
search: any;
|
|
14
|
-
selected: any;
|
|
15
|
-
maxResults: any;
|
|
16
|
-
includeOnlyCities: any[];
|
|
17
|
-
includeOnlyStates: any[];
|
|
18
|
-
includeOnlyZIPCodes: any[];
|
|
19
|
-
excludeStates: any[];
|
|
20
|
-
preferCities: any[];
|
|
21
|
-
preferStates: any[];
|
|
22
|
-
preferZIPCodes: any[];
|
|
23
|
-
preferRatio: any;
|
|
24
|
-
preferGeolocation: any;
|
|
25
|
-
source: any;
|
|
26
|
-
customParameters: {};
|
|
27
|
-
addCustomParameter(key: any, value: any): void;
|
|
28
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export = Suggestion;
|
|
2
|
-
/**
|
|
3
|
-
* @see "https://www.smarty.com/docs/cloud/us-autocomplete-api#pro-http-response"
|
|
4
|
-
*/
|
|
5
|
-
declare class Suggestion {
|
|
6
|
-
constructor(responseData: any);
|
|
7
|
-
streetLine: any;
|
|
8
|
-
secondary: any;
|
|
9
|
-
city: any;
|
|
10
|
-
state: any;
|
|
11
|
-
zipcode: any;
|
|
12
|
-
entries: any;
|
|
13
|
-
source: any;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export = Client;
|
|
2
|
-
declare class Client {
|
|
3
|
-
constructor(sender: any);
|
|
4
|
-
sender: any;
|
|
5
|
-
sendPrincipal(lookup: any): Promise<any>;
|
|
6
|
-
sendFinancial(lookup: any): Promise<any>;
|
|
7
|
-
sendGeo(lookup: any): Promise<any>;
|
|
8
|
-
sendSecondary(lookup: any): Promise<any>;
|
|
9
|
-
sendSecondaryCount(lookup: any): Promise<any>;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export = Lookup;
|
|
2
|
-
declare class Lookup {
|
|
3
|
-
constructor(smartyKey: any, include: any, exclude: any, dataset: any, dataSubset: any);
|
|
4
|
-
smartyKey: any;
|
|
5
|
-
include: any;
|
|
6
|
-
exclude: any;
|
|
7
|
-
dataset: any;
|
|
8
|
-
dataSubset: any;
|
|
9
|
-
features: any;
|
|
10
|
-
response: {};
|
|
11
|
-
customParameters: {};
|
|
12
|
-
addCustomParameter(key: any, value: any): void;
|
|
13
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export class Response {
|
|
2
|
-
constructor(responseData: any);
|
|
3
|
-
smartyKey: any;
|
|
4
|
-
dataSetName: any;
|
|
5
|
-
dataSubsetName: any;
|
|
6
|
-
attributes: {};
|
|
7
|
-
}
|
|
8
|
-
export class FinancialResponse {
|
|
9
|
-
constructor(responseData: any);
|
|
10
|
-
smartyKey: any;
|
|
11
|
-
dataSetName: any;
|
|
12
|
-
dataSubsetName: any;
|
|
13
|
-
attributes: {};
|
|
14
|
-
}
|
|
15
|
-
export class GeoResponse {
|
|
16
|
-
constructor(responseData: any);
|
|
17
|
-
smartyKey: any;
|
|
18
|
-
dataSetName: any;
|
|
19
|
-
attributes: {};
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export = Address;
|
|
2
|
-
/**
|
|
3
|
-
* @see <a href="https://www.smarty.com/docs/cloud/us-extract-api#http-response-status">Smarty US Extract API docs</a>
|
|
4
|
-
*/
|
|
5
|
-
declare class Address {
|
|
6
|
-
constructor(responseData: any);
|
|
7
|
-
text: any;
|
|
8
|
-
verified: any;
|
|
9
|
-
line: any;
|
|
10
|
-
start: any;
|
|
11
|
-
end: any;
|
|
12
|
-
candidates: any;
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export = Lookup;
|
|
2
|
-
/**
|
|
3
|
-
* In addition to holding all of the input data for this lookup, this class also<br>
|
|
4
|
-
* will contain the result of the lookup after it comes back from the API.
|
|
5
|
-
* @see "https://www.smarty.com/docs/cloud/us-extract-api#http-request-input-fields"
|
|
6
|
-
*/
|
|
7
|
-
declare class Lookup {
|
|
8
|
-
/**
|
|
9
|
-
* @param text The text that is to have addresses extracted out of it for verification (required)
|
|
10
|
-
*/
|
|
11
|
-
constructor(text: any);
|
|
12
|
-
result: {
|
|
13
|
-
meta: {};
|
|
14
|
-
addresses: never[];
|
|
15
|
-
};
|
|
16
|
-
text: any;
|
|
17
|
-
html: any;
|
|
18
|
-
aggressive: any;
|
|
19
|
-
addressesHaveLineBreaks: any;
|
|
20
|
-
addressesPerLine: any;
|
|
21
|
-
customParameters: {};
|
|
22
|
-
addCustomParameter(key: any, value: any): void;
|
|
23
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export = Result;
|
|
2
|
-
/**
|
|
3
|
-
* @see <a href="https://www.smarty.com/docs/cloud/us-extract-api#http-response-status">Smarty US Extract API docs</a>
|
|
4
|
-
*/
|
|
5
|
-
declare class Result {
|
|
6
|
-
constructor({ meta, addresses }: {
|
|
7
|
-
meta: any;
|
|
8
|
-
addresses: any;
|
|
9
|
-
});
|
|
10
|
-
meta: {
|
|
11
|
-
lines: any;
|
|
12
|
-
unicode: any;
|
|
13
|
-
addressCount: any;
|
|
14
|
-
verifiedCount: any;
|
|
15
|
-
bytes: any;
|
|
16
|
-
characterCount: any;
|
|
17
|
-
};
|
|
18
|
-
addresses: any;
|
|
19
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export = Client;
|
|
2
|
-
/**
|
|
3
|
-
* This client sends lookups to the Smarty US Reverse Geo API, <br>
|
|
4
|
-
* and attaches the results to the appropriate Lookup objects.
|
|
5
|
-
*/
|
|
6
|
-
declare class Client {
|
|
7
|
-
constructor(sender: any);
|
|
8
|
-
sender: any;
|
|
9
|
-
send(lookup: any): Promise<any>;
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export = Lookup;
|
|
2
|
-
/**
|
|
3
|
-
* In addition to holding all of the input data for this lookup, this class also<br>
|
|
4
|
-
* will contain the result of the lookup after it comes back from the API.
|
|
5
|
-
* @see "https://www.smarty.com/docs/cloud/us-street-api#input-fields"
|
|
6
|
-
*/
|
|
7
|
-
declare class Lookup {
|
|
8
|
-
constructor(latitude: any, longitude: any, source?: string);
|
|
9
|
-
latitude: any;
|
|
10
|
-
longitude: any;
|
|
11
|
-
source: string;
|
|
12
|
-
response: Response;
|
|
13
|
-
customParameters: {};
|
|
14
|
-
addCustomParameter(key: any, value: any): void;
|
|
15
|
-
}
|
|
16
|
-
import Response = require("./Response");
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export = Result;
|
|
2
|
-
/**
|
|
3
|
-
* A candidate is a possible match for an address that was submitted.<br>
|
|
4
|
-
* A lookup can have multiple candidates if the address was ambiguous.
|
|
5
|
-
*
|
|
6
|
-
* @see "https://www.smarty.com/docs/cloud/us-reverse-geo-api#result"
|
|
7
|
-
*/
|
|
8
|
-
declare class Result {
|
|
9
|
-
constructor(responseData: any);
|
|
10
|
-
distance: any;
|
|
11
|
-
address: {};
|
|
12
|
-
coordinate: {};
|
|
13
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export = Candidate;
|
|
2
|
-
/**
|
|
3
|
-
* A candidate is a possible match for an address that was submitted.<br>
|
|
4
|
-
* A lookup can have multiple candidates if the address was ambiguous, and<br>
|
|
5
|
-
* the maxCandidates field is set higher than 1.
|
|
6
|
-
*
|
|
7
|
-
* @see "https://www.smarty.com/docs/cloud/us-street-api#root"
|
|
8
|
-
*/
|
|
9
|
-
declare class Candidate {
|
|
10
|
-
constructor(responseData: any);
|
|
11
|
-
inputIndex: any;
|
|
12
|
-
candidateIndex: any;
|
|
13
|
-
addressee: any;
|
|
14
|
-
deliveryLine1: any;
|
|
15
|
-
deliveryLine2: any;
|
|
16
|
-
lastLine: any;
|
|
17
|
-
deliveryPointBarcode: any;
|
|
18
|
-
smartyKey: any;
|
|
19
|
-
components: {};
|
|
20
|
-
metadata: {};
|
|
21
|
-
analysis: {};
|
|
22
|
-
}
|