@matech/thebigpos-sdk 2.43.1-rc.0 → 2.43.8

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/dist/index.js CHANGED
@@ -30,6 +30,15 @@ var __rest = (this && this.__rest) || function (s, e) {
30
30
  return t;
31
31
  };
32
32
  import axios from "axios";
33
+ export var ContentType;
34
+ (function (ContentType) {
35
+ ContentType["JsonPatch"] = "application/json-patch+json";
36
+ ContentType["Json"] = "application/json";
37
+ ContentType["JsonApi"] = "application/vnd.api+json";
38
+ ContentType["FormData"] = "multipart/form-data";
39
+ ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
40
+ ContentType["Text"] = "text/plain";
41
+ })(ContentType || (ContentType = {}));
33
42
  export class HttpClient {
34
43
  constructor(_a = {}) {
35
44
  var { securityWorker, secure, format } = _a, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
@@ -45,13 +54,13 @@ export class HttpClient {
45
54
  {};
46
55
  const requestParams = this.mergeRequestParams(params, secureParams);
47
56
  const responseFormat = format || this.format || undefined;
48
- if (type === "multipart/form-data" &&
57
+ if (type === ContentType.FormData &&
49
58
  body &&
50
59
  body !== null &&
51
60
  typeof body === "object") {
52
61
  body = this.createFormData(body);
53
62
  }
54
- if (type === "text/plain" &&
63
+ if (type === ContentType.Text &&
55
64
  body &&
56
65
  body !== null &&
57
66
  typeof body !== "string") {
@@ -95,7 +104,7 @@ export class HttpClient {
95
104
  }
96
105
  /**
97
106
  * @title The Big POS API
98
- * @version v2.43.0
107
+ * @version v2.43.8
99
108
  * @termsOfService https://www.thebigpos.com/terms-of-use/
100
109
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
101
110
  */
@@ -147,7 +156,7 @@ export class Api extends HttpClient {
147
156
  * @response `404` `ProblemDetails` Not Found
148
157
  * @response `422` `ProblemDetails` Unprocessable Content
149
158
  */
150
- replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
159
+ replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
151
160
  /**
152
161
  * No description
153
162
  *
@@ -170,7 +179,7 @@ export class Api extends HttpClient {
170
179
  * @response `200` `SiteConfiguration` OK
171
180
  * @response `422` `UnprocessableEntity` Unprocessable Content
172
181
  */
173
- updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
182
+ updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
174
183
  /**
175
184
  * No description
176
185
  *
@@ -181,7 +190,7 @@ export class Api extends HttpClient {
181
190
  * @secure
182
191
  * @response `204` `void` No Content
183
192
  */
184
- requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
193
+ requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
185
194
  /**
186
195
  * No description
187
196
  *
@@ -193,7 +202,7 @@ export class Api extends HttpClient {
193
202
  * @response `204` `void` No Content
194
203
  * @response `400` `ProblemDetails` Bad Request
195
204
  */
196
- completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
205
+ completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
197
206
  /**
198
207
  * No description
199
208
  *
@@ -216,7 +225,7 @@ export class Api extends HttpClient {
216
225
  * @response `201` `Account` Created
217
226
  * @response `422` `ProblemDetails` Unprocessable Content
218
227
  */
219
- createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
228
+ createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
220
229
  /**
221
230
  * No description
222
231
  *
@@ -254,7 +263,7 @@ export class Api extends HttpClient {
254
263
  * @response `404` `ProblemDetails` Not Found
255
264
  * @response `422` `ProblemDetails` Unprocessable Content
256
265
  */
257
- updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
266
+ updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
258
267
  /**
259
268
  * No description
260
269
  *
@@ -265,7 +274,7 @@ export class Api extends HttpClient {
265
274
  * @secure
266
275
  * @response `200` `AuditLogEntryPaginated` OK
267
276
  */
268
- searchAuditLogs: (data, query, params = {}) => this.request(Object.assign({ path: `/api/audit-logs/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
277
+ searchAuditLogs: (data, query, params = {}) => this.request(Object.assign({ path: `/api/audit-logs/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
269
278
  /**
270
279
  * No description
271
280
  *
@@ -301,7 +310,7 @@ export class Api extends HttpClient {
301
310
  * @response `401` `ProblemDetails` Unauthorized
302
311
  * @response `422` `UnprocessableEntity` Unprocessable Content
303
312
  */
304
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
313
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
305
314
  /**
306
315
  * No description
307
316
  *
@@ -313,7 +322,7 @@ export class Api extends HttpClient {
313
322
  * @response `200` `AccountDeactivated` OK
314
323
  * @response `422` `UnprocessableEntity` Unprocessable Content
315
324
  */
316
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
325
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
317
326
  /**
318
327
  * No description
319
328
  *
@@ -325,7 +334,7 @@ export class Api extends HttpClient {
325
334
  * @response `200` `AccountDeactivated` OK
326
335
  * @response `422` `UnprocessableEntity` Unprocessable Content
327
336
  */
328
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
337
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
329
338
  /**
330
339
  * No description
331
340
  *
@@ -337,7 +346,7 @@ export class Api extends HttpClient {
337
346
  * @response `200` `Token` OK
338
347
  * @response `422` `UnprocessableEntity` Unprocessable Content
339
348
  */
340
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
349
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
341
350
  /**
342
351
  * No description
343
352
  *
@@ -349,7 +358,7 @@ export class Api extends HttpClient {
349
358
  * @response `200` `SSOToken` OK
350
359
  * @response `422` `UnprocessableEntity` Unprocessable Content
351
360
  */
352
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
361
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
353
362
  /**
354
363
  * No description
355
364
  *
@@ -384,7 +393,7 @@ export class Api extends HttpClient {
384
393
  * @response `200` `GetBranch` OK
385
394
  * @response `422` `UnprocessableEntity` Unprocessable Content
386
395
  */
387
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
396
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
388
397
  /**
389
398
  * No description
390
399
  *
@@ -395,7 +404,7 @@ export class Api extends HttpClient {
395
404
  * @secure
396
405
  * @response `200` `GetBranchPaginated` OK
397
406
  */
398
- searchBranches: (data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
407
+ searchBranches: (data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
399
408
  /**
400
409
  * No description
401
410
  *
@@ -418,7 +427,7 @@ export class Api extends HttpClient {
418
427
  * @response `200` `GetBranch` OK
419
428
  * @response `422` `UnprocessableEntity` Unprocessable Content
420
429
  */
421
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
430
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
422
431
  /**
423
432
  * No description
424
433
  *
@@ -453,7 +462,7 @@ export class Api extends HttpClient {
453
462
  * @response `200` `SiteConfiguration` OK
454
463
  * @response `422` `UnprocessableEntity` Unprocessable Content
455
464
  */
456
- createBranchSiteConfiguration: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
465
+ createBranchSiteConfiguration: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
457
466
  /**
458
467
  * No description
459
468
  *
@@ -476,7 +485,7 @@ export class Api extends HttpClient {
476
485
  * @response `200` `SiteConfiguration` OK
477
486
  * @response `422` `UnprocessableEntity` Unprocessable Content
478
487
  */
479
- replaceBranchSiteConfiguration: (branchId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
488
+ replaceBranchSiteConfiguration: (branchId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
480
489
  /**
481
490
  * No description
482
491
  *
@@ -510,7 +519,7 @@ export class Api extends HttpClient {
510
519
  * @response `200` `BusinessRule` OK
511
520
  * @response `422` `UnprocessableEntity` Unprocessable Content
512
521
  */
513
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
522
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
514
523
  /**
515
524
  * No description
516
525
  *
@@ -533,7 +542,7 @@ export class Api extends HttpClient {
533
542
  * @response `200` `BusinessRule` OK
534
543
  * @response `422` `UnprocessableEntity` Unprocessable Content
535
544
  */
536
- replaceBusinessRule: (id, data, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
545
+ replaceBusinessRule: (id, data, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
537
546
  /**
538
547
  * No description
539
548
  *
@@ -566,7 +575,7 @@ export class Api extends HttpClient {
566
575
  * @secure
567
576
  * @response `200` `ClosedLoansReport` OK
568
577
  */
569
- getClosedLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/reports/closed-loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
578
+ getClosedLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/reports/closed-loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
570
579
  /**
571
580
  * No description
572
581
  *
@@ -611,7 +620,7 @@ export class Api extends HttpClient {
611
620
  * @response `200` `Corporate` OK
612
621
  * @response `422` `UnprocessableEntity` Unprocessable Content
613
622
  */
614
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
623
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
615
624
  /**
616
625
  * No description
617
626
  *
@@ -622,7 +631,7 @@ export class Api extends HttpClient {
622
631
  * @secure
623
632
  * @response `200` `CorporatePaginated` OK
624
633
  */
625
- searchCorporate: (data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
634
+ searchCorporate: (data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
626
635
  /**
627
636
  * No description
628
637
  *
@@ -645,7 +654,7 @@ export class Api extends HttpClient {
645
654
  * @response `200` `Corporate` OK
646
655
  * @response `422` `UnprocessableEntity` Unprocessable Content
647
656
  */
648
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
657
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
649
658
  /**
650
659
  * No description
651
660
  *
@@ -679,7 +688,7 @@ export class Api extends HttpClient {
679
688
  * @response `200` `SiteConfiguration` OK
680
689
  * @response `422` `UnprocessableEntity` Unprocessable Content
681
690
  */
682
- createCorporateSiteConfiguration: (corporateId, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
691
+ createCorporateSiteConfiguration: (corporateId, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
683
692
  /**
684
693
  * No description
685
694
  *
@@ -702,7 +711,7 @@ export class Api extends HttpClient {
702
711
  * @response `200` `SiteConfiguration` OK
703
712
  * @response `422` `UnprocessableEntity` Unprocessable Content
704
713
  */
705
- replaceCorporateSiteConfiguration: (corporateId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
714
+ replaceCorporateSiteConfiguration: (corporateId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
706
715
  /**
707
716
  * No description
708
717
  *
@@ -748,7 +757,7 @@ export class Api extends HttpClient {
748
757
  * @response `409` `ProblemDetails` Conflict
749
758
  * @response `422` `ProblemDetails` Unprocessable Content
750
759
  */
751
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
760
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
752
761
  /**
753
762
  * No description
754
763
  *
@@ -775,7 +784,7 @@ export class Api extends HttpClient {
775
784
  * @response `409` `ProblemDetails` Conflict
776
785
  * @response `422` `ProblemDetails` Unprocessable Content
777
786
  */
778
- updateCustomFieldDefinition: (id, data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
787
+ updateCustomFieldDefinition: (id, data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
779
788
  /**
780
789
  * No description
781
790
  *
@@ -845,7 +854,7 @@ export class Api extends HttpClient {
845
854
  * @secure
846
855
  * @response `200` `Device` OK
847
856
  */
848
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
857
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
849
858
  /**
850
859
  * No description
851
860
  *
@@ -902,7 +911,7 @@ export class Api extends HttpClient {
902
911
  * @response `404` `ProblemDetails` Not Found
903
912
  * @response `422` `UnprocessableEntity` Unprocessable Content
904
913
  */
905
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
914
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
906
915
  /**
907
916
  * No description
908
917
  *
@@ -939,7 +948,7 @@ export class Api extends HttpClient {
939
948
  * @response `404` `ProblemDetails` Not Found
940
949
  * @response `422` `UnprocessableEntity` Unprocessable Content
941
950
  */
942
- replaceDocumentTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
951
+ replaceDocumentTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
943
952
  /**
944
953
  * No description
945
954
  *
@@ -987,7 +996,7 @@ export class Api extends HttpClient {
987
996
  * @secure
988
997
  * @response `200` `DocumentTemplateVersion` OK
989
998
  */
990
- createDocumentTemplateVersion: (documentId, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
999
+ createDocumentTemplateVersion: (documentId, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
991
1000
  /**
992
1001
  * No description
993
1002
  *
@@ -1009,7 +1018,7 @@ export class Api extends HttpClient {
1009
1018
  * @secure
1010
1019
  * @response `200` `DocumentTemplateVersion` OK
1011
1020
  */
1012
- replaceDocumentTemplateVersion: (documentId, id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1021
+ replaceDocumentTemplateVersion: (documentId, id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1013
1022
  /**
1014
1023
  * No description
1015
1024
  *
@@ -1047,7 +1056,7 @@ export class Api extends HttpClient {
1047
1056
  * @response `409` `void` Conflict
1048
1057
  * @response `422` `ProblemDetails` Unprocessable Content
1049
1058
  */
1050
- addEncompassCustomFieldMapping: (definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/custom-field-mappings/${definitionId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1059
+ addEncompassCustomFieldMapping: (definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/custom-field-mappings/${definitionId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1051
1060
  /**
1052
1061
  * No description
1053
1062
  *
@@ -1136,7 +1145,7 @@ export class Api extends HttpClient {
1136
1145
  * @response `404` `EncompassError` Not Found
1137
1146
  * @response `500` `EncompassError` Internal Server Error
1138
1147
  */
1139
- createEncompassSession: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/sessions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1148
+ createEncompassSession: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/sessions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1140
1149
  /**
1141
1150
  * No description
1142
1151
  *
@@ -1159,7 +1168,7 @@ export class Api extends HttpClient {
1159
1168
  * @response `201` `File` Created
1160
1169
  * @response `422` `UnprocessableEntity` Unprocessable Content
1161
1170
  */
1162
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1171
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1163
1172
  /**
1164
1173
  * No description
1165
1174
  *
@@ -1182,7 +1191,7 @@ export class Api extends HttpClient {
1182
1191
  * @response `200` `string` OK
1183
1192
  * @response `422` `UnprocessableEntity` Unprocessable Content
1184
1193
  */
1185
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1194
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1186
1195
  /**
1187
1196
  * No description
1188
1197
  *
@@ -1204,7 +1213,7 @@ export class Api extends HttpClient {
1204
1213
  * @secure
1205
1214
  * @response `200` `FilePaginated` OK
1206
1215
  */
1207
- searchFiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/files/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1216
+ searchFiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/files/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1208
1217
  /**
1209
1218
  * No description
1210
1219
  *
@@ -1227,7 +1236,7 @@ export class Api extends HttpClient {
1227
1236
  * @response `201` `Form` Created
1228
1237
  * @response `422` `UnprocessableEntity` Unprocessable Content
1229
1238
  */
1230
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1239
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1231
1240
  /**
1232
1241
  * No description
1233
1242
  *
@@ -1250,7 +1259,7 @@ export class Api extends HttpClient {
1250
1259
  * @response `200` `Form` OK
1251
1260
  * @response `422` `UnprocessableEntity` Unprocessable Content
1252
1261
  */
1253
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1262
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1254
1263
  /**
1255
1264
  * No description
1256
1265
  *
@@ -1283,7 +1292,7 @@ export class Api extends HttpClient {
1283
1292
  * @secure
1284
1293
  * @response `200` `FormSubmissionFile` OK
1285
1294
  */
1286
- addFormSubmissionFile: (formSubmissionId, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1295
+ addFormSubmissionFile: (formSubmissionId, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1287
1296
  /**
1288
1297
  * No description
1289
1298
  *
@@ -1327,7 +1336,7 @@ export class Api extends HttpClient {
1327
1336
  * @secure
1328
1337
  * @response `201` `FormSubmission` Created
1329
1338
  */
1330
- createFormSubmission: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1339
+ createFormSubmission: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1331
1340
  /**
1332
1341
  * No description
1333
1342
  *
@@ -1349,7 +1358,7 @@ export class Api extends HttpClient {
1349
1358
  * @secure
1350
1359
  * @response `200` `FormSubmission` OK
1351
1360
  */
1352
- replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1361
+ replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1353
1362
  /**
1354
1363
  * No description
1355
1364
  *
@@ -1371,7 +1380,7 @@ export class Api extends HttpClient {
1371
1380
  * @secure
1372
1381
  * @response `200` `FormSubmissionPaginated` OK
1373
1382
  */
1374
- searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1383
+ searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1375
1384
  /**
1376
1385
  * No description
1377
1386
  *
@@ -1393,7 +1402,7 @@ export class Api extends HttpClient {
1393
1402
  * @secure
1394
1403
  * @response `200` `FormVersion` OK
1395
1404
  */
1396
- createFormVersion: (formId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1405
+ createFormVersion: (formId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1397
1406
  /**
1398
1407
  * No description
1399
1408
  *
@@ -1415,7 +1424,7 @@ export class Api extends HttpClient {
1415
1424
  * @secure
1416
1425
  * @response `200` `FormVersion` OK
1417
1426
  */
1418
- replaceFormVersion: (formId, id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1427
+ replaceFormVersion: (formId, id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1419
1428
  /**
1420
1429
  * No description
1421
1430
  *
@@ -1461,7 +1470,7 @@ export class Api extends HttpClient {
1461
1470
  * @response `200` `string` OK
1462
1471
  * @response `422` `UnprocessableEntity` Unprocessable Content
1463
1472
  */
1464
- updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
1473
+ updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1465
1474
  /**
1466
1475
  * No description
1467
1476
  *
@@ -1472,7 +1481,7 @@ export class Api extends HttpClient {
1472
1481
  * @secure
1473
1482
  * @response `200` `GetReport` OK
1474
1483
  */
1475
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1484
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1476
1485
  /**
1477
1486
  * No description
1478
1487
  *
@@ -1486,7 +1495,7 @@ export class Api extends HttpClient {
1486
1495
  * @response `422` `UnprocessableEntity` Unprocessable Content
1487
1496
  * @response `423` `UnprocessableEntity` Locked
1488
1497
  */
1489
- createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1498
+ createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1490
1499
  /**
1491
1500
  * No description
1492
1501
  *
@@ -1499,7 +1508,7 @@ export class Api extends HttpClient {
1499
1508
  * @response `422` `UnprocessableEntity` Unprocessable Content
1500
1509
  * @response `423` `UnprocessableEntity` Locked
1501
1510
  */
1502
- createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1511
+ createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1503
1512
  /**
1504
1513
  * No description
1505
1514
  *
@@ -1511,7 +1520,7 @@ export class Api extends HttpClient {
1511
1520
  * @response `200` `string` OK
1512
1521
  * @response `422` `UnprocessableEntity` Unprocessable Content
1513
1522
  */
1514
- updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
1523
+ updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1515
1524
  /**
1516
1525
  * No description
1517
1526
  *
@@ -1524,7 +1533,7 @@ export class Api extends HttpClient {
1524
1533
  * @response `202` `string` Accepted
1525
1534
  * @response `422` `UnprocessableEntity` Unprocessable Content
1526
1535
  */
1527
- updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
1536
+ updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1528
1537
  /**
1529
1538
  * No description
1530
1539
  *
@@ -1602,7 +1611,7 @@ export class Api extends HttpClient {
1602
1611
  * @secure
1603
1612
  * @response `200` `DocumentDataRequest` OK
1604
1613
  */
1605
- createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1614
+ createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1606
1615
  /**
1607
1616
  * No description
1608
1617
  *
@@ -1627,7 +1636,7 @@ export class Api extends HttpClient {
1627
1636
  * @secure
1628
1637
  * @response `200` `ListingFile` OK
1629
1638
  */
1630
- addListingFile: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1639
+ addListingFile: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1631
1640
  /**
1632
1641
  * No description
1633
1642
  *
@@ -1638,7 +1647,7 @@ export class Api extends HttpClient {
1638
1647
  * @secure
1639
1648
  * @response `200` `ListingFile` OK
1640
1649
  */
1641
- updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
1650
+ updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1642
1651
  /**
1643
1652
  * No description
1644
1653
  *
@@ -1660,7 +1669,7 @@ export class Api extends HttpClient {
1660
1669
  * @secure
1661
1670
  * @response `200` `ListingPhoto` OK
1662
1671
  */
1663
- addListingPhoto: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1672
+ addListingPhoto: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1664
1673
  /**
1665
1674
  * No description
1666
1675
  *
@@ -1671,7 +1680,7 @@ export class Api extends HttpClient {
1671
1680
  * @secure
1672
1681
  * @response `200` `(ListingPhoto)[]` OK
1673
1682
  */
1674
- updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
1683
+ updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
1675
1684
  /**
1676
1685
  * No description
1677
1686
  *
@@ -1704,7 +1713,7 @@ export class Api extends HttpClient {
1704
1713
  * @secure
1705
1714
  * @response `201` `Listing` Created
1706
1715
  */
1707
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1716
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1708
1717
  /**
1709
1718
  * No description
1710
1719
  *
@@ -1737,7 +1746,7 @@ export class Api extends HttpClient {
1737
1746
  * @secure
1738
1747
  * @response `200` `Listing` OK
1739
1748
  */
1740
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1749
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1741
1750
  /**
1742
1751
  * No description
1743
1752
  *
@@ -1759,7 +1768,7 @@ export class Api extends HttpClient {
1759
1768
  * @secure
1760
1769
  * @response `200` `ListingPaginated` OK
1761
1770
  */
1762
- searchListings: (data, query, params = {}) => this.request(Object.assign({ path: `/api/listings/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1771
+ searchListings: (data, query, params = {}) => this.request(Object.assign({ path: `/api/listings/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1763
1772
  /**
1764
1773
  * No description
1765
1774
  *
@@ -1770,7 +1779,7 @@ export class Api extends HttpClient {
1770
1779
  * @secure
1771
1780
  * @response `200` `File` OK
1772
1781
  */
1773
- updateListingBackgroundImage: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "PUT", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1782
+ updateListingBackgroundImage: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "PUT", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1774
1783
  /**
1775
1784
  * No description
1776
1785
  *
@@ -1816,7 +1825,7 @@ export class Api extends HttpClient {
1816
1825
  * @response `422` `UnprocessableEntity` Unprocessable Content
1817
1826
  * @response `423` `UnprocessableEntity` Locked
1818
1827
  */
1819
- runLoanCalculator: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/calculators/loan-calculator`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1828
+ runLoanCalculator: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/calculators/loan-calculator`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1820
1829
  /**
1821
1830
  * No description
1822
1831
  *
@@ -1840,7 +1849,7 @@ export class Api extends HttpClient {
1840
1849
  * @response `422` `UnprocessableEntity` Unprocessable Content
1841
1850
  * @response `423` `UnprocessableEntity` Locked
1842
1851
  */
1843
- createLoanComparison: (loanId, index, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/${index}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1852
+ createLoanComparison: (loanId, index, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/${index}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1844
1853
  /**
1845
1854
  * No description
1846
1855
  *
@@ -1863,7 +1872,7 @@ export class Api extends HttpClient {
1863
1872
  * @response `204` `void` No Content
1864
1873
  * @response `422` `UnprocessableEntity` Unprocessable Content
1865
1874
  */
1866
- createLoanComparisonPdf: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/pdf`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
1875
+ createLoanComparisonPdf: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/pdf`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
1867
1876
  /**
1868
1877
  * No description
1869
1878
  *
@@ -1900,7 +1909,7 @@ export class Api extends HttpClient {
1900
1909
  * @response `400` `ProblemDetails` Bad Request
1901
1910
  * @response `422` `ProblemDetails` Unprocessable Content
1902
1911
  */
1903
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
1912
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
1904
1913
  /**
1905
1914
  * No description
1906
1915
  *
@@ -1914,7 +1923,7 @@ export class Api extends HttpClient {
1914
1923
  * @response `404` `ProblemDetails` Not Found
1915
1924
  * @response `422` `ProblemDetails` Unprocessable Content
1916
1925
  */
1917
- setLoanCustomFieldValue: (loanId, definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
1926
+ setLoanCustomFieldValue: (loanId, definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
1918
1927
  /**
1919
1928
  * No description
1920
1929
  *
@@ -1948,7 +1957,7 @@ export class Api extends HttpClient {
1948
1957
  * @secure
1949
1958
  * @response `201` `(string)[]` Created
1950
1959
  */
1951
- createLoanDocumentBuckets: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/buckets`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1960
+ createLoanDocumentBuckets: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/buckets`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1952
1961
  /**
1953
1962
  * No description
1954
1963
  *
@@ -1972,7 +1981,7 @@ export class Api extends HttpClient {
1972
1981
  * @response `409` `ProblemDetails` Conflict
1973
1982
  * @response `422` `ProblemDetails` Unprocessable Content
1974
1983
  */
1975
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1984
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1976
1985
  /**
1977
1986
  * No description
1978
1987
  *
@@ -1999,7 +2008,7 @@ export class Api extends HttpClient {
1999
2008
  * @response `409` `ProblemDetails` Conflict
2000
2009
  * @response `422` `ProblemDetails` Unprocessable Content
2001
2010
  */
2002
- updateLoanDocumentFolder: (id, data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2011
+ updateLoanDocumentFolder: (id, data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2003
2012
  /**
2004
2013
  * No description
2005
2014
  *
@@ -2074,7 +2083,7 @@ export class Api extends HttpClient {
2074
2083
  * @response `200` `Record<string,string>` OK
2075
2084
  * @response `400` `ProblemDetails` Bad Request
2076
2085
  */
2077
- getLoanDocumentPreviews: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/previews`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2086
+ getLoanDocumentPreviews: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/previews`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2078
2087
  /**
2079
2088
  * No description
2080
2089
  *
@@ -2085,7 +2094,7 @@ export class Api extends HttpClient {
2085
2094
  * @secure
2086
2095
  * @response `200` `LoanDocumentSearchPaginated` OK
2087
2096
  */
2088
- searchLoanDocuments: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2097
+ searchLoanDocuments: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2089
2098
  /**
2090
2099
  * @description Returns all documents grouped by folder for sidebar display. Use folderNamesOnly=true to get simplified response with folder names and counts for mobile (Files array will be empty).
2091
2100
  *
@@ -2096,7 +2105,7 @@ export class Api extends HttpClient {
2096
2105
  * @secure
2097
2106
  * @response `200` `(DocumentFolder)[]` OK
2098
2107
  */
2099
- getLoanDocumentFolders: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/folders`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2108
+ getLoanDocumentFolders: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/folders`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2100
2109
  /**
2101
2110
  * No description
2102
2111
  *
@@ -2105,7 +2114,7 @@ export class Api extends HttpClient {
2105
2114
  * @summary Download By ID
2106
2115
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2107
2116
  * @secure
2108
- * @response `200` `Blob` OK
2117
+ * @response `200` `string` OK
2109
2118
  * @response `404` `ProblemDetails` Not Found
2110
2119
  */
2111
2120
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2121,7 +2130,7 @@ export class Api extends HttpClient {
2121
2130
  * @response `404` `ProblemDetails` Not Found
2122
2131
  * @response `422` `UnprocessableEntity` Unprocessable Content
2123
2132
  */
2124
- createLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2133
+ createLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
2125
2134
  /**
2126
2135
  * No description
2127
2136
  *
@@ -2145,7 +2154,7 @@ export class Api extends HttpClient {
2145
2154
  * @secure
2146
2155
  * @response `200` `DocumentDataRequest` OK
2147
2156
  */
2148
- generateLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2157
+ generateLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/generate`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2149
2158
  /**
2150
2159
  * No description
2151
2160
  *
@@ -2158,7 +2167,7 @@ export class Api extends HttpClient {
2158
2167
  * @response `400` `ProblemDetails` Bad Request
2159
2168
  * @response `404` `ProblemDetails` Not Found
2160
2169
  */
2161
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2170
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2162
2171
  /**
2163
2172
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2164
2173
  *
@@ -2194,7 +2203,7 @@ export class Api extends HttpClient {
2194
2203
  * @secure
2195
2204
  * @response `201` `Draft` Created
2196
2205
  */
2197
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2206
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2198
2207
  /**
2199
2208
  * No description
2200
2209
  *
@@ -2227,7 +2236,7 @@ export class Api extends HttpClient {
2227
2236
  * @secure
2228
2237
  * @response `200` `Draft` OK
2229
2238
  */
2230
- replaceLoanDraft: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2239
+ replaceLoanDraft: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2231
2240
  /**
2232
2241
  * No description
2233
2242
  *
@@ -2249,7 +2258,7 @@ export class Api extends HttpClient {
2249
2258
  * @secure
2250
2259
  * @response `201` `DraftContentPaginated` Created
2251
2260
  */
2252
- searchLoanDrafts: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2261
+ searchLoanDrafts: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2253
2262
  /**
2254
2263
  * No description
2255
2264
  *
@@ -2260,7 +2269,7 @@ export class Api extends HttpClient {
2260
2269
  * @secure
2261
2270
  * @response `200` `Draft` OK
2262
2271
  */
2263
- reassignLoanOfficer: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/reassign`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2272
+ reassignLoanOfficer: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/reassign`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2264
2273
  /**
2265
2274
  * No description
2266
2275
  *
@@ -2293,7 +2302,7 @@ export class Api extends HttpClient {
2293
2302
  * @secure
2294
2303
  * @response `201` `LoanImport` Created
2295
2304
  */
2296
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2305
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2297
2306
  /**
2298
2307
  * No description
2299
2308
  *
@@ -2339,7 +2348,7 @@ export class Api extends HttpClient {
2339
2348
  * @response `200` `(Invite)[]` OK
2340
2349
  * @response `404` `ProblemDetails` Not Found
2341
2350
  */
2342
- inviteLoanContacts: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/invites`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2351
+ 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)),
2343
2352
  /**
2344
2353
  * No description
2345
2354
  *
@@ -2350,7 +2359,7 @@ export class Api extends HttpClient {
2350
2359
  * @secure
2351
2360
  * @response `200` `LoanLogPaginated` OK
2352
2361
  */
2353
- searchLoanLogs: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/logs/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2362
+ 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)),
2354
2363
  /**
2355
2364
  * No description
2356
2365
  *
@@ -2384,7 +2393,7 @@ export class Api extends HttpClient {
2384
2393
  * @secure
2385
2394
  * @response `200` `BranchUserPaginated` OK
2386
2395
  */
2387
- searchLoanOfficers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2396
+ searchLoanOfficers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2388
2397
  /**
2389
2398
  * No description
2390
2399
  *
@@ -2407,7 +2416,7 @@ export class Api extends HttpClient {
2407
2416
  * @response `200` `SiteConfiguration` OK
2408
2417
  * @response `422` `UnprocessableEntity` Unprocessable Content
2409
2418
  */
2410
- createLoanOfficerSiteConfiguration: (loanOfficerId, data, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2419
+ createLoanOfficerSiteConfiguration: (loanOfficerId, data, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2411
2420
  /**
2412
2421
  * No description
2413
2422
  *
@@ -2430,7 +2439,7 @@ export class Api extends HttpClient {
2430
2439
  * @response `200` `SiteConfiguration` OK
2431
2440
  * @response `422` `UnprocessableEntity` Unprocessable Content
2432
2441
  */
2433
- replaceLoanOfficerSiteConfiguration: (loanOfficerId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2442
+ replaceLoanOfficerSiteConfiguration: (loanOfficerId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2434
2443
  /**
2435
2444
  * No description
2436
2445
  *
@@ -2441,7 +2450,7 @@ export class Api extends HttpClient {
2441
2450
  * @secure
2442
2451
  * @response `200` `LoanQueuePaginated` OK
2443
2452
  */
2444
- searchLoanQueue: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2453
+ searchLoanQueue: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2445
2454
  /**
2446
2455
  * No description
2447
2456
  *
@@ -2465,7 +2474,7 @@ export class Api extends HttpClient {
2465
2474
  * @response `200` `LoanQueueWithData` OK
2466
2475
  * @response `404` `ProblemDetails` Not Found
2467
2476
  */
2468
- replaceLoanQueue: (loanQueueId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/${loanQueueId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2477
+ replaceLoanQueue: (loanQueueId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/${loanQueueId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2469
2478
  /**
2470
2479
  * No description
2471
2480
  *
@@ -2526,7 +2535,7 @@ export class Api extends HttpClient {
2526
2535
  * @response `401` `ProblemDetails` Unauthorized
2527
2536
  * @response `403` `ProblemDetails` Forbidden
2528
2537
  */
2529
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2538
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2530
2539
  /**
2531
2540
  * No description
2532
2541
  *
@@ -2537,7 +2546,7 @@ export class Api extends HttpClient {
2537
2546
  * @secure
2538
2547
  * @response `200` `LoanListPaginated` OK
2539
2548
  */
2540
- searchLoans: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2549
+ searchLoans: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2541
2550
  /**
2542
2551
  * No description
2543
2552
  *
@@ -2615,7 +2624,7 @@ export class Api extends HttpClient {
2615
2624
  * @response `400` `ProblemDetails` Bad Request
2616
2625
  * @response `404` `ProblemDetails` Not Found
2617
2626
  */
2618
- triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2627
+ triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2619
2628
  /**
2620
2629
  * No description
2621
2630
  *
@@ -2627,7 +2636,7 @@ export class Api extends HttpClient {
2627
2636
  * @response `200` `TaskCommentPaginated` OK
2628
2637
  * @response `404` `ProblemDetails` Not Found
2629
2638
  */
2630
- searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2639
+ searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2631
2640
  /**
2632
2641
  * No description
2633
2642
  *
@@ -2651,7 +2660,7 @@ export class Api extends HttpClient {
2651
2660
  * @response `201` `TaskComment` Created
2652
2661
  * @response `404` `ProblemDetails` Not Found
2653
2662
  */
2654
- createLoanTaskComment: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2663
+ createLoanTaskComment: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2655
2664
  /**
2656
2665
  * No description
2657
2666
  *
@@ -2663,7 +2672,7 @@ export class Api extends HttpClient {
2663
2672
  * @response `200` `TaskComment` OK
2664
2673
  * @response `404` `ProblemDetails` Not Found
2665
2674
  */
2666
- replaceLoanTaskComment: (loanId, userLoanTaskId, commentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/${commentId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2675
+ replaceLoanTaskComment: (loanId, userLoanTaskId, commentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/${commentId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2667
2676
  /**
2668
2677
  * No description
2669
2678
  *
@@ -2688,7 +2697,7 @@ export class Api extends HttpClient {
2688
2697
  * @response `404` `ProblemDetails` Not Found
2689
2698
  * @response `422` `UnprocessableEntity` Unprocessable Content
2690
2699
  */
2691
- createLoanTaskDocument: (loanId, loanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${loanTaskId}/documents`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2700
+ createLoanTaskDocument: (loanId, loanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${loanTaskId}/documents`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
2692
2701
  /**
2693
2702
  * No description
2694
2703
  *
@@ -2725,7 +2734,7 @@ export class Api extends HttpClient {
2725
2734
  * @response `400` `ProblemDetails` Bad Request
2726
2735
  * @response `404` `ProblemDetails` Not Found
2727
2736
  */
2728
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2737
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2729
2738
  /**
2730
2739
  * @description Search tasks across all loans
2731
2740
  *
@@ -2736,7 +2745,7 @@ export class Api extends HttpClient {
2736
2745
  * @secure
2737
2746
  * @response `200` `UserLoanTaskPaginated` OK
2738
2747
  */
2739
- searchLoanTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2748
+ searchLoanTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2740
2749
  /**
2741
2750
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
2742
2751
  *
@@ -2748,7 +2757,7 @@ export class Api extends HttpClient {
2748
2757
  * @response `200` `(LoanTaskStatusSummary)[]` OK
2749
2758
  * @response `422` `UnprocessableEntity` Unprocessable Content
2750
2759
  */
2751
- searchLoanTasksSummary: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search/summary`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2760
+ searchLoanTasksSummary: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search/summary`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2752
2761
  /**
2753
2762
  * No description
2754
2763
  *
@@ -2796,7 +2805,7 @@ export class Api extends HttpClient {
2796
2805
  * @response `201` `UserLoanTask` Created
2797
2806
  * @response `404` `ProblemDetails` Not Found
2798
2807
  */
2799
- createLoanTask: (loanId, taskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${taskId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2808
+ createLoanTask: (loanId, taskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${taskId}`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2800
2809
  /**
2801
2810
  * No description
2802
2811
  *
@@ -2808,7 +2817,7 @@ export class Api extends HttpClient {
2808
2817
  * @response `201` `(UserLoanTask)[]` Created
2809
2818
  * @response `404` `ProblemDetails` Not Found
2810
2819
  */
2811
- importLoanTask: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/import`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2820
+ importLoanTask: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/import`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2812
2821
  /**
2813
2822
  * No description
2814
2823
  *
@@ -2820,7 +2829,7 @@ export class Api extends HttpClient {
2820
2829
  * @response `200` `UserLoanTask` OK
2821
2830
  * @response `404` `ProblemDetails` Not Found
2822
2831
  */
2823
- replaceLoanTask: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2832
+ replaceLoanTask: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2824
2833
  /**
2825
2834
  * No description
2826
2835
  *
@@ -2879,7 +2888,7 @@ export class Api extends HttpClient {
2879
2888
  * @secure
2880
2889
  * @response `201` `LoanUser` Created
2881
2890
  */
2882
- addLoanUser: (loanId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/users/${userId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2891
+ 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)),
2883
2892
  /**
2884
2893
  * No description
2885
2894
  *
@@ -2912,7 +2921,7 @@ export class Api extends HttpClient {
2912
2921
  * @secure
2913
2922
  * @response `200` `LosOperationTrackingPaginated` OK
2914
2923
  */
2915
- searchLosOperationTracking: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los-operation-tracking/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2924
+ searchLosOperationTracking: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los-operation-tracking/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2916
2925
  /**
2917
2926
  * No description
2918
2927
  *
@@ -2935,7 +2944,7 @@ export class Api extends HttpClient {
2935
2944
  * @response `201` `MilestoneConfiguration` Created
2936
2945
  * @response `422` `UnprocessableEntity` Unprocessable Content
2937
2946
  */
2938
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2947
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2939
2948
  /**
2940
2949
  * No description
2941
2950
  *
@@ -2960,7 +2969,7 @@ export class Api extends HttpClient {
2960
2969
  * @response `404` `Error` Not Found
2961
2970
  * @response `422` `UnprocessableEntity` Unprocessable Content
2962
2971
  */
2963
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2972
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2964
2973
  /**
2965
2974
  * No description
2966
2975
  *
@@ -2986,7 +2995,7 @@ export class Api extends HttpClient {
2986
2995
  * @response `404` `ProblemDetails` Not Found
2987
2996
  * @response `422` `ProblemDetails` Unprocessable Content
2988
2997
  */
2989
- seedMobileAppReview: (data, params = {}) => this.request(Object.assign({ path: `/api/mobile-app-review/seed`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2998
+ seedMobileAppReview: (data, params = {}) => this.request(Object.assign({ path: `/api/mobile-app-review/seed`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2990
2999
  /**
2991
3000
  * No description
2992
3001
  *
@@ -2998,7 +3007,7 @@ export class Api extends HttpClient {
2998
3007
  * @response `200` `MonthlyPaymentCalculator` OK
2999
3008
  * @response `422` `ProblemDetails` Unprocessable Content
3000
3009
  */
3001
- calculateMortgageMonthlyPayment: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/monthly-payment`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3010
+ calculateMortgageMonthlyPayment: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/monthly-payment`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3002
3011
  /**
3003
3012
  * No description
3004
3013
  *
@@ -3010,7 +3019,7 @@ export class Api extends HttpClient {
3010
3019
  * @response `200` `AffordabilityCalculator` OK
3011
3020
  * @response `422` `ProblemDetails` Unprocessable Content
3012
3021
  */
3013
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3022
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3014
3023
  /**
3015
3024
  * No description
3016
3025
  *
@@ -3022,7 +3031,7 @@ export class Api extends HttpClient {
3022
3031
  * @response `200` `LoanComparisonCalculator` OK
3023
3032
  * @response `422` `ProblemDetails` Unprocessable Content
3024
3033
  */
3025
- calculateMortgageLoanComparison: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/loan-comparison`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3034
+ calculateMortgageLoanComparison: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/loan-comparison`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3026
3035
  /**
3027
3036
  * No description
3028
3037
  *
@@ -3034,7 +3043,7 @@ export class Api extends HttpClient {
3034
3043
  * @response `200` `RefinanceCalculator` OK
3035
3044
  * @response `422` `ProblemDetails` Unprocessable Content
3036
3045
  */
3037
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3046
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3038
3047
  /**
3039
3048
  * No description
3040
3049
  *
@@ -3046,7 +3055,7 @@ export class Api extends HttpClient {
3046
3055
  * @response `200` `void` OK
3047
3056
  * @response `422` `UnprocessableEntity` Unprocessable Content
3048
3057
  */
3049
- sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3058
+ sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3050
3059
  /**
3051
3060
  * No description
3052
3061
  *
@@ -3058,7 +3067,7 @@ export class Api extends HttpClient {
3058
3067
  * @response `200` `void` OK
3059
3068
  * @response `422` `UnprocessableEntity` Unprocessable Content
3060
3069
  */
3061
- sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3070
+ sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3062
3071
  /**
3063
3072
  * No description
3064
3073
  *
@@ -3081,7 +3090,7 @@ export class Api extends HttpClient {
3081
3090
  * @response `201` `NotificationTemplate` Created
3082
3091
  * @response `422` `UnprocessableEntity` Unprocessable Content
3083
3092
  */
3084
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3093
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3085
3094
  /**
3086
3095
  * No description
3087
3096
  *
@@ -3092,7 +3101,7 @@ export class Api extends HttpClient {
3092
3101
  * @secure
3093
3102
  * @response `200` `NotificationTemplateBasePaginated` OK
3094
3103
  */
3095
- searchNotificationTemplates: (data, query, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3104
+ searchNotificationTemplates: (data, query, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3096
3105
  /**
3097
3106
  * No description
3098
3107
  *
@@ -3115,7 +3124,7 @@ export class Api extends HttpClient {
3115
3124
  * @response `200` `NotificationTemplate` OK
3116
3125
  * @response `422` `UnprocessableEntity` Unprocessable Content
3117
3126
  */
3118
- replaceNotificationTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3127
+ replaceNotificationTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3119
3128
  /**
3120
3129
  * No description
3121
3130
  *
@@ -3159,7 +3168,7 @@ export class Api extends HttpClient {
3159
3168
  * @secure
3160
3169
  * @response `200` `NotificationTemplateVersion` OK
3161
3170
  */
3162
- createNotificationTemplateVersion: (notificationId, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3171
+ createNotificationTemplateVersion: (notificationId, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3163
3172
  /**
3164
3173
  * No description
3165
3174
  *
@@ -3181,7 +3190,7 @@ export class Api extends HttpClient {
3181
3190
  * @secure
3182
3191
  * @response `200` `NotificationTemplateVersion` OK
3183
3192
  */
3184
- replaceNotificationTemplateVersion: (notificationId, id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3193
+ replaceNotificationTemplateVersion: (notificationId, id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3185
3194
  /**
3186
3195
  * No description
3187
3196
  *
@@ -3214,7 +3223,7 @@ export class Api extends HttpClient {
3214
3223
  * @secure
3215
3224
  * @response `200` `BranchUserPaginated` OK
3216
3225
  */
3217
- searchPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3226
+ searchPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3218
3227
  /**
3219
3228
  * No description
3220
3229
  *
@@ -3237,7 +3246,7 @@ export class Api extends HttpClient {
3237
3246
  * @response `200` `SiteConfiguration` OK
3238
3247
  * @response `422` `UnprocessableEntity` Unprocessable Content
3239
3248
  */
3240
- createPartnerSiteConfiguration: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3249
+ createPartnerSiteConfiguration: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3241
3250
  /**
3242
3251
  * No description
3243
3252
  *
@@ -3260,7 +3269,7 @@ export class Api extends HttpClient {
3260
3269
  * @response `200` `SiteConfiguration` OK
3261
3270
  * @response `422` `UnprocessableEntity` Unprocessable Content
3262
3271
  */
3263
- replacePartnerSiteConfiguration: (realtorId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3272
+ replacePartnerSiteConfiguration: (realtorId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3264
3273
  /**
3265
3274
  * No description
3266
3275
  *
@@ -3284,7 +3293,7 @@ export class Api extends HttpClient {
3284
3293
  * @response `200` `SiteConfigurationByUrl` OK
3285
3294
  * @response `422` `UnprocessableEntity` Unprocessable Content
3286
3295
  */
3287
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3296
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3288
3297
  /**
3289
3298
  * No description
3290
3299
  *
@@ -3309,7 +3318,7 @@ export class Api extends HttpClient {
3309
3318
  * @response `200` `SiteConfiguration` OK
3310
3319
  * @response `422` `UnprocessableEntity` Unprocessable Content
3311
3320
  */
3312
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3321
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3313
3322
  /**
3314
3323
  * No description
3315
3324
  *
@@ -3333,7 +3342,7 @@ export class Api extends HttpClient {
3333
3342
  * @response `200` `SiteConfigurationSummaryPaginated` OK
3334
3343
  * @response `422` `UnprocessableEntity` Unprocessable Content
3335
3344
  */
3336
- searchSiteConfigurations: (data, query, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3345
+ searchSiteConfigurations: (data, query, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3337
3346
  /**
3338
3347
  * No description
3339
3348
  *
@@ -3425,7 +3434,7 @@ export class Api extends HttpClient {
3425
3434
  * @secure
3426
3435
  * @response `200` `GetForm` OK
3427
3436
  */
3428
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3437
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3429
3438
  /**
3430
3439
  * No description
3431
3440
  *
@@ -3448,7 +3457,7 @@ export class Api extends HttpClient {
3448
3457
  * @response `200` `(SocialSurveyRecord)[]` OK
3449
3458
  * @response `422` `UnprocessableEntity` Unprocessable Content
3450
3459
  */
3451
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3460
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3452
3461
  /**
3453
3462
  * No description
3454
3463
  *
@@ -3471,7 +3480,7 @@ export class Api extends HttpClient {
3471
3480
  * @secure
3472
3481
  * @response `201` `Task` Created
3473
3482
  */
3474
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3483
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3475
3484
  /**
3476
3485
  * No description
3477
3486
  *
@@ -3495,7 +3504,7 @@ export class Api extends HttpClient {
3495
3504
  * @response `200` `Task` OK
3496
3505
  * @response `404` `ProblemDetails` Not Found
3497
3506
  */
3498
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3507
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3499
3508
  /**
3500
3509
  * No description
3501
3510
  *
@@ -3518,7 +3527,7 @@ export class Api extends HttpClient {
3518
3527
  * @secure
3519
3528
  * @response `200` `TaskPaginated` OK
3520
3529
  */
3521
- searchTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/tasks/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3530
+ searchTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/tasks/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3522
3531
  /**
3523
3532
  * No description
3524
3533
  *
@@ -3528,7 +3537,7 @@ export class Api extends HttpClient {
3528
3537
  * @secure
3529
3538
  * @response `200` `void` OK
3530
3539
  */
3531
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3540
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3532
3541
  /**
3533
3542
  * No description
3534
3543
  *
@@ -3539,7 +3548,7 @@ export class Api extends HttpClient {
3539
3548
  * @secure
3540
3549
  * @response `200` `EncompassRequestLogPaginated` OK
3541
3550
  */
3542
- searchEncompassLogs: (losId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/logs/${losId}/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3551
+ searchEncompassLogs: (losId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/logs/${losId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3543
3552
  /**
3544
3553
  * No description
3545
3554
  *
@@ -3562,7 +3571,7 @@ export class Api extends HttpClient {
3562
3571
  * @secure
3563
3572
  * @response `201` `LosCredentials` Created
3564
3573
  */
3565
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3574
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3566
3575
  /**
3567
3576
  * No description
3568
3577
  *
@@ -3573,7 +3582,7 @@ export class Api extends HttpClient {
3573
3582
  * @secure
3574
3583
  * @response `200` `EncompassCredentialsDetail` OK
3575
3584
  */
3576
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3585
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3577
3586
  /**
3578
3587
  * No description
3579
3588
  *
@@ -3595,7 +3604,7 @@ export class Api extends HttpClient {
3595
3604
  * @secure
3596
3605
  * @response `201` `LosWebhook` Created
3597
3606
  */
3598
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3607
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3599
3608
  /**
3600
3609
  * No description
3601
3610
  *
@@ -3617,7 +3626,7 @@ export class Api extends HttpClient {
3617
3626
  * @secure
3618
3627
  * @response `200` `LosSyncPaginated` OK
3619
3628
  */
3620
- searchLosSyncs: (loanId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/syncs/${loanId}/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3629
+ searchLosSyncs: (loanId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/syncs/${loanId}/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3621
3630
  /**
3622
3631
  * No description
3623
3632
  *
@@ -3700,7 +3709,7 @@ export class Api extends HttpClient {
3700
3709
  * @response `201` `UserDevice` Created
3701
3710
  * @response `400` `ProblemDetails` Bad Request
3702
3711
  */
3703
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3712
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3704
3713
  /**
3705
3714
  * No description
3706
3715
  *
@@ -3745,7 +3754,7 @@ export class Api extends HttpClient {
3745
3754
  * @secure
3746
3755
  * @response `200` `UserDraft` OK
3747
3756
  */
3748
- addDraftUsers: (draftId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3757
+ 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)),
3749
3758
  /**
3750
3759
  * No description
3751
3760
  *
@@ -3778,7 +3787,7 @@ export class Api extends HttpClient {
3778
3787
  * @secure
3779
3788
  * @response `200` `UserGroupAccessScope` OK
3780
3789
  */
3781
- createUserGroupAccessScope: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3790
+ createUserGroupAccessScope: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3782
3791
  /**
3783
3792
  * No description
3784
3793
  *
@@ -3811,7 +3820,7 @@ export class Api extends HttpClient {
3811
3820
  * @secure
3812
3821
  * @response `200` `UserGroupMember` OK
3813
3822
  */
3814
- createUserGroupMember: (groupId, data, query, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3823
+ createUserGroupMember: (groupId, data, query, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3815
3824
  /**
3816
3825
  * No description
3817
3826
  *
@@ -3855,7 +3864,7 @@ export class Api extends HttpClient {
3855
3864
  * @secure
3856
3865
  * @response `200` `UserGroup` OK
3857
3866
  */
3858
- updateUserGroup: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3867
+ updateUserGroup: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3859
3868
  /**
3860
3869
  * No description
3861
3870
  *
@@ -3877,7 +3886,7 @@ export class Api extends HttpClient {
3877
3886
  * @secure
3878
3887
  * @response `201` `UserGroup` Created
3879
3888
  */
3880
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3889
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3881
3890
  /**
3882
3891
  * No description
3883
3892
  *
@@ -3890,7 +3899,7 @@ export class Api extends HttpClient {
3890
3899
  * @response `404` `Error` Not Found
3891
3900
  * @response `422` `UnprocessableEntity` Unprocessable Content
3892
3901
  */
3893
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3902
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3894
3903
  /**
3895
3904
  * No description
3896
3905
  *
@@ -3903,7 +3912,7 @@ export class Api extends HttpClient {
3903
3912
  * @response `404` `Error` Not Found
3904
3913
  * @response `422` `UnprocessableEntity` Unprocessable Content
3905
3914
  */
3906
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3915
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3907
3916
  /**
3908
3917
  * No description
3909
3918
  *
@@ -3953,7 +3962,7 @@ export class Api extends HttpClient {
3953
3962
  * @response `404` `Error` Not Found
3954
3963
  * @response `422` `UnprocessableEntity` Unprocessable Content
3955
3964
  */
3956
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3965
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3957
3966
  /**
3958
3967
  * No description
3959
3968
  *
@@ -3977,7 +3986,7 @@ export class Api extends HttpClient {
3977
3986
  * @response `204` `void` No Content
3978
3987
  * @response `422` `UnprocessableEntity` Unprocessable Content
3979
3988
  */
3980
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3989
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3981
3990
  /**
3982
3991
  * No description
3983
3992
  *
@@ -4024,7 +4033,7 @@ export class Api extends HttpClient {
4024
4033
  * @secure
4025
4034
  * @response `204` `void` No Content
4026
4035
  */
4027
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4036
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4028
4037
  /**
4029
4038
  * No description
4030
4039
  *
@@ -4069,7 +4078,7 @@ export class Api extends HttpClient {
4069
4078
  * @response `200` `DetailedUser` OK
4070
4079
  * @response `422` `UnprocessableEntity` Unprocessable Content
4071
4080
  */
4072
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4081
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4073
4082
  /**
4074
4083
  * No description
4075
4084
  *
@@ -4080,7 +4089,7 @@ export class Api extends HttpClient {
4080
4089
  * @secure
4081
4090
  * @response `200` `UserPaginated` OK
4082
4091
  */
4083
- searchUsers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/users/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4092
+ searchUsers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/users/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4084
4093
  /**
4085
4094
  * No description
4086
4095
  *
@@ -4091,7 +4100,7 @@ export class Api extends HttpClient {
4091
4100
  * @secure
4092
4101
  * @response `200` `AdminAccessUser` OK
4093
4102
  */
4094
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4103
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4095
4104
  /**
4096
4105
  * No description
4097
4106
  *
@@ -4103,7 +4112,7 @@ export class Api extends HttpClient {
4103
4112
  * @response `200` `User` OK
4104
4113
  * @response `422` `UnprocessableEntity` Unprocessable Content
4105
4114
  */
4106
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4115
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4107
4116
  /**
4108
4117
  * No description
4109
4118
  *
@@ -4115,7 +4124,7 @@ export class Api extends HttpClient {
4115
4124
  * @response `200` `DetailedUser` OK
4116
4125
  * @response `422` `UnprocessableEntity` Unprocessable Content
4117
4126
  */
4118
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4127
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4119
4128
  /**
4120
4129
  * No description
4121
4130
  *
@@ -4149,7 +4158,7 @@ export class Api extends HttpClient {
4149
4158
  * @response `204` `void` No Content
4150
4159
  * @response `422` `UnprocessableEntity` Unprocessable Content
4151
4160
  */
4152
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4161
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4153
4162
  /**
4154
4163
  * No description
4155
4164
  *
@@ -4161,7 +4170,7 @@ export class Api extends HttpClient {
4161
4170
  * @response `204` `void` No Content
4162
4171
  * @response `422` `UnprocessableEntity` Unprocessable Content
4163
4172
  */
4164
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4173
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4165
4174
  /**
4166
4175
  * No description
4167
4176
  *
@@ -4173,7 +4182,7 @@ export class Api extends HttpClient {
4173
4182
  * @response `204` `void` No Content
4174
4183
  * @response `422` `UnprocessableEntity` Unprocessable Content
4175
4184
  */
4176
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4185
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4177
4186
  /**
4178
4187
  * No description
4179
4188
  *
@@ -4185,7 +4194,7 @@ export class Api extends HttpClient {
4185
4194
  * @response `204` `void` No Content
4186
4195
  * @response `422` `UnprocessableEntity` Unprocessable Content
4187
4196
  */
4188
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4197
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4189
4198
  /**
4190
4199
  * No description
4191
4200
  *
@@ -4209,7 +4218,7 @@ export class Api extends HttpClient {
4209
4218
  * @response `204` `void` No Content
4210
4219
  * @response `422` `UnprocessableEntity` Unprocessable Content
4211
4220
  */
4212
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4221
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4213
4222
  /**
4214
4223
  * No description
4215
4224
  *
@@ -4232,7 +4241,7 @@ export class Api extends HttpClient {
4232
4241
  * @secure
4233
4242
  * @response `200` `DetailedUser` OK
4234
4243
  */
4235
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4244
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4236
4245
  /**
4237
4246
  * @description Update the phone number If changed will send a verification code to the new number
4238
4247
  *
@@ -4243,7 +4252,7 @@ export class Api extends HttpClient {
4243
4252
  * @secure
4244
4253
  * @response `204` `DetailedUser` No Content
4245
4254
  */
4246
- updateMyPhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/phone-number`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4255
+ updateMyPhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/phone-number`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4247
4256
  /**
4248
4257
  * No description
4249
4258
  *
@@ -4287,7 +4296,7 @@ export class Api extends HttpClient {
4287
4296
  * @secure
4288
4297
  * @response `204` `void` No Content
4289
4298
  */
4290
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4299
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4291
4300
  /**
4292
4301
  * No description
4293
4302
  *
@@ -4298,7 +4307,7 @@ export class Api extends HttpClient {
4298
4307
  * @secure
4299
4308
  * @response `200` `GetForm` OK
4300
4309
  */
4301
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4310
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4302
4311
  };
4303
4312
  this.sso = {
4304
4313
  /**