@matech/thebigpos-sdk 3.14.0 → 3.15.0-dev-6023
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.d.ts +636 -1
- package/dist/index.js +216 -2
- package/dist/index.js.map +1 -1
- package/docs/sdk_generation.md +149 -0
- package/package.json +16 -6
- package/scripts/apply-json-patch-content-type.js +189 -36
- package/src/index.ts +1227 -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.15.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
|
*/
|
|
@@ -1423,6 +1429,46 @@ export class Api extends HttpClient {
|
|
|
1423
1429
|
* @response `200` `BusinessRule` OK
|
|
1424
1430
|
*/
|
|
1425
1431
|
restoreBusinessRule: (id, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}/restore`, method: "POST", secure: true, format: "json" }, params)),
|
|
1432
|
+
/**
|
|
1433
|
+
* No description
|
|
1434
|
+
*
|
|
1435
|
+
* @tags Canvases
|
|
1436
|
+
* @name GetCanvas
|
|
1437
|
+
* @summary Get a site's canvas for one surface, as the signed-in user sees it
|
|
1438
|
+
* @request GET:/api/canvases/{surface}
|
|
1439
|
+
* @secure
|
|
1440
|
+
* @response `200` `CanvasView` OK
|
|
1441
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1442
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1443
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
1444
|
+
*/
|
|
1445
|
+
getCanvas: (surface, query, params = {}) => this.request(Object.assign({ path: `/api/canvases/${surface}`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
1446
|
+
/**
|
|
1447
|
+
* @description A standard field's key and every categoryKey never change: saved layouts refer to fields by key, and a client can translate labels and categories by these keys.
|
|
1448
|
+
*
|
|
1449
|
+
* @tags CanvasFields
|
|
1450
|
+
* @name GetCanvasFields
|
|
1451
|
+
* @summary Get the fields a canvas can show
|
|
1452
|
+
* @request GET:/api/canvas/fields
|
|
1453
|
+
* @secure
|
|
1454
|
+
* @response `200` `CanvasFieldCatalog` OK
|
|
1455
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
1456
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1457
|
+
*/
|
|
1458
|
+
getCanvasFields: (params = {}) => this.request(Object.assign({ path: `/api/canvas/fields`, method: "GET", secure: true, format: "json" }, params)),
|
|
1459
|
+
/**
|
|
1460
|
+
* No description
|
|
1461
|
+
*
|
|
1462
|
+
* @tags CanvasWidgetTypes
|
|
1463
|
+
* @name GetCanvasWidgetTypes
|
|
1464
|
+
* @summary Get canvas widget types
|
|
1465
|
+
* @request GET:/api/canvas/widget-types
|
|
1466
|
+
* @secure
|
|
1467
|
+
* @response `200` `(CanvasWidgetTypeDescriptor)[]` OK
|
|
1468
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
1469
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1470
|
+
*/
|
|
1471
|
+
getCanvasWidgetTypes: (params = {}) => this.request(Object.assign({ path: `/api/canvas/widget-types`, method: "GET", secure: true, format: "json" }, params)),
|
|
1426
1472
|
/**
|
|
1427
1473
|
* @description Returns closed loan counts per account within the specified date range, including POS vs non-POS breakdown and utilization ratios.
|
|
1428
1474
|
*
|
|
@@ -2643,6 +2689,20 @@ export class Api extends HttpClient {
|
|
|
2643
2689
|
* @response `200` `FormVersion` OK
|
|
2644
2690
|
*/
|
|
2645
2691
|
deleteFormVersion: (formId, id, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "DELETE", secure: true, format: "json" }, params)),
|
|
2692
|
+
/**
|
|
2693
|
+
* No description
|
|
2694
|
+
*
|
|
2695
|
+
* @tags IncompleteLoans
|
|
2696
|
+
* @name SearchIncompleteLoans
|
|
2697
|
+
* @summary Search incomplete loans
|
|
2698
|
+
* @request POST:/api/loans/incomplete/search
|
|
2699
|
+
* @secure
|
|
2700
|
+
* @response `200` `IncompleteLoanPaginated` OK
|
|
2701
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
2702
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
2703
|
+
* @response `404` `ProblemDetails` Not Found
|
|
2704
|
+
*/
|
|
2705
|
+
searchIncompleteLoans: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/incomplete/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2646
2706
|
/**
|
|
2647
2707
|
* No description
|
|
2648
2708
|
*
|
|
@@ -2979,6 +3039,36 @@ export class Api extends HttpClient {
|
|
|
2979
3039
|
* @response `200` `File` OK
|
|
2980
3040
|
*/
|
|
2981
3041
|
getListingOpenHouseFlyer: (id, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/open-house-flyer`, method: "GET", secure: true, format: "json" }, params)),
|
|
3042
|
+
/**
|
|
3043
|
+
* No description
|
|
3044
|
+
*
|
|
3045
|
+
* @tags LoanApplicationRemoval
|
|
3046
|
+
* @name RemoveLoanApplication
|
|
3047
|
+
* @summary Remove a loan application nobody has submitted
|
|
3048
|
+
* @request POST:/api/loans/{loanId}/application/remove
|
|
3049
|
+
* @secure
|
|
3050
|
+
* @response `204` `void` No Content
|
|
3051
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
3052
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
3053
|
+
* @response `404` `ProblemDetails` Not Found
|
|
3054
|
+
* @response `409` `ProblemDetails` Conflict
|
|
3055
|
+
*/
|
|
3056
|
+
removeLoanApplication: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/application/remove`, method: "POST", secure: true }, params)),
|
|
3057
|
+
/**
|
|
3058
|
+
* No description
|
|
3059
|
+
*
|
|
3060
|
+
* @tags LoanApplicationRemoval
|
|
3061
|
+
* @name RestoreLoanApplication
|
|
3062
|
+
* @summary Restore a removed loan application
|
|
3063
|
+
* @request POST:/api/loans/{loanId}/application/restore
|
|
3064
|
+
* @secure
|
|
3065
|
+
* @response `204` `void` No Content
|
|
3066
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
3067
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
3068
|
+
* @response `404` `ProblemDetails` Not Found
|
|
3069
|
+
* @response `409` `ProblemDetails` Conflict
|
|
3070
|
+
*/
|
|
3071
|
+
restoreLoanApplication: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/application/restore`, method: "POST", secure: true }, params)),
|
|
2982
3072
|
/**
|
|
2983
3073
|
* No description
|
|
2984
3074
|
*
|
|
@@ -3003,6 +3093,21 @@ export class Api extends HttpClient {
|
|
|
3003
3093
|
* @response `423` `UnprocessableEntity` Locked
|
|
3004
3094
|
*/
|
|
3005
3095
|
runLoanCalculator: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/calculators/loan-calculator`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
3096
|
+
/**
|
|
3097
|
+
* No description
|
|
3098
|
+
*
|
|
3099
|
+
* @tags LoanCanvasFieldValues
|
|
3100
|
+
* @name GetLoanCanvasFieldValues
|
|
3101
|
+
* @summary Get a loan's values for canvas fields
|
|
3102
|
+
* @request POST:/api/loans/{loanId}/canvas/field-values
|
|
3103
|
+
* @secure
|
|
3104
|
+
* @response `200` `CanvasFieldValues` OK
|
|
3105
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
3106
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
3107
|
+
* @response `404` `ProblemDetails` Not Found
|
|
3108
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
3109
|
+
*/
|
|
3110
|
+
getLoanCanvasFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/canvas/field-values`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
3006
3111
|
/**
|
|
3007
3112
|
* No description
|
|
3008
3113
|
*
|
|
@@ -3928,6 +4033,7 @@ export class Api extends HttpClient {
|
|
|
3928
4033
|
* @response `404` `ProblemDetails` Not Found
|
|
3929
4034
|
* @response `409` `any` Conflict
|
|
3930
4035
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
4036
|
+
* @response `423` `ProblemDetails` Locked
|
|
3931
4037
|
*/
|
|
3932
4038
|
updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
3933
4039
|
/**
|
|
@@ -4010,6 +4116,7 @@ export class Api extends HttpClient {
|
|
|
4010
4116
|
* @secure
|
|
4011
4117
|
* @response `202` `void` Accepted
|
|
4012
4118
|
* @response `404` `ProblemDetails` Not Found
|
|
4119
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4013
4120
|
*/
|
|
4014
4121
|
syncLoanToLos: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/sync-to-los`, method: "POST", secure: true }, params)),
|
|
4015
4122
|
/**
|
|
@@ -4786,6 +4893,98 @@ export class Api extends HttpClient {
|
|
|
4786
4893
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
4787
4894
|
*/
|
|
4788
4895
|
replacePartnerSiteConfiguration: (realtorId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4896
|
+
/**
|
|
4897
|
+
* No description
|
|
4898
|
+
*
|
|
4899
|
+
* @tags SiteConfigurationCanvases
|
|
4900
|
+
* @name GetSiteConfigurationCanvases
|
|
4901
|
+
* @summary Get a site's canvases: own, inherited and effective per surface
|
|
4902
|
+
* @request GET:/api/site-configurations/{siteConfigurationId}/canvases
|
|
4903
|
+
* @secure
|
|
4904
|
+
* @response `200` `SiteConfigurationCanvases` OK
|
|
4905
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4906
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4907
|
+
*/
|
|
4908
|
+
getSiteConfigurationCanvases: (siteConfigurationId, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases`, method: "GET", secure: true, format: "json" }, params)),
|
|
4909
|
+
/**
|
|
4910
|
+
* @description The request is the canvas's whole state: leaving out forkedFromSiteConfigurationID and forkedFromVersion clears them, and isBehindInherited with them.
|
|
4911
|
+
*
|
|
4912
|
+
* @tags SiteConfigurationCanvases
|
|
4913
|
+
* @name SaveSiteConfigurationCanvas
|
|
4914
|
+
* @summary Save a site's canvas for one surface
|
|
4915
|
+
* @request PUT:/api/site-configurations/{siteConfigurationId}/canvases/{surface}
|
|
4916
|
+
* @secure
|
|
4917
|
+
* @response `200` `CanvasSurfaceState` OK
|
|
4918
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4919
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4920
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4921
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4922
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4923
|
+
* @response `423` `ProblemDetails` Locked
|
|
4924
|
+
*/
|
|
4925
|
+
saveSiteConfigurationCanvas: (siteConfigurationId, surface, data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4926
|
+
/**
|
|
4927
|
+
* No description
|
|
4928
|
+
*
|
|
4929
|
+
* @tags SiteConfigurationCanvases
|
|
4930
|
+
* @name DeleteSiteConfigurationCanvas
|
|
4931
|
+
* @summary Delete a site's own canvas for a surface, its boards or its Loan Details tabs, so it inherits again
|
|
4932
|
+
* @request DELETE:/api/site-configurations/{siteConfigurationId}/canvases/{surface}
|
|
4933
|
+
* @secure
|
|
4934
|
+
* @response `204` `void` No Content
|
|
4935
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4936
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4937
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4938
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4939
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4940
|
+
*/
|
|
4941
|
+
deleteSiteConfigurationCanvas: (siteConfigurationId, surface, query, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}`, method: "DELETE", query: query, secure: true }, params)),
|
|
4942
|
+
/**
|
|
4943
|
+
* No description
|
|
4944
|
+
*
|
|
4945
|
+
* @tags SiteConfigurationCanvases
|
|
4946
|
+
* @name PreviewSiteConfigurationCanvas
|
|
4947
|
+
* @summary Preview an unsaved canvas for one surface as a role would see it
|
|
4948
|
+
* @request POST:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/preview
|
|
4949
|
+
* @secure
|
|
4950
|
+
* @response `200` `CanvasView` OK
|
|
4951
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4952
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4953
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4954
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4955
|
+
*/
|
|
4956
|
+
previewSiteConfigurationCanvas: (siteConfigurationId, surface, data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}/preview`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4957
|
+
/**
|
|
4958
|
+
* No description
|
|
4959
|
+
*
|
|
4960
|
+
* @tags SiteConfigurationCanvases
|
|
4961
|
+
* @name GetSiteConfigurationCanvasVersions
|
|
4962
|
+
* @summary Get the saved versions of a site's layout for a surface, newest first, including those from before a delete
|
|
4963
|
+
* @request GET:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/versions
|
|
4964
|
+
* @secure
|
|
4965
|
+
* @response `200` `(CanvasVersion)[]` OK
|
|
4966
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4967
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4968
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4969
|
+
*/
|
|
4970
|
+
getSiteConfigurationCanvasVersions: (siteConfigurationId, surface, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}/versions`, method: "GET", secure: true, format: "json" }, params)),
|
|
4971
|
+
/**
|
|
4972
|
+
* No description
|
|
4973
|
+
*
|
|
4974
|
+
* @tags SiteConfigurationCanvases
|
|
4975
|
+
* @name RestoreSiteConfigurationCanvasVersion
|
|
4976
|
+
* @summary Restore a saved version of a site's canvas as a new version
|
|
4977
|
+
* @request POST:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/versions/{version}/restore
|
|
4978
|
+
* @secure
|
|
4979
|
+
* @response `200` `CanvasSurfaceState` OK
|
|
4980
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4981
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4982
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4983
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4984
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4985
|
+
* @response `423` `ProblemDetails` Locked
|
|
4986
|
+
*/
|
|
4987
|
+
restoreSiteConfigurationCanvasVersion: (siteConfigurationId, surface, version, data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}/versions/${version}/restore`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4789
4988
|
/**
|
|
4790
4989
|
* No description
|
|
4791
4990
|
*
|
|
@@ -5546,6 +5745,7 @@ export class Api extends HttpClient {
|
|
|
5546
5745
|
* @response `204` `void` No Content
|
|
5547
5746
|
* @response `404` `Error` Not Found
|
|
5548
5747
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
5748
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
5549
5749
|
*/
|
|
5550
5750
|
allowImpersonationWithGuid: (allowToken, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow/${allowToken}`, method: "POST", secure: true }, params)),
|
|
5551
5751
|
/**
|
|
@@ -5597,6 +5797,20 @@ export class Api extends HttpClient {
|
|
|
5597
5797
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
5598
5798
|
*/
|
|
5599
5799
|
extendImpersonation: (params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/extend`, method: "POST", secure: true }, params)),
|
|
5800
|
+
/**
|
|
5801
|
+
* No description
|
|
5802
|
+
*
|
|
5803
|
+
* @tags UserInviteAcceptance
|
|
5804
|
+
* @name AcceptBorrowerInvite
|
|
5805
|
+
* @summary Accept a borrower invite with the signed-in account
|
|
5806
|
+
* @request POST:/api/users/invites/accept
|
|
5807
|
+
* @secure
|
|
5808
|
+
* @response `200` `AcceptedBorrowerInvite` OK
|
|
5809
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
5810
|
+
* @response `404` `ProblemDetails` Not Found
|
|
5811
|
+
* @response `409` `ProblemDetails` Conflict
|
|
5812
|
+
*/
|
|
5813
|
+
acceptBorrowerInvite: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites/accept`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
5600
5814
|
/**
|
|
5601
5815
|
* No description
|
|
5602
5816
|
*
|