@opendoor/partner-sdk-server-js-core 1.1.6-beta.96.1 → 1.1.6-beta.98.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/answerKeyMapping.d.ts +2 -2
- package/dist/answerKeyMapping.js +2 -2
- package/dist/client.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Maps dot-notation answer keys (from
|
|
2
|
+
* Maps dot-notation answer keys (from the SDK questionnaire flows, e.g. DtcOnboardingFlow)
|
|
3
3
|
* to the GraphQL OfferInput camelCase field names.
|
|
4
4
|
*
|
|
5
5
|
* Keys not in this map are treated as experimental question data
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const POOL_TYPE_NORMALIZE: Record<string, string>;
|
|
14
14
|
/**
|
|
15
|
-
* Transform dot-notation answers from
|
|
15
|
+
* Transform dot-notation answers from the SDK questionnaire flows into
|
|
16
16
|
* the GraphQL OfferInput shape: camelCase fields + experimental array.
|
|
17
17
|
*
|
|
18
18
|
* - Mapped keys become camelCase OfferInput fields (e.g. home.bedrooms → homeBedrooms)
|
package/dist/answerKeyMapping.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Maps dot-notation answer keys (from
|
|
2
|
+
* Maps dot-notation answer keys (from the SDK questionnaire flows, e.g. DtcOnboardingFlow)
|
|
3
3
|
* to the GraphQL OfferInput camelCase field names.
|
|
4
4
|
*
|
|
5
5
|
* Keys not in this map are treated as experimental question data
|
|
@@ -94,7 +94,7 @@ export const POOL_TYPE_NORMALIZE = {
|
|
|
94
94
|
community: 'community_pool',
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
|
-
* Transform dot-notation answers from
|
|
97
|
+
* Transform dot-notation answers from the SDK questionnaire flows into
|
|
98
98
|
* the GraphQL OfferInput shape: camelCase fields + experimental array.
|
|
99
99
|
*
|
|
100
100
|
* - Mapped keys become camelCase OfferInput fields (e.g. home.bedrooms → homeBedrooms)
|
package/dist/client.js
CHANGED
|
@@ -244,7 +244,7 @@ export class OpendoorClient {
|
|
|
244
244
|
*/
|
|
245
245
|
async updateOffer(offerId, data) {
|
|
246
246
|
validateUpdateOfferRequest(offerId, data);
|
|
247
|
-
// Transform dot-notation keys (from
|
|
247
|
+
// Transform dot-notation keys (from the SDK questionnaire flows) to
|
|
248
248
|
// camelCase OfferInput fields + experimental array, then filter
|
|
249
249
|
// to valid GraphQL fields and coerce enum values.
|
|
250
250
|
const transformed = transformAnswersToOfferInput(data);
|