@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/src/index.ts CHANGED
@@ -110,7 +110,13 @@ export type LosCredentialHealthStatus =
110
110
 
111
111
  export type LogLevel = "None" | "Info" | "Warning" | "Error";
112
112
 
113
- export type LoanType = "Fha" | "Conventional" | "UsdaRd" | "Va" | "Other";
113
+ export type LoanType =
114
+ | "Fha"
115
+ | "Conventional"
116
+ | "UsdaRd"
117
+ | "Va"
118
+ | "Other"
119
+ | "Heloc";
114
120
 
115
121
  export type LoanTrustType = "Living" | "Land" | "Testamentary" | "Other";
116
122
 
@@ -825,6 +831,8 @@ export type AddressFamily =
825
831
  | "ControllerAreaNetwork"
826
832
  | "Unknown";
827
833
 
834
+ export type AccountPartnerStatus = "Active" | "Invited";
835
+
828
836
  export type CanvasWidgetConfig = BaseCanvasWidgetConfig &
829
837
  (
830
838
  | BaseCanvasWidgetConfigTypeMapping<"Information", InformationWidgetConfig>
@@ -937,6 +945,32 @@ export interface AccountFailureCount {
937
945
  count: number;
938
946
  }
939
947
 
948
+ export interface AccountPartner {
949
+ /** @format uuid */
950
+ partnerProfileID?: string | null;
951
+ /** @format uuid */
952
+ partnerID?: string | null;
953
+ firstName: string;
954
+ lastName: string;
955
+ email: string;
956
+ phone?: string | null;
957
+ status: AccountPartnerStatusEnum;
958
+ tier: AccountPartnerTierEnum;
959
+ /** @format date-time */
960
+ createdAt: string;
961
+ }
962
+
963
+ export interface AccountPartnerPaginated {
964
+ rows: AccountPartner[];
965
+ pagination: Pagination;
966
+ /** @format int64 */
967
+ count: number;
968
+ }
969
+
970
+ export interface AccountPartnerSearchCriteria {
971
+ searchText?: string | null;
972
+ }
973
+
940
974
  export interface AccountSettings {
941
975
  isSmsEnabled: boolean;
942
976
  smsNumber?: string | null;
@@ -4038,8 +4072,11 @@ export interface LoanApplicationRequest {
4038
4072
  userID: string;
4039
4073
  /** @format uuid */
4040
4074
  siteConfigurationID: string;
4075
+ /** @format uuid */
4076
+ submissionKey?: string | null;
4041
4077
  loanOfficerEmail?: string | null;
4042
4078
  purpose?: LoanPurpose | null;
4079
+ type?: LoanType | null;
4043
4080
  referrer?: string | null;
4044
4081
  companyName?: string | null;
4045
4082
  relationship?: BorrowerRelationship | null;
@@ -6324,6 +6361,17 @@ export interface MyPartner {
6324
6361
  createdAt: string;
6325
6362
  }
6326
6363
 
6364
+ export interface MyPartnerPaginated {
6365
+ rows: MyPartner[];
6366
+ pagination: Pagination;
6367
+ /** @format int64 */
6368
+ count: number;
6369
+ }
6370
+
6371
+ export interface MyPartnerSearchCriteria {
6372
+ searchText?: string | null;
6373
+ }
6374
+
6327
6375
  export type MyTasksWidgetConfig = UtilRequiredKeys<
6328
6376
  BaseCanvasWidgetConfig,
6329
6377
  "type"
@@ -8223,6 +8271,13 @@ export interface UpdatePartnerPortalRequest {
8223
8271
  isEnabled?: boolean | null;
8224
8272
  }
8225
8273
 
8274
+ export interface UpdatePartnerRequest {
8275
+ firstName: string;
8276
+ lastName: string;
8277
+ email: string;
8278
+ phone?: string | null;
8279
+ }
8280
+
8226
8281
  export interface UpdateUserGroupRequest {
8227
8282
  name: string;
8228
8283
  description?: string | null;
@@ -8826,6 +8881,10 @@ type BaseCanvasWidgetConfigTypeMapping<Key, Type> = {
8826
8881
 
8827
8882
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
8828
8883
 
8884
+ export type AccountPartnerStatusEnum = "Active" | "Invited";
8885
+
8886
+ export type AccountPartnerTierEnum = "Lite" | "LitePlusPortal" | "Pending";
8887
+
8829
8888
  export type AdminAccessUserMfaFactorEnum = "None" | "Sms" | "Email";
8830
8889
 
8831
8890
  export type AiAccessReadAloudVoiceEnum =
@@ -10222,7 +10281,7 @@ export class HttpClient<SecurityDataType = unknown> {
10222
10281
 
10223
10282
  /**
10224
10283
  * @title The Big POS API
10225
- * @version v3.28.0
10284
+ * @version v3.29.0
10226
10285
  * @termsOfService https://www.thebigpos.com/terms-of-use/
10227
10286
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
10228
10287
  */
@@ -10354,6 +10413,141 @@ export class Api<
10354
10413
  ...params,
10355
10414
  }),
10356
10415
 
10416
+ /**
10417
+ * @description Every partner of the caller's account: Realtors with an account and pending partners who have not signed up yet
10418
+ *
10419
+ * @tags AccountPartners
10420
+ * @name SearchAccountPartners
10421
+ * @summary Search Account Partners
10422
+ * @request POST:/api/account/partners/search
10423
+ * @secure
10424
+ * @response `200` `AccountPartnerPaginated` OK
10425
+ * @response `400` `ProblemDetails` Bad Request
10426
+ * @response `403` `ProblemDetails` Forbidden
10427
+ * @response `422` `ProblemDetails` Unprocessable Content
10428
+ */
10429
+ searchAccountPartners: (
10430
+ data: AccountPartnerSearchCriteria,
10431
+ query?: {
10432
+ /** @format int32 */
10433
+ pageSize?: number;
10434
+ /** @format int32 */
10435
+ pageNumber?: number;
10436
+ sortBy?: string;
10437
+ sortDirection?: string;
10438
+ },
10439
+ params: RequestParams = {},
10440
+ ) =>
10441
+ this.request<AccountPartnerPaginated, ProblemDetails>({
10442
+ path: `/api/account/partners/search`,
10443
+ method: "POST",
10444
+ query: query,
10445
+ body: data,
10446
+ secure: true,
10447
+ type: "application/json",
10448
+ format: "json",
10449
+ ...params,
10450
+ }),
10451
+
10452
+ /**
10453
+ * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
10454
+ *
10455
+ * @tags AccountPartners
10456
+ * @name PromotePartner
10457
+ * @summary Promote To Partner
10458
+ * @request POST:/api/account/partners/promotions
10459
+ * @secure
10460
+ * @response `200` `PromotePartner` OK
10461
+ * @response `400` `ProblemDetails` Bad Request
10462
+ * @response `403` `ProblemDetails` Forbidden
10463
+ * @response `404` `ProblemDetails` Not Found
10464
+ * @response `409` `ProblemDetails` Conflict
10465
+ * @response `422` `ProblemDetails` Unprocessable Content
10466
+ */
10467
+ promotePartner: (data: PromotePartnerRequest, params: RequestParams = {}) =>
10468
+ this.request<PromotePartner, ProblemDetails>({
10469
+ path: `/api/account/partners/promotions`,
10470
+ method: "POST",
10471
+ body: data,
10472
+ secure: true,
10473
+ type: "application/json",
10474
+ format: "json",
10475
+ ...params,
10476
+ }),
10477
+
10478
+ /**
10479
+ * @description Changes a registered partner's name, sign-in email and phone
10480
+ *
10481
+ * @tags AccountPartners
10482
+ * @name ReplacePartner
10483
+ * @summary Replace Partner
10484
+ * @request PUT:/api/account/partners/{partnerProfileId}
10485
+ * @secure
10486
+ * @response `204` `void` No Content
10487
+ * @response `403` `ProblemDetails` Forbidden
10488
+ * @response `404` `ProblemDetails` Not Found
10489
+ * @response `409` `ProblemDetails` Conflict
10490
+ * @response `422` `ProblemDetails` Unprocessable Content
10491
+ */
10492
+ replacePartner: (
10493
+ partnerProfileId: string,
10494
+ data: UpdatePartnerRequest,
10495
+ params: RequestParams = {},
10496
+ ) =>
10497
+ this.request<void, ProblemDetails>({
10498
+ path: `/api/account/partners/${partnerProfileId}`,
10499
+ method: "PUT",
10500
+ body: data,
10501
+ secure: true,
10502
+ type: "application/json",
10503
+ ...params,
10504
+ }),
10505
+
10506
+ /**
10507
+ * @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
10508
+ *
10509
+ * @tags AccountPartners
10510
+ * @name DemotePartner
10511
+ * @summary Demote Partner
10512
+ * @request POST:/api/account/partners/{partnerProfileId}/demote
10513
+ * @secure
10514
+ * @response `204` `void` No Content
10515
+ * @response `403` `ProblemDetails` Forbidden
10516
+ * @response `404` `ProblemDetails` Not Found
10517
+ * @response `409` `ProblemDetails` Conflict
10518
+ */
10519
+ demotePartner: (partnerProfileId: string, params: RequestParams = {}) =>
10520
+ this.request<void, ProblemDetails>({
10521
+ path: `/api/account/partners/${partnerProfileId}/demote`,
10522
+ method: "POST",
10523
+ secure: true,
10524
+ ...params,
10525
+ }),
10526
+
10527
+ /**
10528
+ * @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
10529
+ *
10530
+ * @tags AccountPartners
10531
+ * @name CancelPartnerInvite
10532
+ * @summary Cancel Partner Invite
10533
+ * @request POST:/api/account/partners/{partnerProfileId}/cancel
10534
+ * @secure
10535
+ * @response `204` `void` No Content
10536
+ * @response `403` `ProblemDetails` Forbidden
10537
+ * @response `404` `ProblemDetails` Not Found
10538
+ * @response `409` `ProblemDetails` Conflict
10539
+ */
10540
+ cancelPartnerInvite: (
10541
+ partnerProfileId: string,
10542
+ params: RequestParams = {},
10543
+ ) =>
10544
+ this.request<void, ProblemDetails>({
10545
+ path: `/api/account/partners/${partnerProfileId}/cancel`,
10546
+ method: "POST",
10547
+ secure: true,
10548
+ ...params,
10549
+ }),
10550
+
10357
10551
  /**
10358
10552
  * No description
10359
10553
  *
@@ -15642,6 +15836,7 @@ export class Api<
15642
15836
  * @request POST:/api/los/loan/application/internal
15643
15837
  * @secure
15644
15838
  * @response `200` `string` OK
15839
+ * @response `409` `ProblemDetails` Conflict
15645
15840
  * @response `422` `UnprocessableEntity` Unprocessable Content
15646
15841
  * @response `423` `UnprocessableEntity` Locked
15647
15842
  */
@@ -15653,7 +15848,7 @@ export class Api<
15653
15848
  },
15654
15849
  params: RequestParams = {},
15655
15850
  ) =>
15656
- this.request<string, UnprocessableEntity>({
15851
+ this.request<string, ProblemDetails | UnprocessableEntity>({
15657
15852
  path: `/api/los/loan/application/internal`,
15658
15853
  method: "POST",
15659
15854
  query: query,
@@ -18398,6 +18593,7 @@ export class Api<
18398
18593
  * @response `401` `ProblemDetails` Unauthorized
18399
18594
  * @response `403` `ProblemDetails` Forbidden
18400
18595
  * @response `404` `ProblemDetails` Not Found
18596
+ * @response `409` `ProblemDetails` Conflict
18401
18597
  */
18402
18598
  createLoanv3: (
18403
18599
  data: LoanApplicationRequest,
@@ -23131,6 +23327,41 @@ export class Api<
23131
23327
  ...params,
23132
23328
  }),
23133
23329
 
23330
+ /**
23331
+ * @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
23332
+ *
23333
+ * @tags UsersMe
23334
+ * @name SearchMyPartners
23335
+ * @summary Search My Partners
23336
+ * @request POST:/api/users/me/partners/search
23337
+ * @secure
23338
+ * @response `200` `MyPartnerPaginated` OK
23339
+ * @response `400` `ProblemDetails` Bad Request
23340
+ * @response `403` `ProblemDetails` Forbidden
23341
+ */
23342
+ searchMyPartners: (
23343
+ data: MyPartnerSearchCriteria,
23344
+ query?: {
23345
+ /** @format int32 */
23346
+ pageSize?: number;
23347
+ /** @format int32 */
23348
+ pageNumber?: number;
23349
+ sortBy?: string;
23350
+ sortDirection?: string;
23351
+ },
23352
+ params: RequestParams = {},
23353
+ ) =>
23354
+ this.request<MyPartnerPaginated, ProblemDetails>({
23355
+ path: `/api/users/me/partners/search`,
23356
+ method: "POST",
23357
+ query: query,
23358
+ body: data,
23359
+ secure: true,
23360
+ type: "application/json",
23361
+ format: "json",
23362
+ ...params,
23363
+ }),
23364
+
23134
23365
  /**
23135
23366
  * @description Adds a partner, by partner profile ID, to the loan officer's list; a pending partner can be added too
23136
23367
  *