@matech/thebigpos-sdk 3.2.2 → 3.3.0-dev-1639
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 +206 -35
- package/dist/index.js +60 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +297 -65
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.3.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
|
*/
|
|
@@ -799,12 +799,25 @@ export class Api extends HttpClient {
|
|
|
799
799
|
*
|
|
800
800
|
* @tags AiPrompt
|
|
801
801
|
* @name GetAiAvailablePrompts
|
|
802
|
-
* @summary Get available prompts for current user
|
|
802
|
+
* @summary Get available prompts for current user, optionally for one trigger surface
|
|
803
803
|
* @request GET:/api/ai/prompts/available
|
|
804
804
|
* @secure
|
|
805
805
|
* @response `200` `(AiPromptSummary)[]` OK
|
|
806
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
806
807
|
*/
|
|
807
808
|
getAiAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/available`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
809
|
+
/**
|
|
810
|
+
* No description
|
|
811
|
+
*
|
|
812
|
+
* @tags AiPromptRun
|
|
813
|
+
* @name GetAiPromptRuns
|
|
814
|
+
* @summary Get triggered prompt runs for a subject entity
|
|
815
|
+
* @request GET:/api/ai/prompt-runs
|
|
816
|
+
* @secure
|
|
817
|
+
* @response `200` `(AiPromptRun)[]` OK
|
|
818
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
819
|
+
*/
|
|
820
|
+
getAiPromptRuns: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompt-runs`, method: "GET", query: query, secure: true, format: "json" }, params)),
|
|
808
821
|
/**
|
|
809
822
|
* No description
|
|
810
823
|
*
|
|
@@ -2309,21 +2322,6 @@ export class Api extends HttpClient {
|
|
|
2309
2322
|
* @response `403` `ProblemDetails` Forbidden
|
|
2310
2323
|
*/
|
|
2311
2324
|
getEncompassIntegrationWebhookSubscriptions: (accountId, params = {}) => this.request(Object.assign({ path: `/api/monitoring/encompass-integrations/${accountId}/webhooks/subscriptions`, method: "GET", secure: true, format: "json" }, params)),
|
|
2312
|
-
/**
|
|
2313
|
-
* No description
|
|
2314
|
-
*
|
|
2315
|
-
* @tags EncompassIntegrations
|
|
2316
|
-
* @name SetEncompassIntegrationWebhookSignatureValidation
|
|
2317
|
-
* @summary Turn inbound signature validation on or off for one Encompass webhook subscription (SuperAdmin)
|
|
2318
|
-
* @request PUT:/api/monitoring/encompass-integrations/{accountId}/webhooks/{webhookType}/signature-validation
|
|
2319
|
-
* @secure
|
|
2320
|
-
* @response `200` `EncompassWebhookSubscription` OK
|
|
2321
|
-
* @response `400` `ProblemDetails` Bad Request
|
|
2322
|
-
* @response `401` `ProblemDetails` Unauthorized
|
|
2323
|
-
* @response `403` `ProblemDetails` Forbidden
|
|
2324
|
-
* @response `404` `ProblemDetails` Not Found
|
|
2325
|
-
*/
|
|
2326
|
-
setEncompassIntegrationWebhookSignatureValidation: (accountId, webhookType, data, params = {}) => this.request(Object.assign({ path: `/api/monitoring/encompass-integrations/${accountId}/webhooks/${webhookType}/signature-validation`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2327
2325
|
/**
|
|
2328
2326
|
* No description
|
|
2329
2327
|
*
|
|
@@ -2923,6 +2921,7 @@ export class Api extends HttpClient {
|
|
|
2923
2921
|
* @request POST:/api/listings
|
|
2924
2922
|
* @secure
|
|
2925
2923
|
* @response `201` `Listing` Created
|
|
2924
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
2926
2925
|
*/
|
|
2927
2926
|
createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2928
2927
|
/**
|
|
@@ -2956,6 +2955,7 @@ export class Api extends HttpClient {
|
|
|
2956
2955
|
* @request PUT:/api/listings/{id}
|
|
2957
2956
|
* @secure
|
|
2958
2957
|
* @response `200` `Listing` OK
|
|
2958
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
2959
2959
|
*/
|
|
2960
2960
|
replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
2961
2961
|
/**
|
|
@@ -3825,6 +3825,7 @@ export class Api extends HttpClient {
|
|
|
3825
3825
|
* @response `403` `ProblemDetails` Forbidden
|
|
3826
3826
|
* @response `404` `ProblemDetails` Not Found
|
|
3827
3827
|
* @response `409` `any` Conflict
|
|
3828
|
+
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
3828
3829
|
*/
|
|
3829
3830
|
updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
3830
3831
|
/**
|
|
@@ -3902,12 +3903,13 @@ export class Api extends HttpClient {
|
|
|
3902
3903
|
*/
|
|
3903
3904
|
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)),
|
|
3904
3905
|
/**
|
|
3905
|
-
*
|
|
3906
|
+
* @description Deprecated - use POST api/loans/tasks/bulk, which reaches every status and accepts tasks from more than one loan.
|
|
3906
3907
|
*
|
|
3907
3908
|
* @tags LoanTaskBulkCompletions
|
|
3908
3909
|
* @name BulkCompleteLoanTasks
|
|
3909
|
-
* @summary Bulk complete loan tasks
|
|
3910
|
+
* @summary [Deprecated] Bulk complete loan tasks
|
|
3910
3911
|
* @request POST:/api/loans/{loanID}/tasks/bulk-complete
|
|
3912
|
+
* @deprecated
|
|
3911
3913
|
* @secure
|
|
3912
3914
|
* @response `200` `BulkCompleteLoanTasks` OK
|
|
3913
3915
|
* @response `404` `ProblemDetails` Not Found
|
|
@@ -4037,6 +4039,18 @@ export class Api extends HttpClient {
|
|
|
4037
4039
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
4038
4040
|
*/
|
|
4039
4041
|
searchLoanTasksSummary: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search/summary`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4042
|
+
/**
|
|
4043
|
+
* @description Applies one operation to tasks that may span several loans, grouping them by loan server-side and returning flat per-task buckets
|
|
4044
|
+
*
|
|
4045
|
+
* @tags LoanTasks
|
|
4046
|
+
* @name BulkLoanTaskOperation
|
|
4047
|
+
* @summary Bulk task operation
|
|
4048
|
+
* @request POST:/api/loans/tasks/bulk
|
|
4049
|
+
* @secure
|
|
4050
|
+
* @response `200` `BulkLoanTaskOperation` OK
|
|
4051
|
+
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
4052
|
+
*/
|
|
4053
|
+
bulkLoanTaskOperation: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/bulk`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
4040
4054
|
/**
|
|
4041
4055
|
* No description
|
|
4042
4056
|
*
|
|
@@ -4982,7 +4996,7 @@ export class Api extends HttpClient {
|
|
|
4982
4996
|
*
|
|
4983
4997
|
* @tags TheBigPOS
|
|
4984
4998
|
* @name GetEncompassCredentials
|
|
4985
|
-
* @summary Get Encompass Credentials for the
|
|
4999
|
+
* @summary Get Encompass Credentials for the active site's account
|
|
4986
5000
|
* @request GET:/api/los/encompass/credentials
|
|
4987
5001
|
* @secure
|
|
4988
5002
|
* @response `200` `EncompassCredentialsDetail` OK
|
|
@@ -4994,7 +5008,7 @@ export class Api extends HttpClient {
|
|
|
4994
5008
|
*
|
|
4995
5009
|
* @tags TheBigPOS
|
|
4996
5010
|
* @name CreateEncompassCredentials
|
|
4997
|
-
* @summary Create Encompass Credentials for the
|
|
5011
|
+
* @summary Create Encompass Credentials for the active site's account
|
|
4998
5012
|
* @request POST:/api/los/encompass/credentials
|
|
4999
5013
|
* @secure
|
|
5000
5014
|
* @response `201` `LosCredentials` Created
|
|
@@ -5005,7 +5019,7 @@ export class Api extends HttpClient {
|
|
|
5005
5019
|
*
|
|
5006
5020
|
* @tags TheBigPOS
|
|
5007
5021
|
* @name UpdateEncompassCredentials
|
|
5008
|
-
* @summary Update Encompass Credentials for the
|
|
5022
|
+
* @summary Update Encompass Credentials for the active site's account
|
|
5009
5023
|
* @request PUT:/api/los/encompass/credentials
|
|
5010
5024
|
* @secure
|
|
5011
5025
|
* @response `200` `EncompassCredentialsDetail` OK
|
|
@@ -5714,6 +5728,30 @@ export class Api extends HttpClient {
|
|
|
5714
5728
|
* @response `401` `ProblemDetails` Unauthorized
|
|
5715
5729
|
*/
|
|
5716
5730
|
getMyFeatureFlags: (params = {}) => this.request(Object.assign({ path: `/api/users/me/feature-flags`, method: "GET", secure: true, format: "json" }, params)),
|
|
5731
|
+
/**
|
|
5732
|
+
* No description
|
|
5733
|
+
*
|
|
5734
|
+
* @tags UsersMe
|
|
5735
|
+
* @name GetMyTableSettings
|
|
5736
|
+
* @summary Get Table Settings
|
|
5737
|
+
* @request GET:/api/users/me/table-settings/{tableKey}
|
|
5738
|
+
* @secure
|
|
5739
|
+
* @response `200` `UserTableSettings` OK
|
|
5740
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
5741
|
+
*/
|
|
5742
|
+
getMyTableSettings: (tableKey, params = {}) => this.request(Object.assign({ path: `/api/users/me/table-settings/${tableKey}`, method: "GET", secure: true, format: "json" }, params)),
|
|
5743
|
+
/**
|
|
5744
|
+
* No description
|
|
5745
|
+
*
|
|
5746
|
+
* @tags UsersMe
|
|
5747
|
+
* @name UpdateMyTableSettings
|
|
5748
|
+
* @summary Update Table Settings
|
|
5749
|
+
* @request PUT:/api/users/me/table-settings/{tableKey}
|
|
5750
|
+
* @secure
|
|
5751
|
+
* @response `200` `UserTableSettings` OK
|
|
5752
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
5753
|
+
*/
|
|
5754
|
+
updateMyTableSettings: (tableKey, data, params = {}) => this.request(Object.assign({ path: `/api/users/me/table-settings/${tableKey}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
|
|
5717
5755
|
/**
|
|
5718
5756
|
* @description Update the phone number If changed will send a verification code to the new number
|
|
5719
5757
|
*
|