@matech/thebigpos-sdk 3.28.0 → 3.29.0-dev-8593
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 +6718 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +684 -538
- package/dist/index.js +96 -2
- package/dist/index.js.map +1 -1
- package/index.js +1 -1
- package/package.json +24 -10
- package/src/index.ts +248 -20
- 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.29.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
|
*/
|
|
@@ -171,6 +177,79 @@ export class Api extends HttpClient {
|
|
|
171
177
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
172
178
|
*/
|
|
173
179
|
updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
180
|
+
/**
|
|
181
|
+
* @description Every partner of the caller's account: Realtors with an account and pending partners who have not signed up yet
|
|
182
|
+
*
|
|
183
|
+
* @tags AccountPartners
|
|
184
|
+
* @name SearchAccountPartners
|
|
185
|
+
* @summary Search Account Partners
|
|
186
|
+
* @request POST:/api/account/partners/search
|
|
187
|
+
* @secure
|
|
188
|
+
* @response `200` `AccountPartnerPaginated` OK
|
|
189
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
190
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
191
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
192
|
+
*/
|
|
193
|
+
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)),
|
|
194
|
+
/**
|
|
195
|
+
* @description Makes a settlement agent, by user ID or by an open invite's ID, a partner with no loan officer
|
|
196
|
+
*
|
|
197
|
+
* @tags AccountPartners
|
|
198
|
+
* @name PromotePartner
|
|
199
|
+
* @summary Promote To Partner
|
|
200
|
+
* @request POST:/api/account/partners/promotions
|
|
201
|
+
* @secure
|
|
202
|
+
* @response `200` `PromotePartner` OK
|
|
203
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
204
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
205
|
+
* @response `404` `ProblemDetails` Not Found
|
|
206
|
+
* @response `409` `ProblemDetails` Conflict
|
|
207
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
208
|
+
*/
|
|
209
|
+
promotePartner: (data, params = {}) => this.request(Object.assign({ path: `/api/account/partners/promotions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
210
|
+
/**
|
|
211
|
+
* @description Changes a registered partner's name, sign-in email and phone
|
|
212
|
+
*
|
|
213
|
+
* @tags AccountPartners
|
|
214
|
+
* @name ReplacePartner
|
|
215
|
+
* @summary Replace Partner
|
|
216
|
+
* @request PUT:/api/account/partners/{partnerProfileId}
|
|
217
|
+
* @secure
|
|
218
|
+
* @response `204` `void` No Content
|
|
219
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
220
|
+
* @response `404` `ProblemDetails` Not Found
|
|
221
|
+
* @response `409` `ProblemDetails` Conflict
|
|
222
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
223
|
+
*/
|
|
224
|
+
replacePartner: (partnerProfileId, data, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
|
|
225
|
+
/**
|
|
226
|
+
* @description Makes a registered partner a settlement agent again and retires their partner profile; their account and loans stay
|
|
227
|
+
*
|
|
228
|
+
* @tags AccountPartners
|
|
229
|
+
* @name DemotePartner
|
|
230
|
+
* @summary Demote Partner
|
|
231
|
+
* @request POST:/api/account/partners/{partnerProfileId}/demote
|
|
232
|
+
* @secure
|
|
233
|
+
* @response `204` `void` No Content
|
|
234
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
235
|
+
* @response `404` `ProblemDetails` Not Found
|
|
236
|
+
* @response `409` `ProblemDetails` Conflict
|
|
237
|
+
*/
|
|
238
|
+
demotePartner: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}/demote`, method: "POST", secure: true }, params)),
|
|
239
|
+
/**
|
|
240
|
+
* @description Cancels a pending partner's invites and retires their partner profile; inviting the email again restores it
|
|
241
|
+
*
|
|
242
|
+
* @tags AccountPartners
|
|
243
|
+
* @name CancelPartnerInvite
|
|
244
|
+
* @summary Cancel Partner Invite
|
|
245
|
+
* @request POST:/api/account/partners/{partnerProfileId}/cancel
|
|
246
|
+
* @secure
|
|
247
|
+
* @response `204` `void` No Content
|
|
248
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
249
|
+
* @response `404` `ProblemDetails` Not Found
|
|
250
|
+
* @response `409` `ProblemDetails` Conflict
|
|
251
|
+
*/
|
|
252
|
+
cancelPartnerInvite: (partnerProfileId, params = {}) => this.request(Object.assign({ path: `/api/account/partners/${partnerProfileId}/cancel`, method: "POST", secure: true }, params)),
|
|
174
253
|
/**
|
|
175
254
|
* No description
|
|
176
255
|
*
|
|
@@ -2767,6 +2846,7 @@ export class Api extends HttpClient {
|
|
|
2767
2846
|
* @request POST:/api/los/loan/application/internal
|
|
2768
2847
|
* @secure
|
|
2769
2848
|
* @response `200` `string` OK
|
|
2849
|
+
* @response `409` `ProblemDetails` Conflict
|
|
2770
2850
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
2771
2851
|
* @response `423` `UnprocessableEntity` Locked
|
|
2772
2852
|
*/
|
|
@@ -4141,6 +4221,7 @@ export class Api extends HttpClient {
|
|
|
4141
4221
|
* @response `401` `ProblemDetails` Unauthorized
|
|
4142
4222
|
* @response `403` `ProblemDetails` Forbidden
|
|
4143
4223
|
* @response `404` `ProblemDetails` Not Found
|
|
4224
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4144
4225
|
*/
|
|
4145
4226
|
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)),
|
|
4146
4227
|
/**
|
|
@@ -6450,6 +6531,19 @@ export class Api extends HttpClient {
|
|
|
6450
6531
|
* @response `403` `ProblemDetails` Forbidden
|
|
6451
6532
|
*/
|
|
6452
6533
|
getMyPartners: (params = {}) => this.request(Object.assign({ path: `/api/users/me/partners`, method: "GET", secure: true, format: "json" }, params)),
|
|
6534
|
+
/**
|
|
6535
|
+
* @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
|
|
6536
|
+
*
|
|
6537
|
+
* @tags UsersMe
|
|
6538
|
+
* @name SearchMyPartners
|
|
6539
|
+
* @summary Search My Partners
|
|
6540
|
+
* @request POST:/api/users/me/partners/search
|
|
6541
|
+
* @secure
|
|
6542
|
+
* @response `200` `MyPartnerPaginated` OK
|
|
6543
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
6544
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
6545
|
+
*/
|
|
6546
|
+
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)),
|
|
6453
6547
|
/**
|
|
6454
6548
|
* @description Adds a partner, by partner profile ID, to the loan officer's list; a pending partner can be added too
|
|
6455
6549
|
*
|