@matech/thebigpos-sdk 2.38.1 → 2.38.2

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,13 @@ export type UserRole =
23
23
  | "LoanOfficerAssistant"
24
24
  | "SystemAdmin";
25
25
 
26
+ export type TaskStatus =
27
+ | "Outstanding"
28
+ | "Pending"
29
+ | "Completed"
30
+ | "Rejected"
31
+ | "Unknown";
32
+
26
33
  export type SiteConfigurationType =
27
34
  | "None"
28
35
  | "Account"
@@ -31,7 +38,7 @@ export type SiteConfigurationType =
31
38
  | "LoanOfficer"
32
39
  | "Partner";
33
40
 
34
- export type SigningMethod = "CustomerConnect" | "POSF";
41
+ export type SigningMethod = "ConsumerConnect" | "POSF";
35
42
 
36
43
  export type SSOIntegrationType = "ConsumerConnect" | "TheBigPOS" | "POSF";
37
44
 
@@ -46,6 +53,8 @@ export type LoanTitleHeld =
46
53
  | "JointWithSpouse"
47
54
  | "JointWithOtherThanSpouse";
48
55
 
56
+ export type LoanTaskActivityFilter = "Active" | "Inactive" | "All";
57
+
49
58
  export type LoanRole =
50
59
  | "Borrower"
51
60
  | "CoBorrower"
@@ -189,7 +198,8 @@ export type LoanLogType =
189
198
  | "LoanStatusChanged"
190
199
  | "EConsent"
191
200
  | "SensitiveDataPurge"
192
- | "ClosingDateUpdated";
201
+ | "ClosingDateUpdated"
202
+ | "ConsumerConnectAssociation";
193
203
 
194
204
  export type LoanLienPosition = "First" | "Subordinate";
195
205
 
@@ -330,6 +340,14 @@ export type EncompassLogOperationType =
330
340
 
331
341
  export type DraftType = "NewLoan" | "EditLoan";
332
342
 
343
+ export type ConsumerConnectAssociationStatus =
344
+ | "Legacy"
345
+ | "Pending"
346
+ | "Success"
347
+ | "Failed"
348
+ | "ConfigurationError"
349
+ | "PermanentFailure";
350
+
333
351
  export type ConsentType = "Econsent" | "CreditAuthorization" | "Tcpa";
334
352
 
335
353
  export type ConsentLosSyncStatus = "NotStarted" | "Failed" | "Success";
@@ -767,6 +785,11 @@ export interface Attachment {
767
785
  base64Data: string;
768
786
  }
769
787
 
788
+ export interface AuditEntityType {
789
+ entityType: string;
790
+ rootEntityType?: string | null;
791
+ }
792
+
770
793
  export interface AuditLogEntry {
771
794
  /** @format uuid */
772
795
  id: string;
@@ -806,9 +829,6 @@ export interface AuditLogSearchCriteria {
806
829
  startDate?: string | null;
807
830
  /** @format date-time */
808
831
  endDate?: string | null;
809
- rootEntityType?: string | null;
810
- /** @format uuid */
811
- rootEntityId?: string | null;
812
832
  }
813
833
 
814
834
  export interface AuditLogUser {
@@ -1013,6 +1033,42 @@ export interface ConditionComment {
1013
1033
  createdByName: string;
1014
1034
  }
1015
1035
 
1036
+ export interface ConsumerConnectRetry {
1037
+ /** @format uuid */
1038
+ userLoanId: string;
1039
+ email: string;
1040
+ status?: ConsumerConnectAssociationStatus | null;
1041
+ success: boolean;
1042
+ }
1043
+
1044
+ export interface ConsumerConnectStatus {
1045
+ /** @format uuid */
1046
+ userLoanId: string;
1047
+ /** @format uuid */
1048
+ userId: string;
1049
+ email: string;
1050
+ role:
1051
+ | "Borrower"
1052
+ | "CoBorrower"
1053
+ | "NonBorrower"
1054
+ | "LoanOfficer"
1055
+ | "LoanProcessor"
1056
+ | "LoanOfficerAssistant"
1057
+ | "SupportingLoanOfficer"
1058
+ | "BuyerAgent"
1059
+ | "SellerAgent"
1060
+ | "TitleInsuranceAgent"
1061
+ | "EscrowAgent"
1062
+ | "SettlementAgent";
1063
+ status?: ConsumerConnectAssociationStatus | null;
1064
+ /** @format int32 */
1065
+ attemptCount: number;
1066
+ /** @format date-time */
1067
+ lastAttemptAt?: string | null;
1068
+ /** @format date-time */
1069
+ nextRetryAt?: string | null;
1070
+ }
1071
+
1016
1072
  export interface ContactInfo {
1017
1073
  phone: string;
1018
1074
  tollFreePhone?: string | null;
@@ -1262,6 +1318,10 @@ export interface CreateUserRequest {
1262
1318
  isInternal?: boolean | null;
1263
1319
  }
1264
1320
 
1321
+ export interface CreateWebhookRequest {
1322
+ webhookPath: string;
1323
+ }
1324
+
1265
1325
  export interface CustomLoanData {
1266
1326
  eConsentInformation?: EConsentInformation | null;
1267
1327
  }
@@ -1629,6 +1689,42 @@ export interface EncompassContact {
1629
1689
  company?: string | null;
1630
1690
  }
1631
1691
 
1692
+ export interface EncompassCredentialsDetail {
1693
+ /** @format uuid */
1694
+ id: string;
1695
+ /** @format uuid */
1696
+ accountID: string;
1697
+ instanceID: string;
1698
+ loanAssignmentRole?: string | null;
1699
+ loanTemplate?: string | null;
1700
+ defaultLoanOfficerUserName?: string | null;
1701
+ clearStateIfUnlicensed: boolean;
1702
+ baseUrl?: string | null;
1703
+ signingMethod: "ConsumerConnect" | "POSF";
1704
+ subscriptionId?: string | null;
1705
+ environment?: string | null;
1706
+ }
1707
+
1708
+ export interface EncompassCredentialsRequest {
1709
+ /** @format uuid */
1710
+ id: string;
1711
+ /** @format uuid */
1712
+ accountID: string;
1713
+ instanceID: string;
1714
+ loanAssignmentRole?: string | null;
1715
+ loanTemplate?: string | null;
1716
+ defaultLoanOfficerUserName?: string | null;
1717
+ clearStateIfUnlicensed: boolean;
1718
+ baseUrl?: string | null;
1719
+ signingMethod: "ConsumerConnect" | "POSF";
1720
+ subscriptionId?: string | null;
1721
+ environment?: string | null;
1722
+ clientID?: string | null;
1723
+ clientSecret?: string | null;
1724
+ signingKeyId?: string | null;
1725
+ signingKey?: string | null;
1726
+ }
1727
+
1632
1728
  export interface EncompassError {
1633
1729
  errorCode: string;
1634
1730
  message: string;
@@ -2370,7 +2466,7 @@ export interface Loan {
2370
2466
  nonOwningBorrowers: LoanNonOwningBorrower[];
2371
2467
  userLoans: UserLoan[];
2372
2468
  contacts: LoanContact[];
2373
- signingMethod: "CustomerConnect" | "POSF";
2469
+ signingMethod: "ConsumerConnect" | "POSF";
2374
2470
  }
2375
2471
 
2376
2472
  export interface LoanApplication {
@@ -3486,6 +3582,7 @@ export interface LoanIdentifier {
3486
3582
  /** @format uuid */
3487
3583
  id: string;
3488
3584
  losLoanID: string;
3585
+ number?: string | null;
3489
3586
  }
3490
3587
 
3491
3588
  export interface LoanImport {
@@ -3589,7 +3686,8 @@ export interface LoanLog {
3589
3686
  | "LoanStatusChanged"
3590
3687
  | "EConsent"
3591
3688
  | "SensitiveDataPurge"
3592
- | "ClosingDateUpdated";
3689
+ | "ClosingDateUpdated"
3690
+ | "ConsumerConnectAssociation";
3593
3691
  message: string;
3594
3692
  /** @format date-time */
3595
3693
  createdAt: string;
@@ -3613,7 +3711,8 @@ export interface LoanLogDetail {
3613
3711
  | "LoanStatusChanged"
3614
3712
  | "EConsent"
3615
3713
  | "SensitiveDataPurge"
3616
- | "ClosingDateUpdated";
3714
+ | "ClosingDateUpdated"
3715
+ | "ConsumerConnectAssociation";
3617
3716
  message: string;
3618
3717
  /** @format date-time */
3619
3718
  createdAt: string;
@@ -3889,6 +3988,17 @@ export interface LoanSettings {
3889
3988
  excludeFromAutoTaskReminders: boolean;
3890
3989
  }
3891
3990
 
3991
+ export interface LoanTaskSearchRequest {
3992
+ searchText?: string | null;
3993
+ statuses?: TaskStatus[] | null;
3994
+ loanNumber?: string | null;
3995
+ /** @format uuid */
3996
+ borrowerId?: string | null;
3997
+ /** @format uuid */
3998
+ loanId?: string | null;
3999
+ loanStatus?: LoanTaskActivityFilter | null;
4000
+ }
4001
+
3892
4002
  export interface LoanUser {
3893
4003
  /** @format uuid */
3894
4004
  id: string;
@@ -3915,6 +4025,14 @@ export interface LoanUser {
3915
4025
  createdAt: string;
3916
4026
  }
3917
4027
 
4028
+ export interface LosCredentials {
4029
+ /** @format uuid */
4030
+ id: string;
4031
+ /** @format uuid */
4032
+ accountID: string;
4033
+ instanceID: string;
4034
+ }
4035
+
3918
4036
  export interface LosLoanCreationRequest {
3919
4037
  loanOfficerUserName?: string | null;
3920
4038
  loanTemplate?: string | null;
@@ -3927,6 +4045,15 @@ export interface LosLoanCreationRequest {
3927
4045
  existingLoanID?: string | null;
3928
4046
  }
3929
4047
 
4048
+ export interface LosWebhook {
4049
+ /** @format uuid */
4050
+ id: string;
4051
+ endpoint: string;
4052
+ resource: string;
4053
+ events: string[];
4054
+ enableSubscription: boolean;
4055
+ }
4056
+
3930
4057
  export interface MdmUser {
3931
4058
  user_email?: string | null;
3932
4059
  user_id?: string | null;
@@ -5961,7 +6088,6 @@ export interface UserLoanTask {
5961
6088
  value?: string | null;
5962
6089
  documents: LoanDocument[];
5963
6090
  loan: LoanIdentifier;
5964
- /** @deprecated */
5965
6091
  loanID: string;
5966
6092
  /** @format date-time */
5967
6093
  completedDate?: string | null;
@@ -5974,6 +6100,13 @@ export interface UserLoanTask {
5974
6100
  commentsCount: number;
5975
6101
  }
5976
6102
 
6103
+ export interface UserLoanTaskPaginated {
6104
+ rows: UserLoanTask[];
6105
+ pagination: Pagination;
6106
+ /** @format int64 */
6107
+ count: number;
6108
+ }
6109
+
5977
6110
  export interface UserLoanTaskRequest {
5978
6111
  value?: string | null;
5979
6112
  /**
@@ -6313,7 +6446,7 @@ export class HttpClient<SecurityDataType = unknown> {
6313
6446
 
6314
6447
  /**
6315
6448
  * @title The Big POS API
6316
- * @version v2.38.0
6449
+ * @version v2.38.1
6317
6450
  * @termsOfService https://www.thebigpos.com/terms-of-use/
6318
6451
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
6319
6452
  */
@@ -6595,6 +6728,25 @@ export class Api<
6595
6728
  ...params,
6596
6729
  }),
6597
6730
 
6731
+ /**
6732
+ * No description
6733
+ *
6734
+ * @tags AuditLog
6735
+ * @name GetAuditLogEntityTypes
6736
+ * @summary Get entity types
6737
+ * @request GET:/api/audit-logs/entity-types
6738
+ * @secure
6739
+ * @response `200` `(AuditEntityType)[]` Success
6740
+ */
6741
+ getAuditLogEntityTypes: (params: RequestParams = {}) =>
6742
+ this.request<AuditEntityType[], any>({
6743
+ path: `/api/audit-logs/entity-types`,
6744
+ method: "GET",
6745
+ secure: true,
6746
+ format: "json",
6747
+ ...params,
6748
+ }),
6749
+
6598
6750
  /**
6599
6751
  * No description
6600
6752
  *
@@ -7175,6 +7327,47 @@ export class Api<
7175
7327
  ...params,
7176
7328
  }),
7177
7329
 
7330
+ /**
7331
+ * No description
7332
+ *
7333
+ * @tags ConsumerConnect
7334
+ * @name GetConsumerConnectStatus
7335
+ * @summary Get Consumer Connect association status for all borrowers on a loan
7336
+ * @request GET:/api/loans/{loanId}/consumer-connect/status
7337
+ * @secure
7338
+ * @response `200` `(ConsumerConnectStatus)[]` Success
7339
+ */
7340
+ getConsumerConnectStatus: (loanId: string, params: RequestParams = {}) =>
7341
+ this.request<ConsumerConnectStatus[], any>({
7342
+ path: `/api/loans/${loanId}/consumer-connect/status`,
7343
+ method: "GET",
7344
+ secure: true,
7345
+ format: "json",
7346
+ ...params,
7347
+ }),
7348
+
7349
+ /**
7350
+ * No description
7351
+ *
7352
+ * @tags ConsumerConnect
7353
+ * @name RetryConsumerConnectAssociation
7354
+ * @summary Manually retry Consumer Connect association for failed borrowers on a loan. Returns per-borrower results; check individual Success fields for partial failures.
7355
+ * @request POST:/api/loans/{loanId}/consumer-connect/retry
7356
+ * @secure
7357
+ * @response `200` `(ConsumerConnectRetry)[]` Success
7358
+ */
7359
+ retryConsumerConnectAssociation: (
7360
+ loanId: string,
7361
+ params: RequestParams = {},
7362
+ ) =>
7363
+ this.request<ConsumerConnectRetry[], any>({
7364
+ path: `/api/loans/${loanId}/consumer-connect/retry`,
7365
+ method: "POST",
7366
+ secure: true,
7367
+ format: "json",
7368
+ ...params,
7369
+ }),
7370
+
7178
7371
  /**
7179
7372
  * No description
7180
7373
  *
@@ -10886,9 +11079,42 @@ export class Api<
10886
11079
  }),
10887
11080
 
10888
11081
  /**
10889
- * No description
11082
+ * @description Search tasks across all loans
10890
11083
  *
10891
11084
  * @tags LoanTasks
11085
+ * @name SearchLoanTasks
11086
+ * @summary Search
11087
+ * @request POST:/api/loans/tasks/search
11088
+ * @secure
11089
+ * @response `200` `UserLoanTaskPaginated` Success
11090
+ */
11091
+ searchLoanTasks: (
11092
+ data: LoanTaskSearchRequest,
11093
+ query?: {
11094
+ /** @format int32 */
11095
+ pageSize?: number;
11096
+ /** @format int32 */
11097
+ pageNumber?: number;
11098
+ sortBy?: string;
11099
+ sortDirection?: string;
11100
+ },
11101
+ params: RequestParams = {},
11102
+ ) =>
11103
+ this.request<UserLoanTaskPaginated, any>({
11104
+ path: `/api/loans/tasks/search`,
11105
+ method: "POST",
11106
+ query: query,
11107
+ body: data,
11108
+ secure: true,
11109
+ type: ContentType.Json,
11110
+ format: "json",
11111
+ ...params,
11112
+ }),
11113
+
11114
+ /**
11115
+ * No description
11116
+ *
11117
+ * @tags LoanTasksForSingleLoan
10892
11118
  * @name GetLoanTasks
10893
11119
  * @summary Get All
10894
11120
  * @request GET:/api/loans/{loanID}/tasks
@@ -10908,7 +11134,7 @@ export class Api<
10908
11134
  /**
10909
11135
  * No description
10910
11136
  *
10911
- * @tags LoanTasks
11137
+ * @tags LoanTasksForSingleLoan
10912
11138
  * @name GetLoanTask
10913
11139
  * @summary Get by ID
10914
11140
  * @request GET:/api/loans/{loanID}/tasks/{id}
@@ -10928,7 +11154,7 @@ export class Api<
10928
11154
  /**
10929
11155
  * @description Get the difference between the current loan tasks and the tasks generated by business rules
10930
11156
  *
10931
- * @tags LoanTasks
11157
+ * @tags LoanTasksForSingleLoan
10932
11158
  * @name GetLoanTaskDifference
10933
11159
  * @summary Get Difference
10934
11160
  * @request GET:/api/loans/{loanID}/tasks/diff
@@ -10948,7 +11174,7 @@ export class Api<
10948
11174
  /**
10949
11175
  * No description
10950
11176
  *
10951
- * @tags LoanTasks
11177
+ * @tags LoanTasksForSingleLoan
10952
11178
  * @name CreateLoanTask
10953
11179
  * @summary Create
10954
11180
  * @request POST:/api/loans/{loanID}/tasks/{taskID}
@@ -10975,7 +11201,7 @@ export class Api<
10975
11201
  /**
10976
11202
  * No description
10977
11203
  *
10978
- * @tags LoanTasks
11204
+ * @tags LoanTasksForSingleLoan
10979
11205
  * @name ImportLoanTask
10980
11206
  * @summary Import
10981
11207
  * @request POST:/api/loans/{loanID}/tasks/import
@@ -11001,7 +11227,7 @@ export class Api<
11001
11227
  /**
11002
11228
  * No description
11003
11229
  *
11004
- * @tags LoanTasks
11230
+ * @tags LoanTasksForSingleLoan
11005
11231
  * @name ReplaceLoanTask
11006
11232
  * @summary Replace
11007
11233
  * @request PUT:/api/loans/{loanID}/tasks/{userLoanTaskID}
@@ -11028,7 +11254,7 @@ export class Api<
11028
11254
  /**
11029
11255
  * No description
11030
11256
  *
11031
- * @tags LoanTasks
11257
+ * @tags LoanTasksForSingleLoan
11032
11258
  * @name DeleteLoanTask
11033
11259
  * @summary Delete
11034
11260
  * @request DELETE:/api/loans/{loanID}/tasks/{userLoanTaskID}
@@ -12487,6 +12713,129 @@ export class Api<
12487
12713
  ...params,
12488
12714
  }),
12489
12715
 
12716
+ /**
12717
+ * No description
12718
+ *
12719
+ * @tags TheBigPOS
12720
+ * @name GetEncompassCredentials
12721
+ * @request GET:/api/los/encompass/credentials
12722
+ * @secure
12723
+ * @response `200` `EncompassCredentialsDetail` Success
12724
+ * @response `204` `void` No Content
12725
+ */
12726
+ getEncompassCredentials: (params: RequestParams = {}) =>
12727
+ this.request<EncompassCredentialsDetail, any>({
12728
+ path: `/api/los/encompass/credentials`,
12729
+ method: "GET",
12730
+ secure: true,
12731
+ format: "json",
12732
+ ...params,
12733
+ }),
12734
+
12735
+ /**
12736
+ * No description
12737
+ *
12738
+ * @tags TheBigPOS
12739
+ * @name CreateEncompassCredentials
12740
+ * @request POST:/api/los/encompass/credentials
12741
+ * @secure
12742
+ * @response `201` `LosCredentials` Created
12743
+ */
12744
+ createEncompassCredentials: (
12745
+ data: EncompassCredentialsRequest,
12746
+ params: RequestParams = {},
12747
+ ) =>
12748
+ this.request<LosCredentials, any>({
12749
+ path: `/api/los/encompass/credentials`,
12750
+ method: "POST",
12751
+ body: data,
12752
+ secure: true,
12753
+ type: ContentType.Json,
12754
+ format: "json",
12755
+ ...params,
12756
+ }),
12757
+
12758
+ /**
12759
+ * No description
12760
+ *
12761
+ * @tags TheBigPOS
12762
+ * @name UpdateEncompassCredentials
12763
+ * @request PUT:/api/los/encompass/credentials
12764
+ * @secure
12765
+ * @response `200` `EncompassCredentialsDetail` Success
12766
+ */
12767
+ updateEncompassCredentials: (
12768
+ data: EncompassCredentialsRequest,
12769
+ params: RequestParams = {},
12770
+ ) =>
12771
+ this.request<EncompassCredentialsDetail, any>({
12772
+ path: `/api/los/encompass/credentials`,
12773
+ method: "PUT",
12774
+ body: data,
12775
+ secure: true,
12776
+ type: ContentType.Json,
12777
+ format: "json",
12778
+ ...params,
12779
+ }),
12780
+
12781
+ /**
12782
+ * No description
12783
+ *
12784
+ * @tags TheBigPOS
12785
+ * @name GetEncompassWebhooks
12786
+ * @request GET:/api/los/encompass/webhooks
12787
+ * @secure
12788
+ * @response `200` `(LosWebhook)[]` Success
12789
+ */
12790
+ getEncompassWebhooks: (params: RequestParams = {}) =>
12791
+ this.request<LosWebhook[], any>({
12792
+ path: `/api/los/encompass/webhooks`,
12793
+ method: "GET",
12794
+ secure: true,
12795
+ format: "json",
12796
+ ...params,
12797
+ }),
12798
+
12799
+ /**
12800
+ * No description
12801
+ *
12802
+ * @tags TheBigPOS
12803
+ * @name CreateEncompassWebhook
12804
+ * @request POST:/api/los/encompass/webhooks
12805
+ * @secure
12806
+ * @response `201` `LosWebhook` Created
12807
+ */
12808
+ createEncompassWebhook: (
12809
+ data: CreateWebhookRequest,
12810
+ params: RequestParams = {},
12811
+ ) =>
12812
+ this.request<LosWebhook, any>({
12813
+ path: `/api/los/encompass/webhooks`,
12814
+ method: "POST",
12815
+ body: data,
12816
+ secure: true,
12817
+ type: ContentType.Json,
12818
+ format: "json",
12819
+ ...params,
12820
+ }),
12821
+
12822
+ /**
12823
+ * No description
12824
+ *
12825
+ * @tags TheBigPOS
12826
+ * @name DeleteEncompassWebhook
12827
+ * @request DELETE:/api/los/encompass/webhooks/{webhookId}
12828
+ * @secure
12829
+ * @response `204` `void` No Content
12830
+ */
12831
+ deleteEncompassWebhook: (webhookId: string, params: RequestParams = {}) =>
12832
+ this.request<void, any>({
12833
+ path: `/api/los/encompass/webhooks/${webhookId}`,
12834
+ method: "DELETE",
12835
+ secure: true,
12836
+ ...params,
12837
+ }),
12838
+
12490
12839
  /**
12491
12840
  * No description
12492
12841
  *