@matech/thebigpos-sdk 3.29.0 → 3.30.0-dev-8899
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 +6738 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +578 -547
- package/dist/index.js +28 -2
- package/dist/index.js.map +1 -1
- package/index.js +1 -1
- package/package.json +24 -10
- package/src/index.ts +71 -22
- 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.30.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
|
*/
|
|
@@ -3315,6 +3321,7 @@ export class Api extends HttpClient {
|
|
|
3315
3321
|
* @response `204` `void` No Content
|
|
3316
3322
|
* @response `400` `ProblemDetails` Bad Request
|
|
3317
3323
|
* @response `422` `ProblemDetails` Unprocessable Content
|
|
3324
|
+
* @response `423` `ProblemDetails` Locked
|
|
3318
3325
|
*/
|
|
3319
3326
|
bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
|
|
3320
3327
|
/**
|
|
@@ -3329,6 +3336,7 @@ export class Api extends HttpClient {
|
|
|
3329
3336
|
* @response `400` `ProblemDetails` Bad Request
|
|
3330
3337
|
* @response `404` `ProblemDetails` Not Found
|
|
3331
3338
|
* @response `422` `ProblemDetails` Unprocessable Content
|
|
3339
|
+
* @response `423` `ProblemDetails` Locked
|
|
3332
3340
|
*/
|
|
3333
3341
|
setLoanCustomFieldValue: (loanId, definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
|
|
3334
3342
|
/**
|
|
@@ -4382,6 +4390,24 @@ export class Api extends HttpClient {
|
|
|
4382
4390
|
* @response `404` `ProblemDetails` Not Found
|
|
4383
4391
|
*/
|
|
4384
4392
|
triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4393
|
+
/**
|
|
4394
|
+
* No description
|
|
4395
|
+
*
|
|
4396
|
+
* @tags LoanSigningMethod
|
|
4397
|
+
* @name UnlinkLoanFromConsumerConnect
|
|
4398
|
+
* @summary Unlink the loan's borrowers from Consumer Connect
|
|
4399
|
+
* @request POST:/api/loans/{loanId}/signing-method/unlink
|
|
4400
|
+
* @secure
|
|
4401
|
+
* @response `200` `(LosUnlinkedRecipient)[]` OK
|
|
4402
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4403
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4404
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4405
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4406
|
+
* @response `423` `ProblemDetails` Locked
|
|
4407
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
4408
|
+
* @response `504` `void` Gateway Timeout
|
|
4409
|
+
*/
|
|
4410
|
+
unlinkLoanFromConsumerConnect: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/signing-method/unlink`, method: "POST", secure: true, format: "json" }, params)),
|
|
4385
4411
|
/**
|
|
4386
4412
|
* No description
|
|
4387
4413
|
*
|