@matech/thebigpos-sdk 2.20.4 → 2.20.6

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,3 +1,3 @@
1
- [ -f ./src/index.ts ] && node scripts/apply-json-patch-content-type.js
2
- yarn build
1
+ [ -f ./src/index.ts ] && node scripts/apply-json-patch-content-type.js
2
+ yarn build
3
3
  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
package/dist/index.d.ts CHANGED
@@ -474,6 +474,8 @@ export interface CreateInviteRequest {
474
474
  loanRole?: LoanRole | null;
475
475
  }
476
476
  export interface CreateLoanImportRequest {
477
+ /** @format uuid */
478
+ accountID: string;
477
479
  /**
478
480
  * @format date-time
479
481
  * @minLength 1
@@ -486,14 +488,11 @@ export interface CreateLoanImportRequest {
486
488
  startDate: string;
487
489
  importMode: "All" | "NewOnly" | "UpdateOnly";
488
490
  }
489
- export interface CreateLosCredentials {
490
- /** @format uuid */
491
- accountID: string;
492
- instanceID: string;
493
- clientID: string;
494
- clientSecret: string;
495
- encryptionKeyArn: string;
496
- encryptionPassword: string;
491
+ export interface CreateUserDraft {
492
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
493
+ }
494
+ export interface CreateUserLoan {
495
+ loanRole?: LoanRole | null;
497
496
  }
498
497
  export interface CreateUserRelationRequest {
499
498
  /**
@@ -1038,7 +1037,7 @@ export interface FusionReportFilter {
1038
1037
  }
1039
1038
  export interface GenerateDocumentRequest {
1040
1039
  /** @deprecated */
1041
- loanID: string;
1040
+ loanID?: string | null;
1042
1041
  /**
1043
1042
  * @format uuid
1044
1043
  * @minLength 1
@@ -1048,7 +1047,7 @@ export interface GenerateDocumentRequest {
1048
1047
  * @deprecated
1049
1048
  * @format uuid
1050
1049
  */
1051
- siteConfigurationID: string;
1050
+ siteConfigurationID?: string | null;
1052
1051
  preview: boolean;
1053
1052
  recipients: string[];
1054
1053
  }
@@ -1215,6 +1214,7 @@ export interface LOSSettings {
1215
1214
  correspondentLoanClosingDateFieldID: string;
1216
1215
  customEConsentBucketTitle?: string | null;
1217
1216
  loanMilestoneNotificationsEnabled: boolean;
1217
+ useLocalPipeline: boolean;
1218
1218
  }
1219
1219
  export interface LOSSettingsUpdateRequest {
1220
1220
  retailLoanClosingDateFieldID: string;
@@ -1556,6 +1556,17 @@ export interface LoanLog {
1556
1556
  /** @format date-time */
1557
1557
  createdAt: string;
1558
1558
  }
1559
+ export interface LoanLogPaginated {
1560
+ rows: LoanLog[];
1561
+ pagination: Pagination;
1562
+ /** @format int64 */
1563
+ count: number;
1564
+ }
1565
+ export interface LoanLogSearchCriteria {
1566
+ searchText?: string | null;
1567
+ types?: LoanLogType[] | null;
1568
+ levels?: LogLevel[] | null;
1569
+ }
1559
1570
  export interface LoanOfficer {
1560
1571
  /** @format uuid */
1561
1572
  id: string;
@@ -2160,8 +2171,7 @@ export interface SiteConfiguration {
2160
2171
  twitterUrl?: string | null;
2161
2172
  instagramUrl?: string | null;
2162
2173
  linkedInUrl?: string | null;
2163
- /** @minLength 1 */
2164
- youTubeUrl: string;
2174
+ youTubeUrl?: string | null;
2165
2175
  licenses: string[];
2166
2176
  contactUsUrl?: string | null;
2167
2177
  licenseInfoUrl?: string | null;
@@ -2307,6 +2317,7 @@ export interface SiteConfiguration {
2307
2317
  accountSettings: AccountSettings;
2308
2318
  autoTaskReminderIntervalsInDays?: number[] | null;
2309
2319
  mobileSettings: MobileSettings;
2320
+ losSettings?: LOSSettings | null;
2310
2321
  }
2311
2322
  export interface SiteConfigurationByUrl {
2312
2323
  /** @format date-time */
@@ -2354,8 +2365,7 @@ export interface SiteConfigurationByUrl {
2354
2365
  twitterUrl?: string | null;
2355
2366
  instagramUrl?: string | null;
2356
2367
  linkedInUrl?: string | null;
2357
- /** @minLength 1 */
2358
- youTubeUrl: string;
2368
+ youTubeUrl?: string | null;
2359
2369
  licenses: string[];
2360
2370
  contactUsUrl?: string | null;
2361
2371
  licenseInfoUrl?: string | null;
@@ -2501,6 +2511,7 @@ export interface SiteConfigurationByUrl {
2501
2511
  accountSettings: AccountSettings;
2502
2512
  autoTaskReminderIntervalsInDays?: number[] | null;
2503
2513
  mobileSettings: MobileSettings;
2514
+ losSettings?: LOSSettings | null;
2504
2515
  workflows: Workflow[];
2505
2516
  }
2506
2517
  export interface SiteConfigurationForm {
@@ -3084,6 +3095,18 @@ export interface UserBase {
3084
3095
  lastName: string;
3085
3096
  email: string;
3086
3097
  }
3098
+ export interface UserDraft {
3099
+ /** @format uuid */
3100
+ draftID: string;
3101
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
3102
+ user: User;
3103
+ }
3104
+ export interface UserDraftPaginated {
3105
+ rows: UserDraft[];
3106
+ pagination: Pagination;
3107
+ /** @format int64 */
3108
+ count: number;
3109
+ }
3087
3110
  export interface UserLoan {
3088
3111
  /** @format date-time */
3089
3112
  createdAt: string;
@@ -3295,7 +3318,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
3295
3318
  }
3296
3319
  /**
3297
3320
  * @title The Big POS API
3298
- * @version v2.20.4
3321
+ * @version v2.20.6
3299
3322
  * @termsOfService https://www.thebigpos.com/terms-of-use/
3300
3323
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
3301
3324
  */
@@ -5140,6 +5163,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5140
5163
  * @response `404` `ProblemDetails` Not Found
5141
5164
  */
5142
5165
  inviteLoanContacts: (loanId: string, data: string[], params?: RequestParams) => Promise<AxiosResponse<Invite[], any>>;
5166
+ /**
5167
+ * No description
5168
+ *
5169
+ * @tags LoanLogs
5170
+ * @name SearchLoanLogs
5171
+ * @summary Search loan logs
5172
+ * @request POST:/api/loans/{loanId}/logs/search
5173
+ * @secure
5174
+ * @response `200` `LoanLogPaginated` Success
5175
+ */
5176
+ searchLoanLogs: (loanId: string, data: LoanLogSearchCriteria, query?: {
5177
+ /** @format int32 */
5178
+ pageSize?: number;
5179
+ /** @format int32 */
5180
+ pageNumber?: number;
5181
+ sortBy?: string;
5182
+ sortDirection?: string;
5183
+ }, params?: RequestParams) => Promise<AxiosResponse<LoanLogPaginated, any>>;
5143
5184
  /**
5144
5185
  * No description
5145
5186
  *
@@ -5622,7 +5663,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5622
5663
  * @secure
5623
5664
  * @response `201` `LoanUser` Created
5624
5665
  */
5625
- addLoanUser: (loanId: string, userId: string, params?: RequestParams) => Promise<AxiosResponse<LoanUser, any>>;
5666
+ addLoanUser: (loanId: string, userId: string, data: CreateUserLoan, params?: RequestParams) => Promise<AxiosResponse<LoanUser, any>>;
5667
+ /**
5668
+ * No description
5669
+ *
5670
+ * @tags LoanUsers
5671
+ * @name RemoveLoanUser
5672
+ * @summary Remove User from Loan
5673
+ * @request DELETE:/api/loans/{loanId}/users/{userId}
5674
+ * @secure
5675
+ * @response `204` `LoanUser` No Content
5676
+ */
5677
+ removeLoanUser: (loanId: string, userId: string, params?: RequestParams) => Promise<AxiosResponse<LoanUser, any>>;
5626
5678
  /**
5627
5679
  * No description
5628
5680
  *
@@ -6257,52 +6309,63 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6257
6309
  * No description
6258
6310
  *
6259
6311
  * @tags TheBigPOS
6260
- * @name IntegrationsLosLoansLockedList
6261
- * @request GET:/api/integrations/los/loans/{loanID}/locked
6312
+ * @name IntegrationsLosLoansUsersAssociateCreate
6313
+ * @request POST:/api/integrations/los/loans/{loanID}/users/{email}/associate
6262
6314
  * @secure
6263
6315
  * @response `200` `void` Success
6264
6316
  */
6265
- integrationsLosLoansLockedList: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
6317
+ integrationsLosLoansUsersAssociateCreate: (loanId: string, email: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
6266
6318
  /**
6267
6319
  * No description
6268
6320
  *
6269
- * @tags TheBigPOS
6270
- * @name IntegrationsLosLoansBucketsList
6271
- * @request GET:/api/integrations/los/loans/{loanID}/buckets
6321
+ * @tags UserDraft
6322
+ * @name GetDraftUsers
6323
+ * @summary Get draft users
6324
+ * @request GET:/api/loans/drafts/{draftId}/users
6272
6325
  * @secure
6273
- * @response `200` `void` Success
6326
+ * @response `200` `UserDraftPaginated` Success
6274
6327
  */
6275
- integrationsLosLoansBucketsList: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
6328
+ getDraftUsers: (draftId: string, query?: {
6329
+ /** @format int32 */
6330
+ pageSize?: number;
6331
+ /** @format int32 */
6332
+ pageNumber?: number;
6333
+ sortBy?: string;
6334
+ sortDirection?: string;
6335
+ }, params?: RequestParams) => Promise<AxiosResponse<UserDraftPaginated, any>>;
6276
6336
  /**
6277
6337
  * No description
6278
6338
  *
6279
- * @tags TheBigPOS
6280
- * @name IntegrationsLosCredentialsCreate
6281
- * @request POST:/api/integrations/los/credentials
6339
+ * @tags UserDraft
6340
+ * @name GetDraftUser
6341
+ * @summary Get draft user
6342
+ * @request GET:/api/loans/drafts/{draftId}/users/{userId}
6282
6343
  * @secure
6283
- * @response `200` `void` Success
6344
+ * @response `200` `UserDraft` Success
6284
6345
  */
6285
- integrationsLosCredentialsCreate: (data: CreateLosCredentials, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
6346
+ getDraftUser: (draftId: string, userId: string, params?: RequestParams) => Promise<AxiosResponse<UserDraft, any>>;
6286
6347
  /**
6287
6348
  * No description
6288
6349
  *
6289
- * @tags TheBigPOS
6290
- * @name IntegrationsLosLoansDocumentsDetail
6291
- * @request GET:/api/integrations/los/loans/{loanID}/documents/{documentID}
6350
+ * @tags UserDraft
6351
+ * @name AddDraftUsers
6352
+ * @summary Add draft user
6353
+ * @request POST:/api/loans/drafts/{draftId}/users/{userId}
6292
6354
  * @secure
6293
- * @response `200` `void` Success
6355
+ * @response `200` `UserDraft` Success
6294
6356
  */
6295
- integrationsLosLoansDocumentsDetail: (loanId: string, documentId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
6357
+ addDraftUsers: (draftId: string, userId: string, data: CreateUserDraft, params?: RequestParams) => Promise<AxiosResponse<UserDraft, any>>;
6296
6358
  /**
6297
6359
  * No description
6298
6360
  *
6299
- * @tags TheBigPOS
6300
- * @name IntegrationsLosLoansDocumentsList
6301
- * @request GET:/api/integrations/los/loans/{loanID}/documents
6361
+ * @tags UserDraft
6362
+ * @name DeleteDraftUser
6363
+ * @summary Delete draft user
6364
+ * @request DELETE:/api/loans/drafts/{draftId}/users/{userId}
6302
6365
  * @secure
6303
- * @response `200` `void` Success
6366
+ * @response `204` `void` No Content
6304
6367
  */
6305
- integrationsLosLoansDocumentsList: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
6368
+ deleteDraftUser: (draftId: string, userId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
6306
6369
  /**
6307
6370
  * No description
6308
6371
  *
package/dist/index.js CHANGED
@@ -104,7 +104,7 @@ export class HttpClient {
104
104
  }
105
105
  /**
106
106
  * @title The Big POS API
107
- * @version v2.20.4
107
+ * @version v2.20.6
108
108
  * @termsOfService https://www.thebigpos.com/terms-of-use/
109
109
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
110
110
  */
@@ -1776,6 +1776,17 @@ export class Api extends HttpClient {
1776
1776
  * @response `404` `ProblemDetails` Not Found
1777
1777
  */
1778
1778
  inviteLoanContacts: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/invites`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1779
+ /**
1780
+ * No description
1781
+ *
1782
+ * @tags LoanLogs
1783
+ * @name SearchLoanLogs
1784
+ * @summary Search loan logs
1785
+ * @request POST:/api/loans/{loanId}/logs/search
1786
+ * @secure
1787
+ * @response `200` `LoanLogPaginated` Success
1788
+ */
1789
+ searchLoanLogs: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/logs/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1779
1790
  /**
1780
1791
  * No description
1781
1792
  *
@@ -2208,7 +2219,18 @@ export class Api extends HttpClient {
2208
2219
  * @secure
2209
2220
  * @response `201` `LoanUser` Created
2210
2221
  */
2211
- addLoanUser: (loanId, userId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/users/${userId}`, method: "POST", secure: true, format: "json" }, params)),
2222
+ addLoanUser: (loanId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/users/${userId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2223
+ /**
2224
+ * No description
2225
+ *
2226
+ * @tags LoanUsers
2227
+ * @name RemoveLoanUser
2228
+ * @summary Remove User from Loan
2229
+ * @request DELETE:/api/loans/{loanId}/users/{userId}
2230
+ * @secure
2231
+ * @response `204` `LoanUser` No Content
2232
+ */
2233
+ removeLoanUser: (loanId, userId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/users/${userId}`, method: "DELETE", secure: true, format: "json" }, params)),
2212
2234
  /**
2213
2235
  * No description
2214
2236
  *
@@ -2793,52 +2815,56 @@ export class Api extends HttpClient {
2793
2815
  * No description
2794
2816
  *
2795
2817
  * @tags TheBigPOS
2796
- * @name IntegrationsLosLoansLockedList
2797
- * @request GET:/api/integrations/los/loans/{loanID}/locked
2818
+ * @name IntegrationsLosLoansUsersAssociateCreate
2819
+ * @request POST:/api/integrations/los/loans/{loanID}/users/{email}/associate
2798
2820
  * @secure
2799
2821
  * @response `200` `void` Success
2800
2822
  */
2801
- integrationsLosLoansLockedList: (loanId, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans/${loanId}/locked`, method: "GET", secure: true }, params)),
2823
+ integrationsLosLoansUsersAssociateCreate: (loanId, email, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans/${loanId}/users/${email}/associate`, method: "POST", secure: true }, params)),
2802
2824
  /**
2803
2825
  * No description
2804
2826
  *
2805
- * @tags TheBigPOS
2806
- * @name IntegrationsLosLoansBucketsList
2807
- * @request GET:/api/integrations/los/loans/{loanID}/buckets
2827
+ * @tags UserDraft
2828
+ * @name GetDraftUsers
2829
+ * @summary Get draft users
2830
+ * @request GET:/api/loans/drafts/{draftId}/users
2808
2831
  * @secure
2809
- * @response `200` `void` Success
2832
+ * @response `200` `UserDraftPaginated` Success
2810
2833
  */
2811
- integrationsLosLoansBucketsList: (loanId, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans/${loanId}/buckets`, method: "GET", secure: true }, params)),
2834
+ getDraftUsers: (draftId, query, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
2812
2835
  /**
2813
2836
  * No description
2814
2837
  *
2815
- * @tags TheBigPOS
2816
- * @name IntegrationsLosCredentialsCreate
2817
- * @request POST:/api/integrations/los/credentials
2838
+ * @tags UserDraft
2839
+ * @name GetDraftUser
2840
+ * @summary Get draft user
2841
+ * @request GET:/api/loans/drafts/{draftId}/users/{userId}
2818
2842
  * @secure
2819
- * @response `200` `void` Success
2843
+ * @response `200` `UserDraft` Success
2820
2844
  */
2821
- integrationsLosCredentialsCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2845
+ getDraftUser: (draftId, userId, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "GET", secure: true, format: "json" }, params)),
2822
2846
  /**
2823
2847
  * No description
2824
2848
  *
2825
- * @tags TheBigPOS
2826
- * @name IntegrationsLosLoansDocumentsDetail
2827
- * @request GET:/api/integrations/los/loans/{loanID}/documents/{documentID}
2849
+ * @tags UserDraft
2850
+ * @name AddDraftUsers
2851
+ * @summary Add draft user
2852
+ * @request POST:/api/loans/drafts/{draftId}/users/{userId}
2828
2853
  * @secure
2829
- * @response `200` `void` Success
2854
+ * @response `200` `UserDraft` Success
2830
2855
  */
2831
- integrationsLosLoansDocumentsDetail: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans/${loanId}/documents/${documentId}`, method: "GET", secure: true }, params)),
2856
+ addDraftUsers: (draftId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2832
2857
  /**
2833
2858
  * No description
2834
2859
  *
2835
- * @tags TheBigPOS
2836
- * @name IntegrationsLosLoansDocumentsList
2837
- * @request GET:/api/integrations/los/loans/{loanID}/documents
2860
+ * @tags UserDraft
2861
+ * @name DeleteDraftUser
2862
+ * @summary Delete draft user
2863
+ * @request DELETE:/api/loans/drafts/{draftId}/users/{userId}
2838
2864
  * @secure
2839
- * @response `200` `void` Success
2865
+ * @response `204` `void` No Content
2840
2866
  */
2841
- integrationsLosLoansDocumentsList: (loanId, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans/${loanId}/documents`, method: "GET", secure: true }, params)),
2867
+ deleteDraftUser: (draftId, userId, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "DELETE", secure: true }, params)),
2842
2868
  /**
2843
2869
  * No description
2844
2870
  *