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

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
 
@@ -2124,6 +2141,16 @@ export interface CreateLoanImportRequest {
2124
2141
  importMode: CreateLoanImportRequestImportModeEnum;
2125
2142
  }
2126
2143
 
2144
+ export interface CreateLoanRoleTaskRequest {
2145
+ /** @format uuid */
2146
+ taskId: string;
2147
+ role: CreateLoanRoleTaskRequestRoleEnum;
2148
+ /** @format int32 */
2149
+ borrowerPair: number;
2150
+ /** @format int32 */
2151
+ borrowerPosition: number;
2152
+ }
2153
+
2127
2154
  export interface CreateSession {
2128
2155
  sessionId: string;
2129
2156
  sessionUrl: string;
@@ -2577,6 +2604,7 @@ export interface EnabledServices {
2577
2604
  ringCentral?: boolean | null;
2578
2605
  socialSurvey?: boolean | null;
2579
2606
  borrowerTasks?: boolean | null;
2607
+ preBorrowerTasks?: boolean | null;
2580
2608
  docusign?: boolean | null;
2581
2609
  emailNotifications?: boolean | null;
2582
2610
  autoTaskReminders?: boolean | null;
@@ -5059,6 +5087,54 @@ export interface LoanRefinanceRequest {
5059
5087
  currentLoan?: LoanRefinanceCurrentLoanRequest | null;
5060
5088
  }
5061
5089
 
5090
+ export interface LoanRoleSlotTasks {
5091
+ role: LoanRoleSlotTasksRoleEnum;
5092
+ /** @format int32 */
5093
+ borrowerPair: number;
5094
+ /** @format int32 */
5095
+ borrowerPosition: number;
5096
+ tasks: LoanRoleTask[];
5097
+ }
5098
+
5099
+ export interface LoanRoleTask {
5100
+ /** @format uuid */
5101
+ id: string;
5102
+ /** @format uuid */
5103
+ loanId: string;
5104
+ role: LoanRoleTaskRoleEnum;
5105
+ /** @format int32 */
5106
+ borrowerPair: number;
5107
+ /** @format int32 */
5108
+ borrowerPosition: number;
5109
+ /** @format uuid */
5110
+ definitionTaskId: string;
5111
+ /** @format uuid */
5112
+ taskId: string;
5113
+ name: string;
5114
+ description?: string | null;
5115
+ type: LoanRoleTaskTypeEnum;
5116
+ losTarget?: string | null;
5117
+ /** @format int32 */
5118
+ daysDueFromApplication?: number | null;
5119
+ /** @format int32 */
5120
+ weight: number;
5121
+ willAutocompleteAfterResponse: boolean;
5122
+ /** @format uuid */
5123
+ loanDocumentFolderId?: string | null;
5124
+ /** @format date */
5125
+ dueDate?: string | null;
5126
+ source: LoanRoleTaskSourceEnum;
5127
+ isAttached: boolean;
5128
+ /** @format uuid */
5129
+ attachedUserLoanTaskId?: string | null;
5130
+ /** @format date-time */
5131
+ attachedAt?: string | null;
5132
+ /** @format uuid */
5133
+ createdById?: string | null;
5134
+ /** @format date-time */
5135
+ createdAt: string;
5136
+ }
5137
+
5062
5138
  export interface LoanSearchCriteria {
5063
5139
  searchText?: string | null;
5064
5140
  searchTerms?: string[] | null;
@@ -5087,6 +5163,7 @@ export interface LoanSearchCriteria {
5087
5163
  closingFrom?: string | null;
5088
5164
  /** @format date */
5089
5165
  closingTo?: string | null;
5166
+ milestoneConfigurationIds?: string[] | null;
5090
5167
  }
5091
5168
 
5092
5169
  export interface LoanSettings {
@@ -5422,6 +5499,11 @@ export interface ManualDocumentClassificationRequest {
5422
5499
  documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
5423
5500
  }
5424
5501
 
5502
+ export interface MaterializeLoanRoleTasks {
5503
+ /** @format int32 */
5504
+ rowsAdded: number;
5505
+ }
5506
+
5425
5507
  export interface MdmUser {
5426
5508
  user_email?: string | null;
5427
5509
  user_id?: string | null;
@@ -6855,6 +6937,8 @@ export interface Task {
6855
6937
  isGlobal: boolean;
6856
6938
  /** @format uuid */
6857
6939
  id: string;
6940
+ /** @format uuid */
6941
+ sourceTaskID?: string | null;
6858
6942
  user?: User | null;
6859
6943
  isFromLegacySource: boolean;
6860
6944
  usedInBusinessRule: boolean;
@@ -7212,6 +7296,17 @@ export interface UpdateLoanQueueRequest {
7212
7296
  data: any;
7213
7297
  }
7214
7298
 
7299
+ export interface UpdateLoanRoleTaskRequest {
7300
+ name?: string | null;
7301
+ description?: string | null;
7302
+ /** @format int32 */
7303
+ weight?: number | null;
7304
+ /** @format uuid */
7305
+ loanDocumentFolderId?: string | null;
7306
+ /** @format date */
7307
+ dueDate?: string | null;
7308
+ }
7309
+
7215
7310
  export interface UpdateMeRequest {
7216
7311
  phone?: string | null;
7217
7312
  firstName: string;
@@ -7613,6 +7708,12 @@ export interface UserLoanTaskUpdateRequest {
7613
7708
  value?: string | null;
7614
7709
  /** @format date */
7615
7710
  dueDate?: string | null;
7711
+ name?: string | null;
7712
+ description?: string | null;
7713
+ /** @format int32 */
7714
+ weight?: number | null;
7715
+ /** @format uuid */
7716
+ loanDocumentFolderId?: string | null;
7616
7717
  }
7617
7718
 
7618
7719
  export interface UserMobilePhoneVerificationRequest {
@@ -7961,6 +8062,21 @@ export type CreateLoanImportRequestImportModeEnum =
7961
8062
  | "NewOnly"
7962
8063
  | "UpdateOnly";
7963
8064
 
8065
+ export type CreateLoanRoleTaskRequestRoleEnum =
8066
+ | "Borrower"
8067
+ | "CoBorrower"
8068
+ | "NonBorrower"
8069
+ | "LoanOfficer"
8070
+ | "LoanProcessor"
8071
+ | "LoanOfficerAssistant"
8072
+ | "SupportingLoanOfficer"
8073
+ | "BuyerAgent"
8074
+ | "SellerAgent"
8075
+ | "TitleInsuranceAgent"
8076
+ | "EscrowAgent"
8077
+ | "SettlementAgent"
8078
+ | "Admin";
8079
+
7964
8080
  export type CreateUserDraftLoanRoleEnum =
7965
8081
  | "Borrower"
7966
8082
  | "CoBorrower"
@@ -8238,7 +8354,8 @@ export type LoanLogTypeEnum =
8238
8354
  | "DocumentClassified"
8239
8355
  | "CoBorrowerEmailAutoFixed"
8240
8356
  | "LosFieldWriteBack"
8241
- | "ReferrerChangeDiscarded";
8357
+ | "ReferrerChangeDiscarded"
8358
+ | "TaskEdited";
8242
8359
 
8243
8360
  export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
8244
8361
 
@@ -8262,7 +8379,54 @@ export type LoanLogDetailTypeEnum =
8262
8379
  | "DocumentClassified"
8263
8380
  | "CoBorrowerEmailAutoFixed"
8264
8381
  | "LosFieldWriteBack"
8265
- | "ReferrerChangeDiscarded";
8382
+ | "ReferrerChangeDiscarded"
8383
+ | "TaskEdited";
8384
+
8385
+ export type LoanRoleSlotTasksRoleEnum =
8386
+ | "Borrower"
8387
+ | "CoBorrower"
8388
+ | "NonBorrower"
8389
+ | "LoanOfficer"
8390
+ | "LoanProcessor"
8391
+ | "LoanOfficerAssistant"
8392
+ | "SupportingLoanOfficer"
8393
+ | "BuyerAgent"
8394
+ | "SellerAgent"
8395
+ | "TitleInsuranceAgent"
8396
+ | "EscrowAgent"
8397
+ | "SettlementAgent"
8398
+ | "Admin";
8399
+
8400
+ export type LoanRoleTaskRoleEnum =
8401
+ | "Borrower"
8402
+ | "CoBorrower"
8403
+ | "NonBorrower"
8404
+ | "LoanOfficer"
8405
+ | "LoanProcessor"
8406
+ | "LoanOfficerAssistant"
8407
+ | "SupportingLoanOfficer"
8408
+ | "BuyerAgent"
8409
+ | "SellerAgent"
8410
+ | "TitleInsuranceAgent"
8411
+ | "EscrowAgent"
8412
+ | "SettlementAgent"
8413
+ | "Admin";
8414
+
8415
+ export type LoanRoleTaskTypeEnum =
8416
+ | "Document"
8417
+ | "Field"
8418
+ | "Signature"
8419
+ | "EDisclosure"
8420
+ | "EConsent"
8421
+ | "VerificationOfAssets"
8422
+ | "VerificationOfIncome"
8423
+ | "VerificationOfEmployment"
8424
+ | "VerificationOfCredit"
8425
+ | "Payment"
8426
+ | "VerificationOfIncomeAndEmployment"
8427
+ | "VerificationOfTaxes";
8428
+
8429
+ export type LoanRoleTaskSourceEnum = "Rule" | "Manual";
8266
8430
 
8267
8431
  export type LoanTaskStatusSummaryStatusEnum =
8268
8432
  | "Outstanding"
@@ -16265,6 +16429,149 @@ export class Api<
16265
16429
  ...params,
16266
16430
  }),
16267
16431
 
16432
+ /**
16433
+ * No description
16434
+ *
16435
+ * @tags LoanRoleTasks
16436
+ * @name GetLoanRoleTasks
16437
+ * @summary Get queued tasks grouped by borrower slot
16438
+ * @request GET:/api/loans/{loanId}/role-tasks
16439
+ * @secure
16440
+ * @response `200` `(LoanRoleSlotTasks)[]` OK
16441
+ * @response `404` `ProblemDetails` Not Found
16442
+ */
16443
+ getLoanRoleTasks: (loanId: string, params: RequestParams = {}) =>
16444
+ this.request<LoanRoleSlotTasks[], ProblemDetails>({
16445
+ path: `/api/loans/${loanId}/role-tasks`,
16446
+ method: "GET",
16447
+ secure: true,
16448
+ format: "json",
16449
+ ...params,
16450
+ }),
16451
+
16452
+ /**
16453
+ * @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.
16454
+ *
16455
+ * @tags LoanRoleTasks
16456
+ * @name CreateLoanRoleTask
16457
+ * @summary Queue a task for a borrower slot
16458
+ * @request POST:/api/loans/{loanId}/role-tasks
16459
+ * @secure
16460
+ * @response `201` `LoanRoleTask` Created
16461
+ * @response `400` `ProblemDetails` Bad Request
16462
+ * @response `404` `ProblemDetails` Not Found
16463
+ * @response `409` `ProblemDetails` Conflict
16464
+ * @response `422` `ProblemDetails` Unprocessable Content
16465
+ */
16466
+ createLoanRoleTask: (
16467
+ loanId: string,
16468
+ data: CreateLoanRoleTaskRequest,
16469
+ params: RequestParams = {},
16470
+ ) =>
16471
+ this.request<LoanRoleTask, ProblemDetails>({
16472
+ path: `/api/loans/${loanId}/role-tasks`,
16473
+ method: "POST",
16474
+ body: data,
16475
+ secure: true,
16476
+ type: "application/json",
16477
+ format: "json",
16478
+ ...params,
16479
+ }),
16480
+
16481
+ /**
16482
+ * No description
16483
+ *
16484
+ * @tags LoanRoleTasks
16485
+ * @name GetLoanRoleTask
16486
+ * @summary Get a queued task
16487
+ * @request GET:/api/loans/{loanId}/role-tasks/{id}
16488
+ * @secure
16489
+ * @response `200` `LoanRoleTask` OK
16490
+ * @response `404` `ProblemDetails` Not Found
16491
+ */
16492
+ getLoanRoleTask: (loanId: string, id: string, params: RequestParams = {}) =>
16493
+ this.request<LoanRoleTask, ProblemDetails>({
16494
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16495
+ method: "GET",
16496
+ secure: true,
16497
+ format: "json",
16498
+ ...params,
16499
+ }),
16500
+
16501
+ /**
16502
+ * @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.
16503
+ *
16504
+ * @tags LoanRoleTasks
16505
+ * @name UpdateLoanRoleTask
16506
+ * @summary Edit a queued task
16507
+ * @request PUT:/api/loans/{loanId}/role-tasks/{id}
16508
+ * @secure
16509
+ * @response `200` `LoanRoleTask` OK
16510
+ * @response `400` `ProblemDetails` Bad Request
16511
+ * @response `404` `ProblemDetails` Not Found
16512
+ * @response `409` `ProblemDetails` Conflict
16513
+ * @response `422` `ProblemDetails` Unprocessable Content
16514
+ */
16515
+ updateLoanRoleTask: (
16516
+ loanId: string,
16517
+ id: string,
16518
+ data: UpdateLoanRoleTaskRequest,
16519
+ params: RequestParams = {},
16520
+ ) =>
16521
+ this.request<LoanRoleTask, ProblemDetails>({
16522
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16523
+ method: "PUT",
16524
+ body: data,
16525
+ secure: true,
16526
+ type: "application/json",
16527
+ format: "json",
16528
+ ...params,
16529
+ }),
16530
+
16531
+ /**
16532
+ * @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.
16533
+ *
16534
+ * @tags LoanRoleTasks
16535
+ * @name DeleteLoanRoleTask
16536
+ * @summary Remove a queued task
16537
+ * @request DELETE:/api/loans/{loanId}/role-tasks/{id}
16538
+ * @secure
16539
+ * @response `204` `void` No Content
16540
+ * @response `404` `ProblemDetails` Not Found
16541
+ * @response `409` `ProblemDetails` Conflict
16542
+ */
16543
+ deleteLoanRoleTask: (
16544
+ loanId: string,
16545
+ id: string,
16546
+ params: RequestParams = {},
16547
+ ) =>
16548
+ this.request<void, ProblemDetails>({
16549
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16550
+ method: "DELETE",
16551
+ secure: true,
16552
+ ...params,
16553
+ }),
16554
+
16555
+ /**
16556
+ * @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.
16557
+ *
16558
+ * @tags LoanRoleTasks
16559
+ * @name MaterializeLoanRoleTasks
16560
+ * @summary Queue the business rule defaults
16561
+ * @request POST:/api/loans/{loanId}/role-tasks/materialize
16562
+ * @secure
16563
+ * @response `200` `MaterializeLoanRoleTasks` OK
16564
+ * @response `404` `ProblemDetails` Not Found
16565
+ */
16566
+ materializeLoanRoleTasks: (loanId: string, params: RequestParams = {}) =>
16567
+ this.request<MaterializeLoanRoleTasks, ProblemDetails>({
16568
+ path: `/api/loans/${loanId}/role-tasks/materialize`,
16569
+ method: "POST",
16570
+ secure: true,
16571
+ format: "json",
16572
+ ...params,
16573
+ }),
16574
+
16268
16575
  /**
16269
16576
  * No description
16270
16577
  *