@matech/thebigpos-sdk 3.29.0 → 3.30.0-dev-8857

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.29.0
104
+ * @version v3.30.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
  */
@@ -3315,6 +3321,7 @@ export class Api extends HttpClient {
3315
3321
  * @response `204` `void` No Content
3316
3322
  * @response `400` `ProblemDetails` Bad Request
3317
3323
  * @response `422` `ProblemDetails` Unprocessable Content
3324
+ * @response `423` `ProblemDetails` Locked
3318
3325
  */
3319
3326
  bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
3320
3327
  /**
@@ -3329,6 +3336,7 @@ export class Api extends HttpClient {
3329
3336
  * @response `400` `ProblemDetails` Bad Request
3330
3337
  * @response `404` `ProblemDetails` Not Found
3331
3338
  * @response `422` `ProblemDetails` Unprocessable Content
3339
+ * @response `423` `ProblemDetails` Locked
3332
3340
  */
3333
3341
  setLoanCustomFieldValue: (loanId, definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
3334
3342
  /**