@matech/thebigpos-sdk 3.19.0 → 3.20.0-dev-6956

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,7 +86,13 @@ 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
- const isFileType = formItem instanceof Blob || formItem instanceof File;
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;
90
96
  formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
91
97
  }
92
98
  return formData;
@@ -95,7 +101,7 @@ export class HttpClient {
95
101
  }
96
102
  /**
97
103
  * @title The Big POS API
98
- * @version v3.19.0
104
+ * @version v3.20.0
99
105
  * @termsOfService https://www.thebigpos.com/terms-of-use/
100
106
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
101
107
  */
@@ -2877,17 +2883,6 @@ export class Api extends HttpClient {
2877
2883
  * @response `200` `(UnderwritingCondition)[]` OK
2878
2884
  */
2879
2885
  getUnderwritingConditionsForLoan: (loanId, params = {}) => this.request(Object.assign({ path: `/api/los/loan/${loanId}/conditions/underwriting`, method: "GET", secure: true, format: "json" }, params)),
2880
- /**
2881
- * No description
2882
- *
2883
- * @tags LegacyLoan
2884
- * @name GetLoanEmbeddedSigningLink
2885
- * @summary Get Embedded Signing Link
2886
- * @request POST:/api/los/loan/embeddedsigning/{envelopeId}/{userName}/{email}
2887
- * @secure
2888
- * @response `200` `string` OK
2889
- */
2890
- getLoanEmbeddedSigningLink: (envelopeId, userName, email, params = {}) => this.request(Object.assign({ path: `/api/los/loan/embeddedsigning/${envelopeId}/${userName}/${email}`, method: "POST", secure: true, format: "json" }, params)),
2891
2886
  /**
2892
2887
  * No description
2893
2888
  *
@@ -4994,21 +4989,6 @@ export class Api extends HttpClient {
4994
4989
  * @response `200` `NotificationTemplateVersion` OK
4995
4990
  */
4996
4991
  deleteNotificationTemplateVersion: (notificationId, id, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
4997
- /**
4998
- * @description Changes the short name a realtor's partner links carry. Links shared with the previous name stop working.
4999
- *
5000
- * @tags Partners
5001
- * @name UpdatePartnerLinkSlug
5002
- * @summary Update Partner Link Slug
5003
- * @request PUT:/api/partners/{realtorId}/link-slug
5004
- * @secure
5005
- * @response `200` `PartnerSlug` OK
5006
- * @response `403` `ProblemDetails` Forbidden
5007
- * @response `404` `ProblemDetails` Not Found
5008
- * @response `409` `ProblemDetails` Conflict
5009
- * @response `422` `UnprocessableEntity` Unprocessable Content
5010
- */
5011
- updatePartnerLinkSlug: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/link-slug`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
5012
4992
  /**
5013
4993
  * No description
5014
4994
  *
@@ -6493,21 +6473,6 @@ export class Api extends HttpClient {
6493
6473
  * @response `404` `ProblemDetails` Not Found
6494
6474
  */
6495
6475
  getMyPartnerLinks: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partner-links`, method: "GET", secure: true, format: "json" }, params)),
6496
- /**
6497
- * @description Changes the short name the partner's links carry and returns the links rebuilt with it. Links shared with the previous name stop working.
6498
- *
6499
- * @tags UsersMe
6500
- * @name UpdateMyPartnerLinkSlug
6501
- * @summary Update My Partner Link Slug
6502
- * @request PUT:/api/users/me/partner-links/slug
6503
- * @secure
6504
- * @response `200` `PartnerLinks` OK
6505
- * @response `403` `ProblemDetails` Forbidden
6506
- * @response `404` `ProblemDetails` Not Found
6507
- * @response `409` `ProblemDetails` Conflict
6508
- * @response `422` `UnprocessableEntity` Unprocessable Content
6509
- */
6510
- updateMyPartnerLinkSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/partner-links/slug`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
6511
6476
  /**
6512
6477
  * No description
6513
6478
  *