@matech/thebigpos-sdk 2.36.0 → 2.36.5-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/.husky/pre-commit +2 -2
- package/LICENSE +21 -21
- package/README.md +73 -73
- package/dist/index.d.ts +68 -4
- package/dist/index.js +18 -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 +116 -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" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
|
|
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
|
}
|
|
@@ -1699,6 +1737,8 @@ export interface Loan {
|
|
|
1699
1737
|
lastLosDocumentsSyncDate?: string | null;
|
|
1700
1738
|
isLocked: boolean;
|
|
1701
1739
|
isLockedFromEditing: boolean;
|
|
1740
|
+
/** @format date-time */
|
|
1741
|
+
sensitiveDataPurgedOn?: string | null;
|
|
1702
1742
|
excludeFromAutoTaskReminders?: boolean | null;
|
|
1703
1743
|
loanSettings?: LoanSettings | null;
|
|
1704
1744
|
loanOfficer?: LoanOfficer | null;
|
|
@@ -2645,6 +2685,8 @@ export interface LoanDocument {
|
|
|
2645
2685
|
losStatus: string;
|
|
2646
2686
|
contents?: string | null;
|
|
2647
2687
|
failoverDocumentPath?: string | null;
|
|
2688
|
+
/** @format date-time */
|
|
2689
|
+
sensitiveDataPurgedOn?: string | null;
|
|
2648
2690
|
}
|
|
2649
2691
|
export interface LoanDocumentSearch {
|
|
2650
2692
|
/** @format date-time */
|
|
@@ -2663,6 +2705,8 @@ export interface LoanDocumentSearch {
|
|
|
2663
2705
|
losStatus: string;
|
|
2664
2706
|
contents?: string | null;
|
|
2665
2707
|
failoverDocumentPath?: string | null;
|
|
2708
|
+
/** @format date-time */
|
|
2709
|
+
sensitiveDataPurgedOn?: string | null;
|
|
2666
2710
|
}
|
|
2667
2711
|
export interface LoanDocumentSearchCriteria {
|
|
2668
2712
|
searchText?: string | null;
|
|
@@ -3337,7 +3381,7 @@ export interface NotificationTemplateVersionUpdateRequest {
|
|
|
3337
3381
|
}
|
|
3338
3382
|
export interface Operation {
|
|
3339
3383
|
op?: string;
|
|
3340
|
-
value?:
|
|
3384
|
+
value?: string | number | boolean | null | object;
|
|
3341
3385
|
path?: string;
|
|
3342
3386
|
}
|
|
3343
3387
|
export interface OverridePasswordRequest {
|
|
@@ -5128,6 +5172,8 @@ export type CreateLoanImportRequestImportModeEnum = "All" | "NewOnly" | "UpdateO
|
|
|
5128
5172
|
export type CreateUserDraftLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
|
|
5129
5173
|
export type DraftTypeEnum = "NewLoan" | "EditLoan";
|
|
5130
5174
|
export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
|
|
5175
|
+
export type EncompassRequestLogOperationTypeEnum = "FieldUpdate" | "EConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
|
|
5176
|
+
export type EncompassRequestLogOutcomeEnum = "Success" | "Failure" | "PartialSuccess";
|
|
5131
5177
|
export type FusionReportFilterFilterTypeEnum = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
|
|
5132
5178
|
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
5179
|
export type LoanContactRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
|
|
@@ -5135,7 +5181,7 @@ export type LoanImportStatusEnum = "WaitingProcess" | "InProgress" | "Completed"
|
|
|
5135
5181
|
export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
|
|
5136
5182
|
export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
|
|
5137
5183
|
export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
|
|
5138
|
-
export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent";
|
|
5184
|
+
export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent" | "SensitiveDataPurge";
|
|
5139
5185
|
export type LoanUserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
|
|
5140
5186
|
export type SamlMetadataRequestSsoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
|
|
5141
5187
|
export type SiteConfigurationTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
|
|
@@ -5177,6 +5223,7 @@ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequest
|
|
|
5177
5223
|
format?: ResponseType;
|
|
5178
5224
|
}
|
|
5179
5225
|
export declare enum ContentType {
|
|
5226
|
+
JsonPatch = "application/json-patch+json",
|
|
5180
5227
|
Json = "application/json",
|
|
5181
5228
|
JsonApi = "application/vnd.api+json",
|
|
5182
5229
|
FormData = "multipart/form-data",
|
|
@@ -5198,7 +5245,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
5198
5245
|
}
|
|
5199
5246
|
/**
|
|
5200
5247
|
* @title The Big POS API
|
|
5201
|
-
* @version v2.36.
|
|
5248
|
+
* @version v2.36.4
|
|
5202
5249
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
5203
5250
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
5204
5251
|
*/
|
|
@@ -8361,6 +8408,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8361
8408
|
* @response `200` `void` Success
|
|
8362
8409
|
*/
|
|
8363
8410
|
integrationsLosLoansCreate: (data: LosLoanCreationRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
8411
|
+
/**
|
|
8412
|
+
* No description
|
|
8413
|
+
*
|
|
8414
|
+
* @tags TheBigPOS
|
|
8415
|
+
* @name SearchEncompassLogs
|
|
8416
|
+
* @request POST:/api/los/encompass/logs/{losId}/search
|
|
8417
|
+
* @secure
|
|
8418
|
+
* @response `200` `EncompassRequestLogPaginated` Success
|
|
8419
|
+
*/
|
|
8420
|
+
searchEncompassLogs: (losId: string, query: {
|
|
8421
|
+
/** @format int32 */
|
|
8422
|
+
pageSize: number;
|
|
8423
|
+
/** @format int32 */
|
|
8424
|
+
pageNumber: number;
|
|
8425
|
+
sortBy?: string;
|
|
8426
|
+
sortDirection?: string;
|
|
8427
|
+
}, data: EncompassLogSearchCriteria, params?: RequestParams) => Promise<AxiosResponse<EncompassRequestLogPaginated, any, {}>>;
|
|
8364
8428
|
/**
|
|
8365
8429
|
* No description
|
|
8366
8430
|
*
|
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.JsonPatch, 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.JsonPatch, 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.JsonPatch, 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.JsonPatch, 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.JsonPatch, format: "json" }, params)),
|
|
1417
1418
|
/**
|
|
1418
1419
|
* No description
|
|
1419
1420
|
*
|
|
@@ -2142,7 +2143,7 @@ export class Api extends HttpClient {
|
|
|
2142
2143
|
* @response `200` `TaskCommentPaginated` Success
|
|
2143
2144
|
* @response `404` `ProblemDetails` Not Found
|
|
2144
2145
|
*/
|
|
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.
|
|
2146
|
+
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.JsonPatch, format: "json" }, params)),
|
|
2146
2147
|
/**
|
|
2147
2148
|
* No description
|
|
2148
2149
|
*
|
|
@@ -2971,6 +2972,16 @@ export class Api extends HttpClient {
|
|
|
2971
2972
|
* @response `200` `void` Success
|
|
2972
2973
|
*/
|
|
2973
2974
|
integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
|
|
2975
|
+
/**
|
|
2976
|
+
* No description
|
|
2977
|
+
*
|
|
2978
|
+
* @tags TheBigPOS
|
|
2979
|
+
* @name SearchEncompassLogs
|
|
2980
|
+
* @request POST:/api/los/encompass/logs/{losId}/search
|
|
2981
|
+
* @secure
|
|
2982
|
+
* @response `200` `EncompassRequestLogPaginated` Success
|
|
2983
|
+
*/
|
|
2984
|
+
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
2985
|
/**
|
|
2975
2986
|
* No description
|
|
2976
2987
|
*
|