@matech/thebigpos-sdk 3.7.0-dev-3489 → 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
 
@@ -2141,16 +2124,6 @@ export interface CreateLoanImportRequest {
2141
2124
  importMode: CreateLoanImportRequestImportModeEnum;
2142
2125
  }
2143
2126
 
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
-
2154
2127
  export interface CreateSession {
2155
2128
  sessionId: string;
2156
2129
  sessionUrl: string;
@@ -2604,7 +2577,6 @@ export interface EnabledServices {
2604
2577
  ringCentral?: boolean | null;
2605
2578
  socialSurvey?: boolean | null;
2606
2579
  borrowerTasks?: boolean | null;
2607
- preBorrowerTasks?: boolean | null;
2608
2580
  docusign?: boolean | null;
2609
2581
  emailNotifications?: boolean | null;
2610
2582
  autoTaskReminders?: boolean | null;
@@ -5087,54 +5059,6 @@ export interface LoanRefinanceRequest {
5087
5059
  currentLoan?: LoanRefinanceCurrentLoanRequest | null;
5088
5060
  }
5089
5061
 
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
-
5138
5062
  export interface LoanSearchCriteria {
5139
5063
  searchText?: string | null;
5140
5064
  searchTerms?: string[] | null;
@@ -5163,7 +5087,6 @@ export interface LoanSearchCriteria {
5163
5087
  closingFrom?: string | null;
5164
5088
  /** @format date */
5165
5089
  closingTo?: string | null;
5166
- milestoneConfigurationIds?: string[] | null;
5167
5090
  }
5168
5091
 
5169
5092
  export interface LoanSettings {
@@ -5499,11 +5422,6 @@ export interface ManualDocumentClassificationRequest {
5499
5422
  documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
5500
5423
  }
5501
5424
 
5502
- export interface MaterializeLoanRoleTasks {
5503
- /** @format int32 */
5504
- rowsAdded: number;
5505
- }
5506
-
5507
5425
  export interface MdmUser {
5508
5426
  user_email?: string | null;
5509
5427
  user_id?: string | null;
@@ -6937,8 +6855,6 @@ export interface Task {
6937
6855
  isGlobal: boolean;
6938
6856
  /** @format uuid */
6939
6857
  id: string;
6940
- /** @format uuid */
6941
- sourceTaskID?: string | null;
6942
6858
  user?: User | null;
6943
6859
  isFromLegacySource: boolean;
6944
6860
  usedInBusinessRule: boolean;
@@ -7296,17 +7212,6 @@ export interface UpdateLoanQueueRequest {
7296
7212
  data: any;
7297
7213
  }
7298
7214
 
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
-
7310
7215
  export interface UpdateMeRequest {
7311
7216
  phone?: string | null;
7312
7217
  firstName: string;
@@ -7708,12 +7613,6 @@ export interface UserLoanTaskUpdateRequest {
7708
7613
  value?: string | null;
7709
7614
  /** @format date */
7710
7615
  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;
7717
7616
  }
7718
7617
 
7719
7618
  export interface UserMobilePhoneVerificationRequest {
@@ -8062,21 +7961,6 @@ export type CreateLoanImportRequestImportModeEnum =
8062
7961
  | "NewOnly"
8063
7962
  | "UpdateOnly";
8064
7963
 
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
-
8080
7964
  export type CreateUserDraftLoanRoleEnum =
8081
7965
  | "Borrower"
8082
7966
  | "CoBorrower"
@@ -8354,8 +8238,7 @@ export type LoanLogTypeEnum =
8354
8238
  | "DocumentClassified"
8355
8239
  | "CoBorrowerEmailAutoFixed"
8356
8240
  | "LosFieldWriteBack"
8357
- | "ReferrerChangeDiscarded"
8358
- | "TaskEdited";
8241
+ | "ReferrerChangeDiscarded";
8359
8242
 
8360
8243
  export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
8361
8244
 
@@ -8379,54 +8262,7 @@ export type LoanLogDetailTypeEnum =
8379
8262
  | "DocumentClassified"
8380
8263
  | "CoBorrowerEmailAutoFixed"
8381
8264
  | "LosFieldWriteBack"
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";
8265
+ | "ReferrerChangeDiscarded";
8430
8266
 
8431
8267
  export type LoanTaskStatusSummaryStatusEnum =
8432
8268
  | "Outstanding"
@@ -16429,149 +16265,6 @@ export class Api<
16429
16265
  ...params,
16430
16266
  }),
16431
16267
 
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
-
16575
16268
  /**
16576
16269
  * No description
16577
16270
  *
@@ -17382,7 +17075,6 @@ export class Api<
17382
17075
  * @request POST:/api/loans/{loanId}/users/{userId}
17383
17076
  * @secure
17384
17077
  * @response `201` `LoanUser` Created
17385
- * @response `404` `ProblemDetails` Not Found
17386
17078
  */
17387
17079
  addLoanUser: (
17388
17080
  loanId: string,
@@ -17390,7 +17082,7 @@ export class Api<
17390
17082
  data: CreateUserLoan,
17391
17083
  params: RequestParams = {},
17392
17084
  ) =>
17393
- this.request<LoanUser, ProblemDetails>({
17085
+ this.request<LoanUser, any>({
17394
17086
  path: `/api/loans/${loanId}/users/${userId}`,
17395
17087
  method: "POST",
17396
17088
  body: data,