@matech/thebigpos-sdk 3.7.0 → 3.8.0-pr-4912-3553

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/src/index.ts CHANGED
@@ -23,6 +23,20 @@ export type UserRole =
23
23
  | "LoanOfficerAssistant"
24
24
  | "SystemAdmin";
25
25
 
26
+ export type TaskType =
27
+ | "Document"
28
+ | "Field"
29
+ | "Signature"
30
+ | "EDisclosure"
31
+ | "EConsent"
32
+ | "VerificationOfAssets"
33
+ | "VerificationOfIncome"
34
+ | "VerificationOfEmployment"
35
+ | "VerificationOfCredit"
36
+ | "Payment"
37
+ | "VerificationOfIncomeAndEmployment"
38
+ | "VerificationOfTaxes";
39
+
26
40
  export type TaskStatus =
27
41
  | "Outstanding"
28
42
  | "Pending"
@@ -96,6 +110,8 @@ export type LoanTitleHeld =
96
110
 
97
111
  export type LoanTaskActivityFilter = "Active" | "Inactive" | "All";
98
112
 
113
+ export type LoanRoleTaskSource = "Rule" | "Manual";
114
+
99
115
  export type LoanRole =
100
116
  | "Borrower"
101
117
  | "CoBorrower"
@@ -270,7 +286,8 @@ export type LoanLogType =
270
286
  | "DocumentClassified"
271
287
  | "CoBorrowerEmailAutoFixed"
272
288
  | "LosFieldWriteBack"
273
- | "ReferrerChangeDiscarded";
289
+ | "ReferrerChangeDiscarded"
290
+ | "TaskEdited";
274
291
 
275
292
  export type LoanLienPosition = "First" | "Subordinate";
276
293
 
@@ -647,7 +664,8 @@ export type AiAuditEventType =
647
664
  | "LoanUpdateProposed"
648
665
  | "LoanUpdateApplied"
649
666
  | "LoanUpdateRefused"
650
- | "PromptTriggerCoalesced";
667
+ | "PromptTriggerCoalesced"
668
+ | "RecommendationRunCompleted";
651
669
 
652
670
  export type AddressFamily =
653
671
  | "Unspecified"
@@ -853,6 +871,7 @@ export interface AdminAccessUser {
853
871
  preferredLoanOfficer?: PreferredLoanOfficer | null;
854
872
  loanIDs: string[];
855
873
  drafts: Draft[];
874
+ inProgressLoans: InProgressLoan[];
856
875
  notificationSettings?: UserNotificationSettings | null;
857
876
  hasExtendedLoanVisibility: boolean;
858
877
  /** @format uuid */
@@ -1683,6 +1702,7 @@ export interface BranchUser {
1683
1702
  preferredLoanOfficer?: PreferredLoanOfficer | null;
1684
1703
  loanIDs: string[];
1685
1704
  drafts: Draft[];
1705
+ inProgressLoans: InProgressLoan[];
1686
1706
  notificationSettings?: UserNotificationSettings | null;
1687
1707
  hasExtendedLoanVisibility: boolean;
1688
1708
  /** @format uuid */
@@ -2124,6 +2144,16 @@ export interface CreateLoanImportRequest {
2124
2144
  importMode: CreateLoanImportRequestImportModeEnum;
2125
2145
  }
2126
2146
 
2147
+ export interface CreateLoanRoleTaskRequest {
2148
+ /** @format uuid */
2149
+ taskId: string;
2150
+ role: CreateLoanRoleTaskRequestRoleEnum;
2151
+ /** @format int32 */
2152
+ borrowerPair: number;
2153
+ /** @format int32 */
2154
+ borrowerPosition: number;
2155
+ }
2156
+
2127
2157
  export interface CreateSession {
2128
2158
  sessionId: string;
2129
2159
  sessionUrl: string;
@@ -2293,6 +2323,7 @@ export interface DetailedUser {
2293
2323
  preferredLoanOfficer?: PreferredLoanOfficer | null;
2294
2324
  loanIDs: string[];
2295
2325
  drafts: Draft[];
2326
+ inProgressLoans: InProgressLoan[];
2296
2327
  notificationSettings?: UserNotificationSettings | null;
2297
2328
  hasExtendedLoanVisibility: boolean;
2298
2329
  }
@@ -2577,6 +2608,7 @@ export interface EnabledServices {
2577
2608
  ringCentral?: boolean | null;
2578
2609
  socialSurvey?: boolean | null;
2579
2610
  borrowerTasks?: boolean | null;
2611
+ preBorrowerTasks?: boolean | null;
2580
2612
  docusign?: boolean | null;
2581
2613
  emailNotifications?: boolean | null;
2582
2614
  autoTaskReminders?: boolean | null;
@@ -3212,6 +3244,7 @@ export interface ImpersonatedDetailedUser {
3212
3244
  preferredLoanOfficer?: PreferredLoanOfficer | null;
3213
3245
  loanIDs: string[];
3214
3246
  drafts: Draft[];
3247
+ inProgressLoans: InProgressLoan[];
3215
3248
  notificationSettings?: UserNotificationSettings | null;
3216
3249
  hasExtendedLoanVisibility: boolean;
3217
3250
  /** @deprecated */
@@ -3226,6 +3259,17 @@ export interface ImportUserLoanTaskRequest {
3226
3259
  userID: string;
3227
3260
  }
3228
3261
 
3262
+ export interface InProgressLoan {
3263
+ /** @format uuid */
3264
+ id: string;
3265
+ /** @format uuid */
3266
+ borrowerId: string;
3267
+ /** @format uuid */
3268
+ siteConfigurationId?: string | null;
3269
+ /** @format date-time */
3270
+ updatedAt?: string | null;
3271
+ }
3272
+
3229
3273
  export interface IncompleteApplicationSummary {
3230
3274
  /** @format int32 */
3231
3275
  total: number;
@@ -3499,6 +3543,20 @@ export interface LoanApplicationRequest {
3499
3543
  existingLoanId?: string | null;
3500
3544
  }
3501
3545
 
3546
+ export interface LoanApplicationSession {
3547
+ routeName: string;
3548
+ currentQuestionId?: string | null;
3549
+ questionHistory: string[];
3550
+ /** @format date-time */
3551
+ completedAt?: string | null;
3552
+ }
3553
+
3554
+ export interface LoanApplicationSessionRequest {
3555
+ routeName: string;
3556
+ currentQuestionId?: string | null;
3557
+ questionHistory: string[];
3558
+ }
3559
+
3502
3560
  export interface LoanBorrower {
3503
3561
  /** @format uuid */
3504
3562
  id: string;
@@ -5006,6 +5064,25 @@ export interface LoanQueueWithData {
5006
5064
  data?: any | null;
5007
5065
  }
5008
5066
 
5067
+ export interface LoanRecommendation {
5068
+ /** @format uuid */
5069
+ id: string;
5070
+ canonicalName: string;
5071
+ displayName: string;
5072
+ extractedValue: string;
5073
+ currentLoanValue?: any | null;
5074
+ /** @format uuid */
5075
+ sourceDocumentId: string;
5076
+ sourceDocumentName?: string | null;
5077
+ /** @format float */
5078
+ confidence: number;
5079
+ /** @format uuid */
5080
+ borrowerId?: string | null;
5081
+ borrowerName?: string | null;
5082
+ /** @format date-time */
5083
+ detectedAt: string;
5084
+ }
5085
+
5009
5086
  export interface LoanRecord {
5010
5087
  loanGuid: string;
5011
5088
  loanFields: Record<string, string>;
@@ -5059,6 +5136,54 @@ export interface LoanRefinanceRequest {
5059
5136
  currentLoan?: LoanRefinanceCurrentLoanRequest | null;
5060
5137
  }
5061
5138
 
5139
+ export interface LoanRoleSlotTasks {
5140
+ role: LoanRoleSlotTasksRoleEnum;
5141
+ /** @format int32 */
5142
+ borrowerPair: number;
5143
+ /** @format int32 */
5144
+ borrowerPosition: number;
5145
+ tasks: LoanRoleTask[];
5146
+ }
5147
+
5148
+ export interface LoanRoleTask {
5149
+ /** @format uuid */
5150
+ id: string;
5151
+ /** @format uuid */
5152
+ loanId: string;
5153
+ role: LoanRoleTaskRoleEnum;
5154
+ /** @format int32 */
5155
+ borrowerPair: number;
5156
+ /** @format int32 */
5157
+ borrowerPosition: number;
5158
+ /** @format uuid */
5159
+ definitionTaskId: string;
5160
+ /** @format uuid */
5161
+ taskId: string;
5162
+ name: string;
5163
+ description?: string | null;
5164
+ type: LoanRoleTaskTypeEnum;
5165
+ losTarget?: string | null;
5166
+ /** @format int32 */
5167
+ daysDueFromApplication?: number | null;
5168
+ /** @format int32 */
5169
+ weight: number;
5170
+ willAutocompleteAfterResponse: boolean;
5171
+ /** @format uuid */
5172
+ loanDocumentFolderId?: string | null;
5173
+ /** @format date */
5174
+ dueDate?: string | null;
5175
+ source: LoanRoleTaskSourceEnum;
5176
+ isAttached: boolean;
5177
+ /** @format uuid */
5178
+ attachedUserLoanTaskId?: string | null;
5179
+ /** @format date-time */
5180
+ attachedAt?: string | null;
5181
+ /** @format uuid */
5182
+ createdById?: string | null;
5183
+ /** @format date-time */
5184
+ createdAt: string;
5185
+ }
5186
+
5062
5187
  export interface LoanSearchCriteria {
5063
5188
  searchText?: string | null;
5064
5189
  searchTerms?: string[] | null;
@@ -5087,6 +5212,7 @@ export interface LoanSearchCriteria {
5087
5212
  closingFrom?: string | null;
5088
5213
  /** @format date */
5089
5214
  closingTo?: string | null;
5215
+ milestoneConfigurationIds?: string[] | null;
5090
5216
  }
5091
5217
 
5092
5218
  export interface LoanSettings {
@@ -5422,6 +5548,11 @@ export interface ManualDocumentClassificationRequest {
5422
5548
  documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
5423
5549
  }
5424
5550
 
5551
+ export interface MaterializeLoanRoleTasks {
5552
+ /** @format int32 */
5553
+ rowsAdded: number;
5554
+ }
5555
+
5425
5556
  export interface MdmUser {
5426
5557
  user_email?: string | null;
5427
5558
  user_id?: string | null;
@@ -6855,6 +6986,8 @@ export interface Task {
6855
6986
  isGlobal: boolean;
6856
6987
  /** @format uuid */
6857
6988
  id: string;
6989
+ /** @format uuid */
6990
+ sourceTaskID?: string | null;
6858
6991
  user?: User | null;
6859
6992
  isFromLegacySource: boolean;
6860
6993
  usedInBusinessRule: boolean;
@@ -7212,6 +7345,17 @@ export interface UpdateLoanQueueRequest {
7212
7345
  data: any;
7213
7346
  }
7214
7347
 
7348
+ export interface UpdateLoanRoleTaskRequest {
7349
+ name?: string | null;
7350
+ description?: string | null;
7351
+ /** @format int32 */
7352
+ weight?: number | null;
7353
+ /** @format uuid */
7354
+ loanDocumentFolderId?: string | null;
7355
+ /** @format date */
7356
+ dueDate?: string | null;
7357
+ }
7358
+
7215
7359
  export interface UpdateMeRequest {
7216
7360
  phone?: string | null;
7217
7361
  firstName: string;
@@ -7613,6 +7757,12 @@ export interface UserLoanTaskUpdateRequest {
7613
7757
  value?: string | null;
7614
7758
  /** @format date */
7615
7759
  dueDate?: string | null;
7760
+ name?: string | null;
7761
+ description?: string | null;
7762
+ /** @format int32 */
7763
+ weight?: number | null;
7764
+ /** @format uuid */
7765
+ loanDocumentFolderId?: string | null;
7616
7766
  }
7617
7767
 
7618
7768
  export interface UserMobilePhoneVerificationRequest {
@@ -7818,7 +7968,8 @@ export type AiAuditLogEventTypeEnum =
7818
7968
  | "LoanUpdateProposed"
7819
7969
  | "LoanUpdateApplied"
7820
7970
  | "LoanUpdateRefused"
7821
- | "PromptTriggerCoalesced";
7971
+ | "PromptTriggerCoalesced"
7972
+ | "RecommendationRunCompleted";
7822
7973
 
7823
7974
  export type AiChatStructuredDataTypeEnum =
7824
7975
  | "Table"
@@ -7961,6 +8112,21 @@ export type CreateLoanImportRequestImportModeEnum =
7961
8112
  | "NewOnly"
7962
8113
  | "UpdateOnly";
7963
8114
 
8115
+ export type CreateLoanRoleTaskRequestRoleEnum =
8116
+ | "Borrower"
8117
+ | "CoBorrower"
8118
+ | "NonBorrower"
8119
+ | "LoanOfficer"
8120
+ | "LoanProcessor"
8121
+ | "LoanOfficerAssistant"
8122
+ | "SupportingLoanOfficer"
8123
+ | "BuyerAgent"
8124
+ | "SellerAgent"
8125
+ | "TitleInsuranceAgent"
8126
+ | "EscrowAgent"
8127
+ | "SettlementAgent"
8128
+ | "Admin";
8129
+
7964
8130
  export type CreateUserDraftLoanRoleEnum =
7965
8131
  | "Borrower"
7966
8132
  | "CoBorrower"
@@ -8238,7 +8404,8 @@ export type LoanLogTypeEnum =
8238
8404
  | "DocumentClassified"
8239
8405
  | "CoBorrowerEmailAutoFixed"
8240
8406
  | "LosFieldWriteBack"
8241
- | "ReferrerChangeDiscarded";
8407
+ | "ReferrerChangeDiscarded"
8408
+ | "TaskEdited";
8242
8409
 
8243
8410
  export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
8244
8411
 
@@ -8262,7 +8429,54 @@ export type LoanLogDetailTypeEnum =
8262
8429
  | "DocumentClassified"
8263
8430
  | "CoBorrowerEmailAutoFixed"
8264
8431
  | "LosFieldWriteBack"
8265
- | "ReferrerChangeDiscarded";
8432
+ | "ReferrerChangeDiscarded"
8433
+ | "TaskEdited";
8434
+
8435
+ export type LoanRoleSlotTasksRoleEnum =
8436
+ | "Borrower"
8437
+ | "CoBorrower"
8438
+ | "NonBorrower"
8439
+ | "LoanOfficer"
8440
+ | "LoanProcessor"
8441
+ | "LoanOfficerAssistant"
8442
+ | "SupportingLoanOfficer"
8443
+ | "BuyerAgent"
8444
+ | "SellerAgent"
8445
+ | "TitleInsuranceAgent"
8446
+ | "EscrowAgent"
8447
+ | "SettlementAgent"
8448
+ | "Admin";
8449
+
8450
+ export type LoanRoleTaskRoleEnum =
8451
+ | "Borrower"
8452
+ | "CoBorrower"
8453
+ | "NonBorrower"
8454
+ | "LoanOfficer"
8455
+ | "LoanProcessor"
8456
+ | "LoanOfficerAssistant"
8457
+ | "SupportingLoanOfficer"
8458
+ | "BuyerAgent"
8459
+ | "SellerAgent"
8460
+ | "TitleInsuranceAgent"
8461
+ | "EscrowAgent"
8462
+ | "SettlementAgent"
8463
+ | "Admin";
8464
+
8465
+ export type LoanRoleTaskTypeEnum =
8466
+ | "Document"
8467
+ | "Field"
8468
+ | "Signature"
8469
+ | "EDisclosure"
8470
+ | "EConsent"
8471
+ | "VerificationOfAssets"
8472
+ | "VerificationOfIncome"
8473
+ | "VerificationOfEmployment"
8474
+ | "VerificationOfCredit"
8475
+ | "Payment"
8476
+ | "VerificationOfIncomeAndEmployment"
8477
+ | "VerificationOfTaxes";
8478
+
8479
+ export type LoanRoleTaskSourceEnum = "Rule" | "Manual";
8266
8480
 
8267
8481
  export type LoanTaskStatusSummaryStatusEnum =
8268
8482
  | "Outstanding"
@@ -8768,7 +8982,7 @@ export class HttpClient<SecurityDataType = unknown> {
8768
8982
 
8769
8983
  /**
8770
8984
  * @title The Big POS API
8771
- * @version v3.7.0
8985
+ * @version v3.8.0
8772
8986
  * @termsOfService https://www.thebigpos.com/terms-of-use/
8773
8987
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
8774
8988
  */
@@ -16265,6 +16479,194 @@ export class Api<
16265
16479
  ...params,
16266
16480
  }),
16267
16481
 
16482
+ /**
16483
+ * No description
16484
+ *
16485
+ * @tags LoanRecommendations
16486
+ * @name GetLoanRecommendations
16487
+ * @summary Get a loan's open recommendations
16488
+ * @request GET:/api/loans/{loanId}/recommendations
16489
+ * @secure
16490
+ * @response `200` `(LoanRecommendation)[]` OK
16491
+ * @response `400` `ProblemDetails` Bad Request
16492
+ * @response `404` `ProblemDetails` Not Found
16493
+ */
16494
+ getLoanRecommendations: (loanId: string, params: RequestParams = {}) =>
16495
+ this.request<LoanRecommendation[], ProblemDetails>({
16496
+ path: `/api/loans/${loanId}/recommendations`,
16497
+ method: "GET",
16498
+ secure: true,
16499
+ format: "json",
16500
+ ...params,
16501
+ }),
16502
+
16503
+ /**
16504
+ * No description
16505
+ *
16506
+ * @tags LoanRecommendations
16507
+ * @name DismissLoanRecommendation
16508
+ * @summary Dismiss a loan recommendation
16509
+ * @request POST:/api/loans/{loanId}/recommendations/{id}/dismiss
16510
+ * @secure
16511
+ * @response `204` `void` No Content
16512
+ * @response `400` `ProblemDetails` Bad Request
16513
+ * @response `404` `ProblemDetails` Not Found
16514
+ */
16515
+ dismissLoanRecommendation: (
16516
+ loanId: string,
16517
+ id: string,
16518
+ params: RequestParams = {},
16519
+ ) =>
16520
+ this.request<void, ProblemDetails>({
16521
+ path: `/api/loans/${loanId}/recommendations/${id}/dismiss`,
16522
+ method: "POST",
16523
+ secure: true,
16524
+ ...params,
16525
+ }),
16526
+
16527
+ /**
16528
+ * No description
16529
+ *
16530
+ * @tags LoanRoleTasks
16531
+ * @name GetLoanRoleTasks
16532
+ * @summary Get queued tasks grouped by borrower slot
16533
+ * @request GET:/api/loans/{loanId}/role-tasks
16534
+ * @secure
16535
+ * @response `200` `(LoanRoleSlotTasks)[]` OK
16536
+ * @response `404` `ProblemDetails` Not Found
16537
+ */
16538
+ getLoanRoleTasks: (loanId: string, params: RequestParams = {}) =>
16539
+ this.request<LoanRoleSlotTasks[], ProblemDetails>({
16540
+ path: `/api/loans/${loanId}/role-tasks`,
16541
+ method: "GET",
16542
+ secure: true,
16543
+ format: "json",
16544
+ ...params,
16545
+ }),
16546
+
16547
+ /**
16548
+ * @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.
16549
+ *
16550
+ * @tags LoanRoleTasks
16551
+ * @name CreateLoanRoleTask
16552
+ * @summary Queue a task for a borrower slot
16553
+ * @request POST:/api/loans/{loanId}/role-tasks
16554
+ * @secure
16555
+ * @response `201` `LoanRoleTask` Created
16556
+ * @response `400` `ProblemDetails` Bad Request
16557
+ * @response `404` `ProblemDetails` Not Found
16558
+ * @response `409` `ProblemDetails` Conflict
16559
+ * @response `422` `ProblemDetails` Unprocessable Content
16560
+ */
16561
+ createLoanRoleTask: (
16562
+ loanId: string,
16563
+ data: CreateLoanRoleTaskRequest,
16564
+ params: RequestParams = {},
16565
+ ) =>
16566
+ this.request<LoanRoleTask, ProblemDetails>({
16567
+ path: `/api/loans/${loanId}/role-tasks`,
16568
+ method: "POST",
16569
+ body: data,
16570
+ secure: true,
16571
+ type: "application/json",
16572
+ format: "json",
16573
+ ...params,
16574
+ }),
16575
+
16576
+ /**
16577
+ * No description
16578
+ *
16579
+ * @tags LoanRoleTasks
16580
+ * @name GetLoanRoleTask
16581
+ * @summary Get a queued task
16582
+ * @request GET:/api/loans/{loanId}/role-tasks/{id}
16583
+ * @secure
16584
+ * @response `200` `LoanRoleTask` OK
16585
+ * @response `404` `ProblemDetails` Not Found
16586
+ */
16587
+ getLoanRoleTask: (loanId: string, id: string, params: RequestParams = {}) =>
16588
+ this.request<LoanRoleTask, ProblemDetails>({
16589
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16590
+ method: "GET",
16591
+ secure: true,
16592
+ format: "json",
16593
+ ...params,
16594
+ }),
16595
+
16596
+ /**
16597
+ * @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.
16598
+ *
16599
+ * @tags LoanRoleTasks
16600
+ * @name UpdateLoanRoleTask
16601
+ * @summary Edit a queued task
16602
+ * @request PUT:/api/loans/{loanId}/role-tasks/{id}
16603
+ * @secure
16604
+ * @response `200` `LoanRoleTask` OK
16605
+ * @response `400` `ProblemDetails` Bad Request
16606
+ * @response `404` `ProblemDetails` Not Found
16607
+ * @response `409` `ProblemDetails` Conflict
16608
+ * @response `422` `ProblemDetails` Unprocessable Content
16609
+ */
16610
+ updateLoanRoleTask: (
16611
+ loanId: string,
16612
+ id: string,
16613
+ data: UpdateLoanRoleTaskRequest,
16614
+ params: RequestParams = {},
16615
+ ) =>
16616
+ this.request<LoanRoleTask, ProblemDetails>({
16617
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16618
+ method: "PUT",
16619
+ body: data,
16620
+ secure: true,
16621
+ type: "application/json",
16622
+ format: "json",
16623
+ ...params,
16624
+ }),
16625
+
16626
+ /**
16627
+ * @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.
16628
+ *
16629
+ * @tags LoanRoleTasks
16630
+ * @name DeleteLoanRoleTask
16631
+ * @summary Remove a queued task
16632
+ * @request DELETE:/api/loans/{loanId}/role-tasks/{id}
16633
+ * @secure
16634
+ * @response `204` `void` No Content
16635
+ * @response `404` `ProblemDetails` Not Found
16636
+ * @response `409` `ProblemDetails` Conflict
16637
+ */
16638
+ deleteLoanRoleTask: (
16639
+ loanId: string,
16640
+ id: string,
16641
+ params: RequestParams = {},
16642
+ ) =>
16643
+ this.request<void, ProblemDetails>({
16644
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16645
+ method: "DELETE",
16646
+ secure: true,
16647
+ ...params,
16648
+ }),
16649
+
16650
+ /**
16651
+ * @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.
16652
+ *
16653
+ * @tags LoanRoleTasks
16654
+ * @name MaterializeLoanRoleTasks
16655
+ * @summary Queue the business rule defaults
16656
+ * @request POST:/api/loans/{loanId}/role-tasks/materialize
16657
+ * @secure
16658
+ * @response `200` `MaterializeLoanRoleTasks` OK
16659
+ * @response `404` `ProblemDetails` Not Found
16660
+ */
16661
+ materializeLoanRoleTasks: (loanId: string, params: RequestParams = {}) =>
16662
+ this.request<MaterializeLoanRoleTasks, ProblemDetails>({
16663
+ path: `/api/loans/${loanId}/role-tasks/materialize`,
16664
+ method: "POST",
16665
+ secure: true,
16666
+ format: "json",
16667
+ ...params,
16668
+ }),
16669
+
16268
16670
  /**
16269
16671
  * No description
16270
16672
  *
@@ -16416,6 +16818,63 @@ export class Api<
16416
16818
  ...params,
16417
16819
  }),
16418
16820
 
16821
+ /**
16822
+ * No description
16823
+ *
16824
+ * @tags Loans
16825
+ * @name GetBorrowerApplicationSession
16826
+ * @summary Get borrower application session
16827
+ * @request GET:/api/loans/{loanId}/borrowers/{borrowerId}/application-session
16828
+ * @secure
16829
+ * @response `200` `LoanApplicationSession` OK
16830
+ * @response `400` `any` Bad Request
16831
+ * @response `401` `ProblemDetails` Unauthorized
16832
+ * @response `403` `ProblemDetails` Forbidden
16833
+ * @response `404` `ProblemDetails` Not Found
16834
+ */
16835
+ getBorrowerApplicationSession: (
16836
+ loanId: string,
16837
+ borrowerId: string,
16838
+ params: RequestParams = {},
16839
+ ) =>
16840
+ this.request<LoanApplicationSession, ProblemDetails>({
16841
+ path: `/api/loans/${loanId}/borrowers/${borrowerId}/application-session`,
16842
+ method: "GET",
16843
+ secure: true,
16844
+ format: "json",
16845
+ ...params,
16846
+ }),
16847
+
16848
+ /**
16849
+ * No description
16850
+ *
16851
+ * @tags Loans
16852
+ * @name UpdateBorrowerApplicationSession
16853
+ * @summary Update borrower application session
16854
+ * @request PUT:/api/loans/{loanId}/borrowers/{borrowerId}/application-session
16855
+ * @secure
16856
+ * @response `200` `LoanApplicationSession` OK
16857
+ * @response `400` `any` Bad Request
16858
+ * @response `401` `ProblemDetails` Unauthorized
16859
+ * @response `403` `ProblemDetails` Forbidden
16860
+ * @response `404` `ProblemDetails` Not Found
16861
+ */
16862
+ updateBorrowerApplicationSession: (
16863
+ loanId: string,
16864
+ borrowerId: string,
16865
+ data: LoanApplicationSessionRequest,
16866
+ params: RequestParams = {},
16867
+ ) =>
16868
+ this.request<LoanApplicationSession, ProblemDetails>({
16869
+ path: `/api/loans/${loanId}/borrowers/${borrowerId}/application-session`,
16870
+ method: "PUT",
16871
+ body: data,
16872
+ secure: true,
16873
+ type: "application/json",
16874
+ format: "json",
16875
+ ...params,
16876
+ }),
16877
+
16419
16878
  /**
16420
16879
  * No description
16421
16880
  *
@@ -17075,6 +17534,7 @@ export class Api<
17075
17534
  * @request POST:/api/loans/{loanId}/users/{userId}
17076
17535
  * @secure
17077
17536
  * @response `201` `LoanUser` Created
17537
+ * @response `404` `ProblemDetails` Not Found
17078
17538
  */
17079
17539
  addLoanUser: (
17080
17540
  loanId: string,
@@ -17082,7 +17542,7 @@ export class Api<
17082
17542
  data: CreateUserLoan,
17083
17543
  params: RequestParams = {},
17084
17544
  ) =>
17085
- this.request<LoanUser, any>({
17545
+ this.request<LoanUser, ProblemDetails>({
17086
17546
  path: `/api/loans/${loanId}/users/${userId}`,
17087
17547
  method: "POST",
17088
17548
  body: data,