@matech/thebigpos-sdk 3.7.0 → 3.8.0-dev-3594

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export type VersionStatusType = "Draft" | "Published";
2
2
  export type UserRole = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
3
+ export type TaskType = "Document" | "Field" | "Signature" | "EDisclosure" | "EConsent" | "VerificationOfAssets" | "VerificationOfIncome" | "VerificationOfEmployment" | "VerificationOfCredit" | "Payment" | "VerificationOfIncomeAndEmployment" | "VerificationOfTaxes";
3
4
  export type TaskStatus = "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
4
5
  export type TableKey = "Pipeline";
5
6
  export type SortDirection = "Asc" | "Desc";
@@ -19,6 +20,7 @@ export type LoanType = "Fha" | "Conventional" | "UsdaRd" | "Va" | "Other";
19
20
  export type LoanTrustType = "Living" | "Land" | "Testamentary" | "Other";
20
21
  export type LoanTitleHeld = "Sole" | "JointWithSpouse" | "JointWithOtherThanSpouse";
21
22
  export type LoanTaskActivityFilter = "Active" | "Inactive" | "All";
23
+ export type LoanRoleTaskSource = "Rule" | "Manual";
22
24
  export type LoanRole = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
23
25
  export type LoanRefinancePurpose = "CashOutDebtConsolidation" | "CashOutHomeImprovement" | "CashOutOther" | "NoCashOut" | "LimitedCashOut";
24
26
  export type LoanRealEstateStatus = "Keep" | "Rent" | "Sell" | "PendingSale";
@@ -39,7 +41,7 @@ export type LoanNameSuffix = "Jr" | "Sr" | "II" | "III" | "IV" | "V" | "VI" | "V
39
41
  export type LoanNamePrefix = "Mr" | "Mrs" | "Ms";
40
42
  export type LoanMilitaryServiceType = "Current" | "RetiredDischargedSeparated" | "NonActivatedNationalGuard" | "SurvivingSpouse";
41
43
  export type LoanMaritalStatus = "Married" | "Separated" | "Single";
42
- export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed" | "LosFieldWriteBack" | "ReferrerChangeDiscarded";
44
+ export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed" | "LosFieldWriteBack" | "ReferrerChangeDiscarded" | "TaskEdited";
43
45
  export type LoanLienPosition = "First" | "Subordinate";
44
46
  export type LoanLiabilityType = "Revolving" | "Installment" | "Open30Day" | "Lease" | "Other";
45
47
  export type LoanLanguagePreference = "English" | "Chinese" | "Korean" | "Spanish" | "Tagalog" | "Vietnamese" | "Other" | "DoNotWishToRespond";
@@ -98,7 +100,7 @@ export type AiPromptScope = "General" | "LoanSpecific";
98
100
  export type AiPromptCategory = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
99
101
  export type AiGuardrailCategory = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
100
102
  export type AiDisplayHint = "Table" | "SummaryCards" | "RankedList" | "Comparison" | "ExecutiveBrief";
101
- export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied" | "AgentModelCall" | "AgentToolCallRequested" | "AgentToolCallCompleted" | "AgentToolCallFailed" | "AgentLoopLimitReached" | "RequestCancelled" | "KnowledgeBaseRetrieved" | "PromptResolutionFailed" | "PromptTriggerPublished" | "PromptTriggerSkipped" | "PromptRunCompleted" | "LoanUpdateProposed" | "LoanUpdateApplied" | "LoanUpdateRefused" | "PromptTriggerCoalesced";
103
+ export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied" | "AgentModelCall" | "AgentToolCallRequested" | "AgentToolCallCompleted" | "AgentToolCallFailed" | "AgentLoopLimitReached" | "RequestCancelled" | "KnowledgeBaseRetrieved" | "PromptResolutionFailed" | "PromptTriggerPublished" | "PromptTriggerSkipped" | "PromptRunCompleted" | "LoanUpdateProposed" | "LoanUpdateApplied" | "LoanUpdateRefused" | "PromptTriggerCoalesced" | "RecommendationRunCompleted";
102
104
  export type AddressFamily = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
103
105
  export interface ASOSettings {
104
106
  enabled: boolean;
@@ -1421,6 +1423,15 @@ export interface CreateLoanImportRequest {
1421
1423
  startDate: string;
1422
1424
  importMode: CreateLoanImportRequestImportModeEnum;
1423
1425
  }
1426
+ export interface CreateLoanRoleTaskRequest {
1427
+ /** @format uuid */
1428
+ taskId: string;
1429
+ role: CreateLoanRoleTaskRequestRoleEnum;
1430
+ /** @format int32 */
1431
+ borrowerPair: number;
1432
+ /** @format int32 */
1433
+ borrowerPosition: number;
1434
+ }
1424
1435
  export interface CreateSession {
1425
1436
  sessionId: string;
1426
1437
  sessionUrl: string;
@@ -1834,6 +1845,7 @@ export interface EnabledServices {
1834
1845
  ringCentral?: boolean | null;
1835
1846
  socialSurvey?: boolean | null;
1836
1847
  borrowerTasks?: boolean | null;
1848
+ preBorrowerTasks?: boolean | null;
1837
1849
  docusign?: boolean | null;
1838
1850
  emailNotifications?: boolean | null;
1839
1851
  autoTaskReminders?: boolean | null;
@@ -2072,8 +2084,6 @@ export interface File {
2072
2084
  fileName: string;
2073
2085
  name: string;
2074
2086
  s3FilePath: string;
2075
- user?: User | null;
2076
- account?: Account | null;
2077
2087
  url: string;
2078
2088
  }
2079
2089
  export interface FilePaginated {
@@ -2457,7 +2467,6 @@ export interface Invite {
2457
2467
  /** @format date-time */
2458
2468
  expiresAt?: string | null;
2459
2469
  status: string;
2460
- invitedBy?: User | null;
2461
2470
  loan: LoanIdentifier;
2462
2471
  url: string;
2463
2472
  }
@@ -3502,7 +3511,7 @@ export interface LoanDocument {
3502
3511
  /** @format uuid */
3503
3512
  id: string;
3504
3513
  name: string;
3505
- loan: Loan;
3514
+ loan: LoanIdentifier;
3506
3515
  user?: UserSummary | null;
3507
3516
  /** @deprecated */
3508
3517
  initialBucket?: string | null;
@@ -3664,6 +3673,7 @@ export interface LoanFinancialRequest {
3664
3673
  cashToClose?: number | null;
3665
3674
  /** @format double */
3666
3675
  cashDownPayment?: number | null;
3676
+ downPaymentPercent?: string | null;
3667
3677
  /** @format double */
3668
3678
  maximumPurchasePrice?: number | null;
3669
3679
  isDownPaymentGift?: boolean | null;
@@ -4066,6 +4076,24 @@ export interface LoanQueueWithData {
4066
4076
  siteConfiguration: SiteConfigurationReduced;
4067
4077
  data?: any | null;
4068
4078
  }
4079
+ export interface LoanRecommendation {
4080
+ /** @format uuid */
4081
+ id: string;
4082
+ canonicalName: string;
4083
+ displayName: string;
4084
+ extractedValue: string;
4085
+ currentLoanValue?: any | null;
4086
+ /** @format uuid */
4087
+ sourceDocumentId: string;
4088
+ sourceDocumentName?: string | null;
4089
+ /** @format float */
4090
+ confidence: number;
4091
+ /** @format uuid */
4092
+ borrowerId?: string | null;
4093
+ borrowerName?: string | null;
4094
+ /** @format date-time */
4095
+ detectedAt: string;
4096
+ }
4069
4097
  export interface LoanRecord {
4070
4098
  loanGuid: string;
4071
4099
  loanFields: Record<string, string>;
@@ -4114,6 +4142,52 @@ export interface LoanRefinanceRequest {
4114
4142
  purpose?: LoanRefinancePurpose | null;
4115
4143
  currentLoan?: LoanRefinanceCurrentLoanRequest | null;
4116
4144
  }
4145
+ export interface LoanRoleSlotTasks {
4146
+ role: LoanRoleSlotTasksRoleEnum;
4147
+ /** @format int32 */
4148
+ borrowerPair: number;
4149
+ /** @format int32 */
4150
+ borrowerPosition: number;
4151
+ tasks: LoanRoleTask[];
4152
+ }
4153
+ export interface LoanRoleTask {
4154
+ /** @format uuid */
4155
+ id: string;
4156
+ /** @format uuid */
4157
+ loanId: string;
4158
+ role: LoanRoleTaskRoleEnum;
4159
+ /** @format int32 */
4160
+ borrowerPair: number;
4161
+ /** @format int32 */
4162
+ borrowerPosition: number;
4163
+ /** @format uuid */
4164
+ definitionTaskId: string;
4165
+ /** @format uuid */
4166
+ taskId: string;
4167
+ name: string;
4168
+ description?: string | null;
4169
+ type: LoanRoleTaskTypeEnum;
4170
+ losTarget?: string | null;
4171
+ /** @format int32 */
4172
+ daysDueFromApplication?: number | null;
4173
+ /** @format int32 */
4174
+ weight: number;
4175
+ willAutocompleteAfterResponse: boolean;
4176
+ /** @format uuid */
4177
+ loanDocumentFolderId?: string | null;
4178
+ /** @format date */
4179
+ dueDate?: string | null;
4180
+ source: LoanRoleTaskSourceEnum;
4181
+ isAttached: boolean;
4182
+ /** @format uuid */
4183
+ attachedUserLoanTaskId?: string | null;
4184
+ /** @format date-time */
4185
+ attachedAt?: string | null;
4186
+ /** @format uuid */
4187
+ createdById?: string | null;
4188
+ /** @format date-time */
4189
+ createdAt: string;
4190
+ }
4117
4191
  export interface LoanSearchCriteria {
4118
4192
  searchText?: string | null;
4119
4193
  searchTerms?: string[] | null;
@@ -4142,6 +4216,7 @@ export interface LoanSearchCriteria {
4142
4216
  closingFrom?: string | null;
4143
4217
  /** @format date */
4144
4218
  closingTo?: string | null;
4219
+ milestoneConfigurationIds?: string[] | null;
4145
4220
  }
4146
4221
  export interface LoanSettings {
4147
4222
  excludeFromAutoTaskReminders: boolean;
@@ -4446,6 +4521,10 @@ export interface LosWebhookSigningKeySyncResult {
4446
4521
  export interface ManualDocumentClassificationRequest {
4447
4522
  documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
4448
4523
  }
4524
+ export interface MaterializeLoanRoleTasks {
4525
+ /** @format int32 */
4526
+ rowsAdded: number;
4527
+ }
4449
4528
  export interface MdmUser {
4450
4529
  user_email?: string | null;
4451
4530
  user_id?: string | null;
@@ -5798,6 +5877,8 @@ export interface Task {
5798
5877
  isGlobal: boolean;
5799
5878
  /** @format uuid */
5800
5879
  id: string;
5880
+ /** @format uuid */
5881
+ sourceTaskID?: string | null;
5801
5882
  user?: User | null;
5802
5883
  isFromLegacySource: boolean;
5803
5884
  usedInBusinessRule: boolean;
@@ -6117,6 +6198,16 @@ export interface UpdateLoanDocumentFolderRequest {
6117
6198
  export interface UpdateLoanQueueRequest {
6118
6199
  data: any;
6119
6200
  }
6201
+ export interface UpdateLoanRoleTaskRequest {
6202
+ name?: string | null;
6203
+ description?: string | null;
6204
+ /** @format int32 */
6205
+ weight?: number | null;
6206
+ /** @format uuid */
6207
+ loanDocumentFolderId?: string | null;
6208
+ /** @format date */
6209
+ dueDate?: string | null;
6210
+ }
6120
6211
  export interface UpdateMeRequest {
6121
6212
  phone?: string | null;
6122
6213
  firstName: string;
@@ -6487,6 +6578,12 @@ export interface UserLoanTaskUpdateRequest {
6487
6578
  value?: string | null;
6488
6579
  /** @format date */
6489
6580
  dueDate?: string | null;
6581
+ name?: string | null;
6582
+ description?: string | null;
6583
+ /** @format int32 */
6584
+ weight?: number | null;
6585
+ /** @format uuid */
6586
+ loanDocumentFolderId?: string | null;
6490
6587
  }
6491
6588
  export interface UserMobilePhoneVerificationRequest {
6492
6589
  code: string;
@@ -6635,7 +6732,7 @@ export interface Workflow {
6635
6732
  icon: string;
6636
6733
  }
6637
6734
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
6638
- export type AiAuditLogEventTypeEnum = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied" | "AgentModelCall" | "AgentToolCallRequested" | "AgentToolCallCompleted" | "AgentToolCallFailed" | "AgentLoopLimitReached" | "RequestCancelled" | "KnowledgeBaseRetrieved" | "PromptResolutionFailed" | "PromptTriggerPublished" | "PromptTriggerSkipped" | "PromptRunCompleted" | "LoanUpdateProposed" | "LoanUpdateApplied" | "LoanUpdateRefused" | "PromptTriggerCoalesced";
6735
+ export type AiAuditLogEventTypeEnum = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied" | "AgentModelCall" | "AgentToolCallRequested" | "AgentToolCallCompleted" | "AgentToolCallFailed" | "AgentLoopLimitReached" | "RequestCancelled" | "KnowledgeBaseRetrieved" | "PromptResolutionFailed" | "PromptTriggerPublished" | "PromptTriggerSkipped" | "PromptRunCompleted" | "LoanUpdateProposed" | "LoanUpdateApplied" | "LoanUpdateRefused" | "PromptTriggerCoalesced" | "RecommendationRunCompleted";
6639
6736
  export type AiChatStructuredDataTypeEnum = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument" | "CitedPassages" | "PendingLoanUpdate";
6640
6737
  export type AiCitedDocumentSourceTypeEnum = "File" | "FreeText";
6641
6738
  export type AiGuardrailCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
@@ -6660,6 +6757,7 @@ export type CreateGroupMemberRequestLoanRoleEnum = "Borrower" | "CoBorrower" | "
6660
6757
  /** @deprecated */
6661
6758
  export type CreateInviteRequestRelationshipEnum = "NotApplicable" | "Spouse" | "NonSpouse";
6662
6759
  export type CreateLoanImportRequestImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
6760
+ export type CreateLoanRoleTaskRequestRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6663
6761
  export type CreateUserDraftLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6664
6762
  export type CustomFieldDefinitionDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
6665
6763
  export type CustomFieldDefinitionEntityTypeEnum = "Loan";
@@ -6695,9 +6793,13 @@ export type LoanImportStatusEnum = "WaitingProcess" | "InProgress" | "Completed"
6695
6793
  export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
6696
6794
  export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
6697
6795
  export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
6698
- export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed" | "LosFieldWriteBack" | "ReferrerChangeDiscarded";
6796
+ export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed" | "LosFieldWriteBack" | "ReferrerChangeDiscarded" | "TaskEdited";
6699
6797
  export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
6700
- export type LoanLogDetailTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed" | "LosFieldWriteBack" | "ReferrerChangeDiscarded";
6798
+ export type LoanLogDetailTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed" | "LosFieldWriteBack" | "ReferrerChangeDiscarded" | "TaskEdited";
6799
+ export type LoanRoleSlotTasksRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6800
+ export type LoanRoleTaskRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6801
+ export type LoanRoleTaskTypeEnum = "Document" | "Field" | "Signature" | "EDisclosure" | "EConsent" | "VerificationOfAssets" | "VerificationOfIncome" | "VerificationOfEmployment" | "VerificationOfCredit" | "Payment" | "VerificationOfIncomeAndEmployment" | "VerificationOfTaxes";
6802
+ export type LoanRoleTaskSourceEnum = "Rule" | "Manual";
6701
6803
  export type LoanTaskStatusSummaryStatusEnum = "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
6702
6804
  export type LoanUserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6703
6805
  export type LosCredentialHealthStatusEnum = "Unknown" | "Healthy" | "InvalidCredentials" | "Forbidden" | "TransportError" | "NotConfigured";
@@ -6783,7 +6885,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
6783
6885
  }
6784
6886
  /**
6785
6887
  * @title The Big POS API
6786
- * @version v3.7.0
6888
+ * @version v3.8.0
6787
6889
  * @termsOfService https://www.thebigpos.com/terms-of-use/
6788
6890
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
6789
6891
  */
@@ -10889,6 +10991,111 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10889
10991
  * @response `404` `ProblemDetails` Not Found
10890
10992
  */
10891
10993
  retryLoanQueue: (loanQueueId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
10994
+ /**
10995
+ * No description
10996
+ *
10997
+ * @tags LoanRecommendations
10998
+ * @name GetLoanRecommendations
10999
+ * @summary Get a loan's open recommendations
11000
+ * @request GET:/api/loans/{loanId}/recommendations
11001
+ * @secure
11002
+ * @response `200` `(LoanRecommendation)[]` OK
11003
+ * @response `400` `ProblemDetails` Bad Request
11004
+ * @response `404` `ProblemDetails` Not Found
11005
+ */
11006
+ getLoanRecommendations: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<LoanRecommendation[], any, {}>>;
11007
+ /**
11008
+ * No description
11009
+ *
11010
+ * @tags LoanRecommendations
11011
+ * @name DismissLoanRecommendation
11012
+ * @summary Dismiss a loan recommendation
11013
+ * @request POST:/api/loans/{loanId}/recommendations/{id}/dismiss
11014
+ * @secure
11015
+ * @response `204` `void` No Content
11016
+ * @response `400` `ProblemDetails` Bad Request
11017
+ * @response `404` `ProblemDetails` Not Found
11018
+ */
11019
+ dismissLoanRecommendation: (loanId: string, id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
11020
+ /**
11021
+ * No description
11022
+ *
11023
+ * @tags LoanRoleTasks
11024
+ * @name GetLoanRoleTasks
11025
+ * @summary Get queued tasks grouped by borrower slot
11026
+ * @request GET:/api/loans/{loanId}/role-tasks
11027
+ * @secure
11028
+ * @response `200` `(LoanRoleSlotTasks)[]` OK
11029
+ * @response `404` `ProblemDetails` Not Found
11030
+ */
11031
+ getLoanRoleTasks: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<LoanRoleSlotTasks[], any, {}>>;
11032
+ /**
11033
+ * @description Queues an account template against a borrower slot that has no registered user yet. The row owns a per-loan copy of the template, so editing it never changes the account's catalogue.
11034
+ *
11035
+ * @tags LoanRoleTasks
11036
+ * @name CreateLoanRoleTask
11037
+ * @summary Queue a task for a borrower slot
11038
+ * @request POST:/api/loans/{loanId}/role-tasks
11039
+ * @secure
11040
+ * @response `201` `LoanRoleTask` Created
11041
+ * @response `400` `ProblemDetails` Bad Request
11042
+ * @response `404` `ProblemDetails` Not Found
11043
+ * @response `409` `ProblemDetails` Conflict
11044
+ * @response `422` `ProblemDetails` Unprocessable Content
11045
+ */
11046
+ createLoanRoleTask: (loanId: string, data: CreateLoanRoleTaskRequest, params?: RequestParams) => Promise<AxiosResponse<LoanRoleTask, any, {}>>;
11047
+ /**
11048
+ * No description
11049
+ *
11050
+ * @tags LoanRoleTasks
11051
+ * @name GetLoanRoleTask
11052
+ * @summary Get a queued task
11053
+ * @request GET:/api/loans/{loanId}/role-tasks/{id}
11054
+ * @secure
11055
+ * @response `200` `LoanRoleTask` OK
11056
+ * @response `404` `ProblemDetails` Not Found
11057
+ */
11058
+ getLoanRoleTask: (loanId: string, id: string, params?: RequestParams) => Promise<AxiosResponse<LoanRoleTask, any, {}>>;
11059
+ /**
11060
+ * @description Edits the loan's own copy of the template. The account's catalogue entry is untouched, so the change applies to this borrower only. Omitted fields are left as they are.
11061
+ *
11062
+ * @tags LoanRoleTasks
11063
+ * @name UpdateLoanRoleTask
11064
+ * @summary Edit a queued task
11065
+ * @request PUT:/api/loans/{loanId}/role-tasks/{id}
11066
+ * @secure
11067
+ * @response `200` `LoanRoleTask` OK
11068
+ * @response `400` `ProblemDetails` Bad Request
11069
+ * @response `404` `ProblemDetails` Not Found
11070
+ * @response `409` `ProblemDetails` Conflict
11071
+ * @response `422` `ProblemDetails` Unprocessable Content
11072
+ */
11073
+ updateLoanRoleTask: (loanId: string, id: string, data: UpdateLoanRoleTaskRequest, params?: RequestParams) => Promise<AxiosResponse<LoanRoleTask, any, {}>>;
11074
+ /**
11075
+ * @description Removes a queued task from a borrower slot. The removal is remembered, so a later run of the rules does not queue the same template again.
11076
+ *
11077
+ * @tags LoanRoleTasks
11078
+ * @name DeleteLoanRoleTask
11079
+ * @summary Remove a queued task
11080
+ * @request DELETE:/api/loans/{loanId}/role-tasks/{id}
11081
+ * @secure
11082
+ * @response `204` `void` No Content
11083
+ * @response `404` `ProblemDetails` Not Found
11084
+ * @response `409` `ProblemDetails` Conflict
11085
+ */
11086
+ deleteLoanRoleTask: (loanId: string, id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
11087
+ /**
11088
+ * @description Runs the account's business rules against the loan and queues what is missing. Templates already queued, and ones removed by staff, are left alone.
11089
+ *
11090
+ * @tags LoanRoleTasks
11091
+ * @name MaterializeLoanRoleTasks
11092
+ * @summary Queue the business rule defaults
11093
+ * @request POST:/api/loans/{loanId}/role-tasks/materialize
11094
+ * @secure
11095
+ * @response `200` `MaterializeLoanRoleTasks` OK
11096
+ * @response `404` `ProblemDetails` Not Found
11097
+ */
11098
+ materializeLoanRoleTasks: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<MaterializeLoanRoleTasks, any, {}>>;
10892
11099
  /**
10893
11100
  * No description
10894
11101
  *
@@ -11323,6 +11530,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11323
11530
  * @request POST:/api/loans/{loanId}/users/{userId}
11324
11531
  * @secure
11325
11532
  * @response `201` `LoanUser` Created
11533
+ * @response `404` `ProblemDetails` Not Found
11326
11534
  */
11327
11535
  addLoanUser: (loanId: string, userId: string, data: CreateUserLoan, params?: RequestParams) => Promise<AxiosResponse<LoanUser, any, {}>>;
11328
11536
  /**
package/dist/index.js CHANGED
@@ -101,7 +101,7 @@ export class HttpClient {
101
101
  }
102
102
  /**
103
103
  * @title The Big POS API
104
- * @version v3.7.0
104
+ * @version v3.8.0
105
105
  * @termsOfService https://www.thebigpos.com/terms-of-use/
106
106
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
107
107
  */
@@ -3773,6 +3773,111 @@ export class Api extends HttpClient {
3773
3773
  * @response `404` `ProblemDetails` Not Found
3774
3774
  */
3775
3775
  retryLoanQueue: (loanQueueId, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/${loanQueueId}/retry`, method: "POST", secure: true }, params)),
3776
+ /**
3777
+ * No description
3778
+ *
3779
+ * @tags LoanRecommendations
3780
+ * @name GetLoanRecommendations
3781
+ * @summary Get a loan's open recommendations
3782
+ * @request GET:/api/loans/{loanId}/recommendations
3783
+ * @secure
3784
+ * @response `200` `(LoanRecommendation)[]` OK
3785
+ * @response `400` `ProblemDetails` Bad Request
3786
+ * @response `404` `ProblemDetails` Not Found
3787
+ */
3788
+ getLoanRecommendations: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/recommendations`, method: "GET", secure: true, format: "json" }, params)),
3789
+ /**
3790
+ * No description
3791
+ *
3792
+ * @tags LoanRecommendations
3793
+ * @name DismissLoanRecommendation
3794
+ * @summary Dismiss a loan recommendation
3795
+ * @request POST:/api/loans/{loanId}/recommendations/{id}/dismiss
3796
+ * @secure
3797
+ * @response `204` `void` No Content
3798
+ * @response `400` `ProblemDetails` Bad Request
3799
+ * @response `404` `ProblemDetails` Not Found
3800
+ */
3801
+ dismissLoanRecommendation: (loanId, id, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/recommendations/${id}/dismiss`, method: "POST", secure: true }, params)),
3802
+ /**
3803
+ * No description
3804
+ *
3805
+ * @tags LoanRoleTasks
3806
+ * @name GetLoanRoleTasks
3807
+ * @summary Get queued tasks grouped by borrower slot
3808
+ * @request GET:/api/loans/{loanId}/role-tasks
3809
+ * @secure
3810
+ * @response `200` `(LoanRoleSlotTasks)[]` OK
3811
+ * @response `404` `ProblemDetails` Not Found
3812
+ */
3813
+ getLoanRoleTasks: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks`, method: "GET", secure: true, format: "json" }, params)),
3814
+ /**
3815
+ * @description Queues an account template against a borrower slot that has no registered user yet. The row owns a per-loan copy of the template, so editing it never changes the account's catalogue.
3816
+ *
3817
+ * @tags LoanRoleTasks
3818
+ * @name CreateLoanRoleTask
3819
+ * @summary Queue a task for a borrower slot
3820
+ * @request POST:/api/loans/{loanId}/role-tasks
3821
+ * @secure
3822
+ * @response `201` `LoanRoleTask` Created
3823
+ * @response `400` `ProblemDetails` Bad Request
3824
+ * @response `404` `ProblemDetails` Not Found
3825
+ * @response `409` `ProblemDetails` Conflict
3826
+ * @response `422` `ProblemDetails` Unprocessable Content
3827
+ */
3828
+ createLoanRoleTask: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3829
+ /**
3830
+ * No description
3831
+ *
3832
+ * @tags LoanRoleTasks
3833
+ * @name GetLoanRoleTask
3834
+ * @summary Get a queued task
3835
+ * @request GET:/api/loans/{loanId}/role-tasks/{id}
3836
+ * @secure
3837
+ * @response `200` `LoanRoleTask` OK
3838
+ * @response `404` `ProblemDetails` Not Found
3839
+ */
3840
+ getLoanRoleTask: (loanId, id, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks/${id}`, method: "GET", secure: true, format: "json" }, params)),
3841
+ /**
3842
+ * @description Edits the loan's own copy of the template. The account's catalogue entry is untouched, so the change applies to this borrower only. Omitted fields are left as they are.
3843
+ *
3844
+ * @tags LoanRoleTasks
3845
+ * @name UpdateLoanRoleTask
3846
+ * @summary Edit a queued task
3847
+ * @request PUT:/api/loans/{loanId}/role-tasks/{id}
3848
+ * @secure
3849
+ * @response `200` `LoanRoleTask` OK
3850
+ * @response `400` `ProblemDetails` Bad Request
3851
+ * @response `404` `ProblemDetails` Not Found
3852
+ * @response `409` `ProblemDetails` Conflict
3853
+ * @response `422` `ProblemDetails` Unprocessable Content
3854
+ */
3855
+ updateLoanRoleTask: (loanId, id, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3856
+ /**
3857
+ * @description Removes a queued task from a borrower slot. The removal is remembered, so a later run of the rules does not queue the same template again.
3858
+ *
3859
+ * @tags LoanRoleTasks
3860
+ * @name DeleteLoanRoleTask
3861
+ * @summary Remove a queued task
3862
+ * @request DELETE:/api/loans/{loanId}/role-tasks/{id}
3863
+ * @secure
3864
+ * @response `204` `void` No Content
3865
+ * @response `404` `ProblemDetails` Not Found
3866
+ * @response `409` `ProblemDetails` Conflict
3867
+ */
3868
+ deleteLoanRoleTask: (loanId, id, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks/${id}`, method: "DELETE", secure: true }, params)),
3869
+ /**
3870
+ * @description Runs the account's business rules against the loan and queues what is missing. Templates already queued, and ones removed by staff, are left alone.
3871
+ *
3872
+ * @tags LoanRoleTasks
3873
+ * @name MaterializeLoanRoleTasks
3874
+ * @summary Queue the business rule defaults
3875
+ * @request POST:/api/loans/{loanId}/role-tasks/materialize
3876
+ * @secure
3877
+ * @response `200` `MaterializeLoanRoleTasks` OK
3878
+ * @response `404` `ProblemDetails` Not Found
3879
+ */
3880
+ materializeLoanRoleTasks: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks/materialize`, method: "POST", secure: true, format: "json" }, params)),
3776
3881
  /**
3777
3882
  * No description
3778
3883
  *
@@ -4178,6 +4283,7 @@ export class Api extends HttpClient {
4178
4283
  * @request POST:/api/loans/{loanId}/users/{userId}
4179
4284
  * @secure
4180
4285
  * @response `201` `LoanUser` Created
4286
+ * @response `404` `ProblemDetails` Not Found
4181
4287
  */
4182
4288
  addLoanUser: (loanId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/users/${userId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4183
4289
  /**