@matech/thebigpos-sdk 3.15.0 → 3.16.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/src/index.ts CHANGED
@@ -10,6 +10,8 @@
10
10
  * ---------------------------------------------------------------
11
11
  */
12
12
 
13
+ type UtilRequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
14
+
13
15
  export type VersionStatusType = "Draft" | "Published";
14
16
 
15
17
  export type UserRole =
@@ -141,6 +143,20 @@ export type LoanRefinancePurpose =
141
143
 
142
144
  export type LoanRealEstateStatus = "Keep" | "Rent" | "Sell" | "PendingSale";
143
145
 
146
+ export type LoanRealEstatePropertyType =
147
+ | "SingleFamily"
148
+ | "Condominium"
149
+ | "Townhouse"
150
+ | "Cooperative"
151
+ | "TwoToFourUnitProperty"
152
+ | "MultifamilyMoreThanFourUnits"
153
+ | "ManufacturedMobileHome"
154
+ | "CommercialNonResidential"
155
+ | "HomeAndBusinessCombined"
156
+ | "MixedUseResidential"
157
+ | "Farm"
158
+ | "Land";
159
+
144
160
  export type LoanRealEstateOccupancyType =
145
161
  | "PrimaryHome"
146
162
  | "SecondHome"
@@ -292,7 +308,8 @@ export type LoanLogType =
292
308
  | "CoBorrowerEmailAutoFixed"
293
309
  | "LosFieldWriteBack"
294
310
  | "ReferrerChangeDiscarded"
295
- | "TaskEdited";
311
+ | "TaskEdited"
312
+ | "SigningMethodChanged";
296
313
 
297
314
  export type LoanLienPosition = "First" | "Subordinate";
298
315
 
@@ -561,6 +578,55 @@ export type CompanyDocumentIndexStatus =
561
578
 
562
579
  export type ClassificationSource = "Textract" | "Llm" | "Manual";
563
580
 
581
+ export type CanvasWidgetType =
582
+ | "Information"
583
+ | "Kpi"
584
+ | "KeyDates"
585
+ | "LoanProgress"
586
+ | "MonthlyPayment"
587
+ | "Amortization"
588
+ | "PrimaryBorrower"
589
+ | "OpenTasks"
590
+ | "Documents"
591
+ | "EsignStatus"
592
+ | "LoanTeam"
593
+ | "TextBlock"
594
+ | "SectionDivider"
595
+ | "MyTasks"
596
+ | "RecentLoans"
597
+ | "ClosingSoon";
598
+
599
+ export type CanvasWidgetScope = "Loan" | "User" | "Any";
600
+
601
+ export type CanvasSurface = "Home" | "LoanSummary" | "LoanDetails";
602
+
603
+ export type CanvasLabelPosition = "Left" | "Above";
604
+
605
+ export type CanvasInformationItemKind = "Field" | "Heading" | "Separator";
606
+
607
+ export type CanvasFieldSource = "Standard" | "Custom";
608
+
609
+ export type CanvasFieldFormat =
610
+ | "Text"
611
+ | "Number"
612
+ | "Currency"
613
+ | "Percent"
614
+ | "DateShort"
615
+ | "DateLong"
616
+ | "YesNo";
617
+
618
+ export type CanvasFieldDataType =
619
+ | "Text"
620
+ | "Number"
621
+ | "Decimal"
622
+ | "Boolean"
623
+ | "Date"
624
+ | "DateTime"
625
+ | "SingleSelect"
626
+ | "MultiSelect";
627
+
628
+ export type CanvasAudience = "Staff" | "Borrower" | "Partner";
629
+
564
630
  export type BulkLoanTaskOperationType = "SetStatus" | "Delete" | "SetDueDate";
565
631
 
566
632
  export type BranchType = "Mortgage" | "RealEstate";
@@ -701,6 +767,41 @@ export type AddressFamily =
701
767
  | "ControllerAreaNetwork"
702
768
  | "Unknown";
703
769
 
770
+ export type CanvasWidgetConfig = BaseCanvasWidgetConfig &
771
+ (
772
+ | BaseCanvasWidgetConfigTypeMapping<"Information", InformationWidgetConfig>
773
+ | BaseCanvasWidgetConfigTypeMapping<"Kpi", KpiWidgetConfig>
774
+ | BaseCanvasWidgetConfigTypeMapping<"KeyDates", KeyDatesWidgetConfig>
775
+ | BaseCanvasWidgetConfigTypeMapping<
776
+ "LoanProgress",
777
+ LoanProgressWidgetConfig
778
+ >
779
+ | BaseCanvasWidgetConfigTypeMapping<
780
+ "MonthlyPayment",
781
+ MonthlyPaymentWidgetConfig
782
+ >
783
+ | BaseCanvasWidgetConfigTypeMapping<
784
+ "Amortization",
785
+ AmortizationWidgetConfig
786
+ >
787
+ | BaseCanvasWidgetConfigTypeMapping<
788
+ "PrimaryBorrower",
789
+ PrimaryBorrowerWidgetConfig
790
+ >
791
+ | BaseCanvasWidgetConfigTypeMapping<"OpenTasks", OpenTasksWidgetConfig>
792
+ | BaseCanvasWidgetConfigTypeMapping<"Documents", DocumentsWidgetConfig>
793
+ | BaseCanvasWidgetConfigTypeMapping<"EsignStatus", EsignStatusWidgetConfig>
794
+ | BaseCanvasWidgetConfigTypeMapping<"LoanTeam", LoanTeamWidgetConfig>
795
+ | BaseCanvasWidgetConfigTypeMapping<"TextBlock", TextBlockWidgetConfig>
796
+ | BaseCanvasWidgetConfigTypeMapping<
797
+ "SectionDivider",
798
+ SectionDividerWidgetConfig
799
+ >
800
+ | BaseCanvasWidgetConfigTypeMapping<"MyTasks", MyTasksWidgetConfig>
801
+ | BaseCanvasWidgetConfigTypeMapping<"RecentLoans", RecentLoansWidgetConfig>
802
+ | BaseCanvasWidgetConfigTypeMapping<"ClosingSoon", ClosingSoonWidgetConfig>
803
+ );
804
+
704
805
  export interface ASOSettings {
705
806
  enabled: boolean;
706
807
  softPull: boolean;
@@ -1043,7 +1144,7 @@ export interface AiAuditLog {
1043
1144
  guardrailCategory?: string | null;
1044
1145
  rawRequest?: string | null;
1045
1146
  rawResponse?: string | null;
1046
- details: any;
1147
+ details?: any | null;
1047
1148
  /** @format date-time */
1048
1149
  createdAt: string;
1049
1150
  }
@@ -1555,6 +1656,13 @@ export interface AmortizationSchedule {
1555
1656
  pmi: number;
1556
1657
  }
1557
1658
 
1659
+ export type AmortizationWidgetConfig = UtilRequiredKeys<
1660
+ BaseCanvasWidgetConfig,
1661
+ "type"
1662
+ > & {
1663
+ type: AmortizationWidgetConfigTypeEnum;
1664
+ };
1665
+
1558
1666
  export interface ApplicationRowData {
1559
1667
  borrowerEmail?: string | null;
1560
1668
  borrowerFirstName?: string | null;
@@ -1630,7 +1738,7 @@ export interface AuditLogEntry {
1630
1738
  rootEntityType?: string | null;
1631
1739
  /** @format uuid */
1632
1740
  rootEntityId?: string | null;
1633
- changes: any;
1741
+ changes?: any | null;
1634
1742
  /** @format date-time */
1635
1743
  createdAt: string;
1636
1744
  }
@@ -1828,6 +1936,227 @@ export interface BusinessRuleRequest {
1828
1936
  applyToAllBorrowerPairs: boolean;
1829
1937
  }
1830
1938
 
1939
+ export interface CanvasAuthor {
1940
+ /** @format uuid */
1941
+ id: string;
1942
+ firstName: string;
1943
+ lastName: string;
1944
+ email: string;
1945
+ }
1946
+
1947
+ export interface CanvasBoard {
1948
+ name?: string | null;
1949
+ roles: UserRole[];
1950
+ widgetIds: string[];
1951
+ widgets: Record<string, CanvasWidget>;
1952
+ }
1953
+
1954
+ export interface CanvasBoardView {
1955
+ widgetIds: string[];
1956
+ widgets: Record<string, CanvasWidgetView>;
1957
+ }
1958
+
1959
+ export interface CanvasDocument {
1960
+ /** @format int32 */
1961
+ schemaVersion: number;
1962
+ boards?: CanvasBoard[] | null;
1963
+ tabs?: CanvasTab[] | null;
1964
+ }
1965
+
1966
+ export interface CanvasFieldCatalog {
1967
+ fields: CanvasFieldDescriptor[];
1968
+ }
1969
+
1970
+ export interface CanvasFieldDescriptor {
1971
+ source: CanvasFieldDescriptorSourceEnum;
1972
+ key: string;
1973
+ label: string;
1974
+ category: string;
1975
+ categoryKey: string;
1976
+ dataType: CanvasFieldDescriptorDataTypeEnum;
1977
+ format: CanvasFieldDescriptorFormatEnum;
1978
+ encompassFieldId?: string | null;
1979
+ readableRoles: UserRole[];
1980
+ isActive: boolean;
1981
+ rolesWithoutPermissionRows: UserRole[];
1982
+ options: string[];
1983
+ }
1984
+
1985
+ export interface CanvasFieldRef {
1986
+ source: CanvasFieldRefSourceEnum;
1987
+ key: string;
1988
+ }
1989
+
1990
+ export interface CanvasFieldValue {
1991
+ dataType: CanvasFieldValueDataTypeEnum;
1992
+ value?: any | null;
1993
+ }
1994
+
1995
+ export interface CanvasFieldValues {
1996
+ standard: Record<string, CanvasFieldValue>;
1997
+ custom: Record<string, CanvasFieldValue>;
1998
+ }
1999
+
2000
+ export interface CanvasFieldValuesRequest {
2001
+ standardKeys: string[];
2002
+ customFieldIds: string[];
2003
+ }
2004
+
2005
+ export interface CanvasFieldView {
2006
+ label: string;
2007
+ dataType: CanvasFieldViewDataTypeEnum;
2008
+ format: CanvasFieldViewFormatEnum;
2009
+ options: string[];
2010
+ }
2011
+
2012
+ export interface CanvasInformationItem {
2013
+ kind: CanvasInformationItemKindEnum;
2014
+ field?: CanvasFieldRef | null;
2015
+ text?: string | null;
2016
+ label?: string | null;
2017
+ format?: CanvasFieldFormat | null;
2018
+ emphasis: boolean;
2019
+ hideWhenEmpty: boolean;
2020
+ roles: UserRole[];
2021
+ /** @format int32 */
2022
+ column: number;
2023
+ }
2024
+
2025
+ export interface CanvasSourceSite {
2026
+ /** @format uuid */
2027
+ siteConfigurationID: string;
2028
+ name: string;
2029
+ type: CanvasSourceSiteTypeEnum;
2030
+ }
2031
+
2032
+ export interface CanvasSurfaceState {
2033
+ surface: CanvasSurfaceStateSurfaceEnum;
2034
+ own?: CanvasDocument | null;
2035
+ /** @format int32 */
2036
+ ownVersion?: number | null;
2037
+ isOwnUnreadable: boolean;
2038
+ /** @format date-time */
2039
+ ownUpdatedAt?: string | null;
2040
+ /** @format uuid */
2041
+ forkedFromSiteConfigurationID?: string | null;
2042
+ /** @format int32 */
2043
+ forkedFromVersion?: number | null;
2044
+ inherited?: CanvasDocument | null;
2045
+ /** @format int32 */
2046
+ inheritedVersion?: number | null;
2047
+ inheritedFrom?: CanvasSourceSite | null;
2048
+ isBehindInherited: boolean;
2049
+ effectiveBoards?: CanvasBoard[] | null;
2050
+ effectiveTabs?: ResolvedCanvasTab[] | null;
2051
+ }
2052
+
2053
+ export interface CanvasTab {
2054
+ key: string;
2055
+ /** @format int32 */
2056
+ version: number;
2057
+ title: string;
2058
+ roles: UserRole[];
2059
+ copiedFrom?: CanvasTabOrigin | null;
2060
+ board: CanvasBoard;
2061
+ }
2062
+
2063
+ export interface CanvasTabOrigin {
2064
+ /** @format uuid */
2065
+ siteConfigurationID: string;
2066
+ tabKey: string;
2067
+ /** @format int32 */
2068
+ version: number;
2069
+ }
2070
+
2071
+ export interface CanvasTabView {
2072
+ key: string;
2073
+ title: string;
2074
+ board: CanvasBoardView;
2075
+ }
2076
+
2077
+ export interface CanvasVersion {
2078
+ /** @format int32 */
2079
+ version: number;
2080
+ /** @format date-time */
2081
+ createdAt: string;
2082
+ createdBy?: CanvasAuthor | null;
2083
+ }
2084
+
2085
+ export interface CanvasView {
2086
+ surface: CanvasViewSurfaceEnum;
2087
+ isConfigured: boolean;
2088
+ board?: CanvasBoardView | null;
2089
+ tabs?: CanvasTabView[] | null;
2090
+ standardFields: Record<string, CanvasFieldView>;
2091
+ customFields: Record<string, CanvasFieldView>;
2092
+ }
2093
+
2094
+ export interface CanvasWidget {
2095
+ type: CanvasWidgetTypeEnum;
2096
+ /** @format int32 */
2097
+ configVersion: number;
2098
+ title?: string | null;
2099
+ /** @format int32 */
2100
+ width: number;
2101
+ roles: UserRole[];
2102
+ config:
2103
+ | InformationWidgetConfig
2104
+ | KpiWidgetConfig
2105
+ | KeyDatesWidgetConfig
2106
+ | LoanProgressWidgetConfig
2107
+ | MonthlyPaymentWidgetConfig
2108
+ | AmortizationWidgetConfig
2109
+ | PrimaryBorrowerWidgetConfig
2110
+ | OpenTasksWidgetConfig
2111
+ | DocumentsWidgetConfig
2112
+ | EsignStatusWidgetConfig
2113
+ | LoanTeamWidgetConfig
2114
+ | TextBlockWidgetConfig
2115
+ | SectionDividerWidgetConfig
2116
+ | MyTasksWidgetConfig
2117
+ | RecentLoansWidgetConfig
2118
+ | ClosingSoonWidgetConfig;
2119
+ }
2120
+
2121
+ export interface CanvasWidgetTypeDescriptor {
2122
+ type: CanvasWidgetTypeDescriptorTypeEnum;
2123
+ scope: CanvasWidgetTypeDescriptorScopeEnum;
2124
+ surfaces: CanvasSurface[];
2125
+ audiences: CanvasAudience[];
2126
+ allowedRoles: UserRole[];
2127
+ allowedWidths: number[];
2128
+ /** @format int32 */
2129
+ maxPerBoard: number;
2130
+ /** @format int32 */
2131
+ configVersion: number;
2132
+ }
2133
+
2134
+ export interface CanvasWidgetView {
2135
+ type: CanvasWidgetViewTypeEnum;
2136
+ /** @format int32 */
2137
+ configVersion: number;
2138
+ title?: string | null;
2139
+ /** @format int32 */
2140
+ width: number;
2141
+ config:
2142
+ | InformationWidgetConfig
2143
+ | KpiWidgetConfig
2144
+ | KeyDatesWidgetConfig
2145
+ | LoanProgressWidgetConfig
2146
+ | MonthlyPaymentWidgetConfig
2147
+ | AmortizationWidgetConfig
2148
+ | PrimaryBorrowerWidgetConfig
2149
+ | OpenTasksWidgetConfig
2150
+ | DocumentsWidgetConfig
2151
+ | EsignStatusWidgetConfig
2152
+ | LoanTeamWidgetConfig
2153
+ | TextBlockWidgetConfig
2154
+ | SectionDividerWidgetConfig
2155
+ | MyTasksWidgetConfig
2156
+ | RecentLoansWidgetConfig
2157
+ | ClosingSoonWidgetConfig;
2158
+ }
2159
+
1831
2160
  export interface ChangePasswordRequest {
1832
2161
  oldPassword: string;
1833
2162
  newPassword: string;
@@ -1862,6 +2191,17 @@ export interface ClosedLoansReportRequest {
1862
2191
  endDate: string;
1863
2192
  }
1864
2193
 
2194
+ export type ClosingSoonWidgetConfig = UtilRequiredKeys<
2195
+ BaseCanvasWidgetConfig,
2196
+ "type"
2197
+ > & {
2198
+ /** @format int32 */
2199
+ withinDays: number;
2200
+ /** @format int32 */
2201
+ maxItems: number;
2202
+ type: ClosingSoonWidgetConfigTypeEnum;
2203
+ };
2204
+
1865
2205
  export interface CommentUserInformation {
1866
2206
  entityId: string;
1867
2207
  entityType: string;
@@ -2521,6 +2861,16 @@ export interface DocumentTemplateVersionUpdateRequest {
2521
2861
  htmlBody: string;
2522
2862
  }
2523
2863
 
2864
+ export type DocumentsWidgetConfig = UtilRequiredKeys<
2865
+ BaseCanvasWidgetConfig,
2866
+ "type"
2867
+ > & {
2868
+ /** @format int32 */
2869
+ maxItems: number;
2870
+ onlyOutstanding: boolean;
2871
+ type: DocumentsWidgetConfigTypeEnum;
2872
+ };
2873
+
2524
2874
  export interface Draft {
2525
2875
  /** @format date-time */
2526
2876
  createdAt: string;
@@ -2574,7 +2924,7 @@ export interface DraftLoanOfficerReassignRequest {
2574
2924
 
2575
2925
  export interface DraftRequest {
2576
2926
  applicationPayload: any;
2577
- customData: any;
2927
+ customData?: any | null;
2578
2928
  isCoBorrower: boolean;
2579
2929
  }
2580
2930
 
@@ -2818,7 +3168,7 @@ export interface EncompassRequestLog {
2818
3168
  httpStatusCode?: number | null;
2819
3169
  /** @format int64 */
2820
3170
  durationMs?: number | null;
2821
- context: any;
3171
+ context?: any | null;
2822
3172
  /** @format date-time */
2823
3173
  createdAt: string;
2824
3174
  }
@@ -2846,6 +3196,13 @@ export interface Error {
2846
3196
  message: string;
2847
3197
  }
2848
3198
 
3199
+ export type EsignStatusWidgetConfig = UtilRequiredKeys<
3200
+ BaseCanvasWidgetConfig,
3201
+ "type"
3202
+ > & {
3203
+ type: EsignStatusWidgetConfigTypeEnum;
3204
+ };
3205
+
2849
3206
  export interface FailureBucket {
2850
3207
  /** @format date-time */
2851
3208
  startUtc: string;
@@ -2959,7 +3316,7 @@ export interface FormSubmission {
2959
3316
  subjectPropertyAddressCounty?: string | null;
2960
3317
  subjectPropertyAddressState?: string | null;
2961
3318
  subjectPropertyAddressZip?: string | null;
2962
- data: any;
3319
+ data?: any | null;
2963
3320
  /** @format uuid */
2964
3321
  listingID?: string | null;
2965
3322
  listing?: Listing | null;
@@ -3005,7 +3362,7 @@ export interface FormSubmissionRequest {
3005
3362
  subjectPropertyAddressCounty?: string | null;
3006
3363
  subjectPropertyAddressState?: string | null;
3007
3364
  subjectPropertyAddressZip?: string | null;
3008
- data: any;
3365
+ data?: any | null;
3009
3366
  /** @format uuid */
3010
3367
  listingID?: string | null;
3011
3368
  }
@@ -3154,7 +3511,7 @@ export interface GetWorkflowRequest {
3154
3511
  export interface GuidPatchOperation {
3155
3512
  op: string;
3156
3513
  path: string;
3157
- value: any;
3514
+ value?: any | null;
3158
3515
  from?: string | null;
3159
3516
  }
3160
3517
 
@@ -3232,6 +3589,7 @@ export interface InProgressLoan {
3232
3589
  siteConfigurationId?: string | null;
3233
3590
  /** @format date-time */
3234
3591
  updatedAt?: string | null;
3592
+ applicationSession?: LoanApplicationSessionRoute | null;
3235
3593
  }
3236
3594
 
3237
3595
  export interface IncompleteApplicationSummary {
@@ -3268,6 +3626,7 @@ export interface IncompleteLoanBorrower {
3268
3626
  applicationStatus: IncompleteLoanBorrowerApplicationStatusEnum;
3269
3627
  /** @format date-time */
3270
3628
  deletedAt?: string | null;
3629
+ applicationSession?: LoanApplicationSessionRoute | null;
3271
3630
  }
3272
3631
 
3273
3632
  export interface IncompleteLoanDraft {
@@ -3302,6 +3661,19 @@ export interface IncompleteLoanSiteConfiguration {
3302
3661
  name: string;
3303
3662
  }
3304
3663
 
3664
+ export type InformationWidgetConfig = UtilRequiredKeys<
3665
+ BaseCanvasWidgetConfig,
3666
+ "type"
3667
+ > & {
3668
+ /** @format int32 */
3669
+ columns: number;
3670
+ labelPosition: InformationWidgetConfigLabelPositionEnum;
3671
+ hideWhenEmpty: boolean;
3672
+ emptyText?: string | null;
3673
+ items: CanvasInformationItem[];
3674
+ type: InformationWidgetConfigTypeEnum;
3675
+ };
3676
+
3305
3677
  export interface IntegrationSettings {
3306
3678
  encompass?: EncompassIntegrationSettings | null;
3307
3679
  }
@@ -3339,6 +3711,24 @@ export interface Invite {
3339
3711
  /** Array of operations to perform */
3340
3712
  export type JsonPatchDocument = Operation[];
3341
3713
 
3714
+ export type KeyDatesWidgetConfig = UtilRequiredKeys<
3715
+ BaseCanvasWidgetConfig,
3716
+ "type"
3717
+ > & {
3718
+ dates: string[];
3719
+ type: KeyDatesWidgetConfigTypeEnum;
3720
+ };
3721
+
3722
+ export type KpiWidgetConfig = UtilRequiredKeys<
3723
+ BaseCanvasWidgetConfig,
3724
+ "type"
3725
+ > & {
3726
+ field: CanvasFieldRef;
3727
+ label?: string | null;
3728
+ format?: CanvasFieldFormat | null;
3729
+ type: KpiWidgetConfigTypeEnum;
3730
+ };
3731
+
3342
3732
  export interface LOSIntegration {
3343
3733
  instanceID: string;
3344
3734
  }
@@ -3584,6 +3974,10 @@ export interface LoanApplicationSessionRequest {
3584
3974
  questionHistory: string[];
3585
3975
  }
3586
3976
 
3977
+ export interface LoanApplicationSessionRoute {
3978
+ routeName: string;
3979
+ }
3980
+
3587
3981
  export interface LoanBorrower {
3588
3982
  /** @format uuid */
3589
3983
  id: string;
@@ -3604,6 +3998,8 @@ export interface LoanBorrower {
3604
3998
  numberOfDependents?: number | null;
3605
3999
  /** @format int32 */
3606
4000
  creditDecisionScore?: number | null;
4001
+ /** @format int32 */
4002
+ estimatedCreditScore?: number | null;
3607
4003
  isPrimaryBorrower: boolean;
3608
4004
  isFirstTimeHomeBuyer?: boolean | null;
3609
4005
  hasJointAssetsAndLiabilities?: boolean | null;
@@ -3984,6 +4380,12 @@ export interface LoanBorrowerEmploymentPrevious {
3984
4380
  /** @format double */
3985
4381
  grossIncome?: number | null;
3986
4382
  isSelfEmployed?: boolean | null;
4383
+ /** @format double */
4384
+ bonus?: number | null;
4385
+ /** @format double */
4386
+ overtime?: number | null;
4387
+ /** @format double */
4388
+ commission?: number | null;
3987
4389
  address?: AddressV3 | null;
3988
4390
  }
3989
4391
 
@@ -3998,6 +4400,12 @@ export interface LoanBorrowerEmploymentPreviousRequest {
3998
4400
  /** @format double */
3999
4401
  grossIncome?: number | null;
4000
4402
  isSelfEmployed?: boolean | null;
4403
+ /** @format double */
4404
+ bonus?: number | null;
4405
+ /** @format double */
4406
+ overtime?: number | null;
4407
+ /** @format double */
4408
+ commission?: number | null;
4001
4409
  address?: AddressRequest | null;
4002
4410
  }
4003
4411
 
@@ -4210,6 +4618,7 @@ export interface LoanBorrowerRealEstateAsset {
4210
4618
  occupancy?: LoanRealEstateOccupancyType | null;
4211
4619
  intendedUsage?: LoanRealEstateIntendedUsageType | null;
4212
4620
  intendedUsageOtherDescription?: string | null;
4621
+ propertyType?: LoanRealEstatePropertyType | null;
4213
4622
  /** @format double */
4214
4623
  marketValue?: number | null;
4215
4624
  /** @format double */
@@ -4270,6 +4679,7 @@ export interface LoanBorrowerRealEstateAssetRequest {
4270
4679
  occupancy?: LoanRealEstateOccupancyType | null;
4271
4680
  intendedUsage?: LoanRealEstateIntendedUsageType | null;
4272
4681
  intendedUsageOtherDescription?: string | null;
4682
+ propertyType?: LoanRealEstatePropertyType | null;
4273
4683
  /** @format double */
4274
4684
  marketValue?: number | null;
4275
4685
  /** @format double */
@@ -4305,6 +4715,8 @@ export interface LoanBorrowerRequest {
4305
4715
  isFirstTimeHomeBuyer?: boolean | null;
4306
4716
  hasJointAssetsAndLiabilities?: boolean | null;
4307
4717
  dependentAges?: number[] | null;
4718
+ /** @format int32 */
4719
+ estimatedCreditScore?: number | null;
4308
4720
  demographics?: LoanBorrowerDemographicsRequest | null;
4309
4721
  declarations?: LoanBorrowerDeclarationsRequest | null;
4310
4722
  militaryService?: LoanBorrowerMilitaryServiceRequest | null;
@@ -4964,6 +5376,13 @@ export interface LoanPatchRequestGuidPatchDocument {
4964
5376
  operations: GuidPatchOperation[];
4965
5377
  }
4966
5378
 
5379
+ export type LoanProgressWidgetConfig = UtilRequiredKeys<
5380
+ BaseCanvasWidgetConfig,
5381
+ "type"
5382
+ > & {
5383
+ type: LoanProgressWidgetConfigTypeEnum;
5384
+ };
5385
+
4967
5386
  export interface LoanProperty {
4968
5387
  /** @format uuid */
4969
5388
  id?: string | null;
@@ -5099,7 +5518,7 @@ export interface LoanQueueWithData {
5099
5518
  user: UserPublic;
5100
5519
  loanOfficer: LoanOfficerPublic;
5101
5520
  siteConfiguration: SiteConfigurationReduced;
5102
- data: any;
5521
+ data?: any | null;
5103
5522
  }
5104
5523
 
5105
5524
  export interface LoanRecommendation {
@@ -5109,7 +5528,7 @@ export interface LoanRecommendation {
5109
5528
  displayName: string;
5110
5529
  extractedValue: string;
5111
5530
  mintable: boolean;
5112
- currentLoanValue: any;
5531
+ currentLoanValue?: any | null;
5113
5532
  /** @format uuid */
5114
5533
  sourceDocumentId: string;
5115
5534
  sourceDocumentName?: string | null;
@@ -5287,6 +5706,13 @@ export interface LoanTaskStatusSummary {
5287
5706
  count: number;
5288
5707
  }
5289
5708
 
5709
+ export type LoanTeamWidgetConfig = UtilRequiredKeys<
5710
+ BaseCanvasWidgetConfig,
5711
+ "type"
5712
+ > & {
5713
+ type: LoanTeamWidgetConfigTypeEnum;
5714
+ };
5715
+
5290
5716
  export interface LoanUser {
5291
5717
  /** @format uuid */
5292
5718
  id: string;
@@ -5684,7 +6110,7 @@ export interface ModuleParameterValue {
5684
6110
  parameterID: string;
5685
6111
  parameterName: string;
5686
6112
  parameterType: string;
5687
- value: any;
6113
+ value?: any | null;
5688
6114
  isInherited: boolean;
5689
6115
  }
5690
6116
 
@@ -5721,6 +6147,24 @@ export interface MonthlyPaymentCalculatorRequest {
5721
6147
  term: number;
5722
6148
  }
5723
6149
 
6150
+ export type MonthlyPaymentWidgetConfig = UtilRequiredKeys<
6151
+ BaseCanvasWidgetConfig,
6152
+ "type"
6153
+ > & {
6154
+ type: MonthlyPaymentWidgetConfigTypeEnum;
6155
+ };
6156
+
6157
+ export type MyTasksWidgetConfig = UtilRequiredKeys<
6158
+ BaseCanvasWidgetConfig,
6159
+ "type"
6160
+ > & {
6161
+ /** @format int32 */
6162
+ dueWithinDays: number;
6163
+ /** @format int32 */
6164
+ maxItems: number;
6165
+ type: MyTasksWidgetConfigTypeEnum;
6166
+ };
6167
+
5724
6168
  export interface NoContentResult {
5725
6169
  /** @format int32 */
5726
6170
  statusCode: number;
@@ -5868,6 +6312,15 @@ export interface NotificationTemplateVersionUpdateRequest {
5868
6312
  pushNotificationBody?: string | null;
5869
6313
  }
5870
6314
 
6315
+ export type OpenTasksWidgetConfig = UtilRequiredKeys<
6316
+ BaseCanvasWidgetConfig,
6317
+ "type"
6318
+ > & {
6319
+ /** @format int32 */
6320
+ maxItems: number;
6321
+ type: OpenTasksWidgetConfigTypeEnum;
6322
+ };
6323
+
5871
6324
  export interface Operation {
5872
6325
  op?: string;
5873
6326
  value?: string | number | boolean | null | object;
@@ -6017,6 +6470,18 @@ export interface PreliminaryCondition {
6017
6470
  rerequestedBy?: CommentUserInformation | null;
6018
6471
  }
6019
6472
 
6473
+ export interface PreviewSiteConfigurationCanvasRequest {
6474
+ document: CanvasDocument;
6475
+ role?: UserRole | null;
6476
+ }
6477
+
6478
+ export type PrimaryBorrowerWidgetConfig = UtilRequiredKeys<
6479
+ BaseCanvasWidgetConfig,
6480
+ "type"
6481
+ > & {
6482
+ type: PrimaryBorrowerWidgetConfigTypeEnum;
6483
+ };
6484
+
6020
6485
  export interface ProblemDetails {
6021
6486
  type?: string | null;
6022
6487
  title?: string | null;
@@ -6027,6 +6492,15 @@ export interface ProblemDetails {
6027
6492
  [key: string]: any;
6028
6493
  }
6029
6494
 
6495
+ export type RecentLoansWidgetConfig = UtilRequiredKeys<
6496
+ BaseCanvasWidgetConfig,
6497
+ "type"
6498
+ > & {
6499
+ /** @format int32 */
6500
+ maxItems: number;
6501
+ type: RecentLoansWidgetConfigTypeEnum;
6502
+ };
6503
+
6030
6504
  export interface RefinanceCalculator {
6031
6505
  currentLoan: RefinanceLoan;
6032
6506
  refinanceLoan: RefinanceLoan;
@@ -6147,6 +6621,17 @@ export interface ResetPasswordRequest {
6147
6621
  password: string;
6148
6622
  }
6149
6623
 
6624
+ export interface ResolvedCanvasTab {
6625
+ tab: CanvasTab;
6626
+ source: CanvasSourceSite;
6627
+ isInherited: boolean;
6628
+ }
6629
+
6630
+ export interface RestoreSiteConfigurationCanvasVersionRequest {
6631
+ /** @format int32 */
6632
+ expectedVersion: number;
6633
+ }
6634
+
6150
6635
  export interface RunLOCalculation {
6151
6636
  loanID: string;
6152
6637
  loanAmount?: string | null;
@@ -6227,10 +6712,28 @@ export interface SSOTokenRequest {
6227
6712
  redirectUri?: string | null;
6228
6713
  }
6229
6714
 
6715
+ export interface SaveSiteConfigurationCanvasRequest {
6716
+ document: CanvasDocument;
6717
+ /** @format int32 */
6718
+ expectedVersion?: number | null;
6719
+ /** @format uuid */
6720
+ forkedFromSiteConfigurationID?: string | null;
6721
+ /** @format int32 */
6722
+ forkedFromVersion?: number | null;
6723
+ }
6724
+
6230
6725
  export interface SearchCriteria {
6231
6726
  searchText?: string | null;
6232
6727
  }
6233
6728
 
6729
+ export type SectionDividerWidgetConfig = UtilRequiredKeys<
6730
+ BaseCanvasWidgetConfig,
6731
+ "type"
6732
+ > & {
6733
+ label?: string | null;
6734
+ type: SectionDividerWidgetConfigTypeEnum;
6735
+ };
6736
+
6234
6737
  export interface SendESignatureReminderRequest {
6235
6738
  /** @format uuid */
6236
6739
  userId: string;
@@ -6671,6 +7174,12 @@ export interface SiteConfigurationByUrl {
6671
7174
  workflows: Workflow[];
6672
7175
  }
6673
7176
 
7177
+ export interface SiteConfigurationCanvases {
7178
+ /** @format uuid */
7179
+ siteConfigurationID: string;
7180
+ surfaces: CanvasSurfaceState[];
7181
+ }
7182
+
6674
7183
  export interface SiteConfigurationForm {
6675
7184
  /** @format date-time */
6676
7185
  createdAt: string;
@@ -7177,6 +7686,14 @@ export interface TemplateTokenRoot {
7177
7686
  fields: TemplateToken[];
7178
7687
  }
7179
7688
 
7689
+ export type TextBlockWidgetConfig = UtilRequiredKeys<
7690
+ BaseCanvasWidgetConfig,
7691
+ "type"
7692
+ > & {
7693
+ text: string;
7694
+ type: TextBlockWidgetConfigTypeEnum;
7695
+ };
7696
+
7180
7697
  export interface Theme {
7181
7698
  logoURL: string;
7182
7699
  primaryColor: string;
@@ -7281,6 +7798,8 @@ export interface UnprocessableEntity {
7281
7798
  export interface UnprocessableEntityError {
7282
7799
  error: string;
7283
7800
  property: string;
7801
+ code?: string | null;
7802
+ params?: Record<string, any> | null;
7284
7803
  }
7285
7804
 
7286
7805
  export interface UnregisteredBorrower {
@@ -7435,6 +7954,10 @@ export interface UpdateLoanRoleTaskRequest {
7435
7954
  dueDate?: string | null;
7436
7955
  }
7437
7956
 
7957
+ export interface UpdateLoanSigningMethodRequest {
7958
+ signingMethod?: SigningMethod | null;
7959
+ }
7960
+
7438
7961
  export interface UpdateMeRequest {
7439
7962
  phone?: string | null;
7440
7963
  firstName: string;
@@ -8007,6 +8530,14 @@ export interface Workflow {
8007
8530
  icon: string;
8008
8531
  }
8009
8532
 
8533
+ interface BaseCanvasWidgetConfig {
8534
+ type: string;
8535
+ }
8536
+
8537
+ type BaseCanvasWidgetConfigTypeMapping<Key, Type> = {
8538
+ type: Key;
8539
+ } & Type;
8540
+
8010
8541
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
8011
8542
 
8012
8543
  export type AiAuditLogEventTypeEnum =
@@ -8077,6 +8608,8 @@ export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
8077
8608
 
8078
8609
  export type AiUrlSourceApprovalStatusEnum = "Pending" | "Approved" | "Rejected";
8079
8610
 
8611
+ export type AmortizationWidgetConfigTypeEnum = "Amortization";
8612
+
8080
8613
  export type AuditLogEntryChangeTypeEnum =
8081
8614
  | "Created"
8082
8615
  | "Modified"
@@ -8117,6 +8650,133 @@ export type BorrowerIdentityRoleEnum =
8117
8650
  | "SettlementAgent"
8118
8651
  | "Admin";
8119
8652
 
8653
+ export type CanvasFieldDescriptorSourceEnum = "Standard" | "Custom";
8654
+
8655
+ export type CanvasFieldDescriptorDataTypeEnum =
8656
+ | "Text"
8657
+ | "Number"
8658
+ | "Decimal"
8659
+ | "Boolean"
8660
+ | "Date"
8661
+ | "DateTime"
8662
+ | "SingleSelect"
8663
+ | "MultiSelect";
8664
+
8665
+ export type CanvasFieldDescriptorFormatEnum =
8666
+ | "Text"
8667
+ | "Number"
8668
+ | "Currency"
8669
+ | "Percent"
8670
+ | "DateShort"
8671
+ | "DateLong"
8672
+ | "YesNo";
8673
+
8674
+ export type CanvasFieldRefSourceEnum = "Standard" | "Custom";
8675
+
8676
+ export type CanvasFieldValueDataTypeEnum =
8677
+ | "Text"
8678
+ | "Number"
8679
+ | "Decimal"
8680
+ | "Boolean"
8681
+ | "Date"
8682
+ | "DateTime"
8683
+ | "SingleSelect"
8684
+ | "MultiSelect";
8685
+
8686
+ export type CanvasFieldViewDataTypeEnum =
8687
+ | "Text"
8688
+ | "Number"
8689
+ | "Decimal"
8690
+ | "Boolean"
8691
+ | "Date"
8692
+ | "DateTime"
8693
+ | "SingleSelect"
8694
+ | "MultiSelect";
8695
+
8696
+ export type CanvasFieldViewFormatEnum =
8697
+ | "Text"
8698
+ | "Number"
8699
+ | "Currency"
8700
+ | "Percent"
8701
+ | "DateShort"
8702
+ | "DateLong"
8703
+ | "YesNo";
8704
+
8705
+ export type CanvasInformationItemKindEnum = "Field" | "Heading" | "Separator";
8706
+
8707
+ export type CanvasSourceSiteTypeEnum =
8708
+ | "None"
8709
+ | "Account"
8710
+ | "Corporate"
8711
+ | "Branch"
8712
+ | "LoanOfficer"
8713
+ | "Partner";
8714
+
8715
+ export type CanvasSurfaceStateSurfaceEnum =
8716
+ | "Home"
8717
+ | "LoanSummary"
8718
+ | "LoanDetails";
8719
+
8720
+ export type CanvasViewSurfaceEnum = "Home" | "LoanSummary" | "LoanDetails";
8721
+
8722
+ export type CanvasWidgetTypeEnum =
8723
+ | "Information"
8724
+ | "Kpi"
8725
+ | "KeyDates"
8726
+ | "LoanProgress"
8727
+ | "MonthlyPayment"
8728
+ | "Amortization"
8729
+ | "PrimaryBorrower"
8730
+ | "OpenTasks"
8731
+ | "Documents"
8732
+ | "EsignStatus"
8733
+ | "LoanTeam"
8734
+ | "TextBlock"
8735
+ | "SectionDivider"
8736
+ | "MyTasks"
8737
+ | "RecentLoans"
8738
+ | "ClosingSoon";
8739
+
8740
+ export type CanvasWidgetTypeDescriptorTypeEnum =
8741
+ | "Information"
8742
+ | "Kpi"
8743
+ | "KeyDates"
8744
+ | "LoanProgress"
8745
+ | "MonthlyPayment"
8746
+ | "Amortization"
8747
+ | "PrimaryBorrower"
8748
+ | "OpenTasks"
8749
+ | "Documents"
8750
+ | "EsignStatus"
8751
+ | "LoanTeam"
8752
+ | "TextBlock"
8753
+ | "SectionDivider"
8754
+ | "MyTasks"
8755
+ | "RecentLoans"
8756
+ | "ClosingSoon";
8757
+
8758
+ export type CanvasWidgetTypeDescriptorScopeEnum = "Loan" | "User" | "Any";
8759
+
8760
+ export type CanvasWidgetViewTypeEnum =
8761
+ | "Information"
8762
+ | "Kpi"
8763
+ | "KeyDates"
8764
+ | "LoanProgress"
8765
+ | "MonthlyPayment"
8766
+ | "Amortization"
8767
+ | "PrimaryBorrower"
8768
+ | "OpenTasks"
8769
+ | "Documents"
8770
+ | "EsignStatus"
8771
+ | "LoanTeam"
8772
+ | "TextBlock"
8773
+ | "SectionDivider"
8774
+ | "MyTasks"
8775
+ | "RecentLoans"
8776
+ | "ClosingSoon";
8777
+
8778
+ export type ClosingSoonWidgetConfigTypeEnum = "ClosingSoon";
8779
+
8120
8780
  export type CompanyDocumentSourceTypeEnum = "File" | "FreeText";
8121
8781
 
8122
8782
  export type CompanyDocumentIndexStatusEnum =
@@ -8289,6 +8949,8 @@ export type CustomFieldValueDataTypeEnum =
8289
8949
  | "SingleSelect"
8290
8950
  | "MultiSelect";
8291
8951
 
8952
+ export type DocumentsWidgetConfigTypeEnum = "Documents";
8953
+
8292
8954
  export type DraftTypeEnum = "NewLoan" | "EditLoan";
8293
8955
 
8294
8956
  export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
@@ -8330,6 +8992,8 @@ export type EncompassWebhookSubscriptionWebhookTypeEnum =
8330
8992
  | "WebDocuments"
8331
8993
  | "PosfCreatePackage";
8332
8994
 
8995
+ export type EsignStatusWidgetConfigTypeEnum = "EsignStatus";
8996
+
8333
8997
  export type GenerateSystemPromptRequestCategoryEnum =
8334
8998
  | "DocumentAnalysis"
8335
8999
  | "DataQuery"
@@ -8375,6 +9039,14 @@ export type IncompleteLoanSourceEnum = "V3" | "LegacyDraft";
8375
9039
 
8376
9040
  export type IncompleteLoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
8377
9041
 
9042
+ export type InformationWidgetConfigLabelPositionEnum = "Left" | "Above";
9043
+
9044
+ export type InformationWidgetConfigTypeEnum = "Information";
9045
+
9046
+ export type KeyDatesWidgetConfigTypeEnum = "KeyDates";
9047
+
9048
+ export type KpiWidgetConfigTypeEnum = "Kpi";
9049
+
8378
9050
  export type LoanSigningMethodEnum = "ConsumerConnect" | "POSF";
8379
9051
 
8380
9052
  export type LoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
@@ -8480,7 +9152,8 @@ export type LoanLogTypeEnum =
8480
9152
  | "CoBorrowerEmailAutoFixed"
8481
9153
  | "LosFieldWriteBack"
8482
9154
  | "ReferrerChangeDiscarded"
8483
- | "TaskEdited";
9155
+ | "TaskEdited"
9156
+ | "SigningMethodChanged";
8484
9157
 
8485
9158
  export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
8486
9159
 
@@ -8505,7 +9178,10 @@ export type LoanLogDetailTypeEnum =
8505
9178
  | "CoBorrowerEmailAutoFixed"
8506
9179
  | "LosFieldWriteBack"
8507
9180
  | "ReferrerChangeDiscarded"
8508
- | "TaskEdited";
9181
+ | "TaskEdited"
9182
+ | "SigningMethodChanged";
9183
+
9184
+ export type LoanProgressWidgetConfigTypeEnum = "LoanProgress";
8509
9185
 
8510
9186
  export type LoanRoleSlotTasksRoleEnum =
8511
9187
  | "Borrower"
@@ -8560,6 +9236,8 @@ export type LoanTaskStatusSummaryStatusEnum =
8560
9236
  | "Rejected"
8561
9237
  | "Unknown";
8562
9238
 
9239
+ export type LoanTeamWidgetConfigTypeEnum = "LoanTeam";
9240
+
8563
9241
  export type LoanUserLoanRoleEnum =
8564
9242
  | "Borrower"
8565
9243
  | "CoBorrower"
@@ -8691,6 +9369,12 @@ export type ManualDocumentClassificationRequestDocumentTypeEnum =
8691
9369
  | "AiGeneratedDocument"
8692
9370
  | "Unidentified";
8693
9371
 
9372
+ export type MonthlyPaymentWidgetConfigTypeEnum = "MonthlyPayment";
9373
+
9374
+ export type MyTasksWidgetConfigTypeEnum = "MyTasks";
9375
+
9376
+ export type OpenTasksWidgetConfigTypeEnum = "OpenTasks";
9377
+
8694
9378
  export type PendingInviteStatusEnum =
8695
9379
  | "InvitePending"
8696
9380
  | "InviteExpired"
@@ -8711,6 +9395,12 @@ export type PendingInviteRoleEnum =
8711
9395
  | "SettlementAgent"
8712
9396
  | "Admin";
8713
9397
 
9398
+ export type PrimaryBorrowerWidgetConfigTypeEnum = "PrimaryBorrower";
9399
+
9400
+ export type RecentLoansWidgetConfigTypeEnum = "RecentLoans";
9401
+
9402
+ export type SectionDividerWidgetConfigTypeEnum = "SectionDivider";
9403
+
8714
9404
  export type SiteConfigurationTypeEnum =
8715
9405
  | "None"
8716
9406
  | "Account"
@@ -8763,6 +9453,8 @@ export type SiteTileRequestLinkTargetEnum = "Self" | "Blank";
8763
9453
 
8764
9454
  export type SiteTileViewLinkTargetEnum = "Self" | "Blank";
8765
9455
 
9456
+ export type TextBlockWidgetConfigTypeEnum = "TextBlock";
9457
+
8766
9458
  export type UnregisteredBorrowerRoleEnum =
8767
9459
  | "Borrower"
8768
9460
  | "CoBorrower"
@@ -8847,6 +9539,10 @@ export type UserLoanConsentLosSyncStatusEnum =
8847
9539
 
8848
9540
  export type UserTableSettingsTableKeyEnum = "Pipeline";
8849
9541
 
9542
+ export type GetCanvasParamsSurfaceEnum = "Home" | "LoanSummary" | "LoanDetails";
9543
+
9544
+ export type GetCanvasParamsEnum = "Home" | "LoanSummary" | "LoanDetails";
9545
+
8850
9546
  export type GetCustomFieldDefinitionsParamsEntityTypeEnum = "Loan";
8851
9547
 
8852
9548
  /** @default "Realtor" */
@@ -8861,6 +9557,56 @@ export type GetPartnersParamsRoleEnum =
8861
9557
  | "LoanOfficerAssistant"
8862
9558
  | "SystemAdmin";
8863
9559
 
9560
+ export type SaveSiteConfigurationCanvasParamsSurfaceEnum =
9561
+ | "Home"
9562
+ | "LoanSummary"
9563
+ | "LoanDetails";
9564
+
9565
+ export type SaveSiteConfigurationCanvasParamsEnum =
9566
+ | "Home"
9567
+ | "LoanSummary"
9568
+ | "LoanDetails";
9569
+
9570
+ export type DeleteSiteConfigurationCanvasParamsSurfaceEnum =
9571
+ | "Home"
9572
+ | "LoanSummary"
9573
+ | "LoanDetails";
9574
+
9575
+ export type DeleteSiteConfigurationCanvasParamsEnum =
9576
+ | "Home"
9577
+ | "LoanSummary"
9578
+ | "LoanDetails";
9579
+
9580
+ export type PreviewSiteConfigurationCanvasParamsSurfaceEnum =
9581
+ | "Home"
9582
+ | "LoanSummary"
9583
+ | "LoanDetails";
9584
+
9585
+ export type PreviewSiteConfigurationCanvasParamsEnum =
9586
+ | "Home"
9587
+ | "LoanSummary"
9588
+ | "LoanDetails";
9589
+
9590
+ export type GetSiteConfigurationCanvasVersionsParamsSurfaceEnum =
9591
+ | "Home"
9592
+ | "LoanSummary"
9593
+ | "LoanDetails";
9594
+
9595
+ export type GetSiteConfigurationCanvasVersionsParamsEnum =
9596
+ | "Home"
9597
+ | "LoanSummary"
9598
+ | "LoanDetails";
9599
+
9600
+ export type RestoreSiteConfigurationCanvasVersionParamsSurfaceEnum =
9601
+ | "Home"
9602
+ | "LoanSummary"
9603
+ | "LoanDetails";
9604
+
9605
+ export type RestoreSiteConfigurationCanvasVersionParamsEnum =
9606
+ | "Home"
9607
+ | "LoanSummary"
9608
+ | "LoanDetails";
9609
+
8864
9610
  export type GetSamlMetadataParamsSSoIntegrationEnum =
8865
9611
  | "ConsumerConnect"
8866
9612
  | "TheBigPOS"
@@ -9069,7 +9815,7 @@ export class HttpClient<SecurityDataType = unknown> {
9069
9815
 
9070
9816
  /**
9071
9817
  * @title The Big POS API
9072
- * @version v3.15.0
9818
+ * @version v3.16.0
9073
9819
  * @termsOfService https://www.thebigpos.com/terms-of-use/
9074
9820
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
9075
9821
  */
@@ -11750,6 +12496,78 @@ export class Api<
11750
12496
  ...params,
11751
12497
  }),
11752
12498
 
12499
+ /**
12500
+ * No description
12501
+ *
12502
+ * @tags Canvases
12503
+ * @name GetCanvas
12504
+ * @summary Get a site's canvas for one surface, as the signed-in user sees it
12505
+ * @request GET:/api/canvases/{surface}
12506
+ * @secure
12507
+ * @response `200` `CanvasView` OK
12508
+ * @response `400` `ProblemDetails` Bad Request
12509
+ * @response `404` `ProblemDetails` Not Found
12510
+ * @response `422` `ProblemDetails` Unprocessable Content
12511
+ */
12512
+ getCanvas: (
12513
+ surface: GetCanvasParamsEnum,
12514
+ query: {
12515
+ /** @format uuid */
12516
+ siteConfigurationId: string;
12517
+ },
12518
+ params: RequestParams = {},
12519
+ ) =>
12520
+ this.request<CanvasView, ProblemDetails>({
12521
+ path: `/api/canvases/${surface}`,
12522
+ method: "GET",
12523
+ query: query,
12524
+ secure: true,
12525
+ format: "json",
12526
+ ...params,
12527
+ }),
12528
+
12529
+ /**
12530
+ * @description A standard field's key and every categoryKey never change: saved layouts refer to fields by key, and a client can translate labels and categories by these keys.
12531
+ *
12532
+ * @tags CanvasFields
12533
+ * @name GetCanvasFields
12534
+ * @summary Get the fields a canvas can show
12535
+ * @request GET:/api/canvas/fields
12536
+ * @secure
12537
+ * @response `200` `CanvasFieldCatalog` OK
12538
+ * @response `403` `ProblemDetails` Forbidden
12539
+ * @response `404` `ProblemDetails` Not Found
12540
+ */
12541
+ getCanvasFields: (params: RequestParams = {}) =>
12542
+ this.request<CanvasFieldCatalog, ProblemDetails>({
12543
+ path: `/api/canvas/fields`,
12544
+ method: "GET",
12545
+ secure: true,
12546
+ format: "json",
12547
+ ...params,
12548
+ }),
12549
+
12550
+ /**
12551
+ * No description
12552
+ *
12553
+ * @tags CanvasWidgetTypes
12554
+ * @name GetCanvasWidgetTypes
12555
+ * @summary Get canvas widget types
12556
+ * @request GET:/api/canvas/widget-types
12557
+ * @secure
12558
+ * @response `200` `(CanvasWidgetTypeDescriptor)[]` OK
12559
+ * @response `403` `ProblemDetails` Forbidden
12560
+ * @response `404` `ProblemDetails` Not Found
12561
+ */
12562
+ getCanvasWidgetTypes: (params: RequestParams = {}) =>
12563
+ this.request<CanvasWidgetTypeDescriptor[], ProblemDetails>({
12564
+ path: `/api/canvas/widget-types`,
12565
+ method: "GET",
12566
+ secure: true,
12567
+ format: "json",
12568
+ ...params,
12569
+ }),
12570
+
11753
12571
  /**
11754
12572
  * @description Returns closed loan counts per account within the specified date range, including POS vs non-POS breakdown and utilization ratios.
11755
12573
  *
@@ -15094,6 +15912,35 @@ export class Api<
15094
15912
  ...params,
15095
15913
  }),
15096
15914
 
15915
+ /**
15916
+ * No description
15917
+ *
15918
+ * @tags LoanCanvasFieldValues
15919
+ * @name GetLoanCanvasFieldValues
15920
+ * @summary Get a loan's values for canvas fields
15921
+ * @request POST:/api/loans/{loanId}/canvas/field-values
15922
+ * @secure
15923
+ * @response `200` `CanvasFieldValues` OK
15924
+ * @response `400` `ProblemDetails` Bad Request
15925
+ * @response `403` `ProblemDetails` Forbidden
15926
+ * @response `404` `ProblemDetails` Not Found
15927
+ * @response `422` `ProblemDetails` Unprocessable Content
15928
+ */
15929
+ getLoanCanvasFieldValues: (
15930
+ loanId: string,
15931
+ data: CanvasFieldValuesRequest,
15932
+ params: RequestParams = {},
15933
+ ) =>
15934
+ this.request<CanvasFieldValues, ProblemDetails>({
15935
+ path: `/api/loans/${loanId}/canvas/field-values`,
15936
+ method: "POST",
15937
+ body: data,
15938
+ secure: true,
15939
+ type: "application/json",
15940
+ format: "json",
15941
+ ...params,
15942
+ }),
15943
+
15097
15944
  /**
15098
15945
  * No description
15099
15946
  *
@@ -17196,6 +18043,33 @@ export class Api<
17196
18043
  ...params,
17197
18044
  }),
17198
18045
 
18046
+ /**
18047
+ * No description
18048
+ *
18049
+ * @tags LoanSigningMethod
18050
+ * @name UpdateLoanSigningMethod
18051
+ * @summary Switch the loan's signing method
18052
+ * @request PUT:/api/loans/{loanId}/signing-method
18053
+ * @secure
18054
+ * @response `204` `void` No Content
18055
+ * @response `403` `ProblemDetails` Forbidden
18056
+ * @response `404` `ProblemDetails` Not Found
18057
+ * @response `422` `ProblemDetails` Unprocessable Content
18058
+ */
18059
+ updateLoanSigningMethod: (
18060
+ loanId: string,
18061
+ data: UpdateLoanSigningMethodRequest,
18062
+ params: RequestParams = {},
18063
+ ) =>
18064
+ this.request<void, ProblemDetails>({
18065
+ path: `/api/loans/${loanId}/signing-method`,
18066
+ method: "PUT",
18067
+ body: data,
18068
+ secure: true,
18069
+ type: "application/json",
18070
+ ...params,
18071
+ }),
18072
+
17199
18073
  /**
17200
18074
  * No description
17201
18075
  *
@@ -18785,6 +19659,186 @@ export class Api<
18785
19659
  ...params,
18786
19660
  }),
18787
19661
 
19662
+ /**
19663
+ * No description
19664
+ *
19665
+ * @tags SiteConfigurationCanvases
19666
+ * @name GetSiteConfigurationCanvases
19667
+ * @summary Get a site's canvases: own, inherited and effective per surface
19668
+ * @request GET:/api/site-configurations/{siteConfigurationId}/canvases
19669
+ * @secure
19670
+ * @response `200` `SiteConfigurationCanvases` OK
19671
+ * @response `403` `ProblemDetails` Forbidden
19672
+ * @response `404` `ProblemDetails` Not Found
19673
+ */
19674
+ getSiteConfigurationCanvases: (
19675
+ siteConfigurationId: string,
19676
+ params: RequestParams = {},
19677
+ ) =>
19678
+ this.request<SiteConfigurationCanvases, ProblemDetails>({
19679
+ path: `/api/site-configurations/${siteConfigurationId}/canvases`,
19680
+ method: "GET",
19681
+ secure: true,
19682
+ format: "json",
19683
+ ...params,
19684
+ }),
19685
+
19686
+ /**
19687
+ * @description The request is the canvas's whole state: leaving out forkedFromSiteConfigurationID and forkedFromVersion clears them, and isBehindInherited with them.
19688
+ *
19689
+ * @tags SiteConfigurationCanvases
19690
+ * @name SaveSiteConfigurationCanvas
19691
+ * @summary Save a site's canvas for one surface
19692
+ * @request PUT:/api/site-configurations/{siteConfigurationId}/canvases/{surface}
19693
+ * @secure
19694
+ * @response `200` `CanvasSurfaceState` OK
19695
+ * @response `400` `ProblemDetails` Bad Request
19696
+ * @response `403` `ProblemDetails` Forbidden
19697
+ * @response `404` `ProblemDetails` Not Found
19698
+ * @response `409` `ProblemDetails` Conflict
19699
+ * @response `422` `ProblemDetails` Unprocessable Content
19700
+ * @response `423` `ProblemDetails` Locked
19701
+ */
19702
+ saveSiteConfigurationCanvas: (
19703
+ siteConfigurationId: string,
19704
+ surface: SaveSiteConfigurationCanvasParamsEnum,
19705
+ data: SaveSiteConfigurationCanvasRequest,
19706
+ params: RequestParams = {},
19707
+ ) =>
19708
+ this.request<CanvasSurfaceState, ProblemDetails>({
19709
+ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}`,
19710
+ method: "PUT",
19711
+ body: data,
19712
+ secure: true,
19713
+ type: "application/json",
19714
+ format: "json",
19715
+ ...params,
19716
+ }),
19717
+
19718
+ /**
19719
+ * No description
19720
+ *
19721
+ * @tags SiteConfigurationCanvases
19722
+ * @name DeleteSiteConfigurationCanvas
19723
+ * @summary Delete a site's own canvas for a surface, its boards or its Loan Details tabs, so it inherits again
19724
+ * @request DELETE:/api/site-configurations/{siteConfigurationId}/canvases/{surface}
19725
+ * @secure
19726
+ * @response `204` `void` No Content
19727
+ * @response `400` `ProblemDetails` Bad Request
19728
+ * @response `403` `ProblemDetails` Forbidden
19729
+ * @response `404` `ProblemDetails` Not Found
19730
+ * @response `409` `ProblemDetails` Conflict
19731
+ * @response `422` `ProblemDetails` Unprocessable Content
19732
+ */
19733
+ deleteSiteConfigurationCanvas: (
19734
+ siteConfigurationId: string,
19735
+ surface: DeleteSiteConfigurationCanvasParamsEnum,
19736
+ query: {
19737
+ /**
19738
+ * The canvas Version the caller last read. A delete over a newer save is refused as stale.
19739
+ * @format int32
19740
+ */
19741
+ expectedVersion: number;
19742
+ },
19743
+ params: RequestParams = {},
19744
+ ) =>
19745
+ this.request<void, ProblemDetails>({
19746
+ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}`,
19747
+ method: "DELETE",
19748
+ query: query,
19749
+ secure: true,
19750
+ ...params,
19751
+ }),
19752
+
19753
+ /**
19754
+ * No description
19755
+ *
19756
+ * @tags SiteConfigurationCanvases
19757
+ * @name PreviewSiteConfigurationCanvas
19758
+ * @summary Preview an unsaved canvas for one surface as a role would see it
19759
+ * @request POST:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/preview
19760
+ * @secure
19761
+ * @response `200` `CanvasView` OK
19762
+ * @response `400` `ProblemDetails` Bad Request
19763
+ * @response `403` `ProblemDetails` Forbidden
19764
+ * @response `404` `ProblemDetails` Not Found
19765
+ * @response `422` `ProblemDetails` Unprocessable Content
19766
+ */
19767
+ previewSiteConfigurationCanvas: (
19768
+ siteConfigurationId: string,
19769
+ surface: PreviewSiteConfigurationCanvasParamsEnum,
19770
+ data: PreviewSiteConfigurationCanvasRequest,
19771
+ params: RequestParams = {},
19772
+ ) =>
19773
+ this.request<CanvasView, ProblemDetails>({
19774
+ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}/preview`,
19775
+ method: "POST",
19776
+ body: data,
19777
+ secure: true,
19778
+ type: "application/json",
19779
+ format: "json",
19780
+ ...params,
19781
+ }),
19782
+
19783
+ /**
19784
+ * No description
19785
+ *
19786
+ * @tags SiteConfigurationCanvases
19787
+ * @name GetSiteConfigurationCanvasVersions
19788
+ * @summary Get the saved versions of a site's layout for a surface, newest first, including those from before a delete
19789
+ * @request GET:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/versions
19790
+ * @secure
19791
+ * @response `200` `(CanvasVersion)[]` OK
19792
+ * @response `403` `ProblemDetails` Forbidden
19793
+ * @response `404` `ProblemDetails` Not Found
19794
+ * @response `422` `ProblemDetails` Unprocessable Content
19795
+ */
19796
+ getSiteConfigurationCanvasVersions: (
19797
+ siteConfigurationId: string,
19798
+ surface: GetSiteConfigurationCanvasVersionsParamsEnum,
19799
+ params: RequestParams = {},
19800
+ ) =>
19801
+ this.request<CanvasVersion[], ProblemDetails>({
19802
+ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}/versions`,
19803
+ method: "GET",
19804
+ secure: true,
19805
+ format: "json",
19806
+ ...params,
19807
+ }),
19808
+
19809
+ /**
19810
+ * No description
19811
+ *
19812
+ * @tags SiteConfigurationCanvases
19813
+ * @name RestoreSiteConfigurationCanvasVersion
19814
+ * @summary Restore a saved version of a site's canvas as a new version
19815
+ * @request POST:/api/site-configurations/{siteConfigurationId}/canvases/{surface}/versions/{version}/restore
19816
+ * @secure
19817
+ * @response `200` `CanvasSurfaceState` OK
19818
+ * @response `400` `ProblemDetails` Bad Request
19819
+ * @response `403` `ProblemDetails` Forbidden
19820
+ * @response `404` `ProblemDetails` Not Found
19821
+ * @response `409` `ProblemDetails` Conflict
19822
+ * @response `422` `ProblemDetails` Unprocessable Content
19823
+ * @response `423` `ProblemDetails` Locked
19824
+ */
19825
+ restoreSiteConfigurationCanvasVersion: (
19826
+ siteConfigurationId: string,
19827
+ surface: RestoreSiteConfigurationCanvasVersionParamsEnum,
19828
+ version: number,
19829
+ data: RestoreSiteConfigurationCanvasVersionRequest,
19830
+ params: RequestParams = {},
19831
+ ) =>
19832
+ this.request<CanvasSurfaceState, ProblemDetails>({
19833
+ path: `/api/site-configurations/${siteConfigurationId}/canvases/${surface}/versions/${version}/restore`,
19834
+ method: "POST",
19835
+ body: data,
19836
+ secure: true,
19837
+ type: "application/json",
19838
+ format: "json",
19839
+ ...params,
19840
+ }),
19841
+
18788
19842
  /**
18789
19843
  * No description
18790
19844
  *