@matech/thebigpos-sdk 3.6.0 → 3.7.0-pr-4910

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"
@@ -265,7 +281,8 @@ export type LoanLogType =
265
281
  | "DocumentClassified"
266
282
  | "CoBorrowerEmailAutoFixed"
267
283
  | "LosFieldWriteBack"
268
- | "ReferrerChangeDiscarded";
284
+ | "ReferrerChangeDiscarded"
285
+ | "TaskEdited";
269
286
 
270
287
  export type LoanLienPosition = "First" | "Subordinate";
271
288
 
@@ -1043,6 +1060,8 @@ export interface AiCanonicalField {
1043
1060
  textractKey?: string | null;
1044
1061
  textractKeyAliases: string[];
1045
1062
  hasAccountOverride: boolean;
1063
+ writable: boolean;
1064
+ patchPath?: string | null;
1046
1065
  /** @format date-time */
1047
1066
  createdAt: string;
1048
1067
  /** @format date-time */
@@ -2112,6 +2131,16 @@ export interface CreateLoanImportRequest {
2112
2131
  importMode: CreateLoanImportRequestImportModeEnum;
2113
2132
  }
2114
2133
 
2134
+ export interface CreateLoanRoleTaskRequest {
2135
+ /** @format uuid */
2136
+ taskId: string;
2137
+ role: CreateLoanRoleTaskRequestRoleEnum;
2138
+ /** @format int32 */
2139
+ borrowerPair: number;
2140
+ /** @format int32 */
2141
+ borrowerPosition: number;
2142
+ }
2143
+
2115
2144
  export interface CreateSession {
2116
2145
  sessionId: string;
2117
2146
  sessionUrl: string;
@@ -2564,6 +2593,7 @@ export interface EnabledServices {
2564
2593
  ringCentral?: boolean | null;
2565
2594
  socialSurvey?: boolean | null;
2566
2595
  borrowerTasks?: boolean | null;
2596
+ preBorrowerTasks?: boolean | null;
2567
2597
  docusign?: boolean | null;
2568
2598
  emailNotifications?: boolean | null;
2569
2599
  autoTaskReminders?: boolean | null;
@@ -3457,6 +3487,7 @@ export interface LoanApplicationRequest {
3457
3487
  purpose?: LoanPurpose | null;
3458
3488
  referrer?: string | null;
3459
3489
  companyName?: string | null;
3490
+ relationship?: BorrowerRelationship | null;
3460
3491
  property?: LoanPropertyRequest | null;
3461
3492
  financial?: LoanFinancialRequest | null;
3462
3493
  refinance?: LoanRefinanceRequest | null;
@@ -4452,6 +4483,7 @@ export interface LoanDocumentFolderWithCount {
4452
4483
  isActive: boolean;
4453
4484
  /** @format int32 */
4454
4485
  documentCount: number;
4486
+ accessLevel: LoanDocumentFolderWithCountAccessLevelEnum;
4455
4487
  isUnassigned: boolean;
4456
4488
  }
4457
4489
 
@@ -4652,6 +4684,7 @@ export interface LoanList {
4652
4684
  userLoans: UserLoan[];
4653
4685
  contacts: LoanContact[];
4654
4686
  borrowers: LoanListBorrower[];
4687
+ taskCounts: LoanTaskCounts;
4655
4688
  }
4656
4689
 
4657
4690
  export interface LoanListBorrower {
@@ -5024,6 +5057,54 @@ export interface LoanRefinanceRequest {
5024
5057
  currentLoan?: LoanRefinanceCurrentLoanRequest | null;
5025
5058
  }
5026
5059
 
5060
+ export interface LoanRoleSlotTasks {
5061
+ role: LoanRoleSlotTasksRoleEnum;
5062
+ /** @format int32 */
5063
+ borrowerPair: number;
5064
+ /** @format int32 */
5065
+ borrowerPosition: number;
5066
+ tasks: LoanRoleTask[];
5067
+ }
5068
+
5069
+ export interface LoanRoleTask {
5070
+ /** @format uuid */
5071
+ id: string;
5072
+ /** @format uuid */
5073
+ loanId: string;
5074
+ role: LoanRoleTaskRoleEnum;
5075
+ /** @format int32 */
5076
+ borrowerPair: number;
5077
+ /** @format int32 */
5078
+ borrowerPosition: number;
5079
+ /** @format uuid */
5080
+ definitionTaskId: string;
5081
+ /** @format uuid */
5082
+ taskId: string;
5083
+ name: string;
5084
+ description?: string | null;
5085
+ type: LoanRoleTaskTypeEnum;
5086
+ losTarget?: string | null;
5087
+ /** @format int32 */
5088
+ daysDueFromApplication?: number | null;
5089
+ /** @format int32 */
5090
+ weight: number;
5091
+ willAutocompleteAfterResponse: boolean;
5092
+ /** @format uuid */
5093
+ loanDocumentFolderId?: string | null;
5094
+ /** @format date */
5095
+ dueDate?: string | null;
5096
+ source: LoanRoleTaskSourceEnum;
5097
+ isAttached: boolean;
5098
+ /** @format uuid */
5099
+ attachedUserLoanTaskId?: string | null;
5100
+ /** @format date-time */
5101
+ attachedAt?: string | null;
5102
+ /** @format uuid */
5103
+ createdById?: string | null;
5104
+ /** @format date-time */
5105
+ createdAt: string;
5106
+ }
5107
+
5027
5108
  export interface LoanSearchCriteria {
5028
5109
  searchText?: string | null;
5029
5110
  searchTerms?: string[] | null;
@@ -5042,6 +5123,17 @@ export interface LoanSettings {
5042
5123
  excludeFromAutoTaskReminders: boolean;
5043
5124
  }
5044
5125
 
5126
+ export interface LoanTaskCounts {
5127
+ /** @format int32 */
5128
+ outstanding: number;
5129
+ /** @format int32 */
5130
+ pending: number;
5131
+ /** @format int32 */
5132
+ completed: number;
5133
+ /** @format int32 */
5134
+ rejected: number;
5135
+ }
5136
+
5045
5137
  export interface LoanTaskSearchRequest {
5046
5138
  searchText?: string | null;
5047
5139
  statuses?: TaskStatus[] | null;
@@ -5360,6 +5452,11 @@ export interface ManualDocumentClassificationRequest {
5360
5452
  documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
5361
5453
  }
5362
5454
 
5455
+ export interface MaterializeLoanRoleTasks {
5456
+ /** @format int32 */
5457
+ rowsAdded: number;
5458
+ }
5459
+
5363
5460
  export interface MdmUser {
5364
5461
  user_email?: string | null;
5365
5462
  user_id?: string | null;
@@ -6782,6 +6879,8 @@ export interface Task {
6782
6879
  isGlobal: boolean;
6783
6880
  /** @format uuid */
6784
6881
  id: string;
6882
+ /** @format uuid */
6883
+ sourceTaskID?: string | null;
6785
6884
  user?: User | null;
6786
6885
  isFromLegacySource: boolean;
6787
6886
  usedInBusinessRule: boolean;
@@ -7123,6 +7222,17 @@ export interface UpdateLoanQueueRequest {
7123
7222
  data: any;
7124
7223
  }
7125
7224
 
7225
+ export interface UpdateLoanRoleTaskRequest {
7226
+ name?: string | null;
7227
+ description?: string | null;
7228
+ /** @format int32 */
7229
+ weight?: number | null;
7230
+ /** @format uuid */
7231
+ loanDocumentFolderId?: string | null;
7232
+ /** @format date */
7233
+ dueDate?: string | null;
7234
+ }
7235
+
7126
7236
  export interface UpdateMeRequest {
7127
7237
  phone?: string | null;
7128
7238
  firstName: string;
@@ -7524,6 +7634,12 @@ export interface UserLoanTaskUpdateRequest {
7524
7634
  value?: string | null;
7525
7635
  /** @format date */
7526
7636
  dueDate?: string | null;
7637
+ name?: string | null;
7638
+ description?: string | null;
7639
+ /** @format int32 */
7640
+ weight?: number | null;
7641
+ /** @format uuid */
7642
+ loanDocumentFolderId?: string | null;
7527
7643
  }
7528
7644
 
7529
7645
  export interface UserMobilePhoneVerificationRequest {
@@ -7871,6 +7987,21 @@ export type CreateLoanImportRequestImportModeEnum =
7871
7987
  | "NewOnly"
7872
7988
  | "UpdateOnly";
7873
7989
 
7990
+ export type CreateLoanRoleTaskRequestRoleEnum =
7991
+ | "Borrower"
7992
+ | "CoBorrower"
7993
+ | "NonBorrower"
7994
+ | "LoanOfficer"
7995
+ | "LoanProcessor"
7996
+ | "LoanOfficerAssistant"
7997
+ | "SupportingLoanOfficer"
7998
+ | "BuyerAgent"
7999
+ | "SellerAgent"
8000
+ | "TitleInsuranceAgent"
8001
+ | "EscrowAgent"
8002
+ | "SettlementAgent"
8003
+ | "Admin";
8004
+
7874
8005
  export type CreateUserDraftLoanRoleEnum =
7875
8006
  | "Borrower"
7876
8007
  | "CoBorrower"
@@ -8109,6 +8240,12 @@ export type LoanDocumentFolderPermissionRequestLevelEnum =
8109
8240
 
8110
8241
  export type LoanDocumentFolderPermissionRequestReadScopeEnum = "Own" | "All";
8111
8242
 
8243
+ export type LoanDocumentFolderWithCountAccessLevelEnum =
8244
+ | "None"
8245
+ | "Read"
8246
+ | "Write"
8247
+ | "Manage";
8248
+
8112
8249
  export type LoanImportStatusEnum =
8113
8250
  | "WaitingProcess"
8114
8251
  | "InProgress"
@@ -8142,7 +8279,8 @@ export type LoanLogTypeEnum =
8142
8279
  | "DocumentClassified"
8143
8280
  | "CoBorrowerEmailAutoFixed"
8144
8281
  | "LosFieldWriteBack"
8145
- | "ReferrerChangeDiscarded";
8282
+ | "ReferrerChangeDiscarded"
8283
+ | "TaskEdited";
8146
8284
 
8147
8285
  export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
8148
8286
 
@@ -8166,7 +8304,54 @@ export type LoanLogDetailTypeEnum =
8166
8304
  | "DocumentClassified"
8167
8305
  | "CoBorrowerEmailAutoFixed"
8168
8306
  | "LosFieldWriteBack"
8169
- | "ReferrerChangeDiscarded";
8307
+ | "ReferrerChangeDiscarded"
8308
+ | "TaskEdited";
8309
+
8310
+ export type LoanRoleSlotTasksRoleEnum =
8311
+ | "Borrower"
8312
+ | "CoBorrower"
8313
+ | "NonBorrower"
8314
+ | "LoanOfficer"
8315
+ | "LoanProcessor"
8316
+ | "LoanOfficerAssistant"
8317
+ | "SupportingLoanOfficer"
8318
+ | "BuyerAgent"
8319
+ | "SellerAgent"
8320
+ | "TitleInsuranceAgent"
8321
+ | "EscrowAgent"
8322
+ | "SettlementAgent"
8323
+ | "Admin";
8324
+
8325
+ export type LoanRoleTaskRoleEnum =
8326
+ | "Borrower"
8327
+ | "CoBorrower"
8328
+ | "NonBorrower"
8329
+ | "LoanOfficer"
8330
+ | "LoanProcessor"
8331
+ | "LoanOfficerAssistant"
8332
+ | "SupportingLoanOfficer"
8333
+ | "BuyerAgent"
8334
+ | "SellerAgent"
8335
+ | "TitleInsuranceAgent"
8336
+ | "EscrowAgent"
8337
+ | "SettlementAgent"
8338
+ | "Admin";
8339
+
8340
+ export type LoanRoleTaskTypeEnum =
8341
+ | "Document"
8342
+ | "Field"
8343
+ | "Signature"
8344
+ | "EDisclosure"
8345
+ | "EConsent"
8346
+ | "VerificationOfAssets"
8347
+ | "VerificationOfIncome"
8348
+ | "VerificationOfEmployment"
8349
+ | "VerificationOfCredit"
8350
+ | "Payment"
8351
+ | "VerificationOfIncomeAndEmployment"
8352
+ | "VerificationOfTaxes";
8353
+
8354
+ export type LoanRoleTaskSourceEnum = "Rule" | "Manual";
8170
8355
 
8171
8356
  export type LoanTaskStatusSummaryStatusEnum =
8172
8357
  | "Outstanding"
@@ -8672,7 +8857,7 @@ export class HttpClient<SecurityDataType = unknown> {
8672
8857
 
8673
8858
  /**
8674
8859
  * @title The Big POS API
8675
- * @version v3.6.0
8860
+ * @version v3.7.0
8676
8861
  * @termsOfService https://www.thebigpos.com/terms-of-use/
8677
8862
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
8678
8863
  */
@@ -9197,6 +9382,7 @@ export class Api<
9197
9382
  path: `/api/ai/prompts/${id}/toggle`,
9198
9383
  method: "PATCH",
9199
9384
  secure: true,
9385
+ type: ContentType.Json,
9200
9386
  format: "json",
9201
9387
  ...params,
9202
9388
  }),
@@ -9595,6 +9781,7 @@ export class Api<
9595
9781
  path: `/api/ai/canonical-fields/${id}/toggle`,
9596
9782
  method: "PATCH",
9597
9783
  secure: true,
9784
+ type: ContentType.Json,
9598
9785
  format: "json",
9599
9786
  ...params,
9600
9787
  }),
@@ -9746,7 +9933,7 @@ export class Api<
9746
9933
  method: "PATCH",
9747
9934
  body: data,
9748
9935
  secure: true,
9749
- type: "application/json",
9936
+ type: ContentType.JsonPatch,
9750
9937
  format: "json",
9751
9938
  ...params,
9752
9939
  }),
@@ -10062,6 +10249,7 @@ export class Api<
10062
10249
  path: `/api/ai/guardrails/${id}/toggle`,
10063
10250
  method: "PATCH",
10064
10251
  secure: true,
10252
+ type: ContentType.Json,
10065
10253
  format: "json",
10066
10254
  ...params,
10067
10255
  }),
@@ -10445,6 +10633,7 @@ export class Api<
10445
10633
  path: `/api/ai/url-sources/${id}/toggle`,
10446
10634
  method: "PATCH",
10447
10635
  secure: true,
10636
+ type: ContentType.Json,
10448
10637
  format: "json",
10449
10638
  ...params,
10450
10639
  }),
@@ -13936,7 +14125,7 @@ export class Api<
13936
14125
  method: "PATCH",
13937
14126
  body: data,
13938
14127
  secure: true,
13939
- type: "application/json",
14128
+ type: ContentType.JsonPatch,
13940
14129
  format: "json",
13941
14130
  ...params,
13942
14131
  }),
@@ -14046,7 +14235,7 @@ export class Api<
14046
14235
  method: "PATCH",
14047
14236
  body: data,
14048
14237
  secure: true,
14049
- type: "application/json",
14238
+ type: ContentType.JsonPatch,
14050
14239
  format: "json",
14051
14240
  ...params,
14052
14241
  }),
@@ -14073,7 +14262,7 @@ export class Api<
14073
14262
  method: "PATCH",
14074
14263
  body: data,
14075
14264
  secure: true,
14076
- type: "application/json",
14265
+ type: ContentType.JsonPatch,
14077
14266
  format: "json",
14078
14267
  ...params,
14079
14268
  }),
@@ -14271,7 +14460,7 @@ export class Api<
14271
14460
  method: "PATCH",
14272
14461
  body: data,
14273
14462
  secure: true,
14274
- type: "application/json",
14463
+ type: ContentType.JsonPatch,
14275
14464
  format: "json",
14276
14465
  ...params,
14277
14466
  }),
@@ -14351,7 +14540,7 @@ export class Api<
14351
14540
  method: "PATCH",
14352
14541
  body: data,
14353
14542
  secure: true,
14354
- type: "application/json",
14543
+ type: ContentType.JsonPatch,
14355
14544
  format: "json",
14356
14545
  ...params,
14357
14546
  }),
@@ -15078,7 +15267,7 @@ export class Api<
15078
15267
  }),
15079
15268
 
15080
15269
  /**
15081
- * @description Returns each folder that holds at least one document the caller can read, with the document count per folder. Documents that are not assigned to a folder are returned as a synthetic 'Unassigned' folder (ID = empty GUID, isUnassigned = true); filter to its documents with searchLoanDocuments folderScope 'Unassigned' rather than by echoing that ID.
15270
+ * @description Returns every folder the caller can access on this loan — including folders holding no documents — with the caller's effective accessLevel and the count of documents they can read in each. Upload destinations are the active entries with accessLevel at least Write. Documents that are not assigned to a folder are returned as a synthetic 'Unassigned' folder (ID = empty GUID, isUnassigned = true); filter to its documents with searchLoanDocuments folderScope 'Unassigned' rather than by echoing that ID.
15082
15271
  *
15083
15272
  * @tags LoanDocumentFoldersForSingleLoan
15084
15273
  * @name ListLoanDocumentFolders
@@ -15183,7 +15372,7 @@ export class Api<
15183
15372
  }),
15184
15373
 
15185
15374
  /**
15186
- * @description Filters the loan's readable documents. Pass folderID to filter to one folder, or folderScope 'Unassigned' for the documents that have no folder (the synthetic folder listLoanDocumentFolders reports with isUnassigned true); the two cannot be combined.
15375
+ * @description Filters the loan's readable documents. Pass folderID to filter to one folder, or folderScope 'Unassigned' for the documents that have no folder; folderID with the empty GUID listLoanDocumentFolders reports for that synthetic folder selects the same set. folderScope 'Unassigned' cannot be combined with a real folderID. Documents with no folder come back naming the synthetic 'Unassigned' folder.
15187
15376
  *
15188
15377
  * @tags LoanDocuments
15189
15378
  * @name SearchLoanDocuments
@@ -15250,6 +15439,7 @@ export class Api<
15250
15439
  * @request POST:/api/loans/{loanId}/documents
15251
15440
  * @secure
15252
15441
  * @response `201` `LoanDocument` Created
15442
+ * @response `400` `ProblemDetails` Bad Request
15253
15443
  * @response `404` `ProblemDetails` Not Found
15254
15444
  * @response `422` `UnprocessableEntity` Unprocessable Content
15255
15445
  */
@@ -16168,6 +16358,149 @@ export class Api<
16168
16358
  ...params,
16169
16359
  }),
16170
16360
 
16361
+ /**
16362
+ * No description
16363
+ *
16364
+ * @tags LoanRoleTasks
16365
+ * @name GetLoanRoleTasks
16366
+ * @summary Get queued tasks grouped by borrower slot
16367
+ * @request GET:/api/loans/{loanId}/role-tasks
16368
+ * @secure
16369
+ * @response `200` `(LoanRoleSlotTasks)[]` OK
16370
+ * @response `404` `ProblemDetails` Not Found
16371
+ */
16372
+ getLoanRoleTasks: (loanId: string, params: RequestParams = {}) =>
16373
+ this.request<LoanRoleSlotTasks[], ProblemDetails>({
16374
+ path: `/api/loans/${loanId}/role-tasks`,
16375
+ method: "GET",
16376
+ secure: true,
16377
+ format: "json",
16378
+ ...params,
16379
+ }),
16380
+
16381
+ /**
16382
+ * @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.
16383
+ *
16384
+ * @tags LoanRoleTasks
16385
+ * @name CreateLoanRoleTask
16386
+ * @summary Queue a task for a borrower slot
16387
+ * @request POST:/api/loans/{loanId}/role-tasks
16388
+ * @secure
16389
+ * @response `201` `LoanRoleTask` Created
16390
+ * @response `400` `ProblemDetails` Bad Request
16391
+ * @response `404` `ProblemDetails` Not Found
16392
+ * @response `409` `ProblemDetails` Conflict
16393
+ * @response `422` `ProblemDetails` Unprocessable Content
16394
+ */
16395
+ createLoanRoleTask: (
16396
+ loanId: string,
16397
+ data: CreateLoanRoleTaskRequest,
16398
+ params: RequestParams = {},
16399
+ ) =>
16400
+ this.request<LoanRoleTask, ProblemDetails>({
16401
+ path: `/api/loans/${loanId}/role-tasks`,
16402
+ method: "POST",
16403
+ body: data,
16404
+ secure: true,
16405
+ type: "application/json",
16406
+ format: "json",
16407
+ ...params,
16408
+ }),
16409
+
16410
+ /**
16411
+ * No description
16412
+ *
16413
+ * @tags LoanRoleTasks
16414
+ * @name GetLoanRoleTask
16415
+ * @summary Get a queued task
16416
+ * @request GET:/api/loans/{loanId}/role-tasks/{id}
16417
+ * @secure
16418
+ * @response `200` `LoanRoleTask` OK
16419
+ * @response `404` `ProblemDetails` Not Found
16420
+ */
16421
+ getLoanRoleTask: (loanId: string, id: string, params: RequestParams = {}) =>
16422
+ this.request<LoanRoleTask, ProblemDetails>({
16423
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16424
+ method: "GET",
16425
+ secure: true,
16426
+ format: "json",
16427
+ ...params,
16428
+ }),
16429
+
16430
+ /**
16431
+ * @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.
16432
+ *
16433
+ * @tags LoanRoleTasks
16434
+ * @name UpdateLoanRoleTask
16435
+ * @summary Edit a queued task
16436
+ * @request PUT:/api/loans/{loanId}/role-tasks/{id}
16437
+ * @secure
16438
+ * @response `200` `LoanRoleTask` OK
16439
+ * @response `400` `ProblemDetails` Bad Request
16440
+ * @response `404` `ProblemDetails` Not Found
16441
+ * @response `409` `ProblemDetails` Conflict
16442
+ * @response `422` `ProblemDetails` Unprocessable Content
16443
+ */
16444
+ updateLoanRoleTask: (
16445
+ loanId: string,
16446
+ id: string,
16447
+ data: UpdateLoanRoleTaskRequest,
16448
+ params: RequestParams = {},
16449
+ ) =>
16450
+ this.request<LoanRoleTask, ProblemDetails>({
16451
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16452
+ method: "PUT",
16453
+ body: data,
16454
+ secure: true,
16455
+ type: "application/json",
16456
+ format: "json",
16457
+ ...params,
16458
+ }),
16459
+
16460
+ /**
16461
+ * @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.
16462
+ *
16463
+ * @tags LoanRoleTasks
16464
+ * @name DeleteLoanRoleTask
16465
+ * @summary Remove a queued task
16466
+ * @request DELETE:/api/loans/{loanId}/role-tasks/{id}
16467
+ * @secure
16468
+ * @response `204` `void` No Content
16469
+ * @response `404` `ProblemDetails` Not Found
16470
+ * @response `409` `ProblemDetails` Conflict
16471
+ */
16472
+ deleteLoanRoleTask: (
16473
+ loanId: string,
16474
+ id: string,
16475
+ params: RequestParams = {},
16476
+ ) =>
16477
+ this.request<void, ProblemDetails>({
16478
+ path: `/api/loans/${loanId}/role-tasks/${id}`,
16479
+ method: "DELETE",
16480
+ secure: true,
16481
+ ...params,
16482
+ }),
16483
+
16484
+ /**
16485
+ * @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.
16486
+ *
16487
+ * @tags LoanRoleTasks
16488
+ * @name MaterializeLoanRoleTasks
16489
+ * @summary Queue the business rule defaults
16490
+ * @request POST:/api/loans/{loanId}/role-tasks/materialize
16491
+ * @secure
16492
+ * @response `200` `MaterializeLoanRoleTasks` OK
16493
+ * @response `404` `ProblemDetails` Not Found
16494
+ */
16495
+ materializeLoanRoleTasks: (loanId: string, params: RequestParams = {}) =>
16496
+ this.request<MaterializeLoanRoleTasks, ProblemDetails>({
16497
+ path: `/api/loans/${loanId}/role-tasks/materialize`,
16498
+ method: "POST",
16499
+ secure: true,
16500
+ format: "json",
16501
+ ...params,
16502
+ }),
16503
+
16171
16504
  /**
16172
16505
  * No description
16173
16506
  *
@@ -16290,7 +16623,7 @@ export class Api<
16290
16623
  method: "PATCH",
16291
16624
  body: data,
16292
16625
  secure: true,
16293
- type: "application/json",
16626
+ type: ContentType.Json,
16294
16627
  format: "json",
16295
16628
  ...params,
16296
16629
  }),