@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 CHANGED
@@ -1,2 +1,2 @@
1
- yarn build
1
+ yarn build
2
2
  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,44 +1,44 @@
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
- ____
44
- © 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
+ ____
44
+ © 2024 Mortgage Automation Technologies. All rights reserved
@@ -0,0 +1,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 = './src/index.ts'
14
+ let content = fs.readFileSync(path, 'utf8')
15
+
16
+ // Update PATCH methods to use ContentType.JsonPatch
17
+ content = content.replace(
18
+ /(method:\s*"PATCH"[\s\S]+?)type:\s*ContentType\.Json/g,
19
+ (match) => match.replace('ContentType.Json', 'ContentType.JsonPatch')
20
+ )
21
+
22
+ // Ensure JsonPatch is included in the ContentType enum
23
+ content = content.replace(
24
+ /export enum ContentType\s*{([\s\S]*?)}/,
25
+ (match, enumBody) => {
26
+ if (enumBody.includes('JsonPatch')) return match
27
+ const insertion = ` JsonPatch = "application/json-patch+json",\n `
28
+ return `export enum ContentType {\n${insertion}${enumBody.trim()}\n}`
29
+ }
30
+ )
31
+
32
+ // Fix the Operation interface to allow any value
33
+ content = content.replace(
34
+ /export interface Operation\s*{([\s\S]*?)}/,
35
+ (match, body) => {
36
+ const updated = body.replace(
37
+ /value\?:\s*object\s*\|?\s*null?;/,
38
+ 'value?: any | null;'
39
+ )
40
+ return `export interface Operation {\n ${updated.trim()}\n}`
41
+ }
42
+ )
43
+
44
+ fs.writeFileSync(path, content)
45
+ console.log('SDK patch complete: All PATCH methods now use ContentType.JsonPatch.')
package/dist/index.d.ts CHANGED
@@ -1,125 +1,19 @@
1
- export declare enum UserRole {
2
- Borrower = "Borrower",
3
- LoanOfficer = "LoanOfficer",
4
- Admin = "Admin",
5
- SuperAdmin = "SuperAdmin",
6
- Realtor = "Realtor",
7
- SettlementAgent = "SettlementAgent",
8
- LoanProcessor = "LoanProcessor",
9
- LoanOfficerAssistant = "LoanOfficerAssistant",
10
- BranchManager = "BranchManager",
11
- SystemAdmin = "SystemAdmin"
12
- }
13
- export declare enum SiteConfigurationType {
14
- None = "None",
15
- Account = "Account",
16
- Corporate = "Corporate",
17
- Branch = "Branch",
18
- LoanOfficer = "LoanOfficer",
19
- Partner = "Partner"
20
- }
21
- export declare enum SSOIntegrationType {
22
- ConsumerConnect = "ConsumerConnect",
23
- TheBigPOS = "TheBigPOS"
24
- }
25
- export declare enum LogLevel {
26
- None = "None",
27
- Info = "Info",
28
- Warning = "Warning",
29
- Error = "Error"
30
- }
31
- export declare enum LoanRole {
32
- Borrower = "Borrower",
33
- CoBorrower = "CoBorrower",
34
- NonBorrower = "NonBorrower",
35
- LoanOfficer = "LoanOfficer",
36
- LoanProcessor = "LoanProcessor",
37
- LoanOfficerAssistant = "LoanOfficerAssistant",
38
- SupportingLoanOfficer = "SupportingLoanOfficer",
39
- BuyerAgent = "BuyerAgent",
40
- SellerAgent = "SellerAgent",
41
- TitleInsuranceAgent = "TitleInsuranceAgent",
42
- EscrowAgent = "EscrowAgent",
43
- SettlementAgent = "SettlementAgent"
44
- }
45
- export declare enum LoanQueueType {
46
- Unknown = "Unknown",
47
- New = "New",
48
- Append = "Append",
49
- Update = "Update",
50
- FieldUpdates = "FieldUpdates",
51
- Document = "Document",
52
- Buckets = "Buckets"
53
- }
54
- export declare enum LoanQueueReason {
55
- Unknown = "Unknown",
56
- Locked = "Locked",
57
- LOSError = "LOSError",
58
- Exception = "Exception"
59
- }
60
- export declare enum LoanLogType {
61
- Loan = "Loan",
62
- Queue = "Queue",
63
- POSFlagChanged = "POSFlagChanged",
64
- Verification = "Verification"
65
- }
66
- export declare enum LoanImportStatus {
67
- WaitingProcess = "WaitingProcess",
68
- InProgress = "InProgress",
69
- Completed = "Completed",
70
- Failed = "Failed",
71
- Cancelled = "Cancelled"
72
- }
73
- export declare enum LOSStatus {
74
- Unknown = "Unknown",
75
- Pending = "Pending",
76
- Retrying = "Retrying",
77
- Successful = "Successful",
78
- Failed = "Failed",
79
- FailedPermanently = "FailedPermanently"
80
- }
81
- export declare enum FilterType {
82
- DateGreaterThanOrEqualTo = "DateGreaterThanOrEqualTo",
83
- DateGreaterThan = "DateGreaterThan",
84
- DateLessThan = "DateLessThan",
85
- DateLessThanOrEqualTo = "DateLessThanOrEqualTo",
86
- DateEquals = "DateEquals",
87
- DateDoesntEqual = "DateDoesntEqual",
88
- DateNonEmpty = "DateNonEmpty",
89
- DateEmpty = "DateEmpty",
90
- StringContains = "StringContains",
91
- StringEquals = "StringEquals",
92
- StringNotEmpty = "StringNotEmpty",
93
- StringNotEquals = "StringNotEquals",
94
- StringNotContains = "StringNotContains"
95
- }
96
- export declare enum Environment {
97
- Development = "Development",
98
- Staging = "Staging",
99
- UAT = "UAT",
100
- Production = "Production"
101
- }
102
- export declare enum EntityType {
103
- Account = "Account",
104
- Corporate = "Corporate",
105
- Branch = "Branch",
106
- LoanOfficer = "LoanOfficer",
107
- Realtor = "Realtor"
108
- }
109
- export declare enum BranchType {
110
- Mortgage = "Mortgage",
111
- RealEstate = "RealEstate"
112
- }
113
- export declare enum BorrowerType {
114
- Borrower = "Borrower",
115
- CoBorrower = "CoBorrower",
116
- Unknown = "Unknown"
117
- }
118
- export declare enum BorrowerRelationship {
119
- NotApplicable = "NotApplicable",
120
- Spouse = "Spouse",
121
- NonSpouse = "NonSpouse"
122
- }
1
+ export type UserRole = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "BranchManager" | "SystemAdmin";
2
+ export type SiteConfigurationType = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
3
+ export type SSOIntegrationType = "ConsumerConnect" | "TheBigPOS";
4
+ export type OperationType = "Add" | "Remove" | "Replace" | "Move" | "Copy" | "Test" | "Invalid";
5
+ export type LogLevel = "None" | "Info" | "Warning" | "Error";
6
+ export type LoanRole = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
7
+ export type LoanQueueType = "Unknown" | "New" | "Append" | "Update" | "FieldUpdates" | "Document" | "Buckets";
8
+ export type LoanQueueReason = "Unknown" | "Locked" | "LOSError" | "Exception";
9
+ export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification";
10
+ export type LOSStatus = "Unknown" | "Pending" | "Retrying" | "Successful" | "Failed" | "FailedPermanently";
11
+ export type FilterType = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
12
+ export type Environment = "Development" | "Staging" | "UAT" | "Production";
13
+ export type EntityType = "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Realtor";
14
+ export type BranchType = "Mortgage" | "RealEstate";
15
+ export type BorrowerType = "Borrower" | "CoBorrower" | "Unknown";
16
+ export type BorrowerRelationship = "NotApplicable" | "Spouse" | "NonSpouse";
123
17
  export interface ASOSettings {
124
18
  enabled: boolean;
125
19
  softPull: boolean;
@@ -585,15 +479,6 @@ export interface CreateInviteRequest {
585
479
  userRole?: UserRole | null;
586
480
  loanRole?: LoanRole | null;
587
481
  }
588
- export interface CreateLoanImportRequest {
589
- /** @format date-time */
590
- endDate: string;
591
- /**
592
- * @format date-time
593
- * @minLength 1
594
- */
595
- startDate: string;
596
- }
597
482
  export interface CreateUserRelationRequest {
598
483
  /**
599
484
  * @format uuid
@@ -900,6 +785,7 @@ export interface EnabledServices {
900
785
  borrowerTasks?: boolean | null;
901
786
  docusign?: boolean | null;
902
787
  emailNotifications?: boolean | null;
788
+ autoTaskReminders?: boolean | null;
903
789
  voc?: boolean | null;
904
790
  spanishPrequal?: boolean | null;
905
791
  spanishFullApp?: boolean | null;
@@ -965,6 +851,7 @@ export interface ExtendedLoan {
965
851
  isInSync: boolean;
966
852
  /** @format date-time */
967
853
  syncDate?: string | null;
854
+ excludeFromAutoTaskReminders?: boolean | null;
968
855
  fileStarter?: string | null;
969
856
  isPOSLoan?: boolean | null;
970
857
  referenceID: string;
@@ -975,6 +862,7 @@ export interface ExtendedLoan {
975
862
  status?: string | null;
976
863
  loanOfficer?: LoanOfficer | null;
977
864
  propertyAddress?: Address | null;
865
+ loanSettings?: LoanSettings | null;
978
866
  loanLogs: LoanLog[];
979
867
  isLocked: boolean;
980
868
  source?: string | null;
@@ -1293,6 +1181,7 @@ export interface GetWorkflowRequest {
1293
1181
  userRole?: string | null;
1294
1182
  language?: string | null;
1295
1183
  }
1184
+ export type IContractResolver = object;
1296
1185
  export interface ImportUserLoanTaskRequest {
1297
1186
  /**
1298
1187
  * @format uuid
@@ -1465,6 +1354,7 @@ export interface Loan {
1465
1354
  isInSync: boolean;
1466
1355
  /** @format date-time */
1467
1356
  syncDate?: string | null;
1357
+ excludeFromAutoTaskReminders?: boolean | null;
1468
1358
  fileStarter?: string | null;
1469
1359
  isPOSLoan?: boolean | null;
1470
1360
  referenceID: string;
@@ -1475,6 +1365,7 @@ export interface Loan {
1475
1365
  status?: string | null;
1476
1366
  loanOfficer?: LoanOfficer | null;
1477
1367
  propertyAddress?: Address | null;
1368
+ loanSettings?: LoanSettings | null;
1478
1369
  loanLogs: LoanLog[];
1479
1370
  isLocked: boolean;
1480
1371
  source?: string | null;
@@ -1517,6 +1408,14 @@ export interface LoanComparisonScenario {
1517
1408
  lenderCredit?: string | null;
1518
1409
  fundingFee?: string | null;
1519
1410
  }
1411
+ export interface LoanConsentRequest {
1412
+ /** @format email */
1413
+ borrowerEmail?: string | null;
1414
+ borrowerEConsent?: boolean | null;
1415
+ borrowerCreditAuth?: boolean | null;
1416
+ borrowerTCPAOptIn?: boolean | null;
1417
+ additionalFields?: Record<string, string>;
1418
+ }
1520
1419
  export interface LoanContact {
1521
1420
  /** @format date-time */
1522
1421
  createdAt: string;
@@ -1561,30 +1460,6 @@ export interface LoanDraftSearchCriteria {
1561
1460
  siteConfigurationId?: string | null;
1562
1461
  isUnassigned?: boolean | null;
1563
1462
  }
1564
- export interface LoanImport {
1565
- /** @format uuid */
1566
- id: string;
1567
- /** @format uuid */
1568
- accountID: string;
1569
- /** @format date-time */
1570
- endDate: string;
1571
- /** @format date-time */
1572
- startDate: string;
1573
- /** @format int32 */
1574
- attemptCount: number;
1575
- /** @format int32 */
1576
- importedCount: number;
1577
- statusMessage?: string | null;
1578
- status: "WaitingProcess" | "InProgress" | "Completed" | "Failed" | "Cancelled";
1579
- /** @format date-time */
1580
- createdAt?: string | null;
1581
- }
1582
- export interface LoanImportPaginated {
1583
- rows: LoanImport[];
1584
- pagination: Pagination;
1585
- /** @format int64 */
1586
- count: number;
1587
- }
1588
1463
  export interface LoanLog {
1589
1464
  /** @format uuid */
1590
1465
  id: string;
@@ -1689,13 +1564,19 @@ export interface LoanSearchCriteria {
1689
1564
  /** @format uuid */
1690
1565
  siteConfigurationId?: string | null;
1691
1566
  }
1692
- export interface LoanUpdateRequest {
1693
- /** @format email */
1694
- borrowerEmail?: string | null;
1695
- borrowerEConsent?: boolean | null;
1696
- borrowerCreditAuth?: boolean | null;
1697
- borrowerTCPAOptIn?: boolean | null;
1698
- additionalFields?: Record<string, string>;
1567
+ export interface LoanSettings {
1568
+ excludeFromAutoTaskReminders: boolean;
1569
+ }
1570
+ export interface LoanUpdateRequestJsonPatchDocument {
1571
+ operations?: LoanUpdateRequestOperation[] | null;
1572
+ contractResolver?: IContractResolver | null;
1573
+ }
1574
+ export interface LoanUpdateRequestOperation {
1575
+ operationType: "Add" | "Remove" | "Replace" | "Move" | "Copy" | "Test" | "Invalid";
1576
+ path?: string | null;
1577
+ op?: string | null;
1578
+ from?: string | null;
1579
+ value?: any;
1699
1580
  }
1700
1581
  export interface LoanUser {
1701
1582
  /** @format uuid */
@@ -1888,7 +1769,7 @@ export interface NotificationTemplateVersionUpdateRequest {
1888
1769
  }
1889
1770
  export interface Operation {
1890
1771
  op?: string;
1891
- value?: object | null;
1772
+ value?: any | null;
1892
1773
  path?: string;
1893
1774
  }
1894
1775
  export interface OverridePasswordRequest {
@@ -2320,6 +2201,7 @@ export interface SiteConfiguration {
2320
2201
  user?: UserPublic | null;
2321
2202
  asoSettings?: ASOSettings | null;
2322
2203
  accountSettings: AccountSettings;
2204
+ autoTaskReminderIntervalsInDays: number[];
2323
2205
  }
2324
2206
  export interface SiteConfigurationByUrl {
2325
2207
  /** @format date-time */
@@ -2510,6 +2392,7 @@ export interface SiteConfigurationByUrl {
2510
2392
  user?: UserPublic | null;
2511
2393
  asoSettings?: ASOSettings | null;
2512
2394
  accountSettings: AccountSettings;
2395
+ autoTaskReminderIntervalsInDays: number[];
2513
2396
  workflows: Workflow[];
2514
2397
  }
2515
2398
  export interface SiteConfigurationForm {
@@ -2711,6 +2594,7 @@ export interface SiteConfigurationRequest {
2711
2594
  modules?: Module[] | null;
2712
2595
  /** @format uuid */
2713
2596
  userID?: string | null;
2597
+ autoTaskReminderIntervalsInDays: number[];
2714
2598
  }
2715
2599
  export interface SiteConfigurationSearchCriteria {
2716
2600
  searchText?: string | null;
@@ -3280,6 +3164,7 @@ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequest
3280
3164
  format?: ResponseType;
3281
3165
  }
3282
3166
  export declare enum ContentType {
3167
+ JsonPatch = "application/json-patch+json",
3283
3168
  Json = "application/json",
3284
3169
  JsonApi = "application/vnd.api+json",
3285
3170
  FormData = "multipart/form-data",
@@ -3301,7 +3186,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
3301
3186
  }
3302
3187
  /**
3303
3188
  * @title The Big POS API
3304
- * @version v2.18.3
3189
+ * @version v2.18.4
3305
3190
  * @termsOfService https://www.thebigpos.com/terms-of-use/
3306
3191
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
3307
3192
  */
@@ -4456,14 +4341,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4456
4341
  * No description
4457
4342
  *
4458
4343
  * @tags LegacyLoan
4459
- * @name UpdateLoan
4460
- * @summary Update Loan
4344
+ * @name UpdateLoanConsent
4345
+ * @summary Update Loan Consent
4461
4346
  * @request PATCH:/api/los/loan/application/{loanID}
4462
4347
  * @secure
4463
4348
  * @response `200` `string` Success
4464
4349
  * @response `422` `UnprocessableEntity` Client Error
4465
4350
  */
4466
- updateLoan: (loanId: string, data: JsonPatchDocument, params?: RequestParams) => Promise<AxiosResponse<string, any>>;
4351
+ updateLoanConsent: (loanId: string, data: JsonPatchDocument, params?: RequestParams) => Promise<AxiosResponse<string, any>>;
4467
4352
  /**
4468
4353
  * No description
4469
4354
  *
@@ -5031,48 +4916,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5031
4916
  * @response `200` `Draft` Success
5032
4917
  */
5033
4918
  reassignLoanOfficer: (draftId: string, data: DraftLoanOfficerReassignRequest, params?: RequestParams) => Promise<AxiosResponse<Draft, any>>;
5034
- /**
5035
- * No description
5036
- *
5037
- * @tags LoanImport
5038
- * @name GetLoanImports
5039
- * @summary Get Loan Imports
5040
- * @request GET:/api/loan-imports
5041
- * @secure
5042
- * @response `200` `LoanImportPaginated` Success
5043
- */
5044
- getLoanImports: (query?: {
5045
- status?: LoanImportStatus;
5046
- searchText?: string;
5047
- /** @format int32 */
5048
- pageSize?: number;
5049
- /** @format int32 */
5050
- pageNumber?: number;
5051
- sortBy?: string;
5052
- sortDirection?: string;
5053
- }, params?: RequestParams) => Promise<AxiosResponse<LoanImportPaginated, any>>;
5054
- /**
5055
- * No description
5056
- *
5057
- * @tags LoanImport
5058
- * @name CreateLoanImport
5059
- * @summary Create Loan Import
5060
- * @request POST:/api/loan-imports
5061
- * @secure
5062
- * @response `201` `LoanImport` Created
5063
- */
5064
- createLoanImport: (data: CreateLoanImportRequest, params?: RequestParams) => Promise<AxiosResponse<LoanImport, any>>;
5065
- /**
5066
- * No description
5067
- *
5068
- * @tags LoanImport
5069
- * @name GetLoanImport
5070
- * @summary Get Loan Import
5071
- * @request GET:/api/loan-imports/{id}
5072
- * @secure
5073
- * @response `200` `LoanImport` Success
5074
- */
5075
- getLoanImport: (id: string, params?: RequestParams) => Promise<AxiosResponse<LoanImport, any>>;
5076
4919
  /**
5077
4920
  * No description
5078
4921
  *
@@ -5324,11 +5167,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5324
5167
  * @tags Loans
5325
5168
  * @name ImportLoanFromLos
5326
5169
  * @summary Import from LOS
5327
- * @request POST:/api/loans/{loanId}/import-from-los
5170
+ * @request POST:/api/loans/import-from-los/{loanId}
5328
5171
  * @secure
5329
5172
  * @response `200` `Loan` Success
5330
5173
  */
5331
5174
  importLoanFromLos: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<Loan, any>>;
5175
+ /**
5176
+ * No description
5177
+ *
5178
+ * @tags Loans
5179
+ * @name UpdateLoan
5180
+ * @summary Update loan fields
5181
+ * @request PATCH:/api/loans/{loanId}
5182
+ * @secure
5183
+ * @response `200` `Loan` Success
5184
+ */
5185
+ updateLoan: (loanId: string, data: JsonPatchDocument, params?: RequestParams) => Promise<AxiosResponse<Loan, any>>;
5332
5186
  /**
5333
5187
  * No description
5334
5188
  *