@matech/thebigpos-sdk 3.16.0 → 3.17.0-dev-6270
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/README.md +39 -0
- package/dist/index.d.ts +83 -6
- package/dist/index.js +54 -2
- package/dist/index.js.map +1 -1
- package/docs/sdk_generation.md +149 -0
- package/package.json +16 -6
- package/scripts/apply-json-patch-content-type.js +189 -36
- package/src/index.ts +158 -7
package/src/index.ts
CHANGED
|
@@ -635,6 +635,15 @@ export type BorrowerType = "Borrower" | "CoBorrower" | "Unknown";
|
|
|
635
635
|
|
|
636
636
|
export type BorrowerRelationship = "NotApplicable" | "Spouse" | "NonSpouse";
|
|
637
637
|
|
|
638
|
+
export type BorrowerApplicationWarningCode =
|
|
639
|
+
| "UnknownKey"
|
|
640
|
+
| "NotWritable"
|
|
641
|
+
| "CustomFieldUnresolved"
|
|
642
|
+
| "CustomFieldInactive"
|
|
643
|
+
| "CustomFieldReadOnly"
|
|
644
|
+
| "CustomFieldDuplicateDefinition"
|
|
645
|
+
| "LoanOfficerUnresolved";
|
|
646
|
+
|
|
638
647
|
export type BorrowerApplicationStatus = "Draft" | "Complete";
|
|
639
648
|
|
|
640
649
|
export type BillingType = "ClosedLoan" | "LoanOfficer";
|
|
@@ -881,6 +890,7 @@ export interface AccountFailureCount {
|
|
|
881
890
|
export interface AccountSettings {
|
|
882
891
|
isSmsEnabled: boolean;
|
|
883
892
|
isLoanEditEnabled: boolean;
|
|
893
|
+
isApplicationEditEnabled?: boolean | null;
|
|
884
894
|
smsNumber?: string | null;
|
|
885
895
|
ssoHostOverride?: string | null;
|
|
886
896
|
isEarlyAdopter: boolean;
|
|
@@ -890,6 +900,7 @@ export interface AccountSettingsRequest {
|
|
|
890
900
|
isSmsEnabled: boolean;
|
|
891
901
|
smsNumber?: string | null;
|
|
892
902
|
isEarlyAdopter: boolean;
|
|
903
|
+
isApplicationEditEnabled?: boolean | null;
|
|
893
904
|
}
|
|
894
905
|
|
|
895
906
|
export interface Address {
|
|
@@ -1170,8 +1181,6 @@ export interface AiCanonicalField {
|
|
|
1170
1181
|
isDefault: boolean;
|
|
1171
1182
|
category?: string | null;
|
|
1172
1183
|
jsonPropertyName?: string | null;
|
|
1173
|
-
textractKey?: string | null;
|
|
1174
|
-
textractKeyAliases: string[];
|
|
1175
1184
|
hasAccountOverride: boolean;
|
|
1176
1185
|
writable: boolean;
|
|
1177
1186
|
patchPath?: string | null;
|
|
@@ -1777,6 +1786,36 @@ export interface AutomatedService {
|
|
|
1777
1786
|
rateLimited: string[];
|
|
1778
1787
|
}
|
|
1779
1788
|
|
|
1789
|
+
export interface BorrowerApplication {
|
|
1790
|
+
/** @format uuid */
|
|
1791
|
+
loanId: string;
|
|
1792
|
+
/** @format uuid */
|
|
1793
|
+
borrowerId: string;
|
|
1794
|
+
/** @format uuid */
|
|
1795
|
+
coBorrowerId?: string | null;
|
|
1796
|
+
applicationStatus: BorrowerApplicationApplicationStatusEnum;
|
|
1797
|
+
answers: Record<string, any>;
|
|
1798
|
+
additionalFields: Record<string, string>;
|
|
1799
|
+
cursor?: LoanApplicationSession | null;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
export interface BorrowerApplicationUpdate {
|
|
1803
|
+
warnings: BorrowerApplicationWarning[];
|
|
1804
|
+
application: BorrowerApplication;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
export interface BorrowerApplicationUpdateRequest {
|
|
1808
|
+
answers: Record<string, any>;
|
|
1809
|
+
additionalFields?: Record<string, any> | null;
|
|
1810
|
+
cursor?: LoanApplicationSessionRequest | null;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
export interface BorrowerApplicationWarning {
|
|
1814
|
+
key: string;
|
|
1815
|
+
code: BorrowerApplicationWarningCodeEnum;
|
|
1816
|
+
message: string;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1780
1819
|
export interface BorrowerCount {
|
|
1781
1820
|
/** @format uuid */
|
|
1782
1821
|
userId: string;
|
|
@@ -2409,7 +2448,6 @@ export interface CreateAiCanonicalFieldRequest {
|
|
|
2409
2448
|
description: string;
|
|
2410
2449
|
allowedRoles: string[];
|
|
2411
2450
|
isPii: boolean;
|
|
2412
|
-
dataSource: string;
|
|
2413
2451
|
category?: string | null;
|
|
2414
2452
|
}
|
|
2415
2453
|
|
|
@@ -3687,7 +3725,7 @@ export interface Invite {
|
|
|
3687
3725
|
phoneNumber: string;
|
|
3688
3726
|
relationship: string;
|
|
3689
3727
|
/** @deprecated */
|
|
3690
|
-
loanID
|
|
3728
|
+
loanID?: string | null;
|
|
3691
3729
|
route?: string | null;
|
|
3692
3730
|
/** @format uuid */
|
|
3693
3731
|
siteConfigurationID: string;
|
|
@@ -3703,7 +3741,7 @@ export interface Invite {
|
|
|
3703
3741
|
/** @format date-time */
|
|
3704
3742
|
expiresAt?: string | null;
|
|
3705
3743
|
status: string;
|
|
3706
|
-
loan
|
|
3744
|
+
loan?: LoanIdentifier | null;
|
|
3707
3745
|
url: string;
|
|
3708
3746
|
linksBorrowerApplication?: boolean | null;
|
|
3709
3747
|
}
|
|
@@ -6312,6 +6350,10 @@ export interface NotificationTemplateVersionUpdateRequest {
|
|
|
6312
6350
|
pushNotificationBody?: string | null;
|
|
6313
6351
|
}
|
|
6314
6352
|
|
|
6353
|
+
export interface OpenBorrowerApplicationEditRequest {
|
|
6354
|
+
isCoBorrower: boolean;
|
|
6355
|
+
}
|
|
6356
|
+
|
|
6315
6357
|
export type OpenTasksWidgetConfig = UtilRequiredKeys<
|
|
6316
6358
|
BaseCanvasWidgetConfig,
|
|
6317
6359
|
"type"
|
|
@@ -8620,6 +8662,17 @@ export type AuditLogEntryChangeTypeEnum =
|
|
|
8620
8662
|
| "Reactivated"
|
|
8621
8663
|
| "Accessed";
|
|
8622
8664
|
|
|
8665
|
+
export type BorrowerApplicationApplicationStatusEnum = "Draft" | "Complete";
|
|
8666
|
+
|
|
8667
|
+
export type BorrowerApplicationWarningCodeEnum =
|
|
8668
|
+
| "UnknownKey"
|
|
8669
|
+
| "NotWritable"
|
|
8670
|
+
| "CustomFieldUnresolved"
|
|
8671
|
+
| "CustomFieldInactive"
|
|
8672
|
+
| "CustomFieldReadOnly"
|
|
8673
|
+
| "CustomFieldDuplicateDefinition"
|
|
8674
|
+
| "LoanOfficerUnresolved";
|
|
8675
|
+
|
|
8623
8676
|
export type BorrowerCountRoleEnum =
|
|
8624
8677
|
| "Borrower"
|
|
8625
8678
|
| "CoBorrower"
|
|
@@ -9753,7 +9806,15 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
9753
9806
|
property instanceof Array ? property : [property];
|
|
9754
9807
|
|
|
9755
9808
|
for (const formItem of propertyContent) {
|
|
9756
|
-
|
|
9809
|
+
// React Native files are plain { uri, name, type } objects, not Blob/File.
|
|
9810
|
+
const isReactNativeFile =
|
|
9811
|
+
!!formItem &&
|
|
9812
|
+
typeof formItem === "object" &&
|
|
9813
|
+
"uri" in formItem &&
|
|
9814
|
+
"name" in formItem &&
|
|
9815
|
+
"type" in formItem;
|
|
9816
|
+
const isFileType =
|
|
9817
|
+
isReactNativeFile || formItem instanceof Blob || formItem instanceof File;
|
|
9757
9818
|
formData.append(
|
|
9758
9819
|
key,
|
|
9759
9820
|
isFileType ? formItem : this.stringifyFormItem(formItem),
|
|
@@ -9815,7 +9876,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
9815
9876
|
|
|
9816
9877
|
/**
|
|
9817
9878
|
* @title The Big POS API
|
|
9818
|
-
* @version v3.
|
|
9879
|
+
* @version v3.17.0
|
|
9819
9880
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
9820
9881
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
9821
9882
|
*/
|
|
@@ -12097,6 +12158,65 @@ export class Api<
|
|
|
12097
12158
|
...params,
|
|
12098
12159
|
}),
|
|
12099
12160
|
|
|
12161
|
+
/**
|
|
12162
|
+
* No description
|
|
12163
|
+
*
|
|
12164
|
+
* @tags BorrowerApplication
|
|
12165
|
+
* @name GetBorrowerApplication
|
|
12166
|
+
* @summary Get a borrower's application as flat answers
|
|
12167
|
+
* @request GET:/api/loans/{loanId}/borrowers/{borrowerId}/application
|
|
12168
|
+
* @secure
|
|
12169
|
+
* @response `200` `BorrowerApplication` OK
|
|
12170
|
+
* @response `400` `any` Bad Request
|
|
12171
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
12172
|
+
* @response `404` `ProblemDetails` Not Found
|
|
12173
|
+
*/
|
|
12174
|
+
getBorrowerApplication: (
|
|
12175
|
+
loanId: string,
|
|
12176
|
+
borrowerId: string,
|
|
12177
|
+
params: RequestParams = {},
|
|
12178
|
+
) =>
|
|
12179
|
+
this.request<BorrowerApplication, ProblemDetails>({
|
|
12180
|
+
path: `/api/loans/${loanId}/borrowers/${borrowerId}/application`,
|
|
12181
|
+
method: "GET",
|
|
12182
|
+
secure: true,
|
|
12183
|
+
format: "json",
|
|
12184
|
+
...params,
|
|
12185
|
+
}),
|
|
12186
|
+
|
|
12187
|
+
/**
|
|
12188
|
+
* No description
|
|
12189
|
+
*
|
|
12190
|
+
* @tags BorrowerApplication
|
|
12191
|
+
* @name UpdateBorrowerApplication
|
|
12192
|
+
* @summary Save a step of a borrower's application from flat answers
|
|
12193
|
+
* @request PATCH:/api/loans/{loanId}/borrowers/{borrowerId}/application
|
|
12194
|
+
* @secure
|
|
12195
|
+
* @response `200` `BorrowerApplicationUpdate` OK
|
|
12196
|
+
* @response `400` `any` Bad Request
|
|
12197
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
12198
|
+
* @response `404` `ProblemDetails` Not Found
|
|
12199
|
+
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
12200
|
+
*/
|
|
12201
|
+
updateBorrowerApplication: (
|
|
12202
|
+
loanId: string,
|
|
12203
|
+
borrowerId: string,
|
|
12204
|
+
data: JsonPatchDocument,
|
|
12205
|
+
params: RequestParams = {},
|
|
12206
|
+
) =>
|
|
12207
|
+
this.request<
|
|
12208
|
+
BorrowerApplicationUpdate,
|
|
12209
|
+
ProblemDetails | UnprocessableEntity
|
|
12210
|
+
>({
|
|
12211
|
+
path: `/api/loans/${loanId}/borrowers/${borrowerId}/application`,
|
|
12212
|
+
method: "PATCH",
|
|
12213
|
+
body: data,
|
|
12214
|
+
secure: true,
|
|
12215
|
+
type: "application/json",
|
|
12216
|
+
format: "json",
|
|
12217
|
+
...params,
|
|
12218
|
+
}),
|
|
12219
|
+
|
|
12100
12220
|
/**
|
|
12101
12221
|
* No description
|
|
12102
12222
|
*
|
|
@@ -15822,6 +15942,36 @@ export class Api<
|
|
|
15822
15942
|
...params,
|
|
15823
15943
|
}),
|
|
15824
15944
|
|
|
15945
|
+
/**
|
|
15946
|
+
* No description
|
|
15947
|
+
*
|
|
15948
|
+
* @tags LoanApplicationEdit
|
|
15949
|
+
* @name OpenBorrowerApplicationEdit
|
|
15950
|
+
* @summary Open a borrower's submitted application for editing
|
|
15951
|
+
* @request POST:/api/loans/{loanId}/application/edit
|
|
15952
|
+
* @secure
|
|
15953
|
+
* @response `200` `BorrowerApplication` OK
|
|
15954
|
+
* @response `400` `any` Bad Request
|
|
15955
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
15956
|
+
* @response `404` `ProblemDetails` Not Found
|
|
15957
|
+
* @response `409` `ProblemDetails` Conflict
|
|
15958
|
+
* @response `423` `any` Locked
|
|
15959
|
+
*/
|
|
15960
|
+
openBorrowerApplicationEdit: (
|
|
15961
|
+
loanId: string,
|
|
15962
|
+
data: OpenBorrowerApplicationEditRequest,
|
|
15963
|
+
params: RequestParams = {},
|
|
15964
|
+
) =>
|
|
15965
|
+
this.request<BorrowerApplication, ProblemDetails>({
|
|
15966
|
+
path: `/api/loans/${loanId}/application/edit`,
|
|
15967
|
+
method: "POST",
|
|
15968
|
+
body: data,
|
|
15969
|
+
secure: true,
|
|
15970
|
+
type: "application/json",
|
|
15971
|
+
format: "json",
|
|
15972
|
+
...params,
|
|
15973
|
+
}),
|
|
15974
|
+
|
|
15825
15975
|
/**
|
|
15826
15976
|
* No description
|
|
15827
15977
|
*
|
|
@@ -17841,6 +17991,7 @@ export class Api<
|
|
|
17841
17991
|
* @response `404` `ProblemDetails` Not Found
|
|
17842
17992
|
* @response `409` `ProblemDetails` Conflict
|
|
17843
17993
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
17994
|
+
* @response `423` `ProblemDetails` Locked
|
|
17844
17995
|
*/
|
|
17845
17996
|
completeBorrowerApplication: (
|
|
17846
17997
|
loanId: string,
|