@matech/thebigpos-sdk 3.24.0-pr-5934-7640 → 3.25.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;
@@ -101,7 +95,7 @@ export class HttpClient {
101
95
  }
102
96
  /**
103
97
  * @title The Big POS API
104
- * @version v3.24.0
98
+ * @version v3.25.0
105
99
  * @termsOfService https://www.thebigpos.com/terms-of-use/
106
100
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
107
101
  */
@@ -1102,8 +1096,6 @@ export class Api extends HttpClient {
1102
1096
  * @secure
1103
1097
  * @response `200` `UserDeactivated` OK
1104
1098
  * @response `422` `UnprocessableEntity` Unprocessable Content
1105
- * @response `429` `ProblemDetails` Too Many Requests
1106
- * @response `503` `void` Service Unavailable
1107
1099
  */
1108
1100
  getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1109
1101
  /**
@@ -1115,25 +1107,9 @@ export class Api extends HttpClient {
1115
1107
  * @request POST:/api/token/code
1116
1108
  * @secure
1117
1109
  * @response `200` `UserDeactivated` OK
1118
- * @response `400` `ProblemDetails` Bad Request
1119
1110
  * @response `422` `UnprocessableEntity` Unprocessable Content
1120
- * @response `429` `ProblemDetails` Too Many Requests
1121
1111
  */
1122
1112
  getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1123
- /**
1124
- * No description
1125
- *
1126
- * @tags Authentication
1127
- * @name ResendChallengeCode
1128
- * @summary Resend Challenge Code
1129
- * @request POST:/api/token/code/resend
1130
- * @secure
1131
- * @response `204` `void` No Content
1132
- * @response `422` `UnprocessableEntity` Unprocessable Content
1133
- * @response `429` `ProblemDetails` Too Many Requests
1134
- * @response `503` `void` Service Unavailable
1135
- */
1136
- resendChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code/resend`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
1137
1113
  /**
1138
1114
  * No description
1139
1115
  *
@@ -6213,21 +6189,6 @@ export class Api extends HttpClient {
6213
6189
  * @response `422` `UnprocessableEntity` Unprocessable Content
6214
6190
  */
6215
6191
  verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
6216
- /**
6217
- * No description
6218
- *
6219
- * @tags Users
6220
- * @name ClearUserMfa
6221
- * @summary Clear MFA
6222
- * @request PUT:/api/users/{id}/mfa
6223
- * @secure
6224
- * @response `200` `UserMfaState` OK
6225
- * @response `400` `ProblemDetails` Bad Request
6226
- * @response `403` `ProblemDetails` Forbidden
6227
- * @response `404` `ProblemDetails` Not Found
6228
- * @response `422` `UnprocessableEntity` Unprocessable Content
6229
- */
6230
- 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)),
6231
6192
  /**
6232
6193
  * No description
6233
6194
  *
@@ -6464,81 +6425,6 @@ export class Api extends HttpClient {
6464
6425
  * @response `204` `void` No Content
6465
6426
  */
6466
6427
  deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
6467
- /**
6468
- * No description
6469
- *
6470
- * @tags UsersMeMfa
6471
- * @name GetMyMfa
6472
- * @summary Get MFA
6473
- * @request GET:/api/users/me/mfa
6474
- * @secure
6475
- * @response `200` `UserMfaState` OK
6476
- * @response `401` `ProblemDetails` Unauthorized
6477
- */
6478
- getMyMfa: (params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa`, method: "GET", secure: true, format: "json" }, params)),
6479
- /**
6480
- * No description
6481
- *
6482
- * @tags UsersMeMfa
6483
- * @name UpdateMyMfa
6484
- * @summary Update MFA
6485
- * @request PUT:/api/users/me/mfa
6486
- * @secure
6487
- * @response `200` `UserMfaState` OK
6488
- * @response `400` `ProblemDetails` Bad Request
6489
- * @response `401` `ProblemDetails` Unauthorized
6490
- * @response `403` `ProblemDetails` Forbidden
6491
- * @response `422` `UnprocessableEntity` Unprocessable Content
6492
- */
6493
- updateMyMfa: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
6494
- /**
6495
- * No description
6496
- *
6497
- * @tags UsersMeMfa
6498
- * @name StartMyMfaEnrollment
6499
- * @summary Start MFA Enrollment
6500
- * @request POST:/api/users/me/mfa/enrollments
6501
- * @secure
6502
- * @response `200` `MfaEnrollment` OK
6503
- * @response `400` `ProblemDetails` Bad Request
6504
- * @response `401` `ProblemDetails` Unauthorized
6505
- * @response `403` `ProblemDetails` Forbidden
6506
- * @response `422` `UnprocessableEntity` Unprocessable Content
6507
- * @response `429` `ProblemDetails` Too Many Requests
6508
- * @response `503` `void` Service Unavailable
6509
- */
6510
- startMyMfaEnrollment: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa/enrollments`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
6511
- /**
6512
- * No description
6513
- *
6514
- * @tags UsersMeMfa
6515
- * @name ConfirmMyMfaEnrollment
6516
- * @summary Confirm MFA Enrollment
6517
- * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/confirm
6518
- * @secure
6519
- * @response `200` `UserMfaState` OK
6520
- * @response `400` `ProblemDetails` Bad Request
6521
- * @response `401` `ProblemDetails` Unauthorized
6522
- * @response `403` `ProblemDetails` Forbidden
6523
- * @response `422` `UnprocessableEntity` Unprocessable Content
6524
- * @response `429` `ProblemDetails` Too Many Requests
6525
- */
6526
- confirmMyMfaEnrollment: (enrollmentId, data, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa/enrollments/${enrollmentId}/confirm`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
6527
- /**
6528
- * No description
6529
- *
6530
- * @tags UsersMeMfa
6531
- * @name ResendMyMfaEnrollmentCode
6532
- * @summary Resend MFA Enrollment Code
6533
- * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/resend
6534
- * @secure
6535
- * @response `204` `void` No Content
6536
- * @response `401` `ProblemDetails` Unauthorized
6537
- * @response `403` `ProblemDetails` Forbidden
6538
- * @response `429` `ProblemDetails` Too Many Requests
6539
- * @response `503` `void` Service Unavailable
6540
- */
6541
- resendMyMfaEnrollmentCode: (enrollmentId, params = {}) => this.request(Object.assign({ path: `/api/users/me/mfa/enrollments/${enrollmentId}/resend`, method: "POST", secure: true }, params)),
6542
6428
  /**
6543
6429
  * No description
6544
6430
  *