@matech/thebigpos-sdk 3.28.0-dev-8410 → 3.28.0-dev-8425

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
@@ -825,6 +825,8 @@ export type AddressFamily =
825
825
  | "ControllerAreaNetwork"
826
826
  | "Unknown";
827
827
 
828
+ export type AccountPartnerStatus = "Active" | "Invited";
829
+
828
830
  export type CanvasWidgetConfig = BaseCanvasWidgetConfig &
829
831
  (
830
832
  | BaseCanvasWidgetConfigTypeMapping<"Information", InformationWidgetConfig>
@@ -937,6 +939,32 @@ export interface AccountFailureCount {
937
939
  count: number;
938
940
  }
939
941
 
942
+ export interface AccountPartner {
943
+ /** @format uuid */
944
+ partnerProfileID?: string | null;
945
+ /** @format uuid */
946
+ partnerID?: string | null;
947
+ firstName: string;
948
+ lastName: string;
949
+ email: string;
950
+ phone?: string | null;
951
+ status: AccountPartnerStatusEnum;
952
+ tier: AccountPartnerTierEnum;
953
+ /** @format date-time */
954
+ createdAt: string;
955
+ }
956
+
957
+ export interface AccountPartnerPaginated {
958
+ rows: AccountPartner[];
959
+ pagination: Pagination;
960
+ /** @format int64 */
961
+ count: number;
962
+ }
963
+
964
+ export interface AccountPartnerSearchCriteria {
965
+ searchText?: string | null;
966
+ }
967
+
940
968
  export interface AccountSettings {
941
969
  isSmsEnabled: boolean;
942
970
  smsNumber?: string | null;
@@ -8234,6 +8262,13 @@ export interface UpdatePartnerPortalRequest {
8234
8262
  isEnabled?: boolean | null;
8235
8263
  }
8236
8264
 
8265
+ export interface UpdatePartnerRequest {
8266
+ firstName: string;
8267
+ lastName: string;
8268
+ email: string;
8269
+ phone?: string | null;
8270
+ }
8271
+
8237
8272
  export interface UpdateUserGroupRequest {
8238
8273
  name: string;
8239
8274
  description?: string | null;
@@ -8837,6 +8872,10 @@ type BaseCanvasWidgetConfigTypeMapping<Key, Type> = {
8837
8872
 
8838
8873
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
8839
8874
 
8875
+ export type AccountPartnerStatusEnum = "Active" | "Invited";
8876
+
8877
+ export type AccountPartnerTierEnum = "Lite" | "LitePlusPortal" | "Pending";
8878
+
8840
8879
  export type AdminAccessUserMfaFactorEnum = "None" | "Sms" | "Email";
8841
8880
 
8842
8881
  export type AiAccessReadAloudVoiceEnum =
@@ -10365,6 +10404,141 @@ export class Api<
10365
10404
  ...params,
10366
10405
  }),
10367
10406
 
10407
+ /**
10408
+ * @description Every partner of the caller's account: Realtors with an account and pending partners who have not signed up yet
10409
+ *
10410
+ * @tags AccountPartners
10411
+ * @name SearchAccountPartners
10412
+ * @summary Search Account Partners
10413
+ * @request POST:/api/account/partners/search
10414
+ * @secure
10415
+ * @response `200` `AccountPartnerPaginated` OK
10416
+ * @response `400` `ProblemDetails` Bad Request
10417
+ * @response `403` `ProblemDetails` Forbidden
10418
+ * @response `422` `ProblemDetails` Unprocessable Content
10419
+ */
10420
+ searchAccountPartners: (
10421
+ data: AccountPartnerSearchCriteria,
10422
+ query?: {
10423
+ /** @format int32 */
10424
+ pageSize?: number;
10425
+ /** @format int32 */
10426
+ pageNumber?: number;
10427
+ sortBy?: string;
10428
+ sortDirection?: string;
10429
+ },
10430
+ params: RequestParams = {},
10431
+ ) =>
10432
+ this.request<AccountPartnerPaginated, ProblemDetails>({
10433
+ path: `/api/account/partners/search`,
10434
+ method: "POST",
10435
+ query: query,
10436
+ body: data,
10437
+ secure: true,
10438
+ type: "application/json",
10439
+ format: "json",
10440
+ ...params,
10441
+ }),
10442
+
10443
+ /**
10444
+ * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
10445
+ *
10446
+ * @tags AccountPartners
10447
+ * @name PromotePartner
10448
+ * @summary Promote To Partner
10449
+ * @request POST:/api/account/partners/promotions
10450
+ * @secure
10451
+ * @response `200` `PromotePartner` OK
10452
+ * @response `400` `ProblemDetails` Bad Request
10453
+ * @response `403` `ProblemDetails` Forbidden
10454
+ * @response `404` `ProblemDetails` Not Found
10455
+ * @response `409` `ProblemDetails` Conflict
10456
+ * @response `422` `ProblemDetails` Unprocessable Content
10457
+ */
10458
+ promotePartner: (data: PromotePartnerRequest, params: RequestParams = {}) =>
10459
+ this.request<PromotePartner, ProblemDetails>({
10460
+ path: `/api/account/partners/promotions`,
10461
+ method: "POST",
10462
+ body: data,
10463
+ secure: true,
10464
+ type: "application/json",
10465
+ format: "json",
10466
+ ...params,
10467
+ }),
10468
+
10469
+ /**
10470
+ * @description Changes a registered partner's name, sign-in email and phone
10471
+ *
10472
+ * @tags AccountPartners
10473
+ * @name ReplacePartner
10474
+ * @summary Replace Partner
10475
+ * @request PUT:/api/account/partners/{partnerProfileId}
10476
+ * @secure
10477
+ * @response `204` `void` No Content
10478
+ * @response `403` `ProblemDetails` Forbidden
10479
+ * @response `404` `ProblemDetails` Not Found
10480
+ * @response `409` `ProblemDetails` Conflict
10481
+ * @response `422` `ProblemDetails` Unprocessable Content
10482
+ */
10483
+ replacePartner: (
10484
+ partnerProfileId: string,
10485
+ data: UpdatePartnerRequest,
10486
+ params: RequestParams = {},
10487
+ ) =>
10488
+ this.request<void, ProblemDetails>({
10489
+ path: `/api/account/partners/${partnerProfileId}`,
10490
+ method: "PUT",
10491
+ body: data,
10492
+ secure: true,
10493
+ type: "application/json",
10494
+ ...params,
10495
+ }),
10496
+
10497
+ /**
10498
+ * @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
10499
+ *
10500
+ * @tags AccountPartners
10501
+ * @name DemotePartner
10502
+ * @summary Demote Partner
10503
+ * @request POST:/api/account/partners/{partnerProfileId}/demote
10504
+ * @secure
10505
+ * @response `204` `void` No Content
10506
+ * @response `403` `ProblemDetails` Forbidden
10507
+ * @response `404` `ProblemDetails` Not Found
10508
+ * @response `409` `ProblemDetails` Conflict
10509
+ */
10510
+ demotePartner: (partnerProfileId: string, params: RequestParams = {}) =>
10511
+ this.request<void, ProblemDetails>({
10512
+ path: `/api/account/partners/${partnerProfileId}/demote`,
10513
+ method: "POST",
10514
+ secure: true,
10515
+ ...params,
10516
+ }),
10517
+
10518
+ /**
10519
+ * @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
10520
+ *
10521
+ * @tags AccountPartners
10522
+ * @name CancelPartnerInvite
10523
+ * @summary Cancel Partner Invite
10524
+ * @request POST:/api/account/partners/{partnerProfileId}/cancel
10525
+ * @secure
10526
+ * @response `204` `void` No Content
10527
+ * @response `403` `ProblemDetails` Forbidden
10528
+ * @response `404` `ProblemDetails` Not Found
10529
+ * @response `409` `ProblemDetails` Conflict
10530
+ */
10531
+ cancelPartnerInvite: (
10532
+ partnerProfileId: string,
10533
+ params: RequestParams = {},
10534
+ ) =>
10535
+ this.request<void, ProblemDetails>({
10536
+ path: `/api/account/partners/${partnerProfileId}/cancel`,
10537
+ method: "POST",
10538
+ secure: true,
10539
+ ...params,
10540
+ }),
10541
+
10368
10542
  /**
10369
10543
  * No description
10370
10544
  *