@matech/thebigpos-sdk 2.45.0-rc5 → 2.45.0-rc7

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") {
@@ -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
  *
@@ -277,7 +286,7 @@ export class Api extends HttpClient {
277
286
  * @response `200` `AiAccountSettings` OK
278
287
  * @response `400` `ProblemDetails` Bad Request
279
288
  */
280
- updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
289
+ updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/account-settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
281
290
  /**
282
291
  * No description
283
292
  *
@@ -355,7 +364,7 @@ export class Api extends HttpClient {
355
364
  * @response `201` `AiPrompt` Created
356
365
  * @response `400` `ProblemDetails` Bad Request
357
366
  */
358
- createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
367
+ createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
359
368
  /**
360
369
  * No description
361
370
  *
@@ -380,7 +389,7 @@ export class Api extends HttpClient {
380
389
  * @response `400` `ProblemDetails` Bad Request
381
390
  * @response `404` `ProblemDetails` Not Found
382
391
  */
383
- updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
392
+ updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
384
393
  /**
385
394
  * No description
386
395
  *
@@ -417,7 +426,7 @@ export class Api extends HttpClient {
417
426
  * @response `200` `GenerateSystemPrompt` OK
418
427
  * @response `400` `ProblemDetails` Bad Request
419
428
  */
420
- generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
429
+ generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/generate`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
421
430
  /**
422
431
  * No description
423
432
  *
@@ -451,7 +460,7 @@ export class Api extends HttpClient {
451
460
  * @response `200` `AiAdminSettings` OK
452
461
  * @response `400` `ProblemDetails` Bad Request
453
462
  */
454
- updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
463
+ updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
455
464
  /**
456
465
  * No description
457
466
  *
@@ -474,7 +483,7 @@ export class Api extends HttpClient {
474
483
  * @response `201` `AiCanonicalField` Created
475
484
  * @response `400` `ProblemDetails` Bad Request
476
485
  */
477
- createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
486
+ createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
478
487
  /**
479
488
  * No description
480
489
  *
@@ -499,7 +508,7 @@ export class Api extends HttpClient {
499
508
  * @response `400` `ProblemDetails` Bad Request
500
509
  * @response `404` `ProblemDetails` Not Found
501
510
  */
502
- updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
511
+ updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
503
512
  /**
504
513
  * No description
505
514
  *
@@ -536,7 +545,7 @@ export class Api extends HttpClient {
536
545
  * @response `400` `ProblemDetails` Bad Request
537
546
  * @response `401` `ProblemDetails` Unauthorized
538
547
  */
539
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
548
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
540
549
  /**
541
550
  * No description
542
551
  *
@@ -574,7 +583,7 @@ export class Api extends HttpClient {
574
583
  * @response `403` `ProblemDetails` Forbidden
575
584
  * @response `404` `ProblemDetails` Not Found
576
585
  */
577
- renameAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
586
+ renameAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
578
587
  /**
579
588
  * No description
580
589
  *
@@ -626,7 +635,7 @@ export class Api extends HttpClient {
626
635
  * @response `403` `ProblemDetails` Forbidden
627
636
  * @response `404` `ProblemDetails` Not Found
628
637
  */
629
- pinAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/pin`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
638
+ pinAiConversation: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}/pin`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
630
639
  /**
631
640
  * No description
632
641
  *
@@ -684,7 +693,7 @@ export class Api extends HttpClient {
684
693
  * @response `201` `AiGuardrail` Created
685
694
  * @response `400` `ProblemDetails` Bad Request
686
695
  */
687
- createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
696
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
688
697
  /**
689
698
  * No description
690
699
  *
@@ -709,7 +718,7 @@ export class Api extends HttpClient {
709
718
  * @response `400` `ProblemDetails` Bad Request
710
719
  * @response `404` `ProblemDetails` Not Found
711
720
  */
712
- updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
721
+ updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
713
722
  /**
714
723
  * No description
715
724
  *
@@ -790,6 +799,18 @@ export class Api extends HttpClient {
790
799
  * @response `200` `AiConfigChangeLogPaginated` OK
791
800
  */
792
801
  getAiConfigChangesCrossAccount: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/config-changes`, method: "GET", query: query, secure: true, format: "json" }, params)),
802
+ /**
803
+ * No description
804
+ *
805
+ * @tags AiSuperAdmin
806
+ * @name SetAccountAiEnabled
807
+ * @summary Enable or disable AI for an account (SuperAdmin only)
808
+ * @request PUT:/api/ai/superadmin/accounts/{accountId}/ai-enabled
809
+ * @secure
810
+ * @response `204` `void` No Content
811
+ * @response `404` `ProblemDetails` Not Found
812
+ */
813
+ setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/superadmin/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: ContentType.JsonPatch }, params)),
793
814
  /**
794
815
  * No description
795
816
  *
@@ -800,7 +821,7 @@ export class Api extends HttpClient {
800
821
  * @secure
801
822
  * @response `200` `AiAccountUsageOverviewPaginated` OK
802
823
  */
803
- searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
824
+ searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
804
825
  /**
805
826
  * No description
806
827
  *
@@ -834,7 +855,7 @@ export class Api extends HttpClient {
834
855
  * @response `200` `AiTokenBudgetStatus` OK
835
856
  * @response `400` `ProblemDetails` Bad Request
836
857
  */
837
- setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
858
+ setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
838
859
  /**
839
860
  * No description
840
861
  *
@@ -858,7 +879,7 @@ export class Api extends HttpClient {
858
879
  * @response `400` `ProblemDetails` Bad Request
859
880
  * @response `409` `ProblemDetails` Conflict
860
881
  */
861
- createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
882
+ createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
862
883
  /**
863
884
  * No description
864
885
  *
@@ -884,7 +905,7 @@ export class Api extends HttpClient {
884
905
  * @response `404` `ProblemDetails` Not Found
885
906
  * @response `409` `ProblemDetails` Conflict
886
907
  */
887
- updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
908
+ updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
888
909
  /**
889
910
  * No description
890
911
  *
@@ -941,7 +962,7 @@ export class Api extends HttpClient {
941
962
  * @secure
942
963
  * @response `200` `AuditLogEntryPaginated` OK
943
964
  */
944
- 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)),
965
+ searchAuditLogs: (data, query, params = {}) => this.request(Object.assign({ path: `/api/audit-logs/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
945
966
  /**
946
967
  * No description
947
968
  *
@@ -977,7 +998,7 @@ export class Api extends HttpClient {
977
998
  * @response `401` `ProblemDetails` Unauthorized
978
999
  * @response `422` `UnprocessableEntity` Unprocessable Content
979
1000
  */
980
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1001
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
981
1002
  /**
982
1003
  * No description
983
1004
  *
@@ -989,7 +1010,7 @@ export class Api extends HttpClient {
989
1010
  * @response `200` `AccountDeactivated` OK
990
1011
  * @response `422` `UnprocessableEntity` Unprocessable Content
991
1012
  */
992
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1013
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
993
1014
  /**
994
1015
  * No description
995
1016
  *
@@ -1001,7 +1022,7 @@ export class Api extends HttpClient {
1001
1022
  * @response `200` `AccountDeactivated` OK
1002
1023
  * @response `422` `UnprocessableEntity` Unprocessable Content
1003
1024
  */
1004
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1025
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1005
1026
  /**
1006
1027
  * No description
1007
1028
  *
@@ -1013,7 +1034,7 @@ export class Api extends HttpClient {
1013
1034
  * @response `200` `Token` OK
1014
1035
  * @response `422` `UnprocessableEntity` Unprocessable Content
1015
1036
  */
1016
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1037
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1017
1038
  /**
1018
1039
  * No description
1019
1040
  *
@@ -1025,7 +1046,7 @@ export class Api extends HttpClient {
1025
1046
  * @response `200` `SSOToken` OK
1026
1047
  * @response `422` `UnprocessableEntity` Unprocessable Content
1027
1048
  */
1028
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1049
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1029
1050
  /**
1030
1051
  * No description
1031
1052
  *
@@ -1060,7 +1081,7 @@ export class Api extends HttpClient {
1060
1081
  * @response `200` `GetBranch` OK
1061
1082
  * @response `422` `UnprocessableEntity` Unprocessable Content
1062
1083
  */
1063
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1084
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1064
1085
  /**
1065
1086
  * No description
1066
1087
  *
@@ -1071,7 +1092,7 @@ export class Api extends HttpClient {
1071
1092
  * @secure
1072
1093
  * @response `200` `GetBranchPaginated` OK
1073
1094
  */
1074
- 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)),
1095
+ 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)),
1075
1096
  /**
1076
1097
  * No description
1077
1098
  *
@@ -1094,7 +1115,7 @@ export class Api extends HttpClient {
1094
1115
  * @response `200` `GetBranch` OK
1095
1116
  * @response `422` `UnprocessableEntity` Unprocessable Content
1096
1117
  */
1097
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1118
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1098
1119
  /**
1099
1120
  * No description
1100
1121
  *
@@ -1129,7 +1150,7 @@ export class Api extends HttpClient {
1129
1150
  * @response `200` `SiteConfiguration` OK
1130
1151
  * @response `422` `UnprocessableEntity` Unprocessable Content
1131
1152
  */
1132
- 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)),
1153
+ 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)),
1133
1154
  /**
1134
1155
  * No description
1135
1156
  *
@@ -1152,7 +1173,7 @@ export class Api extends HttpClient {
1152
1173
  * @response `200` `SiteConfiguration` OK
1153
1174
  * @response `422` `UnprocessableEntity` Unprocessable Content
1154
1175
  */
1155
- 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)),
1176
+ 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)),
1156
1177
  /**
1157
1178
  * No description
1158
1179
  *
@@ -1186,7 +1207,7 @@ export class Api extends HttpClient {
1186
1207
  * @response `200` `BusinessRule` OK
1187
1208
  * @response `422` `UnprocessableEntity` Unprocessable Content
1188
1209
  */
1189
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1210
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1190
1211
  /**
1191
1212
  * No description
1192
1213
  *
@@ -1209,7 +1230,7 @@ export class Api extends HttpClient {
1209
1230
  * @response `200` `BusinessRule` OK
1210
1231
  * @response `422` `UnprocessableEntity` Unprocessable Content
1211
1232
  */
1212
- 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)),
1233
+ 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)),
1213
1234
  /**
1214
1235
  * No description
1215
1236
  *
@@ -1242,7 +1263,7 @@ export class Api extends HttpClient {
1242
1263
  * @secure
1243
1264
  * @response `200` `ClosedLoansReport` OK
1244
1265
  */
1245
- 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)),
1266
+ 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)),
1246
1267
  /**
1247
1268
  * No description
1248
1269
  *
@@ -1287,7 +1308,7 @@ export class Api extends HttpClient {
1287
1308
  * @response `200` `Corporate` OK
1288
1309
  * @response `422` `UnprocessableEntity` Unprocessable Content
1289
1310
  */
1290
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1311
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1291
1312
  /**
1292
1313
  * No description
1293
1314
  *
@@ -1298,7 +1319,7 @@ export class Api extends HttpClient {
1298
1319
  * @secure
1299
1320
  * @response `200` `CorporatePaginated` OK
1300
1321
  */
1301
- 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)),
1322
+ 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)),
1302
1323
  /**
1303
1324
  * No description
1304
1325
  *
@@ -1321,7 +1342,7 @@ export class Api extends HttpClient {
1321
1342
  * @response `200` `Corporate` OK
1322
1343
  * @response `422` `UnprocessableEntity` Unprocessable Content
1323
1344
  */
1324
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1345
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1325
1346
  /**
1326
1347
  * No description
1327
1348
  *
@@ -1355,7 +1376,7 @@ export class Api extends HttpClient {
1355
1376
  * @response `200` `SiteConfiguration` OK
1356
1377
  * @response `422` `UnprocessableEntity` Unprocessable Content
1357
1378
  */
1358
- 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)),
1379
+ 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)),
1359
1380
  /**
1360
1381
  * No description
1361
1382
  *
@@ -1378,7 +1399,7 @@ export class Api extends HttpClient {
1378
1399
  * @response `200` `SiteConfiguration` OK
1379
1400
  * @response `422` `UnprocessableEntity` Unprocessable Content
1380
1401
  */
1381
- 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)),
1402
+ 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)),
1382
1403
  /**
1383
1404
  * No description
1384
1405
  *
@@ -1424,7 +1445,7 @@ export class Api extends HttpClient {
1424
1445
  * @response `409` `ProblemDetails` Conflict
1425
1446
  * @response `422` `ProblemDetails` Unprocessable Content
1426
1447
  */
1427
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1448
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1428
1449
  /**
1429
1450
  * No description
1430
1451
  *
@@ -1451,7 +1472,7 @@ export class Api extends HttpClient {
1451
1472
  * @response `409` `ProblemDetails` Conflict
1452
1473
  * @response `422` `ProblemDetails` Unprocessable Content
1453
1474
  */
1454
- 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)),
1475
+ 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)),
1455
1476
  /**
1456
1477
  * No description
1457
1478
  *
@@ -1521,7 +1542,7 @@ export class Api extends HttpClient {
1521
1542
  * @secure
1522
1543
  * @response `200` `Device` OK
1523
1544
  */
1524
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1545
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1525
1546
  /**
1526
1547
  * No description
1527
1548
  *
@@ -1578,7 +1599,7 @@ export class Api extends HttpClient {
1578
1599
  * @response `404` `ProblemDetails` Not Found
1579
1600
  * @response `422` `UnprocessableEntity` Unprocessable Content
1580
1601
  */
1581
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1602
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1582
1603
  /**
1583
1604
  * No description
1584
1605
  *
@@ -1615,7 +1636,7 @@ export class Api extends HttpClient {
1615
1636
  * @response `404` `ProblemDetails` Not Found
1616
1637
  * @response `422` `UnprocessableEntity` Unprocessable Content
1617
1638
  */
1618
- 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)),
1639
+ 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)),
1619
1640
  /**
1620
1641
  * No description
1621
1642
  *
@@ -1663,7 +1684,7 @@ export class Api extends HttpClient {
1663
1684
  * @secure
1664
1685
  * @response `200` `DocumentTemplateVersion` OK
1665
1686
  */
1666
- 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)),
1687
+ 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)),
1667
1688
  /**
1668
1689
  * No description
1669
1690
  *
@@ -1685,7 +1706,7 @@ export class Api extends HttpClient {
1685
1706
  * @secure
1686
1707
  * @response `200` `DocumentTemplateVersion` OK
1687
1708
  */
1688
- 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)),
1709
+ 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)),
1689
1710
  /**
1690
1711
  * No description
1691
1712
  *
@@ -1723,7 +1744,7 @@ export class Api extends HttpClient {
1723
1744
  * @response `409` `void` Conflict
1724
1745
  * @response `422` `ProblemDetails` Unprocessable Content
1725
1746
  */
1726
- 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)),
1747
+ 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)),
1727
1748
  /**
1728
1749
  * No description
1729
1750
  *
@@ -1812,7 +1833,7 @@ export class Api extends HttpClient {
1812
1833
  * @response `404` `EncompassError` Not Found
1813
1834
  * @response `500` `EncompassError` Internal Server Error
1814
1835
  */
1815
- 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)),
1836
+ 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)),
1816
1837
  /**
1817
1838
  * No description
1818
1839
  *
@@ -1835,7 +1856,7 @@ export class Api extends HttpClient {
1835
1856
  * @response `201` `File` Created
1836
1857
  * @response `422` `UnprocessableEntity` Unprocessable Content
1837
1858
  */
1838
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1859
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1839
1860
  /**
1840
1861
  * No description
1841
1862
  *
@@ -1858,7 +1879,7 @@ export class Api extends HttpClient {
1858
1879
  * @response `200` `string` OK
1859
1880
  * @response `422` `UnprocessableEntity` Unprocessable Content
1860
1881
  */
1861
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1882
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1862
1883
  /**
1863
1884
  * No description
1864
1885
  *
@@ -1880,7 +1901,7 @@ export class Api extends HttpClient {
1880
1901
  * @secure
1881
1902
  * @response `200` `FilePaginated` OK
1882
1903
  */
1883
- 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)),
1904
+ 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)),
1884
1905
  /**
1885
1906
  * No description
1886
1907
  *
@@ -1903,7 +1924,7 @@ export class Api extends HttpClient {
1903
1924
  * @response `201` `Form` Created
1904
1925
  * @response `422` `UnprocessableEntity` Unprocessable Content
1905
1926
  */
1906
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1927
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1907
1928
  /**
1908
1929
  * No description
1909
1930
  *
@@ -1926,7 +1947,7 @@ export class Api extends HttpClient {
1926
1947
  * @response `200` `Form` OK
1927
1948
  * @response `422` `UnprocessableEntity` Unprocessable Content
1928
1949
  */
1929
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1950
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1930
1951
  /**
1931
1952
  * No description
1932
1953
  *
@@ -1959,7 +1980,7 @@ export class Api extends HttpClient {
1959
1980
  * @secure
1960
1981
  * @response `200` `FormSubmissionFile` OK
1961
1982
  */
1962
- 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)),
1983
+ 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)),
1963
1984
  /**
1964
1985
  * No description
1965
1986
  *
@@ -2003,7 +2024,7 @@ export class Api extends HttpClient {
2003
2024
  * @secure
2004
2025
  * @response `201` `FormSubmission` Created
2005
2026
  */
2006
- 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)),
2027
+ 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)),
2007
2028
  /**
2008
2029
  * No description
2009
2030
  *
@@ -2025,7 +2046,7 @@ export class Api extends HttpClient {
2025
2046
  * @secure
2026
2047
  * @response `200` `FormSubmission` OK
2027
2048
  */
2028
- 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)),
2049
+ 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)),
2029
2050
  /**
2030
2051
  * No description
2031
2052
  *
@@ -2047,7 +2068,7 @@ export class Api extends HttpClient {
2047
2068
  * @secure
2048
2069
  * @response `200` `FormSubmissionPaginated` OK
2049
2070
  */
2050
- 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)),
2071
+ 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)),
2051
2072
  /**
2052
2073
  * No description
2053
2074
  *
@@ -2069,7 +2090,7 @@ export class Api extends HttpClient {
2069
2090
  * @secure
2070
2091
  * @response `200` `FormVersion` OK
2071
2092
  */
2072
- 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)),
2093
+ 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)),
2073
2094
  /**
2074
2095
  * No description
2075
2096
  *
@@ -2091,7 +2112,7 @@ export class Api extends HttpClient {
2091
2112
  * @secure
2092
2113
  * @response `200` `FormVersion` OK
2093
2114
  */
2094
- 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)),
2115
+ 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)),
2095
2116
  /**
2096
2117
  * No description
2097
2118
  *
@@ -2137,7 +2158,7 @@ export class Api extends HttpClient {
2137
2158
  * @response `200` `string` OK
2138
2159
  * @response `422` `UnprocessableEntity` Unprocessable Content
2139
2160
  */
2140
- 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)),
2161
+ 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)),
2141
2162
  /**
2142
2163
  * No description
2143
2164
  *
@@ -2148,7 +2169,7 @@ export class Api extends HttpClient {
2148
2169
  * @secure
2149
2170
  * @response `200` `GetReport` OK
2150
2171
  */
2151
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2172
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2152
2173
  /**
2153
2174
  * No description
2154
2175
  *
@@ -2162,7 +2183,7 @@ export class Api extends HttpClient {
2162
2183
  * @response `422` `UnprocessableEntity` Unprocessable Content
2163
2184
  * @response `423` `UnprocessableEntity` Locked
2164
2185
  */
2165
- 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)),
2186
+ 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)),
2166
2187
  /**
2167
2188
  * No description
2168
2189
  *
@@ -2175,7 +2196,7 @@ export class Api extends HttpClient {
2175
2196
  * @response `422` `UnprocessableEntity` Unprocessable Content
2176
2197
  * @response `423` `UnprocessableEntity` Locked
2177
2198
  */
2178
- 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)),
2199
+ 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)),
2179
2200
  /**
2180
2201
  * No description
2181
2202
  *
@@ -2187,7 +2208,7 @@ export class Api extends HttpClient {
2187
2208
  * @response `200` `string` OK
2188
2209
  * @response `422` `UnprocessableEntity` Unprocessable Content
2189
2210
  */
2190
- 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)),
2211
+ 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)),
2191
2212
  /**
2192
2213
  * No description
2193
2214
  *
@@ -2200,7 +2221,7 @@ export class Api extends HttpClient {
2200
2221
  * @response `202` `string` Accepted
2201
2222
  * @response `422` `UnprocessableEntity` Unprocessable Content
2202
2223
  */
2203
- 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)),
2224
+ 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)),
2204
2225
  /**
2205
2226
  * No description
2206
2227
  *
@@ -2267,18 +2288,6 @@ export class Api extends HttpClient {
2267
2288
  * @response `200` `string` OK
2268
2289
  */
2269
2290
  getLoanEmbeddedSigningLink: (envelopeId, userName, email, params = {}) => this.request(Object.assign({ path: `/api/los/loan/embeddedsigning/${envelopeId}/${userName}/${email}`, method: "POST", secure: true, format: "json" }, params)),
2270
- /**
2271
- * No description
2272
- *
2273
- * @tags LegacyLoan
2274
- * @name CreateLegacyLoanDocument
2275
- * @summary Create Document
2276
- * @request POST:/api/los/loan/generatedocument
2277
- * @deprecated
2278
- * @secure
2279
- * @response `200` `DocumentDataRequest` OK
2280
- */
2281
- createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2282
2291
  /**
2283
2292
  * No description
2284
2293
  *
@@ -2303,7 +2312,7 @@ export class Api extends HttpClient {
2303
2312
  * @secure
2304
2313
  * @response `200` `ListingFile` OK
2305
2314
  */
2306
- 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)),
2315
+ 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)),
2307
2316
  /**
2308
2317
  * No description
2309
2318
  *
@@ -2314,7 +2323,7 @@ export class Api extends HttpClient {
2314
2323
  * @secure
2315
2324
  * @response `200` `ListingFile` OK
2316
2325
  */
2317
- 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)),
2326
+ 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)),
2318
2327
  /**
2319
2328
  * No description
2320
2329
  *
@@ -2336,7 +2345,7 @@ export class Api extends HttpClient {
2336
2345
  * @secure
2337
2346
  * @response `200` `ListingPhoto` OK
2338
2347
  */
2339
- 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)),
2348
+ 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)),
2340
2349
  /**
2341
2350
  * No description
2342
2351
  *
@@ -2347,7 +2356,7 @@ export class Api extends HttpClient {
2347
2356
  * @secure
2348
2357
  * @response `200` `(ListingPhoto)[]` OK
2349
2358
  */
2350
- 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)),
2359
+ 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)),
2351
2360
  /**
2352
2361
  * No description
2353
2362
  *
@@ -2380,7 +2389,7 @@ export class Api extends HttpClient {
2380
2389
  * @secure
2381
2390
  * @response `201` `Listing` Created
2382
2391
  */
2383
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2392
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2384
2393
  /**
2385
2394
  * No description
2386
2395
  *
@@ -2413,7 +2422,7 @@ export class Api extends HttpClient {
2413
2422
  * @secure
2414
2423
  * @response `200` `Listing` OK
2415
2424
  */
2416
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2425
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2417
2426
  /**
2418
2427
  * No description
2419
2428
  *
@@ -2435,7 +2444,7 @@ export class Api extends HttpClient {
2435
2444
  * @secure
2436
2445
  * @response `200` `ListingPaginated` OK
2437
2446
  */
2438
- 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)),
2447
+ 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)),
2439
2448
  /**
2440
2449
  * No description
2441
2450
  *
@@ -2446,7 +2455,7 @@ export class Api extends HttpClient {
2446
2455
  * @secure
2447
2456
  * @response `200` `File` OK
2448
2457
  */
2449
- 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)),
2458
+ 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)),
2450
2459
  /**
2451
2460
  * No description
2452
2461
  *
@@ -2492,7 +2501,7 @@ export class Api extends HttpClient {
2492
2501
  * @response `422` `UnprocessableEntity` Unprocessable Content
2493
2502
  * @response `423` `UnprocessableEntity` Locked
2494
2503
  */
2495
- 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)),
2504
+ 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)),
2496
2505
  /**
2497
2506
  * No description
2498
2507
  *
@@ -2516,7 +2525,7 @@ export class Api extends HttpClient {
2516
2525
  * @response `422` `UnprocessableEntity` Unprocessable Content
2517
2526
  * @response `423` `UnprocessableEntity` Locked
2518
2527
  */
2519
- 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)),
2528
+ 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)),
2520
2529
  /**
2521
2530
  * No description
2522
2531
  *
@@ -2539,7 +2548,7 @@ export class Api extends HttpClient {
2539
2548
  * @response `204` `void` No Content
2540
2549
  * @response `422` `UnprocessableEntity` Unprocessable Content
2541
2550
  */
2542
- 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)),
2551
+ 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)),
2543
2552
  /**
2544
2553
  * No description
2545
2554
  *
@@ -2576,7 +2585,7 @@ export class Api extends HttpClient {
2576
2585
  * @response `400` `ProblemDetails` Bad Request
2577
2586
  * @response `422` `ProblemDetails` Unprocessable Content
2578
2587
  */
2579
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2588
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
2580
2589
  /**
2581
2590
  * No description
2582
2591
  *
@@ -2590,7 +2599,7 @@ export class Api extends HttpClient {
2590
2599
  * @response `404` `ProblemDetails` Not Found
2591
2600
  * @response `422` `ProblemDetails` Unprocessable Content
2592
2601
  */
2593
- 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)),
2602
+ 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)),
2594
2603
  /**
2595
2604
  * No description
2596
2605
  *
@@ -2624,7 +2633,7 @@ export class Api extends HttpClient {
2624
2633
  * @secure
2625
2634
  * @response `201` `(string)[]` Created
2626
2635
  */
2627
- 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)),
2636
+ 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)),
2628
2637
  /**
2629
2638
  * No description
2630
2639
  *
@@ -2648,7 +2657,7 @@ export class Api extends HttpClient {
2648
2657
  * @response `409` `ProblemDetails` Conflict
2649
2658
  * @response `422` `ProblemDetails` Unprocessable Content
2650
2659
  */
2651
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2660
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2652
2661
  /**
2653
2662
  * No description
2654
2663
  *
@@ -2675,7 +2684,7 @@ export class Api extends HttpClient {
2675
2684
  * @response `409` `ProblemDetails` Conflict
2676
2685
  * @response `422` `ProblemDetails` Unprocessable Content
2677
2686
  */
2678
- 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)),
2687
+ 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)),
2679
2688
  /**
2680
2689
  * No description
2681
2690
  *
@@ -2750,7 +2759,7 @@ export class Api extends HttpClient {
2750
2759
  * @response `200` `Record<string,string>` OK
2751
2760
  * @response `400` `ProblemDetails` Bad Request
2752
2761
  */
2753
- 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)),
2762
+ 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)),
2754
2763
  /**
2755
2764
  * No description
2756
2765
  *
@@ -2761,7 +2770,7 @@ export class Api extends HttpClient {
2761
2770
  * @secure
2762
2771
  * @response `200` `LoanDocumentSearchPaginated` OK
2763
2772
  */
2764
- 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)),
2773
+ 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)),
2765
2774
  /**
2766
2775
  * @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).
2767
2776
  *
@@ -2772,7 +2781,7 @@ export class Api extends HttpClient {
2772
2781
  * @secure
2773
2782
  * @response `200` `(DocumentFolder)[]` OK
2774
2783
  */
2775
- 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)),
2784
+ 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)),
2776
2785
  /**
2777
2786
  * No description
2778
2787
  *
@@ -2781,7 +2790,7 @@ export class Api extends HttpClient {
2781
2790
  * @summary Download By ID
2782
2791
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2783
2792
  * @secure
2784
- * @response `200` `Blob` OK
2793
+ * @response `200` `string` OK
2785
2794
  * @response `404` `ProblemDetails` Not Found
2786
2795
  */
2787
2796
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2797,7 +2806,7 @@ export class Api extends HttpClient {
2797
2806
  * @response `404` `ProblemDetails` Not Found
2798
2807
  * @response `422` `UnprocessableEntity` Unprocessable Content
2799
2808
  */
2800
- 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)),
2809
+ 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)),
2801
2810
  /**
2802
2811
  * No description
2803
2812
  *
@@ -2821,7 +2830,7 @@ export class Api extends HttpClient {
2821
2830
  * @secure
2822
2831
  * @response `200` `DocumentDataRequest` OK
2823
2832
  */
2824
- 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)),
2833
+ 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)),
2825
2834
  /**
2826
2835
  * No description
2827
2836
  *
@@ -2834,7 +2843,7 @@ export class Api extends HttpClient {
2834
2843
  * @response `400` `ProblemDetails` Bad Request
2835
2844
  * @response `404` `ProblemDetails` Not Found
2836
2845
  */
2837
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2846
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2838
2847
  /**
2839
2848
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2840
2849
  *
@@ -2859,7 +2868,7 @@ export class Api extends HttpClient {
2859
2868
  * @response `404` `ProblemDetails` Not Found
2860
2869
  * @response `422` `UnprocessableEntity` Unprocessable Content
2861
2870
  */
2862
- classifyLoanDocumentManually: (loanId, documentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2871
+ classifyLoanDocumentManually: (loanId, documentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2863
2872
  /**
2864
2873
  * @description Re-attempts to push a failed document to LOS
2865
2874
  *
@@ -2883,7 +2892,7 @@ export class Api extends HttpClient {
2883
2892
  * @secure
2884
2893
  * @response `201` `Draft` Created
2885
2894
  */
2886
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2895
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2887
2896
  /**
2888
2897
  * No description
2889
2898
  *
@@ -2916,7 +2925,7 @@ export class Api extends HttpClient {
2916
2925
  * @secure
2917
2926
  * @response `200` `Draft` OK
2918
2927
  */
2919
- 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)),
2928
+ 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)),
2920
2929
  /**
2921
2930
  * No description
2922
2931
  *
@@ -2938,7 +2947,7 @@ export class Api extends HttpClient {
2938
2947
  * @secure
2939
2948
  * @response `201` `DraftContentPaginated` Created
2940
2949
  */
2941
- 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)),
2950
+ 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)),
2942
2951
  /**
2943
2952
  * No description
2944
2953
  *
@@ -2949,7 +2958,7 @@ export class Api extends HttpClient {
2949
2958
  * @secure
2950
2959
  * @response `200` `Draft` OK
2951
2960
  */
2952
- 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)),
2961
+ 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)),
2953
2962
  /**
2954
2963
  * No description
2955
2964
  *
@@ -2982,7 +2991,7 @@ export class Api extends HttpClient {
2982
2991
  * @secure
2983
2992
  * @response `201` `LoanImport` Created
2984
2993
  */
2985
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2994
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2986
2995
  /**
2987
2996
  * No description
2988
2997
  *
@@ -3028,7 +3037,7 @@ export class Api extends HttpClient {
3028
3037
  * @response `200` `(Invite)[]` OK
3029
3038
  * @response `404` `ProblemDetails` Not Found
3030
3039
  */
3031
- 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)),
3040
+ 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)),
3032
3041
  /**
3033
3042
  * No description
3034
3043
  *
@@ -3039,7 +3048,7 @@ export class Api extends HttpClient {
3039
3048
  * @secure
3040
3049
  * @response `200` `LoanLogPaginated` OK
3041
3050
  */
3042
- 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)),
3051
+ 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)),
3043
3052
  /**
3044
3053
  * No description
3045
3054
  *
@@ -3064,7 +3073,7 @@ export class Api extends HttpClient {
3064
3073
  * @response `400` `ProblemDetails` Bad Request
3065
3074
  * @response `404` `ProblemDetails` Not Found
3066
3075
  */
3067
- sendLoanOptInReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/opt-in-reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3076
+ sendLoanOptInReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/opt-in-reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3068
3077
  /**
3069
3078
  * No description
3070
3079
  *
@@ -3077,7 +3086,7 @@ export class Api extends HttpClient {
3077
3086
  * @response `400` `ProblemDetails` Bad Request
3078
3087
  * @response `404` `ProblemDetails` Not Found
3079
3088
  */
3080
- sendESignatureReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/esignature-reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3089
+ sendESignatureReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/notifications/esignature-reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3081
3090
  /**
3082
3091
  * No description
3083
3092
  *
@@ -3099,7 +3108,7 @@ export class Api extends HttpClient {
3099
3108
  * @secure
3100
3109
  * @response `200` `BranchUserPaginated` OK
3101
3110
  */
3102
- 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)),
3111
+ 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)),
3103
3112
  /**
3104
3113
  * No description
3105
3114
  *
@@ -3122,7 +3131,7 @@ export class Api extends HttpClient {
3122
3131
  * @response `200` `SiteConfiguration` OK
3123
3132
  * @response `422` `UnprocessableEntity` Unprocessable Content
3124
3133
  */
3125
- 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)),
3134
+ 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)),
3126
3135
  /**
3127
3136
  * No description
3128
3137
  *
@@ -3145,7 +3154,7 @@ export class Api extends HttpClient {
3145
3154
  * @response `200` `SiteConfiguration` OK
3146
3155
  * @response `422` `UnprocessableEntity` Unprocessable Content
3147
3156
  */
3148
- 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)),
3157
+ 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)),
3149
3158
  /**
3150
3159
  * No description
3151
3160
  *
@@ -3156,7 +3165,7 @@ export class Api extends HttpClient {
3156
3165
  * @secure
3157
3166
  * @response `200` `LoanQueuePaginated` OK
3158
3167
  */
3159
- 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)),
3168
+ 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)),
3160
3169
  /**
3161
3170
  * No description
3162
3171
  *
@@ -3180,7 +3189,7 @@ export class Api extends HttpClient {
3180
3189
  * @response `200` `LoanQueueWithData` OK
3181
3190
  * @response `404` `ProblemDetails` Not Found
3182
3191
  */
3183
- 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)),
3192
+ 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)),
3184
3193
  /**
3185
3194
  * No description
3186
3195
  *
@@ -3241,7 +3250,7 @@ export class Api extends HttpClient {
3241
3250
  * @response `401` `ProblemDetails` Unauthorized
3242
3251
  * @response `403` `ProblemDetails` Forbidden
3243
3252
  */
3244
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3253
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3245
3254
  /**
3246
3255
  * No description
3247
3256
  *
@@ -3252,7 +3261,7 @@ export class Api extends HttpClient {
3252
3261
  * @secure
3253
3262
  * @response `200` `LoanListPaginated` OK
3254
3263
  */
3255
- 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)),
3264
+ 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)),
3256
3265
  /**
3257
3266
  * No description
3258
3267
  *
@@ -3268,7 +3277,7 @@ export class Api extends HttpClient {
3268
3277
  * @response `404` `ProblemDetails` Not Found
3269
3278
  * @response `409` `any` Conflict
3270
3279
  */
3271
- updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
3280
+ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
3272
3281
  /**
3273
3282
  * No description
3274
3283
  *
@@ -3330,7 +3339,7 @@ export class Api extends HttpClient {
3330
3339
  * @response `400` `ProblemDetails` Bad Request
3331
3340
  * @response `404` `ProblemDetails` Not Found
3332
3341
  */
3333
- 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)),
3342
+ triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3334
3343
  /**
3335
3344
  * No description
3336
3345
  *
@@ -3342,7 +3351,7 @@ export class Api extends HttpClient {
3342
3351
  * @response `200` `TaskCommentPaginated` OK
3343
3352
  * @response `404` `ProblemDetails` Not Found
3344
3353
  */
3345
- 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)),
3354
+ 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)),
3346
3355
  /**
3347
3356
  * No description
3348
3357
  *
@@ -3366,7 +3375,7 @@ export class Api extends HttpClient {
3366
3375
  * @response `201` `TaskComment` Created
3367
3376
  * @response `404` `ProblemDetails` Not Found
3368
3377
  */
3369
- 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)),
3378
+ 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)),
3370
3379
  /**
3371
3380
  * No description
3372
3381
  *
@@ -3378,7 +3387,7 @@ export class Api extends HttpClient {
3378
3387
  * @response `200` `TaskComment` OK
3379
3388
  * @response `404` `ProblemDetails` Not Found
3380
3389
  */
3381
- 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)),
3390
+ 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)),
3382
3391
  /**
3383
3392
  * No description
3384
3393
  *
@@ -3403,19 +3412,7 @@ export class Api extends HttpClient {
3403
3412
  * @response `404` `ProblemDetails` Not Found
3404
3413
  * @response `422` `UnprocessableEntity` Unprocessable Content
3405
3414
  */
3406
- 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)),
3407
- /**
3408
- * No description
3409
- *
3410
- * @tags LoanTaskDocuments
3411
- * @name CreateLoanTaskDocumentBucket
3412
- * @summary Create Bucket
3413
- * @request POST:/api/loans/{loanID}/tasks/{loanTaskId}/documents/bucket
3414
- * @secure
3415
- * @response `204` `UserLoanTask` No Content
3416
- * @response `422` `UnprocessableEntity` Unprocessable Content
3417
- */
3418
- createLoanTaskDocumentBucket: (loanId, loanTaskId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${loanTaskId}/documents/bucket`, method: "POST", secure: true, format: "json" }, params)),
3415
+ 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)),
3419
3416
  /**
3420
3417
  * No description
3421
3418
  *
@@ -3425,9 +3422,11 @@ export class Api extends HttpClient {
3425
3422
  * @request POST:/api/loans/{loanID}/tasks/reminders/outstanding
3426
3423
  * @secure
3427
3424
  * @response `204` `void` No Content
3425
+ * @response `400` `ProblemDetails` Bad Request
3428
3426
  * @response `404` `ProblemDetails` Not Found
3427
+ * @response `422` `ProblemDetails` Unprocessable Content
3429
3428
  */
3430
- sendOutstandingLoanTaskNotification: (loanId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders/outstanding`, method: "POST", secure: true }, params)),
3429
+ sendOutstandingLoanTaskNotification: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders/outstanding`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3431
3430
  /**
3432
3431
  * No description
3433
3432
  *
@@ -3440,7 +3439,7 @@ export class Api extends HttpClient {
3440
3439
  * @response `400` `ProblemDetails` Bad Request
3441
3440
  * @response `404` `ProblemDetails` Not Found
3442
3441
  */
3443
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3442
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3444
3443
  /**
3445
3444
  * @description Search tasks across all loans
3446
3445
  *
@@ -3451,7 +3450,7 @@ export class Api extends HttpClient {
3451
3450
  * @secure
3452
3451
  * @response `200` `UserLoanTaskPaginated` OK
3453
3452
  */
3454
- 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)),
3453
+ 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)),
3455
3454
  /**
3456
3455
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3457
3456
  *
@@ -3463,7 +3462,7 @@ export class Api extends HttpClient {
3463
3462
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3464
3463
  * @response `422` `UnprocessableEntity` Unprocessable Content
3465
3464
  */
3466
- 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)),
3465
+ 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)),
3467
3466
  /**
3468
3467
  * No description
3469
3468
  *
@@ -3511,7 +3510,7 @@ export class Api extends HttpClient {
3511
3510
  * @response `201` `UserLoanTask` Created
3512
3511
  * @response `404` `ProblemDetails` Not Found
3513
3512
  */
3514
- 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)),
3513
+ 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)),
3515
3514
  /**
3516
3515
  * No description
3517
3516
  *
@@ -3523,7 +3522,7 @@ export class Api extends HttpClient {
3523
3522
  * @response `201` `(UserLoanTask)[]` Created
3524
3523
  * @response `404` `ProblemDetails` Not Found
3525
3524
  */
3526
- 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)),
3525
+ 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)),
3527
3526
  /**
3528
3527
  * No description
3529
3528
  *
@@ -3535,7 +3534,7 @@ export class Api extends HttpClient {
3535
3534
  * @response `200` `UserLoanTask` OK
3536
3535
  * @response `404` `ProblemDetails` Not Found
3537
3536
  */
3538
- 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)),
3537
+ 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)),
3539
3538
  /**
3540
3539
  * No description
3541
3540
  *
@@ -3594,7 +3593,7 @@ export class Api extends HttpClient {
3594
3593
  * @secure
3595
3594
  * @response `201` `LoanUser` Created
3596
3595
  */
3597
- 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)),
3596
+ 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)),
3598
3597
  /**
3599
3598
  * No description
3600
3599
  *
@@ -3627,7 +3626,7 @@ export class Api extends HttpClient {
3627
3626
  * @secure
3628
3627
  * @response `200` `LosOperationTrackingPaginated` OK
3629
3628
  */
3630
- 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)),
3629
+ 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)),
3631
3630
  /**
3632
3631
  * No description
3633
3632
  *
@@ -3650,7 +3649,7 @@ export class Api extends HttpClient {
3650
3649
  * @response `201` `MilestoneConfiguration` Created
3651
3650
  * @response `422` `UnprocessableEntity` Unprocessable Content
3652
3651
  */
3653
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3652
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3654
3653
  /**
3655
3654
  * No description
3656
3655
  *
@@ -3675,7 +3674,7 @@ export class Api extends HttpClient {
3675
3674
  * @response `404` `Error` Not Found
3676
3675
  * @response `422` `UnprocessableEntity` Unprocessable Content
3677
3676
  */
3678
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3677
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3679
3678
  /**
3680
3679
  * No description
3681
3680
  *
@@ -3701,7 +3700,7 @@ export class Api extends HttpClient {
3701
3700
  * @response `404` `ProblemDetails` Not Found
3702
3701
  * @response `422` `ProblemDetails` Unprocessable Content
3703
3702
  */
3704
- 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)),
3703
+ 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)),
3705
3704
  /**
3706
3705
  * No description
3707
3706
  *
@@ -3713,7 +3712,7 @@ export class Api extends HttpClient {
3713
3712
  * @response `200` `MonthlyPaymentCalculator` OK
3714
3713
  * @response `422` `ProblemDetails` Unprocessable Content
3715
3714
  */
3716
- 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)),
3715
+ 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)),
3717
3716
  /**
3718
3717
  * No description
3719
3718
  *
@@ -3725,7 +3724,7 @@ export class Api extends HttpClient {
3725
3724
  * @response `200` `AffordabilityCalculator` OK
3726
3725
  * @response `422` `ProblemDetails` Unprocessable Content
3727
3726
  */
3728
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3727
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3729
3728
  /**
3730
3729
  * No description
3731
3730
  *
@@ -3737,7 +3736,7 @@ export class Api extends HttpClient {
3737
3736
  * @response `200` `LoanComparisonCalculator` OK
3738
3737
  * @response `422` `ProblemDetails` Unprocessable Content
3739
3738
  */
3740
- 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)),
3739
+ 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)),
3741
3740
  /**
3742
3741
  * No description
3743
3742
  *
@@ -3749,33 +3748,7 @@ export class Api extends HttpClient {
3749
3748
  * @response `200` `RefinanceCalculator` OK
3750
3749
  * @response `422` `ProblemDetails` Unprocessable Content
3751
3750
  */
3752
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3753
- /**
3754
- * No description
3755
- *
3756
- * @tags Notifications
3757
- * @name SendNotificationForLoan
3758
- * @summary Send Notification for Loan
3759
- * @request POST:/api/notifications
3760
- * @deprecated
3761
- * @secure
3762
- * @response `200` `void` OK
3763
- * @response `422` `UnprocessableEntity` Unprocessable Content
3764
- */
3765
- sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3766
- /**
3767
- * No description
3768
- *
3769
- * @tags Notifications
3770
- * @name SendTestNotificationForLoan
3771
- * @summary Send Test Notification for Loan
3772
- * @request POST:/api/notifications/test
3773
- * @deprecated
3774
- * @secure
3775
- * @response `200` `void` OK
3776
- * @response `422` `UnprocessableEntity` Unprocessable Content
3777
- */
3778
- sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3751
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3779
3752
  /**
3780
3753
  * No description
3781
3754
  *
@@ -3798,7 +3771,7 @@ export class Api extends HttpClient {
3798
3771
  * @response `201` `NotificationTemplate` Created
3799
3772
  * @response `422` `UnprocessableEntity` Unprocessable Content
3800
3773
  */
3801
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3774
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3802
3775
  /**
3803
3776
  * No description
3804
3777
  *
@@ -3809,7 +3782,7 @@ export class Api extends HttpClient {
3809
3782
  * @secure
3810
3783
  * @response `200` `NotificationTemplateBasePaginated` OK
3811
3784
  */
3812
- 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)),
3785
+ 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)),
3813
3786
  /**
3814
3787
  * No description
3815
3788
  *
@@ -3832,7 +3805,7 @@ export class Api extends HttpClient {
3832
3805
  * @response `200` `NotificationTemplate` OK
3833
3806
  * @response `422` `UnprocessableEntity` Unprocessable Content
3834
3807
  */
3835
- 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)),
3808
+ 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)),
3836
3809
  /**
3837
3810
  * No description
3838
3811
  *
@@ -3876,7 +3849,7 @@ export class Api extends HttpClient {
3876
3849
  * @secure
3877
3850
  * @response `200` `NotificationTemplateVersion` OK
3878
3851
  */
3879
- 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)),
3852
+ 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)),
3880
3853
  /**
3881
3854
  * No description
3882
3855
  *
@@ -3898,7 +3871,7 @@ export class Api extends HttpClient {
3898
3871
  * @secure
3899
3872
  * @response `200` `NotificationTemplateVersion` OK
3900
3873
  */
3901
- 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)),
3874
+ 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)),
3902
3875
  /**
3903
3876
  * No description
3904
3877
  *
@@ -3931,7 +3904,7 @@ export class Api extends HttpClient {
3931
3904
  * @secure
3932
3905
  * @response `200` `BranchUserPaginated` OK
3933
3906
  */
3934
- 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)),
3907
+ 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)),
3935
3908
  /**
3936
3909
  * No description
3937
3910
  *
@@ -3954,7 +3927,7 @@ export class Api extends HttpClient {
3954
3927
  * @response `200` `SiteConfiguration` OK
3955
3928
  * @response `422` `UnprocessableEntity` Unprocessable Content
3956
3929
  */
3957
- 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)),
3930
+ 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)),
3958
3931
  /**
3959
3932
  * No description
3960
3933
  *
@@ -3977,7 +3950,7 @@ export class Api extends HttpClient {
3977
3950
  * @response `200` `SiteConfiguration` OK
3978
3951
  * @response `422` `UnprocessableEntity` Unprocessable Content
3979
3952
  */
3980
- 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)),
3953
+ 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)),
3981
3954
  /**
3982
3955
  * No description
3983
3956
  *
@@ -4001,7 +3974,7 @@ export class Api extends HttpClient {
4001
3974
  * @response `200` `SiteConfigurationByUrl` OK
4002
3975
  * @response `422` `UnprocessableEntity` Unprocessable Content
4003
3976
  */
4004
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3977
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4005
3978
  /**
4006
3979
  * No description
4007
3980
  *
@@ -4026,7 +3999,7 @@ export class Api extends HttpClient {
4026
3999
  * @response `200` `SiteConfiguration` OK
4027
4000
  * @response `422` `UnprocessableEntity` Unprocessable Content
4028
4001
  */
4029
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4002
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4030
4003
  /**
4031
4004
  * No description
4032
4005
  *
@@ -4050,7 +4023,7 @@ export class Api extends HttpClient {
4050
4023
  * @response `200` `SiteConfigurationSummaryPaginated` OK
4051
4024
  * @response `422` `UnprocessableEntity` Unprocessable Content
4052
4025
  */
4053
- 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)),
4026
+ 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)),
4054
4027
  /**
4055
4028
  * No description
4056
4029
  *
@@ -4142,7 +4115,7 @@ export class Api extends HttpClient {
4142
4115
  * @secure
4143
4116
  * @response `200` `GetForm` OK
4144
4117
  */
4145
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4118
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4146
4119
  /**
4147
4120
  * No description
4148
4121
  *
@@ -4165,7 +4138,7 @@ export class Api extends HttpClient {
4165
4138
  * @response `200` `(SocialSurveyRecord)[]` OK
4166
4139
  * @response `422` `UnprocessableEntity` Unprocessable Content
4167
4140
  */
4168
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4141
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4169
4142
  /**
4170
4143
  * No description
4171
4144
  *
@@ -4188,7 +4161,7 @@ export class Api extends HttpClient {
4188
4161
  * @secure
4189
4162
  * @response `201` `Task` Created
4190
4163
  */
4191
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4164
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4192
4165
  /**
4193
4166
  * No description
4194
4167
  *
@@ -4212,7 +4185,7 @@ export class Api extends HttpClient {
4212
4185
  * @response `200` `Task` OK
4213
4186
  * @response `404` `ProblemDetails` Not Found
4214
4187
  */
4215
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4188
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4216
4189
  /**
4217
4190
  * No description
4218
4191
  *
@@ -4235,7 +4208,7 @@ export class Api extends HttpClient {
4235
4208
  * @secure
4236
4209
  * @response `200` `TaskPaginated` OK
4237
4210
  */
4238
- 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)),
4211
+ 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)),
4239
4212
  /**
4240
4213
  * No description
4241
4214
  *
@@ -4245,7 +4218,7 @@ export class Api extends HttpClient {
4245
4218
  * @secure
4246
4219
  * @response `200` `void` OK
4247
4220
  */
4248
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4221
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4249
4222
  /**
4250
4223
  * No description
4251
4224
  *
@@ -4256,7 +4229,7 @@ export class Api extends HttpClient {
4256
4229
  * @secure
4257
4230
  * @response `200` `EncompassRequestLogPaginated` OK
4258
4231
  */
4259
- 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)),
4232
+ 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)),
4260
4233
  /**
4261
4234
  * No description
4262
4235
  *
@@ -4279,7 +4252,7 @@ export class Api extends HttpClient {
4279
4252
  * @secure
4280
4253
  * @response `201` `LosCredentials` Created
4281
4254
  */
4282
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4255
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4283
4256
  /**
4284
4257
  * No description
4285
4258
  *
@@ -4290,7 +4263,7 @@ export class Api extends HttpClient {
4290
4263
  * @secure
4291
4264
  * @response `200` `EncompassCredentialsDetail` OK
4292
4265
  */
4293
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4266
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4294
4267
  /**
4295
4268
  * No description
4296
4269
  *
@@ -4312,7 +4285,7 @@ export class Api extends HttpClient {
4312
4285
  * @secure
4313
4286
  * @response `201` `LosWebhook` Created
4314
4287
  */
4315
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4288
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4316
4289
  /**
4317
4290
  * No description
4318
4291
  *
@@ -4334,7 +4307,7 @@ export class Api extends HttpClient {
4334
4307
  * @secure
4335
4308
  * @response `200` `LosSyncPaginated` OK
4336
4309
  */
4337
- 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)),
4310
+ 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)),
4338
4311
  /**
4339
4312
  * No description
4340
4313
  *
@@ -4417,7 +4390,7 @@ export class Api extends HttpClient {
4417
4390
  * @response `201` `UserDevice` Created
4418
4391
  * @response `400` `ProblemDetails` Bad Request
4419
4392
  */
4420
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4393
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4421
4394
  /**
4422
4395
  * No description
4423
4396
  *
@@ -4462,7 +4435,7 @@ export class Api extends HttpClient {
4462
4435
  * @secure
4463
4436
  * @response `200` `UserDraft` OK
4464
4437
  */
4465
- 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)),
4438
+ 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)),
4466
4439
  /**
4467
4440
  * No description
4468
4441
  *
@@ -4495,7 +4468,7 @@ export class Api extends HttpClient {
4495
4468
  * @secure
4496
4469
  * @response `200` `UserGroupAccessScope` OK
4497
4470
  */
4498
- 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)),
4471
+ 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)),
4499
4472
  /**
4500
4473
  * No description
4501
4474
  *
@@ -4528,7 +4501,7 @@ export class Api extends HttpClient {
4528
4501
  * @secure
4529
4502
  * @response `200` `UserGroupMember` OK
4530
4503
  */
4531
- 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)),
4504
+ 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)),
4532
4505
  /**
4533
4506
  * No description
4534
4507
  *
@@ -4572,7 +4545,7 @@ export class Api extends HttpClient {
4572
4545
  * @secure
4573
4546
  * @response `200` `UserGroup` OK
4574
4547
  */
4575
- 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)),
4548
+ 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)),
4576
4549
  /**
4577
4550
  * No description
4578
4551
  *
@@ -4594,7 +4567,7 @@ export class Api extends HttpClient {
4594
4567
  * @secure
4595
4568
  * @response `201` `UserGroup` Created
4596
4569
  */
4597
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4570
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4598
4571
  /**
4599
4572
  * No description
4600
4573
  *
@@ -4607,7 +4580,7 @@ export class Api extends HttpClient {
4607
4580
  * @response `404` `Error` Not Found
4608
4581
  * @response `422` `UnprocessableEntity` Unprocessable Content
4609
4582
  */
4610
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4583
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4611
4584
  /**
4612
4585
  * No description
4613
4586
  *
@@ -4620,7 +4593,7 @@ export class Api extends HttpClient {
4620
4593
  * @response `404` `Error` Not Found
4621
4594
  * @response `422` `UnprocessableEntity` Unprocessable Content
4622
4595
  */
4623
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4596
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4624
4597
  /**
4625
4598
  * No description
4626
4599
  *
@@ -4670,7 +4643,7 @@ export class Api extends HttpClient {
4670
4643
  * @response `404` `Error` Not Found
4671
4644
  * @response `422` `UnprocessableEntity` Unprocessable Content
4672
4645
  */
4673
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4646
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4674
4647
  /**
4675
4648
  * No description
4676
4649
  *
@@ -4694,7 +4667,7 @@ export class Api extends HttpClient {
4694
4667
  * @response `204` `void` No Content
4695
4668
  * @response `422` `UnprocessableEntity` Unprocessable Content
4696
4669
  */
4697
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4670
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4698
4671
  /**
4699
4672
  * No description
4700
4673
  *
@@ -4741,7 +4714,7 @@ export class Api extends HttpClient {
4741
4714
  * @secure
4742
4715
  * @response `204` `void` No Content
4743
4716
  */
4744
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4717
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4745
4718
  /**
4746
4719
  * No description
4747
4720
  *
@@ -4786,7 +4759,7 @@ export class Api extends HttpClient {
4786
4759
  * @response `200` `DetailedUser` OK
4787
4760
  * @response `422` `UnprocessableEntity` Unprocessable Content
4788
4761
  */
4789
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4762
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4790
4763
  /**
4791
4764
  * No description
4792
4765
  *
@@ -4797,7 +4770,7 @@ export class Api extends HttpClient {
4797
4770
  * @secure
4798
4771
  * @response `200` `UserPaginated` OK
4799
4772
  */
4800
- 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)),
4773
+ 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)),
4801
4774
  /**
4802
4775
  * No description
4803
4776
  *
@@ -4808,7 +4781,7 @@ export class Api extends HttpClient {
4808
4781
  * @secure
4809
4782
  * @response `200` `AdminAccessUser` OK
4810
4783
  */
4811
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4784
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4812
4785
  /**
4813
4786
  * No description
4814
4787
  *
@@ -4820,7 +4793,7 @@ export class Api extends HttpClient {
4820
4793
  * @response `200` `User` OK
4821
4794
  * @response `422` `UnprocessableEntity` Unprocessable Content
4822
4795
  */
4823
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4796
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4824
4797
  /**
4825
4798
  * No description
4826
4799
  *
@@ -4832,7 +4805,7 @@ export class Api extends HttpClient {
4832
4805
  * @response `200` `DetailedUser` OK
4833
4806
  * @response `422` `UnprocessableEntity` Unprocessable Content
4834
4807
  */
4835
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4808
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4836
4809
  /**
4837
4810
  * No description
4838
4811
  *
@@ -4866,7 +4839,7 @@ export class Api extends HttpClient {
4866
4839
  * @response `204` `void` No Content
4867
4840
  * @response `422` `UnprocessableEntity` Unprocessable Content
4868
4841
  */
4869
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4842
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4870
4843
  /**
4871
4844
  * No description
4872
4845
  *
@@ -4878,7 +4851,7 @@ export class Api extends HttpClient {
4878
4851
  * @response `204` `void` No Content
4879
4852
  * @response `422` `UnprocessableEntity` Unprocessable Content
4880
4853
  */
4881
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4854
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4882
4855
  /**
4883
4856
  * No description
4884
4857
  *
@@ -4890,7 +4863,7 @@ export class Api extends HttpClient {
4890
4863
  * @response `204` `void` No Content
4891
4864
  * @response `422` `UnprocessableEntity` Unprocessable Content
4892
4865
  */
4893
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4866
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4894
4867
  /**
4895
4868
  * No description
4896
4869
  *
@@ -4902,7 +4875,7 @@ export class Api extends HttpClient {
4902
4875
  * @response `204` `void` No Content
4903
4876
  * @response `422` `UnprocessableEntity` Unprocessable Content
4904
4877
  */
4905
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4878
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4906
4879
  /**
4907
4880
  * No description
4908
4881
  *
@@ -4926,7 +4899,7 @@ export class Api extends HttpClient {
4926
4899
  * @response `204` `void` No Content
4927
4900
  * @response `422` `UnprocessableEntity` Unprocessable Content
4928
4901
  */
4929
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4902
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4930
4903
  /**
4931
4904
  * No description
4932
4905
  *
@@ -4949,7 +4922,7 @@ export class Api extends HttpClient {
4949
4922
  * @secure
4950
4923
  * @response `200` `DetailedUser` OK
4951
4924
  */
4952
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4925
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4953
4926
  /**
4954
4927
  * @description Update the phone number If changed will send a verification code to the new number
4955
4928
  *
@@ -4960,7 +4933,7 @@ export class Api extends HttpClient {
4960
4933
  * @secure
4961
4934
  * @response `204` `DetailedUser` No Content
4962
4935
  */
4963
- 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)),
4936
+ 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)),
4964
4937
  /**
4965
4938
  * No description
4966
4939
  *
@@ -5004,7 +4977,7 @@ export class Api extends HttpClient {
5004
4977
  * @secure
5005
4978
  * @response `204` `void` No Content
5006
4979
  */
5007
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4980
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
5008
4981
  /**
5009
4982
  * No description
5010
4983
  *
@@ -5015,7 +4988,7 @@ export class Api extends HttpClient {
5015
4988
  * @secure
5016
4989
  * @response `200` `GetForm` OK
5017
4990
  */
5018
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4991
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5019
4992
  };
5020
4993
  this.sso = {
5021
4994
  /**