@matech/thebigpos-sdk 3.28.0-main-8476 → 3.29.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 +677 -532
- package/dist/index.js +90 -8
- 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 +227 -11
- package/tsconfig.json +27 -0
- package/dist/index.cjs +0 -6630
- 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.29.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
|
*/
|
|
@@ -177,6 +171,79 @@ export class Api extends HttpClient {
|
|
|
177
171
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
178
172
|
*/
|
|
179
173
|
updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
174
|
+
/**
|
|
175
|
+
* @description Every partner of the caller's account: Realtors with an account and pending partners who have not signed up yet
|
|
176
|
+
*
|
|
177
|
+
* @tags AccountPartners
|
|
178
|
+
* @name SearchAccountPartners
|
|
179
|
+
* @summary Search Account Partners
|
|
180
|
+
* @request POST:/api/account/partners/search
|
|
181
|
+
* @secure
|
|
182
|
+
* @response `200` `AccountPartnerPaginated` OK
|
|
183
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
184
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
185
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
186
|
+
*/
|
|
187
|
+
searchAccountPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/account/partners/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
188
|
+
/**
|
|
189
|
+
* @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
|
|
190
|
+
*
|
|
191
|
+
* @tags AccountPartners
|
|
192
|
+
* @name PromotePartner
|
|
193
|
+
* @summary Promote To Partner
|
|
194
|
+
* @request POST:/api/account/partners/promotions
|
|
195
|
+
* @secure
|
|
196
|
+
* @response `200` `PromotePartner` OK
|
|
197
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
198
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
199
|
+
* @response `404` `ProblemDetails` Not Found
|
|
200
|
+
* @response `409` `ProblemDetails` Conflict
|
|
201
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
202
|
+
*/
|
|
203
|
+
promotePartner: (data, params = {}) => this.request(Object.assign({ path: `/api/account/partners/promotions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
204
|
+
/**
|
|
205
|
+
* @description Changes a registered partner's name, sign-in email and phone
|
|
206
|
+
*
|
|
207
|
+
* @tags AccountPartners
|
|
208
|
+
* @name ReplacePartner
|
|
209
|
+
* @summary Replace Partner
|
|
210
|
+
* @request PUT:/api/account/partners/{partnerProfileId}
|
|
211
|
+
* @secure
|
|
212
|
+
* @response `204` `void` No Content
|
|
213
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
214
|
+
* @response `404` `ProblemDetails` Not Found
|
|
215
|
+
* @response `409` `ProblemDetails` Conflict
|
|
216
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
217
|
+
*/
|
|
218
|
+
replacePartner: (partnerProfileId, data, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
|
|
219
|
+
/**
|
|
220
|
+
* @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
|
|
221
|
+
*
|
|
222
|
+
* @tags AccountPartners
|
|
223
|
+
* @name DemotePartner
|
|
224
|
+
* @summary Demote Partner
|
|
225
|
+
* @request POST:/api/account/partners/{partnerProfileId}/demote
|
|
226
|
+
* @secure
|
|
227
|
+
* @response `204` `void` No Content
|
|
228
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
229
|
+
* @response `404` `ProblemDetails` Not Found
|
|
230
|
+
* @response `409` `ProblemDetails` Conflict
|
|
231
|
+
*/
|
|
232
|
+
demotePartner: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}/demote`, method: "POST", secure: true }, params)),
|
|
233
|
+
/**
|
|
234
|
+
* @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
|
|
235
|
+
*
|
|
236
|
+
* @tags AccountPartners
|
|
237
|
+
* @name CancelPartnerInvite
|
|
238
|
+
* @summary Cancel Partner Invite
|
|
239
|
+
* @request POST:/api/account/partners/{partnerProfileId}/cancel
|
|
240
|
+
* @secure
|
|
241
|
+
* @response `204` `void` No Content
|
|
242
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
243
|
+
* @response `404` `ProblemDetails` Not Found
|
|
244
|
+
* @response `409` `ProblemDetails` Conflict
|
|
245
|
+
*/
|
|
246
|
+
cancelPartnerInvite: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}/cancel`, method: "POST", secure: true }, params)),
|
|
180
247
|
/**
|
|
181
248
|
* No description
|
|
182
249
|
*
|
|
@@ -2773,6 +2840,7 @@ export class Api extends HttpClient {
|
|
|
2773
2840
|
* @request POST:/api/los/loan/application/internal
|
|
2774
2841
|
* @secure
|
|
2775
2842
|
* @response `200` `string` OK
|
|
2843
|
+
* @response `409` `ProblemDetails` Conflict
|
|
2776
2844
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
2777
2845
|
* @response `423` `UnprocessableEntity` Locked
|
|
2778
2846
|
*/
|
|
@@ -4147,6 +4215,7 @@ export class Api extends HttpClient {
|
|
|
4147
4215
|
* @response `401` `ProblemDetails` Unauthorized
|
|
4148
4216
|
* @response `403` `ProblemDetails` Forbidden
|
|
4149
4217
|
* @response `404` `ProblemDetails` Not Found
|
|
4218
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4150
4219
|
*/
|
|
4151
4220
|
createLoanv3: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4152
4221
|
/**
|
|
@@ -6456,6 +6525,19 @@ export class Api extends HttpClient {
|
|
|
6456
6525
|
* @response `403` `ProblemDetails` Forbidden
|
|
6457
6526
|
*/
|
|
6458
6527
|
getMyPartners: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partners`, method: "GET", secure: true, format: "json" }, params)),
|
|
6528
|
+
/**
|
|
6529
|
+
* @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
|
|
6530
|
+
*
|
|
6531
|
+
* @tags UsersMe
|
|
6532
|
+
* @name SearchMyPartners
|
|
6533
|
+
* @summary Search My Partners
|
|
6534
|
+
* @request POST:/api/users/me/partners/search
|
|
6535
|
+
* @secure
|
|
6536
|
+
* @response `200` `MyPartnerPaginated` OK
|
|
6537
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
6538
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
6539
|
+
*/
|
|
6540
|
+
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)),
|
|
6459
6541
|
/**
|
|
6460
6542
|
* @description Adds a partner, by partner profile ID, to the loan officer's list; a pending partner can be added too
|
|
6461
6543
|
*
|