@matech/thebigpos-sdk 3.24.0 → 3.25.0-dev-7801

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.24.0
104
+ * @version v3.25.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
  */
@@ -4094,6 +4100,19 @@ export class Api extends HttpClient {
4094
4100
  * @response `200` `LoanListPaginated` OK
4095
4101
  */
4096
4102
  searchLoans: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4103
+ /**
4104
+ * No description
4105
+ *
4106
+ * @tags Loans
4107
+ * @name SearchPipelineLoanOfficers
4108
+ * @summary Search the loan officers of the caller's pipeline
4109
+ * @request POST:/api/loans/loan-officers/search
4110
+ * @secure
4111
+ * @response `200` `PipelineLoanOfficerPaginated` OK
4112
+ * @response `400` `ProblemDetails` Bad Request
4113
+ * @response `403` `ProblemDetails` Forbidden
4114
+ */
4115
+ searchPipelineLoanOfficers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/loan-officers/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4097
4116
  /**
4098
4117
  * No description
4099
4118
  *
@@ -6176,6 +6195,21 @@ export class Api extends HttpClient {
6176
6195
  * @response `422` `UnprocessableEntity` Unprocessable Content
6177
6196
  */
6178
6197
  verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
6198
+ /**
6199
+ * No description
6200
+ *
6201
+ * @tags Users
6202
+ * @name ClearUserMfa
6203
+ * @summary Clear MFA
6204
+ * @request PUT:/api/users/{id}/mfa
6205
+ * @secure
6206
+ * @response `200` `UserMfaState` OK
6207
+ * @response `400` `ProblemDetails` Bad Request
6208
+ * @response `403` `ProblemDetails` Forbidden
6209
+ * @response `404` `ProblemDetails` Not Found
6210
+ * @response `422` `UnprocessableEntity` Unprocessable Content
6211
+ */
6212
+ clearUserMfa: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/mfa`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
6179
6213
  /**
6180
6214
  * No description
6181
6215
  *
@@ -6412,6 +6446,33 @@ export class Api extends HttpClient {
6412
6446
  * @response `204` `void` No Content
6413
6447
  */
6414
6448
  deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
6449
+ /**
6450
+ * No description
6451
+ *
6452
+ * @tags UsersMeMfa
6453
+ * @name GetMyMfa
6454
+ * @summary Get MFA
6455
+ * @request GET:/api/users/me/mfa
6456
+ * @secure
6457
+ * @response `200` `UserMfaState` OK
6458
+ * @response `401` `ProblemDetails` Unauthorized
6459
+ */
6460
+ getMyMfa: (params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa`, method: "GET", secure: true, format: "json" }, params)),
6461
+ /**
6462
+ * No description
6463
+ *
6464
+ * @tags UsersMeMfa
6465
+ * @name UpdateMyMfa
6466
+ * @summary Update MFA
6467
+ * @request PUT:/api/users/me/mfa
6468
+ * @secure
6469
+ * @response `200` `UserMfaState` OK
6470
+ * @response `400` `ProblemDetails` Bad Request
6471
+ * @response `401` `ProblemDetails` Unauthorized
6472
+ * @response `403` `ProblemDetails` Forbidden
6473
+ * @response `422` `UnprocessableEntity` Unprocessable Content
6474
+ */
6475
+ updateMyMfa: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
6415
6476
  /**
6416
6477
  * No description
6417
6478
  *