@matech/thebigpos-sdk 2.18.3-rc.0 → 2.18.4-rc.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/.husky/pre-commit +1 -1
- package/LICENSE +21 -21
- package/README.md +44 -44
- package/apply-json-patch-content-type.js +45 -0
- package/dist/index.d.ts +64 -210
- package/dist/index.js +20 -179
- package/dist/index.js.map +1 -1
- package/package.json +40 -40
- package/src/index.ts +174 -270
- package/tsconfig.json +27 -27
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@matech/thebigpos-sdk",
|
|
3
|
-
"version": "2.18.
|
|
4
|
-
"description": "The Big POS Typescript SDK",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "rimraf dist && tsc",
|
|
9
|
-
"test": "mocha -r ts-node/register 'src/api_test.spec.ts' --exit",
|
|
10
|
-
"browserify": "tsc && browserify -p tinyify dist/index.js -s thebigpos > dist/thebigpos.min.js",
|
|
11
|
-
"prepare": "husky"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/MortgageAutomationTechnologies/thebigpos-sdk-typescript.git"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"pos",
|
|
19
|
-
"loans",
|
|
20
|
-
"mortgage",
|
|
21
|
-
"automation"
|
|
22
|
-
],
|
|
23
|
-
"author": "Mortgage Automation Technologies",
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"bugs": {
|
|
26
|
-
"url": "https://github.com/MortgageAutomationTechnologies/thebigpos-sdk-typescript/issues"
|
|
27
|
-
},
|
|
28
|
-
"homepage": "https://github.com/MortgageAutomationTechnologies/thebigpos-sdk-typescript#readme",
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"axios": "^1.7.7",
|
|
31
|
-
"browserify": "^17.0.0",
|
|
32
|
-
"tinyify": "^4.0.0"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"husky": "^9.1.5",
|
|
36
|
-
"rimraf": "^6.0.1",
|
|
37
|
-
"ts-node": "^10.9.2",
|
|
38
|
-
"typescript": "^5.5.4"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@matech/thebigpos-sdk",
|
|
3
|
+
"version": "2.18.4-rc.0",
|
|
4
|
+
"description": "The Big POS Typescript SDK",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "rimraf dist && tsc",
|
|
9
|
+
"test": "mocha -r ts-node/register 'src/api_test.spec.ts' --exit",
|
|
10
|
+
"browserify": "tsc && browserify -p tinyify dist/index.js -s thebigpos > dist/thebigpos.min.js",
|
|
11
|
+
"prepare": "husky"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/MortgageAutomationTechnologies/thebigpos-sdk-typescript.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"pos",
|
|
19
|
+
"loans",
|
|
20
|
+
"mortgage",
|
|
21
|
+
"automation"
|
|
22
|
+
],
|
|
23
|
+
"author": "Mortgage Automation Technologies",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/MortgageAutomationTechnologies/thebigpos-sdk-typescript/issues"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/MortgageAutomationTechnologies/thebigpos-sdk-typescript#readme",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"axios": "^1.7.7",
|
|
31
|
+
"browserify": "^17.0.0",
|
|
32
|
+
"tinyify": "^4.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"husky": "^9.1.5",
|
|
36
|
+
"rimraf": "^6.0.1",
|
|
37
|
+
"ts-node": "^10.9.2",
|
|
38
|
+
"typescript": "^5.5.4"
|
|
39
|
+
}
|
|
40
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -10,143 +10,103 @@
|
|
|
10
10
|
* ---------------------------------------------------------------
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
DateNonEmpty = "DateNonEmpty",
|
|
111
|
-
DateEmpty = "DateEmpty",
|
|
112
|
-
StringContains = "StringContains",
|
|
113
|
-
StringEquals = "StringEquals",
|
|
114
|
-
StringNotEmpty = "StringNotEmpty",
|
|
115
|
-
StringNotEquals = "StringNotEquals",
|
|
116
|
-
StringNotContains = "StringNotContains",
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export enum Environment {
|
|
120
|
-
Development = "Development",
|
|
121
|
-
Staging = "Staging",
|
|
122
|
-
UAT = "UAT",
|
|
123
|
-
Production = "Production",
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export enum EntityType {
|
|
127
|
-
Account = "Account",
|
|
128
|
-
Corporate = "Corporate",
|
|
129
|
-
Branch = "Branch",
|
|
130
|
-
LoanOfficer = "LoanOfficer",
|
|
131
|
-
Realtor = "Realtor",
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export enum BranchType {
|
|
135
|
-
Mortgage = "Mortgage",
|
|
136
|
-
RealEstate = "RealEstate",
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export enum BorrowerType {
|
|
140
|
-
Borrower = "Borrower",
|
|
141
|
-
CoBorrower = "CoBorrower",
|
|
142
|
-
Unknown = "Unknown",
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export enum BorrowerRelationship {
|
|
146
|
-
NotApplicable = "NotApplicable",
|
|
147
|
-
Spouse = "Spouse",
|
|
148
|
-
NonSpouse = "NonSpouse",
|
|
149
|
-
}
|
|
13
|
+
export type UserRole =
|
|
14
|
+
| "Borrower"
|
|
15
|
+
| "LoanOfficer"
|
|
16
|
+
| "Admin"
|
|
17
|
+
| "SuperAdmin"
|
|
18
|
+
| "Realtor"
|
|
19
|
+
| "SettlementAgent"
|
|
20
|
+
| "LoanProcessor"
|
|
21
|
+
| "LoanOfficerAssistant"
|
|
22
|
+
| "BranchManager"
|
|
23
|
+
| "SystemAdmin";
|
|
24
|
+
|
|
25
|
+
export type SiteConfigurationType =
|
|
26
|
+
| "None"
|
|
27
|
+
| "Account"
|
|
28
|
+
| "Corporate"
|
|
29
|
+
| "Branch"
|
|
30
|
+
| "LoanOfficer"
|
|
31
|
+
| "Partner";
|
|
32
|
+
|
|
33
|
+
export type SSOIntegrationType = "ConsumerConnect" | "TheBigPOS";
|
|
34
|
+
|
|
35
|
+
export type OperationType =
|
|
36
|
+
| "Add"
|
|
37
|
+
| "Remove"
|
|
38
|
+
| "Replace"
|
|
39
|
+
| "Move"
|
|
40
|
+
| "Copy"
|
|
41
|
+
| "Test"
|
|
42
|
+
| "Invalid";
|
|
43
|
+
|
|
44
|
+
export type LogLevel = "None" | "Info" | "Warning" | "Error";
|
|
45
|
+
|
|
46
|
+
export type LoanRole =
|
|
47
|
+
| "Borrower"
|
|
48
|
+
| "CoBorrower"
|
|
49
|
+
| "NonBorrower"
|
|
50
|
+
| "LoanOfficer"
|
|
51
|
+
| "LoanProcessor"
|
|
52
|
+
| "LoanOfficerAssistant"
|
|
53
|
+
| "SupportingLoanOfficer"
|
|
54
|
+
| "BuyerAgent"
|
|
55
|
+
| "SellerAgent"
|
|
56
|
+
| "TitleInsuranceAgent"
|
|
57
|
+
| "EscrowAgent"
|
|
58
|
+
| "SettlementAgent";
|
|
59
|
+
|
|
60
|
+
export type LoanQueueType =
|
|
61
|
+
| "Unknown"
|
|
62
|
+
| "New"
|
|
63
|
+
| "Append"
|
|
64
|
+
| "Update"
|
|
65
|
+
| "FieldUpdates"
|
|
66
|
+
| "Document"
|
|
67
|
+
| "Buckets";
|
|
68
|
+
|
|
69
|
+
export type LoanQueueReason = "Unknown" | "Locked" | "LOSError" | "Exception";
|
|
70
|
+
|
|
71
|
+
export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification";
|
|
72
|
+
|
|
73
|
+
export type LOSStatus =
|
|
74
|
+
| "Unknown"
|
|
75
|
+
| "Pending"
|
|
76
|
+
| "Retrying"
|
|
77
|
+
| "Successful"
|
|
78
|
+
| "Failed"
|
|
79
|
+
| "FailedPermanently";
|
|
80
|
+
|
|
81
|
+
export type FilterType =
|
|
82
|
+
| "DateGreaterThanOrEqualTo"
|
|
83
|
+
| "DateGreaterThan"
|
|
84
|
+
| "DateLessThan"
|
|
85
|
+
| "DateLessThanOrEqualTo"
|
|
86
|
+
| "DateEquals"
|
|
87
|
+
| "DateDoesntEqual"
|
|
88
|
+
| "DateNonEmpty"
|
|
89
|
+
| "DateEmpty"
|
|
90
|
+
| "StringContains"
|
|
91
|
+
| "StringEquals"
|
|
92
|
+
| "StringNotEmpty"
|
|
93
|
+
| "StringNotEquals"
|
|
94
|
+
| "StringNotContains";
|
|
95
|
+
|
|
96
|
+
export type Environment = "Development" | "Staging" | "UAT" | "Production";
|
|
97
|
+
|
|
98
|
+
export type EntityType =
|
|
99
|
+
| "Account"
|
|
100
|
+
| "Corporate"
|
|
101
|
+
| "Branch"
|
|
102
|
+
| "LoanOfficer"
|
|
103
|
+
| "Realtor";
|
|
104
|
+
|
|
105
|
+
export type BranchType = "Mortgage" | "RealEstate";
|
|
106
|
+
|
|
107
|
+
export type BorrowerType = "Borrower" | "CoBorrower" | "Unknown";
|
|
108
|
+
|
|
109
|
+
export type BorrowerRelationship = "NotApplicable" | "Spouse" | "NonSpouse";
|
|
150
110
|
|
|
151
111
|
export interface ASOSettings {
|
|
152
112
|
enabled: boolean;
|
|
@@ -651,16 +611,6 @@ export interface CreateInviteRequest {
|
|
|
651
611
|
loanRole?: LoanRole | null;
|
|
652
612
|
}
|
|
653
613
|
|
|
654
|
-
export interface CreateLoanImportRequest {
|
|
655
|
-
/** @format date-time */
|
|
656
|
-
endDate: string;
|
|
657
|
-
/**
|
|
658
|
-
* @format date-time
|
|
659
|
-
* @minLength 1
|
|
660
|
-
*/
|
|
661
|
-
startDate: string;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
614
|
export interface CreateUserRelationRequest {
|
|
665
615
|
/**
|
|
666
616
|
* @format uuid
|
|
@@ -990,6 +940,7 @@ export interface EnabledServices {
|
|
|
990
940
|
borrowerTasks?: boolean | null;
|
|
991
941
|
docusign?: boolean | null;
|
|
992
942
|
emailNotifications?: boolean | null;
|
|
943
|
+
autoTaskReminders?: boolean | null;
|
|
993
944
|
voc?: boolean | null;
|
|
994
945
|
spanishPrequal?: boolean | null;
|
|
995
946
|
spanishFullApp?: boolean | null;
|
|
@@ -1058,6 +1009,7 @@ export interface ExtendedLoan {
|
|
|
1058
1009
|
isInSync: boolean;
|
|
1059
1010
|
/** @format date-time */
|
|
1060
1011
|
syncDate?: string | null;
|
|
1012
|
+
excludeFromAutoTaskReminders?: boolean | null;
|
|
1061
1013
|
fileStarter?: string | null;
|
|
1062
1014
|
isPOSLoan?: boolean | null;
|
|
1063
1015
|
referenceID: string;
|
|
@@ -1068,6 +1020,7 @@ export interface ExtendedLoan {
|
|
|
1068
1020
|
status?: string | null;
|
|
1069
1021
|
loanOfficer?: LoanOfficer | null;
|
|
1070
1022
|
propertyAddress?: Address | null;
|
|
1023
|
+
loanSettings?: LoanSettings | null;
|
|
1071
1024
|
loanLogs: LoanLog[];
|
|
1072
1025
|
isLocked: boolean;
|
|
1073
1026
|
source?: string | null;
|
|
@@ -1430,6 +1383,8 @@ export interface GetWorkflowRequest {
|
|
|
1430
1383
|
language?: string | null;
|
|
1431
1384
|
}
|
|
1432
1385
|
|
|
1386
|
+
export type IContractResolver = object;
|
|
1387
|
+
|
|
1433
1388
|
export interface ImportUserLoanTaskRequest {
|
|
1434
1389
|
/**
|
|
1435
1390
|
* @format uuid
|
|
@@ -1614,6 +1569,7 @@ export interface Loan {
|
|
|
1614
1569
|
isInSync: boolean;
|
|
1615
1570
|
/** @format date-time */
|
|
1616
1571
|
syncDate?: string | null;
|
|
1572
|
+
excludeFromAutoTaskReminders?: boolean | null;
|
|
1617
1573
|
fileStarter?: string | null;
|
|
1618
1574
|
isPOSLoan?: boolean | null;
|
|
1619
1575
|
referenceID: string;
|
|
@@ -1624,6 +1580,7 @@ export interface Loan {
|
|
|
1624
1580
|
status?: string | null;
|
|
1625
1581
|
loanOfficer?: LoanOfficer | null;
|
|
1626
1582
|
propertyAddress?: Address | null;
|
|
1583
|
+
loanSettings?: LoanSettings | null;
|
|
1627
1584
|
loanLogs: LoanLog[];
|
|
1628
1585
|
isLocked: boolean;
|
|
1629
1586
|
source?: string | null;
|
|
@@ -1669,6 +1626,15 @@ export interface LoanComparisonScenario {
|
|
|
1669
1626
|
fundingFee?: string | null;
|
|
1670
1627
|
}
|
|
1671
1628
|
|
|
1629
|
+
export interface LoanConsentRequest {
|
|
1630
|
+
/** @format email */
|
|
1631
|
+
borrowerEmail?: string | null;
|
|
1632
|
+
borrowerEConsent?: boolean | null;
|
|
1633
|
+
borrowerCreditAuth?: boolean | null;
|
|
1634
|
+
borrowerTCPAOptIn?: boolean | null;
|
|
1635
|
+
additionalFields?: Record<string, string>;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1672
1638
|
export interface LoanContact {
|
|
1673
1639
|
/** @format date-time */
|
|
1674
1640
|
createdAt: string;
|
|
@@ -1728,37 +1694,6 @@ export interface LoanDraftSearchCriteria {
|
|
|
1728
1694
|
isUnassigned?: boolean | null;
|
|
1729
1695
|
}
|
|
1730
1696
|
|
|
1731
|
-
export interface LoanImport {
|
|
1732
|
-
/** @format uuid */
|
|
1733
|
-
id: string;
|
|
1734
|
-
/** @format uuid */
|
|
1735
|
-
accountID: string;
|
|
1736
|
-
/** @format date-time */
|
|
1737
|
-
endDate: string;
|
|
1738
|
-
/** @format date-time */
|
|
1739
|
-
startDate: string;
|
|
1740
|
-
/** @format int32 */
|
|
1741
|
-
attemptCount: number;
|
|
1742
|
-
/** @format int32 */
|
|
1743
|
-
importedCount: number;
|
|
1744
|
-
statusMessage?: string | null;
|
|
1745
|
-
status:
|
|
1746
|
-
| "WaitingProcess"
|
|
1747
|
-
| "InProgress"
|
|
1748
|
-
| "Completed"
|
|
1749
|
-
| "Failed"
|
|
1750
|
-
| "Cancelled";
|
|
1751
|
-
/** @format date-time */
|
|
1752
|
-
createdAt?: string | null;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
export interface LoanImportPaginated {
|
|
1756
|
-
rows: LoanImport[];
|
|
1757
|
-
pagination: Pagination;
|
|
1758
|
-
/** @format int64 */
|
|
1759
|
-
count: number;
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
1697
|
export interface LoanLog {
|
|
1763
1698
|
/** @format uuid */
|
|
1764
1699
|
id: string;
|
|
@@ -1873,13 +1808,28 @@ export interface LoanSearchCriteria {
|
|
|
1873
1808
|
siteConfigurationId?: string | null;
|
|
1874
1809
|
}
|
|
1875
1810
|
|
|
1876
|
-
export interface
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1811
|
+
export interface LoanSettings {
|
|
1812
|
+
excludeFromAutoTaskReminders: boolean;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
export interface LoanUpdateRequestJsonPatchDocument {
|
|
1816
|
+
operations?: LoanUpdateRequestOperation[] | null;
|
|
1817
|
+
contractResolver?: IContractResolver | null;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
export interface LoanUpdateRequestOperation {
|
|
1821
|
+
operationType:
|
|
1822
|
+
| "Add"
|
|
1823
|
+
| "Remove"
|
|
1824
|
+
| "Replace"
|
|
1825
|
+
| "Move"
|
|
1826
|
+
| "Copy"
|
|
1827
|
+
| "Test"
|
|
1828
|
+
| "Invalid";
|
|
1829
|
+
path?: string | null;
|
|
1830
|
+
op?: string | null;
|
|
1831
|
+
from?: string | null;
|
|
1832
|
+
value?: any;
|
|
1883
1833
|
}
|
|
1884
1834
|
|
|
1885
1835
|
export interface LoanUser {
|
|
@@ -2086,7 +2036,7 @@ export interface NotificationTemplateVersionUpdateRequest {
|
|
|
2086
2036
|
|
|
2087
2037
|
export interface Operation {
|
|
2088
2038
|
op?: string;
|
|
2089
|
-
value?:
|
|
2039
|
+
value?: any | null;
|
|
2090
2040
|
path?: string;
|
|
2091
2041
|
}
|
|
2092
2042
|
|
|
@@ -2536,6 +2486,7 @@ export interface SiteConfiguration {
|
|
|
2536
2486
|
user?: UserPublic | null;
|
|
2537
2487
|
asoSettings?: ASOSettings | null;
|
|
2538
2488
|
accountSettings: AccountSettings;
|
|
2489
|
+
autoTaskReminderIntervalsInDays: number[];
|
|
2539
2490
|
}
|
|
2540
2491
|
|
|
2541
2492
|
export interface SiteConfigurationByUrl {
|
|
@@ -2727,6 +2678,7 @@ export interface SiteConfigurationByUrl {
|
|
|
2727
2678
|
user?: UserPublic | null;
|
|
2728
2679
|
asoSettings?: ASOSettings | null;
|
|
2729
2680
|
accountSettings: AccountSettings;
|
|
2681
|
+
autoTaskReminderIntervalsInDays: number[];
|
|
2730
2682
|
workflows: Workflow[];
|
|
2731
2683
|
}
|
|
2732
2684
|
|
|
@@ -2931,6 +2883,7 @@ export interface SiteConfigurationRequest {
|
|
|
2931
2883
|
modules?: Module[] | null;
|
|
2932
2884
|
/** @format uuid */
|
|
2933
2885
|
userID?: string | null;
|
|
2886
|
+
autoTaskReminderIntervalsInDays: number[];
|
|
2934
2887
|
}
|
|
2935
2888
|
|
|
2936
2889
|
export interface SiteConfigurationSearchCriteria {
|
|
@@ -3582,6 +3535,7 @@ export interface ApiConfig<SecurityDataType = unknown>
|
|
|
3582
3535
|
}
|
|
3583
3536
|
|
|
3584
3537
|
export enum ContentType {
|
|
3538
|
+
JsonPatch = "application/json-patch+json",
|
|
3585
3539
|
Json = "application/json",
|
|
3586
3540
|
JsonApi = "application/vnd.api+json",
|
|
3587
3541
|
FormData = "multipart/form-data",
|
|
@@ -3717,7 +3671,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
3717
3671
|
|
|
3718
3672
|
/**
|
|
3719
3673
|
* @title The Big POS API
|
|
3720
|
-
* @version v2.18.
|
|
3674
|
+
* @version v2.18.4
|
|
3721
3675
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
3722
3676
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
3723
3677
|
*/
|
|
@@ -5863,14 +5817,14 @@ export class Api<
|
|
|
5863
5817
|
* No description
|
|
5864
5818
|
*
|
|
5865
5819
|
* @tags LegacyLoan
|
|
5866
|
-
* @name
|
|
5867
|
-
* @summary Update Loan
|
|
5820
|
+
* @name UpdateLoanConsent
|
|
5821
|
+
* @summary Update Loan Consent
|
|
5868
5822
|
* @request PATCH:/api/los/loan/application/{loanID}
|
|
5869
5823
|
* @secure
|
|
5870
5824
|
* @response `200` `string` Success
|
|
5871
5825
|
* @response `422` `UnprocessableEntity` Client Error
|
|
5872
5826
|
*/
|
|
5873
|
-
|
|
5827
|
+
updateLoanConsent: (
|
|
5874
5828
|
loanId: string,
|
|
5875
5829
|
data: JsonPatchDocument,
|
|
5876
5830
|
params: RequestParams = {},
|
|
@@ -5880,7 +5834,7 @@ export class Api<
|
|
|
5880
5834
|
method: "PATCH",
|
|
5881
5835
|
body: data,
|
|
5882
5836
|
secure: true,
|
|
5883
|
-
type: ContentType.
|
|
5837
|
+
type: ContentType.JsonPatch,
|
|
5884
5838
|
format: "json",
|
|
5885
5839
|
...params,
|
|
5886
5840
|
}),
|
|
@@ -6162,7 +6116,7 @@ export class Api<
|
|
|
6162
6116
|
method: "PATCH",
|
|
6163
6117
|
body: data,
|
|
6164
6118
|
secure: true,
|
|
6165
|
-
type: ContentType.
|
|
6119
|
+
type: ContentType.JsonPatch,
|
|
6166
6120
|
format: "json",
|
|
6167
6121
|
...params,
|
|
6168
6122
|
}),
|
|
@@ -6242,7 +6196,7 @@ export class Api<
|
|
|
6242
6196
|
method: "PATCH",
|
|
6243
6197
|
body: data,
|
|
6244
6198
|
secure: true,
|
|
6245
|
-
type: ContentType.
|
|
6199
|
+
type: ContentType.JsonPatch,
|
|
6246
6200
|
format: "json",
|
|
6247
6201
|
...params,
|
|
6248
6202
|
}),
|
|
@@ -6977,81 +6931,6 @@ export class Api<
|
|
|
6977
6931
|
...params,
|
|
6978
6932
|
}),
|
|
6979
6933
|
|
|
6980
|
-
/**
|
|
6981
|
-
* No description
|
|
6982
|
-
*
|
|
6983
|
-
* @tags LoanImport
|
|
6984
|
-
* @name GetLoanImports
|
|
6985
|
-
* @summary Get Loan Imports
|
|
6986
|
-
* @request GET:/api/loan-imports
|
|
6987
|
-
* @secure
|
|
6988
|
-
* @response `200` `LoanImportPaginated` Success
|
|
6989
|
-
*/
|
|
6990
|
-
getLoanImports: (
|
|
6991
|
-
query?: {
|
|
6992
|
-
status?: LoanImportStatus;
|
|
6993
|
-
searchText?: string;
|
|
6994
|
-
/** @format int32 */
|
|
6995
|
-
pageSize?: number;
|
|
6996
|
-
/** @format int32 */
|
|
6997
|
-
pageNumber?: number;
|
|
6998
|
-
sortBy?: string;
|
|
6999
|
-
sortDirection?: string;
|
|
7000
|
-
},
|
|
7001
|
-
params: RequestParams = {},
|
|
7002
|
-
) =>
|
|
7003
|
-
this.request<LoanImportPaginated, any>({
|
|
7004
|
-
path: `/api/loan-imports`,
|
|
7005
|
-
method: "GET",
|
|
7006
|
-
query: query,
|
|
7007
|
-
secure: true,
|
|
7008
|
-
format: "json",
|
|
7009
|
-
...params,
|
|
7010
|
-
}),
|
|
7011
|
-
|
|
7012
|
-
/**
|
|
7013
|
-
* No description
|
|
7014
|
-
*
|
|
7015
|
-
* @tags LoanImport
|
|
7016
|
-
* @name CreateLoanImport
|
|
7017
|
-
* @summary Create Loan Import
|
|
7018
|
-
* @request POST:/api/loan-imports
|
|
7019
|
-
* @secure
|
|
7020
|
-
* @response `201` `LoanImport` Created
|
|
7021
|
-
*/
|
|
7022
|
-
createLoanImport: (
|
|
7023
|
-
data: CreateLoanImportRequest,
|
|
7024
|
-
params: RequestParams = {},
|
|
7025
|
-
) =>
|
|
7026
|
-
this.request<LoanImport, any>({
|
|
7027
|
-
path: `/api/loan-imports`,
|
|
7028
|
-
method: "POST",
|
|
7029
|
-
body: data,
|
|
7030
|
-
secure: true,
|
|
7031
|
-
type: ContentType.Json,
|
|
7032
|
-
format: "json",
|
|
7033
|
-
...params,
|
|
7034
|
-
}),
|
|
7035
|
-
|
|
7036
|
-
/**
|
|
7037
|
-
* No description
|
|
7038
|
-
*
|
|
7039
|
-
* @tags LoanImport
|
|
7040
|
-
* @name GetLoanImport
|
|
7041
|
-
* @summary Get Loan Import
|
|
7042
|
-
* @request GET:/api/loan-imports/{id}
|
|
7043
|
-
* @secure
|
|
7044
|
-
* @response `200` `LoanImport` Success
|
|
7045
|
-
*/
|
|
7046
|
-
getLoanImport: (id: string, params: RequestParams = {}) =>
|
|
7047
|
-
this.request<LoanImport, any>({
|
|
7048
|
-
path: `/api/loan-imports/${id}`,
|
|
7049
|
-
method: "GET",
|
|
7050
|
-
secure: true,
|
|
7051
|
-
format: "json",
|
|
7052
|
-
...params,
|
|
7053
|
-
}),
|
|
7054
|
-
|
|
7055
6934
|
/**
|
|
7056
6935
|
* No description
|
|
7057
6936
|
*
|
|
@@ -7508,19 +7387,44 @@ export class Api<
|
|
|
7508
7387
|
* @tags Loans
|
|
7509
7388
|
* @name ImportLoanFromLos
|
|
7510
7389
|
* @summary Import from LOS
|
|
7511
|
-
* @request POST:/api/loans/
|
|
7390
|
+
* @request POST:/api/loans/import-from-los/{loanId}
|
|
7512
7391
|
* @secure
|
|
7513
7392
|
* @response `200` `Loan` Success
|
|
7514
7393
|
*/
|
|
7515
7394
|
importLoanFromLos: (loanId: string, params: RequestParams = {}) =>
|
|
7516
7395
|
this.request<Loan, any>({
|
|
7517
|
-
path: `/api/loans
|
|
7396
|
+
path: `/api/loans/import-from-los/${loanId}`,
|
|
7518
7397
|
method: "POST",
|
|
7519
7398
|
secure: true,
|
|
7520
7399
|
format: "json",
|
|
7521
7400
|
...params,
|
|
7522
7401
|
}),
|
|
7523
7402
|
|
|
7403
|
+
/**
|
|
7404
|
+
* No description
|
|
7405
|
+
*
|
|
7406
|
+
* @tags Loans
|
|
7407
|
+
* @name UpdateLoan
|
|
7408
|
+
* @summary Update loan fields
|
|
7409
|
+
* @request PATCH:/api/loans/{loanId}
|
|
7410
|
+
* @secure
|
|
7411
|
+
* @response `200` `Loan` Success
|
|
7412
|
+
*/
|
|
7413
|
+
updateLoan: (
|
|
7414
|
+
loanId: string,
|
|
7415
|
+
data: JsonPatchDocument,
|
|
7416
|
+
params: RequestParams = {},
|
|
7417
|
+
) =>
|
|
7418
|
+
this.request<Loan, any>({
|
|
7419
|
+
path: `/api/loans/${loanId}`,
|
|
7420
|
+
method: "PATCH",
|
|
7421
|
+
body: data,
|
|
7422
|
+
secure: true,
|
|
7423
|
+
type: ContentType.JsonPatch,
|
|
7424
|
+
format: "json",
|
|
7425
|
+
...params,
|
|
7426
|
+
}),
|
|
7427
|
+
|
|
7524
7428
|
/**
|
|
7525
7429
|
* No description
|
|
7526
7430
|
*
|