@matech/thebigpos-sdk 3.26.0-pr-6013-8261 → 3.26.0

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.js CHANGED
@@ -86,13 +86,7 @@ export class HttpClient {
86
86
  const property = input[key];
87
87
  const propertyContent = property instanceof Array ? property : [property];
88
88
  for (const formItem of propertyContent) {
89
- // React Native files are plain { uri, name, type } objects, not Blob/File.
90
- const isReactNativeFile = !!formItem &&
91
- typeof formItem === "object" &&
92
- "uri" in formItem &&
93
- "name" in formItem &&
94
- "type" in formItem;
95
- const isFileType = isReactNativeFile || formItem instanceof Blob || formItem instanceof File;
89
+ const isFileType = formItem instanceof Blob || formItem instanceof File;
96
90
  formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
97
91
  }
98
92
  return formData;
@@ -6444,7 +6438,7 @@ export class Api extends HttpClient {
6444
6438
  */
6445
6439
  deleteRelationshipProspect: (id, params = {}) => this.request(Object.assign({ path: `/api/users/me/relationships/prospects/${id}`, method: "DELETE", secure: true }, params)),
6446
6440
  /**
6447
- * @description The partners on the loan officer's list and the loan officer's portal relations, plus the open partner invites the loan officer sent
6441
+ * @description The partner profiles on the loan officer's list, pending partners who have not signed up yet included, and the loan officer's portal relations
6448
6442
  *
6449
6443
  * @tags UsersMe
6450
6444
  * @name GetMyPartners
@@ -6456,31 +6450,46 @@ export class Api extends HttpClient {
6456
6450
  */
6457
6451
  getMyPartners: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partners`, method: "GET", secure: true, format: "json" }, params)),
6458
6452
  /**
6459
- * No description
6453
+ * @description Adds a partner, by partner profile ID, to the loan officer's list; a pending partner can be added too
6460
6454
  *
6461
6455
  * @tags UsersMe
6462
6456
  * @name AddMyPartner
6463
6457
  * @summary Add My Partner
6464
- * @request POST:/api/users/me/partners/{partnerId}
6458
+ * @request POST:/api/users/me/partners/{partnerProfileId}
6465
6459
  * @secure
6466
6460
  * @response `204` `void` No Content
6467
6461
  * @response `403` `ProblemDetails` Forbidden
6468
6462
  * @response `404` `ProblemDetails` Not Found
6469
6463
  */
6470
- addMyPartner: (partnerId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerId}`, method: "POST", secure: true }, params)),
6464
+ addMyPartner: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerProfileId}`, method: "POST", secure: true }, params)),
6471
6465
  /**
6472
- * No description
6466
+ * @description Takes a partner, by partner profile ID, off the loan officer's own list
6473
6467
  *
6474
6468
  * @tags UsersMe
6475
6469
  * @name RemoveMyPartner
6476
6470
  * @summary Remove My Partner
6477
- * @request DELETE:/api/users/me/partners/{partnerId}
6471
+ * @request DELETE:/api/users/me/partners/{partnerProfileId}
6478
6472
  * @secure
6479
6473
  * @response `204` `void` No Content
6480
6474
  * @response `403` `ProblemDetails` Forbidden
6481
6475
  * @response `404` `ProblemDetails` Not Found
6482
6476
  */
6483
- removeMyPartner: (partnerId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerId}`, method: "DELETE", secure: true }, params)),
6477
+ removeMyPartner: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerProfileId}`, method: "DELETE", secure: true }, params)),
6478
+ /**
6479
+ * @description Makes a settlement agent, by user ID or by an open invite's ID, a partner on the loan officer's list
6480
+ *
6481
+ * @tags UsersMe
6482
+ * @name PromoteMyPartner
6483
+ * @summary Promote To My Partner
6484
+ * @request POST:/api/users/me/partners/promotions
6485
+ * @secure
6486
+ * @response `200` `PromotePartner` OK
6487
+ * @response `400` `ProblemDetails` Bad Request
6488
+ * @response `403` `ProblemDetails` Forbidden
6489
+ * @response `404` `ProblemDetails` Not Found
6490
+ * @response `422` `ProblemDetails` Unprocessable Content
6491
+ */
6492
+ promoteMyPartner: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/promotions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
6484
6493
  /**
6485
6494
  * @description The links that attribute an application to the partner, on the site of each loan officer the partner works with
6486
6495
  *