@matech/thebigpos-sdk 3.21.0-pr-5853-7175 → 3.22.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 +560 -525
- package/dist/index.js +35 -10
- 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 +68 -12
- package/tsconfig.json +27 -0
- package/dist/index.cjs +0 -6494
- 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;
|
|
@@ -101,7 +95,7 @@ export class HttpClient {
|
|
|
101
95
|
}
|
|
102
96
|
/**
|
|
103
97
|
* @title The Big POS API
|
|
104
|
-
* @version v3.
|
|
98
|
+
* @version v3.22.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
|
*/
|
|
@@ -3108,6 +3102,36 @@ export class Api extends HttpClient {
|
|
|
3108
3102
|
* @response `409` `ProblemDetails` Conflict
|
|
3109
3103
|
*/
|
|
3110
3104
|
restoreLoanApplication: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/application/restore`, method: "POST", secure: true }, params)),
|
|
3105
|
+
/**
|
|
3106
|
+
* No description
|
|
3107
|
+
*
|
|
3108
|
+
* @tags LoanBorrowerRemoval
|
|
3109
|
+
* @name RemoveLoanBorrower
|
|
3110
|
+
* @summary Remove a co-borrower from an application in progress
|
|
3111
|
+
* @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/remove
|
|
3112
|
+
* @secure
|
|
3113
|
+
* @response `204` `void` No Content
|
|
3114
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
3115
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
3116
|
+
* @response `404` `ProblemDetails` Not Found
|
|
3117
|
+
* @response `409` `ProblemDetails` Conflict
|
|
3118
|
+
*/
|
|
3119
|
+
removeLoanBorrower: (loanId, borrowerId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/borrowers/${borrowerId}/remove`, method: "POST", secure: true }, params)),
|
|
3120
|
+
/**
|
|
3121
|
+
* No description
|
|
3122
|
+
*
|
|
3123
|
+
* @tags LoanBorrowerRemoval
|
|
3124
|
+
* @name RestoreLoanBorrower
|
|
3125
|
+
* @summary Restore a removed co-borrower to an application in progress
|
|
3126
|
+
* @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/restore
|
|
3127
|
+
* @secure
|
|
3128
|
+
* @response `204` `void` No Content
|
|
3129
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
3130
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
3131
|
+
* @response `404` `ProblemDetails` Not Found
|
|
3132
|
+
* @response `409` `ProblemDetails` Conflict
|
|
3133
|
+
*/
|
|
3134
|
+
restoreLoanBorrower: (loanId, borrowerId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/borrowers/${borrowerId}/restore`, method: "POST", secure: true }, params)),
|
|
3111
3135
|
/**
|
|
3112
3136
|
* No description
|
|
3113
3137
|
*
|
|
@@ -3339,14 +3363,15 @@ export class Api extends HttpClient {
|
|
|
3339
3363
|
*
|
|
3340
3364
|
* @tags LoanDocumentFolders
|
|
3341
3365
|
* @name DeactivateLoanDocumentFolder
|
|
3342
|
-
* @summary Deactivate a loan document folder. Rejected for the system-default Unassigned folder.
|
|
3366
|
+
* @summary Deactivate a loan document folder. Rejected with 409 (errorCode FolderInUse, the referencing tasks and templates in references) while tasks or document templates still reference it, unless reassignToFolderId names an active replacement folder, in which case every reference is moved there and the folder is deactivated in one transaction. Rejected for the system-default Unassigned folder.
|
|
3343
3367
|
* @request POST:/api/loan-document-folders/{id}/deactivate
|
|
3344
3368
|
* @secure
|
|
3345
3369
|
* @response `204` `void` No Content
|
|
3346
3370
|
* @response `400` `ProblemDetails` Bad Request
|
|
3347
3371
|
* @response `404` `ProblemDetails` Not Found
|
|
3372
|
+
* @response `409` `ProblemDetails` Conflict
|
|
3348
3373
|
*/
|
|
3349
|
-
deactivateLoanDocumentFolder: (id, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}/deactivate`, method: "POST", secure: true }, params)),
|
|
3374
|
+
deactivateLoanDocumentFolder: (id, data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}/deactivate`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
|
|
3350
3375
|
/**
|
|
3351
3376
|
* No description
|
|
3352
3377
|
*
|