@matech/thebigpos-sdk 3.19.0-main-6895 → 3.20.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/README.md +0 -39
- package/dist/index.d.ts +531 -575
- package/dist/index.js +2 -49
- package/dist/index.js.map +1 -1
- package/package.json +8 -13
- package/scripts/apply-json-patch-content-type.js +36 -189
- package/src/index.ts +7 -101
- package/docs/sdk_generation.md +0 -149
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.20.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
|
*/
|
|
@@ -2883,17 +2877,6 @@ export class Api extends HttpClient {
|
|
|
2883
2877
|
* @response `200` `(UnderwritingCondition)[]` OK
|
|
2884
2878
|
*/
|
|
2885
2879
|
getUnderwritingConditionsForLoan: (loanId, params = {}) => this.request(Object.assign({ path: `/api/los/loan/${loanId}/conditions/underwriting`, method: "GET", secure: true, format: "json" }, params)),
|
|
2886
|
-
/**
|
|
2887
|
-
* No description
|
|
2888
|
-
*
|
|
2889
|
-
* @tags LegacyLoan
|
|
2890
|
-
* @name GetLoanEmbeddedSigningLink
|
|
2891
|
-
* @summary Get Embedded Signing Link
|
|
2892
|
-
* @request POST:/api/los/loan/embeddedsigning/{envelopeId}/{userName}/{email}
|
|
2893
|
-
* @secure
|
|
2894
|
-
* @response `200` `string` OK
|
|
2895
|
-
*/
|
|
2896
|
-
getLoanEmbeddedSigningLink: (envelopeId, userName, email, params = {}) => this.request(Object.assign({ path: `/api/los/loan/embeddedsigning/${envelopeId}/${userName}/${email}`, method: "POST", secure: true, format: "json" }, params)),
|
|
2897
2880
|
/**
|
|
2898
2881
|
* No description
|
|
2899
2882
|
*
|
|
@@ -5000,21 +4983,6 @@ export class Api extends HttpClient {
|
|
|
5000
4983
|
* @response `200` `NotificationTemplateVersion` OK
|
|
5001
4984
|
*/
|
|
5002
4985
|
deleteNotificationTemplateVersion: (notificationId, id, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
|
|
5003
|
-
/**
|
|
5004
|
-
* @description Changes the short name a realtor's partner links carry. Links shared with the previous name stop working.
|
|
5005
|
-
*
|
|
5006
|
-
* @tags Partners
|
|
5007
|
-
* @name UpdatePartnerLinkSlug
|
|
5008
|
-
* @summary Update Partner Link Slug
|
|
5009
|
-
* @request PUT:/api/partners/{realtorId}/link-slug
|
|
5010
|
-
* @secure
|
|
5011
|
-
* @response `200` `PartnerSlug` OK
|
|
5012
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
5013
|
-
* @response `404` `ProblemDetails` Not Found
|
|
5014
|
-
* @response `409` `ProblemDetails` Conflict
|
|
5015
|
-
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
5016
|
-
*/
|
|
5017
|
-
updatePartnerLinkSlug: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/link-slug`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
5018
4986
|
/**
|
|
5019
4987
|
* No description
|
|
5020
4988
|
*
|
|
@@ -6499,21 +6467,6 @@ export class Api extends HttpClient {
|
|
|
6499
6467
|
* @response `404` `ProblemDetails` Not Found
|
|
6500
6468
|
*/
|
|
6501
6469
|
getMyPartnerLinks: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partner-links`, method: "GET", secure: true, format: "json" }, params)),
|
|
6502
|
-
/**
|
|
6503
|
-
* @description Changes the short name the partner's links carry and returns the links rebuilt with it. Links shared with the previous name stop working.
|
|
6504
|
-
*
|
|
6505
|
-
* @tags UsersMe
|
|
6506
|
-
* @name UpdateMyPartnerLinkSlug
|
|
6507
|
-
* @summary Update My Partner Link Slug
|
|
6508
|
-
* @request PUT:/api/users/me/partner-links/slug
|
|
6509
|
-
* @secure
|
|
6510
|
-
* @response `200` `PartnerLinks` OK
|
|
6511
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
6512
|
-
* @response `404` `ProblemDetails` Not Found
|
|
6513
|
-
* @response `409` `ProblemDetails` Conflict
|
|
6514
|
-
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
6515
|
-
*/
|
|
6516
|
-
updateMyPartnerLinkSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/partner-links/slug`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
6517
6470
|
/**
|
|
6518
6471
|
* No description
|
|
6519
6472
|
*
|