@model-match/api 3.45.0 → 3.47.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 +14 -0
- package/dist/{index-DMqIgBZb.d.mts → index-BhsKtXOJ.d.mts} +556 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +29 -3
- package/dist/slim/index.mjs +93 -3
- package/dist/{src-DCqOC4qE.mjs → src-D2hEr2wd.mjs} +103 -1
- package/openapi.json +1497 -105
- package/package.json +1 -1
package/dist/slim/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as client, n as createClient } from "../src-
|
|
1
|
+
import { S as client, n as createClient } from "../src-D2hEr2wd.mjs";
|
|
2
2
|
//#region src/slim/sdk.gen.ts
|
|
3
3
|
/**
|
|
4
4
|
* Search agents with filters
|
|
@@ -175,6 +175,22 @@ const countAgents = (options) => (options?.client ?? client).post({
|
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
/**
|
|
178
|
+
* List agent office groups
|
|
179
|
+
*
|
|
180
|
+
* The brokerage brand groups this workspace may pass as `officeGroups` / `excludeOfficeGroups` on `listAgents`. Entitlement-gated: a workspace without the entitlement gets an empty list.
|
|
181
|
+
*/
|
|
182
|
+
const listAgentOfficeGroups = (options) => (options?.client ?? client).get({
|
|
183
|
+
security: [{
|
|
184
|
+
name: "x-api-key",
|
|
185
|
+
type: "apiKey"
|
|
186
|
+
}, {
|
|
187
|
+
scheme: "bearer",
|
|
188
|
+
type: "http"
|
|
189
|
+
}],
|
|
190
|
+
url: "/v1/agents/office-groups",
|
|
191
|
+
...options
|
|
192
|
+
});
|
|
193
|
+
/**
|
|
178
194
|
* Get agent by ID
|
|
179
195
|
*/
|
|
180
196
|
const getAgent = (options) => (options.client ?? client).get({
|
|
@@ -2487,6 +2503,80 @@ const getCrmImportJob = (options) => (options.client ?? client).get({
|
|
|
2487
2503
|
...options
|
|
2488
2504
|
});
|
|
2489
2505
|
/**
|
|
2506
|
+
* List import runs (own + into your lists; all for admins), newest first
|
|
2507
|
+
*/
|
|
2508
|
+
const listCrmImports = (options) => (options?.client ?? client).get({
|
|
2509
|
+
security: [{
|
|
2510
|
+
name: "x-api-key",
|
|
2511
|
+
type: "apiKey"
|
|
2512
|
+
}, {
|
|
2513
|
+
scheme: "bearer",
|
|
2514
|
+
type: "http"
|
|
2515
|
+
}],
|
|
2516
|
+
url: "/v1/crm/imports",
|
|
2517
|
+
...options
|
|
2518
|
+
});
|
|
2519
|
+
/**
|
|
2520
|
+
* Get one import run
|
|
2521
|
+
*/
|
|
2522
|
+
const getCrmImport = (options) => (options.client ?? client).get({
|
|
2523
|
+
security: [{
|
|
2524
|
+
name: "x-api-key",
|
|
2525
|
+
type: "apiKey"
|
|
2526
|
+
}, {
|
|
2527
|
+
scheme: "bearer",
|
|
2528
|
+
type: "http"
|
|
2529
|
+
}],
|
|
2530
|
+
url: "/v1/crm/imports/{id}",
|
|
2531
|
+
...options
|
|
2532
|
+
});
|
|
2533
|
+
/**
|
|
2534
|
+
* Check report for an import run (rows, records, lists, notes)
|
|
2535
|
+
*/
|
|
2536
|
+
const checkCrmImport = (options) => (options.client ?? client).get({
|
|
2537
|
+
security: [{
|
|
2538
|
+
name: "x-api-key",
|
|
2539
|
+
type: "apiKey"
|
|
2540
|
+
}, {
|
|
2541
|
+
scheme: "bearer",
|
|
2542
|
+
type: "http"
|
|
2543
|
+
}],
|
|
2544
|
+
url: "/v1/crm/imports/{id}/check",
|
|
2545
|
+
...options
|
|
2546
|
+
});
|
|
2547
|
+
/**
|
|
2548
|
+
* Every row of an import run with its outcome, in file order
|
|
2549
|
+
*/
|
|
2550
|
+
const listCrmImportRows = (options) => (options.client ?? client).get({
|
|
2551
|
+
security: [{
|
|
2552
|
+
name: "x-api-key",
|
|
2553
|
+
type: "apiKey"
|
|
2554
|
+
}, {
|
|
2555
|
+
scheme: "bearer",
|
|
2556
|
+
type: "http"
|
|
2557
|
+
}],
|
|
2558
|
+
url: "/v1/crm/imports/{id}/rows",
|
|
2559
|
+
...options
|
|
2560
|
+
});
|
|
2561
|
+
/**
|
|
2562
|
+
* Undo an import run (removes untouched records it created)
|
|
2563
|
+
*/
|
|
2564
|
+
const undoCrmImport = (options) => (options.client ?? client).post({
|
|
2565
|
+
security: [{
|
|
2566
|
+
name: "x-api-key",
|
|
2567
|
+
type: "apiKey"
|
|
2568
|
+
}, {
|
|
2569
|
+
scheme: "bearer",
|
|
2570
|
+
type: "http"
|
|
2571
|
+
}],
|
|
2572
|
+
url: "/v1/crm/imports/{id}/undo",
|
|
2573
|
+
...options,
|
|
2574
|
+
headers: {
|
|
2575
|
+
"Content-Type": "application/json",
|
|
2576
|
+
...options.headers
|
|
2577
|
+
}
|
|
2578
|
+
});
|
|
2579
|
+
/**
|
|
2490
2580
|
* Bank / Credit Union / Broker / Retail channel per LO (by NMLS)
|
|
2491
2581
|
*/
|
|
2492
2582
|
const crmLenderChannels = (options) => (options?.client ?? client).post({
|
|
@@ -5065,7 +5155,7 @@ const getOriginator = (options) => (options.client ?? client).get({
|
|
|
5065
5155
|
/**
|
|
5066
5156
|
* Real-estate agents this LO co-closed with
|
|
5067
5157
|
*
|
|
5068
|
-
* Ranks the real-estate agents on this LO's loans, by volume — the buyer's agent by default, the listing and co-listing agents with `side: "listing"`. Each loan is credited to the agent its MLS agent keys resolve to (a key naming several different people credits only the confirmed one), so `units` counts distinct loans per agent. `id` is that agent's id (pass it to `GET /v1/agents/{id}`); absent when the loan's key matches no agent profile, in which case `label` is the name the MLS recorded. Names that are an MLS placeholder for "no agent recorded" (`non member`, `non listed agent`, and ~140 board-specific spellings) are excluded — they are not people. Percentages are shares of the LO's whole loan population, so they do not sum to 100 across the page.
|
|
5158
|
+
* Ranks the real-estate agents on this LO's loans, by volume — the buyer's agent by default, the listing and co-listing agents with `side: "listing"`. Each loan is credited to the agent its MLS agent keys resolve to (a key naming several different people credits only the confirmed one), so `units` counts distinct loans per agent. `id` is that agent's id (pass it to `GET /v1/agents/{id}`) and `office` / `contact` its brokerage and email / direct phone; absent when the loan's key matches no agent profile, in which case `label` is the name the MLS recorded. Names that are an MLS placeholder for "no agent recorded" (`non member`, `non listed agent`, and ~140 board-specific spellings) are excluded — they are not people. Percentages are shares of the LO's whole loan population, so they do not sum to 100 across the page.
|
|
5069
5159
|
*/
|
|
5070
5160
|
const originatorAgents = (options) => (options.client ?? client).post({
|
|
5071
5161
|
security: [{
|
|
@@ -5915,4 +6005,4 @@ const getSearchToken = (options) => (options?.client ?? client).get({
|
|
|
5915
6005
|
...options
|
|
5916
6006
|
});
|
|
5917
6007
|
//#endregion
|
|
5918
|
-
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, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, 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, 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, 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, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSearchToken, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmCustomFields, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoans, listMarket, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, 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, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, 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, 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, unshareCrmTemplate, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateMe, updateMyAlertRecipe, updateSavedFilter };
|
|
6008
|
+
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, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, 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, 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, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSearchToken, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoans, listMarket, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, 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, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, 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, 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 };
|
|
@@ -812,6 +812,24 @@ var Agents = class {
|
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
/**
|
|
815
|
+
* List agent office groups
|
|
816
|
+
*
|
|
817
|
+
* The brokerage brand groups this workspace may pass as `officeGroups` / `excludeOfficeGroups` on `listAgents`. Entitlement-gated: a workspace without the entitlement gets an empty list.
|
|
818
|
+
*/
|
|
819
|
+
static listAgentOfficeGroups(options) {
|
|
820
|
+
return (options?.client ?? client).get({
|
|
821
|
+
security: [{
|
|
822
|
+
name: "x-api-key",
|
|
823
|
+
type: "apiKey"
|
|
824
|
+
}, {
|
|
825
|
+
scheme: "bearer",
|
|
826
|
+
type: "http"
|
|
827
|
+
}],
|
|
828
|
+
url: "/v1/agents/office-groups",
|
|
829
|
+
...options
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
815
833
|
* Get agent by ID
|
|
816
834
|
*/
|
|
817
835
|
static get(options) {
|
|
@@ -3468,6 +3486,90 @@ var Crm = class {
|
|
|
3468
3486
|
});
|
|
3469
3487
|
}
|
|
3470
3488
|
/**
|
|
3489
|
+
* List import runs (own + into your lists; all for admins), newest first
|
|
3490
|
+
*/
|
|
3491
|
+
static listCrmImports(options) {
|
|
3492
|
+
return (options?.client ?? client).get({
|
|
3493
|
+
security: [{
|
|
3494
|
+
name: "x-api-key",
|
|
3495
|
+
type: "apiKey"
|
|
3496
|
+
}, {
|
|
3497
|
+
scheme: "bearer",
|
|
3498
|
+
type: "http"
|
|
3499
|
+
}],
|
|
3500
|
+
url: "/v1/crm/imports",
|
|
3501
|
+
...options
|
|
3502
|
+
});
|
|
3503
|
+
}
|
|
3504
|
+
/**
|
|
3505
|
+
* Get one import run
|
|
3506
|
+
*/
|
|
3507
|
+
static getCrmImport(options) {
|
|
3508
|
+
return (options.client ?? client).get({
|
|
3509
|
+
security: [{
|
|
3510
|
+
name: "x-api-key",
|
|
3511
|
+
type: "apiKey"
|
|
3512
|
+
}, {
|
|
3513
|
+
scheme: "bearer",
|
|
3514
|
+
type: "http"
|
|
3515
|
+
}],
|
|
3516
|
+
url: "/v1/crm/imports/{id}",
|
|
3517
|
+
...options
|
|
3518
|
+
});
|
|
3519
|
+
}
|
|
3520
|
+
/**
|
|
3521
|
+
* Check report for an import run (rows, records, lists, notes)
|
|
3522
|
+
*/
|
|
3523
|
+
static checkCrmImport(options) {
|
|
3524
|
+
return (options.client ?? client).get({
|
|
3525
|
+
security: [{
|
|
3526
|
+
name: "x-api-key",
|
|
3527
|
+
type: "apiKey"
|
|
3528
|
+
}, {
|
|
3529
|
+
scheme: "bearer",
|
|
3530
|
+
type: "http"
|
|
3531
|
+
}],
|
|
3532
|
+
url: "/v1/crm/imports/{id}/check",
|
|
3533
|
+
...options
|
|
3534
|
+
});
|
|
3535
|
+
}
|
|
3536
|
+
/**
|
|
3537
|
+
* Every row of an import run with its outcome, in file order
|
|
3538
|
+
*/
|
|
3539
|
+
static listCrmImportRows(options) {
|
|
3540
|
+
return (options.client ?? client).get({
|
|
3541
|
+
security: [{
|
|
3542
|
+
name: "x-api-key",
|
|
3543
|
+
type: "apiKey"
|
|
3544
|
+
}, {
|
|
3545
|
+
scheme: "bearer",
|
|
3546
|
+
type: "http"
|
|
3547
|
+
}],
|
|
3548
|
+
url: "/v1/crm/imports/{id}/rows",
|
|
3549
|
+
...options
|
|
3550
|
+
});
|
|
3551
|
+
}
|
|
3552
|
+
/**
|
|
3553
|
+
* Undo an import run (removes untouched records it created)
|
|
3554
|
+
*/
|
|
3555
|
+
static undoCrmImport(options) {
|
|
3556
|
+
return (options.client ?? client).post({
|
|
3557
|
+
security: [{
|
|
3558
|
+
name: "x-api-key",
|
|
3559
|
+
type: "apiKey"
|
|
3560
|
+
}, {
|
|
3561
|
+
scheme: "bearer",
|
|
3562
|
+
type: "http"
|
|
3563
|
+
}],
|
|
3564
|
+
url: "/v1/crm/imports/{id}/undo",
|
|
3565
|
+
...options,
|
|
3566
|
+
headers: {
|
|
3567
|
+
"Content-Type": "application/json",
|
|
3568
|
+
...options.headers
|
|
3569
|
+
}
|
|
3570
|
+
});
|
|
3571
|
+
}
|
|
3572
|
+
/**
|
|
3471
3573
|
* Bank / Credit Union / Broker / Retail channel per LO (by NMLS)
|
|
3472
3574
|
*/
|
|
3473
3575
|
static crmLenderChannels(options) {
|
|
@@ -6344,7 +6446,7 @@ var Originators = class {
|
|
|
6344
6446
|
/**
|
|
6345
6447
|
* Real-estate agents this LO co-closed with
|
|
6346
6448
|
*
|
|
6347
|
-
* Ranks the real-estate agents on this LO's loans, by volume — the buyer's agent by default, the listing and co-listing agents with `side: "listing"`. Each loan is credited to the agent its MLS agent keys resolve to (a key naming several different people credits only the confirmed one), so `units` counts distinct loans per agent. `id` is that agent's id (pass it to `GET /v1/agents/{id}`); absent when the loan's key matches no agent profile, in which case `label` is the name the MLS recorded. Names that are an MLS placeholder for "no agent recorded" (`non member`, `non listed agent`, and ~140 board-specific spellings) are excluded — they are not people. Percentages are shares of the LO's whole loan population, so they do not sum to 100 across the page.
|
|
6449
|
+
* Ranks the real-estate agents on this LO's loans, by volume — the buyer's agent by default, the listing and co-listing agents with `side: "listing"`. Each loan is credited to the agent its MLS agent keys resolve to (a key naming several different people credits only the confirmed one), so `units` counts distinct loans per agent. `id` is that agent's id (pass it to `GET /v1/agents/{id}`) and `office` / `contact` its brokerage and email / direct phone; absent when the loan's key matches no agent profile, in which case `label` is the name the MLS recorded. Names that are an MLS placeholder for "no agent recorded" (`non member`, `non listed agent`, and ~140 board-specific spellings) are excluded — they are not people. Percentages are shares of the LO's whole loan population, so they do not sum to 100 across the page.
|
|
6348
6450
|
*/
|
|
6349
6451
|
static agents(options) {
|
|
6350
6452
|
return (options.client ?? client).post({
|