@matech/thebigpos-sdk 2.47.1-rc0 → 2.48.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -30,6 +30,15 @@ var __rest = (this && this.__rest) || function (s, e) {
30
30
  return t;
31
31
  };
32
32
  import axios from "axios";
33
+ export var ContentType;
34
+ (function (ContentType) {
35
+ ContentType["JsonPatch"] = "application/json-patch+json";
36
+ ContentType["Json"] = "application/json";
37
+ ContentType["JsonApi"] = "application/vnd.api+json";
38
+ ContentType["FormData"] = "multipart/form-data";
39
+ ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
40
+ ContentType["Text"] = "text/plain";
41
+ })(ContentType || (ContentType = {}));
33
42
  export class HttpClient {
34
43
  constructor(_a = {}) {
35
44
  var { securityWorker, secure, format } = _a, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
@@ -45,13 +54,13 @@ export class HttpClient {
45
54
  {};
46
55
  const requestParams = this.mergeRequestParams(params, secureParams);
47
56
  const responseFormat = format || this.format || undefined;
48
- if (type === "multipart/form-data" &&
57
+ if (type === ContentType.FormData &&
49
58
  body &&
50
59
  body !== null &&
51
60
  typeof body === "object") {
52
61
  body = this.createFormData(body);
53
62
  }
54
- if (type === "text/plain" &&
63
+ if (type === ContentType.Text &&
55
64
  body &&
56
65
  body !== null &&
57
66
  typeof body !== "string") {
@@ -95,7 +104,7 @@ export class HttpClient {
95
104
  }
96
105
  /**
97
106
  * @title The Big POS API
98
- * @version v2.47.0
107
+ * @version v2.48.0
99
108
  * @termsOfService https://www.thebigpos.com/terms-of-use/
100
109
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
101
110
  */
@@ -147,7 +156,7 @@ export class Api extends HttpClient {
147
156
  * @response `404` `ProblemDetails` Not Found
148
157
  * @response `422` `ProblemDetails` Unprocessable Content
149
158
  */
150
- replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
159
+ replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
151
160
  /**
152
161
  * No description
153
162
  *
@@ -170,7 +179,7 @@ export class Api extends HttpClient {
170
179
  * @response `200` `SiteConfiguration` OK
171
180
  * @response `422` `UnprocessableEntity` Unprocessable Content
172
181
  */
173
- updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
182
+ updateSiteConfigurationForAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account/site-configurations`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
174
183
  /**
175
184
  * No description
176
185
  *
@@ -181,7 +190,7 @@ export class Api extends HttpClient {
181
190
  * @secure
182
191
  * @response `204` `void` No Content
183
192
  */
184
- requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
193
+ requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
185
194
  /**
186
195
  * No description
187
196
  *
@@ -193,7 +202,7 @@ export class Api extends HttpClient {
193
202
  * @response `204` `void` No Content
194
203
  * @response `400` `ProblemDetails` Bad Request
195
204
  */
196
- completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
205
+ completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
197
206
  /**
198
207
  * No description
199
208
  *
@@ -216,7 +225,7 @@ export class Api extends HttpClient {
216
225
  * @response `201` `Account` Created
217
226
  * @response `422` `ProblemDetails` Unprocessable Content
218
227
  */
219
- createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
228
+ createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
220
229
  /**
221
230
  * No description
222
231
  *
@@ -254,7 +263,7 @@ export class Api extends HttpClient {
254
263
  * @response `404` `ProblemDetails` Not Found
255
264
  * @response `422` `ProblemDetails` Unprocessable Content
256
265
  */
257
- updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
266
+ updateAccountBilling: (id, data, params = {}) => this.request(Object.assign({ path: `/api/accounts/${id}/billing`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
258
267
  /**
259
268
  * No description
260
269
  *
@@ -287,7 +296,7 @@ export class Api extends HttpClient {
287
296
  * @secure
288
297
  * @response `204` `void` No Content
289
298
  */
290
- setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
299
+ setAccountAiEnabled: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/accounts/${accountId}/ai-enabled`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
291
300
  /**
292
301
  * No description
293
302
  *
@@ -310,7 +319,7 @@ export class Api extends HttpClient {
310
319
  * @response `200` `AiAccountSettings` OK
311
320
  * @response `400` `ProblemDetails` Bad Request
312
321
  */
313
- updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/account-settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
322
+ updateAiAccountSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/account-settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
314
323
  /**
315
324
  * No description
316
325
  *
@@ -333,7 +342,7 @@ export class Api extends HttpClient {
333
342
  * @response `201` `AiPrompt` Created
334
343
  * @response `400` `ProblemDetails` Bad Request
335
344
  */
336
- createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
345
+ createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
337
346
  /**
338
347
  * No description
339
348
  *
@@ -358,7 +367,7 @@ export class Api extends HttpClient {
358
367
  * @response `400` `ProblemDetails` Bad Request
359
368
  * @response `404` `ProblemDetails` Not Found
360
369
  */
361
- updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
370
+ updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
362
371
  /**
363
372
  * No description
364
373
  *
@@ -372,6 +381,30 @@ export class Api extends HttpClient {
372
381
  * @response `404` `ProblemDetails` Not Found
373
382
  */
374
383
  deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}`, method: "DELETE", secure: true }, params)),
384
+ /**
385
+ * No description
386
+ *
387
+ * @tags AiAdminPrompt
388
+ * @name GetAiTools
389
+ * @summary List available agent tools and their settings schema
390
+ * @request GET:/api/ai/prompts/tools
391
+ * @secure
392
+ * @response `200` `(AiToolCatalogItem)[]` OK
393
+ */
394
+ getAiTools: (params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/tools`, method: "GET", secure: true, format: "json" }, params)),
395
+ /**
396
+ * No description
397
+ *
398
+ * @tags AiAdminPrompt
399
+ * @name UpdateAiPromptTools
400
+ * @summary Replace the prompt's agent tool configuration
401
+ * @request PUT:/api/ai/prompts/{id}/tools
402
+ * @secure
403
+ * @response `200` `AiPrompt` OK
404
+ * @response `400` `ProblemDetails` Bad Request
405
+ * @response `404` `ProblemDetails` Not Found
406
+ */
407
+ updateAiPromptTools: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/${id}/tools`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
375
408
  /**
376
409
  * No description
377
410
  *
@@ -395,7 +428,7 @@ export class Api extends HttpClient {
395
428
  * @response `200` `GenerateSystemPrompt` OK
396
429
  * @response `400` `ProblemDetails` Bad Request
397
430
  */
398
- generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
431
+ generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts/generate`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
399
432
  /**
400
433
  * No description
401
434
  *
@@ -429,7 +462,7 @@ export class Api extends HttpClient {
429
462
  * @response `200` `AiAdminSettings` OK
430
463
  * @response `400` `ProblemDetails` Bad Request
431
464
  */
432
- updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
465
+ updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
433
466
  /**
434
467
  * No description
435
468
  *
@@ -507,7 +540,7 @@ export class Api extends HttpClient {
507
540
  * @response `201` `AiCanonicalField` Created
508
541
  * @response `400` `ProblemDetails` Bad Request
509
542
  */
510
- createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
543
+ createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
511
544
  /**
512
545
  * No description
513
546
  *
@@ -532,7 +565,7 @@ export class Api extends HttpClient {
532
565
  * @response `400` `ProblemDetails` Bad Request
533
566
  * @response `404` `ProblemDetails` Not Found
534
567
  */
535
- updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
568
+ updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/canonical-fields/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
536
569
  /**
537
570
  * No description
538
571
  *
@@ -568,8 +601,9 @@ export class Api extends HttpClient {
568
601
  * @response `200` `AiChat` OK
569
602
  * @response `400` `ProblemDetails` Bad Request
570
603
  * @response `401` `ProblemDetails` Unauthorized
604
+ * @response `429` `ProblemDetails` Too Many Requests
571
605
  */
572
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
606
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
573
607
  /**
574
608
  * No description
575
609
  *
@@ -607,7 +641,7 @@ export class Api extends HttpClient {
607
641
  * @response `403` `ProblemDetails` Forbidden
608
642
  * @response `404` `ProblemDetails` Not Found
609
643
  */
610
- 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)),
644
+ 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)),
611
645
  /**
612
646
  * No description
613
647
  *
@@ -659,7 +693,7 @@ export class Api extends HttpClient {
659
693
  * @response `403` `ProblemDetails` Forbidden
660
694
  * @response `404` `ProblemDetails` Not Found
661
695
  */
662
- 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)),
696
+ 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)),
663
697
  /**
664
698
  * No description
665
699
  *
@@ -717,7 +751,7 @@ export class Api extends HttpClient {
717
751
  * @response `201` `AiGuardrail` Created
718
752
  * @response `400` `ProblemDetails` Bad Request
719
753
  */
720
- createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
754
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
721
755
  /**
722
756
  * No description
723
757
  *
@@ -742,7 +776,7 @@ export class Api extends HttpClient {
742
776
  * @response `400` `ProblemDetails` Bad Request
743
777
  * @response `404` `ProblemDetails` Not Found
744
778
  */
745
- updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
779
+ updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
746
780
  /**
747
781
  * No description
748
782
  *
@@ -789,7 +823,7 @@ export class Api extends HttpClient {
789
823
  * @secure
790
824
  * @response `200` `AiAccountUsageOverviewPaginated` OK
791
825
  */
792
- searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
826
+ searchAiAccountTokenUsage: (data, query, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
793
827
  /**
794
828
  * No description
795
829
  *
@@ -823,7 +857,7 @@ export class Api extends HttpClient {
823
857
  * @response `200` `AiTokenBudgetStatus` OK
824
858
  * @response `400` `ProblemDetails` Bad Request
825
859
  */
826
- setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
860
+ setAiAccountTokenLimit: (accountId, data, params = {}) => this.request(Object.assign({ path: `/api/ai/token-usage/${accountId}/limit`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
827
861
  /**
828
862
  * No description
829
863
  *
@@ -847,7 +881,7 @@ export class Api extends HttpClient {
847
881
  * @response `400` `ProblemDetails` Bad Request
848
882
  * @response `409` `ProblemDetails` Conflict
849
883
  */
850
- createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
884
+ createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
851
885
  /**
852
886
  * No description
853
887
  *
@@ -873,7 +907,7 @@ export class Api extends HttpClient {
873
907
  * @response `404` `ProblemDetails` Not Found
874
908
  * @response `409` `ProblemDetails` Conflict
875
909
  */
876
- updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
910
+ updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/url-sources/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
877
911
  /**
878
912
  * No description
879
913
  *
@@ -930,7 +964,7 @@ export class Api extends HttpClient {
930
964
  * @secure
931
965
  * @response `200` `AuditLogEntryPaginated` OK
932
966
  */
933
- 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)),
967
+ 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)),
934
968
  /**
935
969
  * No description
936
970
  *
@@ -966,7 +1000,7 @@ export class Api extends HttpClient {
966
1000
  * @response `401` `ProblemDetails` Unauthorized
967
1001
  * @response `422` `UnprocessableEntity` Unprocessable Content
968
1002
  */
969
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1003
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
970
1004
  /**
971
1005
  * No description
972
1006
  *
@@ -978,7 +1012,7 @@ export class Api extends HttpClient {
978
1012
  * @response `200` `AccountDeactivated` OK
979
1013
  * @response `422` `UnprocessableEntity` Unprocessable Content
980
1014
  */
981
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1015
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
982
1016
  /**
983
1017
  * No description
984
1018
  *
@@ -990,7 +1024,7 @@ export class Api extends HttpClient {
990
1024
  * @response `200` `AccountDeactivated` OK
991
1025
  * @response `422` `UnprocessableEntity` Unprocessable Content
992
1026
  */
993
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1027
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
994
1028
  /**
995
1029
  * No description
996
1030
  *
@@ -1002,7 +1036,7 @@ export class Api extends HttpClient {
1002
1036
  * @response `200` `Token` OK
1003
1037
  * @response `422` `UnprocessableEntity` Unprocessable Content
1004
1038
  */
1005
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1039
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1006
1040
  /**
1007
1041
  * No description
1008
1042
  *
@@ -1014,7 +1048,7 @@ export class Api extends HttpClient {
1014
1048
  * @response `200` `SSOToken` OK
1015
1049
  * @response `422` `UnprocessableEntity` Unprocessable Content
1016
1050
  */
1017
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1051
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1018
1052
  /**
1019
1053
  * No description
1020
1054
  *
@@ -1049,7 +1083,7 @@ export class Api extends HttpClient {
1049
1083
  * @response `200` `GetBranch` OK
1050
1084
  * @response `422` `UnprocessableEntity` Unprocessable Content
1051
1085
  */
1052
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1086
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1053
1087
  /**
1054
1088
  * No description
1055
1089
  *
@@ -1060,7 +1094,7 @@ export class Api extends HttpClient {
1060
1094
  * @secure
1061
1095
  * @response `200` `GetBranchPaginated` OK
1062
1096
  */
1063
- 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)),
1097
+ 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)),
1064
1098
  /**
1065
1099
  * No description
1066
1100
  *
@@ -1083,7 +1117,7 @@ export class Api extends HttpClient {
1083
1117
  * @response `200` `GetBranch` OK
1084
1118
  * @response `422` `UnprocessableEntity` Unprocessable Content
1085
1119
  */
1086
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1120
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1087
1121
  /**
1088
1122
  * No description
1089
1123
  *
@@ -1118,7 +1152,7 @@ export class Api extends HttpClient {
1118
1152
  * @response `200` `SiteConfiguration` OK
1119
1153
  * @response `422` `UnprocessableEntity` Unprocessable Content
1120
1154
  */
1121
- 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)),
1155
+ 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)),
1122
1156
  /**
1123
1157
  * No description
1124
1158
  *
@@ -1141,7 +1175,7 @@ export class Api extends HttpClient {
1141
1175
  * @response `200` `SiteConfiguration` OK
1142
1176
  * @response `422` `UnprocessableEntity` Unprocessable Content
1143
1177
  */
1144
- 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)),
1178
+ 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)),
1145
1179
  /**
1146
1180
  * No description
1147
1181
  *
@@ -1175,7 +1209,7 @@ export class Api extends HttpClient {
1175
1209
  * @response `200` `BusinessRule` OK
1176
1210
  * @response `422` `UnprocessableEntity` Unprocessable Content
1177
1211
  */
1178
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1212
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1179
1213
  /**
1180
1214
  * No description
1181
1215
  *
@@ -1198,7 +1232,7 @@ export class Api extends HttpClient {
1198
1232
  * @response `200` `BusinessRule` OK
1199
1233
  * @response `422` `UnprocessableEntity` Unprocessable Content
1200
1234
  */
1201
- 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)),
1235
+ 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)),
1202
1236
  /**
1203
1237
  * No description
1204
1238
  *
@@ -1231,7 +1265,7 @@ export class Api extends HttpClient {
1231
1265
  * @secure
1232
1266
  * @response `200` `ClosedLoansReport` OK
1233
1267
  */
1234
- 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)),
1268
+ 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)),
1235
1269
  /**
1236
1270
  * No description
1237
1271
  *
@@ -1276,7 +1310,7 @@ export class Api extends HttpClient {
1276
1310
  * @response `200` `Corporate` OK
1277
1311
  * @response `422` `UnprocessableEntity` Unprocessable Content
1278
1312
  */
1279
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1313
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1280
1314
  /**
1281
1315
  * No description
1282
1316
  *
@@ -1287,7 +1321,7 @@ export class Api extends HttpClient {
1287
1321
  * @secure
1288
1322
  * @response `200` `CorporatePaginated` OK
1289
1323
  */
1290
- 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)),
1324
+ 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)),
1291
1325
  /**
1292
1326
  * No description
1293
1327
  *
@@ -1310,7 +1344,7 @@ export class Api extends HttpClient {
1310
1344
  * @response `200` `Corporate` OK
1311
1345
  * @response `422` `UnprocessableEntity` Unprocessable Content
1312
1346
  */
1313
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1347
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1314
1348
  /**
1315
1349
  * No description
1316
1350
  *
@@ -1344,7 +1378,7 @@ export class Api extends HttpClient {
1344
1378
  * @response `200` `SiteConfiguration` OK
1345
1379
  * @response `422` `UnprocessableEntity` Unprocessable Content
1346
1380
  */
1347
- 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)),
1381
+ 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)),
1348
1382
  /**
1349
1383
  * No description
1350
1384
  *
@@ -1367,7 +1401,7 @@ export class Api extends HttpClient {
1367
1401
  * @response `200` `SiteConfiguration` OK
1368
1402
  * @response `422` `UnprocessableEntity` Unprocessable Content
1369
1403
  */
1370
- 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)),
1404
+ 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)),
1371
1405
  /**
1372
1406
  * No description
1373
1407
  *
@@ -1413,7 +1447,7 @@ export class Api extends HttpClient {
1413
1447
  * @response `409` `ProblemDetails` Conflict
1414
1448
  * @response `422` `ProblemDetails` Unprocessable Content
1415
1449
  */
1416
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1450
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1417
1451
  /**
1418
1452
  * No description
1419
1453
  *
@@ -1440,7 +1474,7 @@ export class Api extends HttpClient {
1440
1474
  * @response `409` `ProblemDetails` Conflict
1441
1475
  * @response `422` `ProblemDetails` Unprocessable Content
1442
1476
  */
1443
- 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)),
1477
+ 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)),
1444
1478
  /**
1445
1479
  * No description
1446
1480
  *
@@ -1510,7 +1544,7 @@ export class Api extends HttpClient {
1510
1544
  * @secure
1511
1545
  * @response `200` `Device` OK
1512
1546
  */
1513
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1547
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1514
1548
  /**
1515
1549
  * No description
1516
1550
  *
@@ -1567,7 +1601,7 @@ export class Api extends HttpClient {
1567
1601
  * @response `404` `ProblemDetails` Not Found
1568
1602
  * @response `422` `UnprocessableEntity` Unprocessable Content
1569
1603
  */
1570
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1604
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1571
1605
  /**
1572
1606
  * No description
1573
1607
  *
@@ -1604,7 +1638,7 @@ export class Api extends HttpClient {
1604
1638
  * @response `404` `ProblemDetails` Not Found
1605
1639
  * @response `422` `UnprocessableEntity` Unprocessable Content
1606
1640
  */
1607
- 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)),
1641
+ 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)),
1608
1642
  /**
1609
1643
  * No description
1610
1644
  *
@@ -1652,7 +1686,7 @@ export class Api extends HttpClient {
1652
1686
  * @secure
1653
1687
  * @response `200` `DocumentTemplateVersion` OK
1654
1688
  */
1655
- 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)),
1689
+ 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)),
1656
1690
  /**
1657
1691
  * No description
1658
1692
  *
@@ -1674,7 +1708,7 @@ export class Api extends HttpClient {
1674
1708
  * @secure
1675
1709
  * @response `200` `DocumentTemplateVersion` OK
1676
1710
  */
1677
- 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)),
1711
+ 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)),
1678
1712
  /**
1679
1713
  * No description
1680
1714
  *
@@ -1712,7 +1746,7 @@ export class Api extends HttpClient {
1712
1746
  * @response `409` `void` Conflict
1713
1747
  * @response `422` `ProblemDetails` Unprocessable Content
1714
1748
  */
1715
- 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)),
1749
+ 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)),
1716
1750
  /**
1717
1751
  * No description
1718
1752
  *
@@ -1815,7 +1849,7 @@ export class Api extends HttpClient {
1815
1849
  * @response `404` `EncompassError` Not Found
1816
1850
  * @response `500` `EncompassError` Internal Server Error
1817
1851
  */
1818
- 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)),
1852
+ 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)),
1819
1853
  /**
1820
1854
  * No description
1821
1855
  *
@@ -1838,7 +1872,7 @@ export class Api extends HttpClient {
1838
1872
  * @response `201` `File` Created
1839
1873
  * @response `422` `UnprocessableEntity` Unprocessable Content
1840
1874
  */
1841
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1875
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1842
1876
  /**
1843
1877
  * No description
1844
1878
  *
@@ -1861,7 +1895,7 @@ export class Api extends HttpClient {
1861
1895
  * @response `200` `string` OK
1862
1896
  * @response `422` `UnprocessableEntity` Unprocessable Content
1863
1897
  */
1864
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1898
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1865
1899
  /**
1866
1900
  * No description
1867
1901
  *
@@ -1883,7 +1917,7 @@ export class Api extends HttpClient {
1883
1917
  * @secure
1884
1918
  * @response `200` `FilePaginated` OK
1885
1919
  */
1886
- 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)),
1920
+ 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)),
1887
1921
  /**
1888
1922
  * No description
1889
1923
  *
@@ -1906,7 +1940,7 @@ export class Api extends HttpClient {
1906
1940
  * @response `201` `Form` Created
1907
1941
  * @response `422` `UnprocessableEntity` Unprocessable Content
1908
1942
  */
1909
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1943
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1910
1944
  /**
1911
1945
  * No description
1912
1946
  *
@@ -1929,7 +1963,7 @@ export class Api extends HttpClient {
1929
1963
  * @response `200` `Form` OK
1930
1964
  * @response `422` `UnprocessableEntity` Unprocessable Content
1931
1965
  */
1932
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1966
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1933
1967
  /**
1934
1968
  * No description
1935
1969
  *
@@ -1962,7 +1996,7 @@ export class Api extends HttpClient {
1962
1996
  * @secure
1963
1997
  * @response `200` `FormSubmissionFile` OK
1964
1998
  */
1965
- 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)),
1999
+ 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)),
1966
2000
  /**
1967
2001
  * No description
1968
2002
  *
@@ -2006,7 +2040,7 @@ export class Api extends HttpClient {
2006
2040
  * @secure
2007
2041
  * @response `201` `FormSubmission` Created
2008
2042
  */
2009
- 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)),
2043
+ 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)),
2010
2044
  /**
2011
2045
  * No description
2012
2046
  *
@@ -2028,7 +2062,7 @@ export class Api extends HttpClient {
2028
2062
  * @secure
2029
2063
  * @response `200` `FormSubmission` OK
2030
2064
  */
2031
- 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)),
2065
+ 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)),
2032
2066
  /**
2033
2067
  * No description
2034
2068
  *
@@ -2050,7 +2084,7 @@ export class Api extends HttpClient {
2050
2084
  * @secure
2051
2085
  * @response `200` `FormSubmissionPaginated` OK
2052
2086
  */
2053
- 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)),
2087
+ 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)),
2054
2088
  /**
2055
2089
  * No description
2056
2090
  *
@@ -2072,7 +2106,7 @@ export class Api extends HttpClient {
2072
2106
  * @secure
2073
2107
  * @response `200` `FormVersion` OK
2074
2108
  */
2075
- 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)),
2109
+ 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)),
2076
2110
  /**
2077
2111
  * No description
2078
2112
  *
@@ -2094,7 +2128,7 @@ export class Api extends HttpClient {
2094
2128
  * @secure
2095
2129
  * @response `200` `FormVersion` OK
2096
2130
  */
2097
- 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)),
2131
+ 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)),
2098
2132
  /**
2099
2133
  * No description
2100
2134
  *
@@ -2140,7 +2174,7 @@ export class Api extends HttpClient {
2140
2174
  * @response `200` `string` OK
2141
2175
  * @response `422` `UnprocessableEntity` Unprocessable Content
2142
2176
  */
2143
- 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)),
2177
+ 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)),
2144
2178
  /**
2145
2179
  * No description
2146
2180
  *
@@ -2151,7 +2185,7 @@ export class Api extends HttpClient {
2151
2185
  * @secure
2152
2186
  * @response `200` `GetReport` OK
2153
2187
  */
2154
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2188
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2155
2189
  /**
2156
2190
  * No description
2157
2191
  *
@@ -2165,7 +2199,7 @@ export class Api extends HttpClient {
2165
2199
  * @response `422` `UnprocessableEntity` Unprocessable Content
2166
2200
  * @response `423` `UnprocessableEntity` Locked
2167
2201
  */
2168
- 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)),
2202
+ 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)),
2169
2203
  /**
2170
2204
  * No description
2171
2205
  *
@@ -2178,7 +2212,7 @@ export class Api extends HttpClient {
2178
2212
  * @response `422` `UnprocessableEntity` Unprocessable Content
2179
2213
  * @response `423` `UnprocessableEntity` Locked
2180
2214
  */
2181
- 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)),
2215
+ 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)),
2182
2216
  /**
2183
2217
  * No description
2184
2218
  *
@@ -2190,7 +2224,7 @@ export class Api extends HttpClient {
2190
2224
  * @response `200` `string` OK
2191
2225
  * @response `422` `UnprocessableEntity` Unprocessable Content
2192
2226
  */
2193
- 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)),
2227
+ 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)),
2194
2228
  /**
2195
2229
  * No description
2196
2230
  *
@@ -2203,7 +2237,7 @@ export class Api extends HttpClient {
2203
2237
  * @response `202` `string` Accepted
2204
2238
  * @response `422` `UnprocessableEntity` Unprocessable Content
2205
2239
  */
2206
- 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)),
2240
+ 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)),
2207
2241
  /**
2208
2242
  * No description
2209
2243
  *
@@ -2283,7 +2317,7 @@ export class Api extends HttpClient {
2283
2317
  * @secure
2284
2318
  * @response `200` `ListingFile` OK
2285
2319
  */
2286
- 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)),
2320
+ 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)),
2287
2321
  /**
2288
2322
  * No description
2289
2323
  *
@@ -2294,7 +2328,7 @@ export class Api extends HttpClient {
2294
2328
  * @secure
2295
2329
  * @response `200` `ListingFile` OK
2296
2330
  */
2297
- 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)),
2331
+ 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)),
2298
2332
  /**
2299
2333
  * No description
2300
2334
  *
@@ -2316,7 +2350,7 @@ export class Api extends HttpClient {
2316
2350
  * @secure
2317
2351
  * @response `200` `ListingPhoto` OK
2318
2352
  */
2319
- 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)),
2353
+ 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)),
2320
2354
  /**
2321
2355
  * No description
2322
2356
  *
@@ -2327,7 +2361,7 @@ export class Api extends HttpClient {
2327
2361
  * @secure
2328
2362
  * @response `200` `(ListingPhoto)[]` OK
2329
2363
  */
2330
- 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)),
2364
+ 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)),
2331
2365
  /**
2332
2366
  * No description
2333
2367
  *
@@ -2360,7 +2394,7 @@ export class Api extends HttpClient {
2360
2394
  * @secure
2361
2395
  * @response `201` `Listing` Created
2362
2396
  */
2363
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2397
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2364
2398
  /**
2365
2399
  * No description
2366
2400
  *
@@ -2393,7 +2427,7 @@ export class Api extends HttpClient {
2393
2427
  * @secure
2394
2428
  * @response `200` `Listing` OK
2395
2429
  */
2396
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2430
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2397
2431
  /**
2398
2432
  * No description
2399
2433
  *
@@ -2415,7 +2449,7 @@ export class Api extends HttpClient {
2415
2449
  * @secure
2416
2450
  * @response `200` `ListingPaginated` OK
2417
2451
  */
2418
- 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)),
2452
+ 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)),
2419
2453
  /**
2420
2454
  * No description
2421
2455
  *
@@ -2426,7 +2460,7 @@ export class Api extends HttpClient {
2426
2460
  * @secure
2427
2461
  * @response `200` `File` OK
2428
2462
  */
2429
- 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)),
2463
+ 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)),
2430
2464
  /**
2431
2465
  * No description
2432
2466
  *
@@ -2472,7 +2506,7 @@ export class Api extends HttpClient {
2472
2506
  * @response `422` `UnprocessableEntity` Unprocessable Content
2473
2507
  * @response `423` `UnprocessableEntity` Locked
2474
2508
  */
2475
- 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)),
2509
+ 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)),
2476
2510
  /**
2477
2511
  * No description
2478
2512
  *
@@ -2496,7 +2530,7 @@ export class Api extends HttpClient {
2496
2530
  * @response `422` `UnprocessableEntity` Unprocessable Content
2497
2531
  * @response `423` `UnprocessableEntity` Locked
2498
2532
  */
2499
- 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)),
2533
+ 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)),
2500
2534
  /**
2501
2535
  * No description
2502
2536
  *
@@ -2519,7 +2553,7 @@ export class Api extends HttpClient {
2519
2553
  * @response `204` `void` No Content
2520
2554
  * @response `422` `UnprocessableEntity` Unprocessable Content
2521
2555
  */
2522
- 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)),
2556
+ 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)),
2523
2557
  /**
2524
2558
  * No description
2525
2559
  *
@@ -2556,7 +2590,7 @@ export class Api extends HttpClient {
2556
2590
  * @response `400` `ProblemDetails` Bad Request
2557
2591
  * @response `422` `ProblemDetails` Unprocessable Content
2558
2592
  */
2559
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2593
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
2560
2594
  /**
2561
2595
  * No description
2562
2596
  *
@@ -2570,7 +2604,7 @@ export class Api extends HttpClient {
2570
2604
  * @response `404` `ProblemDetails` Not Found
2571
2605
  * @response `422` `ProblemDetails` Unprocessable Content
2572
2606
  */
2573
- 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)),
2607
+ 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)),
2574
2608
  /**
2575
2609
  * No description
2576
2610
  *
@@ -2604,7 +2638,7 @@ export class Api extends HttpClient {
2604
2638
  * @secure
2605
2639
  * @response `201` `(string)[]` Created
2606
2640
  */
2607
- 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)),
2641
+ 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)),
2608
2642
  /**
2609
2643
  * No description
2610
2644
  *
@@ -2628,7 +2662,7 @@ export class Api extends HttpClient {
2628
2662
  * @response `409` `ProblemDetails` Conflict
2629
2663
  * @response `422` `ProblemDetails` Unprocessable Content
2630
2664
  */
2631
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2665
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2632
2666
  /**
2633
2667
  * No description
2634
2668
  *
@@ -2655,7 +2689,7 @@ export class Api extends HttpClient {
2655
2689
  * @response `409` `ProblemDetails` Conflict
2656
2690
  * @response `422` `ProblemDetails` Unprocessable Content
2657
2691
  */
2658
- 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)),
2692
+ 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)),
2659
2693
  /**
2660
2694
  * No description
2661
2695
  *
@@ -2730,7 +2764,7 @@ export class Api extends HttpClient {
2730
2764
  * @response `200` `Record<string,string>` OK
2731
2765
  * @response `400` `ProblemDetails` Bad Request
2732
2766
  */
2733
- 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)),
2767
+ 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)),
2734
2768
  /**
2735
2769
  * No description
2736
2770
  *
@@ -2741,7 +2775,7 @@ export class Api extends HttpClient {
2741
2775
  * @secure
2742
2776
  * @response `200` `LoanDocumentSearchPaginated` OK
2743
2777
  */
2744
- 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)),
2778
+ 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)),
2745
2779
  /**
2746
2780
  * @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).
2747
2781
  *
@@ -2752,7 +2786,7 @@ export class Api extends HttpClient {
2752
2786
  * @secure
2753
2787
  * @response `200` `(DocumentFolder)[]` OK
2754
2788
  */
2755
- 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)),
2789
+ 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)),
2756
2790
  /**
2757
2791
  * No description
2758
2792
  *
@@ -2761,7 +2795,7 @@ export class Api extends HttpClient {
2761
2795
  * @summary Download By ID
2762
2796
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2763
2797
  * @secure
2764
- * @response `200` `Blob` OK
2798
+ * @response `200` `string` OK
2765
2799
  * @response `404` `ProblemDetails` Not Found
2766
2800
  */
2767
2801
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2777,7 +2811,7 @@ export class Api extends HttpClient {
2777
2811
  * @response `404` `ProblemDetails` Not Found
2778
2812
  * @response `422` `UnprocessableEntity` Unprocessable Content
2779
2813
  */
2780
- 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)),
2814
+ 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)),
2781
2815
  /**
2782
2816
  * No description
2783
2817
  *
@@ -2801,7 +2835,7 @@ export class Api extends HttpClient {
2801
2835
  * @secure
2802
2836
  * @response `200` `DocumentDataRequest` OK
2803
2837
  */
2804
- 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)),
2838
+ 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)),
2805
2839
  /**
2806
2840
  * No description
2807
2841
  *
@@ -2814,7 +2848,7 @@ export class Api extends HttpClient {
2814
2848
  * @response `400` `ProblemDetails` Bad Request
2815
2849
  * @response `404` `ProblemDetails` Not Found
2816
2850
  */
2817
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2851
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2818
2852
  /**
2819
2853
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2820
2854
  *
@@ -2839,7 +2873,7 @@ export class Api extends HttpClient {
2839
2873
  * @response `404` `ProblemDetails` Not Found
2840
2874
  * @response `422` `UnprocessableEntity` Unprocessable Content
2841
2875
  */
2842
- 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)),
2876
+ 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)),
2843
2877
  /**
2844
2878
  * @description Re-attempts to push a failed document to LOS
2845
2879
  *
@@ -2863,7 +2897,7 @@ export class Api extends HttpClient {
2863
2897
  * @secure
2864
2898
  * @response `201` `Draft` Created
2865
2899
  */
2866
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2900
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2867
2901
  /**
2868
2902
  * No description
2869
2903
  *
@@ -2896,7 +2930,7 @@ export class Api extends HttpClient {
2896
2930
  * @secure
2897
2931
  * @response `200` `Draft` OK
2898
2932
  */
2899
- 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)),
2933
+ 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)),
2900
2934
  /**
2901
2935
  * No description
2902
2936
  *
@@ -2918,7 +2952,7 @@ export class Api extends HttpClient {
2918
2952
  * @secure
2919
2953
  * @response `201` `DraftContentPaginated` Created
2920
2954
  */
2921
- 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)),
2955
+ 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)),
2922
2956
  /**
2923
2957
  * No description
2924
2958
  *
@@ -2929,7 +2963,7 @@ export class Api extends HttpClient {
2929
2963
  * @secure
2930
2964
  * @response `200` `Draft` OK
2931
2965
  */
2932
- 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)),
2966
+ 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)),
2933
2967
  /**
2934
2968
  * No description
2935
2969
  *
@@ -2962,7 +2996,7 @@ export class Api extends HttpClient {
2962
2996
  * @secure
2963
2997
  * @response `201` `LoanImport` Created
2964
2998
  */
2965
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2999
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2966
3000
  /**
2967
3001
  * No description
2968
3002
  *
@@ -3008,7 +3042,7 @@ export class Api extends HttpClient {
3008
3042
  * @response `200` `(Invite)[]` OK
3009
3043
  * @response `404` `ProblemDetails` Not Found
3010
3044
  */
3011
- 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)),
3045
+ 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)),
3012
3046
  /**
3013
3047
  * No description
3014
3048
  *
@@ -3019,7 +3053,7 @@ export class Api extends HttpClient {
3019
3053
  * @secure
3020
3054
  * @response `200` `LoanLogPaginated` OK
3021
3055
  */
3022
- 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)),
3056
+ 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)),
3023
3057
  /**
3024
3058
  * No description
3025
3059
  *
@@ -3044,7 +3078,7 @@ export class Api extends HttpClient {
3044
3078
  * @response `400` `ProblemDetails` Bad Request
3045
3079
  * @response `404` `ProblemDetails` Not Found
3046
3080
  */
3047
- 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)),
3081
+ 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)),
3048
3082
  /**
3049
3083
  * No description
3050
3084
  *
@@ -3057,7 +3091,7 @@ export class Api extends HttpClient {
3057
3091
  * @response `400` `ProblemDetails` Bad Request
3058
3092
  * @response `404` `ProblemDetails` Not Found
3059
3093
  */
3060
- 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)),
3094
+ 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)),
3061
3095
  /**
3062
3096
  * No description
3063
3097
  *
@@ -3079,7 +3113,7 @@ export class Api extends HttpClient {
3079
3113
  * @secure
3080
3114
  * @response `200` `BranchUserPaginated` OK
3081
3115
  */
3082
- 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)),
3116
+ 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)),
3083
3117
  /**
3084
3118
  * No description
3085
3119
  *
@@ -3102,7 +3136,7 @@ export class Api extends HttpClient {
3102
3136
  * @response `200` `SiteConfiguration` OK
3103
3137
  * @response `422` `UnprocessableEntity` Unprocessable Content
3104
3138
  */
3105
- 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)),
3139
+ 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)),
3106
3140
  /**
3107
3141
  * No description
3108
3142
  *
@@ -3125,7 +3159,7 @@ export class Api extends HttpClient {
3125
3159
  * @response `200` `SiteConfiguration` OK
3126
3160
  * @response `422` `UnprocessableEntity` Unprocessable Content
3127
3161
  */
3128
- 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)),
3162
+ 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)),
3129
3163
  /**
3130
3164
  * No description
3131
3165
  *
@@ -3136,7 +3170,7 @@ export class Api extends HttpClient {
3136
3170
  * @secure
3137
3171
  * @response `200` `LoanQueuePaginated` OK
3138
3172
  */
3139
- 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)),
3173
+ 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)),
3140
3174
  /**
3141
3175
  * No description
3142
3176
  *
@@ -3160,7 +3194,7 @@ export class Api extends HttpClient {
3160
3194
  * @response `200` `LoanQueueWithData` OK
3161
3195
  * @response `404` `ProblemDetails` Not Found
3162
3196
  */
3163
- 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)),
3197
+ 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)),
3164
3198
  /**
3165
3199
  * No description
3166
3200
  *
@@ -3221,7 +3255,7 @@ export class Api extends HttpClient {
3221
3255
  * @response `401` `ProblemDetails` Unauthorized
3222
3256
  * @response `403` `ProblemDetails` Forbidden
3223
3257
  */
3224
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3258
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3225
3259
  /**
3226
3260
  * No description
3227
3261
  *
@@ -3232,7 +3266,7 @@ export class Api extends HttpClient {
3232
3266
  * @secure
3233
3267
  * @response `200` `LoanListPaginated` OK
3234
3268
  */
3235
- 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)),
3269
+ 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)),
3236
3270
  /**
3237
3271
  * No description
3238
3272
  *
@@ -3248,7 +3282,7 @@ export class Api extends HttpClient {
3248
3282
  * @response `404` `ProblemDetails` Not Found
3249
3283
  * @response `409` `any` Conflict
3250
3284
  */
3251
- updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
3285
+ updateLoan: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}`, method: "PATCH", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
3252
3286
  /**
3253
3287
  * No description
3254
3288
  *
@@ -3310,7 +3344,7 @@ export class Api extends HttpClient {
3310
3344
  * @response `400` `ProblemDetails` Bad Request
3311
3345
  * @response `404` `ProblemDetails` Not Found
3312
3346
  */
3313
- 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)),
3347
+ 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)),
3314
3348
  /**
3315
3349
  * No description
3316
3350
  *
@@ -3322,7 +3356,7 @@ export class Api extends HttpClient {
3322
3356
  * @response `200` `TaskCommentPaginated` OK
3323
3357
  * @response `404` `ProblemDetails` Not Found
3324
3358
  */
3325
- 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)),
3359
+ 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)),
3326
3360
  /**
3327
3361
  * No description
3328
3362
  *
@@ -3346,7 +3380,7 @@ export class Api extends HttpClient {
3346
3380
  * @response `201` `TaskComment` Created
3347
3381
  * @response `404` `ProblemDetails` Not Found
3348
3382
  */
3349
- 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)),
3383
+ 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)),
3350
3384
  /**
3351
3385
  * No description
3352
3386
  *
@@ -3358,7 +3392,7 @@ export class Api extends HttpClient {
3358
3392
  * @response `200` `TaskComment` OK
3359
3393
  * @response `404` `ProblemDetails` Not Found
3360
3394
  */
3361
- 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)),
3395
+ 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)),
3362
3396
  /**
3363
3397
  * No description
3364
3398
  *
@@ -3383,7 +3417,7 @@ export class Api extends HttpClient {
3383
3417
  * @response `404` `ProblemDetails` Not Found
3384
3418
  * @response `422` `UnprocessableEntity` Unprocessable Content
3385
3419
  */
3386
- 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)),
3420
+ 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)),
3387
3421
  /**
3388
3422
  * No description
3389
3423
  *
@@ -3397,7 +3431,7 @@ export class Api extends HttpClient {
3397
3431
  * @response `404` `ProblemDetails` Not Found
3398
3432
  * @response `422` `ProblemDetails` Unprocessable Content
3399
3433
  */
3400
- sendOutstandingLoanTaskNotification: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders/outstanding`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3434
+ 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)),
3401
3435
  /**
3402
3436
  * No description
3403
3437
  *
@@ -3410,7 +3444,7 @@ export class Api extends HttpClient {
3410
3444
  * @response `400` `ProblemDetails` Bad Request
3411
3445
  * @response `404` `ProblemDetails` Not Found
3412
3446
  */
3413
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3447
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3414
3448
  /**
3415
3449
  * @description Search tasks across all loans
3416
3450
  *
@@ -3421,7 +3455,7 @@ export class Api extends HttpClient {
3421
3455
  * @secure
3422
3456
  * @response `200` `UserLoanTaskPaginated` OK
3423
3457
  */
3424
- 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)),
3458
+ 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)),
3425
3459
  /**
3426
3460
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3427
3461
  *
@@ -3433,7 +3467,7 @@ export class Api extends HttpClient {
3433
3467
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3434
3468
  * @response `422` `UnprocessableEntity` Unprocessable Content
3435
3469
  */
3436
- 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)),
3470
+ 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)),
3437
3471
  /**
3438
3472
  * No description
3439
3473
  *
@@ -3481,7 +3515,7 @@ export class Api extends HttpClient {
3481
3515
  * @response `201` `UserLoanTask` Created
3482
3516
  * @response `404` `ProblemDetails` Not Found
3483
3517
  */
3484
- 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)),
3518
+ 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)),
3485
3519
  /**
3486
3520
  * No description
3487
3521
  *
@@ -3493,7 +3527,7 @@ export class Api extends HttpClient {
3493
3527
  * @response `201` `(UserLoanTask)[]` Created
3494
3528
  * @response `404` `ProblemDetails` Not Found
3495
3529
  */
3496
- 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)),
3530
+ 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)),
3497
3531
  /**
3498
3532
  * No description
3499
3533
  *
@@ -3505,7 +3539,7 @@ export class Api extends HttpClient {
3505
3539
  * @response `200` `UserLoanTask` OK
3506
3540
  * @response `404` `ProblemDetails` Not Found
3507
3541
  */
3508
- 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)),
3542
+ 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)),
3509
3543
  /**
3510
3544
  * No description
3511
3545
  *
@@ -3564,7 +3598,7 @@ export class Api extends HttpClient {
3564
3598
  * @secure
3565
3599
  * @response `201` `LoanUser` Created
3566
3600
  */
3567
- 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)),
3601
+ 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)),
3568
3602
  /**
3569
3603
  * No description
3570
3604
  *
@@ -3597,7 +3631,33 @@ export class Api extends HttpClient {
3597
3631
  * @secure
3598
3632
  * @response `200` `LosOperationTrackingPaginated` OK
3599
3633
  */
3600
- 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)),
3634
+ 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)),
3635
+ /**
3636
+ * No description
3637
+ *
3638
+ * @tags LosSyncFailures
3639
+ * @name SearchInboundSyncFailures
3640
+ * @summary Search cross-account failed inbound Encompass syncs (SuperAdmin)
3641
+ * @request POST:/api/monitoring/inbound-sync-failures/search
3642
+ * @secure
3643
+ * @response `200` `LosSyncPaginated` OK
3644
+ * @response `401` `ProblemDetails` Unauthorized
3645
+ * @response `403` `ProblemDetails` Forbidden
3646
+ */
3647
+ searchInboundSyncFailures: (data, query, params = {}) => this.request(Object.assign({ path: `/api/monitoring/inbound-sync-failures/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3648
+ /**
3649
+ * No description
3650
+ *
3651
+ * @tags LosSyncFailures
3652
+ * @name GetInboundSyncFailuresSummary
3653
+ * @summary Summarize cross-account failed inbound Encompass syncs (SuperAdmin)
3654
+ * @request POST:/api/monitoring/inbound-sync-failures/summary
3655
+ * @secure
3656
+ * @response `200` `LosSyncFailuresSummary` OK
3657
+ * @response `401` `ProblemDetails` Unauthorized
3658
+ * @response `403` `ProblemDetails` Forbidden
3659
+ */
3660
+ getInboundSyncFailuresSummary: (data, query, params = {}) => this.request(Object.assign({ path: `/api/monitoring/inbound-sync-failures/summary`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3601
3661
  /**
3602
3662
  * No description
3603
3663
  *
@@ -3620,7 +3680,7 @@ export class Api extends HttpClient {
3620
3680
  * @response `201` `MilestoneConfiguration` Created
3621
3681
  * @response `422` `UnprocessableEntity` Unprocessable Content
3622
3682
  */
3623
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3683
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3624
3684
  /**
3625
3685
  * No description
3626
3686
  *
@@ -3645,7 +3705,7 @@ export class Api extends HttpClient {
3645
3705
  * @response `404` `Error` Not Found
3646
3706
  * @response `422` `UnprocessableEntity` Unprocessable Content
3647
3707
  */
3648
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3708
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3649
3709
  /**
3650
3710
  * No description
3651
3711
  *
@@ -3671,7 +3731,7 @@ export class Api extends HttpClient {
3671
3731
  * @response `404` `ProblemDetails` Not Found
3672
3732
  * @response `422` `ProblemDetails` Unprocessable Content
3673
3733
  */
3674
- 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)),
3734
+ 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)),
3675
3735
  /**
3676
3736
  * No description
3677
3737
  *
@@ -3683,7 +3743,7 @@ export class Api extends HttpClient {
3683
3743
  * @response `200` `MonthlyPaymentCalculator` OK
3684
3744
  * @response `422` `ProblemDetails` Unprocessable Content
3685
3745
  */
3686
- 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)),
3746
+ 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)),
3687
3747
  /**
3688
3748
  * No description
3689
3749
  *
@@ -3695,7 +3755,7 @@ export class Api extends HttpClient {
3695
3755
  * @response `200` `AffordabilityCalculator` OK
3696
3756
  * @response `422` `ProblemDetails` Unprocessable Content
3697
3757
  */
3698
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3758
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3699
3759
  /**
3700
3760
  * No description
3701
3761
  *
@@ -3707,7 +3767,7 @@ export class Api extends HttpClient {
3707
3767
  * @response `200` `LoanComparisonCalculator` OK
3708
3768
  * @response `422` `ProblemDetails` Unprocessable Content
3709
3769
  */
3710
- 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)),
3770
+ 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)),
3711
3771
  /**
3712
3772
  * No description
3713
3773
  *
@@ -3719,7 +3779,7 @@ export class Api extends HttpClient {
3719
3779
  * @response `200` `RefinanceCalculator` OK
3720
3780
  * @response `422` `ProblemDetails` Unprocessable Content
3721
3781
  */
3722
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3782
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3723
3783
  /**
3724
3784
  * No description
3725
3785
  *
@@ -3742,7 +3802,7 @@ export class Api extends HttpClient {
3742
3802
  * @response `201` `NotificationTemplate` Created
3743
3803
  * @response `422` `UnprocessableEntity` Unprocessable Content
3744
3804
  */
3745
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3805
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3746
3806
  /**
3747
3807
  * No description
3748
3808
  *
@@ -3753,7 +3813,7 @@ export class Api extends HttpClient {
3753
3813
  * @secure
3754
3814
  * @response `200` `NotificationTemplateBasePaginated` OK
3755
3815
  */
3756
- 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)),
3816
+ 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)),
3757
3817
  /**
3758
3818
  * No description
3759
3819
  *
@@ -3776,7 +3836,7 @@ export class Api extends HttpClient {
3776
3836
  * @response `200` `NotificationTemplate` OK
3777
3837
  * @response `422` `UnprocessableEntity` Unprocessable Content
3778
3838
  */
3779
- 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)),
3839
+ 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)),
3780
3840
  /**
3781
3841
  * No description
3782
3842
  *
@@ -3820,7 +3880,7 @@ export class Api extends HttpClient {
3820
3880
  * @secure
3821
3881
  * @response `200` `NotificationTemplateVersion` OK
3822
3882
  */
3823
- 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)),
3883
+ 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)),
3824
3884
  /**
3825
3885
  * No description
3826
3886
  *
@@ -3842,7 +3902,7 @@ export class Api extends HttpClient {
3842
3902
  * @secure
3843
3903
  * @response `200` `NotificationTemplateVersion` OK
3844
3904
  */
3845
- 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)),
3905
+ 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)),
3846
3906
  /**
3847
3907
  * No description
3848
3908
  *
@@ -3875,7 +3935,7 @@ export class Api extends HttpClient {
3875
3935
  * @secure
3876
3936
  * @response `200` `BranchUserPaginated` OK
3877
3937
  */
3878
- 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)),
3938
+ 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)),
3879
3939
  /**
3880
3940
  * No description
3881
3941
  *
@@ -3898,7 +3958,7 @@ export class Api extends HttpClient {
3898
3958
  * @response `200` `SiteConfiguration` OK
3899
3959
  * @response `422` `UnprocessableEntity` Unprocessable Content
3900
3960
  */
3901
- 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)),
3961
+ 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)),
3902
3962
  /**
3903
3963
  * No description
3904
3964
  *
@@ -3921,7 +3981,7 @@ export class Api extends HttpClient {
3921
3981
  * @response `200` `SiteConfiguration` OK
3922
3982
  * @response `422` `UnprocessableEntity` Unprocessable Content
3923
3983
  */
3924
- 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)),
3984
+ 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)),
3925
3985
  /**
3926
3986
  * No description
3927
3987
  *
@@ -3945,7 +4005,7 @@ export class Api extends HttpClient {
3945
4005
  * @response `200` `SiteConfigurationByUrl` OK
3946
4006
  * @response `422` `UnprocessableEntity` Unprocessable Content
3947
4007
  */
3948
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4008
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3949
4009
  /**
3950
4010
  * No description
3951
4011
  *
@@ -3970,7 +4030,7 @@ export class Api extends HttpClient {
3970
4030
  * @response `200` `SiteConfiguration` OK
3971
4031
  * @response `422` `UnprocessableEntity` Unprocessable Content
3972
4032
  */
3973
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4033
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3974
4034
  /**
3975
4035
  * No description
3976
4036
  *
@@ -3994,7 +4054,7 @@ export class Api extends HttpClient {
3994
4054
  * @response `200` `SiteConfigurationSummaryPaginated` OK
3995
4055
  * @response `422` `UnprocessableEntity` Unprocessable Content
3996
4056
  */
3997
- 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)),
4057
+ 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)),
3998
4058
  /**
3999
4059
  * No description
4000
4060
  *
@@ -4086,7 +4146,7 @@ export class Api extends HttpClient {
4086
4146
  * @secure
4087
4147
  * @response `200` `GetForm` OK
4088
4148
  */
4089
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4149
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4090
4150
  /**
4091
4151
  * No description
4092
4152
  *
@@ -4098,7 +4158,7 @@ export class Api extends HttpClient {
4098
4158
  * @response `200` `SiteTilePaginated` OK
4099
4159
  * @response `403` `ProblemDetails` Forbidden
4100
4160
  */
4101
- searchSiteTiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/site-tiles/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4161
+ searchSiteTiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/site-tiles/search`, method: "POST", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4102
4162
  /**
4103
4163
  * No description
4104
4164
  *
@@ -4138,7 +4198,7 @@ export class Api extends HttpClient {
4138
4198
  * @response `403` `ProblemDetails` Forbidden
4139
4199
  * @response `404` `ProblemDetails` Not Found
4140
4200
  */
4141
- updateSiteTile: (siteTileId, data, params = {}) => this.request(Object.assign({ path: `/api/site-tiles/${siteTileId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4201
+ updateSiteTile: (siteTileId, data, params = {}) => this.request(Object.assign({ path: `/api/site-tiles/${siteTileId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4142
4202
  /**
4143
4203
  * No description
4144
4204
  *
@@ -4164,7 +4224,7 @@ export class Api extends HttpClient {
4164
4224
  * @response `400` `ProblemDetails` Bad Request
4165
4225
  * @response `403` `ProblemDetails` Forbidden
4166
4226
  */
4167
- createSiteTile: (data, params = {}) => this.request(Object.assign({ path: `/api/site-tiles`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4227
+ createSiteTile: (data, params = {}) => this.request(Object.assign({ path: `/api/site-tiles`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4168
4228
  /**
4169
4229
  * No description
4170
4230
  *
@@ -4187,7 +4247,7 @@ export class Api extends HttpClient {
4187
4247
  * @response `200` `(SocialSurveyRecord)[]` OK
4188
4248
  * @response `422` `UnprocessableEntity` Unprocessable Content
4189
4249
  */
4190
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4250
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4191
4251
  /**
4192
4252
  * No description
4193
4253
  *
@@ -4210,7 +4270,7 @@ export class Api extends HttpClient {
4210
4270
  * @secure
4211
4271
  * @response `201` `Task` Created
4212
4272
  */
4213
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4273
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4214
4274
  /**
4215
4275
  * No description
4216
4276
  *
@@ -4234,7 +4294,7 @@ export class Api extends HttpClient {
4234
4294
  * @response `200` `Task` OK
4235
4295
  * @response `404` `ProblemDetails` Not Found
4236
4296
  */
4237
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4297
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4238
4298
  /**
4239
4299
  * No description
4240
4300
  *
@@ -4257,7 +4317,7 @@ export class Api extends HttpClient {
4257
4317
  * @secure
4258
4318
  * @response `200` `TaskPaginated` OK
4259
4319
  */
4260
- 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)),
4320
+ 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)),
4261
4321
  /**
4262
4322
  * No description
4263
4323
  *
@@ -4267,7 +4327,7 @@ export class Api extends HttpClient {
4267
4327
  * @secure
4268
4328
  * @response `200` `void` OK
4269
4329
  */
4270
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4330
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4271
4331
  /**
4272
4332
  * No description
4273
4333
  *
@@ -4278,7 +4338,7 @@ export class Api extends HttpClient {
4278
4338
  * @secure
4279
4339
  * @response `200` `EncompassRequestLogPaginated` OK
4280
4340
  */
4281
- 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)),
4341
+ 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)),
4282
4342
  /**
4283
4343
  * No description
4284
4344
  *
@@ -4301,7 +4361,7 @@ export class Api extends HttpClient {
4301
4361
  * @secure
4302
4362
  * @response `201` `LosCredentials` Created
4303
4363
  */
4304
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4364
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4305
4365
  /**
4306
4366
  * No description
4307
4367
  *
@@ -4312,7 +4372,7 @@ export class Api extends HttpClient {
4312
4372
  * @secure
4313
4373
  * @response `200` `EncompassCredentialsDetail` OK
4314
4374
  */
4315
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4375
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4316
4376
  /**
4317
4377
  * No description
4318
4378
  *
@@ -4334,7 +4394,7 @@ export class Api extends HttpClient {
4334
4394
  * @secure
4335
4395
  * @response `201` `LosWebhook` Created
4336
4396
  */
4337
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4397
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4338
4398
  /**
4339
4399
  * No description
4340
4400
  *
@@ -4356,7 +4416,7 @@ export class Api extends HttpClient {
4356
4416
  * @secure
4357
4417
  * @response `200` `LosSyncPaginated` OK
4358
4418
  */
4359
- 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)),
4419
+ 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)),
4360
4420
  /**
4361
4421
  * No description
4362
4422
  *
@@ -4439,7 +4499,7 @@ export class Api extends HttpClient {
4439
4499
  * @response `201` `UserDevice` Created
4440
4500
  * @response `400` `ProblemDetails` Bad Request
4441
4501
  */
4442
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4502
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4443
4503
  /**
4444
4504
  * No description
4445
4505
  *
@@ -4484,7 +4544,7 @@ export class Api extends HttpClient {
4484
4544
  * @secure
4485
4545
  * @response `200` `UserDraft` OK
4486
4546
  */
4487
- 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)),
4547
+ 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)),
4488
4548
  /**
4489
4549
  * No description
4490
4550
  *
@@ -4517,7 +4577,7 @@ export class Api extends HttpClient {
4517
4577
  * @secure
4518
4578
  * @response `200` `UserGroupAccessScope` OK
4519
4579
  */
4520
- 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)),
4580
+ 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)),
4521
4581
  /**
4522
4582
  * No description
4523
4583
  *
@@ -4550,7 +4610,7 @@ export class Api extends HttpClient {
4550
4610
  * @secure
4551
4611
  * @response `200` `UserGroupMember` OK
4552
4612
  */
4553
- 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)),
4613
+ 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)),
4554
4614
  /**
4555
4615
  * No description
4556
4616
  *
@@ -4594,7 +4654,7 @@ export class Api extends HttpClient {
4594
4654
  * @secure
4595
4655
  * @response `200` `UserGroup` OK
4596
4656
  */
4597
- 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)),
4657
+ 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)),
4598
4658
  /**
4599
4659
  * No description
4600
4660
  *
@@ -4616,7 +4676,7 @@ export class Api extends HttpClient {
4616
4676
  * @secure
4617
4677
  * @response `201` `UserGroup` Created
4618
4678
  */
4619
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4679
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4620
4680
  /**
4621
4681
  * No description
4622
4682
  *
@@ -4629,7 +4689,7 @@ export class Api extends HttpClient {
4629
4689
  * @response `404` `Error` Not Found
4630
4690
  * @response `422` `UnprocessableEntity` Unprocessable Content
4631
4691
  */
4632
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4692
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4633
4693
  /**
4634
4694
  * No description
4635
4695
  *
@@ -4642,7 +4702,7 @@ export class Api extends HttpClient {
4642
4702
  * @response `404` `Error` Not Found
4643
4703
  * @response `422` `UnprocessableEntity` Unprocessable Content
4644
4704
  */
4645
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4705
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4646
4706
  /**
4647
4707
  * No description
4648
4708
  *
@@ -4692,7 +4752,7 @@ export class Api extends HttpClient {
4692
4752
  * @response `404` `Error` Not Found
4693
4753
  * @response `422` `UnprocessableEntity` Unprocessable Content
4694
4754
  */
4695
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4755
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4696
4756
  /**
4697
4757
  * No description
4698
4758
  *
@@ -4716,7 +4776,7 @@ export class Api extends HttpClient {
4716
4776
  * @response `204` `void` No Content
4717
4777
  * @response `422` `UnprocessableEntity` Unprocessable Content
4718
4778
  */
4719
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4779
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4720
4780
  /**
4721
4781
  * No description
4722
4782
  *
@@ -4763,7 +4823,7 @@ export class Api extends HttpClient {
4763
4823
  * @secure
4764
4824
  * @response `204` `void` No Content
4765
4825
  */
4766
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4826
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4767
4827
  /**
4768
4828
  * No description
4769
4829
  *
@@ -4808,7 +4868,7 @@ export class Api extends HttpClient {
4808
4868
  * @response `200` `DetailedUser` OK
4809
4869
  * @response `422` `UnprocessableEntity` Unprocessable Content
4810
4870
  */
4811
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4871
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4812
4872
  /**
4813
4873
  * No description
4814
4874
  *
@@ -4819,7 +4879,7 @@ export class Api extends HttpClient {
4819
4879
  * @secure
4820
4880
  * @response `200` `UserPaginated` OK
4821
4881
  */
4822
- 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)),
4882
+ 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)),
4823
4883
  /**
4824
4884
  * No description
4825
4885
  *
@@ -4830,7 +4890,7 @@ export class Api extends HttpClient {
4830
4890
  * @secure
4831
4891
  * @response `200` `AdminAccessUser` OK
4832
4892
  */
4833
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4893
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4834
4894
  /**
4835
4895
  * No description
4836
4896
  *
@@ -4842,7 +4902,7 @@ export class Api extends HttpClient {
4842
4902
  * @response `200` `User` OK
4843
4903
  * @response `422` `UnprocessableEntity` Unprocessable Content
4844
4904
  */
4845
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4905
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4846
4906
  /**
4847
4907
  * No description
4848
4908
  *
@@ -4854,7 +4914,7 @@ export class Api extends HttpClient {
4854
4914
  * @response `200` `DetailedUser` OK
4855
4915
  * @response `422` `UnprocessableEntity` Unprocessable Content
4856
4916
  */
4857
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4917
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4858
4918
  /**
4859
4919
  * No description
4860
4920
  *
@@ -4888,7 +4948,7 @@ export class Api extends HttpClient {
4888
4948
  * @response `204` `void` No Content
4889
4949
  * @response `422` `UnprocessableEntity` Unprocessable Content
4890
4950
  */
4891
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4951
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4892
4952
  /**
4893
4953
  * No description
4894
4954
  *
@@ -4900,7 +4960,7 @@ export class Api extends HttpClient {
4900
4960
  * @response `204` `void` No Content
4901
4961
  * @response `422` `UnprocessableEntity` Unprocessable Content
4902
4962
  */
4903
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4963
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4904
4964
  /**
4905
4965
  * No description
4906
4966
  *
@@ -4912,7 +4972,7 @@ export class Api extends HttpClient {
4912
4972
  * @response `204` `void` No Content
4913
4973
  * @response `422` `UnprocessableEntity` Unprocessable Content
4914
4974
  */
4915
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4975
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4916
4976
  /**
4917
4977
  * No description
4918
4978
  *
@@ -4924,7 +4984,7 @@ export class Api extends HttpClient {
4924
4984
  * @response `204` `void` No Content
4925
4985
  * @response `422` `UnprocessableEntity` Unprocessable Content
4926
4986
  */
4927
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4987
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4928
4988
  /**
4929
4989
  * No description
4930
4990
  *
@@ -4948,7 +5008,7 @@ export class Api extends HttpClient {
4948
5008
  * @response `204` `void` No Content
4949
5009
  * @response `422` `UnprocessableEntity` Unprocessable Content
4950
5010
  */
4951
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
5011
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4952
5012
  /**
4953
5013
  * No description
4954
5014
  *
@@ -4971,7 +5031,7 @@ export class Api extends HttpClient {
4971
5031
  * @secure
4972
5032
  * @response `200` `DetailedUser` OK
4973
5033
  */
4974
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
5034
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4975
5035
  /**
4976
5036
  * @description Update the phone number If changed will send a verification code to the new number
4977
5037
  *
@@ -4982,7 +5042,7 @@ export class Api extends HttpClient {
4982
5042
  * @secure
4983
5043
  * @response `204` `DetailedUser` No Content
4984
5044
  */
4985
- 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)),
5045
+ 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)),
4986
5046
  /**
4987
5047
  * No description
4988
5048
  *
@@ -5026,7 +5086,7 @@ export class Api extends HttpClient {
5026
5086
  * @secure
5027
5087
  * @response `204` `void` No Content
5028
5088
  */
5029
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
5089
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
5030
5090
  /**
5031
5091
  * No description
5032
5092
  *
@@ -5037,7 +5097,7 @@ export class Api extends HttpClient {
5037
5097
  * @secure
5038
5098
  * @response `200` `GetForm` OK
5039
5099
  */
5040
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
5100
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5041
5101
  };
5042
5102
  this.sso = {
5043
5103
  /**