@model-match/api 3.46.0 → 3.48.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 +19 -0
- package/dist/{index-D5lJRhPf.d.mts → index-cCkX3-4W.d.mts} +878 -71
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +52 -6
- package/dist/slim/index.mjs +154 -6
- package/dist/{src-B0B4SZ9p.mjs → src-CCp2TVpk.mjs} +170 -4
- package/openapi.json +2347 -372
- 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-CCp2TVpk.mjs";
|
|
2
2
|
//#region src/slim/sdk.gen.ts
|
|
3
3
|
/**
|
|
4
4
|
* Search agents with filters
|
|
@@ -2503,6 +2503,80 @@ const getCrmImportJob = (options) => (options.client ?? client).get({
|
|
|
2503
2503
|
...options
|
|
2504
2504
|
});
|
|
2505
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
|
+
/**
|
|
2506
2580
|
* Bank / Credit Union / Broker / Retail channel per LO (by NMLS)
|
|
2507
2581
|
*/
|
|
2508
2582
|
const crmLenderChannels = (options) => (options?.client ?? client).post({
|
|
@@ -5831,7 +5905,7 @@ const saleRelated = (options) => (options.client ?? client).get({
|
|
|
5831
5905
|
/**
|
|
5832
5906
|
* List your saved filters
|
|
5833
5907
|
*
|
|
5834
|
-
* The caller's saved filters (and saved CRM views) in the active organization, oldest first, optionally narrowed by target and
|
|
5908
|
+
* The caller's saved filters (and saved CRM views) in the active organization plus the ones shared with them, oldest first, optionally narrowed by target, kind and ownership. `isOwner` / `permission` / `canEdit` on each row say whose it is and what the caller may do.
|
|
5835
5909
|
*/
|
|
5836
5910
|
const listSavedFilters = (options) => (options?.client ?? client).get({
|
|
5837
5911
|
security: [{
|
|
@@ -5847,7 +5921,7 @@ const listSavedFilters = (options) => (options?.client ?? client).get({
|
|
|
5847
5921
|
/**
|
|
5848
5922
|
* Save a filter
|
|
5849
5923
|
*
|
|
5850
|
-
* Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. Limit: 25 per target.
|
|
5924
|
+
* Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. New filters are private. Limit: 25 you own per target (filters shared with you do not count).
|
|
5851
5925
|
*/
|
|
5852
5926
|
const createSavedFilter = (options) => (options?.client ?? client).post({
|
|
5853
5927
|
security: [{
|
|
@@ -5866,6 +5940,8 @@ const createSavedFilter = (options) => (options?.client ?? client).post({
|
|
|
5866
5940
|
});
|
|
5867
5941
|
/**
|
|
5868
5942
|
* Delete a saved filter
|
|
5943
|
+
*
|
|
5944
|
+
* Owner or workspace admin only; its shares go with it. A filter shared with you cannot be deleted by you.
|
|
5869
5945
|
*/
|
|
5870
5946
|
const deleteSavedFilter = (options) => (options.client ?? client).delete({
|
|
5871
5947
|
security: [{
|
|
@@ -5881,7 +5957,7 @@ const deleteSavedFilter = (options) => (options.client ?? client).delete({
|
|
|
5881
5957
|
/**
|
|
5882
5958
|
* Get a saved filter (with the operation to run it)
|
|
5883
5959
|
*
|
|
5884
|
-
* Returns the saved `query` and the `operationId` to run it with. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.
|
|
5960
|
+
* Returns the saved `query` and the `operationId` to run it with — your own filter or one shared with you. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.
|
|
5885
5961
|
*/
|
|
5886
5962
|
const getSavedFilter = (options) => (options.client ?? client).get({
|
|
5887
5963
|
security: [{
|
|
@@ -5897,7 +5973,7 @@ const getSavedFilter = (options) => (options.client ?? client).get({
|
|
|
5897
5973
|
/**
|
|
5898
5974
|
* Update a saved filter
|
|
5899
5975
|
*
|
|
5900
|
-
* Rename, re-icon, or replace the query / UI state. The target is fixed. A new `query` is validated like on create.
|
|
5976
|
+
* Rename, re-icon, or replace the query / UI state (owner, `editor`, or workspace admin). The target is fixed. A new `query` is validated like on create. `visibility` / `orgWidePermission` change who can see it (owner or workspace admin only).
|
|
5901
5977
|
*/
|
|
5902
5978
|
const updateSavedFilter = (options) => (options.client ?? client).patch({
|
|
5903
5979
|
security: [{
|
|
@@ -5915,6 +5991,78 @@ const updateSavedFilter = (options) => (options.client ?? client).patch({
|
|
|
5915
5991
|
}
|
|
5916
5992
|
});
|
|
5917
5993
|
/**
|
|
5994
|
+
* List the workspace members a saved filter can be shared with
|
|
5995
|
+
*
|
|
5996
|
+
* Owner or workspace admin only. Every member of the workspace, the owner and existing shares included — subtract them for the picker.
|
|
5997
|
+
*/
|
|
5998
|
+
const listSavedFilterShareableMembers = (options) => (options.client ?? client).get({
|
|
5999
|
+
security: [{
|
|
6000
|
+
name: "x-api-key",
|
|
6001
|
+
type: "apiKey"
|
|
6002
|
+
}, {
|
|
6003
|
+
scheme: "bearer",
|
|
6004
|
+
type: "http"
|
|
6005
|
+
}],
|
|
6006
|
+
url: "/v1/saved-filters/{id}/shareable-members",
|
|
6007
|
+
...options
|
|
6008
|
+
});
|
|
6009
|
+
/**
|
|
6010
|
+
* Stop sharing a saved filter with a member
|
|
6011
|
+
*
|
|
6012
|
+
* Owner or workspace admin only. Removes that member's share; a no-op (`revoked: false`) when there was none.
|
|
6013
|
+
*/
|
|
6014
|
+
const revokeSavedFilterAccess = (options) => (options.client ?? client).delete({
|
|
6015
|
+
security: [{
|
|
6016
|
+
name: "x-api-key",
|
|
6017
|
+
type: "apiKey"
|
|
6018
|
+
}, {
|
|
6019
|
+
scheme: "bearer",
|
|
6020
|
+
type: "http"
|
|
6021
|
+
}],
|
|
6022
|
+
url: "/v1/saved-filters/{id}/shares",
|
|
6023
|
+
...options,
|
|
6024
|
+
headers: {
|
|
6025
|
+
"Content-Type": "application/json",
|
|
6026
|
+
...options.headers
|
|
6027
|
+
}
|
|
6028
|
+
});
|
|
6029
|
+
/**
|
|
6030
|
+
* Get who a saved filter is shared with
|
|
6031
|
+
*
|
|
6032
|
+
* Visibility, owner, the workspace-wide role and every per-user share. Readable by the owner, an `editor`, or a workspace admin.
|
|
6033
|
+
*/
|
|
6034
|
+
const getSavedFilterShares = (options) => (options.client ?? client).get({
|
|
6035
|
+
security: [{
|
|
6036
|
+
name: "x-api-key",
|
|
6037
|
+
type: "apiKey"
|
|
6038
|
+
}, {
|
|
6039
|
+
scheme: "bearer",
|
|
6040
|
+
type: "http"
|
|
6041
|
+
}],
|
|
6042
|
+
url: "/v1/saved-filters/{id}/shares",
|
|
6043
|
+
...options
|
|
6044
|
+
});
|
|
6045
|
+
/**
|
|
6046
|
+
* Share a saved filter with a workspace member
|
|
6047
|
+
*
|
|
6048
|
+
* Owner or workspace admin only. Re-sharing updates the member's role. Sharing a private filter makes it `shared`. Sharing with the owner is a no-op (`granted: false`).
|
|
6049
|
+
*/
|
|
6050
|
+
const grantSavedFilterAccess = (options) => (options.client ?? client).post({
|
|
6051
|
+
security: [{
|
|
6052
|
+
name: "x-api-key",
|
|
6053
|
+
type: "apiKey"
|
|
6054
|
+
}, {
|
|
6055
|
+
scheme: "bearer",
|
|
6056
|
+
type: "http"
|
|
6057
|
+
}],
|
|
6058
|
+
url: "/v1/saved-filters/{id}/shares",
|
|
6059
|
+
...options,
|
|
6060
|
+
headers: {
|
|
6061
|
+
"Content-Type": "application/json",
|
|
6062
|
+
...options.headers
|
|
6063
|
+
}
|
|
6064
|
+
});
|
|
6065
|
+
/**
|
|
5918
6066
|
* Mint a scoped search token
|
|
5919
6067
|
*
|
|
5920
6068
|
* Returns a short-lived scoped search token plus the host to query, so a trusted client can search the entity indexes directly with per-query controls (e.g. attributesToSearchOn for name-only matching).
|
|
@@ -5931,4 +6079,4 @@ const getSearchToken = (options) => (options?.client ?? client).get({
|
|
|
5931
6079
|
...options
|
|
5932
6080
|
});
|
|
5933
6081
|
//#endregion
|
|
5934
|
-
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, listAgentOfficeGroups, 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 };
|
|
6082
|
+
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, 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, 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, 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, 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, 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 };
|
|
@@ -3486,6 +3486,90 @@ var Crm = class {
|
|
|
3486
3486
|
});
|
|
3487
3487
|
}
|
|
3488
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
|
+
/**
|
|
3489
3573
|
* Bank / Credit Union / Broker / Retail channel per LO (by NMLS)
|
|
3490
3574
|
*/
|
|
3491
3575
|
static crmLenderChannels(options) {
|
|
@@ -7166,7 +7250,7 @@ var SavedFilters = class {
|
|
|
7166
7250
|
/**
|
|
7167
7251
|
* List your saved filters
|
|
7168
7252
|
*
|
|
7169
|
-
* The caller's saved filters (and saved CRM views) in the active organization, oldest first, optionally narrowed by target and
|
|
7253
|
+
* The caller's saved filters (and saved CRM views) in the active organization plus the ones shared with them, oldest first, optionally narrowed by target, kind and ownership. `isOwner` / `permission` / `canEdit` on each row say whose it is and what the caller may do.
|
|
7170
7254
|
*/
|
|
7171
7255
|
static listSavedFilters(options) {
|
|
7172
7256
|
return (options?.client ?? client).get({
|
|
@@ -7184,7 +7268,7 @@ var SavedFilters = class {
|
|
|
7184
7268
|
/**
|
|
7185
7269
|
* Save a filter
|
|
7186
7270
|
*
|
|
7187
|
-
* Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. Limit: 25 per target.
|
|
7271
|
+
* Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. New filters are private. Limit: 25 you own per target (filters shared with you do not count).
|
|
7188
7272
|
*/
|
|
7189
7273
|
static createSavedFilter(options) {
|
|
7190
7274
|
return (options?.client ?? client).post({
|
|
@@ -7205,6 +7289,8 @@ var SavedFilters = class {
|
|
|
7205
7289
|
}
|
|
7206
7290
|
/**
|
|
7207
7291
|
* Delete a saved filter
|
|
7292
|
+
*
|
|
7293
|
+
* Owner or workspace admin only; its shares go with it. A filter shared with you cannot be deleted by you.
|
|
7208
7294
|
*/
|
|
7209
7295
|
static deleteSavedFilter(options) {
|
|
7210
7296
|
return (options.client ?? client).delete({
|
|
@@ -7222,7 +7308,7 @@ var SavedFilters = class {
|
|
|
7222
7308
|
/**
|
|
7223
7309
|
* Get a saved filter (with the operation to run it)
|
|
7224
7310
|
*
|
|
7225
|
-
* Returns the saved `query` and the `operationId` to run it with. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.
|
|
7311
|
+
* Returns the saved `query` and the `operationId` to run it with — your own filter or one shared with you. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.
|
|
7226
7312
|
*/
|
|
7227
7313
|
static getSavedFilter(options) {
|
|
7228
7314
|
return (options.client ?? client).get({
|
|
@@ -7240,7 +7326,7 @@ var SavedFilters = class {
|
|
|
7240
7326
|
/**
|
|
7241
7327
|
* Update a saved filter
|
|
7242
7328
|
*
|
|
7243
|
-
* Rename, re-icon, or replace the query / UI state. The target is fixed. A new `query` is validated like on create.
|
|
7329
|
+
* Rename, re-icon, or replace the query / UI state (owner, `editor`, or workspace admin). The target is fixed. A new `query` is validated like on create. `visibility` / `orgWidePermission` change who can see it (owner or workspace admin only).
|
|
7244
7330
|
*/
|
|
7245
7331
|
static updateSavedFilter(options) {
|
|
7246
7332
|
return (options.client ?? client).patch({
|
|
@@ -7259,6 +7345,86 @@ var SavedFilters = class {
|
|
|
7259
7345
|
}
|
|
7260
7346
|
});
|
|
7261
7347
|
}
|
|
7348
|
+
/**
|
|
7349
|
+
* List the workspace members a saved filter can be shared with
|
|
7350
|
+
*
|
|
7351
|
+
* Owner or workspace admin only. Every member of the workspace, the owner and existing shares included — subtract them for the picker.
|
|
7352
|
+
*/
|
|
7353
|
+
static listSavedFilterShareableMembers(options) {
|
|
7354
|
+
return (options.client ?? client).get({
|
|
7355
|
+
security: [{
|
|
7356
|
+
name: "x-api-key",
|
|
7357
|
+
type: "apiKey"
|
|
7358
|
+
}, {
|
|
7359
|
+
scheme: "bearer",
|
|
7360
|
+
type: "http"
|
|
7361
|
+
}],
|
|
7362
|
+
url: "/v1/saved-filters/{id}/shareable-members",
|
|
7363
|
+
...options
|
|
7364
|
+
});
|
|
7365
|
+
}
|
|
7366
|
+
/**
|
|
7367
|
+
* Stop sharing a saved filter with a member
|
|
7368
|
+
*
|
|
7369
|
+
* Owner or workspace admin only. Removes that member's share; a no-op (`revoked: false`) when there was none.
|
|
7370
|
+
*/
|
|
7371
|
+
static revokeSavedFilterAccess(options) {
|
|
7372
|
+
return (options.client ?? client).delete({
|
|
7373
|
+
security: [{
|
|
7374
|
+
name: "x-api-key",
|
|
7375
|
+
type: "apiKey"
|
|
7376
|
+
}, {
|
|
7377
|
+
scheme: "bearer",
|
|
7378
|
+
type: "http"
|
|
7379
|
+
}],
|
|
7380
|
+
url: "/v1/saved-filters/{id}/shares",
|
|
7381
|
+
...options,
|
|
7382
|
+
headers: {
|
|
7383
|
+
"Content-Type": "application/json",
|
|
7384
|
+
...options.headers
|
|
7385
|
+
}
|
|
7386
|
+
});
|
|
7387
|
+
}
|
|
7388
|
+
/**
|
|
7389
|
+
* Get who a saved filter is shared with
|
|
7390
|
+
*
|
|
7391
|
+
* Visibility, owner, the workspace-wide role and every per-user share. Readable by the owner, an `editor`, or a workspace admin.
|
|
7392
|
+
*/
|
|
7393
|
+
static getSavedFilterShares(options) {
|
|
7394
|
+
return (options.client ?? client).get({
|
|
7395
|
+
security: [{
|
|
7396
|
+
name: "x-api-key",
|
|
7397
|
+
type: "apiKey"
|
|
7398
|
+
}, {
|
|
7399
|
+
scheme: "bearer",
|
|
7400
|
+
type: "http"
|
|
7401
|
+
}],
|
|
7402
|
+
url: "/v1/saved-filters/{id}/shares",
|
|
7403
|
+
...options
|
|
7404
|
+
});
|
|
7405
|
+
}
|
|
7406
|
+
/**
|
|
7407
|
+
* Share a saved filter with a workspace member
|
|
7408
|
+
*
|
|
7409
|
+
* Owner or workspace admin only. Re-sharing updates the member's role. Sharing a private filter makes it `shared`. Sharing with the owner is a no-op (`granted: false`).
|
|
7410
|
+
*/
|
|
7411
|
+
static grantSavedFilterAccess(options) {
|
|
7412
|
+
return (options.client ?? client).post({
|
|
7413
|
+
security: [{
|
|
7414
|
+
name: "x-api-key",
|
|
7415
|
+
type: "apiKey"
|
|
7416
|
+
}, {
|
|
7417
|
+
scheme: "bearer",
|
|
7418
|
+
type: "http"
|
|
7419
|
+
}],
|
|
7420
|
+
url: "/v1/saved-filters/{id}/shares",
|
|
7421
|
+
...options,
|
|
7422
|
+
headers: {
|
|
7423
|
+
"Content-Type": "application/json",
|
|
7424
|
+
...options.headers
|
|
7425
|
+
}
|
|
7426
|
+
});
|
|
7427
|
+
}
|
|
7262
7428
|
};
|
|
7263
7429
|
//#endregion
|
|
7264
7430
|
//#region src/index.ts
|