@opendoor/partner-sdk-server-js-core 0.0.1-alpha.29.1 → 0.0.1-alpha.31.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/dist/client.d.ts +4 -4
- package/dist/client.js +4 -4
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*
|
|
12
12
|
* const client = new OpendoorClient({
|
|
13
13
|
* apiKey: process.env.OPENDOOR_API_KEY!,
|
|
14
|
-
* apiEndpoint: 'https://partner.
|
|
15
|
-
* addressEndpoint: 'https://
|
|
14
|
+
* apiEndpoint: 'https://partner.simplersell.com/api/graphql', // staging (default)
|
|
15
|
+
* addressEndpoint: 'https://demo.simplersell.com', // staging (default)
|
|
16
16
|
* });
|
|
17
17
|
*
|
|
18
18
|
* const offer = await client.createOffer({
|
|
@@ -27,10 +27,10 @@ import type { AddressSuggestionsResponse, CreateOfferRequest, CreateOfferRespons
|
|
|
27
27
|
* Configuration for the OpendoorClient.
|
|
28
28
|
*
|
|
29
29
|
* @param apiKey - Partner API key. Used as `Authorization: Basic <apiKey>`.
|
|
30
|
-
* @param apiEndpoint - GraphQL API endpoint. Defaults to production.
|
|
30
|
+
* @param apiEndpoint - GraphQL API endpoint. Defaults to staging (partner.simplersell.com). For production, use 'https://partner.opendoor.com/api/graphql'.
|
|
31
31
|
* @param timeout - Request timeout in milliseconds. Defaults to 30000.
|
|
32
32
|
* @param debug - Enable debug logging to console. Defaults to false.
|
|
33
|
-
* @param addressEndpoint - CF Worker base URL for address autocomplete. Defaults to production.
|
|
33
|
+
* @param addressEndpoint - CF Worker base URL for address autocomplete. Defaults to staging (demo.simplersell.com). For production, use 'https://www.opendoor.com'.
|
|
34
34
|
*/
|
|
35
35
|
export interface OpendoorClientConfig {
|
|
36
36
|
apiKey: string;
|
package/dist/client.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*
|
|
12
12
|
* const client = new OpendoorClient({
|
|
13
13
|
* apiKey: process.env.OPENDOOR_API_KEY!,
|
|
14
|
-
* apiEndpoint: 'https://partner.
|
|
15
|
-
* addressEndpoint: 'https://
|
|
14
|
+
* apiEndpoint: 'https://partner.simplersell.com/api/graphql', // staging (default)
|
|
15
|
+
* addressEndpoint: 'https://demo.simplersell.com', // staging (default)
|
|
16
16
|
* });
|
|
17
17
|
*
|
|
18
18
|
* const offer = await client.createOffer({
|
|
@@ -94,10 +94,10 @@ const ENUM_FIELDS = new Set([
|
|
|
94
94
|
'sellerSaleTimeline',
|
|
95
95
|
]);
|
|
96
96
|
const DEFAULT_CONFIG = {
|
|
97
|
-
apiEndpoint: 'https://partner.
|
|
97
|
+
apiEndpoint: 'https://partner.simplersell.com/api/graphql',
|
|
98
98
|
timeout: 30000,
|
|
99
99
|
debug: false,
|
|
100
|
-
addressEndpoint: 'https://
|
|
100
|
+
addressEndpoint: 'https://demo.simplersell.com',
|
|
101
101
|
};
|
|
102
102
|
// ============================================================================
|
|
103
103
|
// Client
|