@matech/thebigpos-sdk 3.15.0 → 3.16.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.d.ts +544 -14
- package/dist/index.js +162 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1068 -14
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 v3.
|
|
98
|
+
* @version v3.16.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
|
*/
|
|
@@ -1423,6 +1423,46 @@ export class Api extends HttpClient {
|
|
|
1423
1423
|
* @response `200` `BusinessRule` OK
|
|
1424
1424
|
*/
|
|
1425
1425
|
restoreBusinessRule: (id, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}/restore`, method: "POST", secure: true, format: "json" }, params)),
|
|
1426
|
+
/**
|
|
1427
|
+
* No description
|
|
1428
|
+
*
|
|
1429
|
+
* @tags Canvases
|
|
1430
|
+
* @name GetCanvas
|
|
1431
|
+
* @summary Get a site's canvas for one surface, as the signed-in user sees it
|
|
1432
|
+
* @request GET:/api/canvases/{surface}
|
|
1433
|
+
* @secure
|
|
1434
|
+
* @response `200` `CanvasView` OK
|
|
1435
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
1436
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1437
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
1438
|
+
*/
|
|
1439
|
+
getCanvas: (surface, query, params = {}) => this.request(Object.assign({ path: `/api/canvases/${surface}`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
1440
|
+
/**
|
|
1441
|
+
* @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.
|
|
1442
|
+
*
|
|
1443
|
+
* @tags CanvasFields
|
|
1444
|
+
* @name GetCanvasFields
|
|
1445
|
+
* @summary Get the fields a canvas can show
|
|
1446
|
+
* @request GET:/api/canvas/fields
|
|
1447
|
+
* @secure
|
|
1448
|
+
* @response `200` `CanvasFieldCatalog` OK
|
|
1449
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
1450
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1451
|
+
*/
|
|
1452
|
+
getCanvasFields: (params = {}) => this.request(Object.assign({ path: `/api/canvas/fields`, method: "GET", secure: true, format: "json" }, params)),
|
|
1453
|
+
/**
|
|
1454
|
+
* No description
|
|
1455
|
+
*
|
|
1456
|
+
* @tags CanvasWidgetTypes
|
|
1457
|
+
* @name GetCanvasWidgetTypes
|
|
1458
|
+
* @summary Get canvas widget types
|
|
1459
|
+
* @request GET:/api/canvas/widget-types
|
|
1460
|
+
* @secure
|
|
1461
|
+
* @response `200` `(CanvasWidgetTypeDescriptor)[]` OK
|
|
1462
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
1463
|
+
* @response `404` `ProblemDetails` Not Found
|
|
1464
|
+
*/
|
|
1465
|
+
getCanvasWidgetTypes: (params = {}) => this.request(Object.assign({ path: `/api/canvas/widget-types`, method: "GET", secure: true, format: "json" }, params)),
|
|
1426
1466
|
/**
|
|
1427
1467
|
* @description Returns closed loan counts per account within the specified date range, including POS vs non-POS breakdown and utilization ratios.
|
|
1428
1468
|
*
|
|
@@ -3047,6 +3087,21 @@ export class Api extends HttpClient {
|
|
|
3047
3087
|
* @response `423` `UnprocessableEntity` Locked
|
|
3048
3088
|
*/
|
|
3049
3089
|
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)),
|
|
3090
|
+
/**
|
|
3091
|
+
* No description
|
|
3092
|
+
*
|
|
3093
|
+
* @tags LoanCanvasFieldValues
|
|
3094
|
+
* @name GetLoanCanvasFieldValues
|
|
3095
|
+
* @summary Get a loan's values for canvas fields
|
|
3096
|
+
* @request POST:/api/loans/{loanId}/canvas/field-values
|
|
3097
|
+
* @secure
|
|
3098
|
+
* @response `200` `CanvasFieldValues` OK
|
|
3099
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
3100
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
3101
|
+
* @response `404` `ProblemDetails` Not Found
|
|
3102
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
3103
|
+
*/
|
|
3104
|
+
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)),
|
|
3050
3105
|
/**
|
|
3051
3106
|
* No description
|
|
3052
3107
|
*
|
|
@@ -4096,6 +4151,20 @@ export class Api extends HttpClient {
|
|
|
4096
4151
|
* @response `404` `ProblemDetails` Not Found
|
|
4097
4152
|
*/
|
|
4098
4153
|
triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4154
|
+
/**
|
|
4155
|
+
* No description
|
|
4156
|
+
*
|
|
4157
|
+
* @tags LoanSigningMethod
|
|
4158
|
+
* @name UpdateLoanSigningMethod
|
|
4159
|
+
* @summary Switch the loan's signing method
|
|
4160
|
+
* @request PUT:/api/loans/{loanId}/signing-method
|
|
4161
|
+
* @secure
|
|
4162
|
+
* @response `204` `void` No Content
|
|
4163
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4164
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4165
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4166
|
+
*/
|
|
4167
|
+
updateLoanSigningMethod: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/signing-method`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
|
|
4099
4168
|
/**
|
|
4100
4169
|
* No description
|
|
4101
4170
|
*
|
|
@@ -4832,6 +4901,98 @@ export class Api extends HttpClient {
|
|
|
4832
4901
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
4833
4902
|
*/
|
|
4834
4903
|
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)),
|
|
4904
|
+
/**
|
|
4905
|
+
* No description
|
|
4906
|
+
*
|
|
4907
|
+
* @tags SiteConfigurationCanvases
|
|
4908
|
+
* @name GetSiteConfigurationCanvases
|
|
4909
|
+
* @summary Get a site's canvases: own, inherited and effective per surface
|
|
4910
|
+
* @request GET:/api/site-configurations/{siteConfigurationId}/canvases
|
|
4911
|
+
* @secure
|
|
4912
|
+
* @response `200` `SiteConfigurationCanvases` OK
|
|
4913
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4914
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4915
|
+
*/
|
|
4916
|
+
getSiteConfigurationCanvases: (siteConfigurationId, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases`, method: "GET", secure: true, format: "json" }, params)),
|
|
4917
|
+
/**
|
|
4918
|
+
* @description The request is the canvas's whole state: leaving out forkedFromSiteConfigurationID and forkedFromVersion clears them, and isBehindInherited with them.
|
|
4919
|
+
*
|
|
4920
|
+
* @tags SiteConfigurationCanvases
|
|
4921
|
+
* @name SaveSiteConfigurationCanvas
|
|
4922
|
+
* @summary Save a site's canvas for one surface
|
|
4923
|
+
* @request PUT:/api/site-configurations/{siteConfigurationId}/canvases/{surface}
|
|
4924
|
+
* @secure
|
|
4925
|
+
* @response `200` `CanvasSurfaceState` OK
|
|
4926
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4927
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4928
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4929
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4930
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4931
|
+
* @response `423` `ProblemDetails` Locked
|
|
4932
|
+
*/
|
|
4933
|
+
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)),
|
|
4934
|
+
/**
|
|
4935
|
+
* No description
|
|
4936
|
+
*
|
|
4937
|
+
* @tags SiteConfigurationCanvases
|
|
4938
|
+
* @name DeleteSiteConfigurationCanvas
|
|
4939
|
+
* @summary Delete a site's own canvas for a surface, its boards or its Loan Details tabs, so it inherits again
|
|
4940
|
+
* @request DELETE:/api/site-configurations/{siteConfigurationId}/canvases/{surface}
|
|
4941
|
+
* @secure
|
|
4942
|
+
* @response `204` `void` No Content
|
|
4943
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4944
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4945
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4946
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4947
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4948
|
+
*/
|
|
4949
|
+
deleteSiteConfigurationCanvas: (siteConfigurationId, surface, query, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}`, method: "DELETE", query: query, secure: true }, params)),
|
|
4950
|
+
/**
|
|
4951
|
+
* No description
|
|
4952
|
+
*
|
|
4953
|
+
* @tags SiteConfigurationCanvases
|
|
4954
|
+
* @name PreviewSiteConfigurationCanvas
|
|
4955
|
+
* @summary Preview an unsaved canvas for one surface as a role would see it
|
|
4956
|
+
* @request POST:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/preview
|
|
4957
|
+
* @secure
|
|
4958
|
+
* @response `200` `CanvasView` OK
|
|
4959
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4960
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4961
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4962
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4963
|
+
*/
|
|
4964
|
+
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)),
|
|
4965
|
+
/**
|
|
4966
|
+
* No description
|
|
4967
|
+
*
|
|
4968
|
+
* @tags SiteConfigurationCanvases
|
|
4969
|
+
* @name GetSiteConfigurationCanvasVersions
|
|
4970
|
+
* @summary Get the saved versions of a site's layout for a surface, newest first, including those from before a delete
|
|
4971
|
+
* @request GET:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/versions
|
|
4972
|
+
* @secure
|
|
4973
|
+
* @response `200` `(CanvasVersion)[]` OK
|
|
4974
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4975
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4976
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4977
|
+
*/
|
|
4978
|
+
getSiteConfigurationCanvasVersions: (siteConfigurationId, surface, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}/versions`, method: "GET", secure: true, format: "json" }, params)),
|
|
4979
|
+
/**
|
|
4980
|
+
* No description
|
|
4981
|
+
*
|
|
4982
|
+
* @tags SiteConfigurationCanvases
|
|
4983
|
+
* @name RestoreSiteConfigurationCanvasVersion
|
|
4984
|
+
* @summary Restore a saved version of a site's canvas as a new version
|
|
4985
|
+
* @request POST:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/versions/{version}/restore
|
|
4986
|
+
* @secure
|
|
4987
|
+
* @response `200` `CanvasSurfaceState` OK
|
|
4988
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
4989
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
4990
|
+
* @response `404` `ProblemDetails` Not Found
|
|
4991
|
+
* @response `409` `ProblemDetails` Conflict
|
|
4992
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
4993
|
+
* @response `423` `ProblemDetails` Locked
|
|
4994
|
+
*/
|
|
4995
|
+
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)),
|
|
4835
4996
|
/**
|
|
4836
4997
|
* No description
|
|
4837
4998
|
*
|