@matech/thebigpos-sdk 2.48.0-rc6 → 2.49.0-rc0
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/.claude/settings.local.json +52 -0
- package/dist/index.d.ts +403 -63
- package/dist/index.js +213 -41
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +632 -115
package/dist/index.js
CHANGED
|
@@ -95,7 +95,7 @@ export class HttpClient {
|
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* @title The Big POS API
|
|
98
|
-
* @version v2.
|
|
98
|
+
* @version v2.49.0
|
|
99
99
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
100
100
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
101
101
|
*/
|
|
@@ -1316,6 +1316,173 @@ export class Api extends HttpClient {
|
|
|
1316
1316
|
* @response `200` `ClosedLoansReport` OK
|
|
1317
1317
|
*/
|
|
1318
1318
|
getClosedLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/reports/closed-loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
1319
|
+
/**
|
|
1320
|
+
* No description
|
|
1321
|
+
*
|
|
1322
|
+
* @tags CompanyDocumentFolders
|
|
1323
|
+
* @name GetCompanyDocumentFolders
|
|
1324
|
+
* @summary Get all company document folders
|
|
1325
|
+
* @request GET:/api/company-document-folders
|
|
1326
|
+
* @secure
|
|
1327
|
+
* @response `200` `(CompanyDocumentFolder)[]` OK
|
|
1328
|
+
*/
|
|
1329
|
+
getCompanyDocumentFolders: (params = {}) => this.request(Object.assign({ path: `/api/company-document-folders`, method: "GET", secure: true, format: "json" }, params)),
|
|
1330
|
+
/**
|
|
1331
|
+
* No description
|
|
1332
|
+
*
|
|
1333
|
+
* @tags CompanyDocumentFolders
|
|
1334
|
+
* @name CreateCompanyDocumentFolder
|
|
1335
|
+
* @summary Create company document folder
|
|
1336
|
+
* @request POST:/api/company-document-folders
|
|
1337
|
+
* @secure
|
|
1338
|
+
* @response `201` `CompanyDocumentFolder` Created
|
|
1339
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1340
|
+
* @response `409` `ProblemDetails` Conflict
|
|
1341
|
+
*/
|
|
1342
|
+
createCompanyDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/company-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
1343
|
+
/**
|
|
1344
|
+
* No description
|
|
1345
|
+
*
|
|
1346
|
+
* @tags CompanyDocumentFolders
|
|
1347
|
+
* @name GetCompanyDocumentFolder
|
|
1348
|
+
* @summary Get company document folder by ID
|
|
1349
|
+
* @request GET:/api/company-document-folders/{id}
|
|
1350
|
+
* @secure
|
|
1351
|
+
* @response `200` `CompanyDocumentFolder` OK
|
|
1352
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1353
|
+
*/
|
|
1354
|
+
getCompanyDocumentFolder: (id, params = {}) => this.request(Object.assign({ path: `/api/company-document-folders/${id}`, method: "GET", secure: true, format: "json" }, params)),
|
|
1355
|
+
/**
|
|
1356
|
+
* No description
|
|
1357
|
+
*
|
|
1358
|
+
* @tags CompanyDocumentFolders
|
|
1359
|
+
* @name UpdateCompanyDocumentFolder
|
|
1360
|
+
* @summary Update company document folder
|
|
1361
|
+
* @request PUT:/api/company-document-folders/{id}
|
|
1362
|
+
* @secure
|
|
1363
|
+
* @response `200` `CompanyDocumentFolder` OK
|
|
1364
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1365
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1366
|
+
* @response `409` `ProblemDetails` Conflict
|
|
1367
|
+
*/
|
|
1368
|
+
updateCompanyDocumentFolder: (id, data, params = {}) => this.request(Object.assign({ path: `/api/company-document-folders/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
1369
|
+
/**
|
|
1370
|
+
* No description
|
|
1371
|
+
*
|
|
1372
|
+
* @tags CompanyDocumentFolders
|
|
1373
|
+
* @name DeleteCompanyDocumentFolder
|
|
1374
|
+
* @summary Delete company document folder
|
|
1375
|
+
* @request DELETE:/api/company-document-folders/{id}
|
|
1376
|
+
* @secure
|
|
1377
|
+
* @response `204` `void` No Content
|
|
1378
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1379
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1380
|
+
* @response `409` `ProblemDetails` Conflict
|
|
1381
|
+
*/
|
|
1382
|
+
deleteCompanyDocumentFolder: (id, params = {}) => this.request(Object.assign({ path: `/api/company-document-folders/${id}`, method: "DELETE", secure: true }, params)),
|
|
1383
|
+
/**
|
|
1384
|
+
* No description
|
|
1385
|
+
*
|
|
1386
|
+
* @tags CompanyDocuments
|
|
1387
|
+
* @name SearchCompanyDocuments
|
|
1388
|
+
* @summary Search company documents
|
|
1389
|
+
* @request POST:/api/company-documents/search
|
|
1390
|
+
* @secure
|
|
1391
|
+
* @response `200` `CompanyDocumentPaginated` OK
|
|
1392
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1393
|
+
*/
|
|
1394
|
+
searchCompanyDocuments: (data, query, params = {}) => this.request(Object.assign({ path: `/api/company-documents/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
1395
|
+
/**
|
|
1396
|
+
* No description
|
|
1397
|
+
*
|
|
1398
|
+
* @tags CompanyDocuments
|
|
1399
|
+
* @name GetCompanyDocument
|
|
1400
|
+
* @summary Get company document by ID
|
|
1401
|
+
* @request GET:/api/company-documents/{id}
|
|
1402
|
+
* @secure
|
|
1403
|
+
* @response `200` `CompanyDocument` OK
|
|
1404
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1405
|
+
*/
|
|
1406
|
+
getCompanyDocument: (id, params = {}) => this.request(Object.assign({ path: `/api/company-documents/${id}`, method: "GET", secure: true, format: "json" }, params)),
|
|
1407
|
+
/**
|
|
1408
|
+
* No description
|
|
1409
|
+
*
|
|
1410
|
+
* @tags CompanyDocuments
|
|
1411
|
+
* @name UpdateCompanyDocument
|
|
1412
|
+
* @summary Update company document
|
|
1413
|
+
* @request PUT:/api/company-documents/{id}
|
|
1414
|
+
* @secure
|
|
1415
|
+
* @response `200` `CompanyDocument` OK
|
|
1416
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1417
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1418
|
+
* @response `409` `ProblemDetails` Conflict
|
|
1419
|
+
*/
|
|
1420
|
+
updateCompanyDocument: (id, data, params = {}) => this.request(Object.assign({ path: `/api/company-documents/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
1421
|
+
/**
|
|
1422
|
+
* No description
|
|
1423
|
+
*
|
|
1424
|
+
* @tags CompanyDocuments
|
|
1425
|
+
* @name DeleteCompanyDocument
|
|
1426
|
+
* @summary Delete company document
|
|
1427
|
+
* @request DELETE:/api/company-documents/{id}
|
|
1428
|
+
* @secure
|
|
1429
|
+
* @response `204` `void` No Content
|
|
1430
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1431
|
+
*/
|
|
1432
|
+
deleteCompanyDocument: (id, params = {}) => this.request(Object.assign({ path: `/api/company-documents/${id}`, method: "DELETE", secure: true }, params)),
|
|
1433
|
+
/**
|
|
1434
|
+
* No description
|
|
1435
|
+
*
|
|
1436
|
+
* @tags CompanyDocuments
|
|
1437
|
+
* @name DownloadCompanyDocument
|
|
1438
|
+
* @summary Download company document
|
|
1439
|
+
* @request GET:/api/company-documents/{id}/download
|
|
1440
|
+
* @secure
|
|
1441
|
+
* @response `200` `void` OK
|
|
1442
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1443
|
+
*/
|
|
1444
|
+
downloadCompanyDocument: (id, params = {}) => this.request(Object.assign({ path: `/api/company-documents/${id}/download`, method: "GET", secure: true }, params)),
|
|
1445
|
+
/**
|
|
1446
|
+
* No description
|
|
1447
|
+
*
|
|
1448
|
+
* @tags CompanyDocuments
|
|
1449
|
+
* @name CreateCompanyDocument
|
|
1450
|
+
* @summary Upload company document
|
|
1451
|
+
* @request POST:/api/company-documents
|
|
1452
|
+
* @secure
|
|
1453
|
+
* @response `201` `CompanyDocument` Created
|
|
1454
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1455
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1456
|
+
* @response `409` `ProblemDetails` Conflict
|
|
1457
|
+
*/
|
|
1458
|
+
createCompanyDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/company-documents`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
|
|
1459
|
+
/**
|
|
1460
|
+
* No description
|
|
1461
|
+
*
|
|
1462
|
+
* @tags CompanyDocuments
|
|
1463
|
+
* @name CreateCompanyTextDocument
|
|
1464
|
+
* @summary Create free-form text company document
|
|
1465
|
+
* @request POST:/api/company-documents/text
|
|
1466
|
+
* @secure
|
|
1467
|
+
* @response `201` `CompanyDocument` Created
|
|
1468
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1469
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1470
|
+
* @response `409` `ProblemDetails` Conflict
|
|
1471
|
+
*/
|
|
1472
|
+
createCompanyTextDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/company-documents/text`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
1473
|
+
/**
|
|
1474
|
+
* No description
|
|
1475
|
+
*
|
|
1476
|
+
* @tags CompanyDocuments
|
|
1477
|
+
* @name ReindexCompanyDocument
|
|
1478
|
+
* @summary Re-index a failed company document
|
|
1479
|
+
* @request POST:/api/company-documents/{id}/reindex
|
|
1480
|
+
* @secure
|
|
1481
|
+
* @response `200` `CompanyDocument` OK
|
|
1482
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1483
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1484
|
+
*/
|
|
1485
|
+
reindexCompanyDocument: (id, params = {}) => this.request(Object.assign({ path: `/api/company-documents/${id}/reindex`, method: "POST", secure: true, format: "json" }, params)),
|
|
1319
1486
|
/**
|
|
1320
1487
|
* No description
|
|
1321
1488
|
*
|
|
@@ -1624,6 +1791,7 @@ export class Api extends HttpClient {
|
|
|
1624
1791
|
* @name GetDocumentBuckets
|
|
1625
1792
|
* @summary Get All
|
|
1626
1793
|
* @request GET:/api/document-buckets
|
|
1794
|
+
* @deprecated
|
|
1627
1795
|
* @secure
|
|
1628
1796
|
* @response `200` `(string)[]` OK
|
|
1629
1797
|
*/
|
|
@@ -2674,45 +2842,22 @@ export class Api extends HttpClient {
|
|
|
2674
2842
|
* @name GetLoanDocumentBuckets
|
|
2675
2843
|
* @summary Get All
|
|
2676
2844
|
* @request GET:/api/loans/{loanId}/documents/buckets
|
|
2845
|
+
* @deprecated
|
|
2677
2846
|
* @secure
|
|
2678
2847
|
* @response `200` `(string)[]` OK
|
|
2679
2848
|
*/
|
|
2680
2849
|
getLoanDocumentBuckets: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/buckets`, method: "GET", secure: true, format: "json" }, params)),
|
|
2681
|
-
/**
|
|
2682
|
-
* No description
|
|
2683
|
-
*
|
|
2684
|
-
* @tags LoanDocumentBuckets
|
|
2685
|
-
* @name CreateLoanDocumentBuckets
|
|
2686
|
-
* @summary Create
|
|
2687
|
-
* @request POST:/api/loans/{loanId}/documents/buckets
|
|
2688
|
-
* @secure
|
|
2689
|
-
* @response `201` `(string)[]` Created
|
|
2690
|
-
*/
|
|
2691
|
-
createLoanDocumentBuckets: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/buckets`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2692
2850
|
/**
|
|
2693
2851
|
* No description
|
|
2694
2852
|
*
|
|
2695
2853
|
* @tags LoanDocumentFolders
|
|
2696
|
-
* @name
|
|
2697
|
-
* @summary
|
|
2698
|
-
* @request
|
|
2854
|
+
* @name SearchLoanDocumentFolders
|
|
2855
|
+
* @summary Search loan document folders for the current account
|
|
2856
|
+
* @request POST:/api/loan-document-folders/search
|
|
2699
2857
|
* @secure
|
|
2700
|
-
* @response `200` `
|
|
2858
|
+
* @response `200` `LoanDocumentFolderPaginated` OK
|
|
2701
2859
|
*/
|
|
2702
|
-
|
|
2703
|
-
/**
|
|
2704
|
-
* No description
|
|
2705
|
-
*
|
|
2706
|
-
* @tags LoanDocumentFolders
|
|
2707
|
-
* @name CreateLoanDocumentFolder
|
|
2708
|
-
* @summary Create a loan document folder
|
|
2709
|
-
* @request POST:/api/loan-document-folders
|
|
2710
|
-
* @secure
|
|
2711
|
-
* @response `201` `LoanDocumentFolder` Created
|
|
2712
|
-
* @response `409` `ProblemDetails` Conflict
|
|
2713
|
-
* @response `422` `ProblemDetails` Unprocessable Content
|
|
2714
|
-
*/
|
|
2715
|
-
createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2860
|
+
searchLoanDocumentFolders: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2716
2861
|
/**
|
|
2717
2862
|
* No description
|
|
2718
2863
|
*
|
|
@@ -2754,6 +2899,19 @@ export class Api extends HttpClient {
|
|
|
2754
2899
|
* @response `409` `ProblemDetails` Conflict
|
|
2755
2900
|
*/
|
|
2756
2901
|
deleteLoanDocumentFolder: (id, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}`, method: "DELETE", secure: true }, params)),
|
|
2902
|
+
/**
|
|
2903
|
+
* No description
|
|
2904
|
+
*
|
|
2905
|
+
* @tags LoanDocumentFolders
|
|
2906
|
+
* @name CreateLoanDocumentFolder
|
|
2907
|
+
* @summary Create a loan document folder
|
|
2908
|
+
* @request POST:/api/loan-document-folders
|
|
2909
|
+
* @secure
|
|
2910
|
+
* @response `201` `LoanDocumentFolder` Created
|
|
2911
|
+
* @response `409` `ProblemDetails` Conflict
|
|
2912
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
2913
|
+
*/
|
|
2914
|
+
createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2757
2915
|
/**
|
|
2758
2916
|
* No description
|
|
2759
2917
|
*
|
|
@@ -2791,6 +2949,29 @@ export class Api extends HttpClient {
|
|
|
2791
2949
|
* @response `404` `ProblemDetails` Not Found
|
|
2792
2950
|
*/
|
|
2793
2951
|
getLoanDocumentFolderUsage: (id, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}/usage`, method: "GET", secure: true, format: "json" }, params)),
|
|
2952
|
+
/**
|
|
2953
|
+
* @description Returns each folder that holds at least one document the caller can read, with the document count per folder. Documents that are not assigned to a folder are returned as a synthetic 'Unassigned' folder (ID = empty GUID).
|
|
2954
|
+
*
|
|
2955
|
+
* @tags LoanDocumentFoldersForSingleLoan
|
|
2956
|
+
* @name ListLoanDocumentFolders
|
|
2957
|
+
* @summary Get the loan's document folders
|
|
2958
|
+
* @request GET:/api/loans/{loanId}/document-folders
|
|
2959
|
+
* @secure
|
|
2960
|
+
* @response `200` `(LoanDocumentFolderWithCount)[]` OK
|
|
2961
|
+
*/
|
|
2962
|
+
listLoanDocumentFolders: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/document-folders`, method: "GET", secure: true, format: "json" }, params)),
|
|
2963
|
+
/**
|
|
2964
|
+
* @description Deprecated — use GET documents/folders. Returns all documents grouped by folder for sidebar display. Use folderNamesOnly=true to get a simplified response with folder names and counts for mobile (Files array will be empty).
|
|
2965
|
+
*
|
|
2966
|
+
* @tags LoanDocumentFoldersForSingleLoan
|
|
2967
|
+
* @name GetLoanDocumentFolders
|
|
2968
|
+
* @summary [Deprecated] Get document folder hierarchy
|
|
2969
|
+
* @request POST:/api/loans/{loanId}/documents/folders
|
|
2970
|
+
* @deprecated
|
|
2971
|
+
* @secure
|
|
2972
|
+
* @response `200` `(DocumentFolder)[]` OK
|
|
2973
|
+
*/
|
|
2974
|
+
getLoanDocumentFolders: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/folders`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2794
2975
|
/**
|
|
2795
2976
|
* No description
|
|
2796
2977
|
*
|
|
@@ -2826,17 +3007,6 @@ export class Api extends HttpClient {
|
|
|
2826
3007
|
* @response `200` `LoanDocumentSearchPaginated` OK
|
|
2827
3008
|
*/
|
|
2828
3009
|
searchLoanDocuments: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2829
|
-
/**
|
|
2830
|
-
* @description Returns all documents grouped by folder for sidebar display. Use folderNamesOnly=true to get simplified response with folder names and counts for mobile (Files array will be empty).
|
|
2831
|
-
*
|
|
2832
|
-
* @tags LoanDocuments
|
|
2833
|
-
* @name GetLoanDocumentFolders
|
|
2834
|
-
* @summary Get document folder hierarchy
|
|
2835
|
-
* @request POST:/api/loans/{loanId}/documents/folders
|
|
2836
|
-
* @secure
|
|
2837
|
-
* @response `200` `(DocumentFolder)[]` OK
|
|
2838
|
-
*/
|
|
2839
|
-
getLoanDocumentFolders: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/folders`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2840
3010
|
/**
|
|
2841
3011
|
* No description
|
|
2842
3012
|
*
|
|
@@ -4607,6 +4777,8 @@ export class Api extends HttpClient {
|
|
|
4607
4777
|
* @request POST:/api/loans/drafts/{draftId}/users/{userId}
|
|
4608
4778
|
* @secure
|
|
4609
4779
|
* @response `200` `UserDraft` OK
|
|
4780
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4781
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4610
4782
|
*/
|
|
4611
4783
|
addDraftUsers: (draftId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4612
4784
|
/**
|