@model-match/api 3.33.0 → 3.35.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.
@@ -1660,7 +1660,7 @@ type AgentSaleSummary = {
1660
1660
  */
1661
1661
  coListAgentId?: string;
1662
1662
  /**
1663
- * Co-listing agent, as the MLS recorded the name
1663
+ * Co-listing agent's name — the agent record's (lowercase) when `coListAgentId` resolved from the MLS keys, else as the MLS recorded it; lowercase
1664
1664
  */
1665
1665
  coListAgentName?: string;
1666
1666
  date?: string;
@@ -7671,7 +7671,6 @@ type LoanDetail = LoanSummary & {
7671
7671
  estimatedPayment?: number;
7672
7672
  homeValue?: number;
7673
7673
  listAgent?: unknown;
7674
- loanTermMonths?: number;
7675
7674
  ltv?: number;
7676
7675
  mmSaleId?: string;
7677
7676
  propertyUseCode?: string;
@@ -7687,10 +7686,22 @@ type LoanListRequest = {
7687
7686
  advancedFilters?: FilterNode;
7688
7687
  filters?: FilterNode;
7689
7688
  flatFilters?: {
7689
+ /**
7690
+ * Loans crediting this agent (`GET /v1/agents/{id}`) — the rows' `*AgentId`; see `agentRole`. ≤ 10,000 candidate loans in scope (else 400).
7691
+ */
7692
+ agentId?: string;
7693
+ /**
7694
+ * `agentId`'s role: `sold`, `list`, `coList`, `listing` (list or co-list), `any` (default).
7695
+ */
7696
+ agentRole?: 'any' | 'sold' | 'list' | 'coList' | 'listing';
7690
7697
  borrowerStatus?: LoanBorrowerStatusFilterValue;
7691
7698
  broker?: TextFilterValue & unknown;
7692
7699
  buyerEntityType?: BooleanFilterValue;
7693
7700
  city?: TextFilterValue;
7701
+ /**
7702
+ * Co-listing agent name.
7703
+ */
7704
+ coListAgentName?: string;
7694
7705
  conforming?: BooleanFilterValue;
7695
7706
  county?: TextFilterValue & unknown;
7696
7707
  currentBalance?: NumericFilterValue & unknown;
@@ -7705,11 +7716,23 @@ type LoanListRequest = {
7705
7716
  excludeZipCode?: TextFilterValue & unknown;
7706
7717
  fips?: TextFilterValue & unknown;
7707
7718
  geoPoint?: GeoFilterValue;
7719
+ /**
7720
+ * Roles that must have an agent: `sold` (buyer's), `list`, `coList`; `any` = at least one.
7721
+ */
7722
+ hasAgent?: Array<'any' | 'sold' | 'list' | 'coList'>;
7723
+ /**
7724
+ * `true`: loans on a new-construction property — one with a sale that names a builder. `false`: the rest. Needs a scope of ≤ 50,000 loans (else 400).
7725
+ */
7726
+ hasBuilder?: boolean;
7708
7727
  homeValue?: NumericFilterValue & unknown;
7709
7728
  includeUnknownOriginator?: BooleanFilterValue & unknown;
7710
7729
  interestRate?: NumericFilterValue;
7711
7730
  lender?: TextFilterValue & unknown;
7712
7731
  lenderName?: TextFilterValue & unknown;
7732
+ /**
7733
+ * Listing agent name.
7734
+ */
7735
+ listAgentName?: string;
7713
7736
  loanCompany?: TextFilterValue & unknown;
7714
7737
  loanType?: LoanTypeFilterValue;
7715
7738
  ltvAtOrigination?: NumericFilterValue & unknown;
@@ -7721,6 +7744,14 @@ type LoanListRequest = {
7721
7744
  propertyId?: TextFilterValue & unknown;
7722
7745
  saleDate?: DateFilterValue;
7723
7746
  salePrice?: NumericFilterValue;
7747
+ /**
7748
+ * Every word starts a word of the address (street, city, state, ZIP), the lender name or an agent name ("12 oak", "jane sm").
7749
+ */
7750
+ search?: string;
7751
+ /**
7752
+ * Buyer's agent: every word starts a word of the MLS name or the linked agent's name. Likewise `listAgentName`, `coListAgentName`.
7753
+ */
7754
+ soldAgentName?: string;
7724
7755
  state?: TextFilterValue;
7725
7756
  transactionType?: LoanTransactionTypeFilterValue;
7726
7757
  zip?: TextFilterValue & unknown;
@@ -7729,7 +7760,7 @@ type LoanListRequest = {
7729
7760
  pagination?: Pagination;
7730
7761
  period?: DatedPeriod;
7731
7762
  sort?: Array<{
7732
- field: 'city' | 'state' | 'zipCode' | 'county' | 'transactionType' | 'loanType' | 'conforming' | 'mortgageAmount' | 'mortgageDate' | 'broker' | 'loanCompany' | 'lender' | 'borrowerStatus' | 'salePrice' | 'saleDate' | 'originator' | 'originatorName' | 'interestRate' | 'equity' | 'homeValue' | 'ltvAtOrigination' | 'currentBalance';
7763
+ field: 'city' | 'state' | 'zipCode' | 'county' | 'transactionType' | 'loanType' | 'conforming' | 'mortgageAmount' | 'mortgageDate' | 'broker' | 'loanCompany' | 'lender' | 'borrowerStatus' | 'salePrice' | 'saleDate' | 'originator' | 'originatorName' | 'interestRate' | 'equity' | 'homeValue' | 'ltvAtOrigination' | 'currentBalance' | 'streetAddress' | 'listPrice' | 'employerName' | 'brokerName' | 'soldAgentName' | 'listAgentName' | 'coListAgentName';
7733
7764
  order?: SortOrder;
7734
7765
  }>;
7735
7766
  };
@@ -7745,6 +7776,10 @@ type LoanListResponse = {
7745
7776
  */
7746
7777
  locationNormalizations?: Array<LocationNormalization>;
7747
7778
  total: number;
7779
+ /**
7780
+ * Row sorts only: more than 10,000 loans matched; the newest 10,000 were sorted and `total` counts them.
7781
+ */
7782
+ truncated?: boolean;
7748
7783
  };
7749
7784
  /**
7750
7785
  * Dimension to group by. Most are the loan's own field (`loanType`, `transactionType`, `state`, …). `lender` groups on the normalized lender (label = display name, `id` = filter key). `propertyType` is the recorder's land-use code of the collateral (`SFR` single-family, `PUD` planned unit development, `CND` condo, `RES` residential-other, `MFD` multi-family dwelling, `2ND` second home, `MFG` manufactured, `TWN` townhouse, `LAN` land, `COM` commercial, …); loans with no code are not grouped (≈20% of recent loans). `conforming` splits on the conforming-loan-limit flag: `conforming` vs `nonConforming` (above the county conforming limit — i.e. jumbo, not Non-QM), raw `true`/`false` on `id`. Time-series only: `titleCompany` groups on the title company named on the deed, with spellings of one company merged per bucket (`label` = most-used spelling across the response, `id` = normalized name — match on `id`) and "none available"-style placeholders excluded.
@@ -7763,6 +7798,10 @@ type LoanSummary = {
7763
7798
  */
7764
7799
  brokerName?: string;
7765
7800
  brokerNmlsId?: string;
7801
+ /**
7802
+ * Builder named on a sale of this property (new construction); the `hasBuilder` predicate.
7803
+ */
7804
+ builderName?: string;
7766
7805
  /**
7767
7806
  * First buyer's first + middle name (an entity's whole name, with no last).
7768
7807
  */
@@ -7781,7 +7820,11 @@ type LoanSummary = {
7781
7820
  buyer2Last?: string;
7782
7821
  city?: string;
7783
7822
  /**
7784
- * Co-listing agent, as the MLS recorded the name.
7823
+ * Co-listing agent id, same rule.
7824
+ */
7825
+ coListAgentId?: string;
7826
+ /**
7827
+ * Co-listing agent: the agent record's name when the MLS keys resolve to one agent, else as the MLS recorded it.
7785
7828
  */
7786
7829
  coListAgentName?: string;
7787
7830
  companyName?: string;
@@ -7802,12 +7845,21 @@ type LoanSummary = {
7802
7845
  fips?: string;
7803
7846
  id: string;
7804
7847
  interestRate?: number;
7848
+ /**
7849
+ * Normalized lender id — the value the `lender` filter takes.
7850
+ */
7851
+ lenderId?: string;
7805
7852
  lenderName?: string;
7806
7853
  /**
7807
- * Listing agent, as the MLS recorded the name.
7854
+ * Listing agent id, same rule.
7855
+ */
7856
+ listAgentId?: string;
7857
+ /**
7858
+ * Listing agent: the agent record's name when the MLS keys resolve to one agent, else as the MLS recorded it.
7808
7859
  */
7809
7860
  listAgentName?: string;
7810
7861
  listPrice?: number;
7862
+ loanTermMonths?: number;
7811
7863
  loanType?: string;
7812
7864
  mmPropertyId?: string;
7813
7865
  mortgageAmount?: number;
@@ -7838,7 +7890,11 @@ type LoanSummary = {
7838
7890
  seller2Last?: string;
7839
7891
  sellerName?: string;
7840
7892
  /**
7841
- * Buyer's agent, as the MLS recorded the name.
7893
+ * Buyer's agent id (`GET /v1/agents/{id}`) when the MLS keys resolve to one agent.
7894
+ */
7895
+ soldAgentId?: string;
7896
+ /**
7897
+ * Buyer's agent: the agent record's name when the loan's MLS agent keys resolve to one agent, else as the MLS recorded it; lowercase.
7842
7898
  */
7843
7899
  soldAgentName?: string;
7844
7900
  state?: string;
@@ -25520,7 +25576,7 @@ declare class Agents {
25520
25576
  static properties<ThrowOnError extends boolean = false>(options: Options$1<AgentPropertiesData, ThrowOnError>): _$_hey_api_client_fetch0.RequestResult<AgentPropertiesResponse, AgentPropertiesError, ThrowOnError>;
25521
25577
  /**
25522
25578
  * Sales transactions where this agent was listing or selling side
25523
- * The agent's deals, newest first: every sale on which the agent is the buyer's agent or the listing / co-listing agent. `side` narrows to one half (`buyer` includes deals where the agent was on both sides; `listing` excludes them). Each row says which `side` the agent was on and carries the sale's recorded purchase `loan` — lender, loan officer, loan type, amount, title company — or `null` for a cash deal or a loan not yet on file. Pass `flatFilters.mlsStatus: "SLD"` for closed deals only. `dealFilters` adds an address `search`, the co-listing agent, builder / status-date filters and loan-side filters (`financed`, `loan.*` on the purchase loan). Sorts: the `/v1/sales` names plus `listDate`, `builder`, `coListAgent`, and the loan / party columns `loanAmount`, `loanType`, `loanTransactionType`, `interestRate`, `lenderName`, `originatorName`, `companyName`, `brokerName`, `titleCompany`, `buyerName`, `sellerName`, `downPayment` (one at a time; blanks last).
25579
+ * The agent's deals, newest first: every sale on which the agent is the buyer's agent or the listing / co-listing agent. `side` narrows to one half (`buyer` includes deals where the agent was on both sides; `listing` excludes them). Each row says which `side` the agent was on and carries the sale's recorded purchase `loan` — lender, loan officer, loan type, amount, title company — or `null` for a cash deal or a loan not yet on file. Pass `flatFilters.mlsStatus: "SLD"` for closed deals only. `dealFilters` adds an address `search`, the co-listing agent, builder / status-date filters and loan-side filters (`financed`, `loan.*` on the purchase loan). Sorts: the `/v1/sales` names plus `listDate`, `builder`, `coListAgent`, and the loan / party columns `loanAmount`, `loanType`, `loanTransactionType`, `interestRate`, `lenderName`, `originatorName`, `companyName`, `brokerName`, `titleCompany`, `buyerName`, `sellerName`, `downPayment` (one at a time; blanks last). `listingAgent` / `soldAgent` / `coListAgent` order by the name the row shows.
25524
25580
  */
25525
25581
  static sales<ThrowOnError extends boolean = false>(options: Options$1<AgentSalesData, ThrowOnError>): _$_hey_api_client_fetch0.RequestResult<AgentSalesResponse, AgentSalesError, ThrowOnError>;
25526
25582
  }