@matech/thebigpos-sdk 3.28.0-main-8476 → 3.29.0-dev-8529

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/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export type LosSyncStepSeverity = "Success" | "Info" | "Warning" | "Error";
20
20
  export type LosOperationStatus = "Pending" | "Success" | "Failed" | "ConfigurationError" | "PermanentFailure" | "Locked" | "Skipped";
21
21
  export type LosCredentialHealthStatus = "Unknown" | "Healthy" | "InvalidCredentials" | "Forbidden" | "TransportError" | "NotConfigured";
22
22
  export type LogLevel = "None" | "Info" | "Warning" | "Error";
23
- export type LoanType = "Fha" | "Conventional" | "UsdaRd" | "Va" | "Other";
23
+ export type LoanType = "Fha" | "Conventional" | "UsdaRd" | "Va" | "Other" | "Heloc";
24
24
  export type LoanTrustType = "Living" | "Land" | "Testamentary" | "Other";
25
25
  export type LoanTitleHeld = "Sole" | "JointWithSpouse" | "JointWithOtherThanSpouse";
26
26
  export type LoanTaskActivityFilter = "Active" | "Inactive" | "All";
@@ -124,6 +124,7 @@ export type AiDisplayHint = "Table" | "SummaryCards" | "RankedList" | "Compariso
124
124
  export type AiChatInputSource = "Keyboard" | "Prompt" | "Action" | "Voice";
125
125
  export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied" | "AgentModelCall" | "AgentToolCallRequested" | "AgentToolCallCompleted" | "AgentToolCallFailed" | "AgentLoopLimitReached" | "RequestCancelled" | "KnowledgeBaseRetrieved" | "PromptResolutionFailed" | "PromptTriggerPublished" | "PromptTriggerSkipped" | "PromptRunCompleted" | "LoanUpdateProposed" | "LoanUpdateApplied" | "LoanUpdateRefused" | "PromptTriggerCoalesced" | "RecommendationRunCompleted" | "BoundPromptForced";
126
126
  export type AddressFamily = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
127
+ export type AccountPartnerStatus = "Active" | "Invited";
127
128
  export type CanvasWidgetConfig = BaseCanvasWidgetConfig & (BaseCanvasWidgetConfigTypeMapping<"Information", InformationWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"Kpi", KpiWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"KeyDates", KeyDatesWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"LoanProgress", LoanProgressWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"MonthlyPayment", MonthlyPaymentWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"Amortization", AmortizationWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"PrimaryBorrower", PrimaryBorrowerWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"OpenTasks", OpenTasksWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"Documents", DocumentsWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"EsignStatus", EsignStatusWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"LoanTeam", LoanTeamWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"TextBlock", TextBlockWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"SectionDivider", SectionDividerWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"MyTasks", MyTasksWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"RecentLoans", RecentLoansWidgetConfig> | BaseCanvasWidgetConfigTypeMapping<"ClosingSoon", ClosingSoonWidgetConfig>);
128
129
  export interface ASOSettings {
129
130
  enabled: boolean;
@@ -195,6 +196,29 @@ export interface AccountFailureCount {
195
196
  /** @format int32 */
196
197
  count: number;
197
198
  }
199
+ export interface AccountPartner {
200
+ /** @format uuid */
201
+ partnerProfileID?: string | null;
202
+ /** @format uuid */
203
+ partnerID?: string | null;
204
+ firstName: string;
205
+ lastName: string;
206
+ email: string;
207
+ phone?: string | null;
208
+ status: AccountPartnerStatusEnum;
209
+ tier: AccountPartnerTierEnum;
210
+ /** @format date-time */
211
+ createdAt: string;
212
+ }
213
+ export interface AccountPartnerPaginated {
214
+ rows: AccountPartner[];
215
+ pagination: Pagination;
216
+ /** @format int64 */
217
+ count: number;
218
+ }
219
+ export interface AccountPartnerSearchCriteria {
220
+ searchText?: string | null;
221
+ }
198
222
  export interface AccountSettings {
199
223
  isSmsEnabled: boolean;
200
224
  smsNumber?: string | null;
@@ -2977,8 +3001,11 @@ export interface LoanApplicationRequest {
2977
3001
  userID: string;
2978
3002
  /** @format uuid */
2979
3003
  siteConfigurationID: string;
3004
+ /** @format uuid */
3005
+ submissionKey?: string | null;
2980
3006
  loanOfficerEmail?: string | null;
2981
3007
  purpose?: LoanPurpose | null;
3008
+ type?: LoanType | null;
2982
3009
  referrer?: string | null;
2983
3010
  companyName?: string | null;
2984
3011
  relationship?: BorrowerRelationship | null;
@@ -5066,6 +5093,15 @@ export interface MyPartner {
5066
5093
  /** @format date-time */
5067
5094
  createdAt: string;
5068
5095
  }
5096
+ export interface MyPartnerPaginated {
5097
+ rows: MyPartner[];
5098
+ pagination: Pagination;
5099
+ /** @format int64 */
5100
+ count: number;
5101
+ }
5102
+ export interface MyPartnerSearchCriteria {
5103
+ searchText?: string | null;
5104
+ }
5069
5105
  export type MyTasksWidgetConfig = UtilRequiredKeys<BaseCanvasWidgetConfig, "type"> & {
5070
5106
  /** @format int32 */
5071
5107
  dueWithinDays: number;
@@ -6808,6 +6844,12 @@ export interface UpdateMobilePhoneRequest {
6808
6844
  export interface UpdatePartnerPortalRequest {
6809
6845
  isEnabled?: boolean | null;
6810
6846
  }
6847
+ export interface UpdatePartnerRequest {
6848
+ firstName: string;
6849
+ lastName: string;
6850
+ email: string;
6851
+ phone?: string | null;
6852
+ }
6811
6853
  export interface UpdateUserGroupRequest {
6812
6854
  name: string;
6813
6855
  description?: string | null;
@@ -7358,6 +7400,8 @@ type BaseCanvasWidgetConfigTypeMapping<Key, Type> = {
7358
7400
  type: Key;
7359
7401
  } & Type;
7360
7402
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
7403
+ export type AccountPartnerStatusEnum = "Active" | "Invited";
7404
+ export type AccountPartnerTierEnum = "Lite" | "LitePlusPortal" | "Pending";
7361
7405
  export type AdminAccessUserMfaFactorEnum = "None" | "Sms" | "Email";
7362
7406
  export type AiAccessReadAloudVoiceEnum = "Automatic" | "UsFemale" | "UsMale" | "UkFemale" | "UkMale";
7363
7407
  export type AiAccountSettingsReadAloudVoiceEnum = "Automatic" | "UsFemale" | "UsMale" | "UkFemale" | "UkMale";
@@ -7589,7 +7633,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
7589
7633
  }
7590
7634
  /**
7591
7635
  * @title The Big POS API
7592
- * @version v3.28.0
7636
+ * @version v3.29.0
7593
7637
  * @termsOfService https://www.thebigpos.com/terms-of-use/
7594
7638
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
7595
7639
  */
@@ -7663,6 +7707,86 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7663
7707
  * @response `422` `UnprocessableEntity` Unprocessable Content
7664
7708
  */
7665
7709
  updateSiteConfigurationForAccount: (data: SiteConfiguration, params?: RequestParams) => Promise<AxiosResponse<SiteConfiguration, any, {}, any>>;
7710
+ /**
7711
+ * @description Every partner of the caller's account: Realtors with an account and pending partners who have not signed up yet
7712
+ *
7713
+ * @tags AccountPartners
7714
+ * @name SearchAccountPartners
7715
+ * @summary Search Account Partners
7716
+ * @request POST:/api/account/partners/search
7717
+ * @secure
7718
+ * @response `200` `AccountPartnerPaginated` OK
7719
+ * @response `400` `ProblemDetails` Bad Request
7720
+ * @response `403` `ProblemDetails` Forbidden
7721
+ * @response `422` `ProblemDetails` Unprocessable Content
7722
+ */
7723
+ searchAccountPartners: (data: AccountPartnerSearchCriteria, query?: {
7724
+ /** @format int32 */
7725
+ pageSize?: number;
7726
+ /** @format int32 */
7727
+ pageNumber?: number;
7728
+ sortBy?: string;
7729
+ sortDirection?: string;
7730
+ }, params?: RequestParams) => Promise<AxiosResponse<AccountPartnerPaginated, any, {}, any>>;
7731
+ /**
7732
+ * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
7733
+ *
7734
+ * @tags AccountPartners
7735
+ * @name PromotePartner
7736
+ * @summary Promote To Partner
7737
+ * @request POST:/api/account/partners/promotions
7738
+ * @secure
7739
+ * @response `200` `PromotePartner` OK
7740
+ * @response `400` `ProblemDetails` Bad Request
7741
+ * @response `403` `ProblemDetails` Forbidden
7742
+ * @response `404` `ProblemDetails` Not Found
7743
+ * @response `409` `ProblemDetails` Conflict
7744
+ * @response `422` `ProblemDetails` Unprocessable Content
7745
+ */
7746
+ promotePartner: (data: PromotePartnerRequest, params?: RequestParams) => Promise<AxiosResponse<PromotePartner, any, {}, any>>;
7747
+ /**
7748
+ * @description Changes a registered partner's name, sign-in email and phone
7749
+ *
7750
+ * @tags AccountPartners
7751
+ * @name ReplacePartner
7752
+ * @summary Replace Partner
7753
+ * @request PUT:/api/account/partners/{partnerProfileId}
7754
+ * @secure
7755
+ * @response `204` `void` No Content
7756
+ * @response `403` `ProblemDetails` Forbidden
7757
+ * @response `404` `ProblemDetails` Not Found
7758
+ * @response `409` `ProblemDetails` Conflict
7759
+ * @response `422` `ProblemDetails` Unprocessable Content
7760
+ */
7761
+ replacePartner: (partnerProfileId: string, data: UpdatePartnerRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
7762
+ /**
7763
+ * @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
7764
+ *
7765
+ * @tags AccountPartners
7766
+ * @name DemotePartner
7767
+ * @summary Demote Partner
7768
+ * @request POST:/api/account/partners/{partnerProfileId}/demote
7769
+ * @secure
7770
+ * @response `204` `void` No Content
7771
+ * @response `403` `ProblemDetails` Forbidden
7772
+ * @response `404` `ProblemDetails` Not Found
7773
+ * @response `409` `ProblemDetails` Conflict
7774
+ */
7775
+ demotePartner: (partnerProfileId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
7776
+ /**
7777
+ * @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
7778
+ *
7779
+ * @tags AccountPartners
7780
+ * @name CancelPartnerInvite
7781
+ * @summary Cancel Partner Invite
7782
+ * @request POST:/api/account/partners/{partnerProfileId}/cancel
7783
+ * @secure
7784
+ * @response `204` `void` No Content
7785
+ * @response `403` `ProblemDetails` Forbidden
7786
+ * @response `404` `ProblemDetails` Not Found
7787
+ * @response `409` `ProblemDetails` Conflict
7788
+ */
7789
+ cancelPartnerInvite: (partnerProfileId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
7666
7790
  /**
7667
7791
  * No description
7668
7792
  *
@@ -10608,6 +10732,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10608
10732
  * @request POST:/api/los/loan/application/internal
10609
10733
  * @secure
10610
10734
  * @response `200` `string` OK
10735
+ * @response `409` `ProblemDetails` Conflict
10611
10736
  * @response `422` `UnprocessableEntity` Unprocessable Content
10612
10737
  * @response `423` `UnprocessableEntity` Locked
10613
10738
  */
@@ -12102,6 +12227,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12102
12227
  * @response `401` `ProblemDetails` Unauthorized
12103
12228
  * @response `403` `ProblemDetails` Forbidden
12104
12229
  * @response `404` `ProblemDetails` Not Found
12230
+ * @response `409` `ProblemDetails` Conflict
12105
12231
  */
12106
12232
  createLoanv3: (data: LoanApplicationRequest, query?: {
12107
12233
  application?: string;
@@ -14629,6 +14755,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14629
14755
  * @response `403` `ProblemDetails` Forbidden
14630
14756
  */
14631
14757
  getMyPartners: (params?: RequestParams) => Promise<AxiosResponse<MyPartner[], any, {}, any>>;
14758
+ /**
14759
+ * @description Searches the rows getMyPartners returns by first name, last name, full name or email, and pages them. Sorts by firstName, lastName, email, tier or createdAt when both sortBy and sortDirection are given, else newest first
14760
+ *
14761
+ * @tags UsersMe
14762
+ * @name SearchMyPartners
14763
+ * @summary Search My Partners
14764
+ * @request POST:/api/users/me/partners/search
14765
+ * @secure
14766
+ * @response `200` `MyPartnerPaginated` OK
14767
+ * @response `400` `ProblemDetails` Bad Request
14768
+ * @response `403` `ProblemDetails` Forbidden
14769
+ */
14770
+ searchMyPartners: (data: MyPartnerSearchCriteria, query?: {
14771
+ /** @format int32 */
14772
+ pageSize?: number;
14773
+ /** @format int32 */
14774
+ pageNumber?: number;
14775
+ sortBy?: string;
14776
+ sortDirection?: string;
14777
+ }, params?: RequestParams) => Promise<AxiosResponse<MyPartnerPaginated, any, {}, any>>;
14632
14778
  /**
14633
14779
  * @description Adds a partner, by partner profile ID, to the loan officer's list; a pending partner can be added too
14634
14780
  *
package/dist/index.js CHANGED
@@ -101,7 +101,7 @@ export class HttpClient {
101
101
  }
102
102
  /**
103
103
  * @title The Big POS API
104
- * @version v3.28.0
104
+ * @version v3.29.0
105
105
  * @termsOfService https://www.thebigpos.com/terms-of-use/
106
106
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
107
107
  */
@@ -177,6 +177,79 @@ export class Api extends HttpClient {
177
177
  * @response `422` `UnprocessableEntity` Unprocessable Content
178
178
  */
179
179
  updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
180
+ /**
181
+ * @description Every partner of the caller's account: Realtors with an account and pending partners who have not signed up yet
182
+ *
183
+ * @tags AccountPartners
184
+ * @name SearchAccountPartners
185
+ * @summary Search Account Partners
186
+ * @request POST:/api/account/partners/search
187
+ * @secure
188
+ * @response `200` `AccountPartnerPaginated` OK
189
+ * @response `400` `ProblemDetails` Bad Request
190
+ * @response `403` `ProblemDetails` Forbidden
191
+ * @response `422` `ProblemDetails` Unprocessable Content
192
+ */
193
+ searchAccountPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/account/partners/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
194
+ /**
195
+ * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
196
+ *
197
+ * @tags AccountPartners
198
+ * @name PromotePartner
199
+ * @summary Promote To Partner
200
+ * @request POST:/api/account/partners/promotions
201
+ * @secure
202
+ * @response `200` `PromotePartner` OK
203
+ * @response `400` `ProblemDetails` Bad Request
204
+ * @response `403` `ProblemDetails` Forbidden
205
+ * @response `404` `ProblemDetails` Not Found
206
+ * @response `409` `ProblemDetails` Conflict
207
+ * @response `422` `ProblemDetails` Unprocessable Content
208
+ */
209
+ promotePartner: (data, params = {}) => this.request(Object.assign({ path: `/api/account/partners/promotions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
210
+ /**
211
+ * @description Changes a registered partner's name, sign-in email and phone
212
+ *
213
+ * @tags AccountPartners
214
+ * @name ReplacePartner
215
+ * @summary Replace Partner
216
+ * @request PUT:/api/account/partners/{partnerProfileId}
217
+ * @secure
218
+ * @response `204` `void` No Content
219
+ * @response `403` `ProblemDetails` Forbidden
220
+ * @response `404` `ProblemDetails` Not Found
221
+ * @response `409` `ProblemDetails` Conflict
222
+ * @response `422` `ProblemDetails` Unprocessable Content
223
+ */
224
+ replacePartner: (partnerProfileId, data, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
225
+ /**
226
+ * @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
227
+ *
228
+ * @tags AccountPartners
229
+ * @name DemotePartner
230
+ * @summary Demote Partner
231
+ * @request POST:/api/account/partners/{partnerProfileId}/demote
232
+ * @secure
233
+ * @response `204` `void` No Content
234
+ * @response `403` `ProblemDetails` Forbidden
235
+ * @response `404` `ProblemDetails` Not Found
236
+ * @response `409` `ProblemDetails` Conflict
237
+ */
238
+ demotePartner: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}/demote`, method: "POST", secure: true }, params)),
239
+ /**
240
+ * @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
241
+ *
242
+ * @tags AccountPartners
243
+ * @name CancelPartnerInvite
244
+ * @summary Cancel Partner Invite
245
+ * @request POST:/api/account/partners/{partnerProfileId}/cancel
246
+ * @secure
247
+ * @response `204` `void` No Content
248
+ * @response `403` `ProblemDetails` Forbidden
249
+ * @response `404` `ProblemDetails` Not Found
250
+ * @response `409` `ProblemDetails` Conflict
251
+ */
252
+ cancelPartnerInvite: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}/cancel`, method: "POST", secure: true }, params)),
180
253
  /**
181
254
  * No description
182
255
  *
@@ -2773,6 +2846,7 @@ export class Api extends HttpClient {
2773
2846
  * @request POST:/api/los/loan/application/internal
2774
2847
  * @secure
2775
2848
  * @response `200` `string` OK
2849
+ * @response `409` `ProblemDetails` Conflict
2776
2850
  * @response `422` `UnprocessableEntity` Unprocessable Content
2777
2851
  * @response `423` `UnprocessableEntity` Locked
2778
2852
  */
@@ -4147,6 +4221,7 @@ export class Api extends HttpClient {
4147
4221
  * @response `401` `ProblemDetails` Unauthorized
4148
4222
  * @response `403` `ProblemDetails` Forbidden
4149
4223
  * @response `404` `ProblemDetails` Not Found
4224
+ * @response `409` `ProblemDetails` Conflict
4150
4225
  */
4151
4226
  createLoanv3: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4152
4227
  /**
@@ -6456,6 +6531,19 @@ export class Api extends HttpClient {
6456
6531
  * @response `403` `ProblemDetails` Forbidden
6457
6532
  */
6458
6533
  getMyPartners: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partners`, method: "GET", secure: true, format: "json" }, params)),
6534
+ /**
6535
+ * @description Searches the rows getMyPartners returns by first name, last name, full name or email, and pages them. Sorts by firstName, lastName, email, tier or createdAt when both sortBy and sortDirection are given, else newest first
6536
+ *
6537
+ * @tags UsersMe
6538
+ * @name SearchMyPartners
6539
+ * @summary Search My Partners
6540
+ * @request POST:/api/users/me/partners/search
6541
+ * @secure
6542
+ * @response `200` `MyPartnerPaginated` OK
6543
+ * @response `400` `ProblemDetails` Bad Request
6544
+ * @response `403` `ProblemDetails` Forbidden
6545
+ */
6546
+ searchMyPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
6459
6547
  /**
6460
6548
  * @description Adds a partner, by partner profile ID, to the loan officer's list; a pending partner can be added too
6461
6549
  *