@matech/thebigpos-sdk 2.18.4-rc.0 → 2.19.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 +2 -1
- package/LICENSE +21 -21
- package/README.md +44 -44
- package/dist/index.d.ts +133 -75
- package/dist/index.js +49 -6
- package/dist/index.js.map +1 -1
- package/package.json +40 -40
- package/{apply-json-patch-content-type.js → scripts/apply-json-patch-content-type.js} +56 -45
- package/src/index.ts +188 -85
- package/tsconfig.json +27 -27
|
@@ -1,45 +1,56 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This script is meant to run after the SDK has been generated.
|
|
3
|
-
|
|
4
|
-
- It updates the generated code to ensure that all PATCH methods use ContentType.JsonPatch.
|
|
5
|
-
- It also ensures that the ContentType enum includes JsonPatch and modifies the Operation interface
|
|
6
|
-
to allow any value for the `value` property instead of just object or null.
|
|
7
|
-
|
|
8
|
-
This is necessary because the SDK generation does not currently handle these cases correctly.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
const fs = require('fs')
|
|
12
|
-
|
|
13
|
-
const path = '
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
/*
|
|
2
|
+
This script is meant to run after the SDK has been generated.
|
|
3
|
+
|
|
4
|
+
- It updates the generated code to ensure that all PATCH methods use ContentType.JsonPatch.
|
|
5
|
+
- It also ensures that the ContentType enum includes JsonPatch and modifies the Operation interface
|
|
6
|
+
to allow any value for the `value` property instead of just object or null.
|
|
7
|
+
|
|
8
|
+
This is necessary because the SDK generation does not currently handle these cases correctly.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const fs = require('fs')
|
|
12
|
+
|
|
13
|
+
const path = require('path').resolve(__dirname, '../src/index.ts')
|
|
14
|
+
|
|
15
|
+
if (!fs.existsSync(path)) {
|
|
16
|
+
console.error(`Error: File not found at path "${path}". Please ensure the SDK has been generated.`)
|
|
17
|
+
process.exit(1)
|
|
18
|
+
}
|
|
19
|
+
let content
|
|
20
|
+
try {
|
|
21
|
+
content = fs.readFileSync(path, 'utf8')
|
|
22
|
+
} catch (err) {
|
|
23
|
+
console.error(`Error: Unable to read file at path "${path}". Details: ${err.message}`)
|
|
24
|
+
process.exit(1)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Update PATCH methods to use ContentType.JsonPatch
|
|
28
|
+
content = content.replace(
|
|
29
|
+
/(method:\s*"PATCH"[\s\S]+?)type:\s*ContentType\.Json/g,
|
|
30
|
+
(match) => match.replace('ContentType.Json', 'ContentType.JsonPatch')
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
// Ensure JsonPatch is included in the ContentType enum
|
|
34
|
+
content = content.replace(
|
|
35
|
+
/export enum ContentType\s*{([\s\S]*?)}/,
|
|
36
|
+
(match, enumBody) => {
|
|
37
|
+
if (enumBody.includes('JsonPatch')) return match
|
|
38
|
+
const insertion = ` JsonPatch = "application/json-patch+json",\n `
|
|
39
|
+
return `export enum ContentType {\n${insertion}${enumBody.trim()}\n}`
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
// Fix the Operation interface to allow any value
|
|
44
|
+
content = content.replace(
|
|
45
|
+
/export interface Operation\s*{([\s\S]*?)}/,
|
|
46
|
+
(match, body) => {
|
|
47
|
+
const updated = body.replace(
|
|
48
|
+
/value\?:\s*object\s*\|?\s*null?;/,
|
|
49
|
+
'value?: string | number | boolean | null | object;'
|
|
50
|
+
)
|
|
51
|
+
return `export interface Operation {\n ${updated.trim()}\n}`
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
fs.writeFileSync(path, content)
|
|
56
|
+
console.log('SDK patch complete: All PATCH methods now use ContentType.JsonPatch.')
|
package/src/index.ts
CHANGED
|
@@ -264,6 +264,11 @@ export interface AllowImpersonationRequest {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
export interface ApplicationRowData {
|
|
267
|
+
buyerAgent?: EncompassContact | null;
|
|
268
|
+
sellerAgent?: EncompassContact | null;
|
|
269
|
+
settlementAgent?: EncompassContact | null;
|
|
270
|
+
escrowAgent?: EncompassContact | null;
|
|
271
|
+
titleInsuranceAgent?: EncompassContact | null;
|
|
267
272
|
borrowerEmail?: string | null;
|
|
268
273
|
borrowerFirstName?: string | null;
|
|
269
274
|
borrowerLastName?: string | null;
|
|
@@ -309,11 +314,6 @@ export interface ApplicationRowData {
|
|
|
309
314
|
subjectPropertyState?: string | null;
|
|
310
315
|
subjectPropertyZip?: string | null;
|
|
311
316
|
loanPurpose?: string | null;
|
|
312
|
-
buyerAgent?: EncompassContact | null;
|
|
313
|
-
sellerAgent?: EncompassContact | null;
|
|
314
|
-
settlementAgent?: EncompassContact | null;
|
|
315
|
-
escrowAgent?: EncompassContact | null;
|
|
316
|
-
titleInsuranceAgent?: EncompassContact | null;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
export interface Attachment {
|
|
@@ -471,15 +471,6 @@ export interface ConditionComment {
|
|
|
471
471
|
createdByName: string;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
export interface Contact {
|
|
475
|
-
/** @format uuid */
|
|
476
|
-
id: string;
|
|
477
|
-
firstName?: string | null;
|
|
478
|
-
lastName?: string | null;
|
|
479
|
-
name?: string | null;
|
|
480
|
-
email?: string | null;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
474
|
export interface ContactInfo {
|
|
484
475
|
phone: string;
|
|
485
476
|
tollFreePhone?: string | null;
|
|
@@ -968,6 +959,7 @@ export interface EnabledServices {
|
|
|
968
959
|
listingOfferForm?: boolean | null;
|
|
969
960
|
listings?: boolean | null;
|
|
970
961
|
addCoBorrower?: boolean | null;
|
|
962
|
+
autoNameTaskDocuments?: boolean | null;
|
|
971
963
|
}
|
|
972
964
|
|
|
973
965
|
export interface EncompassContact {
|
|
@@ -981,66 +973,6 @@ export interface Error {
|
|
|
981
973
|
message: string;
|
|
982
974
|
}
|
|
983
975
|
|
|
984
|
-
export interface ExtendedLoan {
|
|
985
|
-
/** @format uuid */
|
|
986
|
-
id: string;
|
|
987
|
-
loanID: string;
|
|
988
|
-
loanNumber?: string | null;
|
|
989
|
-
/** @format date-time */
|
|
990
|
-
initialDisclosureProvidedDate?: string | null;
|
|
991
|
-
/** @format date-time */
|
|
992
|
-
closingDisclosureSentDate?: string | null;
|
|
993
|
-
/** @format date-time */
|
|
994
|
-
underwritingApprovalDate?: string | null;
|
|
995
|
-
/** @format date-time */
|
|
996
|
-
closingDate?: string | null;
|
|
997
|
-
/** @format date-time */
|
|
998
|
-
fundingOrderDate?: string | null;
|
|
999
|
-
/** @format date-time */
|
|
1000
|
-
currentStatusDate?: string | null;
|
|
1001
|
-
loanChannel?: string | null;
|
|
1002
|
-
/** @format double */
|
|
1003
|
-
totalLoanAmount?: number | null;
|
|
1004
|
-
currentLoanStatus?: string | null;
|
|
1005
|
-
currentMilestone?: string | null;
|
|
1006
|
-
lastCompletedMilestone?: string | null;
|
|
1007
|
-
/** @format date-time */
|
|
1008
|
-
startDate?: string | null;
|
|
1009
|
-
isInSync: boolean;
|
|
1010
|
-
/** @format date-time */
|
|
1011
|
-
syncDate?: string | null;
|
|
1012
|
-
excludeFromAutoTaskReminders?: boolean | null;
|
|
1013
|
-
fileStarter?: string | null;
|
|
1014
|
-
isPOSLoan?: boolean | null;
|
|
1015
|
-
referenceID: string;
|
|
1016
|
-
/** @format int32 */
|
|
1017
|
-
term?: number | null;
|
|
1018
|
-
loanProgram?: string | null;
|
|
1019
|
-
loanType?: string | null;
|
|
1020
|
-
status?: string | null;
|
|
1021
|
-
loanOfficer?: LoanOfficer | null;
|
|
1022
|
-
propertyAddress?: Address | null;
|
|
1023
|
-
loanSettings?: LoanSettings | null;
|
|
1024
|
-
loanLogs: LoanLog[];
|
|
1025
|
-
isLocked: boolean;
|
|
1026
|
-
source?: string | null;
|
|
1027
|
-
userLoans: UserLoan[];
|
|
1028
|
-
contacts: LoanContact[];
|
|
1029
|
-
buyerAgentContact?: Contact | null;
|
|
1030
|
-
sellerAgentContact?: Contact | null;
|
|
1031
|
-
escrowAgentContact?: Contact | null;
|
|
1032
|
-
titleInsuranceAgentContact?: Contact | null;
|
|
1033
|
-
settlementAgentContact?: Contact | null;
|
|
1034
|
-
loanProcessorContact?: Contact | null;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
export interface ExtendedLoanPaginated {
|
|
1038
|
-
rows: ExtendedLoan[];
|
|
1039
|
-
pagination: Pagination;
|
|
1040
|
-
/** @format int64 */
|
|
1041
|
-
count: number;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
976
|
export interface File {
|
|
1045
977
|
/** @format uuid */
|
|
1046
978
|
id: string;
|
|
@@ -1583,6 +1515,7 @@ export interface Loan {
|
|
|
1583
1515
|
loanSettings?: LoanSettings | null;
|
|
1584
1516
|
loanLogs: LoanLog[];
|
|
1585
1517
|
isLocked: boolean;
|
|
1518
|
+
isLockedFromEditing: boolean;
|
|
1586
1519
|
source?: string | null;
|
|
1587
1520
|
userLoans: UserLoan[];
|
|
1588
1521
|
contacts: LoanContact[];
|
|
@@ -1666,6 +1599,10 @@ export interface LoanContact {
|
|
|
1666
1599
|
| "SettlementAgent";
|
|
1667
1600
|
}
|
|
1668
1601
|
|
|
1602
|
+
export interface LoanContactList {
|
|
1603
|
+
email: string;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1669
1606
|
export interface LoanDocument {
|
|
1670
1607
|
/** @format date-time */
|
|
1671
1608
|
createdAt: string;
|
|
@@ -1685,6 +1622,40 @@ export interface LoanDocument {
|
|
|
1685
1622
|
failoverDocumentPath?: string | null;
|
|
1686
1623
|
}
|
|
1687
1624
|
|
|
1625
|
+
export interface LoanDocumentSearch {
|
|
1626
|
+
/** @format date-time */
|
|
1627
|
+
createdAt?: string | null;
|
|
1628
|
+
/** @format date-time */
|
|
1629
|
+
updatedAt?: string | null;
|
|
1630
|
+
/** @format date-time */
|
|
1631
|
+
deletedAt?: string | null;
|
|
1632
|
+
/** @format uuid */
|
|
1633
|
+
id: string;
|
|
1634
|
+
name: string;
|
|
1635
|
+
loanID?: string | null;
|
|
1636
|
+
userID?: string | null;
|
|
1637
|
+
initialBucket?: string | null;
|
|
1638
|
+
losDocumentID?: string | null;
|
|
1639
|
+
losStatus: string;
|
|
1640
|
+
contents?: string | null;
|
|
1641
|
+
failoverDocumentPath?: string | null;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
export interface LoanDocumentSearchCriteria {
|
|
1645
|
+
searchText?: string | null;
|
|
1646
|
+
bucket?: string | null;
|
|
1647
|
+
/** @format uuid */
|
|
1648
|
+
userID?: string | null;
|
|
1649
|
+
documentIDs?: string[] | null;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
export interface LoanDocumentSearchPaginated {
|
|
1653
|
+
rows: LoanDocumentSearch[];
|
|
1654
|
+
pagination: Pagination;
|
|
1655
|
+
/** @format int64 */
|
|
1656
|
+
count: number;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1688
1659
|
export interface LoanDraftSearchCriteria {
|
|
1689
1660
|
searchText?: string | null;
|
|
1690
1661
|
/** @format uuid */
|
|
@@ -1694,6 +1665,30 @@ export interface LoanDraftSearchCriteria {
|
|
|
1694
1665
|
isUnassigned?: boolean | null;
|
|
1695
1666
|
}
|
|
1696
1667
|
|
|
1668
|
+
export interface LoanList {
|
|
1669
|
+
/** @format uuid */
|
|
1670
|
+
id: string;
|
|
1671
|
+
status?: string | null;
|
|
1672
|
+
loanID?: string | null;
|
|
1673
|
+
loanNumber?: string | null;
|
|
1674
|
+
/** @format double */
|
|
1675
|
+
totalLoanAmount?: number | null;
|
|
1676
|
+
/** @format date-time */
|
|
1677
|
+
startDate?: string | null;
|
|
1678
|
+
propertyAddress?: Address | null;
|
|
1679
|
+
loanOfficer?: LoanOfficerList | null;
|
|
1680
|
+
buyerAgentContact?: LoanContactList | null;
|
|
1681
|
+
sellerAgentContact?: LoanContactList | null;
|
|
1682
|
+
userLoans: UserLoan[];
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
export interface LoanListPaginated {
|
|
1686
|
+
rows: LoanList[];
|
|
1687
|
+
pagination: Pagination;
|
|
1688
|
+
/** @format int64 */
|
|
1689
|
+
count: number;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1697
1692
|
export interface LoanLog {
|
|
1698
1693
|
/** @format uuid */
|
|
1699
1694
|
id: string;
|
|
@@ -1716,6 +1711,10 @@ export interface LoanOfficer {
|
|
|
1716
1711
|
siteConfiguration: SiteConfiguration;
|
|
1717
1712
|
}
|
|
1718
1713
|
|
|
1714
|
+
export interface LoanOfficerList {
|
|
1715
|
+
name?: string | null;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1719
1718
|
export interface LoanOfficerPublic {
|
|
1720
1719
|
firstName: string;
|
|
1721
1720
|
lastName: string;
|
|
@@ -1888,6 +1887,13 @@ export interface MilestoneConfigurationRequest {
|
|
|
1888
1887
|
notificationsEnabled: boolean;
|
|
1889
1888
|
}
|
|
1890
1889
|
|
|
1890
|
+
export interface MobileSettings {
|
|
1891
|
+
/** @format uuid */
|
|
1892
|
+
id: string;
|
|
1893
|
+
hasMobile: boolean;
|
|
1894
|
+
downloadLink?: string | null;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1891
1897
|
export interface Module {
|
|
1892
1898
|
/** @format uuid */
|
|
1893
1899
|
id: string;
|
|
@@ -2036,7 +2042,7 @@ export interface NotificationTemplateVersionUpdateRequest {
|
|
|
2036
2042
|
|
|
2037
2043
|
export interface Operation {
|
|
2038
2044
|
op?: string;
|
|
2039
|
-
value?:
|
|
2045
|
+
value?: string | number | boolean | null | object;
|
|
2040
2046
|
path?: string;
|
|
2041
2047
|
}
|
|
2042
2048
|
|
|
@@ -2284,6 +2290,12 @@ export interface SendForgotPasswordRequest {
|
|
|
2284
2290
|
email: string;
|
|
2285
2291
|
}
|
|
2286
2292
|
|
|
2293
|
+
export interface SendLoanDocumentsRequest {
|
|
2294
|
+
documentIDs: string[];
|
|
2295
|
+
loanUserIDs: string[];
|
|
2296
|
+
emailAddresses: string[];
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2287
2299
|
export interface SendNotificationForLoanRequest {
|
|
2288
2300
|
/** @minLength 1 */
|
|
2289
2301
|
loanID: string;
|
|
@@ -2487,6 +2499,7 @@ export interface SiteConfiguration {
|
|
|
2487
2499
|
asoSettings?: ASOSettings | null;
|
|
2488
2500
|
accountSettings: AccountSettings;
|
|
2489
2501
|
autoTaskReminderIntervalsInDays: number[];
|
|
2502
|
+
mobileSettings: MobileSettings;
|
|
2490
2503
|
}
|
|
2491
2504
|
|
|
2492
2505
|
export interface SiteConfigurationByUrl {
|
|
@@ -2679,6 +2692,7 @@ export interface SiteConfigurationByUrl {
|
|
|
2679
2692
|
asoSettings?: ASOSettings | null;
|
|
2680
2693
|
accountSettings: AccountSettings;
|
|
2681
2694
|
autoTaskReminderIntervalsInDays: number[];
|
|
2695
|
+
mobileSettings: MobileSettings;
|
|
2682
2696
|
workflows: Workflow[];
|
|
2683
2697
|
}
|
|
2684
2698
|
|
|
@@ -3671,7 +3685,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
3671
3685
|
|
|
3672
3686
|
/**
|
|
3673
3687
|
* @title The Big POS API
|
|
3674
|
-
* @version v2.
|
|
3688
|
+
* @version v2.19.1
|
|
3675
3689
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
3676
3690
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
3677
3691
|
*/
|
|
@@ -5823,6 +5837,7 @@ export class Api<
|
|
|
5823
5837
|
* @secure
|
|
5824
5838
|
* @response `200` `string` Success
|
|
5825
5839
|
* @response `422` `UnprocessableEntity` Client Error
|
|
5840
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
5826
5841
|
*/
|
|
5827
5842
|
updateLoanConsent: (
|
|
5828
5843
|
loanId: string,
|
|
@@ -5834,7 +5849,7 @@ export class Api<
|
|
|
5834
5849
|
method: "PATCH",
|
|
5835
5850
|
body: data,
|
|
5836
5851
|
secure: true,
|
|
5837
|
-
type: ContentType.
|
|
5852
|
+
type: ContentType.JsonPatchPatch,
|
|
5838
5853
|
format: "json",
|
|
5839
5854
|
...params,
|
|
5840
5855
|
}),
|
|
@@ -5870,6 +5885,7 @@ export class Api<
|
|
|
5870
5885
|
* @secure
|
|
5871
5886
|
* @response `200` `string` Success
|
|
5872
5887
|
* @response `422` `UnprocessableEntity` Client Error
|
|
5888
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
5873
5889
|
*/
|
|
5874
5890
|
createLoan: (data: any, params: RequestParams = {}) =>
|
|
5875
5891
|
this.request<string, UnprocessableEntity>({
|
|
@@ -6051,12 +6067,13 @@ export class Api<
|
|
|
6051
6067
|
* @deprecated
|
|
6052
6068
|
* @secure
|
|
6053
6069
|
* @response `200` `DocumentDataRequest` Success
|
|
6070
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
6054
6071
|
*/
|
|
6055
6072
|
createLegacyLoanDocument: (
|
|
6056
6073
|
data: GenerateDocumentRequest,
|
|
6057
6074
|
params: RequestParams = {},
|
|
6058
6075
|
) =>
|
|
6059
|
-
this.request<DocumentDataRequest,
|
|
6076
|
+
this.request<DocumentDataRequest, UnprocessableEntity>({
|
|
6060
6077
|
path: `/api/los/loan/generatedocument`,
|
|
6061
6078
|
method: "POST",
|
|
6062
6079
|
body: data,
|
|
@@ -6116,7 +6133,7 @@ export class Api<
|
|
|
6116
6133
|
method: "PATCH",
|
|
6117
6134
|
body: data,
|
|
6118
6135
|
secure: true,
|
|
6119
|
-
type: ContentType.
|
|
6136
|
+
type: ContentType.JsonPatchPatch,
|
|
6120
6137
|
format: "json",
|
|
6121
6138
|
...params,
|
|
6122
6139
|
}),
|
|
@@ -6196,7 +6213,7 @@ export class Api<
|
|
|
6196
6213
|
method: "PATCH",
|
|
6197
6214
|
body: data,
|
|
6198
6215
|
secure: true,
|
|
6199
|
-
type: ContentType.
|
|
6216
|
+
type: ContentType.JsonPatchPatch,
|
|
6200
6217
|
format: "json",
|
|
6201
6218
|
...params,
|
|
6202
6219
|
}),
|
|
@@ -6483,6 +6500,7 @@ export class Api<
|
|
|
6483
6500
|
* @secure
|
|
6484
6501
|
* @response `200` `RunLOCalculation` Success
|
|
6485
6502
|
* @response `422` `UnprocessableEntity` Client Error
|
|
6503
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
6486
6504
|
*/
|
|
6487
6505
|
runLoanCalculator: (
|
|
6488
6506
|
loanId: string,
|
|
@@ -6528,6 +6546,7 @@ export class Api<
|
|
|
6528
6546
|
* @secure
|
|
6529
6547
|
* @response `201` `LoanComparisonScenario` Created
|
|
6530
6548
|
* @response `422` `UnprocessableEntity` Client Error
|
|
6549
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
6531
6550
|
*/
|
|
6532
6551
|
createLoanComparison: (
|
|
6533
6552
|
loanId: string,
|
|
@@ -6665,6 +6684,40 @@ export class Api<
|
|
|
6665
6684
|
...params,
|
|
6666
6685
|
}),
|
|
6667
6686
|
|
|
6687
|
+
/**
|
|
6688
|
+
* No description
|
|
6689
|
+
*
|
|
6690
|
+
* @tags LoanDocuments
|
|
6691
|
+
* @name SearchLoanDocuments
|
|
6692
|
+
* @summary Search loan documents
|
|
6693
|
+
* @request POST:/api/loans/{loanId}/documents/search
|
|
6694
|
+
* @secure
|
|
6695
|
+
* @response `200` `LoanDocumentSearchPaginated` Success
|
|
6696
|
+
*/
|
|
6697
|
+
searchLoanDocuments: (
|
|
6698
|
+
loanId: string,
|
|
6699
|
+
data: LoanDocumentSearchCriteria,
|
|
6700
|
+
query?: {
|
|
6701
|
+
/** @format int32 */
|
|
6702
|
+
pageSize?: number;
|
|
6703
|
+
/** @format int32 */
|
|
6704
|
+
pageNumber?: number;
|
|
6705
|
+
sortBy?: string;
|
|
6706
|
+
sortDirection?: string;
|
|
6707
|
+
},
|
|
6708
|
+
params: RequestParams = {},
|
|
6709
|
+
) =>
|
|
6710
|
+
this.request<LoanDocumentSearchPaginated, any>({
|
|
6711
|
+
path: `/api/loans/${loanId}/documents/search`,
|
|
6712
|
+
method: "POST",
|
|
6713
|
+
query: query,
|
|
6714
|
+
body: data,
|
|
6715
|
+
secure: true,
|
|
6716
|
+
type: ContentType.Json,
|
|
6717
|
+
format: "json",
|
|
6718
|
+
...params,
|
|
6719
|
+
}),
|
|
6720
|
+
|
|
6668
6721
|
/**
|
|
6669
6722
|
* No description
|
|
6670
6723
|
*
|
|
@@ -6700,6 +6753,7 @@ export class Api<
|
|
|
6700
6753
|
* @response `201` `LoanDocument` Created
|
|
6701
6754
|
* @response `404` `ProblemDetails` Not Found
|
|
6702
6755
|
* @response `422` `UnprocessableEntity` Client Error
|
|
6756
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
6703
6757
|
*/
|
|
6704
6758
|
createLoanDocument: (
|
|
6705
6759
|
loanId: string,
|
|
@@ -6732,6 +6786,7 @@ export class Api<
|
|
|
6732
6786
|
* @response `200` `LoanDocument` Success
|
|
6733
6787
|
* @response `404` `ProblemDetails` Not Found
|
|
6734
6788
|
* @response `422` `UnprocessableEntity` Client Error
|
|
6789
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
6735
6790
|
*/
|
|
6736
6791
|
retryFailedLoanDocument: (
|
|
6737
6792
|
loanId: string,
|
|
@@ -6771,6 +6826,32 @@ export class Api<
|
|
|
6771
6826
|
...params,
|
|
6772
6827
|
}),
|
|
6773
6828
|
|
|
6829
|
+
/**
|
|
6830
|
+
* No description
|
|
6831
|
+
*
|
|
6832
|
+
* @tags LoanDocuments
|
|
6833
|
+
* @name SendLoanDocuments
|
|
6834
|
+
* @summary Send existing documents to loan users or external emails
|
|
6835
|
+
* @request POST:/api/loans/{loanId}/documents/distribute
|
|
6836
|
+
* @secure
|
|
6837
|
+
* @response `200` `void` Success
|
|
6838
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
6839
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6840
|
+
*/
|
|
6841
|
+
sendLoanDocuments: (
|
|
6842
|
+
loanId: string,
|
|
6843
|
+
data: SendLoanDocumentsRequest,
|
|
6844
|
+
params: RequestParams = {},
|
|
6845
|
+
) =>
|
|
6846
|
+
this.request<void, ProblemDetails>({
|
|
6847
|
+
path: `/api/loans/${loanId}/documents/distribute`,
|
|
6848
|
+
method: "POST",
|
|
6849
|
+
body: data,
|
|
6850
|
+
secure: true,
|
|
6851
|
+
type: ContentType.Json,
|
|
6852
|
+
...params,
|
|
6853
|
+
}),
|
|
6854
|
+
|
|
6774
6855
|
/**
|
|
6775
6856
|
* No description
|
|
6776
6857
|
*
|
|
@@ -7356,7 +7437,7 @@ export class Api<
|
|
|
7356
7437
|
* @summary Search
|
|
7357
7438
|
* @request POST:/api/loans/search
|
|
7358
7439
|
* @secure
|
|
7359
|
-
* @response `200` `
|
|
7440
|
+
* @response `200` `LoanListPaginated` Success
|
|
7360
7441
|
*/
|
|
7361
7442
|
searchLoans: (
|
|
7362
7443
|
data: LoanSearchCriteria,
|
|
@@ -7370,7 +7451,7 @@ export class Api<
|
|
|
7370
7451
|
},
|
|
7371
7452
|
params: RequestParams = {},
|
|
7372
7453
|
) =>
|
|
7373
|
-
this.request<
|
|
7454
|
+
this.request<LoanListPaginated, any>({
|
|
7374
7455
|
path: `/api/loans/search`,
|
|
7375
7456
|
method: "POST",
|
|
7376
7457
|
query: query,
|
|
@@ -7420,7 +7501,7 @@ export class Api<
|
|
|
7420
7501
|
method: "PATCH",
|
|
7421
7502
|
body: data,
|
|
7422
7503
|
secure: true,
|
|
7423
|
-
type: ContentType.
|
|
7504
|
+
type: ContentType.JsonPatchPatch,
|
|
7424
7505
|
format: "json",
|
|
7425
7506
|
...params,
|
|
7426
7507
|
}),
|
|
@@ -7692,6 +7773,7 @@ export class Api<
|
|
|
7692
7773
|
* @secure
|
|
7693
7774
|
* @response `201` `UserLoanTask` Created
|
|
7694
7775
|
* @response `404` `ProblemDetails` Not Found
|
|
7776
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
7695
7777
|
*/
|
|
7696
7778
|
createLoanTask: (
|
|
7697
7779
|
loanId: string,
|
|
@@ -7699,7 +7781,7 @@ export class Api<
|
|
|
7699
7781
|
data: UserLoanTaskRequest,
|
|
7700
7782
|
params: RequestParams = {},
|
|
7701
7783
|
) =>
|
|
7702
|
-
this.request<UserLoanTask, ProblemDetails>({
|
|
7784
|
+
this.request<UserLoanTask, ProblemDetails | UnprocessableEntity>({
|
|
7703
7785
|
path: `/api/loans/${loanId}/tasks/${taskId}`,
|
|
7704
7786
|
method: "POST",
|
|
7705
7787
|
body: data,
|
|
@@ -7719,13 +7801,14 @@ export class Api<
|
|
|
7719
7801
|
* @secure
|
|
7720
7802
|
* @response `201` `(UserLoanTask)[]` Created
|
|
7721
7803
|
* @response `404` `ProblemDetails` Not Found
|
|
7804
|
+
* @response `423` `UnprocessableEntity` Client Error
|
|
7722
7805
|
*/
|
|
7723
7806
|
importLoanTask: (
|
|
7724
7807
|
loanId: string,
|
|
7725
7808
|
data: ImportUserLoanTaskRequest[],
|
|
7726
7809
|
params: RequestParams = {},
|
|
7727
7810
|
) =>
|
|
7728
|
-
this.request<UserLoanTask[], ProblemDetails>({
|
|
7811
|
+
this.request<UserLoanTask[], ProblemDetails | UnprocessableEntity>({
|
|
7729
7812
|
path: `/api/loans/${loanId}/tasks/import`,
|
|
7730
7813
|
method: "POST",
|
|
7731
7814
|
body: data,
|
|
@@ -9092,6 +9175,26 @@ export class Api<
|
|
|
9092
9175
|
...params,
|
|
9093
9176
|
}),
|
|
9094
9177
|
|
|
9178
|
+
/**
|
|
9179
|
+
* No description
|
|
9180
|
+
*
|
|
9181
|
+
* @tags TheBigPOS
|
|
9182
|
+
* @name IntegrationsLosLoansBucketsList
|
|
9183
|
+
* @request GET:/api/integrations/los/loans/{loanID}/buckets
|
|
9184
|
+
* @secure
|
|
9185
|
+
* @response `200` `void` Success
|
|
9186
|
+
*/
|
|
9187
|
+
integrationsLosLoansBucketsList: (
|
|
9188
|
+
loanId: string,
|
|
9189
|
+
params: RequestParams = {},
|
|
9190
|
+
) =>
|
|
9191
|
+
this.request<void, any>({
|
|
9192
|
+
path: `/api/integrations/los/loans/${loanId}/buckets`,
|
|
9193
|
+
method: "GET",
|
|
9194
|
+
secure: true,
|
|
9195
|
+
...params,
|
|
9196
|
+
}),
|
|
9197
|
+
|
|
9095
9198
|
/**
|
|
9096
9199
|
* No description
|
|
9097
9200
|
*
|
package/tsconfig.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es6",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"sourceMap": true,
|
|
7
|
-
"outDir": "./dist",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"moduleResolution": "node",
|
|
10
|
-
"baseUrl": "./",
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"paths": {
|
|
13
|
-
"*": [
|
|
14
|
-
"node_modules/*"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"typeRoots": [
|
|
18
|
-
"./node_modules/@types"
|
|
19
|
-
],
|
|
20
|
-
"esModuleInterop": true,
|
|
21
|
-
"skipLibCheck": true,
|
|
22
|
-
"forceConsistentCasingInFileNames": true,
|
|
23
|
-
"resolveJsonModule": true
|
|
24
|
-
},
|
|
25
|
-
"include": ["./src/**/*"],
|
|
26
|
-
"exclude": ["./dist"]
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es6",
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"outDir": "./dist",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"baseUrl": "./",
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"paths": {
|
|
13
|
+
"*": [
|
|
14
|
+
"node_modules/*"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"typeRoots": [
|
|
18
|
+
"./node_modules/@types"
|
|
19
|
+
],
|
|
20
|
+
"esModuleInterop": true,
|
|
21
|
+
"skipLibCheck": true,
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"resolveJsonModule": true
|
|
24
|
+
},
|
|
25
|
+
"include": ["./src/**/*"],
|
|
26
|
+
"exclude": ["./dist"]
|
|
27
|
+
}
|