@matech/thebigpos-sdk 3.7.0-dev-3432 → 3.7.0-dev-3489

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";
@@ -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;
@@ -4114,6 +4126,52 @@ export interface LoanRefinanceRequest {
4114
4126
  purpose?: LoanRefinancePurpose | null;
4115
4127
  currentLoan?: LoanRefinanceCurrentLoanRequest | null;
4116
4128
  }
4129
+ export interface LoanRoleSlotTasks {
4130
+ role: LoanRoleSlotTasksRoleEnum;
4131
+ /** @format int32 */
4132
+ borrowerPair: number;
4133
+ /** @format int32 */
4134
+ borrowerPosition: number;
4135
+ tasks: LoanRoleTask[];
4136
+ }
4137
+ export interface LoanRoleTask {
4138
+ /** @format uuid */
4139
+ id: string;
4140
+ /** @format uuid */
4141
+ loanId: string;
4142
+ role: LoanRoleTaskRoleEnum;
4143
+ /** @format int32 */
4144
+ borrowerPair: number;
4145
+ /** @format int32 */
4146
+ borrowerPosition: number;
4147
+ /** @format uuid */
4148
+ definitionTaskId: string;
4149
+ /** @format uuid */
4150
+ taskId: string;
4151
+ name: string;
4152
+ description?: string | null;
4153
+ type: LoanRoleTaskTypeEnum;
4154
+ losTarget?: string | null;
4155
+ /** @format int32 */
4156
+ daysDueFromApplication?: number | null;
4157
+ /** @format int32 */
4158
+ weight: number;
4159
+ willAutocompleteAfterResponse: boolean;
4160
+ /** @format uuid */
4161
+ loanDocumentFolderId?: string | null;
4162
+ /** @format date */
4163
+ dueDate?: string | null;
4164
+ source: LoanRoleTaskSourceEnum;
4165
+ isAttached: boolean;
4166
+ /** @format uuid */
4167
+ attachedUserLoanTaskId?: string | null;
4168
+ /** @format date-time */
4169
+ attachedAt?: string | null;
4170
+ /** @format uuid */
4171
+ createdById?: string | null;
4172
+ /** @format date-time */
4173
+ createdAt: string;
4174
+ }
4117
4175
  export interface LoanSearchCriteria {
4118
4176
  searchText?: string | null;
4119
4177
  searchTerms?: string[] | null;
@@ -4142,6 +4200,7 @@ export interface LoanSearchCriteria {
4142
4200
  closingFrom?: string | null;
4143
4201
  /** @format date */
4144
4202
  closingTo?: string | null;
4203
+ milestoneConfigurationIds?: string[] | null;
4145
4204
  }
4146
4205
  export interface LoanSettings {
4147
4206
  excludeFromAutoTaskReminders: boolean;
@@ -4446,6 +4505,10 @@ export interface LosWebhookSigningKeySyncResult {
4446
4505
  export interface ManualDocumentClassificationRequest {
4447
4506
  documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
4448
4507
  }
4508
+ export interface MaterializeLoanRoleTasks {
4509
+ /** @format int32 */
4510
+ rowsAdded: number;
4511
+ }
4449
4512
  export interface MdmUser {
4450
4513
  user_email?: string | null;
4451
4514
  user_id?: string | null;
@@ -5798,6 +5861,8 @@ export interface Task {
5798
5861
  isGlobal: boolean;
5799
5862
  /** @format uuid */
5800
5863
  id: string;
5864
+ /** @format uuid */
5865
+ sourceTaskID?: string | null;
5801
5866
  user?: User | null;
5802
5867
  isFromLegacySource: boolean;
5803
5868
  usedInBusinessRule: boolean;
@@ -6117,6 +6182,16 @@ export interface UpdateLoanDocumentFolderRequest {
6117
6182
  export interface UpdateLoanQueueRequest {
6118
6183
  data: any;
6119
6184
  }
6185
+ export interface UpdateLoanRoleTaskRequest {
6186
+ name?: string | null;
6187
+ description?: string | null;
6188
+ /** @format int32 */
6189
+ weight?: number | null;
6190
+ /** @format uuid */
6191
+ loanDocumentFolderId?: string | null;
6192
+ /** @format date */
6193
+ dueDate?: string | null;
6194
+ }
6120
6195
  export interface UpdateMeRequest {
6121
6196
  phone?: string | null;
6122
6197
  firstName: string;
@@ -6487,6 +6562,12 @@ export interface UserLoanTaskUpdateRequest {
6487
6562
  value?: string | null;
6488
6563
  /** @format date */
6489
6564
  dueDate?: string | null;
6565
+ name?: string | null;
6566
+ description?: string | null;
6567
+ /** @format int32 */
6568
+ weight?: number | null;
6569
+ /** @format uuid */
6570
+ loanDocumentFolderId?: string | null;
6490
6571
  }
6491
6572
  export interface UserMobilePhoneVerificationRequest {
6492
6573
  code: string;
@@ -6660,6 +6741,7 @@ export type CreateGroupMemberRequestLoanRoleEnum = "Borrower" | "CoBorrower" | "
6660
6741
  /** @deprecated */
6661
6742
  export type CreateInviteRequestRelationshipEnum = "NotApplicable" | "Spouse" | "NonSpouse";
6662
6743
  export type CreateLoanImportRequestImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
6744
+ export type CreateLoanRoleTaskRequestRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6663
6745
  export type CreateUserDraftLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6664
6746
  export type CustomFieldDefinitionDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
6665
6747
  export type CustomFieldDefinitionEntityTypeEnum = "Loan";
@@ -6695,9 +6777,13 @@ export type LoanImportStatusEnum = "WaitingProcess" | "InProgress" | "Completed"
6695
6777
  export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
6696
6778
  export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
6697
6779
  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";
6780
+ 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
6781
  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";
6782
+ export type LoanLogDetailTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed" | "LosFieldWriteBack" | "ReferrerChangeDiscarded" | "TaskEdited";
6783
+ export type LoanRoleSlotTasksRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6784
+ export type LoanRoleTaskRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6785
+ export type LoanRoleTaskTypeEnum = "Document" | "Field" | "Signature" | "EDisclosure" | "EConsent" | "VerificationOfAssets" | "VerificationOfIncome" | "VerificationOfEmployment" | "VerificationOfCredit" | "Payment" | "VerificationOfIncomeAndEmployment" | "VerificationOfTaxes";
6786
+ export type LoanRoleTaskSourceEnum = "Rule" | "Manual";
6701
6787
  export type LoanTaskStatusSummaryStatusEnum = "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
6702
6788
  export type LoanUserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
6703
6789
  export type LosCredentialHealthStatusEnum = "Unknown" | "Healthy" | "InvalidCredentials" | "Forbidden" | "TransportError" | "NotConfigured";
@@ -10889,6 +10975,85 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10889
10975
  * @response `404` `ProblemDetails` Not Found
10890
10976
  */
10891
10977
  retryLoanQueue: (loanQueueId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
10978
+ /**
10979
+ * No description
10980
+ *
10981
+ * @tags LoanRoleTasks
10982
+ * @name GetLoanRoleTasks
10983
+ * @summary Get queued tasks grouped by borrower slot
10984
+ * @request GET:/api/loans/{loanId}/role-tasks
10985
+ * @secure
10986
+ * @response `200` `(LoanRoleSlotTasks)[]` OK
10987
+ * @response `404` `ProblemDetails` Not Found
10988
+ */
10989
+ getLoanRoleTasks: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<LoanRoleSlotTasks[], any, {}>>;
10990
+ /**
10991
+ * @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.
10992
+ *
10993
+ * @tags LoanRoleTasks
10994
+ * @name CreateLoanRoleTask
10995
+ * @summary Queue a task for a borrower slot
10996
+ * @request POST:/api/loans/{loanId}/role-tasks
10997
+ * @secure
10998
+ * @response `201` `LoanRoleTask` Created
10999
+ * @response `400` `ProblemDetails` Bad Request
11000
+ * @response `404` `ProblemDetails` Not Found
11001
+ * @response `409` `ProblemDetails` Conflict
11002
+ * @response `422` `ProblemDetails` Unprocessable Content
11003
+ */
11004
+ createLoanRoleTask: (loanId: string, data: CreateLoanRoleTaskRequest, params?: RequestParams) => Promise<AxiosResponse<LoanRoleTask, any, {}>>;
11005
+ /**
11006
+ * No description
11007
+ *
11008
+ * @tags LoanRoleTasks
11009
+ * @name GetLoanRoleTask
11010
+ * @summary Get a queued task
11011
+ * @request GET:/api/loans/{loanId}/role-tasks/{id}
11012
+ * @secure
11013
+ * @response `200` `LoanRoleTask` OK
11014
+ * @response `404` `ProblemDetails` Not Found
11015
+ */
11016
+ getLoanRoleTask: (loanId: string, id: string, params?: RequestParams) => Promise<AxiosResponse<LoanRoleTask, any, {}>>;
11017
+ /**
11018
+ * @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.
11019
+ *
11020
+ * @tags LoanRoleTasks
11021
+ * @name UpdateLoanRoleTask
11022
+ * @summary Edit a queued task
11023
+ * @request PUT:/api/loans/{loanId}/role-tasks/{id}
11024
+ * @secure
11025
+ * @response `200` `LoanRoleTask` OK
11026
+ * @response `400` `ProblemDetails` Bad Request
11027
+ * @response `404` `ProblemDetails` Not Found
11028
+ * @response `409` `ProblemDetails` Conflict
11029
+ * @response `422` `ProblemDetails` Unprocessable Content
11030
+ */
11031
+ updateLoanRoleTask: (loanId: string, id: string, data: UpdateLoanRoleTaskRequest, params?: RequestParams) => Promise<AxiosResponse<LoanRoleTask, any, {}>>;
11032
+ /**
11033
+ * @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.
11034
+ *
11035
+ * @tags LoanRoleTasks
11036
+ * @name DeleteLoanRoleTask
11037
+ * @summary Remove a queued task
11038
+ * @request DELETE:/api/loans/{loanId}/role-tasks/{id}
11039
+ * @secure
11040
+ * @response `204` `void` No Content
11041
+ * @response `404` `ProblemDetails` Not Found
11042
+ * @response `409` `ProblemDetails` Conflict
11043
+ */
11044
+ deleteLoanRoleTask: (loanId: string, id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
11045
+ /**
11046
+ * @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.
11047
+ *
11048
+ * @tags LoanRoleTasks
11049
+ * @name MaterializeLoanRoleTasks
11050
+ * @summary Queue the business rule defaults
11051
+ * @request POST:/api/loans/{loanId}/role-tasks/materialize
11052
+ * @secure
11053
+ * @response `200` `MaterializeLoanRoleTasks` OK
11054
+ * @response `404` `ProblemDetails` Not Found
11055
+ */
11056
+ materializeLoanRoleTasks: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<MaterializeLoanRoleTasks, any, {}>>;
10892
11057
  /**
10893
11058
  * No description
10894
11059
  *
@@ -11323,6 +11488,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11323
11488
  * @request POST:/api/loans/{loanId}/users/{userId}
11324
11489
  * @secure
11325
11490
  * @response `201` `LoanUser` Created
11491
+ * @response `404` `ProblemDetails` Not Found
11326
11492
  */
11327
11493
  addLoanUser: (loanId: string, userId: string, data: CreateUserLoan, params?: RequestParams) => Promise<AxiosResponse<LoanUser, any, {}>>;
11328
11494
  /**
package/dist/index.js CHANGED
@@ -3773,6 +3773,85 @@ 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 LoanRoleTasks
3780
+ * @name GetLoanRoleTasks
3781
+ * @summary Get queued tasks grouped by borrower slot
3782
+ * @request GET:/api/loans/{loanId}/role-tasks
3783
+ * @secure
3784
+ * @response `200` `(LoanRoleSlotTasks)[]` OK
3785
+ * @response `404` `ProblemDetails` Not Found
3786
+ */
3787
+ getLoanRoleTasks: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks`, method: "GET", secure: true, format: "json" }, params)),
3788
+ /**
3789
+ * @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.
3790
+ *
3791
+ * @tags LoanRoleTasks
3792
+ * @name CreateLoanRoleTask
3793
+ * @summary Queue a task for a borrower slot
3794
+ * @request POST:/api/loans/{loanId}/role-tasks
3795
+ * @secure
3796
+ * @response `201` `LoanRoleTask` Created
3797
+ * @response `400` `ProblemDetails` Bad Request
3798
+ * @response `404` `ProblemDetails` Not Found
3799
+ * @response `409` `ProblemDetails` Conflict
3800
+ * @response `422` `ProblemDetails` Unprocessable Content
3801
+ */
3802
+ 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)),
3803
+ /**
3804
+ * No description
3805
+ *
3806
+ * @tags LoanRoleTasks
3807
+ * @name GetLoanRoleTask
3808
+ * @summary Get a queued task
3809
+ * @request GET:/api/loans/{loanId}/role-tasks/{id}
3810
+ * @secure
3811
+ * @response `200` `LoanRoleTask` OK
3812
+ * @response `404` `ProblemDetails` Not Found
3813
+ */
3814
+ getLoanRoleTask: (loanId, id, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks/${id}`, method: "GET", secure: true, format: "json" }, params)),
3815
+ /**
3816
+ * @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.
3817
+ *
3818
+ * @tags LoanRoleTasks
3819
+ * @name UpdateLoanRoleTask
3820
+ * @summary Edit a queued task
3821
+ * @request PUT:/api/loans/{loanId}/role-tasks/{id}
3822
+ * @secure
3823
+ * @response `200` `LoanRoleTask` OK
3824
+ * @response `400` `ProblemDetails` Bad Request
3825
+ * @response `404` `ProblemDetails` Not Found
3826
+ * @response `409` `ProblemDetails` Conflict
3827
+ * @response `422` `ProblemDetails` Unprocessable Content
3828
+ */
3829
+ 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)),
3830
+ /**
3831
+ * @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.
3832
+ *
3833
+ * @tags LoanRoleTasks
3834
+ * @name DeleteLoanRoleTask
3835
+ * @summary Remove a queued task
3836
+ * @request DELETE:/api/loans/{loanId}/role-tasks/{id}
3837
+ * @secure
3838
+ * @response `204` `void` No Content
3839
+ * @response `404` `ProblemDetails` Not Found
3840
+ * @response `409` `ProblemDetails` Conflict
3841
+ */
3842
+ deleteLoanRoleTask: (loanId, id, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks/${id}`, method: "DELETE", secure: true }, params)),
3843
+ /**
3844
+ * @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.
3845
+ *
3846
+ * @tags LoanRoleTasks
3847
+ * @name MaterializeLoanRoleTasks
3848
+ * @summary Queue the business rule defaults
3849
+ * @request POST:/api/loans/{loanId}/role-tasks/materialize
3850
+ * @secure
3851
+ * @response `200` `MaterializeLoanRoleTasks` OK
3852
+ * @response `404` `ProblemDetails` Not Found
3853
+ */
3854
+ materializeLoanRoleTasks: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/role-tasks/materialize`, method: "POST", secure: true, format: "json" }, params)),
3776
3855
  /**
3777
3856
  * No description
3778
3857
  *
@@ -4178,6 +4257,7 @@ export class Api extends HttpClient {
4178
4257
  * @request POST:/api/loans/{loanId}/users/{userId}
4179
4258
  * @secure
4180
4259
  * @response `201` `LoanUser` Created
4260
+ * @response `404` `ProblemDetails` Not Found
4181
4261
  */
4182
4262
  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
4263
  /**