@matech/thebigpos-sdk 3.3.0 → 3.3.1-dev-1839

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
@@ -111,6 +111,13 @@ export type LoanRole =
111
111
  | "SettlementAgent"
112
112
  | "Admin";
113
113
 
114
+ export type LoanRefinancePurpose =
115
+ | "CashOutDebtConsolidation"
116
+ | "CashOutHomeImprovement"
117
+ | "CashOutOther"
118
+ | "NoCashOut"
119
+ | "LimitedCashOut";
120
+
114
121
  export type LoanRealEstateStatus = "Keep" | "Rent" | "Sell" | "PendingSale";
115
122
 
116
123
  export type LoanRealEstateOccupancyType =
@@ -530,7 +537,7 @@ export type CompanyDocumentIndexStatus =
530
537
 
531
538
  export type ClassificationSource = "Textract" | "Llm" | "Manual";
532
539
 
533
- export type BulkLoanTaskOperationType = "SetStatus";
540
+ export type BulkLoanTaskOperationType = "SetStatus" | "Delete";
534
541
 
535
542
  export type BranchType = "Mortgage" | "RealEstate";
536
543
 
@@ -986,6 +993,9 @@ export interface AiAuditLog {
986
993
  /** @format uuid */
987
994
  messageId?: string | null;
988
995
  eventType: AiAuditLogEventTypeEnum;
996
+ trigger?: string | null;
997
+ subjectTaskName?: string | null;
998
+ subjectLoanNumber?: string | null;
989
999
  modelId?: string | null;
990
1000
  /** @format int32 */
991
1001
  inputTokens?: number | null;
@@ -1668,23 +1678,6 @@ export interface BranchUserPaginated {
1668
1678
  count: number;
1669
1679
  }
1670
1680
 
1671
- export interface BulkCompleteLoanTaskFailure {
1672
- /** @format uuid */
1673
- userLoanTaskID: string;
1674
- taskName: string;
1675
- errorMessage: string;
1676
- }
1677
-
1678
- export interface BulkCompleteLoanTasks {
1679
- completed: string[];
1680
- skipped: string[];
1681
- failed: BulkCompleteLoanTaskFailure[];
1682
- }
1683
-
1684
- export interface BulkCompleteLoanTasksRequest {
1685
- userLoanTaskIDs: string[];
1686
- }
1687
-
1688
1681
  export interface BulkLoanTaskFailure {
1689
1682
  /** @format uuid */
1690
1683
  userLoanTaskID: string;
@@ -3400,6 +3393,7 @@ export interface Loan {
3400
3393
  propertyAddress?: Address | null;
3401
3394
  property?: LoanProperty | null;
3402
3395
  financial?: LoanFinancial | null;
3396
+ refinance?: LoanRefinance | null;
3403
3397
  financialTerms?: LoanFinancialTerms | null;
3404
3398
  monthlyPayment?: LoanMonthlyPayment | null;
3405
3399
  costDetails?: LoanCostDetails | null;
@@ -3427,6 +3421,7 @@ export interface LoanApplication {
3427
3421
  startDate?: string | null;
3428
3422
  property?: LoanProperty | null;
3429
3423
  financial?: LoanFinancial | null;
3424
+ refinance?: LoanRefinance | null;
3430
3425
  borrowers: LoanBorrower[];
3431
3426
  nonOwningBorrowers: LoanNonOwningBorrower[];
3432
3427
  }
@@ -3444,6 +3439,7 @@ export interface LoanApplicationRequest {
3444
3439
  companyName?: string | null;
3445
3440
  property?: LoanPropertyRequest | null;
3446
3441
  financial?: LoanFinancialRequest | null;
3442
+ refinance?: LoanRefinanceRequest | null;
3447
3443
  financialTerms?: LoanFinancialTermsRequest | null;
3448
3444
  monthlyPayment?: LoanMonthlyPaymentRequest | null;
3449
3445
  borrowers: LoanBorrowerRequest[];
@@ -3511,6 +3507,7 @@ export interface LoanBorrowerAccountAsset {
3511
3507
 
3512
3508
  export interface LoanBorrowerAccountAssetRequest {
3513
3509
  name?: string | null;
3510
+ accountNumber?: string | null;
3514
3511
  financialInstitution?: string | null;
3515
3512
  /** @format double */
3516
3513
  value?: number | null;
@@ -4953,8 +4950,55 @@ export interface LoanRecord {
4953
4950
  loanFields: Record<string, string>;
4954
4951
  }
4955
4952
 
4953
+ export interface LoanRefinance {
4954
+ /** @format uuid */
4955
+ id?: string | null;
4956
+ /** @format int32 */
4957
+ yearAcquired?: number | null;
4958
+ /** @format double */
4959
+ valueOfLot?: number | null;
4960
+ /** @format double */
4961
+ originalCost?: number | null;
4962
+ /** @format double */
4963
+ existingLiens?: number | null;
4964
+ /** @format double */
4965
+ costOfImprovements?: number | null;
4966
+ purpose?: LoanRefinancePurpose | null;
4967
+ currentLoan?: LoanRefinanceCurrentLoan | null;
4968
+ }
4969
+
4970
+ export interface LoanRefinanceCurrentLoan {
4971
+ /** @format uuid */
4972
+ id?: string | null;
4973
+ lender?: string | null;
4974
+ /** @format double */
4975
+ interestRate?: number | null;
4976
+ /** @format double */
4977
+ monthlyPayment?: number | null;
4978
+ /** @format double */
4979
+ remainingBalance?: number | null;
4980
+ loanType?: LoanType | null;
4981
+ }
4982
+
4983
+ export interface LoanRefinanceCurrentLoanRequest {
4984
+ lender?: string | null;
4985
+ /** @format double */
4986
+ interestRate?: number | null;
4987
+ loanType?: LoanType | null;
4988
+ }
4989
+
4990
+ export interface LoanRefinanceRequest {
4991
+ /** @format double */
4992
+ originalCost?: number | null;
4993
+ /** @format double */
4994
+ existingLiens?: number | null;
4995
+ purpose?: LoanRefinancePurpose | null;
4996
+ currentLoan?: LoanRefinanceCurrentLoanRequest | null;
4997
+ }
4998
+
4956
4999
  export interface LoanSearchCriteria {
4957
5000
  searchText?: string | null;
5001
+ searchTerms?: string[] | null;
4958
5002
  /** @format uuid */
4959
5003
  loanOfficerId?: string | null;
4960
5004
  loanNumber?: string | null;
@@ -7564,6 +7608,8 @@ export interface UserTableSettings {
7564
7608
  columnOrder: string[];
7565
7609
  sortColumnId?: string | null;
7566
7610
  sortDirection?: SortDirection | null;
7611
+ searchTerms: string[];
7612
+ pinnedColumnIds: string[];
7567
7613
  }
7568
7614
 
7569
7615
  export interface UserTableSettingsRequest {
@@ -7571,6 +7617,8 @@ export interface UserTableSettingsRequest {
7571
7617
  columnOrder: string[];
7572
7618
  sortColumnId?: string | null;
7573
7619
  sortDirection?: SortDirection | null;
7620
+ searchTerms: string[];
7621
+ pinnedColumnIds: string[];
7574
7622
  }
7575
7623
 
7576
7624
  export interface VerifyEmailRequest {
@@ -8575,7 +8623,7 @@ export class HttpClient<SecurityDataType = unknown> {
8575
8623
 
8576
8624
  /**
8577
8625
  * @title The Big POS API
8578
- * @version v3.3.0
8626
+ * @version v3.3.1
8579
8627
  * @termsOfService https://www.thebigpos.com/terms-of-use/
8580
8628
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
8581
8629
  */
@@ -9100,7 +9148,6 @@ export class Api<
9100
9148
  path: `/api/ai/prompts/${id}/toggle`,
9101
9149
  method: "PATCH",
9102
9150
  secure: true,
9103
- type: ContentType.Json,
9104
9151
  format: "json",
9105
9152
  ...params,
9106
9153
  }),
@@ -9194,7 +9241,7 @@ export class Api<
9194
9241
  }),
9195
9242
 
9196
9243
  /**
9197
- * No description
9244
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
9198
9245
  *
9199
9246
  * @tags AiAudit
9200
9247
  * @name GetAiAuditLogs
@@ -9225,6 +9272,8 @@ export class Api<
9225
9272
  pageNumber?: number;
9226
9273
  sortBy?: string;
9227
9274
  sortDirection?: string;
9275
+ eventTypes?: AiAuditEventType[];
9276
+ trigger?: string;
9228
9277
  },
9229
9278
  params: RequestParams = {},
9230
9279
  ) =>
@@ -9265,7 +9314,7 @@ export class Api<
9265
9314
  }),
9266
9315
 
9267
9316
  /**
9268
- * No description
9317
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
9269
9318
  *
9270
9319
  * @tags AiAudit
9271
9320
  * @name GetAiAuditConversations
@@ -9302,7 +9351,7 @@ export class Api<
9302
9351
  }),
9303
9352
 
9304
9353
  /**
9305
- * No description
9354
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
9306
9355
  *
9307
9356
  * @tags AiAudit
9308
9357
  * @name GetAiStats
@@ -9332,7 +9381,7 @@ export class Api<
9332
9381
  }),
9333
9382
 
9334
9383
  /**
9335
- * No description
9384
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
9336
9385
  *
9337
9386
  * @tags AiAudit
9338
9387
  * @name GetAiConfigChanges
@@ -9497,7 +9546,6 @@ export class Api<
9497
9546
  path: `/api/ai/canonical-fields/${id}/toggle`,
9498
9547
  method: "PATCH",
9499
9548
  secure: true,
9500
- type: ContentType.Json,
9501
9549
  format: "json",
9502
9550
  ...params,
9503
9551
  }),
@@ -9649,7 +9697,7 @@ export class Api<
9649
9697
  method: "PATCH",
9650
9698
  body: data,
9651
9699
  secure: true,
9652
- type: ContentType.JsonPatch,
9700
+ type: "application/json",
9653
9701
  format: "json",
9654
9702
  ...params,
9655
9703
  }),
@@ -9965,7 +10013,6 @@ export class Api<
9965
10013
  path: `/api/ai/guardrails/${id}/toggle`,
9966
10014
  method: "PATCH",
9967
10015
  secure: true,
9968
- type: ContentType.Json,
9969
10016
  format: "json",
9970
10017
  ...params,
9971
10018
  }),
@@ -10349,7 +10396,6 @@ export class Api<
10349
10396
  path: `/api/ai/url-sources/${id}/toggle`,
10350
10397
  method: "PATCH",
10351
10398
  secure: true,
10352
- type: ContentType.Json,
10353
10399
  format: "json",
10354
10400
  ...params,
10355
10401
  }),
@@ -10446,7 +10492,7 @@ export class Api<
10446
10492
  }),
10447
10493
 
10448
10494
  /**
10449
- * No description
10495
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
10450
10496
  *
10451
10497
  * @tags AuditLog
10452
10498
  * @name SearchAuditLogs
@@ -13841,7 +13887,7 @@ export class Api<
13841
13887
  method: "PATCH",
13842
13888
  body: data,
13843
13889
  secure: true,
13844
- type: ContentType.JsonPatch,
13890
+ type: "application/json",
13845
13891
  format: "json",
13846
13892
  ...params,
13847
13893
  }),
@@ -13951,7 +13997,7 @@ export class Api<
13951
13997
  method: "PATCH",
13952
13998
  body: data,
13953
13999
  secure: true,
13954
- type: ContentType.JsonPatch,
14000
+ type: "application/json",
13955
14001
  format: "json",
13956
14002
  ...params,
13957
14003
  }),
@@ -13978,7 +14024,7 @@ export class Api<
13978
14024
  method: "PATCH",
13979
14025
  body: data,
13980
14026
  secure: true,
13981
- type: ContentType.JsonPatch,
14027
+ type: "application/json",
13982
14028
  format: "json",
13983
14029
  ...params,
13984
14030
  }),
@@ -14176,7 +14222,7 @@ export class Api<
14176
14222
  method: "PATCH",
14177
14223
  body: data,
14178
14224
  secure: true,
14179
- type: ContentType.JsonPatch,
14225
+ type: "application/json",
14180
14226
  format: "json",
14181
14227
  ...params,
14182
14228
  }),
@@ -14256,7 +14302,7 @@ export class Api<
14256
14302
  method: "PATCH",
14257
14303
  body: data,
14258
14304
  secure: true,
14259
- type: ContentType.JsonPatch,
14305
+ type: "application/json",
14260
14306
  format: "json",
14261
14307
  ...params,
14262
14308
  }),
@@ -14323,9 +14369,10 @@ export class Api<
14323
14369
  * @request POST:/api/listings
14324
14370
  * @secure
14325
14371
  * @response `201` `Listing` Created
14372
+ * @response `403` `ProblemDetails` Forbidden
14326
14373
  */
14327
14374
  createListing: (data: ListingRequest, params: RequestParams = {}) =>
14328
- this.request<Listing, any>({
14375
+ this.request<Listing, ProblemDetails>({
14329
14376
  path: `/api/listings`,
14330
14377
  method: "POST",
14331
14378
  body: data,
@@ -14382,13 +14429,14 @@ export class Api<
14382
14429
  * @request PUT:/api/listings/{id}
14383
14430
  * @secure
14384
14431
  * @response `200` `Listing` OK
14432
+ * @response `403` `ProblemDetails` Forbidden
14385
14433
  */
14386
14434
  replaceListing: (
14387
14435
  id: string,
14388
14436
  data: ListingRequest,
14389
14437
  params: RequestParams = {},
14390
14438
  ) =>
14391
- this.request<Listing, any>({
14439
+ this.request<Listing, ProblemDetails>({
14392
14440
  path: `/api/listings/${id}`,
14393
14441
  method: "PUT",
14394
14442
  body: data,
@@ -16190,7 +16238,7 @@ export class Api<
16190
16238
  method: "PATCH",
16191
16239
  body: data,
16192
16240
  secure: true,
16193
- type: ContentType.Json,
16241
+ type: "application/json",
16194
16242
  format: "json",
16195
16243
  ...params,
16196
16244
  }),
@@ -16324,36 +16372,6 @@ export class Api<
16324
16372
  ...params,
16325
16373
  }),
16326
16374
 
16327
- /**
16328
- * @description Deprecated - use POST api/loans/tasks/bulk, which reaches every status and accepts tasks from more than one loan.
16329
- *
16330
- * @tags LoanTaskBulkCompletions
16331
- * @name BulkCompleteLoanTasks
16332
- * @summary [Deprecated] Bulk complete loan tasks
16333
- * @request POST:/api/loans/{loanID}/tasks/bulk-complete
16334
- * @deprecated
16335
- * @secure
16336
- * @response `200` `BulkCompleteLoanTasks` OK
16337
- * @response `404` `ProblemDetails` Not Found
16338
- * @response `422` `UnprocessableEntity` Unprocessable Content
16339
- */
16340
- bulkCompleteLoanTasks: (
16341
- loanId: string,
16342
- data: BulkCompleteLoanTasksRequest,
16343
- params: RequestParams = {},
16344
- ) =>
16345
- this.request<BulkCompleteLoanTasks, ProblemDetails | UnprocessableEntity>(
16346
- {
16347
- path: `/api/loans/${loanId}/tasks/bulk-complete`,
16348
- method: "POST",
16349
- body: data,
16350
- secure: true,
16351
- type: "application/json",
16352
- format: "json",
16353
- ...params,
16354
- },
16355
- ),
16356
-
16357
16375
  /**
16358
16376
  * No description
16359
16377
  *