@matech/thebigpos-sdk 3.27.0 → 3.28.0-dev-8410
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/README.md +39 -0
- package/dist/index.cjs +6643 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +562 -532
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/index.js +1 -1
- package/package.json +24 -10
- package/src/index.ts +57 -2
- package/.husky/pre-commit +0 -3
- package/scripts/apply-json-patch-content-type.js +0 -56
- package/tsconfig.json +0 -27
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
|
-
|
|
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.
|
|
104
|
+
* @version v3.28.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
|
*/
|
|
@@ -2850,6 +2856,7 @@ export class Api extends HttpClient {
|
|
|
2850
2856
|
* @secure
|
|
2851
2857
|
* @response `200` `Draft` OK
|
|
2852
2858
|
* @response `400` `ProblemDetails` Bad Request
|
|
2859
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
2853
2860
|
* @response `404` `ProblemDetails` Not Found
|
|
2854
2861
|
* @response `423` `ProblemDetails` Locked
|
|
2855
2862
|
*/
|
|
@@ -6449,6 +6456,19 @@ export class Api extends HttpClient {
|
|
|
6449
6456
|
* @response `403` `ProblemDetails` Forbidden
|
|
6450
6457
|
*/
|
|
6451
6458
|
getMyPartners: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partners`, method: "GET", secure: true, format: "json" }, params)),
|
|
6459
|
+
/**
|
|
6460
|
+
* @description Searches the rows getMyPartners returns by first name, last name, full name or email, and pages them. Sorts by firstName, lastName, email, tier or createdAt when both sortBy and sortDirection are given, else newest first
|
|
6461
|
+
*
|
|
6462
|
+
* @tags UsersMe
|
|
6463
|
+
* @name SearchMyPartners
|
|
6464
|
+
* @summary Search My Partners
|
|
6465
|
+
* @request POST:/api/users/me/partners/search
|
|
6466
|
+
* @secure
|
|
6467
|
+
* @response `200` `MyPartnerPaginated` OK
|
|
6468
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
6469
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
6470
|
+
*/
|
|
6471
|
+
searchMyPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
6452
6472
|
/**
|
|
6453
6473
|
* @description Adds a partner, by partner profile ID, to the loan officer's list; a pending partner can be added too
|
|
6454
6474
|
*
|