@matech/thebigpos-sdk 3.7.0-dev-3524 → 3.7.0-main-3537

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,20 +23,6 @@ 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
-
40
26
  export type TaskStatus =
41
27
  | "Outstanding"
42
28
  | "Pending"
@@ -110,8 +96,6 @@ export type LoanTitleHeld =
110
96
 
111
97
  export type LoanTaskActivityFilter = "Active" | "Inactive" | "All";
112
98
 
113
- export type LoanRoleTaskSource = "Rule" | "Manual";
114
-
115
99
  export type LoanRole =
116
100
  | "Borrower"
117
101
  | "CoBorrower"
@@ -286,8 +270,7 @@ export type LoanLogType =
286
270
  | "DocumentClassified"
287
271
  | "CoBorrowerEmailAutoFixed"
288
272
  | "LosFieldWriteBack"
289
- | "ReferrerChangeDiscarded"
290
- | "TaskEdited";
273
+ | "ReferrerChangeDiscarded";
291
274
 
292
275
  export type LoanLienPosition = "First" | "Subordinate";
293
276
 
@@ -664,8 +647,7 @@ export type AiAuditEventType =
664
647
  | "LoanUpdateProposed"
665
648
  | "LoanUpdateApplied"
666
649
  | "LoanUpdateRefused"
667
- | "PromptTriggerCoalesced"
668
- | "RecommendationRunCompleted";
650
+ | "PromptTriggerCoalesced";
669
651
 
670
652
  export type AddressFamily =
671
653
  | "Unspecified"
@@ -2142,16 +2124,6 @@ export interface CreateLoanImportRequest {
2142
2124
  importMode: CreateLoanImportRequestImportModeEnum;
2143
2125
  }
2144
2126
 
2145
- export interface CreateLoanRoleTaskRequest {
2146
- /** @format uuid */
2147
- taskId: string;
2148
- role: CreateLoanRoleTaskRequestRoleEnum;
2149
- /** @format int32 */
2150
- borrowerPair: number;
2151
- /** @format int32 */
2152
- borrowerPosition: number;
2153
- }
2154
-
2155
2127
  export interface CreateSession {
2156
2128
  sessionId: string;
2157
2129
  sessionUrl: string;
@@ -2605,7 +2577,6 @@ export interface EnabledServices {
2605
2577
  ringCentral?: boolean | null;
2606
2578
  socialSurvey?: boolean | null;
2607
2579
  borrowerTasks?: boolean | null;
2608
- preBorrowerTasks?: boolean | null;
2609
2580
  docusign?: boolean | null;
2610
2581
  emailNotifications?: boolean | null;
2611
2582
  autoTaskReminders?: boolean | null;
@@ -5035,25 +5006,6 @@ export interface LoanQueueWithData {
5035
5006
  data?: any | null;
5036
5007
  }
5037
5008
 
5038
- export interface LoanRecommendation {
5039
- /** @format uuid */
5040
- id: string;
5041
- canonicalName: string;
5042
- displayName: string;
5043
- extractedValue: string;
5044
- currentLoanValue?: any | null;
5045
- /** @format uuid */
5046
- sourceDocumentId: string;
5047
- sourceDocumentName?: string | null;
5048
- /** @format float */
5049
- confidence: number;
5050
- /** @format uuid */
5051
- borrowerId?: string | null;
5052
- borrowerName?: string | null;
5053
- /** @format date-time */
5054
- detectedAt: string;
5055
- }
5056
-
5057
5009
  export interface LoanRecord {
5058
5010
  loanGuid: string;
5059
5011
  loanFields: Record<string, string>;
@@ -5107,54 +5059,6 @@ export interface LoanRefinanceRequest {
5107
5059
  currentLoan?: LoanRefinanceCurrentLoanRequest | null;
5108
5060
  }
5109
5061
 
5110
- export interface LoanRoleSlotTasks {
5111
- role: LoanRoleSlotTasksRoleEnum;
5112
- /** @format int32 */
5113
- borrowerPair: number;
5114
- /** @format int32 */
5115
- borrowerPosition: number;
5116
- tasks: LoanRoleTask[];
5117
- }
5118
-
5119
- export interface LoanRoleTask {
5120
- /** @format uuid */
5121
- id: string;
5122
- /** @format uuid */
5123
- loanId: string;
5124
- role: LoanRoleTaskRoleEnum;
5125
- /** @format int32 */
5126
- borrowerPair: number;
5127
- /** @format int32 */
5128
- borrowerPosition: number;
5129
- /** @format uuid */
5130
- definitionTaskId: string;
5131
- /** @format uuid */
5132
- taskId: string;
5133
- name: string;
5134
- description?: string | null;
5135
- type: LoanRoleTaskTypeEnum;
5136
- losTarget?: string | null;
5137
- /** @format int32 */
5138
- daysDueFromApplication?: number | null;
5139
- /** @format int32 */
5140
- weight: number;
5141
- willAutocompleteAfterResponse: boolean;
5142
- /** @format uuid */
5143
- loanDocumentFolderId?: string | null;
5144
- /** @format date */
5145
- dueDate?: string | null;
5146
- source: LoanRoleTaskSourceEnum;
5147
- isAttached: boolean;
5148
- /** @format uuid */
5149
- attachedUserLoanTaskId?: string | null;
5150
- /** @format date-time */
5151
- attachedAt?: string | null;
5152
- /** @format uuid */
5153
- createdById?: string | null;
5154
- /** @format date-time */
5155
- createdAt: string;
5156
- }
5157
-
5158
5062
  export interface LoanSearchCriteria {
5159
5063
  searchText?: string | null;
5160
5064
  searchTerms?: string[] | null;
@@ -5183,7 +5087,6 @@ export interface LoanSearchCriteria {
5183
5087
  closingFrom?: string | null;
5184
5088
  /** @format date */
5185
5089
  closingTo?: string | null;
5186
- milestoneConfigurationIds?: string[] | null;
5187
5090
  }
5188
5091
 
5189
5092
  export interface LoanSettings {
@@ -5519,11 +5422,6 @@ export interface ManualDocumentClassificationRequest {
5519
5422
  documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
5520
5423
  }
5521
5424
 
5522
- export interface MaterializeLoanRoleTasks {
5523
- /** @format int32 */
5524
- rowsAdded: number;
5525
- }
5526
-
5527
5425
  export interface MdmUser {
5528
5426
  user_email?: string | null;
5529
5427
  user_id?: string | null;
@@ -6957,8 +6855,6 @@ export interface Task {
6957
6855
  isGlobal: boolean;
6958
6856
  /** @format uuid */
6959
6857
  id: string;
6960
- /** @format uuid */
6961
- sourceTaskID?: string | null;
6962
6858
  user?: User | null;
6963
6859
  isFromLegacySource: boolean;
6964
6860
  usedInBusinessRule: boolean;
@@ -7316,17 +7212,6 @@ export interface UpdateLoanQueueRequest {
7316
7212
  data: any;
7317
7213
  }
7318
7214
 
7319
- export interface UpdateLoanRoleTaskRequest {
7320
- name?: string | null;
7321
- description?: string | null;
7322
- /** @format int32 */
7323
- weight?: number | null;
7324
- /** @format uuid */
7325
- loanDocumentFolderId?: string | null;
7326
- /** @format date */
7327
- dueDate?: string | null;
7328
- }
7329
-
7330
7215
  export interface UpdateMeRequest {
7331
7216
  phone?: string | null;
7332
7217
  firstName: string;
@@ -7728,12 +7613,6 @@ export interface UserLoanTaskUpdateRequest {
7728
7613
  value?: string | null;
7729
7614
  /** @format date */
7730
7615
  dueDate?: string | null;
7731
- name?: string | null;
7732
- description?: string | null;
7733
- /** @format int32 */
7734
- weight?: number | null;
7735
- /** @format uuid */
7736
- loanDocumentFolderId?: string | null;
7737
7616
  }
7738
7617
 
7739
7618
  export interface UserMobilePhoneVerificationRequest {
@@ -7939,8 +7818,7 @@ export type AiAuditLogEventTypeEnum =
7939
7818
  | "LoanUpdateProposed"
7940
7819
  | "LoanUpdateApplied"
7941
7820
  | "LoanUpdateRefused"
7942
- | "PromptTriggerCoalesced"
7943
- | "RecommendationRunCompleted";
7821
+ | "PromptTriggerCoalesced";
7944
7822
 
7945
7823
  export type AiChatStructuredDataTypeEnum =
7946
7824
  | "Table"
@@ -8083,21 +7961,6 @@ export type CreateLoanImportRequestImportModeEnum =
8083
7961
  | "NewOnly"
8084
7962
  | "UpdateOnly";
8085
7963
 
8086
- export type CreateLoanRoleTaskRequestRoleEnum =
8087
- | "Borrower"
8088
- | "CoBorrower"
8089
- | "NonBorrower"
8090
- | "LoanOfficer"
8091
- | "LoanProcessor"
8092
- | "LoanOfficerAssistant"
8093
- | "SupportingLoanOfficer"
8094
- | "BuyerAgent"
8095
- | "SellerAgent"
8096
- | "TitleInsuranceAgent"
8097
- | "EscrowAgent"
8098
- | "SettlementAgent"
8099
- | "Admin";
8100
-
8101
7964
  export type CreateUserDraftLoanRoleEnum =
8102
7965
  | "Borrower"
8103
7966
  | "CoBorrower"
@@ -8375,8 +8238,7 @@ export type LoanLogTypeEnum =
8375
8238
  | "DocumentClassified"
8376
8239
  | "CoBorrowerEmailAutoFixed"
8377
8240
  | "LosFieldWriteBack"
8378
- | "ReferrerChangeDiscarded"
8379
- | "TaskEdited";
8241
+ | "ReferrerChangeDiscarded";
8380
8242
 
8381
8243
  export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
8382
8244
 
@@ -8400,54 +8262,7 @@ export type LoanLogDetailTypeEnum =
8400
8262
  | "DocumentClassified"
8401
8263
  | "CoBorrowerEmailAutoFixed"
8402
8264
  | "LosFieldWriteBack"
8403
- | "ReferrerChangeDiscarded"
8404
- | "TaskEdited";
8405
-
8406
- export type LoanRoleSlotTasksRoleEnum =
8407
- | "Borrower"
8408
- | "CoBorrower"
8409
- | "NonBorrower"
8410
- | "LoanOfficer"
8411
- | "LoanProcessor"
8412
- | "LoanOfficerAssistant"
8413
- | "SupportingLoanOfficer"
8414
- | "BuyerAgent"
8415
- | "SellerAgent"
8416
- | "TitleInsuranceAgent"
8417
- | "EscrowAgent"
8418
- | "SettlementAgent"
8419
- | "Admin";
8420
-
8421
- export type LoanRoleTaskRoleEnum =
8422
- | "Borrower"
8423
- | "CoBorrower"
8424
- | "NonBorrower"
8425
- | "LoanOfficer"
8426
- | "LoanProcessor"
8427
- | "LoanOfficerAssistant"
8428
- | "SupportingLoanOfficer"
8429
- | "BuyerAgent"
8430
- | "SellerAgent"
8431
- | "TitleInsuranceAgent"
8432
- | "EscrowAgent"
8433
- | "SettlementAgent"
8434
- | "Admin";
8435
-
8436
- export type LoanRoleTaskTypeEnum =
8437
- | "Document"
8438
- | "Field"
8439
- | "Signature"
8440
- | "EDisclosure"
8441
- | "EConsent"
8442
- | "VerificationOfAssets"
8443
- | "VerificationOfIncome"
8444
- | "VerificationOfEmployment"
8445
- | "VerificationOfCredit"
8446
- | "Payment"
8447
- | "VerificationOfIncomeAndEmployment"
8448
- | "VerificationOfTaxes";
8449
-
8450
- export type LoanRoleTaskSourceEnum = "Rule" | "Manual";
8265
+ | "ReferrerChangeDiscarded";
8451
8266
 
8452
8267
  export type LoanTaskStatusSummaryStatusEnum =
8453
8268
  | "Outstanding"
@@ -16450,194 +16265,6 @@ export class Api<
16450
16265
  ...params,
16451
16266
  }),
16452
16267
 
16453
- /**
16454
- * No description
16455
- *
16456
- * @tags LoanRecommendations
16457
- * @name GetLoanRecommendations
16458
- * @summary Get a loan's open recommendations
16459
- * @request GET:/api/loans/{loanId}/recommendations
16460
- * @secure
16461
- * @response `200` `(LoanRecommendation)[]` OK
16462
- * @response `400` `ProblemDetails` Bad Request
16463
- * @response `404` `ProblemDetails` Not Found
16464
- */
16465
- getLoanRecommendations: (loanId: string, params: RequestParams = {}) =>
16466
- this.request<LoanRecommendation[], ProblemDetails>({
16467
- path: `/api/loans/${loanId}/recommendations`,
16468
- method: "GET",
16469
- secure: true,
16470
- format: "json",
16471
- ...params,
16472
- }),
16473
-
16474
- /**
16475
- * No description
16476
- *
16477
- * @tags LoanRecommendations
16478
- * @name DismissLoanRecommendation
16479
- * @summary Dismiss a loan recommendation
16480
- * @request POST:/api/loans/{loanId}/recommendations/{id}/dismiss
16481
- * @secure
16482
- * @response `204` `void` No Content
16483
- * @response `400` `ProblemDetails` Bad Request
16484
- * @response `404` `ProblemDetails` Not Found
16485
- */
16486
- dismissLoanRecommendation: (
16487
- loanId: string,
16488
- id: string,
16489
- params: RequestParams = {},
16490
- ) =>
16491
- this.request<void, ProblemDetails>({
16492
- path: `/api/loans/${loanId}/recommendations/${id}/dismiss`,
16493
- method: "POST",
16494
- secure: true,
16495
- ...params,
16496
- }),
16497
-
16498
- /**
16499
- * No description
16500
- *
16501
- * @tags LoanRoleTasks
16502
- * @name GetLoanRoleTasks
16503
- * @summary Get queued tasks grouped by borrower slot
16504
- * @request GET:/api/loans/{loanId}/role-tasks
16505
- * @secure
16506
- * @response `200` `(LoanRoleSlotTasks)[]` OK
16507
- * @response `404` `ProblemDetails` Not Found
16508
- */
16509
- getLoanRoleTasks: (loanId: string, params: RequestParams = {}) =>
16510
- this.request<LoanRoleSlotTasks[], ProblemDetails>({
16511
- path: `/api/loans/${loanId}/role-tasks`,
16512
- method: "GET",
16513
- secure: true,
16514
- format: "json",
16515
- ...params,
16516
- }),
16517
-
16518
- /**
16519
- * @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.
16520
- *
16521
- * @tags LoanRoleTasks
16522
- * @name CreateLoanRoleTask
16523
- * @summary Queue a task for a borrower slot
16524
- * @request POST:/api/loans/{loanId}/role-tasks
16525
- * @secure
16526
- * @response `201` `LoanRoleTask` Created
16527
- * @response `400` `ProblemDetails` Bad Request
16528
- * @response `404` `ProblemDetails` Not Found
16529
- * @response `409` `ProblemDetails` Conflict
16530
- * @response `422` `ProblemDetails` Unprocessable Content
16531
- */
16532
- createLoanRoleTask: (
16533
- loanId: string,
16534
- data: CreateLoanRoleTaskRequest,
16535
- params: RequestParams = {},
16536
- ) =>
16537
- this.request<LoanRoleTask, ProblemDetails>({
16538
- path: `/api/loans/${loanId}/role-tasks`,
16539
- method: "POST",
16540
- body: data,
16541
- secure: true,
16542
- type: "application/json",
16543
- format: "json",
16544
- ...params,
16545
- }),
16546
-
16547
- /**
16548
- * No description
16549
- *
16550
- * @tags LoanRoleTasks
16551
- * @name GetLoanRoleTask
16552
- * @summary Get a queued task
16553
- * @request GET:/api/loans/{loanId}/role-tasks/{id}
16554
- * @secure
16555
- * @response `200` `LoanRoleTask` OK
16556
- * @response `404` `ProblemDetails` Not Found
16557
- */
16558
- getLoanRoleTask: (loanId: string, id: string, params: RequestParams = {}) =>
16559
- this.request<LoanRoleTask, ProblemDetails>({
16560
- path: `/api/loans/${loanId}/role-tasks/${id}`,
16561
- method: "GET",
16562
- secure: true,
16563
- format: "json",
16564
- ...params,
16565
- }),
16566
-
16567
- /**
16568
- * @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.
16569
- *
16570
- * @tags LoanRoleTasks
16571
- * @name UpdateLoanRoleTask
16572
- * @summary Edit a queued task
16573
- * @request PUT:/api/loans/{loanId}/role-tasks/{id}
16574
- * @secure
16575
- * @response `200` `LoanRoleTask` OK
16576
- * @response `400` `ProblemDetails` Bad Request
16577
- * @response `404` `ProblemDetails` Not Found
16578
- * @response `409` `ProblemDetails` Conflict
16579
- * @response `422` `ProblemDetails` Unprocessable Content
16580
- */
16581
- updateLoanRoleTask: (
16582
- loanId: string,
16583
- id: string,
16584
- data: UpdateLoanRoleTaskRequest,
16585
- params: RequestParams = {},
16586
- ) =>
16587
- this.request<LoanRoleTask, ProblemDetails>({
16588
- path: `/api/loans/${loanId}/role-tasks/${id}`,
16589
- method: "PUT",
16590
- body: data,
16591
- secure: true,
16592
- type: "application/json",
16593
- format: "json",
16594
- ...params,
16595
- }),
16596
-
16597
- /**
16598
- * @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.
16599
- *
16600
- * @tags LoanRoleTasks
16601
- * @name DeleteLoanRoleTask
16602
- * @summary Remove a queued task
16603
- * @request DELETE:/api/loans/{loanId}/role-tasks/{id}
16604
- * @secure
16605
- * @response `204` `void` No Content
16606
- * @response `404` `ProblemDetails` Not Found
16607
- * @response `409` `ProblemDetails` Conflict
16608
- */
16609
- deleteLoanRoleTask: (
16610
- loanId: string,
16611
- id: string,
16612
- params: RequestParams = {},
16613
- ) =>
16614
- this.request<void, ProblemDetails>({
16615
- path: `/api/loans/${loanId}/role-tasks/${id}`,
16616
- method: "DELETE",
16617
- secure: true,
16618
- ...params,
16619
- }),
16620
-
16621
- /**
16622
- * @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.
16623
- *
16624
- * @tags LoanRoleTasks
16625
- * @name MaterializeLoanRoleTasks
16626
- * @summary Queue the business rule defaults
16627
- * @request POST:/api/loans/{loanId}/role-tasks/materialize
16628
- * @secure
16629
- * @response `200` `MaterializeLoanRoleTasks` OK
16630
- * @response `404` `ProblemDetails` Not Found
16631
- */
16632
- materializeLoanRoleTasks: (loanId: string, params: RequestParams = {}) =>
16633
- this.request<MaterializeLoanRoleTasks, ProblemDetails>({
16634
- path: `/api/loans/${loanId}/role-tasks/materialize`,
16635
- method: "POST",
16636
- secure: true,
16637
- format: "json",
16638
- ...params,
16639
- }),
16640
-
16641
16268
  /**
16642
16269
  * No description
16643
16270
  *
@@ -17448,7 +17075,6 @@ export class Api<
17448
17075
  * @request POST:/api/loans/{loanId}/users/{userId}
17449
17076
  * @secure
17450
17077
  * @response `201` `LoanUser` Created
17451
- * @response `404` `ProblemDetails` Not Found
17452
17078
  */
17453
17079
  addLoanUser: (
17454
17080
  loanId: string,
@@ -17456,7 +17082,7 @@ export class Api<
17456
17082
  data: CreateUserLoan,
17457
17083
  params: RequestParams = {},
17458
17084
  ) =>
17459
- this.request<LoanUser, ProblemDetails>({
17085
+ this.request<LoanUser, any>({
17460
17086
  path: `/api/loans/${loanId}/users/${userId}`,
17461
17087
  method: "POST",
17462
17088
  body: data,