@matech/thebigpos-sdk 3.23.0 → 3.24.0-dev-7537

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.23.0
104
+ * @version v3.24.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
  */
@@ -478,78 +484,6 @@ export class Api extends HttpClient {
478
484
  * @response `200` `AuditLogEntryPaginated` OK
479
485
  */
480
486
  getAiConfigChanges: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
481
- /**
482
- * No description
483
- *
484
- * @tags AiCanonicalField
485
- * @name GetAiCanonicalFields
486
- * @summary Get all canonical fields
487
- * @request GET:/api/ai/canonical-fields
488
- * @secure
489
- * @response `200` `(AiCanonicalField)[]` OK
490
- */
491
- getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "GET", secure: true, format: "json" }, params)),
492
- /**
493
- * No description
494
- *
495
- * @tags AiCanonicalField
496
- * @name CreateAiCanonicalField
497
- * @summary Create canonical field
498
- * @request POST:/api/ai/canonical-fields
499
- * @secure
500
- * @response `201` `AiCanonicalField` Created
501
- * @response `400` `ProblemDetails` Bad Request
502
- */
503
- createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
504
- /**
505
- * No description
506
- *
507
- * @tags AiCanonicalField
508
- * @name GetAiCanonicalField
509
- * @summary Get canonical field by ID
510
- * @request GET:/api/ai/canonical-fields/{id}
511
- * @secure
512
- * @response `200` `AiCanonicalField` OK
513
- * @response `404` `ProblemDetails` Not Found
514
- */
515
- getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
516
- /**
517
- * No description
518
- *
519
- * @tags AiCanonicalField
520
- * @name UpdateAiCanonicalField
521
- * @summary Update canonical field
522
- * @request PUT:/api/ai/canonical-fields/{id}
523
- * @secure
524
- * @response `200` `AiCanonicalField` OK
525
- * @response `400` `ProblemDetails` Bad Request
526
- * @response `404` `ProblemDetails` Not Found
527
- */
528
- updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
529
- /**
530
- * No description
531
- *
532
- * @tags AiCanonicalField
533
- * @name DeleteAiCanonicalField
534
- * @summary Delete canonical field
535
- * @request DELETE:/api/ai/canonical-fields/{id}
536
- * @secure
537
- * @response `204` `void` No Content
538
- * @response `404` `ProblemDetails` Not Found
539
- */
540
- deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "DELETE", secure: true }, params)),
541
- /**
542
- * No description
543
- *
544
- * @tags AiCanonicalField
545
- * @name ToggleAiCanonicalField
546
- * @summary Toggle canonical field active/inactive
547
- * @request PATCH:/api/ai/canonical-fields/{id}/toggle
548
- * @secure
549
- * @response `200` `AiCanonicalField` OK
550
- * @response `404` `ProblemDetails` Not Found
551
- */
552
- toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
553
487
  /**
554
488
  * No description
555
489
  *
@@ -3725,7 +3659,6 @@ export class Api extends HttpClient {
3725
3659
  * @response `200` `BulkLoanFieldOperation` OK
3726
3660
  * @response `401` `ProblemDetails` Unauthorized
3727
3661
  * @response `403` `ProblemDetails` Forbidden
3728
- * @response `404` `ProblemDetails` Not Found
3729
3662
  * @response `422` `UnprocessableEntity` Unprocessable Content
3730
3663
  */
3731
3664
  bulkLoanFieldOperation: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-fields/bulk`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
@@ -4167,6 +4100,19 @@ export class Api extends HttpClient {
4167
4100
  * @response `200` `LoanListPaginated` OK
4168
4101
  */
4169
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)),
4170
4116
  /**
4171
4117
  * No description
4172
4118
  *