@matech/thebigpos-sdk 3.26.0-pr-6013-8261 → 3.26.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/.husky/pre-commit +3 -0
- package/README.md +0 -39
- package/dist/index.d.ts +562 -535
- package/dist/index.js +23 -14
- package/dist/index.js.map +1 -1
- package/index.js +1 -1
- package/package.json +10 -24
- package/scripts/apply-json-patch-content-type.js +56 -0
- package/src/index.ts +52 -18
- package/tsconfig.json +27 -0
- package/dist/index.cjs +0 -6614
- package/dist/index.cjs.map +0 -7
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
|
-
|
|
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;
|
|
@@ -6444,7 +6438,7 @@ export class Api extends HttpClient {
|
|
|
6444
6438
|
*/
|
|
6445
6439
|
deleteRelationshipProspect: (id, params = {}) => this.request(Object.assign({ path: `/api/users/me/relationships/prospects/${id}`, method: "DELETE", secure: true }, params)),
|
|
6446
6440
|
/**
|
|
6447
|
-
* @description The
|
|
6441
|
+
* @description The partner profiles on the loan officer's list, pending partners who have not signed up yet included, and the loan officer's portal relations
|
|
6448
6442
|
*
|
|
6449
6443
|
* @tags UsersMe
|
|
6450
6444
|
* @name GetMyPartners
|
|
@@ -6456,31 +6450,46 @@ export class Api extends HttpClient {
|
|
|
6456
6450
|
*/
|
|
6457
6451
|
getMyPartners: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partners`, method: "GET", secure: true, format: "json" }, params)),
|
|
6458
6452
|
/**
|
|
6459
|
-
*
|
|
6453
|
+
* @description Adds a partner, by partner profile ID, to the loan officer's list; a pending partner can be added too
|
|
6460
6454
|
*
|
|
6461
6455
|
* @tags UsersMe
|
|
6462
6456
|
* @name AddMyPartner
|
|
6463
6457
|
* @summary Add My Partner
|
|
6464
|
-
* @request POST:/api/users/me/partners/{
|
|
6458
|
+
* @request POST:/api/users/me/partners/{partnerProfileId}
|
|
6465
6459
|
* @secure
|
|
6466
6460
|
* @response `204` `void` No Content
|
|
6467
6461
|
* @response `403` `ProblemDetails` Forbidden
|
|
6468
6462
|
* @response `404` `ProblemDetails` Not Found
|
|
6469
6463
|
*/
|
|
6470
|
-
addMyPartner: (
|
|
6464
|
+
addMyPartner: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerProfileId}`, method: "POST", secure: true }, params)),
|
|
6471
6465
|
/**
|
|
6472
|
-
*
|
|
6466
|
+
* @description Takes a partner, by partner profile ID, off the loan officer's own list
|
|
6473
6467
|
*
|
|
6474
6468
|
* @tags UsersMe
|
|
6475
6469
|
* @name RemoveMyPartner
|
|
6476
6470
|
* @summary Remove My Partner
|
|
6477
|
-
* @request DELETE:/api/users/me/partners/{
|
|
6471
|
+
* @request DELETE:/api/users/me/partners/{partnerProfileId}
|
|
6478
6472
|
* @secure
|
|
6479
6473
|
* @response `204` `void` No Content
|
|
6480
6474
|
* @response `403` `ProblemDetails` Forbidden
|
|
6481
6475
|
* @response `404` `ProblemDetails` Not Found
|
|
6482
6476
|
*/
|
|
6483
|
-
removeMyPartner: (
|
|
6477
|
+
removeMyPartner: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/${partnerProfileId}`, method: "DELETE", secure: true }, params)),
|
|
6478
|
+
/**
|
|
6479
|
+
* @description Makes a settlement agent, by user ID or by an open invite's ID, a partner on the loan officer's list
|
|
6480
|
+
*
|
|
6481
|
+
* @tags UsersMe
|
|
6482
|
+
* @name PromoteMyPartner
|
|
6483
|
+
* @summary Promote To My Partner
|
|
6484
|
+
* @request POST:/api/users/me/partners/promotions
|
|
6485
|
+
* @secure
|
|
6486
|
+
* @response `200` `PromotePartner` OK
|
|
6487
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
6488
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
6489
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6490
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
6491
|
+
*/
|
|
6492
|
+
promoteMyPartner: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/partners/promotions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
6484
6493
|
/**
|
|
6485
6494
|
* @description The links that attribute an application to the partner, on the site of each loan officer the partner works with
|
|
6486
6495
|
*
|