@model-match/api 3.72.0 → 3.73.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/RELEASE_NOTES.md +4 -0
- package/dist/{index-42CQYyvn.d.mts → index-b3ctB7b5.d.mts} +141 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +8 -2
- package/dist/slim/index.mjs +22 -2
- package/dist/{src-DDcoJOKs.mjs → src-BjReUrCJ.mjs} +22 -0
- package/openapi.json +392 -1
- package/package.json +1 -1
package/dist/slim/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as client, n as createClient } from "../src-
|
|
1
|
+
import { C as client, n as createClient } from "../src-BjReUrCJ.mjs";
|
|
2
2
|
//#region src/slim/sdk.gen.ts
|
|
3
3
|
/**
|
|
4
4
|
* Search agents with filters
|
|
@@ -6121,6 +6121,26 @@ const countSales = (options) => (options?.client ?? client).post({
|
|
|
6121
6121
|
}
|
|
6122
6122
|
});
|
|
6123
6123
|
/**
|
|
6124
|
+
* Draw a map viewport: listing points or grid clusters
|
|
6125
|
+
*
|
|
6126
|
+
* One call for a whole map viewport. Send the visible `bounds` (and optionally `zoom`) plus the usual sales filters. When the matches fit in `limit` the response is individual `point` rows (id, coordinates, price, status, beds/baths/sqft); otherwise it is `cluster` rows, one per grid cell, each with a count, the centroid of its listings and an approximate median list price. `total` is the exact number of matching listings in the box. **Billing: each element of `data` is billed like a list row (1 credit), so `limit` bounds the cost of one call.** Use `POST /v1/sales/count` with `flatFilters.geoBounds` for a free count.
|
|
6127
|
+
*/
|
|
6128
|
+
const mapSales = (options) => (options?.client ?? client).post({
|
|
6129
|
+
security: [{
|
|
6130
|
+
name: "x-api-key",
|
|
6131
|
+
type: "apiKey"
|
|
6132
|
+
}, {
|
|
6133
|
+
scheme: "bearer",
|
|
6134
|
+
type: "http"
|
|
6135
|
+
}],
|
|
6136
|
+
url: "/v1/sales/map",
|
|
6137
|
+
...options,
|
|
6138
|
+
headers: {
|
|
6139
|
+
"Content-Type": "application/json",
|
|
6140
|
+
...options?.headers
|
|
6141
|
+
}
|
|
6142
|
+
});
|
|
6143
|
+
/**
|
|
6124
6144
|
* Get sale by ID
|
|
6125
6145
|
*/
|
|
6126
6146
|
const getSale = (options) => (options.client ?? client).get({
|
|
@@ -6343,4 +6363,4 @@ const listLoMoveSignals = (options) => (options.client ?? client).get({
|
|
|
6343
6363
|
...options
|
|
6344
6364
|
});
|
|
6345
6365
|
//#endregion
|
|
6346
|
-
export { client as _heyApiClient, actionCrmCallerId, addCrmContactMethod, addCrmListMember, addCrmListMembersBulk, addCrmNote, addCrmRecord, addCrmRecordsBulk, addWatchedAgent, addWatchedArea, addWatchedDocument, agentAnalyticsChart, agentAnalyticsSummary, agentAnalyticsTimeSeries, agentBuilders, agentCities, agentCompanies, agentCounties, agentLenders, agentLoanMix, agentMarkets, agentMortgagedTimeSeries, agentOffices, agentOriginators, agentProperties, agentRelated, agentSales, agentStates, agentTitleCompanies, agentTitleCompaniesTimeSeries, agentZipCodes, analyzeCrmCall, applyCrmEnrichment, applyCrmListMiUpdates, applyCrmListTemplate, applyCrmMiUpdates, branchAnalyticsChart, branchAnalyticsSummary, branchAnalyticsTimeSeries, branchCities, branchCommunityLendingMap, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchStats, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCommunityLendingBenchmark, companyCommunityLendingMap, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, companyRetention, companyRetentionActiveListings, companyRetentionCaptured, companySponsoredIndividuals, companySponsorshipMovement, companyStates, companyTalentFlow, companyTitleCompanies, companyZipCodes, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMyAlertRecipe, deleteSavedFilter, describeCrmRecordsOnAdd, dismissCrmListMiUpdates, dismissCrmMiUpdates, editCrmLoggedActivity, editCrmNote, enrichPropertiesBatch, enrichPropertiesBulk, enrichProperty, filterCrmListMembers, findCrmRecordByNmls, generateCrmRecordDescription, getAgent, getAgentsBulkDeliveryJob, getAlertConditions, getAlertEmailTokens, getAlertUnreadCount, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getCrmActiveCall, getCrmActivityReport, getCrmCall, getCrmCallTranscript, getCrmCustomValues, getCrmImport, getCrmImportJob, getCrmList, getCrmListMemberIds, getCrmListMiUpdates, getCrmListShares, getCrmMiUpdates, getCrmOutcomesReport, getCrmOverrides, getCrmProductionEnrichJob, getCrmRecordAccess, getCrmRecordAccessRequest, getCrmRecordConnections, getCrmRecordMemberIds, getCrmRecordProfile, getCrmTemplate, getCrmTemplateShares, getEnrichBulkJob, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmContactMethods, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoMoveSignals, listLoans, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listWatchedAgents, listWatchedAreas, listWatchedDocuments, loanRelated, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, logCrmActivity, lookupCompanies, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, marketCommunityLending, marketMovementActivity, marketMovementByState, marketMovementCohortPayoff, marketMovementMostGained, marketMovementMostLost, marketMovementMovers, marketMovementRankings, marketMovementStats, marketMovementTransitions, marketSignals, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCommunityLendingBenchmark, originatorCommunityLendingMap, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, originatorRetentionCaptured, originatorStatesBreakdown, originatorTitleCompanies, originatorZipCodes, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, refreshCrmRecordMirror, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, saleRelated, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, searchCrmEmailRecipients, searchCrmMatchCandidates, searchCrmMentionRecords, searchCrmRecords, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unshareCrmTemplate, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateMe, updateMyAlertRecipe, updateSavedFilter };
|
|
6366
|
+
export { client as _heyApiClient, actionCrmCallerId, addCrmContactMethod, addCrmListMember, addCrmListMembersBulk, addCrmNote, addCrmRecord, addCrmRecordsBulk, addWatchedAgent, addWatchedArea, addWatchedDocument, agentAnalyticsChart, agentAnalyticsSummary, agentAnalyticsTimeSeries, agentBuilders, agentCities, agentCompanies, agentCounties, agentLenders, agentLoanMix, agentMarkets, agentMortgagedTimeSeries, agentOffices, agentOriginators, agentProperties, agentRelated, agentSales, agentStates, agentTitleCompanies, agentTitleCompaniesTimeSeries, agentZipCodes, analyzeCrmCall, applyCrmEnrichment, applyCrmListMiUpdates, applyCrmListTemplate, applyCrmMiUpdates, branchAnalyticsChart, branchAnalyticsSummary, branchAnalyticsTimeSeries, branchCities, branchCommunityLendingMap, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchStats, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCommunityLendingBenchmark, companyCommunityLendingMap, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, companyRetention, companyRetentionActiveListings, companyRetentionCaptured, companySponsoredIndividuals, companySponsorshipMovement, companyStates, companyTalentFlow, companyTitleCompanies, companyZipCodes, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMyAlertRecipe, deleteSavedFilter, describeCrmRecordsOnAdd, dismissCrmListMiUpdates, dismissCrmMiUpdates, editCrmLoggedActivity, editCrmNote, enrichPropertiesBatch, enrichPropertiesBulk, enrichProperty, filterCrmListMembers, findCrmRecordByNmls, generateCrmRecordDescription, getAgent, getAgentsBulkDeliveryJob, getAlertConditions, getAlertEmailTokens, getAlertUnreadCount, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getCrmActiveCall, getCrmActivityReport, getCrmCall, getCrmCallTranscript, getCrmCustomValues, getCrmImport, getCrmImportJob, getCrmList, getCrmListMemberIds, getCrmListMiUpdates, getCrmListShares, getCrmMiUpdates, getCrmOutcomesReport, getCrmOverrides, getCrmProductionEnrichJob, getCrmRecordAccess, getCrmRecordAccessRequest, getCrmRecordConnections, getCrmRecordMemberIds, getCrmRecordProfile, getCrmTemplate, getCrmTemplateShares, getEnrichBulkJob, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmContactMethods, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoMoveSignals, listLoans, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listWatchedAgents, listWatchedAreas, listWatchedDocuments, loanRelated, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, logCrmActivity, lookupCompanies, mapSales, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, marketCommunityLending, marketMovementActivity, marketMovementByState, marketMovementCohortPayoff, marketMovementMostGained, marketMovementMostLost, marketMovementMovers, marketMovementRankings, marketMovementStats, marketMovementTransitions, marketSignals, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCommunityLendingBenchmark, originatorCommunityLendingMap, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, originatorRetentionCaptured, originatorStatesBreakdown, originatorTitleCompanies, originatorZipCodes, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, refreshCrmRecordMirror, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, saleRelated, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, searchCrmEmailRecipients, searchCrmMatchCandidates, searchCrmMentionRecords, searchCrmRecords, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unshareCrmTemplate, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateMe, updateMyAlertRecipe, updateSavedFilter };
|
|
@@ -7528,6 +7528,28 @@ var Sales = class {
|
|
|
7528
7528
|
});
|
|
7529
7529
|
}
|
|
7530
7530
|
/**
|
|
7531
|
+
* Draw a map viewport: listing points or grid clusters
|
|
7532
|
+
*
|
|
7533
|
+
* One call for a whole map viewport. Send the visible `bounds` (and optionally `zoom`) plus the usual sales filters. When the matches fit in `limit` the response is individual `point` rows (id, coordinates, price, status, beds/baths/sqft); otherwise it is `cluster` rows, one per grid cell, each with a count, the centroid of its listings and an approximate median list price. `total` is the exact number of matching listings in the box. **Billing: each element of `data` is billed like a list row (1 credit), so `limit` bounds the cost of one call.** Use `POST /v1/sales/count` with `flatFilters.geoBounds` for a free count.
|
|
7534
|
+
*/
|
|
7535
|
+
static map(options) {
|
|
7536
|
+
return (options?.client ?? client).post({
|
|
7537
|
+
security: [{
|
|
7538
|
+
name: "x-api-key",
|
|
7539
|
+
type: "apiKey"
|
|
7540
|
+
}, {
|
|
7541
|
+
scheme: "bearer",
|
|
7542
|
+
type: "http"
|
|
7543
|
+
}],
|
|
7544
|
+
url: "/v1/sales/map",
|
|
7545
|
+
...options,
|
|
7546
|
+
headers: {
|
|
7547
|
+
"Content-Type": "application/json",
|
|
7548
|
+
...options?.headers
|
|
7549
|
+
}
|
|
7550
|
+
});
|
|
7551
|
+
}
|
|
7552
|
+
/**
|
|
7531
7553
|
* Get sale by ID
|
|
7532
7554
|
*/
|
|
7533
7555
|
static get(options) {
|
package/openapi.json
CHANGED
|
@@ -27247,6 +27247,79 @@
|
|
|
27247
27247
|
],
|
|
27248
27248
|
"type": "object"
|
|
27249
27249
|
},
|
|
27250
|
+
"GeoBounds": {
|
|
27251
|
+
"description": "The cell's extent",
|
|
27252
|
+
"properties": {
|
|
27253
|
+
"east": {
|
|
27254
|
+
"example": -97.65,
|
|
27255
|
+
"maximum": 180,
|
|
27256
|
+
"minimum": -180,
|
|
27257
|
+
"type": "number"
|
|
27258
|
+
},
|
|
27259
|
+
"north": {
|
|
27260
|
+
"example": 30.33,
|
|
27261
|
+
"maximum": 90,
|
|
27262
|
+
"minimum": -90,
|
|
27263
|
+
"type": "number"
|
|
27264
|
+
},
|
|
27265
|
+
"south": {
|
|
27266
|
+
"example": 30.2,
|
|
27267
|
+
"maximum": 90,
|
|
27268
|
+
"minimum": -90,
|
|
27269
|
+
"type": "number"
|
|
27270
|
+
},
|
|
27271
|
+
"west": {
|
|
27272
|
+
"example": -97.85,
|
|
27273
|
+
"maximum": 180,
|
|
27274
|
+
"minimum": -180,
|
|
27275
|
+
"type": "number"
|
|
27276
|
+
}
|
|
27277
|
+
},
|
|
27278
|
+
"required": [
|
|
27279
|
+
"north",
|
|
27280
|
+
"south",
|
|
27281
|
+
"east",
|
|
27282
|
+
"west"
|
|
27283
|
+
],
|
|
27284
|
+
"type": "object"
|
|
27285
|
+
},
|
|
27286
|
+
"GeoBoundsFilterValue": {
|
|
27287
|
+
"description": "Map viewport `{north, south, east, west}` in degrees: only listings inside the box. `west` greater than `east` crosses the antimeridian. Unlike `geoPoint` (a radius) this is the shape a map reports. Applies to list, count and analytics alike.",
|
|
27288
|
+
"nullable": true,
|
|
27289
|
+
"properties": {
|
|
27290
|
+
"east": {
|
|
27291
|
+
"example": -97.65,
|
|
27292
|
+
"maximum": 180,
|
|
27293
|
+
"minimum": -180,
|
|
27294
|
+
"type": "number"
|
|
27295
|
+
},
|
|
27296
|
+
"north": {
|
|
27297
|
+
"example": 30.33,
|
|
27298
|
+
"maximum": 90,
|
|
27299
|
+
"minimum": -90,
|
|
27300
|
+
"type": "number"
|
|
27301
|
+
},
|
|
27302
|
+
"south": {
|
|
27303
|
+
"example": 30.2,
|
|
27304
|
+
"maximum": 90,
|
|
27305
|
+
"minimum": -90,
|
|
27306
|
+
"type": "number"
|
|
27307
|
+
},
|
|
27308
|
+
"west": {
|
|
27309
|
+
"example": -97.85,
|
|
27310
|
+
"maximum": 180,
|
|
27311
|
+
"minimum": -180,
|
|
27312
|
+
"type": "number"
|
|
27313
|
+
}
|
|
27314
|
+
},
|
|
27315
|
+
"required": [
|
|
27316
|
+
"north",
|
|
27317
|
+
"south",
|
|
27318
|
+
"east",
|
|
27319
|
+
"west"
|
|
27320
|
+
],
|
|
27321
|
+
"type": "object"
|
|
27322
|
+
},
|
|
27250
27323
|
"GeoFilterValue": {
|
|
27251
27324
|
"description": "Radius search — `{ lat, lon, radius }` (e.g. radius \"15mi\" or \"24km\") — around any office on the agent's record; with `locationSource` `office` the CURRENT office, `production` their transactions.",
|
|
27252
27325
|
"nullable": true,
|
|
@@ -40669,6 +40742,16 @@
|
|
|
40669
40742
|
"foreclosureStatus": {
|
|
40670
40743
|
"$ref": "#/components/schemas/PropertyForeclosureStatusFilterValue"
|
|
40671
40744
|
},
|
|
40745
|
+
"geoBounds": {
|
|
40746
|
+
"allOf": [
|
|
40747
|
+
{
|
|
40748
|
+
"$ref": "#/components/schemas/GeoBoundsFilterValue"
|
|
40749
|
+
},
|
|
40750
|
+
{
|
|
40751
|
+
"description": "Map viewport `{north, south, east, west}` in degrees: only parcels inside the box. `west` greater than `east` crosses the antimeridian. Unlike `geoPoint` (a radius) this is the shape a map reports."
|
|
40752
|
+
}
|
|
40753
|
+
]
|
|
40754
|
+
},
|
|
40672
40755
|
"geoPoint": {
|
|
40673
40756
|
"$ref": "#/components/schemas/GeoFilterValue"
|
|
40674
40757
|
},
|
|
@@ -41890,6 +41973,16 @@
|
|
|
41890
41973
|
"foreclosureStatus": {
|
|
41891
41974
|
"$ref": "#/components/schemas/PropertyForeclosureStatusFilterValue"
|
|
41892
41975
|
},
|
|
41976
|
+
"geoBounds": {
|
|
41977
|
+
"allOf": [
|
|
41978
|
+
{
|
|
41979
|
+
"$ref": "#/components/schemas/GeoBoundsFilterValue"
|
|
41980
|
+
},
|
|
41981
|
+
{
|
|
41982
|
+
"description": "Map viewport `{north, south, east, west}` in degrees: only parcels inside the box. `west` greater than `east` crosses the antimeridian. Unlike `geoPoint` (a radius) this is the shape a map reports."
|
|
41983
|
+
}
|
|
41984
|
+
]
|
|
41985
|
+
},
|
|
41893
41986
|
"geoPoint": {
|
|
41894
41987
|
"$ref": "#/components/schemas/GeoFilterValue"
|
|
41895
41988
|
},
|
|
@@ -44416,6 +44509,9 @@
|
|
|
44416
44509
|
}
|
|
44417
44510
|
]
|
|
44418
44511
|
},
|
|
44512
|
+
"geoBounds": {
|
|
44513
|
+
"$ref": "#/components/schemas/GeoBoundsFilterValue"
|
|
44514
|
+
},
|
|
44419
44515
|
"geoPoint": {
|
|
44420
44516
|
"$ref": "#/components/schemas/GeoFilterValue"
|
|
44421
44517
|
},
|
|
@@ -44730,6 +44826,210 @@
|
|
|
44730
44826
|
},
|
|
44731
44827
|
"type": "object"
|
|
44732
44828
|
},
|
|
44829
|
+
"SaleMapCluster": {
|
|
44830
|
+
"properties": {
|
|
44831
|
+
"bounds": {
|
|
44832
|
+
"$ref": "#/components/schemas/GeoBounds"
|
|
44833
|
+
},
|
|
44834
|
+
"count": {
|
|
44835
|
+
"type": "integer"
|
|
44836
|
+
},
|
|
44837
|
+
"key": {
|
|
44838
|
+
"description": "Grid cell as `zoom/x/y` (web-mercator tile coordinates)",
|
|
44839
|
+
"type": "string"
|
|
44840
|
+
},
|
|
44841
|
+
"kind": {
|
|
44842
|
+
"enum": [
|
|
44843
|
+
"cluster"
|
|
44844
|
+
],
|
|
44845
|
+
"type": "string"
|
|
44846
|
+
},
|
|
44847
|
+
"lat": {
|
|
44848
|
+
"description": "Centroid of the listings in the cell (not the cell centre)",
|
|
44849
|
+
"type": "number"
|
|
44850
|
+
},
|
|
44851
|
+
"lon": {
|
|
44852
|
+
"type": "number"
|
|
44853
|
+
},
|
|
44854
|
+
"medianListPrice": {
|
|
44855
|
+
"description": "Approximate median list price of the cell's listings, in dollars (list price for every status, sold included)",
|
|
44856
|
+
"nullable": true,
|
|
44857
|
+
"type": "number"
|
|
44858
|
+
}
|
|
44859
|
+
},
|
|
44860
|
+
"required": [
|
|
44861
|
+
"kind",
|
|
44862
|
+
"key",
|
|
44863
|
+
"lat",
|
|
44864
|
+
"lon",
|
|
44865
|
+
"count",
|
|
44866
|
+
"medianListPrice",
|
|
44867
|
+
"bounds"
|
|
44868
|
+
],
|
|
44869
|
+
"type": "object"
|
|
44870
|
+
},
|
|
44871
|
+
"SaleMapPoint": {
|
|
44872
|
+
"properties": {
|
|
44873
|
+
"baths": {
|
|
44874
|
+
"nullable": true,
|
|
44875
|
+
"type": "number"
|
|
44876
|
+
},
|
|
44877
|
+
"beds": {
|
|
44878
|
+
"nullable": true,
|
|
44879
|
+
"type": "number"
|
|
44880
|
+
},
|
|
44881
|
+
"id": {
|
|
44882
|
+
"description": "Sale document ID",
|
|
44883
|
+
"type": "string"
|
|
44884
|
+
},
|
|
44885
|
+
"kind": {
|
|
44886
|
+
"enum": [
|
|
44887
|
+
"point"
|
|
44888
|
+
],
|
|
44889
|
+
"type": "string"
|
|
44890
|
+
},
|
|
44891
|
+
"lat": {
|
|
44892
|
+
"type": "number"
|
|
44893
|
+
},
|
|
44894
|
+
"lon": {
|
|
44895
|
+
"type": "number"
|
|
44896
|
+
},
|
|
44897
|
+
"price": {
|
|
44898
|
+
"description": "Sold price for a closed sale (`SLD`), otherwise the list price, in dollars",
|
|
44899
|
+
"nullable": true,
|
|
44900
|
+
"type": "number"
|
|
44901
|
+
},
|
|
44902
|
+
"sqft": {
|
|
44903
|
+
"nullable": true,
|
|
44904
|
+
"type": "number"
|
|
44905
|
+
},
|
|
44906
|
+
"status": {
|
|
44907
|
+
"allOf": [
|
|
44908
|
+
{
|
|
44909
|
+
"$ref": "#/components/schemas/MlsStatus"
|
|
44910
|
+
},
|
|
44911
|
+
{
|
|
44912
|
+
"nullable": true
|
|
44913
|
+
}
|
|
44914
|
+
]
|
|
44915
|
+
}
|
|
44916
|
+
},
|
|
44917
|
+
"required": [
|
|
44918
|
+
"kind",
|
|
44919
|
+
"id",
|
|
44920
|
+
"lat",
|
|
44921
|
+
"lon",
|
|
44922
|
+
"price",
|
|
44923
|
+
"status",
|
|
44924
|
+
"beds",
|
|
44925
|
+
"baths",
|
|
44926
|
+
"sqft"
|
|
44927
|
+
],
|
|
44928
|
+
"type": "object"
|
|
44929
|
+
},
|
|
44930
|
+
"SaleMapRequest": {
|
|
44931
|
+
"additionalProperties": false,
|
|
44932
|
+
"properties": {
|
|
44933
|
+
"advancedFilters": {
|
|
44934
|
+
"$ref": "#/components/schemas/FilterNode"
|
|
44935
|
+
},
|
|
44936
|
+
"bounds": {
|
|
44937
|
+
"allOf": [
|
|
44938
|
+
{
|
|
44939
|
+
"$ref": "#/components/schemas/GeoBounds"
|
|
44940
|
+
},
|
|
44941
|
+
{
|
|
44942
|
+
"description": "The viewport to draw. Required, and the only way to scope the map: do not also send `flatFilters.geoBounds`."
|
|
44943
|
+
}
|
|
44944
|
+
]
|
|
44945
|
+
},
|
|
44946
|
+
"filters": {
|
|
44947
|
+
"$ref": "#/components/schemas/FilterNode"
|
|
44948
|
+
},
|
|
44949
|
+
"flatFilters": {
|
|
44950
|
+
"$ref": "#/components/schemas/SaleFlatFilters"
|
|
44951
|
+
},
|
|
44952
|
+
"limit": {
|
|
44953
|
+
"description": "Most point rows to return (default 250, max 1000). It is also the `auto` switch-over: more matches than this come back as clusters. **Billing counts each element of `data`**, so this bounds the cost of one call.",
|
|
44954
|
+
"maximum": 1000,
|
|
44955
|
+
"minimum": 1,
|
|
44956
|
+
"type": "integer"
|
|
44957
|
+
},
|
|
44958
|
+
"mode": {
|
|
44959
|
+
"description": "`auto` (default): individual `point` rows when the matches fit in `limit`, otherwise `cluster` rows. `points`: always individual rows, newest first, capped at `limit` (`truncated` says when more matched). `clusters`: always grid cells.",
|
|
44960
|
+
"enum": [
|
|
44961
|
+
"auto",
|
|
44962
|
+
"points",
|
|
44963
|
+
"clusters"
|
|
44964
|
+
],
|
|
44965
|
+
"type": "string"
|
|
44966
|
+
},
|
|
44967
|
+
"period": {
|
|
44968
|
+
"$ref": "#/components/schemas/DatedPeriod"
|
|
44969
|
+
},
|
|
44970
|
+
"zoom": {
|
|
44971
|
+
"description": "Web-map zoom level (0-22). Sets the cluster grid precision (about 8 cells across a 256 px tile). Omitted: derived from the width of `bounds`.",
|
|
44972
|
+
"maximum": 22,
|
|
44973
|
+
"minimum": 0,
|
|
44974
|
+
"type": "integer"
|
|
44975
|
+
}
|
|
44976
|
+
},
|
|
44977
|
+
"required": [
|
|
44978
|
+
"bounds"
|
|
44979
|
+
],
|
|
44980
|
+
"type": "object"
|
|
44981
|
+
},
|
|
44982
|
+
"SaleMapResponse": {
|
|
44983
|
+
"properties": {
|
|
44984
|
+
"data": {
|
|
44985
|
+
"items": {
|
|
44986
|
+
"discriminator": {
|
|
44987
|
+
"mapping": {
|
|
44988
|
+
"cluster": "#/components/schemas/SaleMapCluster",
|
|
44989
|
+
"point": "#/components/schemas/SaleMapPoint"
|
|
44990
|
+
},
|
|
44991
|
+
"propertyName": "kind"
|
|
44992
|
+
},
|
|
44993
|
+
"oneOf": [
|
|
44994
|
+
{
|
|
44995
|
+
"$ref": "#/components/schemas/SaleMapPoint"
|
|
44996
|
+
},
|
|
44997
|
+
{
|
|
44998
|
+
"$ref": "#/components/schemas/SaleMapCluster"
|
|
44999
|
+
}
|
|
45000
|
+
]
|
|
45001
|
+
},
|
|
45002
|
+
"type": "array"
|
|
45003
|
+
},
|
|
45004
|
+
"mode": {
|
|
45005
|
+
"description": "What `data` holds: all `point` rows or all `cluster` rows",
|
|
45006
|
+
"enum": [
|
|
45007
|
+
"points",
|
|
45008
|
+
"clusters"
|
|
45009
|
+
],
|
|
45010
|
+
"type": "string"
|
|
45011
|
+
},
|
|
45012
|
+
"precision": {
|
|
45013
|
+
"description": "Grid zoom level used (`clusters` only)",
|
|
45014
|
+
"type": "integer"
|
|
45015
|
+
},
|
|
45016
|
+
"total": {
|
|
45017
|
+
"description": "Listings inside `bounds` matching the filters (exact), regardless of how many `data` rows are returned",
|
|
45018
|
+
"type": "integer"
|
|
45019
|
+
},
|
|
45020
|
+
"truncated": {
|
|
45021
|
+
"description": "`points`: more listings matched than `limit`, so `data` is the newest `limit`. `clusters`: more cells existed than the cap, so the smallest were left out.",
|
|
45022
|
+
"type": "boolean"
|
|
45023
|
+
}
|
|
45024
|
+
},
|
|
45025
|
+
"required": [
|
|
45026
|
+
"mode",
|
|
45027
|
+
"total",
|
|
45028
|
+
"truncated",
|
|
45029
|
+
"data"
|
|
45030
|
+
],
|
|
45031
|
+
"type": "object"
|
|
45032
|
+
},
|
|
44733
45033
|
"SaleMiddleSchoolFilterValue": {
|
|
44734
45034
|
"anyOf": [
|
|
44735
45035
|
{
|
|
@@ -47108,7 +47408,7 @@
|
|
|
47108
47408
|
"info": {
|
|
47109
47409
|
"description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
|
|
47110
47410
|
"title": "ModelMatch API",
|
|
47111
|
-
"version": "3.
|
|
47411
|
+
"version": "3.151.0"
|
|
47112
47412
|
},
|
|
47113
47413
|
"openapi": "3.1.0",
|
|
47114
47414
|
"paths": {
|
|
@@ -84330,6 +84630,97 @@
|
|
|
84330
84630
|
"x-mm-records-via": "listSales"
|
|
84331
84631
|
}
|
|
84332
84632
|
},
|
|
84633
|
+
"/v1/sales/map": {
|
|
84634
|
+
"post": {
|
|
84635
|
+
"description": "One call for a whole map viewport. Send the visible `bounds` (and optionally `zoom`) plus the usual sales filters. When the matches fit in `limit` the response is individual `point` rows (id, coordinates, price, status, beds/baths/sqft); otherwise it is `cluster` rows, one per grid cell, each with a count, the centroid of its listings and an approximate median list price. `total` is the exact number of matching listings in the box. **Billing: each element of `data` is billed like a list row (1 credit), so `limit` bounds the cost of one call.** Use `POST /v1/sales/count` with `flatFilters.geoBounds` for a free count.",
|
|
84636
|
+
"operationId": "mapSales",
|
|
84637
|
+
"requestBody": {
|
|
84638
|
+
"content": {
|
|
84639
|
+
"application/json": {
|
|
84640
|
+
"schema": {
|
|
84641
|
+
"$ref": "#/components/schemas/SaleMapRequest"
|
|
84642
|
+
}
|
|
84643
|
+
}
|
|
84644
|
+
}
|
|
84645
|
+
},
|
|
84646
|
+
"responses": {
|
|
84647
|
+
"200": {
|
|
84648
|
+
"content": {
|
|
84649
|
+
"application/json": {
|
|
84650
|
+
"schema": {
|
|
84651
|
+
"$ref": "#/components/schemas/SaleMapResponse"
|
|
84652
|
+
}
|
|
84653
|
+
}
|
|
84654
|
+
},
|
|
84655
|
+
"description": "Points or clusters for the viewport"
|
|
84656
|
+
},
|
|
84657
|
+
"400": {
|
|
84658
|
+
"content": {
|
|
84659
|
+
"application/json": {
|
|
84660
|
+
"schema": {
|
|
84661
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
84662
|
+
}
|
|
84663
|
+
}
|
|
84664
|
+
},
|
|
84665
|
+
"description": "Validation error. Includes unresolvable location filters: a `city`/`county`/`state`/`zip` value that does not match a recognized location returns 400 rather than an empty result set. Resolve the name with `instantSearch` (use an id from its `results.locations[]`) or `suggestLocations` (use the `id` of a `source: \"dictionary\"` result), then pass that id back as the filter value."
|
|
84666
|
+
},
|
|
84667
|
+
"401": {
|
|
84668
|
+
"content": {
|
|
84669
|
+
"application/json": {
|
|
84670
|
+
"schema": {
|
|
84671
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
84672
|
+
}
|
|
84673
|
+
}
|
|
84674
|
+
},
|
|
84675
|
+
"description": "Unauthorized"
|
|
84676
|
+
},
|
|
84677
|
+
"403": {
|
|
84678
|
+
"content": {
|
|
84679
|
+
"application/json": {
|
|
84680
|
+
"schema": {
|
|
84681
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
84682
|
+
}
|
|
84683
|
+
}
|
|
84684
|
+
},
|
|
84685
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
84686
|
+
},
|
|
84687
|
+
"404": {
|
|
84688
|
+
"content": {
|
|
84689
|
+
"application/json": {
|
|
84690
|
+
"schema": {
|
|
84691
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
84692
|
+
}
|
|
84693
|
+
}
|
|
84694
|
+
},
|
|
84695
|
+
"description": "Not found"
|
|
84696
|
+
},
|
|
84697
|
+
"413": {
|
|
84698
|
+
"content": {
|
|
84699
|
+
"application/json": {
|
|
84700
|
+
"schema": {
|
|
84701
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
84702
|
+
}
|
|
84703
|
+
}
|
|
84704
|
+
},
|
|
84705
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
84706
|
+
},
|
|
84707
|
+
"503": {
|
|
84708
|
+
"content": {
|
|
84709
|
+
"application/json": {
|
|
84710
|
+
"schema": {
|
|
84711
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
84712
|
+
}
|
|
84713
|
+
}
|
|
84714
|
+
},
|
|
84715
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
84716
|
+
}
|
|
84717
|
+
},
|
|
84718
|
+
"summary": "Draw a map viewport: listing points or grid clusters",
|
|
84719
|
+
"tags": [
|
|
84720
|
+
"Sales"
|
|
84721
|
+
]
|
|
84722
|
+
}
|
|
84723
|
+
},
|
|
84333
84724
|
"/v1/sales/{id}": {
|
|
84334
84725
|
"get": {
|
|
84335
84726
|
"operationId": "getSale",
|