@matech/thebigpos-sdk 2.47.1-rc0 → 2.47.1-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") {
@@ -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
  *
@@ -569,7 +602,7 @@ export class Api extends HttpClient {
569
602
  * @response `400` `ProblemDetails` Bad Request
570
603
  * @response `401` `ProblemDetails` Unauthorized
571
604
  */
572
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
605
+ aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
573
606
  /**
574
607
  * No description
575
608
  *
@@ -607,7 +640,7 @@ export class Api extends HttpClient {
607
640
  * @response `403` `ProblemDetails` Forbidden
608
641
  * @response `404` `ProblemDetails` Not Found
609
642
  */
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)),
643
+ 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
644
  /**
612
645
  * No description
613
646
  *
@@ -659,7 +692,7 @@ export class Api extends HttpClient {
659
692
  * @response `403` `ProblemDetails` Forbidden
660
693
  * @response `404` `ProblemDetails` Not Found
661
694
  */
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)),
695
+ 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
696
  /**
664
697
  * No description
665
698
  *
@@ -717,7 +750,7 @@ export class Api extends HttpClient {
717
750
  * @response `201` `AiGuardrail` Created
718
751
  * @response `400` `ProblemDetails` Bad Request
719
752
  */
720
- createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
753
+ createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
721
754
  /**
722
755
  * No description
723
756
  *
@@ -742,7 +775,7 @@ export class Api extends HttpClient {
742
775
  * @response `400` `ProblemDetails` Bad Request
743
776
  * @response `404` `ProblemDetails` Not Found
744
777
  */
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)),
778
+ 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
779
  /**
747
780
  * No description
748
781
  *
@@ -789,7 +822,7 @@ export class Api extends HttpClient {
789
822
  * @secure
790
823
  * @response `200` `AiAccountUsageOverviewPaginated` OK
791
824
  */
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)),
825
+ 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
826
  /**
794
827
  * No description
795
828
  *
@@ -823,7 +856,7 @@ export class Api extends HttpClient {
823
856
  * @response `200` `AiTokenBudgetStatus` OK
824
857
  * @response `400` `ProblemDetails` Bad Request
825
858
  */
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)),
859
+ 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
860
  /**
828
861
  * No description
829
862
  *
@@ -847,7 +880,7 @@ export class Api extends HttpClient {
847
880
  * @response `400` `ProblemDetails` Bad Request
848
881
  * @response `409` `ProblemDetails` Conflict
849
882
  */
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)),
883
+ 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
884
  /**
852
885
  * No description
853
886
  *
@@ -873,7 +906,7 @@ export class Api extends HttpClient {
873
906
  * @response `404` `ProblemDetails` Not Found
874
907
  * @response `409` `ProblemDetails` Conflict
875
908
  */
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)),
909
+ 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
910
  /**
878
911
  * No description
879
912
  *
@@ -930,7 +963,7 @@ export class Api extends HttpClient {
930
963
  * @secure
931
964
  * @response `200` `AuditLogEntryPaginated` OK
932
965
  */
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)),
966
+ 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
967
  /**
935
968
  * No description
936
969
  *
@@ -966,7 +999,7 @@ export class Api extends HttpClient {
966
999
  * @response `401` `ProblemDetails` Unauthorized
967
1000
  * @response `422` `UnprocessableEntity` Unprocessable Content
968
1001
  */
969
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1002
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
970
1003
  /**
971
1004
  * No description
972
1005
  *
@@ -978,7 +1011,7 @@ export class Api extends HttpClient {
978
1011
  * @response `200` `AccountDeactivated` OK
979
1012
  * @response `422` `UnprocessableEntity` Unprocessable Content
980
1013
  */
981
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1014
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
982
1015
  /**
983
1016
  * No description
984
1017
  *
@@ -990,7 +1023,7 @@ export class Api extends HttpClient {
990
1023
  * @response `200` `AccountDeactivated` OK
991
1024
  * @response `422` `UnprocessableEntity` Unprocessable Content
992
1025
  */
993
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1026
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
994
1027
  /**
995
1028
  * No description
996
1029
  *
@@ -1002,7 +1035,7 @@ export class Api extends HttpClient {
1002
1035
  * @response `200` `Token` OK
1003
1036
  * @response `422` `UnprocessableEntity` Unprocessable Content
1004
1037
  */
1005
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1038
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1006
1039
  /**
1007
1040
  * No description
1008
1041
  *
@@ -1014,7 +1047,7 @@ export class Api extends HttpClient {
1014
1047
  * @response `200` `SSOToken` OK
1015
1048
  * @response `422` `UnprocessableEntity` Unprocessable Content
1016
1049
  */
1017
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1050
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1018
1051
  /**
1019
1052
  * No description
1020
1053
  *
@@ -1049,7 +1082,7 @@ export class Api extends HttpClient {
1049
1082
  * @response `200` `GetBranch` OK
1050
1083
  * @response `422` `UnprocessableEntity` Unprocessable Content
1051
1084
  */
1052
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1085
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1053
1086
  /**
1054
1087
  * No description
1055
1088
  *
@@ -1060,7 +1093,7 @@ export class Api extends HttpClient {
1060
1093
  * @secure
1061
1094
  * @response `200` `GetBranchPaginated` OK
1062
1095
  */
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)),
1096
+ 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
1097
  /**
1065
1098
  * No description
1066
1099
  *
@@ -1083,7 +1116,7 @@ export class Api extends HttpClient {
1083
1116
  * @response `200` `GetBranch` OK
1084
1117
  * @response `422` `UnprocessableEntity` Unprocessable Content
1085
1118
  */
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)),
1119
+ 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
1120
  /**
1088
1121
  * No description
1089
1122
  *
@@ -1118,7 +1151,7 @@ export class Api extends HttpClient {
1118
1151
  * @response `200` `SiteConfiguration` OK
1119
1152
  * @response `422` `UnprocessableEntity` Unprocessable Content
1120
1153
  */
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)),
1154
+ 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
1155
  /**
1123
1156
  * No description
1124
1157
  *
@@ -1141,7 +1174,7 @@ export class Api extends HttpClient {
1141
1174
  * @response `200` `SiteConfiguration` OK
1142
1175
  * @response `422` `UnprocessableEntity` Unprocessable Content
1143
1176
  */
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)),
1177
+ 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
1178
  /**
1146
1179
  * No description
1147
1180
  *
@@ -1175,7 +1208,7 @@ export class Api extends HttpClient {
1175
1208
  * @response `200` `BusinessRule` OK
1176
1209
  * @response `422` `UnprocessableEntity` Unprocessable Content
1177
1210
  */
1178
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1211
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1179
1212
  /**
1180
1213
  * No description
1181
1214
  *
@@ -1198,7 +1231,7 @@ export class Api extends HttpClient {
1198
1231
  * @response `200` `BusinessRule` OK
1199
1232
  * @response `422` `UnprocessableEntity` Unprocessable Content
1200
1233
  */
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)),
1234
+ 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
1235
  /**
1203
1236
  * No description
1204
1237
  *
@@ -1231,7 +1264,7 @@ export class Api extends HttpClient {
1231
1264
  * @secure
1232
1265
  * @response `200` `ClosedLoansReport` OK
1233
1266
  */
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)),
1267
+ 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
1268
  /**
1236
1269
  * No description
1237
1270
  *
@@ -1276,7 +1309,7 @@ export class Api extends HttpClient {
1276
1309
  * @response `200` `Corporate` OK
1277
1310
  * @response `422` `UnprocessableEntity` Unprocessable Content
1278
1311
  */
1279
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1312
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1280
1313
  /**
1281
1314
  * No description
1282
1315
  *
@@ -1287,7 +1320,7 @@ export class Api extends HttpClient {
1287
1320
  * @secure
1288
1321
  * @response `200` `CorporatePaginated` OK
1289
1322
  */
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)),
1323
+ 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
1324
  /**
1292
1325
  * No description
1293
1326
  *
@@ -1310,7 +1343,7 @@ export class Api extends HttpClient {
1310
1343
  * @response `200` `Corporate` OK
1311
1344
  * @response `422` `UnprocessableEntity` Unprocessable Content
1312
1345
  */
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)),
1346
+ 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
1347
  /**
1315
1348
  * No description
1316
1349
  *
@@ -1344,7 +1377,7 @@ export class Api extends HttpClient {
1344
1377
  * @response `200` `SiteConfiguration` OK
1345
1378
  * @response `422` `UnprocessableEntity` Unprocessable Content
1346
1379
  */
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)),
1380
+ 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
1381
  /**
1349
1382
  * No description
1350
1383
  *
@@ -1367,7 +1400,7 @@ export class Api extends HttpClient {
1367
1400
  * @response `200` `SiteConfiguration` OK
1368
1401
  * @response `422` `UnprocessableEntity` Unprocessable Content
1369
1402
  */
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)),
1403
+ 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
1404
  /**
1372
1405
  * No description
1373
1406
  *
@@ -1413,7 +1446,7 @@ export class Api extends HttpClient {
1413
1446
  * @response `409` `ProblemDetails` Conflict
1414
1447
  * @response `422` `ProblemDetails` Unprocessable Content
1415
1448
  */
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)),
1449
+ 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
1450
  /**
1418
1451
  * No description
1419
1452
  *
@@ -1440,7 +1473,7 @@ export class Api extends HttpClient {
1440
1473
  * @response `409` `ProblemDetails` Conflict
1441
1474
  * @response `422` `ProblemDetails` Unprocessable Content
1442
1475
  */
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)),
1476
+ 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
1477
  /**
1445
1478
  * No description
1446
1479
  *
@@ -1510,7 +1543,7 @@ export class Api extends HttpClient {
1510
1543
  * @secure
1511
1544
  * @response `200` `Device` OK
1512
1545
  */
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)),
1546
+ 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
1547
  /**
1515
1548
  * No description
1516
1549
  *
@@ -1567,7 +1600,7 @@ export class Api extends HttpClient {
1567
1600
  * @response `404` `ProblemDetails` Not Found
1568
1601
  * @response `422` `UnprocessableEntity` Unprocessable Content
1569
1602
  */
1570
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1603
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1571
1604
  /**
1572
1605
  * No description
1573
1606
  *
@@ -1604,7 +1637,7 @@ export class Api extends HttpClient {
1604
1637
  * @response `404` `ProblemDetails` Not Found
1605
1638
  * @response `422` `UnprocessableEntity` Unprocessable Content
1606
1639
  */
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)),
1640
+ 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
1641
  /**
1609
1642
  * No description
1610
1643
  *
@@ -1652,7 +1685,7 @@ export class Api extends HttpClient {
1652
1685
  * @secure
1653
1686
  * @response `200` `DocumentTemplateVersion` OK
1654
1687
  */
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)),
1688
+ 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
1689
  /**
1657
1690
  * No description
1658
1691
  *
@@ -1674,7 +1707,7 @@ export class Api extends HttpClient {
1674
1707
  * @secure
1675
1708
  * @response `200` `DocumentTemplateVersion` OK
1676
1709
  */
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)),
1710
+ 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
1711
  /**
1679
1712
  * No description
1680
1713
  *
@@ -1712,7 +1745,7 @@ export class Api extends HttpClient {
1712
1745
  * @response `409` `void` Conflict
1713
1746
  * @response `422` `ProblemDetails` Unprocessable Content
1714
1747
  */
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)),
1748
+ 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
1749
  /**
1717
1750
  * No description
1718
1751
  *
@@ -1815,7 +1848,7 @@ export class Api extends HttpClient {
1815
1848
  * @response `404` `EncompassError` Not Found
1816
1849
  * @response `500` `EncompassError` Internal Server Error
1817
1850
  */
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)),
1851
+ 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
1852
  /**
1820
1853
  * No description
1821
1854
  *
@@ -1838,7 +1871,7 @@ export class Api extends HttpClient {
1838
1871
  * @response `201` `File` Created
1839
1872
  * @response `422` `UnprocessableEntity` Unprocessable Content
1840
1873
  */
1841
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1874
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1842
1875
  /**
1843
1876
  * No description
1844
1877
  *
@@ -1861,7 +1894,7 @@ export class Api extends HttpClient {
1861
1894
  * @response `200` `string` OK
1862
1895
  * @response `422` `UnprocessableEntity` Unprocessable Content
1863
1896
  */
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)),
1897
+ 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
1898
  /**
1866
1899
  * No description
1867
1900
  *
@@ -1883,7 +1916,7 @@ export class Api extends HttpClient {
1883
1916
  * @secure
1884
1917
  * @response `200` `FilePaginated` OK
1885
1918
  */
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)),
1919
+ 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
1920
  /**
1888
1921
  * No description
1889
1922
  *
@@ -1906,7 +1939,7 @@ export class Api extends HttpClient {
1906
1939
  * @response `201` `Form` Created
1907
1940
  * @response `422` `UnprocessableEntity` Unprocessable Content
1908
1941
  */
1909
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1942
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1910
1943
  /**
1911
1944
  * No description
1912
1945
  *
@@ -1929,7 +1962,7 @@ export class Api extends HttpClient {
1929
1962
  * @response `200` `Form` OK
1930
1963
  * @response `422` `UnprocessableEntity` Unprocessable Content
1931
1964
  */
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)),
1965
+ 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
1966
  /**
1934
1967
  * No description
1935
1968
  *
@@ -1962,7 +1995,7 @@ export class Api extends HttpClient {
1962
1995
  * @secure
1963
1996
  * @response `200` `FormSubmissionFile` OK
1964
1997
  */
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)),
1998
+ 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
1999
  /**
1967
2000
  * No description
1968
2001
  *
@@ -2006,7 +2039,7 @@ export class Api extends HttpClient {
2006
2039
  * @secure
2007
2040
  * @response `201` `FormSubmission` Created
2008
2041
  */
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)),
2042
+ 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
2043
  /**
2011
2044
  * No description
2012
2045
  *
@@ -2028,7 +2061,7 @@ export class Api extends HttpClient {
2028
2061
  * @secure
2029
2062
  * @response `200` `FormSubmission` OK
2030
2063
  */
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)),
2064
+ 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
2065
  /**
2033
2066
  * No description
2034
2067
  *
@@ -2050,7 +2083,7 @@ export class Api extends HttpClient {
2050
2083
  * @secure
2051
2084
  * @response `200` `FormSubmissionPaginated` OK
2052
2085
  */
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)),
2086
+ 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
2087
  /**
2055
2088
  * No description
2056
2089
  *
@@ -2072,7 +2105,7 @@ export class Api extends HttpClient {
2072
2105
  * @secure
2073
2106
  * @response `200` `FormVersion` OK
2074
2107
  */
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)),
2108
+ 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
2109
  /**
2077
2110
  * No description
2078
2111
  *
@@ -2094,7 +2127,7 @@ export class Api extends HttpClient {
2094
2127
  * @secure
2095
2128
  * @response `200` `FormVersion` OK
2096
2129
  */
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)),
2130
+ 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
2131
  /**
2099
2132
  * No description
2100
2133
  *
@@ -2140,7 +2173,7 @@ export class Api extends HttpClient {
2140
2173
  * @response `200` `string` OK
2141
2174
  * @response `422` `UnprocessableEntity` Unprocessable Content
2142
2175
  */
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)),
2176
+ 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
2177
  /**
2145
2178
  * No description
2146
2179
  *
@@ -2151,7 +2184,7 @@ export class Api extends HttpClient {
2151
2184
  * @secure
2152
2185
  * @response `200` `GetReport` OK
2153
2186
  */
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)),
2187
+ 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
2188
  /**
2156
2189
  * No description
2157
2190
  *
@@ -2165,7 +2198,7 @@ export class Api extends HttpClient {
2165
2198
  * @response `422` `UnprocessableEntity` Unprocessable Content
2166
2199
  * @response `423` `UnprocessableEntity` Locked
2167
2200
  */
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)),
2201
+ 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
2202
  /**
2170
2203
  * No description
2171
2204
  *
@@ -2178,7 +2211,7 @@ export class Api extends HttpClient {
2178
2211
  * @response `422` `UnprocessableEntity` Unprocessable Content
2179
2212
  * @response `423` `UnprocessableEntity` Locked
2180
2213
  */
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)),
2214
+ 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
2215
  /**
2183
2216
  * No description
2184
2217
  *
@@ -2190,7 +2223,7 @@ export class Api extends HttpClient {
2190
2223
  * @response `200` `string` OK
2191
2224
  * @response `422` `UnprocessableEntity` Unprocessable Content
2192
2225
  */
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)),
2226
+ 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
2227
  /**
2195
2228
  * No description
2196
2229
  *
@@ -2203,7 +2236,7 @@ export class Api extends HttpClient {
2203
2236
  * @response `202` `string` Accepted
2204
2237
  * @response `422` `UnprocessableEntity` Unprocessable Content
2205
2238
  */
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)),
2239
+ 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
2240
  /**
2208
2241
  * No description
2209
2242
  *
@@ -2283,7 +2316,7 @@ export class Api extends HttpClient {
2283
2316
  * @secure
2284
2317
  * @response `200` `ListingFile` OK
2285
2318
  */
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)),
2319
+ 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
2320
  /**
2288
2321
  * No description
2289
2322
  *
@@ -2294,7 +2327,7 @@ export class Api extends HttpClient {
2294
2327
  * @secure
2295
2328
  * @response `200` `ListingFile` OK
2296
2329
  */
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)),
2330
+ 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
2331
  /**
2299
2332
  * No description
2300
2333
  *
@@ -2316,7 +2349,7 @@ export class Api extends HttpClient {
2316
2349
  * @secure
2317
2350
  * @response `200` `ListingPhoto` OK
2318
2351
  */
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)),
2352
+ 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
2353
  /**
2321
2354
  * No description
2322
2355
  *
@@ -2327,7 +2360,7 @@ export class Api extends HttpClient {
2327
2360
  * @secure
2328
2361
  * @response `200` `(ListingPhoto)[]` OK
2329
2362
  */
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)),
2363
+ 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
2364
  /**
2332
2365
  * No description
2333
2366
  *
@@ -2360,7 +2393,7 @@ export class Api extends HttpClient {
2360
2393
  * @secure
2361
2394
  * @response `201` `Listing` Created
2362
2395
  */
2363
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2396
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2364
2397
  /**
2365
2398
  * No description
2366
2399
  *
@@ -2393,7 +2426,7 @@ export class Api extends HttpClient {
2393
2426
  * @secure
2394
2427
  * @response `200` `Listing` OK
2395
2428
  */
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)),
2429
+ 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
2430
  /**
2398
2431
  * No description
2399
2432
  *
@@ -2415,7 +2448,7 @@ export class Api extends HttpClient {
2415
2448
  * @secure
2416
2449
  * @response `200` `ListingPaginated` OK
2417
2450
  */
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)),
2451
+ 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
2452
  /**
2420
2453
  * No description
2421
2454
  *
@@ -2426,7 +2459,7 @@ export class Api extends HttpClient {
2426
2459
  * @secure
2427
2460
  * @response `200` `File` OK
2428
2461
  */
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)),
2462
+ 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
2463
  /**
2431
2464
  * No description
2432
2465
  *
@@ -2472,7 +2505,7 @@ export class Api extends HttpClient {
2472
2505
  * @response `422` `UnprocessableEntity` Unprocessable Content
2473
2506
  * @response `423` `UnprocessableEntity` Locked
2474
2507
  */
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)),
2508
+ 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
2509
  /**
2477
2510
  * No description
2478
2511
  *
@@ -2496,7 +2529,7 @@ export class Api extends HttpClient {
2496
2529
  * @response `422` `UnprocessableEntity` Unprocessable Content
2497
2530
  * @response `423` `UnprocessableEntity` Locked
2498
2531
  */
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)),
2532
+ 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
2533
  /**
2501
2534
  * No description
2502
2535
  *
@@ -2519,7 +2552,7 @@ export class Api extends HttpClient {
2519
2552
  * @response `204` `void` No Content
2520
2553
  * @response `422` `UnprocessableEntity` Unprocessable Content
2521
2554
  */
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)),
2555
+ 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
2556
  /**
2524
2557
  * No description
2525
2558
  *
@@ -2556,7 +2589,7 @@ export class Api extends HttpClient {
2556
2589
  * @response `400` `ProblemDetails` Bad Request
2557
2590
  * @response `422` `ProblemDetails` Unprocessable Content
2558
2591
  */
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)),
2592
+ 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
2593
  /**
2561
2594
  * No description
2562
2595
  *
@@ -2570,7 +2603,7 @@ export class Api extends HttpClient {
2570
2603
  * @response `404` `ProblemDetails` Not Found
2571
2604
  * @response `422` `ProblemDetails` Unprocessable Content
2572
2605
  */
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)),
2606
+ 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
2607
  /**
2575
2608
  * No description
2576
2609
  *
@@ -2604,7 +2637,7 @@ export class Api extends HttpClient {
2604
2637
  * @secure
2605
2638
  * @response `201` `(string)[]` Created
2606
2639
  */
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)),
2640
+ 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
2641
  /**
2609
2642
  * No description
2610
2643
  *
@@ -2628,7 +2661,7 @@ export class Api extends HttpClient {
2628
2661
  * @response `409` `ProblemDetails` Conflict
2629
2662
  * @response `422` `ProblemDetails` Unprocessable Content
2630
2663
  */
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)),
2664
+ 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
2665
  /**
2633
2666
  * No description
2634
2667
  *
@@ -2655,7 +2688,7 @@ export class Api extends HttpClient {
2655
2688
  * @response `409` `ProblemDetails` Conflict
2656
2689
  * @response `422` `ProblemDetails` Unprocessable Content
2657
2690
  */
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)),
2691
+ 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
2692
  /**
2660
2693
  * No description
2661
2694
  *
@@ -2730,7 +2763,7 @@ export class Api extends HttpClient {
2730
2763
  * @response `200` `Record<string,string>` OK
2731
2764
  * @response `400` `ProblemDetails` Bad Request
2732
2765
  */
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)),
2766
+ 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
2767
  /**
2735
2768
  * No description
2736
2769
  *
@@ -2741,7 +2774,7 @@ export class Api extends HttpClient {
2741
2774
  * @secure
2742
2775
  * @response `200` `LoanDocumentSearchPaginated` OK
2743
2776
  */
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)),
2777
+ 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
2778
  /**
2746
2779
  * @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
2780
  *
@@ -2752,7 +2785,7 @@ export class Api extends HttpClient {
2752
2785
  * @secure
2753
2786
  * @response `200` `(DocumentFolder)[]` OK
2754
2787
  */
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)),
2788
+ 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
2789
  /**
2757
2790
  * No description
2758
2791
  *
@@ -2761,7 +2794,7 @@ export class Api extends HttpClient {
2761
2794
  * @summary Download By ID
2762
2795
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2763
2796
  * @secure
2764
- * @response `200` `Blob` OK
2797
+ * @response `200` `string` OK
2765
2798
  * @response `404` `ProblemDetails` Not Found
2766
2799
  */
2767
2800
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2777,7 +2810,7 @@ export class Api extends HttpClient {
2777
2810
  * @response `404` `ProblemDetails` Not Found
2778
2811
  * @response `422` `UnprocessableEntity` Unprocessable Content
2779
2812
  */
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)),
2813
+ 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
2814
  /**
2782
2815
  * No description
2783
2816
  *
@@ -2801,7 +2834,7 @@ export class Api extends HttpClient {
2801
2834
  * @secure
2802
2835
  * @response `200` `DocumentDataRequest` OK
2803
2836
  */
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)),
2837
+ 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
2838
  /**
2806
2839
  * No description
2807
2840
  *
@@ -2814,7 +2847,7 @@ export class Api extends HttpClient {
2814
2847
  * @response `400` `ProblemDetails` Bad Request
2815
2848
  * @response `404` `ProblemDetails` Not Found
2816
2849
  */
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)),
2850
+ 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
2851
  /**
2819
2852
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2820
2853
  *
@@ -2839,7 +2872,7 @@ export class Api extends HttpClient {
2839
2872
  * @response `404` `ProblemDetails` Not Found
2840
2873
  * @response `422` `UnprocessableEntity` Unprocessable Content
2841
2874
  */
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)),
2875
+ 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
2876
  /**
2844
2877
  * @description Re-attempts to push a failed document to LOS
2845
2878
  *
@@ -2863,7 +2896,7 @@ export class Api extends HttpClient {
2863
2896
  * @secure
2864
2897
  * @response `201` `Draft` Created
2865
2898
  */
2866
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2899
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2867
2900
  /**
2868
2901
  * No description
2869
2902
  *
@@ -2896,7 +2929,7 @@ export class Api extends HttpClient {
2896
2929
  * @secure
2897
2930
  * @response `200` `Draft` OK
2898
2931
  */
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)),
2932
+ 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
2933
  /**
2901
2934
  * No description
2902
2935
  *
@@ -2918,7 +2951,7 @@ export class Api extends HttpClient {
2918
2951
  * @secure
2919
2952
  * @response `201` `DraftContentPaginated` Created
2920
2953
  */
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)),
2954
+ 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
2955
  /**
2923
2956
  * No description
2924
2957
  *
@@ -2929,7 +2962,7 @@ export class Api extends HttpClient {
2929
2962
  * @secure
2930
2963
  * @response `200` `Draft` OK
2931
2964
  */
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)),
2965
+ 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
2966
  /**
2934
2967
  * No description
2935
2968
  *
@@ -2962,7 +2995,7 @@ export class Api extends HttpClient {
2962
2995
  * @secure
2963
2996
  * @response `201` `LoanImport` Created
2964
2997
  */
2965
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2998
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2966
2999
  /**
2967
3000
  * No description
2968
3001
  *
@@ -3008,7 +3041,7 @@ export class Api extends HttpClient {
3008
3041
  * @response `200` `(Invite)[]` OK
3009
3042
  * @response `404` `ProblemDetails` Not Found
3010
3043
  */
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)),
3044
+ 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
3045
  /**
3013
3046
  * No description
3014
3047
  *
@@ -3019,7 +3052,7 @@ export class Api extends HttpClient {
3019
3052
  * @secure
3020
3053
  * @response `200` `LoanLogPaginated` OK
3021
3054
  */
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)),
3055
+ 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
3056
  /**
3024
3057
  * No description
3025
3058
  *
@@ -3044,7 +3077,7 @@ export class Api extends HttpClient {
3044
3077
  * @response `400` `ProblemDetails` Bad Request
3045
3078
  * @response `404` `ProblemDetails` Not Found
3046
3079
  */
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)),
3080
+ 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
3081
  /**
3049
3082
  * No description
3050
3083
  *
@@ -3057,7 +3090,7 @@ export class Api extends HttpClient {
3057
3090
  * @response `400` `ProblemDetails` Bad Request
3058
3091
  * @response `404` `ProblemDetails` Not Found
3059
3092
  */
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)),
3093
+ 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
3094
  /**
3062
3095
  * No description
3063
3096
  *
@@ -3079,7 +3112,7 @@ export class Api extends HttpClient {
3079
3112
  * @secure
3080
3113
  * @response `200` `BranchUserPaginated` OK
3081
3114
  */
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)),
3115
+ 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
3116
  /**
3084
3117
  * No description
3085
3118
  *
@@ -3102,7 +3135,7 @@ export class Api extends HttpClient {
3102
3135
  * @response `200` `SiteConfiguration` OK
3103
3136
  * @response `422` `UnprocessableEntity` Unprocessable Content
3104
3137
  */
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)),
3138
+ 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
3139
  /**
3107
3140
  * No description
3108
3141
  *
@@ -3125,7 +3158,7 @@ export class Api extends HttpClient {
3125
3158
  * @response `200` `SiteConfiguration` OK
3126
3159
  * @response `422` `UnprocessableEntity` Unprocessable Content
3127
3160
  */
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)),
3161
+ 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
3162
  /**
3130
3163
  * No description
3131
3164
  *
@@ -3136,7 +3169,7 @@ export class Api extends HttpClient {
3136
3169
  * @secure
3137
3170
  * @response `200` `LoanQueuePaginated` OK
3138
3171
  */
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)),
3172
+ 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
3173
  /**
3141
3174
  * No description
3142
3175
  *
@@ -3160,7 +3193,7 @@ export class Api extends HttpClient {
3160
3193
  * @response `200` `LoanQueueWithData` OK
3161
3194
  * @response `404` `ProblemDetails` Not Found
3162
3195
  */
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)),
3196
+ 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
3197
  /**
3165
3198
  * No description
3166
3199
  *
@@ -3221,7 +3254,7 @@ export class Api extends HttpClient {
3221
3254
  * @response `401` `ProblemDetails` Unauthorized
3222
3255
  * @response `403` `ProblemDetails` Forbidden
3223
3256
  */
3224
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3257
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3225
3258
  /**
3226
3259
  * No description
3227
3260
  *
@@ -3232,7 +3265,7 @@ export class Api extends HttpClient {
3232
3265
  * @secure
3233
3266
  * @response `200` `LoanListPaginated` OK
3234
3267
  */
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)),
3268
+ 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
3269
  /**
3237
3270
  * No description
3238
3271
  *
@@ -3248,7 +3281,7 @@ export class Api extends HttpClient {
3248
3281
  * @response `404` `ProblemDetails` Not Found
3249
3282
  * @response `409` `any` Conflict
3250
3283
  */
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)),
3284
+ 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
3285
  /**
3253
3286
  * No description
3254
3287
  *
@@ -3310,7 +3343,7 @@ export class Api extends HttpClient {
3310
3343
  * @response `400` `ProblemDetails` Bad Request
3311
3344
  * @response `404` `ProblemDetails` Not Found
3312
3345
  */
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)),
3346
+ 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
3347
  /**
3315
3348
  * No description
3316
3349
  *
@@ -3322,7 +3355,7 @@ export class Api extends HttpClient {
3322
3355
  * @response `200` `TaskCommentPaginated` OK
3323
3356
  * @response `404` `ProblemDetails` Not Found
3324
3357
  */
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)),
3358
+ 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
3359
  /**
3327
3360
  * No description
3328
3361
  *
@@ -3346,7 +3379,7 @@ export class Api extends HttpClient {
3346
3379
  * @response `201` `TaskComment` Created
3347
3380
  * @response `404` `ProblemDetails` Not Found
3348
3381
  */
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)),
3382
+ 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
3383
  /**
3351
3384
  * No description
3352
3385
  *
@@ -3358,7 +3391,7 @@ export class Api extends HttpClient {
3358
3391
  * @response `200` `TaskComment` OK
3359
3392
  * @response `404` `ProblemDetails` Not Found
3360
3393
  */
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)),
3394
+ 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
3395
  /**
3363
3396
  * No description
3364
3397
  *
@@ -3383,7 +3416,7 @@ export class Api extends HttpClient {
3383
3416
  * @response `404` `ProblemDetails` Not Found
3384
3417
  * @response `422` `UnprocessableEntity` Unprocessable Content
3385
3418
  */
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)),
3419
+ 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
3420
  /**
3388
3421
  * No description
3389
3422
  *
@@ -3397,7 +3430,7 @@ export class Api extends HttpClient {
3397
3430
  * @response `404` `ProblemDetails` Not Found
3398
3431
  * @response `422` `ProblemDetails` Unprocessable Content
3399
3432
  */
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)),
3433
+ 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
3434
  /**
3402
3435
  * No description
3403
3436
  *
@@ -3410,7 +3443,7 @@ export class Api extends HttpClient {
3410
3443
  * @response `400` `ProblemDetails` Bad Request
3411
3444
  * @response `404` `ProblemDetails` Not Found
3412
3445
  */
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)),
3446
+ 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
3447
  /**
3415
3448
  * @description Search tasks across all loans
3416
3449
  *
@@ -3421,7 +3454,7 @@ export class Api extends HttpClient {
3421
3454
  * @secure
3422
3455
  * @response `200` `UserLoanTaskPaginated` OK
3423
3456
  */
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)),
3457
+ 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
3458
  /**
3426
3459
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3427
3460
  *
@@ -3433,7 +3466,7 @@ export class Api extends HttpClient {
3433
3466
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3434
3467
  * @response `422` `UnprocessableEntity` Unprocessable Content
3435
3468
  */
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)),
3469
+ 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
3470
  /**
3438
3471
  * No description
3439
3472
  *
@@ -3481,7 +3514,7 @@ export class Api extends HttpClient {
3481
3514
  * @response `201` `UserLoanTask` Created
3482
3515
  * @response `404` `ProblemDetails` Not Found
3483
3516
  */
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)),
3517
+ 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
3518
  /**
3486
3519
  * No description
3487
3520
  *
@@ -3493,7 +3526,7 @@ export class Api extends HttpClient {
3493
3526
  * @response `201` `(UserLoanTask)[]` Created
3494
3527
  * @response `404` `ProblemDetails` Not Found
3495
3528
  */
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)),
3529
+ 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
3530
  /**
3498
3531
  * No description
3499
3532
  *
@@ -3505,7 +3538,7 @@ export class Api extends HttpClient {
3505
3538
  * @response `200` `UserLoanTask` OK
3506
3539
  * @response `404` `ProblemDetails` Not Found
3507
3540
  */
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)),
3541
+ 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
3542
  /**
3510
3543
  * No description
3511
3544
  *
@@ -3564,7 +3597,7 @@ export class Api extends HttpClient {
3564
3597
  * @secure
3565
3598
  * @response `201` `LoanUser` Created
3566
3599
  */
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)),
3600
+ 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
3601
  /**
3569
3602
  * No description
3570
3603
  *
@@ -3597,7 +3630,20 @@ export class Api extends HttpClient {
3597
3630
  * @secure
3598
3631
  * @response `200` `LosOperationTrackingPaginated` OK
3599
3632
  */
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)),
3633
+ 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)),
3634
+ /**
3635
+ * No description
3636
+ *
3637
+ * @tags LosSyncFailures
3638
+ * @name SearchInboundSyncFailures
3639
+ * @summary Search cross-account failed inbound Encompass syncs (SuperAdmin)
3640
+ * @request POST:/api/monitoring/inbound-sync-failures/search
3641
+ * @secure
3642
+ * @response `200` `LosSyncPaginated` OK
3643
+ * @response `401` `ProblemDetails` Unauthorized
3644
+ * @response `403` `ProblemDetails` Forbidden
3645
+ */
3646
+ 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)),
3601
3647
  /**
3602
3648
  * No description
3603
3649
  *
@@ -3620,7 +3666,7 @@ export class Api extends HttpClient {
3620
3666
  * @response `201` `MilestoneConfiguration` Created
3621
3667
  * @response `422` `UnprocessableEntity` Unprocessable Content
3622
3668
  */
3623
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3669
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3624
3670
  /**
3625
3671
  * No description
3626
3672
  *
@@ -3645,7 +3691,7 @@ export class Api extends HttpClient {
3645
3691
  * @response `404` `Error` Not Found
3646
3692
  * @response `422` `UnprocessableEntity` Unprocessable Content
3647
3693
  */
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)),
3694
+ 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
3695
  /**
3650
3696
  * No description
3651
3697
  *
@@ -3671,7 +3717,7 @@ export class Api extends HttpClient {
3671
3717
  * @response `404` `ProblemDetails` Not Found
3672
3718
  * @response `422` `ProblemDetails` Unprocessable Content
3673
3719
  */
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)),
3720
+ 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
3721
  /**
3676
3722
  * No description
3677
3723
  *
@@ -3683,7 +3729,7 @@ export class Api extends HttpClient {
3683
3729
  * @response `200` `MonthlyPaymentCalculator` OK
3684
3730
  * @response `422` `ProblemDetails` Unprocessable Content
3685
3731
  */
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)),
3732
+ 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
3733
  /**
3688
3734
  * No description
3689
3735
  *
@@ -3695,7 +3741,7 @@ export class Api extends HttpClient {
3695
3741
  * @response `200` `AffordabilityCalculator` OK
3696
3742
  * @response `422` `ProblemDetails` Unprocessable Content
3697
3743
  */
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)),
3744
+ 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
3745
  /**
3700
3746
  * No description
3701
3747
  *
@@ -3707,7 +3753,7 @@ export class Api extends HttpClient {
3707
3753
  * @response `200` `LoanComparisonCalculator` OK
3708
3754
  * @response `422` `ProblemDetails` Unprocessable Content
3709
3755
  */
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)),
3756
+ 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
3757
  /**
3712
3758
  * No description
3713
3759
  *
@@ -3719,7 +3765,7 @@ export class Api extends HttpClient {
3719
3765
  * @response `200` `RefinanceCalculator` OK
3720
3766
  * @response `422` `ProblemDetails` Unprocessable Content
3721
3767
  */
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)),
3768
+ 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
3769
  /**
3724
3770
  * No description
3725
3771
  *
@@ -3742,7 +3788,7 @@ export class Api extends HttpClient {
3742
3788
  * @response `201` `NotificationTemplate` Created
3743
3789
  * @response `422` `UnprocessableEntity` Unprocessable Content
3744
3790
  */
3745
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3791
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3746
3792
  /**
3747
3793
  * No description
3748
3794
  *
@@ -3753,7 +3799,7 @@ export class Api extends HttpClient {
3753
3799
  * @secure
3754
3800
  * @response `200` `NotificationTemplateBasePaginated` OK
3755
3801
  */
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)),
3802
+ 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
3803
  /**
3758
3804
  * No description
3759
3805
  *
@@ -3776,7 +3822,7 @@ export class Api extends HttpClient {
3776
3822
  * @response `200` `NotificationTemplate` OK
3777
3823
  * @response `422` `UnprocessableEntity` Unprocessable Content
3778
3824
  */
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)),
3825
+ 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
3826
  /**
3781
3827
  * No description
3782
3828
  *
@@ -3820,7 +3866,7 @@ export class Api extends HttpClient {
3820
3866
  * @secure
3821
3867
  * @response `200` `NotificationTemplateVersion` OK
3822
3868
  */
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)),
3869
+ 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
3870
  /**
3825
3871
  * No description
3826
3872
  *
@@ -3842,7 +3888,7 @@ export class Api extends HttpClient {
3842
3888
  * @secure
3843
3889
  * @response `200` `NotificationTemplateVersion` OK
3844
3890
  */
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)),
3891
+ 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
3892
  /**
3847
3893
  * No description
3848
3894
  *
@@ -3875,7 +3921,7 @@ export class Api extends HttpClient {
3875
3921
  * @secure
3876
3922
  * @response `200` `BranchUserPaginated` OK
3877
3923
  */
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)),
3924
+ 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
3925
  /**
3880
3926
  * No description
3881
3927
  *
@@ -3898,7 +3944,7 @@ export class Api extends HttpClient {
3898
3944
  * @response `200` `SiteConfiguration` OK
3899
3945
  * @response `422` `UnprocessableEntity` Unprocessable Content
3900
3946
  */
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)),
3947
+ 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
3948
  /**
3903
3949
  * No description
3904
3950
  *
@@ -3921,7 +3967,7 @@ export class Api extends HttpClient {
3921
3967
  * @response `200` `SiteConfiguration` OK
3922
3968
  * @response `422` `UnprocessableEntity` Unprocessable Content
3923
3969
  */
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)),
3970
+ 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
3971
  /**
3926
3972
  * No description
3927
3973
  *
@@ -3945,7 +3991,7 @@ export class Api extends HttpClient {
3945
3991
  * @response `200` `SiteConfigurationByUrl` OK
3946
3992
  * @response `422` `UnprocessableEntity` Unprocessable Content
3947
3993
  */
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)),
3994
+ 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
3995
  /**
3950
3996
  * No description
3951
3997
  *
@@ -3970,7 +4016,7 @@ export class Api extends HttpClient {
3970
4016
  * @response `200` `SiteConfiguration` OK
3971
4017
  * @response `422` `UnprocessableEntity` Unprocessable Content
3972
4018
  */
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)),
4019
+ 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
4020
  /**
3975
4021
  * No description
3976
4022
  *
@@ -3994,7 +4040,7 @@ export class Api extends HttpClient {
3994
4040
  * @response `200` `SiteConfigurationSummaryPaginated` OK
3995
4041
  * @response `422` `UnprocessableEntity` Unprocessable Content
3996
4042
  */
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)),
4043
+ 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
4044
  /**
3999
4045
  * No description
4000
4046
  *
@@ -4086,7 +4132,7 @@ export class Api extends HttpClient {
4086
4132
  * @secure
4087
4133
  * @response `200` `GetForm` OK
4088
4134
  */
4089
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4135
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4090
4136
  /**
4091
4137
  * No description
4092
4138
  *
@@ -4098,7 +4144,7 @@ export class Api extends HttpClient {
4098
4144
  * @response `200` `SiteTilePaginated` OK
4099
4145
  * @response `403` `ProblemDetails` Forbidden
4100
4146
  */
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)),
4147
+ 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
4148
  /**
4103
4149
  * No description
4104
4150
  *
@@ -4138,7 +4184,7 @@ export class Api extends HttpClient {
4138
4184
  * @response `403` `ProblemDetails` Forbidden
4139
4185
  * @response `404` `ProblemDetails` Not Found
4140
4186
  */
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)),
4187
+ 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
4188
  /**
4143
4189
  * No description
4144
4190
  *
@@ -4164,7 +4210,7 @@ export class Api extends HttpClient {
4164
4210
  * @response `400` `ProblemDetails` Bad Request
4165
4211
  * @response `403` `ProblemDetails` Forbidden
4166
4212
  */
4167
- createSiteTile: (data, params = {}) => this.request(Object.assign({ path: `/api/site-tiles`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4213
+ createSiteTile: (data, params = {}) => this.request(Object.assign({ path: `/api/site-tiles`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4168
4214
  /**
4169
4215
  * No description
4170
4216
  *
@@ -4187,7 +4233,7 @@ export class Api extends HttpClient {
4187
4233
  * @response `200` `(SocialSurveyRecord)[]` OK
4188
4234
  * @response `422` `UnprocessableEntity` Unprocessable Content
4189
4235
  */
4190
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4236
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4191
4237
  /**
4192
4238
  * No description
4193
4239
  *
@@ -4210,7 +4256,7 @@ export class Api extends HttpClient {
4210
4256
  * @secure
4211
4257
  * @response `201` `Task` Created
4212
4258
  */
4213
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4259
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4214
4260
  /**
4215
4261
  * No description
4216
4262
  *
@@ -4234,7 +4280,7 @@ export class Api extends HttpClient {
4234
4280
  * @response `200` `Task` OK
4235
4281
  * @response `404` `ProblemDetails` Not Found
4236
4282
  */
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)),
4283
+ 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
4284
  /**
4239
4285
  * No description
4240
4286
  *
@@ -4257,7 +4303,7 @@ export class Api extends HttpClient {
4257
4303
  * @secure
4258
4304
  * @response `200` `TaskPaginated` OK
4259
4305
  */
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)),
4306
+ 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
4307
  /**
4262
4308
  * No description
4263
4309
  *
@@ -4267,7 +4313,7 @@ export class Api extends HttpClient {
4267
4313
  * @secure
4268
4314
  * @response `200` `void` OK
4269
4315
  */
4270
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4316
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4271
4317
  /**
4272
4318
  * No description
4273
4319
  *
@@ -4278,7 +4324,7 @@ export class Api extends HttpClient {
4278
4324
  * @secure
4279
4325
  * @response `200` `EncompassRequestLogPaginated` OK
4280
4326
  */
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)),
4327
+ 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
4328
  /**
4283
4329
  * No description
4284
4330
  *
@@ -4301,7 +4347,7 @@ export class Api extends HttpClient {
4301
4347
  * @secure
4302
4348
  * @response `201` `LosCredentials` Created
4303
4349
  */
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)),
4350
+ 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
4351
  /**
4306
4352
  * No description
4307
4353
  *
@@ -4312,7 +4358,7 @@ export class Api extends HttpClient {
4312
4358
  * @secure
4313
4359
  * @response `200` `EncompassCredentialsDetail` OK
4314
4360
  */
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)),
4361
+ 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
4362
  /**
4317
4363
  * No description
4318
4364
  *
@@ -4334,7 +4380,7 @@ export class Api extends HttpClient {
4334
4380
  * @secure
4335
4381
  * @response `201` `LosWebhook` Created
4336
4382
  */
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)),
4383
+ 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
4384
  /**
4339
4385
  * No description
4340
4386
  *
@@ -4356,7 +4402,7 @@ export class Api extends HttpClient {
4356
4402
  * @secure
4357
4403
  * @response `200` `LosSyncPaginated` OK
4358
4404
  */
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)),
4405
+ 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
4406
  /**
4361
4407
  * No description
4362
4408
  *
@@ -4439,7 +4485,7 @@ export class Api extends HttpClient {
4439
4485
  * @response `201` `UserDevice` Created
4440
4486
  * @response `400` `ProblemDetails` Bad Request
4441
4487
  */
4442
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4488
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4443
4489
  /**
4444
4490
  * No description
4445
4491
  *
@@ -4484,7 +4530,7 @@ export class Api extends HttpClient {
4484
4530
  * @secure
4485
4531
  * @response `200` `UserDraft` OK
4486
4532
  */
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)),
4533
+ 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
4534
  /**
4489
4535
  * No description
4490
4536
  *
@@ -4517,7 +4563,7 @@ export class Api extends HttpClient {
4517
4563
  * @secure
4518
4564
  * @response `200` `UserGroupAccessScope` OK
4519
4565
  */
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)),
4566
+ 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
4567
  /**
4522
4568
  * No description
4523
4569
  *
@@ -4550,7 +4596,7 @@ export class Api extends HttpClient {
4550
4596
  * @secure
4551
4597
  * @response `200` `UserGroupMember` OK
4552
4598
  */
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)),
4599
+ 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
4600
  /**
4555
4601
  * No description
4556
4602
  *
@@ -4594,7 +4640,7 @@ export class Api extends HttpClient {
4594
4640
  * @secure
4595
4641
  * @response `200` `UserGroup` OK
4596
4642
  */
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)),
4643
+ 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
4644
  /**
4599
4645
  * No description
4600
4646
  *
@@ -4616,7 +4662,7 @@ export class Api extends HttpClient {
4616
4662
  * @secure
4617
4663
  * @response `201` `UserGroup` Created
4618
4664
  */
4619
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4665
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4620
4666
  /**
4621
4667
  * No description
4622
4668
  *
@@ -4629,7 +4675,7 @@ export class Api extends HttpClient {
4629
4675
  * @response `404` `Error` Not Found
4630
4676
  * @response `422` `UnprocessableEntity` Unprocessable Content
4631
4677
  */
4632
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4678
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4633
4679
  /**
4634
4680
  * No description
4635
4681
  *
@@ -4642,7 +4688,7 @@ export class Api extends HttpClient {
4642
4688
  * @response `404` `Error` Not Found
4643
4689
  * @response `422` `UnprocessableEntity` Unprocessable Content
4644
4690
  */
4645
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4691
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4646
4692
  /**
4647
4693
  * No description
4648
4694
  *
@@ -4692,7 +4738,7 @@ export class Api extends HttpClient {
4692
4738
  * @response `404` `Error` Not Found
4693
4739
  * @response `422` `UnprocessableEntity` Unprocessable Content
4694
4740
  */
4695
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4741
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4696
4742
  /**
4697
4743
  * No description
4698
4744
  *
@@ -4716,7 +4762,7 @@ export class Api extends HttpClient {
4716
4762
  * @response `204` `void` No Content
4717
4763
  * @response `422` `UnprocessableEntity` Unprocessable Content
4718
4764
  */
4719
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4765
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4720
4766
  /**
4721
4767
  * No description
4722
4768
  *
@@ -4763,7 +4809,7 @@ export class Api extends HttpClient {
4763
4809
  * @secure
4764
4810
  * @response `204` `void` No Content
4765
4811
  */
4766
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4812
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4767
4813
  /**
4768
4814
  * No description
4769
4815
  *
@@ -4808,7 +4854,7 @@ export class Api extends HttpClient {
4808
4854
  * @response `200` `DetailedUser` OK
4809
4855
  * @response `422` `UnprocessableEntity` Unprocessable Content
4810
4856
  */
4811
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4857
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4812
4858
  /**
4813
4859
  * No description
4814
4860
  *
@@ -4819,7 +4865,7 @@ export class Api extends HttpClient {
4819
4865
  * @secure
4820
4866
  * @response `200` `UserPaginated` OK
4821
4867
  */
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)),
4868
+ 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
4869
  /**
4824
4870
  * No description
4825
4871
  *
@@ -4830,7 +4876,7 @@ export class Api extends HttpClient {
4830
4876
  * @secure
4831
4877
  * @response `200` `AdminAccessUser` OK
4832
4878
  */
4833
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4879
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4834
4880
  /**
4835
4881
  * No description
4836
4882
  *
@@ -4842,7 +4888,7 @@ export class Api extends HttpClient {
4842
4888
  * @response `200` `User` OK
4843
4889
  * @response `422` `UnprocessableEntity` Unprocessable Content
4844
4890
  */
4845
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4891
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4846
4892
  /**
4847
4893
  * No description
4848
4894
  *
@@ -4854,7 +4900,7 @@ export class Api extends HttpClient {
4854
4900
  * @response `200` `DetailedUser` OK
4855
4901
  * @response `422` `UnprocessableEntity` Unprocessable Content
4856
4902
  */
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)),
4903
+ 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
4904
  /**
4859
4905
  * No description
4860
4906
  *
@@ -4888,7 +4934,7 @@ export class Api extends HttpClient {
4888
4934
  * @response `204` `void` No Content
4889
4935
  * @response `422` `UnprocessableEntity` Unprocessable Content
4890
4936
  */
4891
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4937
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4892
4938
  /**
4893
4939
  * No description
4894
4940
  *
@@ -4900,7 +4946,7 @@ export class Api extends HttpClient {
4900
4946
  * @response `204` `void` No Content
4901
4947
  * @response `422` `UnprocessableEntity` Unprocessable Content
4902
4948
  */
4903
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4949
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4904
4950
  /**
4905
4951
  * No description
4906
4952
  *
@@ -4912,7 +4958,7 @@ export class Api extends HttpClient {
4912
4958
  * @response `204` `void` No Content
4913
4959
  * @response `422` `UnprocessableEntity` Unprocessable Content
4914
4960
  */
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)),
4961
+ 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
4962
  /**
4917
4963
  * No description
4918
4964
  *
@@ -4924,7 +4970,7 @@ export class Api extends HttpClient {
4924
4970
  * @response `204` `void` No Content
4925
4971
  * @response `422` `UnprocessableEntity` Unprocessable Content
4926
4972
  */
4927
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4973
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4928
4974
  /**
4929
4975
  * No description
4930
4976
  *
@@ -4948,7 +4994,7 @@ export class Api extends HttpClient {
4948
4994
  * @response `204` `void` No Content
4949
4995
  * @response `422` `UnprocessableEntity` Unprocessable Content
4950
4996
  */
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)),
4997
+ 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
4998
  /**
4953
4999
  * No description
4954
5000
  *
@@ -4971,7 +5017,7 @@ export class Api extends HttpClient {
4971
5017
  * @secure
4972
5018
  * @response `200` `DetailedUser` OK
4973
5019
  */
4974
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
5020
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4975
5021
  /**
4976
5022
  * @description Update the phone number If changed will send a verification code to the new number
4977
5023
  *
@@ -4982,7 +5028,7 @@ export class Api extends HttpClient {
4982
5028
  * @secure
4983
5029
  * @response `204` `DetailedUser` No Content
4984
5030
  */
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)),
5031
+ 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
5032
  /**
4987
5033
  * No description
4988
5034
  *
@@ -5026,7 +5072,7 @@ export class Api extends HttpClient {
5026
5072
  * @secure
5027
5073
  * @response `204` `void` No Content
5028
5074
  */
5029
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
5075
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
5030
5076
  /**
5031
5077
  * No description
5032
5078
  *
@@ -5037,7 +5083,7 @@ export class Api extends HttpClient {
5037
5083
  * @secure
5038
5084
  * @response `200` `GetForm` OK
5039
5085
  */
5040
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
5086
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5041
5087
  };
5042
5088
  this.sso = {
5043
5089
  /**