@matech/thebigpos-sdk 3.28.0-dev-8422 → 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;
@@ -8844,6 +8872,10 @@ type BaseCanvasWidgetConfigTypeMapping<Key, Type> = {
8844
8872
 
8845
8873
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
8846
8874
 
8875
+ export type AccountPartnerStatusEnum = "Active" | "Invited";
8876
+
8877
+ export type AccountPartnerTierEnum = "Lite" | "LitePlusPortal" | "Pending";
8878
+
8847
8879
  export type AdminAccessUserMfaFactorEnum = "None" | "Sms" | "Email";
8848
8880
 
8849
8881
  export type AiAccessReadAloudVoiceEnum =
@@ -10372,6 +10404,42 @@ export class Api<
10372
10404
  ...params,
10373
10405
  }),
10374
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
+
10375
10443
  /**
10376
10444
  * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
10377
10445
  *