@matech/thebigpos-sdk 2.36.0 → 2.36.4
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/.husky/pre-commit +2 -2
- package/LICENSE +21 -21
- package/README.md +73 -73
- package/dist/index.d.ts +74 -4
- package/dist/index.js +30 -7
- package/dist/index.js.map +1 -1
- package/docs/sdk_generation.md +149 -149
- package/package.json +39 -39
- package/scripts/apply-json-patch-content-type.js +56 -56
- package/src/index.ts +129 -10
- package/tsconfig.json +27 -27
package/.husky/pre-commit
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
[ -f ./src/index.ts ] && node scripts/apply-json-patch-content-type.js
|
|
2
|
-
yarn build
|
|
1
|
+
[ -f ./src/index.ts ] && node scripts/apply-json-patch-content-type.js
|
|
2
|
+
yarn build
|
|
3
3
|
git add .
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Mortgage Automation Technologies
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Mortgage Automation Technologies
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
# The BIG POS Typescript SDK
|
|
2
|
-
|
|
3
|
-
## Installation
|
|
4
|
-
Using npm:
|
|
5
|
-
|
|
6
|
-
```bash
|
|
7
|
-
$ npm install @matech/thebigpos-sdk
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
Using yarn:
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
$ yarn add @matech/thebigpos-sdk
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Quick Start
|
|
17
|
-
```js
|
|
18
|
-
import { Api } from "@matech/thebigpos-sdk";
|
|
19
|
-
|
|
20
|
-
const securityWorker = (data: any) => {
|
|
21
|
-
return { headers: data }
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const setBearerSecurityWorker = (accessToken:string) => {
|
|
25
|
-
const data = {
|
|
26
|
-
Authorization: `Bearer ${accessToken}`
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
apiClient.setSecurityData(data);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const apiClient = new Api({
|
|
33
|
-
baseURL:
|
|
34
|
-
process.env.REACT_APP_POS_API_HOST || 'https://api.thebigpos.com',
|
|
35
|
-
securityWorker,
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
apiClient.api.getSiteConfiguration().then((response) => {
|
|
39
|
-
console.log(response.data);
|
|
40
|
-
});
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Generate SDK from Swagger
|
|
44
|
-
|
|
45
|
-
To regenerate the SDK from a specific API version, run:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/{version}/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Replace `{version}` with the target API version (e.g. `v2.34.0`):
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/v2.34.0/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Publishing
|
|
58
|
-
|
|
59
|
-
1. Update the `version` field in `package.json` before publishing.
|
|
60
|
-
2. Build the project:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
yarn build
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
3. Publish to npm:
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
yarn publish
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
____
|
|
73
|
-
© 2024 Mortgage Automation Technologies. All rights reserved
|
|
1
|
+
# The BIG POS Typescript SDK
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
Using npm:
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
$ npm install @matech/thebigpos-sdk
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Using yarn:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
$ yarn add @matech/thebigpos-sdk
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
```js
|
|
18
|
+
import { Api } from "@matech/thebigpos-sdk";
|
|
19
|
+
|
|
20
|
+
const securityWorker = (data: any) => {
|
|
21
|
+
return { headers: data }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const setBearerSecurityWorker = (accessToken:string) => {
|
|
25
|
+
const data = {
|
|
26
|
+
Authorization: `Bearer ${accessToken}`
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
apiClient.setSecurityData(data);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const apiClient = new Api({
|
|
33
|
+
baseURL:
|
|
34
|
+
process.env.REACT_APP_POS_API_HOST || 'https://api.thebigpos.com',
|
|
35
|
+
securityWorker,
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
apiClient.api.getSiteConfiguration().then((response) => {
|
|
39
|
+
console.log(response.data);
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Generate SDK from Swagger
|
|
44
|
+
|
|
45
|
+
To regenerate the SDK from a specific API version, run:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/{version}/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Replace `{version}` with the target API version (e.g. `v2.34.0`):
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/v2.34.0/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Publishing
|
|
58
|
+
|
|
59
|
+
1. Update the `version` field in `package.json` before publishing.
|
|
60
|
+
2. Build the project:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
yarn build
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
3. Publish to npm:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
yarn publish
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
____
|
|
73
|
+
© 2024 Mortgage Automation Technologies. All rights reserved
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type LoanNameSuffix = "Jr" | "Sr" | "II" | "III" | "IV" | "V" | "VI" | "V
|
|
|
22
22
|
export type LoanNamePrefix = "Mr" | "Mrs" | "Ms";
|
|
23
23
|
export type LoanMilitaryServiceType = "Current" | "RetiredDischargedSeparated" | "NonActivatedNationalGuard" | "SurvivingSpouse";
|
|
24
24
|
export type LoanMaritalStatus = "Married" | "Separated" | "Unmarried";
|
|
25
|
-
export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent";
|
|
25
|
+
export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent" | "SensitiveDataPurge";
|
|
26
26
|
export type LoanLienPosition = "First" | "Subordinate";
|
|
27
27
|
export type LoanLiabilityType = "Revolving" | "Installment" | "Open30Day" | "Lease" | "Other";
|
|
28
28
|
export type LoanLanguagePreference = "English" | "Chinese" | "Korean" | "Spanish" | "Tagalog" | "Vietnamese" | "Other";
|
|
@@ -44,6 +44,8 @@ export type LOSStatus = "Unknown" | "Pending" | "Retrying" | "Successful" | "Fai
|
|
|
44
44
|
export type FilterType = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
|
|
45
45
|
export type Environment = "Development" | "Staging" | "UAT" | "Production";
|
|
46
46
|
export type EntityType = "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Realtor";
|
|
47
|
+
export type EncompassLogOutcome = "Success" | "Failure" | "PartialSuccess";
|
|
48
|
+
export type EncompassLogOperationType = "FieldUpdate" | "EConsentUpdate" | "DocumentSync" | "ApiError" | "LoanCreation" | "SlotCreation" | "MilestoneUpdate";
|
|
47
49
|
export type DraftType = "NewLoan" | "EditLoan";
|
|
48
50
|
export type ConsentType = "Econsent" | "CreditAuthorization" | "Tcpa";
|
|
49
51
|
export type BranchType = "Mortgage" | "RealEstate";
|
|
@@ -1133,6 +1135,17 @@ export interface EncompassError {
|
|
|
1133
1135
|
message: string;
|
|
1134
1136
|
details?: string[] | null;
|
|
1135
1137
|
}
|
|
1138
|
+
export interface EncompassLogSearchCriteria {
|
|
1139
|
+
searchText?: string | null;
|
|
1140
|
+
operationTypes?: EncompassLogOperationType[] | null;
|
|
1141
|
+
outcomes?: EncompassLogOutcome[] | null;
|
|
1142
|
+
/** @format date-time */
|
|
1143
|
+
createdFrom?: string | null;
|
|
1144
|
+
/** @format date-time */
|
|
1145
|
+
createdTo?: string | null;
|
|
1146
|
+
/** @format int32 */
|
|
1147
|
+
httpStatusCode?: number | null;
|
|
1148
|
+
}
|
|
1136
1149
|
export interface EncompassPackageItem {
|
|
1137
1150
|
packageId: string;
|
|
1138
1151
|
status: string;
|
|
@@ -1151,6 +1164,31 @@ export interface EncompassPackageList {
|
|
|
1151
1164
|
/** @format int32 */
|
|
1152
1165
|
totalPages: number;
|
|
1153
1166
|
}
|
|
1167
|
+
export interface EncompassRequestLog {
|
|
1168
|
+
/** @format uuid */
|
|
1169
|
+
id: string;
|
|
1170
|
+
losId?: string | null;
|
|
1171
|
+
/** @format uuid */
|
|
1172
|
+
accountId: string;
|
|
1173
|
+
operationType: EncompassRequestLogOperationTypeEnum;
|
|
1174
|
+
outcome: EncompassRequestLogOutcomeEnum;
|
|
1175
|
+
message: string;
|
|
1176
|
+
endpoint?: string | null;
|
|
1177
|
+
httpMethod?: string | null;
|
|
1178
|
+
/** @format int32 */
|
|
1179
|
+
httpStatusCode?: number | null;
|
|
1180
|
+
/** @format int64 */
|
|
1181
|
+
durationMs?: number | null;
|
|
1182
|
+
context?: any;
|
|
1183
|
+
/** @format date-time */
|
|
1184
|
+
createdAt: string;
|
|
1185
|
+
}
|
|
1186
|
+
export interface EncompassRequestLogPaginated {
|
|
1187
|
+
rows: EncompassRequestLog[];
|
|
1188
|
+
pagination: Pagination;
|
|
1189
|
+
/** @format int64 */
|
|
1190
|
+
count: number;
|
|
1191
|
+
}
|
|
1154
1192
|
export interface Error {
|
|
1155
1193
|
message: string;
|
|
1156
1194
|
}
|
|
@@ -3337,7 +3375,7 @@ export interface NotificationTemplateVersionUpdateRequest {
|
|
|
3337
3375
|
}
|
|
3338
3376
|
export interface Operation {
|
|
3339
3377
|
op?: string;
|
|
3340
|
-
value?:
|
|
3378
|
+
value?: string | number | boolean | null | object;
|
|
3341
3379
|
path?: string;
|
|
3342
3380
|
}
|
|
3343
3381
|
export interface OverridePasswordRequest {
|
|
@@ -5128,6 +5166,8 @@ export type CreateLoanImportRequestImportModeEnum = "All" | "NewOnly" | "UpdateO
|
|
|
5128
5166
|
export type CreateUserDraftLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
|
|
5129
5167
|
export type DraftTypeEnum = "NewLoan" | "EditLoan";
|
|
5130
5168
|
export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
|
|
5169
|
+
export type EncompassRequestLogOperationTypeEnum = "FieldUpdate" | "EConsentUpdate" | "DocumentSync" | "ApiError" | "LoanCreation" | "SlotCreation" | "MilestoneUpdate";
|
|
5170
|
+
export type EncompassRequestLogOutcomeEnum = "Success" | "Failure" | "PartialSuccess";
|
|
5131
5171
|
export type FusionReportFilterFilterTypeEnum = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
|
|
5132
5172
|
export type IpAddressAddressFamilyEnum = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
|
|
5133
5173
|
export type LoanContactRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
|
|
@@ -5135,7 +5175,7 @@ export type LoanImportStatusEnum = "WaitingProcess" | "InProgress" | "Completed"
|
|
|
5135
5175
|
export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
|
|
5136
5176
|
export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
|
|
5137
5177
|
export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
|
|
5138
|
-
export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent";
|
|
5178
|
+
export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent" | "SensitiveDataPurge";
|
|
5139
5179
|
export type LoanUserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
|
|
5140
5180
|
export type SamlMetadataRequestSsoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
|
|
5141
5181
|
export type SiteConfigurationTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
|
|
@@ -5177,6 +5217,7 @@ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequest
|
|
|
5177
5217
|
format?: ResponseType;
|
|
5178
5218
|
}
|
|
5179
5219
|
export declare enum ContentType {
|
|
5220
|
+
JsonPatch = "application/json-patch+json",
|
|
5180
5221
|
Json = "application/json",
|
|
5181
5222
|
JsonApi = "application/vnd.api+json",
|
|
5182
5223
|
FormData = "multipart/form-data",
|
|
@@ -5198,7 +5239,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
5198
5239
|
}
|
|
5199
5240
|
/**
|
|
5200
5241
|
* @title The Big POS API
|
|
5201
|
-
* @version v2.36.
|
|
5242
|
+
* @version v2.36.4
|
|
5202
5243
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
5203
5244
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
5204
5245
|
*/
|
|
@@ -7462,6 +7503,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7462
7503
|
* @response `200` `Loan` Success
|
|
7463
7504
|
*/
|
|
7464
7505
|
importLoanFromLos: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<Loan, any, {}>>;
|
|
7506
|
+
/**
|
|
7507
|
+
* No description
|
|
7508
|
+
*
|
|
7509
|
+
* @tags LoanSensitiveDataPurge
|
|
7510
|
+
* @name PurgeSensitiveLoanData
|
|
7511
|
+
* @summary Manually trigger sensitive data purge for a specific loan
|
|
7512
|
+
* @request POST:/api/loans/sensitive-data-purge/{loanId}
|
|
7513
|
+
* @secure
|
|
7514
|
+
* @response `204` `void` No Content
|
|
7515
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7516
|
+
*/
|
|
7517
|
+
purgeSensitiveLoanData: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
7465
7518
|
/**
|
|
7466
7519
|
* No description
|
|
7467
7520
|
*
|
|
@@ -8361,6 +8414,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8361
8414
|
* @response `200` `void` Success
|
|
8362
8415
|
*/
|
|
8363
8416
|
integrationsLosLoansCreate: (data: LosLoanCreationRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
8417
|
+
/**
|
|
8418
|
+
* No description
|
|
8419
|
+
*
|
|
8420
|
+
* @tags TheBigPOS
|
|
8421
|
+
* @name SearchEncompassLogs
|
|
8422
|
+
* @request POST:/api/los/encompass/logs/{losId}/search
|
|
8423
|
+
* @secure
|
|
8424
|
+
* @response `200` `EncompassRequestLogPaginated` Success
|
|
8425
|
+
*/
|
|
8426
|
+
searchEncompassLogs: (losId: string, query: {
|
|
8427
|
+
/** @format int32 */
|
|
8428
|
+
pageSize: number;
|
|
8429
|
+
/** @format int32 */
|
|
8430
|
+
pageNumber: number;
|
|
8431
|
+
sortBy?: string;
|
|
8432
|
+
sortDirection?: string;
|
|
8433
|
+
}, data: EncompassLogSearchCriteria, params?: RequestParams) => Promise<AxiosResponse<EncompassRequestLogPaginated, any, {}>>;
|
|
8364
8434
|
/**
|
|
8365
8435
|
* No description
|
|
8366
8436
|
*
|
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.36.
|
|
107
|
+
* @version v2.36.4
|
|
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
|
*/
|
|
@@ -1203,7 +1204,7 @@ export class Api extends HttpClient {
|
|
|
1203
1204
|
* @response `200` `string` Success
|
|
1204
1205
|
* @response `422` `UnprocessableEntity` Client Error
|
|
1205
1206
|
*/
|
|
1206
|
-
updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1207
|
+
updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatchPatch, format: "json" }, params)),
|
|
1207
1208
|
/**
|
|
1208
1209
|
* No description
|
|
1209
1210
|
*
|
|
@@ -1253,7 +1254,7 @@ export class Api extends HttpClient {
|
|
|
1253
1254
|
* @response `200` `string` Success
|
|
1254
1255
|
* @response `422` `UnprocessableEntity` Client Error
|
|
1255
1256
|
*/
|
|
1256
|
-
updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1257
|
+
updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatchPatch, format: "json" }, params)),
|
|
1257
1258
|
/**
|
|
1258
1259
|
* No description
|
|
1259
1260
|
*
|
|
@@ -1266,7 +1267,7 @@ export class Api extends HttpClient {
|
|
|
1266
1267
|
* @response `202` `string` Accepted
|
|
1267
1268
|
* @response `422` `UnprocessableEntity` Client Error
|
|
1268
1269
|
*/
|
|
1269
|
-
updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1270
|
+
updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatchPatch, format: "json" }, params)),
|
|
1270
1271
|
/**
|
|
1271
1272
|
* No description
|
|
1272
1273
|
*
|
|
@@ -1380,7 +1381,7 @@ export class Api extends HttpClient {
|
|
|
1380
1381
|
* @secure
|
|
1381
1382
|
* @response `200` `ListingFile` Success
|
|
1382
1383
|
*/
|
|
1383
|
-
updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1384
|
+
updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatchPatch, format: "json" }, params)),
|
|
1384
1385
|
/**
|
|
1385
1386
|
* No description
|
|
1386
1387
|
*
|
|
@@ -1413,7 +1414,7 @@ export class Api extends HttpClient {
|
|
|
1413
1414
|
* @secure
|
|
1414
1415
|
* @response `200` `(ListingPhoto)[]` Success
|
|
1415
1416
|
*/
|
|
1416
|
-
updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.
|
|
1417
|
+
updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatchPatch, format: "json" }, params)),
|
|
1417
1418
|
/**
|
|
1418
1419
|
* No description
|
|
1419
1420
|
*
|
|
@@ -2131,6 +2132,18 @@ export class Api extends HttpClient {
|
|
|
2131
2132
|
* @response `200` `Loan` Success
|
|
2132
2133
|
*/
|
|
2133
2134
|
importLoanFromLos: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/import-from-los/${loanId}`, method: "POST", secure: true, format: "json" }, params)),
|
|
2135
|
+
/**
|
|
2136
|
+
* No description
|
|
2137
|
+
*
|
|
2138
|
+
* @tags LoanSensitiveDataPurge
|
|
2139
|
+
* @name PurgeSensitiveLoanData
|
|
2140
|
+
* @summary Manually trigger sensitive data purge for a specific loan
|
|
2141
|
+
* @request POST:/api/loans/sensitive-data-purge/{loanId}
|
|
2142
|
+
* @secure
|
|
2143
|
+
* @response `204` `void` No Content
|
|
2144
|
+
* @response `404` `ProblemDetails` Not Found
|
|
2145
|
+
*/
|
|
2146
|
+
purgeSensitiveLoanData: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/sensitive-data-purge/${loanId}`, method: "POST", secure: true }, params)),
|
|
2134
2147
|
/**
|
|
2135
2148
|
* No description
|
|
2136
2149
|
*
|
|
@@ -2142,7 +2155,7 @@ export class Api extends HttpClient {
|
|
|
2142
2155
|
* @response `200` `TaskCommentPaginated` Success
|
|
2143
2156
|
* @response `404` `ProblemDetails` Not Found
|
|
2144
2157
|
*/
|
|
2145
|
-
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.
|
|
2158
|
+
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.JsonPatchPatch, format: "json" }, params)),
|
|
2146
2159
|
/**
|
|
2147
2160
|
* No description
|
|
2148
2161
|
*
|
|
@@ -2971,6 +2984,16 @@ export class Api extends HttpClient {
|
|
|
2971
2984
|
* @response `200` `void` Success
|
|
2972
2985
|
*/
|
|
2973
2986
|
integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
2987
|
+
/**
|
|
2988
|
+
* No description
|
|
2989
|
+
*
|
|
2990
|
+
* @tags TheBigPOS
|
|
2991
|
+
* @name SearchEncompassLogs
|
|
2992
|
+
* @request POST:/api/los/encompass/logs/{losId}/search
|
|
2993
|
+
* @secure
|
|
2994
|
+
* @response `200` `EncompassRequestLogPaginated` Success
|
|
2995
|
+
*/
|
|
2996
|
+
searchEncompassLogs: (losId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/logs/${losId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
|
|
2974
2997
|
/**
|
|
2975
2998
|
* No description
|
|
2976
2999
|
*
|