@matech/thebigpos-sdk 3.31.0 → 3.32.0-main-9137

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.31.0
104
+ * @version v3.32.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
  */
@@ -4384,24 +4390,6 @@ export class Api extends HttpClient {
4384
4390
  * @response `404` `ProblemDetails` Not Found
4385
4391
  */
4386
4392
  triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4387
- /**
4388
- * No description
4389
- *
4390
- * @tags LoanSigningMethod
4391
- * @name UnlinkLoanFromConsumerConnect
4392
- * @summary Unlink the loan's borrowers from Consumer Connect
4393
- * @request POST:/api/loans/{loanId}/signing-method/unlink
4394
- * @secure
4395
- * @response `200` `(LosUnlinkedRecipient)[]` OK
4396
- * @response `400` `ProblemDetails` Bad Request
4397
- * @response `403` `ProblemDetails` Forbidden
4398
- * @response `404` `ProblemDetails` Not Found
4399
- * @response `422` `ProblemDetails` Unprocessable Content
4400
- * @response `423` `ProblemDetails` Locked
4401
- * @response `429` `ProblemDetails` Too Many Requests
4402
- * @response `504` `void` Gateway Timeout
4403
- */
4404
- unlinkLoanFromConsumerConnect: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/signing-method/unlink`, method: "POST", secure: true, format: "json" }, params)),
4405
4393
  /**
4406
4394
  * No description
4407
4395
  *
@@ -4411,9 +4399,13 @@ export class Api extends HttpClient {
4411
4399
  * @request PUT:/api/loans/{loanId}/signing-method
4412
4400
  * @secure
4413
4401
  * @response `204` `void` No Content
4402
+ * @response `400` `ProblemDetails` Bad Request
4414
4403
  * @response `403` `ProblemDetails` Forbidden
4415
4404
  * @response `404` `ProblemDetails` Not Found
4416
4405
  * @response `422` `ProblemDetails` Unprocessable Content
4406
+ * @response `423` `ProblemDetails` Locked
4407
+ * @response `429` `ProblemDetails` Too Many Requests
4408
+ * @response `504` `void` Gateway Timeout
4417
4409
  */
4418
4410
  updateLoanSigningMethod: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/signing-method`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4419
4411
  /**