@matech/thebigpos-sdk 2.38.3-rc1 → 2.39.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/dist/index.js CHANGED
@@ -32,6 +32,7 @@ var __rest = (this && this.__rest) || function (s, e) {
32
32
  import axios from "axios";
33
33
  export var ContentType;
34
34
  (function (ContentType) {
35
+ ContentType["JsonPatch"] = "application/json-patch+json";
35
36
  ContentType["Json"] = "application/json";
36
37
  ContentType["JsonApi"] = "application/vnd.api+json";
37
38
  ContentType["FormData"] = "multipart/form-data";
@@ -103,7 +104,7 @@ export class HttpClient {
103
104
  }
104
105
  /**
105
106
  * @title The Big POS API
106
- * @version v2.38.2
107
+ * @version v2.39.0
107
108
  * @termsOfService https://www.thebigpos.com/terms-of-use/
108
109
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
109
110
  */
@@ -710,6 +711,94 @@ export class Api extends HttpClient {
710
711
  * @response `200` `(LoanOfficerPublic)[]` Success
711
712
  */
712
713
  getLoanOfficersByCorporate: (id, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}/loan-officers`, method: "GET", secure: true, format: "json" }, params)),
714
+ /**
715
+ * No description
716
+ *
717
+ * @tags CustomFieldDefinitions
718
+ * @name GetCustomFieldDefinitions
719
+ * @summary Get all custom field definitions by entity type
720
+ * @request GET:/api/custom-field-definitions
721
+ * @secure
722
+ * @response `200` `(CustomFieldDefinition)[]` Success
723
+ */
724
+ getCustomFieldDefinitions: (query, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "GET", query: query, secure: true, format: "json" }, params)),
725
+ /**
726
+ * No description
727
+ *
728
+ * @tags CustomFieldDefinitions
729
+ * @name CreateCustomFieldDefinition
730
+ * @summary Create a custom field definition
731
+ * @request POST:/api/custom-field-definitions
732
+ * @secure
733
+ * @response `201` `CustomFieldDefinition` Created
734
+ * @response `409` `ProblemDetails` Conflict
735
+ * @response `422` `ProblemDetails` Client Error
736
+ */
737
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
738
+ /**
739
+ * No description
740
+ *
741
+ * @tags CustomFieldDefinitions
742
+ * @name GetCustomFieldDefinitionById
743
+ * @summary Get a custom field definition by ID
744
+ * @request GET:/api/custom-field-definitions/{id}
745
+ * @secure
746
+ * @response `200` `CustomFieldDefinition` Success
747
+ * @response `404` `ProblemDetails` Not Found
748
+ */
749
+ getCustomFieldDefinitionById: (id, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "GET", secure: true, format: "json" }, params)),
750
+ /**
751
+ * No description
752
+ *
753
+ * @tags CustomFieldDefinitions
754
+ * @name UpdateCustomFieldDefinition
755
+ * @summary Update a custom field definition
756
+ * @request PUT:/api/custom-field-definitions/{id}
757
+ * @secure
758
+ * @response `200` `CustomFieldDefinition` Success
759
+ * @response `400` `ProblemDetails` Bad Request
760
+ * @response `404` `ProblemDetails` Not Found
761
+ * @response `409` `ProblemDetails` Conflict
762
+ * @response `422` `ProblemDetails` Client Error
763
+ */
764
+ updateCustomFieldDefinition: (id, data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
765
+ /**
766
+ * No description
767
+ *
768
+ * @tags CustomFieldDefinitions
769
+ * @name DeleteCustomFieldDefinition
770
+ * @summary Delete a custom field definition
771
+ * @request DELETE:/api/custom-field-definitions/{id}
772
+ * @secure
773
+ * @response `204` `void` No Content
774
+ * @response `404` `ProblemDetails` Not Found
775
+ * @response `409` `ProblemDetails` Conflict
776
+ */
777
+ deleteCustomFieldDefinition: (id, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "DELETE", secure: true }, params)),
778
+ /**
779
+ * No description
780
+ *
781
+ * @tags CustomFieldDefinitions
782
+ * @name DisableCustomFieldDefinition
783
+ * @summary Disable a custom field definition
784
+ * @request POST:/api/custom-field-definitions/{id}/disable
785
+ * @secure
786
+ * @response `204` `void` No Content
787
+ * @response `404` `ProblemDetails` Not Found
788
+ */
789
+ disableCustomFieldDefinition: (id, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}/disable`, method: "POST", secure: true }, params)),
790
+ /**
791
+ * No description
792
+ *
793
+ * @tags CustomFieldDefinitions
794
+ * @name EnableCustomFieldDefinition
795
+ * @summary Enable a custom field definition
796
+ * @request POST:/api/custom-field-definitions/{id}/enable
797
+ * @secure
798
+ * @response `204` `void` No Content
799
+ * @response `404` `ProblemDetails` Not Found
800
+ */
801
+ enableCustomFieldDefinition: (id, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}/enable`, method: "POST", secure: true }, params)),
713
802
  /**
714
803
  * No description
715
804
  *
@@ -1271,7 +1360,7 @@ export class Api extends HttpClient {
1271
1360
  * @response `200` `string` Success
1272
1361
  * @response `422` `UnprocessableEntity` Client Error
1273
1362
  */
1274
- updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1363
+ updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1275
1364
  /**
1276
1365
  * No description
1277
1366
  *
@@ -1282,7 +1371,7 @@ export class Api extends HttpClient {
1282
1371
  * @secure
1283
1372
  * @response `200` `GetReport` Success
1284
1373
  */
1285
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1374
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1286
1375
  /**
1287
1376
  * No description
1288
1377
  *
@@ -1296,7 +1385,7 @@ export class Api extends HttpClient {
1296
1385
  * @response `422` `UnprocessableEntity` Client Error
1297
1386
  * @response `423` `UnprocessableEntity` Client Error
1298
1387
  */
1299
- createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1388
+ createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1300
1389
  /**
1301
1390
  * No description
1302
1391
  *
@@ -1309,7 +1398,7 @@ export class Api extends HttpClient {
1309
1398
  * @response `422` `UnprocessableEntity` Client Error
1310
1399
  * @response `423` `UnprocessableEntity` Client Error
1311
1400
  */
1312
- createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1401
+ createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1313
1402
  /**
1314
1403
  * No description
1315
1404
  *
@@ -1321,7 +1410,7 @@ export class Api extends HttpClient {
1321
1410
  * @response `200` `string` Success
1322
1411
  * @response `422` `UnprocessableEntity` Client Error
1323
1412
  */
1324
- updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1413
+ updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1325
1414
  /**
1326
1415
  * No description
1327
1416
  *
@@ -1334,7 +1423,7 @@ export class Api extends HttpClient {
1334
1423
  * @response `202` `string` Accepted
1335
1424
  * @response `422` `UnprocessableEntity` Client Error
1336
1425
  */
1337
- updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1426
+ updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1338
1427
  /**
1339
1428
  * No description
1340
1429
  *
@@ -1412,7 +1501,7 @@ export class Api extends HttpClient {
1412
1501
  * @secure
1413
1502
  * @response `200` `DocumentDataRequest` Success
1414
1503
  */
1415
- createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1504
+ createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1416
1505
  /**
1417
1506
  * No description
1418
1507
  *
@@ -1448,7 +1537,7 @@ export class Api extends HttpClient {
1448
1537
  * @secure
1449
1538
  * @response `200` `ListingFile` Success
1450
1539
  */
1451
- updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1540
+ updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1452
1541
  /**
1453
1542
  * No description
1454
1543
  *
@@ -1481,7 +1570,7 @@ export class Api extends HttpClient {
1481
1570
  * @secure
1482
1571
  * @response `200` `(ListingPhoto)[]` Success
1483
1572
  */
1484
- updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1573
+ updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1485
1574
  /**
1486
1575
  * No description
1487
1576
  *
@@ -1514,7 +1603,7 @@ export class Api extends HttpClient {
1514
1603
  * @secure
1515
1604
  * @response `201` `Listing` Created
1516
1605
  */
1517
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1606
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1518
1607
  /**
1519
1608
  * No description
1520
1609
  *
@@ -1547,7 +1636,7 @@ export class Api extends HttpClient {
1547
1636
  * @secure
1548
1637
  * @response `200` `Listing` Success
1549
1638
  */
1550
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1639
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1551
1640
  /**
1552
1641
  * No description
1553
1642
  *
@@ -1569,7 +1658,7 @@ export class Api extends HttpClient {
1569
1658
  * @secure
1570
1659
  * @response `200` `ListingPaginated` Success
1571
1660
  */
1572
- searchListings: (data, query, params = {}) => this.request(Object.assign({ path: `/api/listings/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1661
+ searchListings: (data, query, params = {}) => this.request(Object.assign({ path: `/api/listings/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1573
1662
  /**
1574
1663
  * No description
1575
1664
  *
@@ -1674,6 +1763,56 @@ export class Api extends HttpClient {
1674
1763
  * @response `422` `UnprocessableEntity` Client Error
1675
1764
  */
1676
1765
  createLoanComparisonPdf: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/pdf`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
1766
+ /**
1767
+ * No description
1768
+ *
1769
+ * @tags LoanCustomFieldValues
1770
+ * @name GetLoanCustomFieldValues
1771
+ * @summary Get all custom field values for a loan
1772
+ * @request GET:/api/loans/{loanId}/custom-fields
1773
+ * @secure
1774
+ * @response `200` `(CustomFieldValue)[]` Success
1775
+ */
1776
+ getLoanCustomFieldValues: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "GET", secure: true, format: "json" }, params)),
1777
+ /**
1778
+ * No description
1779
+ *
1780
+ * @tags LoanCustomFieldValues
1781
+ * @name BulkSetLoanCustomFieldValues
1782
+ * @summary Bulk set custom field values for a loan
1783
+ * @request PUT:/api/loans/{loanId}/custom-fields
1784
+ * @secure
1785
+ * @response `204` `void` No Content
1786
+ * @response `400` `ProblemDetails` Bad Request
1787
+ * @response `422` `ProblemDetails` Client Error
1788
+ */
1789
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
1790
+ /**
1791
+ * No description
1792
+ *
1793
+ * @tags LoanCustomFieldValues
1794
+ * @name SetLoanCustomFieldValue
1795
+ * @summary Set a single custom field value
1796
+ * @request PUT:/api/loans/{loanId}/custom-fields/{definitionId}
1797
+ * @secure
1798
+ * @response `204` `void` No Content
1799
+ * @response `400` `ProblemDetails` Bad Request
1800
+ * @response `404` `ProblemDetails` Not Found
1801
+ * @response `422` `ProblemDetails` Client Error
1802
+ */
1803
+ setLoanCustomFieldValue: (loanId, definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
1804
+ /**
1805
+ * No description
1806
+ *
1807
+ * @tags LoanCustomFieldValues
1808
+ * @name DeleteLoanCustomFieldValue
1809
+ * @summary Remove a custom field value
1810
+ * @request DELETE:/api/loans/{loanId}/custom-fields/{definitionId}
1811
+ * @secure
1812
+ * @response `204` `void` No Content
1813
+ * @response `404` `ProblemDetails` Not Found
1814
+ */
1815
+ deleteLoanCustomFieldValue: (loanId, definitionId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "DELETE", secure: true }, params)),
1677
1816
  /**
1678
1817
  * No description
1679
1818
  *
@@ -1708,6 +1847,18 @@ export class Api extends HttpClient {
1708
1847
  * @response `404` `ProblemDetails` Not Found
1709
1848
  */
1710
1849
  getLoanDocument: (loanId, documentId, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
1850
+ /**
1851
+ * No description
1852
+ *
1853
+ * @tags LoanDocuments
1854
+ * @name GetLoanDocumentPreviews
1855
+ * @summary Get document previews in batch
1856
+ * @request POST:/api/loans/{loanId}/documents/previews
1857
+ * @secure
1858
+ * @response `200` `Record<string,string>` Success
1859
+ * @response `400` `ProblemDetails` Bad Request
1860
+ */
1861
+ getLoanDocumentPreviews: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/previews`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1711
1862
  /**
1712
1863
  * No description
1713
1864
  *
@@ -1738,7 +1889,7 @@ export class Api extends HttpClient {
1738
1889
  * @summary Download By ID
1739
1890
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
1740
1891
  * @secure
1741
- * @response `200` `Blob` Success
1892
+ * @response `200` `string` Success
1742
1893
  * @response `404` `ProblemDetails` Not Found
1743
1894
  */
1744
1895
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2223,6 +2374,19 @@ export class Api extends HttpClient {
2223
2374
  * @response `404` `ProblemDetails` Not Found
2224
2375
  */
2225
2376
  syncLoanToLos: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/sync-to-los`, method: "POST", secure: true }, params)),
2377
+ /**
2378
+ * No description
2379
+ *
2380
+ * @tags Loans
2381
+ * @name TriggerAso
2382
+ * @summary Trigger ASO services
2383
+ * @request POST:/api/loans/{loanId}/aso
2384
+ * @secure
2385
+ * @response `200` `AutomatedService` Success
2386
+ * @response `400` `ProblemDetails` Bad Request
2387
+ * @response `404` `ProblemDetails` Not Found
2388
+ */
2389
+ triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2226
2390
  /**
2227
2391
  * No description
2228
2392
  *
@@ -2234,7 +2398,7 @@ export class Api extends HttpClient {
2234
2398
  * @response `200` `TaskCommentPaginated` Success
2235
2399
  * @response `404` `ProblemDetails` Not Found
2236
2400
  */
2237
- searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2401
+ searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2238
2402
  /**
2239
2403
  * No description
2240
2404
  *
@@ -2258,7 +2422,7 @@ export class Api extends HttpClient {
2258
2422
  * @response `201` `TaskComment` Created
2259
2423
  * @response `404` `ProblemDetails` Not Found
2260
2424
  */
2261
- createLoanTaskComment: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2425
+ createLoanTaskComment: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2262
2426
  /**
2263
2427
  * No description
2264
2428
  *
@@ -2270,7 +2434,7 @@ export class Api extends HttpClient {
2270
2434
  * @response `200` `TaskComment` Success
2271
2435
  * @response `404` `ProblemDetails` Not Found
2272
2436
  */
2273
- replaceLoanTaskComment: (loanId, userLoanTaskId, commentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/${commentId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2437
+ replaceLoanTaskComment: (loanId, userLoanTaskId, commentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/${commentId}`, method: "PUT", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2274
2438
  /**
2275
2439
  * No description
2276
2440
  *
@@ -3193,6 +3357,16 @@ export class Api extends HttpClient {
3193
3357
  * @response `204` `void` No Content
3194
3358
  */
3195
3359
  deleteEncompassWebhook: (webhookId, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks/${webhookId}`, method: "DELETE", secure: true }, params)),
3360
+ /**
3361
+ * No description
3362
+ *
3363
+ * @tags TheBigPOS
3364
+ * @name SearchLosSyncs
3365
+ * @request POST:/api/los/encompass/syncs/{loanId}/search
3366
+ * @secure
3367
+ * @response `200` `LosSyncPaginated` Success
3368
+ */
3369
+ searchLosSyncs: (loanId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/syncs/${loanId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3196
3370
  /**
3197
3371
  * No description
3198
3372
  *