@matech/thebigpos-sdk 2.43.0-aibi-1 → 2.43.1-rc.0

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,15 +30,6 @@ 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 = {}));
42
33
  export class HttpClient {
43
34
  constructor(_a = {}) {
44
35
  var { securityWorker, secure, format } = _a, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
@@ -54,13 +45,13 @@ export class HttpClient {
54
45
  {};
55
46
  const requestParams = this.mergeRequestParams(params, secureParams);
56
47
  const responseFormat = format || this.format || undefined;
57
- if (type === ContentType.FormData &&
48
+ if (type === "multipart/form-data" &&
58
49
  body &&
59
50
  body !== null &&
60
51
  typeof body === "object") {
61
52
  body = this.createFormData(body);
62
53
  }
63
- if (type === ContentType.Text &&
54
+ if (type === "text/plain" &&
64
55
  body &&
65
56
  body !== null &&
66
57
  typeof body !== "string") {
@@ -156,7 +147,7 @@ export class Api extends HttpClient {
156
147
  * @response `404` `ProblemDetails` Not Found
157
148
  * @response `422` `ProblemDetails` Unprocessable Content
158
149
  */
159
- replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
150
+ replaceMyAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/account`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
160
151
  /**
161
152
  * No description
162
153
  *
@@ -179,7 +170,7 @@ export class Api extends HttpClient {
179
170
  * @response `200` `SiteConfiguration` OK
180
171
  * @response `422` `UnprocessableEntity` Unprocessable Content
181
172
  */
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)),
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)),
183
174
  /**
184
175
  * No description
185
176
  *
@@ -190,7 +181,7 @@ export class Api extends HttpClient {
190
181
  * @secure
191
182
  * @response `204` `void` No Content
192
183
  */
193
- requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
184
+ requestAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
194
185
  /**
195
186
  * No description
196
187
  *
@@ -202,7 +193,7 @@ export class Api extends HttpClient {
202
193
  * @response `204` `void` No Content
203
194
  * @response `400` `ProblemDetails` Bad Request
204
195
  */
205
- completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
196
+ completeAccountReactivation: (data, params = {}) => this.request(Object.assign({ path: `/api/account/reactivation/complete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
206
197
  /**
207
198
  * No description
208
199
  *
@@ -225,7 +216,7 @@ export class Api extends HttpClient {
225
216
  * @response `201` `Account` Created
226
217
  * @response `422` `ProblemDetails` Unprocessable Content
227
218
  */
228
- createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
219
+ createAccount: (data, params = {}) => this.request(Object.assign({ path: `/api/accounts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
229
220
  /**
230
221
  * No description
231
222
  *
@@ -263,428 +254,7 @@ export class Api extends HttpClient {
263
254
  * @response `404` `ProblemDetails` Not Found
264
255
  * @response `422` `ProblemDetails` Unprocessable Content
265
256
  */
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)),
267
- /**
268
- * No description
269
- *
270
- * @tags AiAdmin
271
- * @name GetAiAuditLogs
272
- * @summary Get paginated audit logs
273
- * @request GET:/api/ai/admin/audit-logs
274
- * @secure
275
- * @response `200` `AiAuditLogPaginated` OK
276
- */
277
- getAiAuditLogs: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/audit-logs`, method: "GET", query: query, secure: true, format: "json" }, params)),
278
- /**
279
- * No description
280
- *
281
- * @tags AiAdmin
282
- * @name GetAiAdminStats
283
- * @summary Get AI admin dashboard stats
284
- * @request GET:/api/ai/admin/stats
285
- * @secure
286
- * @response `200` `AiAdminStats` OK
287
- */
288
- getAiAdminStats: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/stats`, method: "GET", query: query, secure: true, format: "json" }, params)),
289
- /**
290
- * No description
291
- *
292
- * @tags AiAdminPrompt
293
- * @name GetAiPrompts
294
- * @summary Get all prompts
295
- * @request GET:/api/ai/admin/prompts
296
- * @secure
297
- * @response `200` `(AiPrompt)[]` OK
298
- */
299
- getAiPrompts: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "GET", secure: true, format: "json" }, params)),
300
- /**
301
- * No description
302
- *
303
- * @tags AiAdminPrompt
304
- * @name CreateAiPrompt
305
- * @summary Create custom prompt
306
- * @request POST:/api/ai/admin/prompts
307
- * @secure
308
- * @response `201` `AiPrompt` Created
309
- * @response `400` `ProblemDetails` Bad Request
310
- */
311
- createAiPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
312
- /**
313
- * No description
314
- *
315
- * @tags AiAdminPrompt
316
- * @name GetAiPrompt
317
- * @summary Get prompt by ID
318
- * @request GET:/api/ai/admin/prompts/{id}
319
- * @secure
320
- * @response `200` `AiPrompt` OK
321
- * @response `404` `ProblemDetails` Not Found
322
- */
323
- getAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "GET", secure: true, format: "json" }, params)),
324
- /**
325
- * No description
326
- *
327
- * @tags AiAdminPrompt
328
- * @name UpdateAiPrompt
329
- * @summary Update prompt
330
- * @request PUT:/api/ai/admin/prompts/{id}
331
- * @secure
332
- * @response `200` `AiPrompt` OK
333
- * @response `400` `ProblemDetails` Bad Request
334
- * @response `404` `ProblemDetails` Not Found
335
- */
336
- updateAiPrompt: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
337
- /**
338
- * No description
339
- *
340
- * @tags AiAdminPrompt
341
- * @name DeleteAiPrompt
342
- * @summary Delete prompt
343
- * @request DELETE:/api/ai/admin/prompts/{id}
344
- * @secure
345
- * @response `204` `void` No Content
346
- * @response `400` `ProblemDetails` Bad Request
347
- * @response `404` `ProblemDetails` Not Found
348
- */
349
- deleteAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}`, method: "DELETE", secure: true }, params)),
350
- /**
351
- * No description
352
- *
353
- * @tags AiAdminPrompt
354
- * @name ToggleAiPrompt
355
- * @summary Toggle prompt active/inactive
356
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
357
- * @secure
358
- * @response `200` `AiPrompt` OK
359
- * @response `404` `ProblemDetails` Not Found
360
- */
361
- toggleAiPrompt: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
362
- /**
363
- * No description
364
- *
365
- * @tags AiAdminPrompt
366
- * @name GenerateAiSystemPrompt
367
- * @summary Generate a system prompt from description
368
- * @request POST:/api/ai/admin/prompts/generate
369
- * @secure
370
- * @response `200` `GenerateSystemPrompt` OK
371
- * @response `400` `ProblemDetails` Bad Request
372
- */
373
- generateAiSystemPrompt: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/generate`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
374
- /**
375
- * No description
376
- *
377
- * @tags AiAdminPrompt
378
- * @name GetSupportedModels
379
- * @summary Get supported LLM models
380
- * @request GET:/api/ai/admin/prompts/supported-models
381
- * @secure
382
- * @response `200` `(SupportedModel)[]` OK
383
- */
384
- getSupportedModels: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/prompts/supported-models`, method: "GET", secure: true, format: "json" }, params)),
385
- /**
386
- * No description
387
- *
388
- * @tags AiAdminSettings
389
- * @name GetAiAdminSettings
390
- * @summary Get global AI settings
391
- * @request GET:/api/ai/admin/settings
392
- * @secure
393
- * @response `200` `AiAdminSettings` OK
394
- */
395
- getAiAdminSettings: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "GET", secure: true, format: "json" }, params)),
396
- /**
397
- * No description
398
- *
399
- * @tags AiAdminSettings
400
- * @name UpdateAiAdminSettings
401
- * @summary Update global AI settings
402
- * @request PUT:/api/ai/admin/settings
403
- * @secure
404
- * @response `200` `AiAdminSettings` OK
405
- * @response `400` `ProblemDetails` Bad Request
406
- */
407
- updateAiAdminSettings: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/settings`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
408
- /**
409
- * No description
410
- *
411
- * @tags AiCanonicalField
412
- * @name GetAiCanonicalFields
413
- * @summary Get all canonical fields
414
- * @request GET:/api/ai/admin/fields
415
- * @secure
416
- * @response `200` `(AiCanonicalField)[]` OK
417
- */
418
- getAiCanonicalFields: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "GET", secure: true, format: "json" }, params)),
419
- /**
420
- * No description
421
- *
422
- * @tags AiCanonicalField
423
- * @name CreateAiCanonicalField
424
- * @summary Create canonical field
425
- * @request POST:/api/ai/admin/fields
426
- * @secure
427
- * @response `201` `AiCanonicalField` Created
428
- * @response `400` `ProblemDetails` Bad Request
429
- */
430
- createAiCanonicalField: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
431
- /**
432
- * No description
433
- *
434
- * @tags AiCanonicalField
435
- * @name GetAiCanonicalField
436
- * @summary Get canonical field by ID
437
- * @request GET:/api/ai/admin/fields/{id}
438
- * @secure
439
- * @response `200` `AiCanonicalField` OK
440
- * @response `404` `ProblemDetails` Not Found
441
- */
442
- getAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "GET", secure: true, format: "json" }, params)),
443
- /**
444
- * No description
445
- *
446
- * @tags AiCanonicalField
447
- * @name UpdateAiCanonicalField
448
- * @summary Update canonical field
449
- * @request PUT:/api/ai/admin/fields/{id}
450
- * @secure
451
- * @response `200` `AiCanonicalField` OK
452
- * @response `400` `ProblemDetails` Bad Request
453
- * @response `404` `ProblemDetails` Not Found
454
- */
455
- updateAiCanonicalField: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
456
- /**
457
- * No description
458
- *
459
- * @tags AiCanonicalField
460
- * @name DeleteAiCanonicalField
461
- * @summary Delete canonical field
462
- * @request DELETE:/api/ai/admin/fields/{id}
463
- * @secure
464
- * @response `204` `void` No Content
465
- * @response `404` `ProblemDetails` Not Found
466
- */
467
- deleteAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}`, method: "DELETE", secure: true }, params)),
468
- /**
469
- * No description
470
- *
471
- * @tags AiCanonicalField
472
- * @name ToggleAiCanonicalField
473
- * @summary Toggle canonical field active/inactive
474
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
475
- * @secure
476
- * @response `200` `AiCanonicalField` OK
477
- * @response `404` `ProblemDetails` Not Found
478
- */
479
- toggleAiCanonicalField: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/fields/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
480
- /**
481
- * No description
482
- *
483
- * @tags AiChat
484
- * @name AiChat
485
- * @summary Send AI chat message
486
- * @request POST:/api/ai/chat
487
- * @secure
488
- * @response `200` `AiChat` OK
489
- * @response `400` `ProblemDetails` Bad Request
490
- * @response `401` `ProblemDetails` Unauthorized
491
- */
492
- aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chat`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
493
- /**
494
- * No description
495
- *
496
- * @tags AiConversation
497
- * @name GetAiConversations
498
- * @summary Get user conversations
499
- * @request GET:/api/ai/conversations
500
- * @secure
501
- * @response `200` `AiConversationListItemPaginated` OK
502
- */
503
- getAiConversations: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations`, method: "GET", query: query, secure: true, format: "json" }, params)),
504
- /**
505
- * No description
506
- *
507
- * @tags AiConversation
508
- * @name GetAiConversation
509
- * @summary Get conversation with messages
510
- * @request GET:/api/ai/conversations/{id}
511
- * @secure
512
- * @response `200` `AiConversationDetail` OK
513
- * @response `403` `ProblemDetails` Forbidden
514
- * @response `404` `ProblemDetails` Not Found
515
- */
516
- getAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "GET", secure: true, format: "json" }, params)),
517
- /**
518
- * No description
519
- *
520
- * @tags AiConversation
521
- * @name DeleteAiConversation
522
- * @summary Delete conversation
523
- * @request DELETE:/api/ai/conversations/{id}
524
- * @secure
525
- * @response `204` `void` No Content
526
- * @response `403` `ProblemDetails` Forbidden
527
- * @response `404` `ProblemDetails` Not Found
528
- */
529
- deleteAiConversation: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/conversations/${id}`, method: "DELETE", secure: true }, params)),
530
- /**
531
- * No description
532
- *
533
- * @tags AiGuardrail
534
- * @name GetAiGuardrails
535
- * @summary Get all guardrails
536
- * @request GET:/api/ai/admin/guardrails
537
- * @secure
538
- * @response `200` `(AiGuardrail)[]` OK
539
- */
540
- getAiGuardrails: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "GET", secure: true, format: "json" }, params)),
541
- /**
542
- * No description
543
- *
544
- * @tags AiGuardrail
545
- * @name CreateAiGuardrail
546
- * @summary Create custom guardrail
547
- * @request POST:/api/ai/admin/guardrails
548
- * @secure
549
- * @response `201` `AiGuardrail` Created
550
- * @response `400` `ProblemDetails` Bad Request
551
- */
552
- createAiGuardrail: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
553
- /**
554
- * No description
555
- *
556
- * @tags AiGuardrail
557
- * @name GetAiGuardrail
558
- * @summary Get guardrail by ID
559
- * @request GET:/api/ai/admin/guardrails/{id}
560
- * @secure
561
- * @response `200` `AiGuardrail` OK
562
- * @response `404` `ProblemDetails` Not Found
563
- */
564
- getAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "GET", secure: true, format: "json" }, params)),
565
- /**
566
- * No description
567
- *
568
- * @tags AiGuardrail
569
- * @name UpdateAiGuardrail
570
- * @summary Update guardrail
571
- * @request PUT:/api/ai/admin/guardrails/{id}
572
- * @secure
573
- * @response `200` `AiGuardrail` OK
574
- * @response `400` `ProblemDetails` Bad Request
575
- * @response `404` `ProblemDetails` Not Found
576
- */
577
- updateAiGuardrail: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
578
- /**
579
- * No description
580
- *
581
- * @tags AiGuardrail
582
- * @name DeleteAiGuardrail
583
- * @summary Delete guardrail
584
- * @request DELETE:/api/ai/admin/guardrails/{id}
585
- * @secure
586
- * @response `204` `void` No Content
587
- * @response `400` `ProblemDetails` Bad Request
588
- * @response `404` `ProblemDetails` Not Found
589
- */
590
- deleteAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}`, method: "DELETE", secure: true }, params)),
591
- /**
592
- * No description
593
- *
594
- * @tags AiGuardrail
595
- * @name ToggleAiGuardrail
596
- * @summary Toggle guardrail enabled/disabled
597
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
598
- * @secure
599
- * @response `200` `AiGuardrail` OK
600
- * @response `404` `ProblemDetails` Not Found
601
- */
602
- toggleAiGuardrail: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/guardrails/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
603
- /**
604
- * No description
605
- *
606
- * @tags AiPrompt
607
- * @name GetAvailablePrompts
608
- * @summary Get available prompts for current user
609
- * @request GET:/api/ai/prompts
610
- * @secure
611
- * @response `200` `(AiPromptSummary)[]` OK
612
- */
613
- getAvailablePrompts: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompts`, method: "GET", query: query, secure: true, format: "json" }, params)),
614
- /**
615
- * No description
616
- *
617
- * @tags AiUrlSource
618
- * @name GetAiUrlSources
619
- * @summary Get all URL sources
620
- * @request GET:/api/ai/admin/url-sources
621
- * @secure
622
- * @response `200` `(AiUrlSource)[]` OK
623
- */
624
- getAiUrlSources: (params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "GET", secure: true, format: "json" }, params)),
625
- /**
626
- * No description
627
- *
628
- * @tags AiUrlSource
629
- * @name CreateAiUrlSource
630
- * @summary Create URL source
631
- * @request POST:/api/ai/admin/url-sources
632
- * @secure
633
- * @response `201` `AiUrlSource` Created
634
- * @response `400` `ProblemDetails` Bad Request
635
- * @response `409` `ProblemDetails` Conflict
636
- */
637
- createAiUrlSource: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
638
- /**
639
- * No description
640
- *
641
- * @tags AiUrlSource
642
- * @name GetAiUrlSource
643
- * @summary Get URL source by ID
644
- * @request GET:/api/ai/admin/url-sources/{id}
645
- * @secure
646
- * @response `200` `AiUrlSource` OK
647
- * @response `404` `ProblemDetails` Not Found
648
- */
649
- getAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "GET", secure: true, format: "json" }, params)),
650
- /**
651
- * No description
652
- *
653
- * @tags AiUrlSource
654
- * @name UpdateAiUrlSource
655
- * @summary Update URL source
656
- * @request PUT:/api/ai/admin/url-sources/{id}
657
- * @secure
658
- * @response `200` `AiUrlSource` OK
659
- * @response `400` `ProblemDetails` Bad Request
660
- * @response `404` `ProblemDetails` Not Found
661
- * @response `409` `ProblemDetails` Conflict
662
- */
663
- updateAiUrlSource: (id, data, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
664
- /**
665
- * No description
666
- *
667
- * @tags AiUrlSource
668
- * @name DeleteAiUrlSource
669
- * @summary Delete URL source
670
- * @request DELETE:/api/ai/admin/url-sources/{id}
671
- * @secure
672
- * @response `204` `void` No Content
673
- * @response `404` `ProblemDetails` Not Found
674
- */
675
- deleteAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}`, method: "DELETE", secure: true }, params)),
676
- /**
677
- * No description
678
- *
679
- * @tags AiUrlSource
680
- * @name ToggleAiUrlSource
681
- * @summary Toggle URL source active/inactive
682
- * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
683
- * @secure
684
- * @response `200` `AiUrlSource` OK
685
- * @response `404` `ProblemDetails` Not Found
686
- */
687
- toggleAiUrlSource: (id, params = {}) => this.request(Object.assign({ path: `/api/ai/admin/url-sources/${id}/toggle`, method: "PATCH", secure: true, format: "json" }, params)),
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)),
688
258
  /**
689
259
  * No description
690
260
  *
@@ -695,7 +265,7 @@ export class Api extends HttpClient {
695
265
  * @secure
696
266
  * @response `200` `AuditLogEntryPaginated` OK
697
267
  */
698
- 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)),
268
+ searchAuditLogs: (data, query, params = {}) => this.request(Object.assign({ path: `/api/audit-logs/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
699
269
  /**
700
270
  * No description
701
271
  *
@@ -731,7 +301,7 @@ export class Api extends HttpClient {
731
301
  * @response `401` `ProblemDetails` Unauthorized
732
302
  * @response `422` `UnprocessableEntity` Unprocessable Content
733
303
  */
734
- getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
304
+ getTokenFromRefreshToken: (data, params = {}) => this.request(Object.assign({ path: `/api/refresh-token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
735
305
  /**
736
306
  * No description
737
307
  *
@@ -743,7 +313,7 @@ export class Api extends HttpClient {
743
313
  * @response `200` `AccountDeactivated` OK
744
314
  * @response `422` `UnprocessableEntity` Unprocessable Content
745
315
  */
746
- getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
316
+ getToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
747
317
  /**
748
318
  * No description
749
319
  *
@@ -755,7 +325,7 @@ export class Api extends HttpClient {
755
325
  * @response `200` `AccountDeactivated` OK
756
326
  * @response `422` `UnprocessableEntity` Unprocessable Content
757
327
  */
758
- getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
328
+ getTokenFromChallengeCode: (data, params = {}) => this.request(Object.assign({ path: `/api/token/code`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
759
329
  /**
760
330
  * No description
761
331
  *
@@ -767,7 +337,7 @@ export class Api extends HttpClient {
767
337
  * @response `200` `Token` OK
768
338
  * @response `422` `UnprocessableEntity` Unprocessable Content
769
339
  */
770
- getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
340
+ getSystemToken: (data, params = {}) => this.request(Object.assign({ path: `/api/oauth2/token`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
771
341
  /**
772
342
  * No description
773
343
  *
@@ -779,7 +349,7 @@ export class Api extends HttpClient {
779
349
  * @response `200` `SSOToken` OK
780
350
  * @response `422` `UnprocessableEntity` Unprocessable Content
781
351
  */
782
- getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
352
+ getSsoToken: (data, params = {}) => this.request(Object.assign({ path: `/api/token/sso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
783
353
  /**
784
354
  * No description
785
355
  *
@@ -814,7 +384,7 @@ export class Api extends HttpClient {
814
384
  * @response `200` `GetBranch` OK
815
385
  * @response `422` `UnprocessableEntity` Unprocessable Content
816
386
  */
817
- createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
387
+ createBranch: (data, params = {}) => this.request(Object.assign({ path: `/api/branches`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
818
388
  /**
819
389
  * No description
820
390
  *
@@ -825,7 +395,7 @@ export class Api extends HttpClient {
825
395
  * @secure
826
396
  * @response `200` `GetBranchPaginated` OK
827
397
  */
828
- 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)),
398
+ searchBranches: (data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
829
399
  /**
830
400
  * No description
831
401
  *
@@ -848,7 +418,7 @@ export class Api extends HttpClient {
848
418
  * @response `200` `GetBranch` OK
849
419
  * @response `422` `UnprocessableEntity` Unprocessable Content
850
420
  */
851
- replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
421
+ replaceBranch: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
852
422
  /**
853
423
  * No description
854
424
  *
@@ -883,7 +453,7 @@ export class Api extends HttpClient {
883
453
  * @response `200` `SiteConfiguration` OK
884
454
  * @response `422` `UnprocessableEntity` Unprocessable Content
885
455
  */
886
- 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)),
456
+ createBranchSiteConfiguration: (branchId, data, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
887
457
  /**
888
458
  * No description
889
459
  *
@@ -906,7 +476,7 @@ export class Api extends HttpClient {
906
476
  * @response `200` `SiteConfiguration` OK
907
477
  * @response `422` `UnprocessableEntity` Unprocessable Content
908
478
  */
909
- 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)),
479
+ replaceBranchSiteConfiguration: (branchId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/branches/${branchId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
910
480
  /**
911
481
  * No description
912
482
  *
@@ -940,7 +510,7 @@ export class Api extends HttpClient {
940
510
  * @response `200` `BusinessRule` OK
941
511
  * @response `422` `UnprocessableEntity` Unprocessable Content
942
512
  */
943
- createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
513
+ createBusinessRule: (data, params = {}) => this.request(Object.assign({ path: `/api/business-rules`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
944
514
  /**
945
515
  * No description
946
516
  *
@@ -963,7 +533,7 @@ export class Api extends HttpClient {
963
533
  * @response `200` `BusinessRule` OK
964
534
  * @response `422` `UnprocessableEntity` Unprocessable Content
965
535
  */
966
- 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)),
536
+ replaceBusinessRule: (id, data, params = {}) => this.request(Object.assign({ path: `/api/business-rules/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
967
537
  /**
968
538
  * No description
969
539
  *
@@ -996,7 +566,7 @@ export class Api extends HttpClient {
996
566
  * @secure
997
567
  * @response `200` `ClosedLoansReport` OK
998
568
  */
999
- 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)),
569
+ getClosedLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/reports/closed-loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1000
570
  /**
1001
571
  * No description
1002
572
  *
@@ -1041,7 +611,7 @@ export class Api extends HttpClient {
1041
611
  * @response `200` `Corporate` OK
1042
612
  * @response `422` `UnprocessableEntity` Unprocessable Content
1043
613
  */
1044
- createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
614
+ createCorporate: (data, params = {}) => this.request(Object.assign({ path: `/api/corporates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1045
615
  /**
1046
616
  * No description
1047
617
  *
@@ -1052,7 +622,7 @@ export class Api extends HttpClient {
1052
622
  * @secure
1053
623
  * @response `200` `CorporatePaginated` OK
1054
624
  */
1055
- 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)),
625
+ searchCorporate: (data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1056
626
  /**
1057
627
  * No description
1058
628
  *
@@ -1075,7 +645,7 @@ export class Api extends HttpClient {
1075
645
  * @response `200` `Corporate` OK
1076
646
  * @response `422` `UnprocessableEntity` Unprocessable Content
1077
647
  */
1078
- replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
648
+ replaceCorporate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1079
649
  /**
1080
650
  * No description
1081
651
  *
@@ -1109,7 +679,7 @@ export class Api extends HttpClient {
1109
679
  * @response `200` `SiteConfiguration` OK
1110
680
  * @response `422` `UnprocessableEntity` Unprocessable Content
1111
681
  */
1112
- 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)),
682
+ createCorporateSiteConfiguration: (corporateId, data, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1113
683
  /**
1114
684
  * No description
1115
685
  *
@@ -1132,7 +702,7 @@ export class Api extends HttpClient {
1132
702
  * @response `200` `SiteConfiguration` OK
1133
703
  * @response `422` `UnprocessableEntity` Unprocessable Content
1134
704
  */
1135
- 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)),
705
+ replaceCorporateSiteConfiguration: (corporateId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/corporates/${corporateId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1136
706
  /**
1137
707
  * No description
1138
708
  *
@@ -1178,7 +748,7 @@ export class Api extends HttpClient {
1178
748
  * @response `409` `ProblemDetails` Conflict
1179
749
  * @response `422` `ProblemDetails` Unprocessable Content
1180
750
  */
1181
- createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
751
+ createCustomFieldDefinition: (data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1182
752
  /**
1183
753
  * No description
1184
754
  *
@@ -1205,7 +775,7 @@ export class Api extends HttpClient {
1205
775
  * @response `409` `ProblemDetails` Conflict
1206
776
  * @response `422` `ProblemDetails` Unprocessable Content
1207
777
  */
1208
- 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)),
778
+ updateCustomFieldDefinition: (id, data, params = {}) => this.request(Object.assign({ path: `/api/custom-field-definitions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1209
779
  /**
1210
780
  * No description
1211
781
  *
@@ -1275,7 +845,7 @@ export class Api extends HttpClient {
1275
845
  * @secure
1276
846
  * @response `200` `Device` OK
1277
847
  */
1278
- updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
848
+ updateDevice: (id, data, params = {}) => this.request(Object.assign({ path: `/api/devices/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1279
849
  /**
1280
850
  * No description
1281
851
  *
@@ -1332,7 +902,7 @@ export class Api extends HttpClient {
1332
902
  * @response `404` `ProblemDetails` Not Found
1333
903
  * @response `422` `UnprocessableEntity` Unprocessable Content
1334
904
  */
1335
- createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
905
+ createDocumentTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/document-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1336
906
  /**
1337
907
  * No description
1338
908
  *
@@ -1369,7 +939,7 @@ export class Api extends HttpClient {
1369
939
  * @response `404` `ProblemDetails` Not Found
1370
940
  * @response `422` `UnprocessableEntity` Unprocessable Content
1371
941
  */
1372
- 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)),
942
+ replaceDocumentTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1373
943
  /**
1374
944
  * No description
1375
945
  *
@@ -1417,7 +987,7 @@ export class Api extends HttpClient {
1417
987
  * @secure
1418
988
  * @response `200` `DocumentTemplateVersion` OK
1419
989
  */
1420
- 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)),
990
+ createDocumentTemplateVersion: (documentId, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1421
991
  /**
1422
992
  * No description
1423
993
  *
@@ -1439,7 +1009,7 @@ export class Api extends HttpClient {
1439
1009
  * @secure
1440
1010
  * @response `200` `DocumentTemplateVersion` OK
1441
1011
  */
1442
- 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)),
1012
+ replaceDocumentTemplateVersion: (documentId, id, data, params = {}) => this.request(Object.assign({ path: `/api/document-templates/${documentId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1443
1013
  /**
1444
1014
  * No description
1445
1015
  *
@@ -1477,7 +1047,7 @@ export class Api extends HttpClient {
1477
1047
  * @response `409` `void` Conflict
1478
1048
  * @response `422` `ProblemDetails` Unprocessable Content
1479
1049
  */
1480
- 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)),
1050
+ addEncompassCustomFieldMapping: (definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/custom-field-mappings/${definitionId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1481
1051
  /**
1482
1052
  * No description
1483
1053
  *
@@ -1566,7 +1136,7 @@ export class Api extends HttpClient {
1566
1136
  * @response `404` `EncompassError` Not Found
1567
1137
  * @response `500` `EncompassError` Internal Server Error
1568
1138
  */
1569
- 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)),
1139
+ createEncompassSession: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/eclose/sessions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1570
1140
  /**
1571
1141
  * No description
1572
1142
  *
@@ -1589,7 +1159,7 @@ export class Api extends HttpClient {
1589
1159
  * @response `201` `File` Created
1590
1160
  * @response `422` `UnprocessableEntity` Unprocessable Content
1591
1161
  */
1592
- uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: ContentType.FormData, format: "json" }, params)),
1162
+ uploadFile: (data, params = {}) => this.request(Object.assign({ path: `/api/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1593
1163
  /**
1594
1164
  * No description
1595
1165
  *
@@ -1612,7 +1182,7 @@ export class Api extends HttpClient {
1612
1182
  * @response `200` `string` OK
1613
1183
  * @response `422` `UnprocessableEntity` Unprocessable Content
1614
1184
  */
1615
- replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1185
+ replaceFile: (id, data, params = {}) => this.request(Object.assign({ path: `/api/files/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1616
1186
  /**
1617
1187
  * No description
1618
1188
  *
@@ -1634,7 +1204,7 @@ export class Api extends HttpClient {
1634
1204
  * @secure
1635
1205
  * @response `200` `FilePaginated` OK
1636
1206
  */
1637
- 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)),
1207
+ searchFiles: (data, query, params = {}) => this.request(Object.assign({ path: `/api/files/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1638
1208
  /**
1639
1209
  * No description
1640
1210
  *
@@ -1657,7 +1227,7 @@ export class Api extends HttpClient {
1657
1227
  * @response `201` `Form` Created
1658
1228
  * @response `422` `UnprocessableEntity` Unprocessable Content
1659
1229
  */
1660
- createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1230
+ createForm: (data, params = {}) => this.request(Object.assign({ path: `/api/forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1661
1231
  /**
1662
1232
  * No description
1663
1233
  *
@@ -1680,7 +1250,7 @@ export class Api extends HttpClient {
1680
1250
  * @response `200` `Form` OK
1681
1251
  * @response `422` `UnprocessableEntity` Unprocessable Content
1682
1252
  */
1683
- replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1253
+ replaceForm: (id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1684
1254
  /**
1685
1255
  * No description
1686
1256
  *
@@ -1713,7 +1283,7 @@ export class Api extends HttpClient {
1713
1283
  * @secure
1714
1284
  * @response `200` `FormSubmissionFile` OK
1715
1285
  */
1716
- 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)),
1286
+ addFormSubmissionFile: (formSubmissionId, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${formSubmissionId}/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
1717
1287
  /**
1718
1288
  * No description
1719
1289
  *
@@ -1757,7 +1327,7 @@ export class Api extends HttpClient {
1757
1327
  * @secure
1758
1328
  * @response `201` `FormSubmission` Created
1759
1329
  */
1760
- 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)),
1330
+ createFormSubmission: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1761
1331
  /**
1762
1332
  * No description
1763
1333
  *
@@ -1779,7 +1349,7 @@ export class Api extends HttpClient {
1779
1349
  * @secure
1780
1350
  * @response `200` `FormSubmission` OK
1781
1351
  */
1782
- 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)),
1352
+ replaceFormSubmission: (id, data, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1783
1353
  /**
1784
1354
  * No description
1785
1355
  *
@@ -1801,7 +1371,7 @@ export class Api extends HttpClient {
1801
1371
  * @secure
1802
1372
  * @response `200` `FormSubmissionPaginated` OK
1803
1373
  */
1804
- 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)),
1374
+ searchFormSubmissions: (data, query, params = {}) => this.request(Object.assign({ path: `/api/form-submissions/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1805
1375
  /**
1806
1376
  * No description
1807
1377
  *
@@ -1823,7 +1393,7 @@ export class Api extends HttpClient {
1823
1393
  * @secure
1824
1394
  * @response `200` `FormVersion` OK
1825
1395
  */
1826
- 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)),
1396
+ createFormVersion: (formId, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1827
1397
  /**
1828
1398
  * No description
1829
1399
  *
@@ -1845,7 +1415,7 @@ export class Api extends HttpClient {
1845
1415
  * @secure
1846
1416
  * @response `200` `FormVersion` OK
1847
1417
  */
1848
- 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)),
1418
+ replaceFormVersion: (formId, id, data, params = {}) => this.request(Object.assign({ path: `/api/forms/${formId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
1849
1419
  /**
1850
1420
  * No description
1851
1421
  *
@@ -1891,7 +1461,7 @@ export class Api extends HttpClient {
1891
1461
  * @response `200` `string` OK
1892
1462
  * @response `422` `UnprocessableEntity` Unprocessable Content
1893
1463
  */
1894
- 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)),
1464
+ updateLoanConsentAndCustomFieldsObsolete: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
1895
1465
  /**
1896
1466
  * No description
1897
1467
  *
@@ -1902,7 +1472,7 @@ export class Api extends HttpClient {
1902
1472
  * @secure
1903
1473
  * @response `200` `GetReport` OK
1904
1474
  */
1905
- getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1475
+ getLoansReport: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/reports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
1906
1476
  /**
1907
1477
  * No description
1908
1478
  *
@@ -1916,7 +1486,7 @@ export class Api extends HttpClient {
1916
1486
  * @response `422` `UnprocessableEntity` Unprocessable Content
1917
1487
  * @response `423` `UnprocessableEntity` Locked
1918
1488
  */
1919
- 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)),
1489
+ createLoan: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1920
1490
  /**
1921
1491
  * No description
1922
1492
  *
@@ -1929,7 +1499,7 @@ export class Api extends HttpClient {
1929
1499
  * @response `422` `UnprocessableEntity` Unprocessable Content
1930
1500
  * @response `423` `UnprocessableEntity` Locked
1931
1501
  */
1932
- 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)),
1502
+ createLoanInternal: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/internal`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
1933
1503
  /**
1934
1504
  * No description
1935
1505
  *
@@ -1941,7 +1511,7 @@ export class Api extends HttpClient {
1941
1511
  * @response `200` `string` OK
1942
1512
  * @response `422` `UnprocessableEntity` Unprocessable Content
1943
1513
  */
1944
- 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)),
1514
+ updateLoanCustomFields: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/custom-fields`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
1945
1515
  /**
1946
1516
  * No description
1947
1517
  *
@@ -1954,7 +1524,7 @@ export class Api extends HttpClient {
1954
1524
  * @response `202` `string` Accepted
1955
1525
  * @response `422` `UnprocessableEntity` Unprocessable Content
1956
1526
  */
1957
- 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)),
1527
+ updateLoanConsent: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/application/${loanId}/consent`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
1958
1528
  /**
1959
1529
  * No description
1960
1530
  *
@@ -2032,7 +1602,7 @@ export class Api extends HttpClient {
2032
1602
  * @secure
2033
1603
  * @response `200` `DocumentDataRequest` OK
2034
1604
  */
2035
- createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1605
+ createLegacyLoanDocument: (data, params = {}) => this.request(Object.assign({ path: `/api/los/loan/generatedocument`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2036
1606
  /**
2037
1607
  * No description
2038
1608
  *
@@ -2057,7 +1627,7 @@ export class Api extends HttpClient {
2057
1627
  * @secure
2058
1628
  * @response `200` `ListingFile` OK
2059
1629
  */
2060
- 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)),
1630
+ addListingFile: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2061
1631
  /**
2062
1632
  * No description
2063
1633
  *
@@ -2068,7 +1638,7 @@ export class Api extends HttpClient {
2068
1638
  * @secure
2069
1639
  * @response `200` `ListingFile` OK
2070
1640
  */
2071
- 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)),
1641
+ updateListingFiles: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/files`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2072
1642
  /**
2073
1643
  * No description
2074
1644
  *
@@ -2090,7 +1660,7 @@ export class Api extends HttpClient {
2090
1660
  * @secure
2091
1661
  * @response `200` `ListingPhoto` OK
2092
1662
  */
2093
- 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)),
1663
+ addListingPhoto: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2094
1664
  /**
2095
1665
  * No description
2096
1666
  *
@@ -2101,7 +1671,7 @@ export class Api extends HttpClient {
2101
1671
  * @secure
2102
1672
  * @response `200` `(ListingPhoto)[]` OK
2103
1673
  */
2104
- 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)),
1674
+ updateListingPhotos: (listingId, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${listingId}/photos`, method: "PATCH", body: data, secure: true, type: "application/json", format: "json" }, params)),
2105
1675
  /**
2106
1676
  * No description
2107
1677
  *
@@ -2134,7 +1704,7 @@ export class Api extends HttpClient {
2134
1704
  * @secure
2135
1705
  * @response `201` `Listing` Created
2136
1706
  */
2137
- createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1707
+ createListing: (data, params = {}) => this.request(Object.assign({ path: `/api/listings`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2138
1708
  /**
2139
1709
  * No description
2140
1710
  *
@@ -2167,7 +1737,7 @@ export class Api extends HttpClient {
2167
1737
  * @secure
2168
1738
  * @response `200` `Listing` OK
2169
1739
  */
2170
- replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1740
+ replaceListing: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2171
1741
  /**
2172
1742
  * No description
2173
1743
  *
@@ -2189,7 +1759,7 @@ export class Api extends HttpClient {
2189
1759
  * @secure
2190
1760
  * @response `200` `ListingPaginated` OK
2191
1761
  */
2192
- 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)),
1762
+ searchListings: (data, query, params = {}) => this.request(Object.assign({ path: `/api/listings/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2193
1763
  /**
2194
1764
  * No description
2195
1765
  *
@@ -2200,7 +1770,7 @@ export class Api extends HttpClient {
2200
1770
  * @secure
2201
1771
  * @response `200` `File` OK
2202
1772
  */
2203
- 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)),
1773
+ updateListingBackgroundImage: (id, data, params = {}) => this.request(Object.assign({ path: `/api/listings/${id}/background-image`, method: "PUT", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2204
1774
  /**
2205
1775
  * No description
2206
1776
  *
@@ -2246,7 +1816,7 @@ export class Api extends HttpClient {
2246
1816
  * @response `422` `UnprocessableEntity` Unprocessable Content
2247
1817
  * @response `423` `UnprocessableEntity` Locked
2248
1818
  */
2249
- 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)),
1819
+ runLoanCalculator: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/calculators/loan-calculator`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2250
1820
  /**
2251
1821
  * No description
2252
1822
  *
@@ -2270,7 +1840,7 @@ export class Api extends HttpClient {
2270
1840
  * @response `422` `UnprocessableEntity` Unprocessable Content
2271
1841
  * @response `423` `UnprocessableEntity` Locked
2272
1842
  */
2273
- 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)),
1843
+ createLoanComparison: (loanId, index, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/${index}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2274
1844
  /**
2275
1845
  * No description
2276
1846
  *
@@ -2293,7 +1863,7 @@ export class Api extends HttpClient {
2293
1863
  * @response `204` `void` No Content
2294
1864
  * @response `422` `UnprocessableEntity` Unprocessable Content
2295
1865
  */
2296
- 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)),
1866
+ createLoanComparisonPdf: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/loan-comparison/pdf`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2297
1867
  /**
2298
1868
  * No description
2299
1869
  *
@@ -2330,7 +1900,7 @@ export class Api extends HttpClient {
2330
1900
  * @response `400` `ProblemDetails` Bad Request
2331
1901
  * @response `422` `ProblemDetails` Unprocessable Content
2332
1902
  */
2333
- bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
1903
+ bulkSetLoanCustomFieldValues: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2334
1904
  /**
2335
1905
  * No description
2336
1906
  *
@@ -2344,7 +1914,7 @@ export class Api extends HttpClient {
2344
1914
  * @response `404` `ProblemDetails` Not Found
2345
1915
  * @response `422` `ProblemDetails` Unprocessable Content
2346
1916
  */
2347
- 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)),
1917
+ setLoanCustomFieldValue: (loanId, definitionId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/custom-fields/${definitionId}`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
2348
1918
  /**
2349
1919
  * No description
2350
1920
  *
@@ -2378,7 +1948,7 @@ export class Api extends HttpClient {
2378
1948
  * @secure
2379
1949
  * @response `201` `(string)[]` Created
2380
1950
  */
2381
- 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)),
1951
+ createLoanDocumentBuckets: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/buckets`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2382
1952
  /**
2383
1953
  * No description
2384
1954
  *
@@ -2402,7 +1972,7 @@ export class Api extends HttpClient {
2402
1972
  * @response `409` `ProblemDetails` Conflict
2403
1973
  * @response `422` `ProblemDetails` Unprocessable Content
2404
1974
  */
2405
- createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
1975
+ createLoanDocumentFolder: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2406
1976
  /**
2407
1977
  * No description
2408
1978
  *
@@ -2429,7 +1999,7 @@ export class Api extends HttpClient {
2429
1999
  * @response `409` `ProblemDetails` Conflict
2430
2000
  * @response `422` `ProblemDetails` Unprocessable Content
2431
2001
  */
2432
- 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)),
2002
+ updateLoanDocumentFolder: (id, data, params = {}) => this.request(Object.assign({ path: `/api/loan-document-folders/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2433
2003
  /**
2434
2004
  * No description
2435
2005
  *
@@ -2504,7 +2074,7 @@ export class Api extends HttpClient {
2504
2074
  * @response `200` `Record<string,string>` OK
2505
2075
  * @response `400` `ProblemDetails` Bad Request
2506
2076
  */
2507
- 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)),
2077
+ getLoanDocumentPreviews: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/previews`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2508
2078
  /**
2509
2079
  * No description
2510
2080
  *
@@ -2515,7 +2085,7 @@ export class Api extends HttpClient {
2515
2085
  * @secure
2516
2086
  * @response `200` `LoanDocumentSearchPaginated` OK
2517
2087
  */
2518
- 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)),
2088
+ searchLoanDocuments: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2519
2089
  /**
2520
2090
  * @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).
2521
2091
  *
@@ -2526,7 +2096,7 @@ export class Api extends HttpClient {
2526
2096
  * @secure
2527
2097
  * @response `200` `(DocumentFolder)[]` OK
2528
2098
  */
2529
- 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)),
2099
+ getLoanDocumentFolders: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/folders`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2530
2100
  /**
2531
2101
  * No description
2532
2102
  *
@@ -2535,7 +2105,7 @@ export class Api extends HttpClient {
2535
2105
  * @summary Download By ID
2536
2106
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
2537
2107
  * @secure
2538
- * @response `200` `string` OK
2108
+ * @response `200` `Blob` OK
2539
2109
  * @response `404` `ProblemDetails` Not Found
2540
2110
  */
2541
2111
  downloadLoanDocument: (loanId, documentId, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/${documentId}/download`, method: "GET", secure: true, format: "json" }, params)),
@@ -2551,7 +2121,7 @@ export class Api extends HttpClient {
2551
2121
  * @response `404` `ProblemDetails` Not Found
2552
2122
  * @response `422` `UnprocessableEntity` Unprocessable Content
2553
2123
  */
2554
- 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)),
2124
+ createLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
2555
2125
  /**
2556
2126
  * No description
2557
2127
  *
@@ -2575,7 +2145,7 @@ export class Api extends HttpClient {
2575
2145
  * @secure
2576
2146
  * @response `200` `DocumentDataRequest` OK
2577
2147
  */
2578
- 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)),
2148
+ generateLoanDocument: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/generate`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2579
2149
  /**
2580
2150
  * No description
2581
2151
  *
@@ -2588,7 +2158,7 @@ export class Api extends HttpClient {
2588
2158
  * @response `400` `ProblemDetails` Bad Request
2589
2159
  * @response `404` `ProblemDetails` Not Found
2590
2160
  */
2591
- sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2161
+ sendLoanDocuments: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/documents/distribute`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
2592
2162
  /**
2593
2163
  * @description Fetches all documents from Encompass that don't exist locally and stores them in S3
2594
2164
  *
@@ -2624,7 +2194,7 @@ export class Api extends HttpClient {
2624
2194
  * @secure
2625
2195
  * @response `201` `Draft` Created
2626
2196
  */
2627
- createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2197
+ createLoanDraft: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2628
2198
  /**
2629
2199
  * No description
2630
2200
  *
@@ -2657,7 +2227,7 @@ export class Api extends HttpClient {
2657
2227
  * @secure
2658
2228
  * @response `200` `Draft` OK
2659
2229
  */
2660
- 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)),
2230
+ replaceLoanDraft: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2661
2231
  /**
2662
2232
  * No description
2663
2233
  *
@@ -2679,7 +2249,7 @@ export class Api extends HttpClient {
2679
2249
  * @secure
2680
2250
  * @response `201` `DraftContentPaginated` Created
2681
2251
  */
2682
- 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)),
2252
+ searchLoanDrafts: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2683
2253
  /**
2684
2254
  * No description
2685
2255
  *
@@ -2690,7 +2260,7 @@ export class Api extends HttpClient {
2690
2260
  * @secure
2691
2261
  * @response `200` `Draft` OK
2692
2262
  */
2693
- 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)),
2263
+ reassignLoanOfficer: (draftId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/reassign`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2694
2264
  /**
2695
2265
  * No description
2696
2266
  *
@@ -2723,7 +2293,7 @@ export class Api extends HttpClient {
2723
2293
  * @secure
2724
2294
  * @response `201` `LoanImport` Created
2725
2295
  */
2726
- createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2296
+ createLoanImport: (data, params = {}) => this.request(Object.assign({ path: `/api/loan-imports`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2727
2297
  /**
2728
2298
  * No description
2729
2299
  *
@@ -2769,7 +2339,7 @@ export class Api extends HttpClient {
2769
2339
  * @response `200` `(Invite)[]` OK
2770
2340
  * @response `404` `ProblemDetails` Not Found
2771
2341
  */
2772
- 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)),
2342
+ inviteLoanContacts: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/invites`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2773
2343
  /**
2774
2344
  * No description
2775
2345
  *
@@ -2780,7 +2350,7 @@ export class Api extends HttpClient {
2780
2350
  * @secure
2781
2351
  * @response `200` `LoanLogPaginated` OK
2782
2352
  */
2783
- 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)),
2353
+ searchLoanLogs: (loanId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/logs/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2784
2354
  /**
2785
2355
  * No description
2786
2356
  *
@@ -2814,7 +2384,7 @@ export class Api extends HttpClient {
2814
2384
  * @secure
2815
2385
  * @response `200` `BranchUserPaginated` OK
2816
2386
  */
2817
- 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)),
2387
+ searchLoanOfficers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2818
2388
  /**
2819
2389
  * No description
2820
2390
  *
@@ -2837,7 +2407,7 @@ export class Api extends HttpClient {
2837
2407
  * @response `200` `SiteConfiguration` OK
2838
2408
  * @response `422` `UnprocessableEntity` Unprocessable Content
2839
2409
  */
2840
- 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)),
2410
+ createLoanOfficerSiteConfiguration: (loanOfficerId, data, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2841
2411
  /**
2842
2412
  * No description
2843
2413
  *
@@ -2860,7 +2430,7 @@ export class Api extends HttpClient {
2860
2430
  * @response `200` `SiteConfiguration` OK
2861
2431
  * @response `422` `UnprocessableEntity` Unprocessable Content
2862
2432
  */
2863
- 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)),
2433
+ replaceLoanOfficerSiteConfiguration: (loanOfficerId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loan-officers/${loanOfficerId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2864
2434
  /**
2865
2435
  * No description
2866
2436
  *
@@ -2871,7 +2441,7 @@ export class Api extends HttpClient {
2871
2441
  * @secure
2872
2442
  * @response `200` `LoanQueuePaginated` OK
2873
2443
  */
2874
- 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)),
2444
+ searchLoanQueue: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2875
2445
  /**
2876
2446
  * No description
2877
2447
  *
@@ -2895,7 +2465,7 @@ export class Api extends HttpClient {
2895
2465
  * @response `200` `LoanQueueWithData` OK
2896
2466
  * @response `404` `ProblemDetails` Not Found
2897
2467
  */
2898
- 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)),
2468
+ replaceLoanQueue: (loanQueueId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/queue/${loanQueueId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
2899
2469
  /**
2900
2470
  * No description
2901
2471
  *
@@ -2956,7 +2526,7 @@ export class Api extends HttpClient {
2956
2526
  * @response `401` `ProblemDetails` Unauthorized
2957
2527
  * @response `403` `ProblemDetails` Forbidden
2958
2528
  */
2959
- createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2529
+ createLoanv3: (data, params = {}) => this.request(Object.assign({ path: `/api/loans`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
2960
2530
  /**
2961
2531
  * No description
2962
2532
  *
@@ -2967,7 +2537,7 @@ export class Api extends HttpClient {
2967
2537
  * @secure
2968
2538
  * @response `200` `LoanListPaginated` OK
2969
2539
  */
2970
- 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)),
2540
+ searchLoans: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
2971
2541
  /**
2972
2542
  * No description
2973
2543
  *
@@ -3045,7 +2615,7 @@ export class Api extends HttpClient {
3045
2615
  * @response `400` `ProblemDetails` Bad Request
3046
2616
  * @response `404` `ProblemDetails` Not Found
3047
2617
  */
3048
- triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: ContentType.JsonPatch, format: "json" }, params)),
2618
+ triggerAso: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/aso`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3049
2619
  /**
3050
2620
  * No description
3051
2621
  *
@@ -3057,7 +2627,7 @@ export class Api extends HttpClient {
3057
2627
  * @response `200` `TaskCommentPaginated` OK
3058
2628
  * @response `404` `ProblemDetails` Not Found
3059
2629
  */
3060
- 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)),
2630
+ searchLoanTaskComments: (loanId, userLoanTaskId, data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3061
2631
  /**
3062
2632
  * No description
3063
2633
  *
@@ -3081,7 +2651,7 @@ export class Api extends HttpClient {
3081
2651
  * @response `201` `TaskComment` Created
3082
2652
  * @response `404` `ProblemDetails` Not Found
3083
2653
  */
3084
- 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)),
2654
+ createLoanTaskComment: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3085
2655
  /**
3086
2656
  * No description
3087
2657
  *
@@ -3093,7 +2663,7 @@ export class Api extends HttpClient {
3093
2663
  * @response `200` `TaskComment` OK
3094
2664
  * @response `404` `ProblemDetails` Not Found
3095
2665
  */
3096
- 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)),
2666
+ replaceLoanTaskComment: (loanId, userLoanTaskId, commentId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}/comments/${commentId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3097
2667
  /**
3098
2668
  * No description
3099
2669
  *
@@ -3118,7 +2688,7 @@ export class Api extends HttpClient {
3118
2688
  * @response `404` `ProblemDetails` Not Found
3119
2689
  * @response `422` `UnprocessableEntity` Unprocessable Content
3120
2690
  */
3121
- 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)),
2691
+ createLoanTaskDocument: (loanId, loanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${loanTaskId}/documents`, method: "POST", body: data, secure: true, type: "multipart/form-data", format: "json" }, params)),
3122
2692
  /**
3123
2693
  * No description
3124
2694
  *
@@ -3155,7 +2725,7 @@ export class Api extends HttpClient {
3155
2725
  * @response `400` `ProblemDetails` Bad Request
3156
2726
  * @response `404` `ProblemDetails` Not Found
3157
2727
  */
3158
- sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
2728
+ sendLoanTaskReminder: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/reminders`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3159
2729
  /**
3160
2730
  * @description Search tasks across all loans
3161
2731
  *
@@ -3166,7 +2736,7 @@ export class Api extends HttpClient {
3166
2736
  * @secure
3167
2737
  * @response `200` `UserLoanTaskPaginated` OK
3168
2738
  */
3169
- 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)),
2739
+ searchLoanTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3170
2740
  /**
3171
2741
  * @description Returns task counts grouped by status for loans accessible to the current user based on their role
3172
2742
  *
@@ -3178,7 +2748,7 @@ export class Api extends HttpClient {
3178
2748
  * @response `200` `(LoanTaskStatusSummary)[]` OK
3179
2749
  * @response `422` `UnprocessableEntity` Unprocessable Content
3180
2750
  */
3181
- 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)),
2751
+ searchLoanTasksSummary: (data, params = {}) => this.request(Object.assign({ path: `/api/loans/tasks/search/summary`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3182
2752
  /**
3183
2753
  * No description
3184
2754
  *
@@ -3226,7 +2796,7 @@ export class Api extends HttpClient {
3226
2796
  * @response `201` `UserLoanTask` Created
3227
2797
  * @response `404` `ProblemDetails` Not Found
3228
2798
  */
3229
- 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)),
2799
+ createLoanTask: (loanId, taskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${taskId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3230
2800
  /**
3231
2801
  * No description
3232
2802
  *
@@ -3238,7 +2808,7 @@ export class Api extends HttpClient {
3238
2808
  * @response `201` `(UserLoanTask)[]` Created
3239
2809
  * @response `404` `ProblemDetails` Not Found
3240
2810
  */
3241
- 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)),
2811
+ importLoanTask: (loanId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/import`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3242
2812
  /**
3243
2813
  * No description
3244
2814
  *
@@ -3250,7 +2820,7 @@ export class Api extends HttpClient {
3250
2820
  * @response `200` `UserLoanTask` OK
3251
2821
  * @response `404` `ProblemDetails` Not Found
3252
2822
  */
3253
- 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)),
2823
+ replaceLoanTask: (loanId, userLoanTaskId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/tasks/${userLoanTaskId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3254
2824
  /**
3255
2825
  * No description
3256
2826
  *
@@ -3309,7 +2879,7 @@ export class Api extends HttpClient {
3309
2879
  * @secure
3310
2880
  * @response `201` `LoanUser` Created
3311
2881
  */
3312
- 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)),
2882
+ addLoanUser: (loanId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/${loanId}/users/${userId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3313
2883
  /**
3314
2884
  * No description
3315
2885
  *
@@ -3342,7 +2912,7 @@ export class Api extends HttpClient {
3342
2912
  * @secure
3343
2913
  * @response `200` `LosOperationTrackingPaginated` OK
3344
2914
  */
3345
- 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)),
2915
+ searchLosOperationTracking: (data, query, params = {}) => this.request(Object.assign({ path: `/api/los-operation-tracking/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3346
2916
  /**
3347
2917
  * No description
3348
2918
  *
@@ -3365,7 +2935,7 @@ export class Api extends HttpClient {
3365
2935
  * @response `201` `MilestoneConfiguration` Created
3366
2936
  * @response `422` `UnprocessableEntity` Unprocessable Content
3367
2937
  */
3368
- createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2938
+ createMilestone: (data, params = {}) => this.request(Object.assign({ path: `/api/milestones`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3369
2939
  /**
3370
2940
  * No description
3371
2941
  *
@@ -3390,7 +2960,7 @@ export class Api extends HttpClient {
3390
2960
  * @response `404` `Error` Not Found
3391
2961
  * @response `422` `UnprocessableEntity` Unprocessable Content
3392
2962
  */
3393
- replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
2963
+ replaceMilestone: (id, data, params = {}) => this.request(Object.assign({ path: `/api/milestones/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3394
2964
  /**
3395
2965
  * No description
3396
2966
  *
@@ -3416,7 +2986,7 @@ export class Api extends HttpClient {
3416
2986
  * @response `404` `ProblemDetails` Not Found
3417
2987
  * @response `422` `ProblemDetails` Unprocessable Content
3418
2988
  */
3419
- 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)),
2989
+ seedMobileAppReview: (data, params = {}) => this.request(Object.assign({ path: `/api/mobile-app-review/seed`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3420
2990
  /**
3421
2991
  * No description
3422
2992
  *
@@ -3428,7 +2998,7 @@ export class Api extends HttpClient {
3428
2998
  * @response `200` `MonthlyPaymentCalculator` OK
3429
2999
  * @response `422` `ProblemDetails` Unprocessable Content
3430
3000
  */
3431
- 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)),
3001
+ calculateMortgageMonthlyPayment: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/monthly-payment`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3432
3002
  /**
3433
3003
  * No description
3434
3004
  *
@@ -3440,7 +3010,7 @@ export class Api extends HttpClient {
3440
3010
  * @response `200` `AffordabilityCalculator` OK
3441
3011
  * @response `422` `ProblemDetails` Unprocessable Content
3442
3012
  */
3443
- calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3013
+ calculateMortgageAffordability: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/affordability`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3444
3014
  /**
3445
3015
  * No description
3446
3016
  *
@@ -3452,7 +3022,7 @@ export class Api extends HttpClient {
3452
3022
  * @response `200` `LoanComparisonCalculator` OK
3453
3023
  * @response `422` `ProblemDetails` Unprocessable Content
3454
3024
  */
3455
- 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)),
3025
+ calculateMortgageLoanComparison: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/loan-comparison`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3456
3026
  /**
3457
3027
  * No description
3458
3028
  *
@@ -3464,7 +3034,7 @@ export class Api extends HttpClient {
3464
3034
  * @response `200` `RefinanceCalculator` OK
3465
3035
  * @response `422` `ProblemDetails` Unprocessable Content
3466
3036
  */
3467
- calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3037
+ calculateMortgageRefinance: (data, params = {}) => this.request(Object.assign({ path: `/api/mortgage-calculators/refinance`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3468
3038
  /**
3469
3039
  * No description
3470
3040
  *
@@ -3476,7 +3046,7 @@ export class Api extends HttpClient {
3476
3046
  * @response `200` `void` OK
3477
3047
  * @response `422` `UnprocessableEntity` Unprocessable Content
3478
3048
  */
3479
- sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3049
+ sendNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3480
3050
  /**
3481
3051
  * No description
3482
3052
  *
@@ -3488,7 +3058,7 @@ export class Api extends HttpClient {
3488
3058
  * @response `200` `void` OK
3489
3059
  * @response `422` `UnprocessableEntity` Unprocessable Content
3490
3060
  */
3491
- sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3061
+ sendTestNotificationForLoan: (data, params = {}) => this.request(Object.assign({ path: `/api/notifications/test`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3492
3062
  /**
3493
3063
  * No description
3494
3064
  *
@@ -3511,7 +3081,7 @@ export class Api extends HttpClient {
3511
3081
  * @response `201` `NotificationTemplate` Created
3512
3082
  * @response `422` `UnprocessableEntity` Unprocessable Content
3513
3083
  */
3514
- createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3084
+ createNotificationTemplate: (data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3515
3085
  /**
3516
3086
  * No description
3517
3087
  *
@@ -3522,7 +3092,7 @@ export class Api extends HttpClient {
3522
3092
  * @secure
3523
3093
  * @response `200` `NotificationTemplateBasePaginated` OK
3524
3094
  */
3525
- 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)),
3095
+ searchNotificationTemplates: (data, query, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3526
3096
  /**
3527
3097
  * No description
3528
3098
  *
@@ -3545,7 +3115,7 @@ export class Api extends HttpClient {
3545
3115
  * @response `200` `NotificationTemplate` OK
3546
3116
  * @response `422` `UnprocessableEntity` Unprocessable Content
3547
3117
  */
3548
- 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)),
3118
+ replaceNotificationTemplate: (id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3549
3119
  /**
3550
3120
  * No description
3551
3121
  *
@@ -3589,7 +3159,7 @@ export class Api extends HttpClient {
3589
3159
  * @secure
3590
3160
  * @response `200` `NotificationTemplateVersion` OK
3591
3161
  */
3592
- 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)),
3162
+ createNotificationTemplateVersion: (notificationId, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3593
3163
  /**
3594
3164
  * No description
3595
3165
  *
@@ -3611,7 +3181,7 @@ export class Api extends HttpClient {
3611
3181
  * @secure
3612
3182
  * @response `200` `NotificationTemplateVersion` OK
3613
3183
  */
3614
- 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)),
3184
+ replaceNotificationTemplateVersion: (notificationId, id, data, params = {}) => this.request(Object.assign({ path: `/api/notification-templates/${notificationId}/versions/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3615
3185
  /**
3616
3186
  * No description
3617
3187
  *
@@ -3644,7 +3214,7 @@ export class Api extends HttpClient {
3644
3214
  * @secure
3645
3215
  * @response `200` `BranchUserPaginated` OK
3646
3216
  */
3647
- 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)),
3217
+ searchPartners: (data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3648
3218
  /**
3649
3219
  * No description
3650
3220
  *
@@ -3667,7 +3237,7 @@ export class Api extends HttpClient {
3667
3237
  * @response `200` `SiteConfiguration` OK
3668
3238
  * @response `422` `UnprocessableEntity` Unprocessable Content
3669
3239
  */
3670
- 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)),
3240
+ createPartnerSiteConfiguration: (realtorId, data, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3671
3241
  /**
3672
3242
  * No description
3673
3243
  *
@@ -3690,7 +3260,7 @@ export class Api extends HttpClient {
3690
3260
  * @response `200` `SiteConfiguration` OK
3691
3261
  * @response `422` `UnprocessableEntity` Unprocessable Content
3692
3262
  */
3693
- 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)),
3263
+ replacePartnerSiteConfiguration: (realtorId, siteConfigurationId, data, query, params = {}) => this.request(Object.assign({ path: `/api/partners/${realtorId}/site-configurations/${siteConfigurationId}`, method: "PUT", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3694
3264
  /**
3695
3265
  * No description
3696
3266
  *
@@ -3714,7 +3284,7 @@ export class Api extends HttpClient {
3714
3284
  * @response `200` `SiteConfigurationByUrl` OK
3715
3285
  * @response `422` `UnprocessableEntity` Unprocessable Content
3716
3286
  */
3717
- searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3287
+ searchSiteConfigurationByUrl: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/url`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3718
3288
  /**
3719
3289
  * No description
3720
3290
  *
@@ -3739,7 +3309,7 @@ export class Api extends HttpClient {
3739
3309
  * @response `200` `SiteConfiguration` OK
3740
3310
  * @response `422` `UnprocessableEntity` Unprocessable Content
3741
3311
  */
3742
- searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3312
+ searchSiteConfigurationByLoanOfficerUser: (data, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/louser`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3743
3313
  /**
3744
3314
  * No description
3745
3315
  *
@@ -3763,7 +3333,7 @@ export class Api extends HttpClient {
3763
3333
  * @response `200` `SiteConfigurationSummaryPaginated` OK
3764
3334
  * @response `422` `UnprocessableEntity` Unprocessable Content
3765
3335
  */
3766
- 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)),
3336
+ searchSiteConfigurations: (data, query, params = {}) => this.request(Object.assign({ path: `/api/site-configurations/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3767
3337
  /**
3768
3338
  * No description
3769
3339
  *
@@ -3855,7 +3425,7 @@ export class Api extends HttpClient {
3855
3425
  * @secure
3856
3426
  * @response `200` `GetForm` OK
3857
3427
  */
3858
- getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3428
+ getFormBySiteConfigurationSlug: (data, params = {}) => this.request(Object.assign({ path: `/api/site-forms`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3859
3429
  /**
3860
3430
  * No description
3861
3431
  *
@@ -3878,7 +3448,7 @@ export class Api extends HttpClient {
3878
3448
  * @response `200` `(SocialSurveyRecord)[]` OK
3879
3449
  * @response `422` `UnprocessableEntity` Unprocessable Content
3880
3450
  */
3881
- getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3451
+ getSurveysByUser: (data, params = {}) => this.request(Object.assign({ path: `/api/surveys`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3882
3452
  /**
3883
3453
  * No description
3884
3454
  *
@@ -3901,7 +3471,7 @@ export class Api extends HttpClient {
3901
3471
  * @secure
3902
3472
  * @response `201` `Task` Created
3903
3473
  */
3904
- createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3474
+ createTask: (data, params = {}) => this.request(Object.assign({ path: `/api/tasks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3905
3475
  /**
3906
3476
  * No description
3907
3477
  *
@@ -3925,7 +3495,7 @@ export class Api extends HttpClient {
3925
3495
  * @response `200` `Task` OK
3926
3496
  * @response `404` `ProblemDetails` Not Found
3927
3497
  */
3928
- replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3498
+ replaceTask: (id, data, params = {}) => this.request(Object.assign({ path: `/api/tasks/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
3929
3499
  /**
3930
3500
  * No description
3931
3501
  *
@@ -3948,7 +3518,7 @@ export class Api extends HttpClient {
3948
3518
  * @secure
3949
3519
  * @response `200` `TaskPaginated` OK
3950
3520
  */
3951
- 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)),
3521
+ searchTasks: (data, query, params = {}) => this.request(Object.assign({ path: `/api/tasks/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3952
3522
  /**
3953
3523
  * No description
3954
3524
  *
@@ -3958,7 +3528,7 @@ export class Api extends HttpClient {
3958
3528
  * @secure
3959
3529
  * @response `200` `void` OK
3960
3530
  */
3961
- integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3531
+ integrationsLosLoansCreate: (data, params = {}) => this.request(Object.assign({ path: `/api/integrations/los/loans`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
3962
3532
  /**
3963
3533
  * No description
3964
3534
  *
@@ -3969,7 +3539,7 @@ export class Api extends HttpClient {
3969
3539
  * @secure
3970
3540
  * @response `200` `EncompassRequestLogPaginated` OK
3971
3541
  */
3972
- 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)),
3542
+ searchEncompassLogs: (losId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/logs/${losId}/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
3973
3543
  /**
3974
3544
  * No description
3975
3545
  *
@@ -3992,7 +3562,7 @@ export class Api extends HttpClient {
3992
3562
  * @secure
3993
3563
  * @response `201` `LosCredentials` Created
3994
3564
  */
3995
- createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3565
+ createEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
3996
3566
  /**
3997
3567
  * No description
3998
3568
  *
@@ -4003,7 +3573,7 @@ export class Api extends HttpClient {
4003
3573
  * @secure
4004
3574
  * @response `200` `EncompassCredentialsDetail` OK
4005
3575
  */
4006
- updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3576
+ updateEncompassCredentials: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/credentials`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4007
3577
  /**
4008
3578
  * No description
4009
3579
  *
@@ -4025,7 +3595,7 @@ export class Api extends HttpClient {
4025
3595
  * @secure
4026
3596
  * @response `201` `LosWebhook` Created
4027
3597
  */
4028
- createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3598
+ createEncompassWebhook: (data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/webhooks`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4029
3599
  /**
4030
3600
  * No description
4031
3601
  *
@@ -4047,7 +3617,7 @@ export class Api extends HttpClient {
4047
3617
  * @secure
4048
3618
  * @response `200` `LosSyncPaginated` OK
4049
3619
  */
4050
- 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)),
3620
+ searchLosSyncs: (loanId, query, data, params = {}) => this.request(Object.assign({ path: `/api/los/encompass/syncs/${loanId}/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4051
3621
  /**
4052
3622
  * No description
4053
3623
  *
@@ -4130,7 +3700,7 @@ export class Api extends HttpClient {
4130
3700
  * @response `201` `UserDevice` Created
4131
3701
  * @response `400` `ProblemDetails` Bad Request
4132
3702
  */
4133
- createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3703
+ createUserDevice: (data, params = {}) => this.request(Object.assign({ path: `/api/userdevices`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4134
3704
  /**
4135
3705
  * No description
4136
3706
  *
@@ -4175,7 +3745,7 @@ export class Api extends HttpClient {
4175
3745
  * @secure
4176
3746
  * @response `200` `UserDraft` OK
4177
3747
  */
4178
- 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)),
3748
+ addDraftUsers: (draftId, userId, data, params = {}) => this.request(Object.assign({ path: `/api/loans/drafts/${draftId}/users/${userId}`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4179
3749
  /**
4180
3750
  * No description
4181
3751
  *
@@ -4208,7 +3778,7 @@ export class Api extends HttpClient {
4208
3778
  * @secure
4209
3779
  * @response `200` `UserGroupAccessScope` OK
4210
3780
  */
4211
- 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)),
3781
+ createUserGroupAccessScope: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/scopes`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4212
3782
  /**
4213
3783
  * No description
4214
3784
  *
@@ -4241,7 +3811,7 @@ export class Api extends HttpClient {
4241
3811
  * @secure
4242
3812
  * @response `200` `UserGroupMember` OK
4243
3813
  */
4244
- 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)),
3814
+ createUserGroupMember: (groupId, data, query, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}/members`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4245
3815
  /**
4246
3816
  * No description
4247
3817
  *
@@ -4285,7 +3855,7 @@ export class Api extends HttpClient {
4285
3855
  * @secure
4286
3856
  * @response `200` `UserGroup` OK
4287
3857
  */
4288
- 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)),
3858
+ updateUserGroup: (groupId, data, params = {}) => this.request(Object.assign({ path: `/api/user-groups/${groupId}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4289
3859
  /**
4290
3860
  * No description
4291
3861
  *
@@ -4307,7 +3877,7 @@ export class Api extends HttpClient {
4307
3877
  * @secure
4308
3878
  * @response `201` `UserGroup` Created
4309
3879
  */
4310
- createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
3880
+ createUserGroup: (data, params = {}) => this.request(Object.assign({ path: `/api/user-groups`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4311
3881
  /**
4312
3882
  * No description
4313
3883
  *
@@ -4320,7 +3890,7 @@ export class Api extends HttpClient {
4320
3890
  * @response `404` `Error` Not Found
4321
3891
  * @response `422` `UnprocessableEntity` Unprocessable Content
4322
3892
  */
4323
- requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3893
+ requestImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/request`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4324
3894
  /**
4325
3895
  * No description
4326
3896
  *
@@ -4333,7 +3903,7 @@ export class Api extends HttpClient {
4333
3903
  * @response `404` `Error` Not Found
4334
3904
  * @response `422` `UnprocessableEntity` Unprocessable Content
4335
3905
  */
4336
- allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3906
+ allowImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/allow`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4337
3907
  /**
4338
3908
  * No description
4339
3909
  *
@@ -4383,7 +3953,7 @@ export class Api extends HttpClient {
4383
3953
  * @response `404` `Error` Not Found
4384
3954
  * @response `422` `UnprocessableEntity` Unprocessable Content
4385
3955
  */
4386
- forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3956
+ forceImpersonation: (data, params = {}) => this.request(Object.assign({ path: `/api/users/impersonation/force`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4387
3957
  /**
4388
3958
  * No description
4389
3959
  *
@@ -4407,7 +3977,7 @@ export class Api extends HttpClient {
4407
3977
  * @response `204` `void` No Content
4408
3978
  * @response `422` `UnprocessableEntity` Unprocessable Content
4409
3979
  */
4410
- inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
3980
+ inviteUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users/invites`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4411
3981
  /**
4412
3982
  * No description
4413
3983
  *
@@ -4454,7 +4024,7 @@ export class Api extends HttpClient {
4454
4024
  * @secure
4455
4025
  * @response `204` `void` No Content
4456
4026
  */
4457
- createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4027
+ createUserRelation: (userId, data, params = {}) => this.request(Object.assign({ path: `/api/users/${userId}/relations`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4458
4028
  /**
4459
4029
  * No description
4460
4030
  *
@@ -4499,7 +4069,7 @@ export class Api extends HttpClient {
4499
4069
  * @response `200` `DetailedUser` OK
4500
4070
  * @response `422` `UnprocessableEntity` Unprocessable Content
4501
4071
  */
4502
- createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4072
+ createUser: (data, params = {}) => this.request(Object.assign({ path: `/api/users`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4503
4073
  /**
4504
4074
  * No description
4505
4075
  *
@@ -4510,7 +4080,7 @@ export class Api extends HttpClient {
4510
4080
  * @secure
4511
4081
  * @response `200` `UserPaginated` OK
4512
4082
  */
4513
- 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)),
4083
+ searchUsers: (data, query, params = {}) => this.request(Object.assign({ path: `/api/users/search`, method: "POST", query: query, body: data, secure: true, type: "application/json", format: "json" }, params)),
4514
4084
  /**
4515
4085
  * No description
4516
4086
  *
@@ -4521,7 +4091,7 @@ export class Api extends HttpClient {
4521
4091
  * @secure
4522
4092
  * @response `200` `AdminAccessUser` OK
4523
4093
  */
4524
- getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4094
+ getUserByEmail: (data, params = {}) => this.request(Object.assign({ path: `/api/users/byemail`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4525
4095
  /**
4526
4096
  * No description
4527
4097
  *
@@ -4533,7 +4103,7 @@ export class Api extends HttpClient {
4533
4103
  * @response `200` `User` OK
4534
4104
  * @response `422` `UnprocessableEntity` Unprocessable Content
4535
4105
  */
4536
- signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4106
+ signUp: (data, params = {}) => this.request(Object.assign({ path: `/api/users/register`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4537
4107
  /**
4538
4108
  * No description
4539
4109
  *
@@ -4545,7 +4115,7 @@ export class Api extends HttpClient {
4545
4115
  * @response `200` `DetailedUser` OK
4546
4116
  * @response `422` `UnprocessableEntity` Unprocessable Content
4547
4117
  */
4548
- replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4118
+ replaceUser: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4549
4119
  /**
4550
4120
  * No description
4551
4121
  *
@@ -4579,7 +4149,7 @@ export class Api extends HttpClient {
4579
4149
  * @response `204` `void` No Content
4580
4150
  * @response `422` `UnprocessableEntity` Unprocessable Content
4581
4151
  */
4582
- changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4152
+ changePassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/change-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4583
4153
  /**
4584
4154
  * No description
4585
4155
  *
@@ -4591,7 +4161,7 @@ export class Api extends HttpClient {
4591
4161
  * @response `204` `void` No Content
4592
4162
  * @response `422` `UnprocessableEntity` Unprocessable Content
4593
4163
  */
4594
- verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4164
+ verifyPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/verify-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4595
4165
  /**
4596
4166
  * No description
4597
4167
  *
@@ -4603,7 +4173,7 @@ export class Api extends HttpClient {
4603
4173
  * @response `204` `void` No Content
4604
4174
  * @response `422` `UnprocessableEntity` Unprocessable Content
4605
4175
  */
4606
- overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4176
+ overridePassword: (id, data, params = {}) => this.request(Object.assign({ path: `/api/users/${id}/override-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4607
4177
  /**
4608
4178
  * No description
4609
4179
  *
@@ -4615,7 +4185,7 @@ export class Api extends HttpClient {
4615
4185
  * @response `204` `void` No Content
4616
4186
  * @response `422` `UnprocessableEntity` Unprocessable Content
4617
4187
  */
4618
- forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4188
+ forgotPassword: (data, params = {}) => this.request(Object.assign({ path: `/api/users/forgot-password`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4619
4189
  /**
4620
4190
  * No description
4621
4191
  *
@@ -4639,7 +4209,7 @@ export class Api extends HttpClient {
4639
4209
  * @response `204` `void` No Content
4640
4210
  * @response `422` `UnprocessableEntity` Unprocessable Content
4641
4211
  */
4642
- verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: ContentType.Json }, params)),
4212
+ verifyUserMobilePhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/mobile-phone/verify-code`, method: "PUT", body: data, secure: true, type: "application/json" }, params)),
4643
4213
  /**
4644
4214
  * No description
4645
4215
  *
@@ -4662,7 +4232,7 @@ export class Api extends HttpClient {
4662
4232
  * @secure
4663
4233
  * @response `200` `DetailedUser` OK
4664
4234
  */
4665
- replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4235
+ replaceMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4666
4236
  /**
4667
4237
  * @description Update the phone number If changed will send a verification code to the new number
4668
4238
  *
@@ -4673,7 +4243,7 @@ export class Api extends HttpClient {
4673
4243
  * @secure
4674
4244
  * @response `204` `DetailedUser` No Content
4675
4245
  */
4676
- 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)),
4246
+ updateMyPhone: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/phone-number`, method: "PUT", body: data, secure: true, type: "application/json", format: "json" }, params)),
4677
4247
  /**
4678
4248
  * No description
4679
4249
  *
@@ -4717,7 +4287,7 @@ export class Api extends HttpClient {
4717
4287
  * @secure
4718
4288
  * @response `204` `void` No Content
4719
4289
  */
4720
- deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
4290
+ deleteMe: (data, params = {}) => this.request(Object.assign({ path: `/api/users/me/delete`, method: "POST", body: data, secure: true, type: "application/json" }, params)),
4721
4291
  /**
4722
4292
  * No description
4723
4293
  *
@@ -4728,7 +4298,7 @@ export class Api extends HttpClient {
4728
4298
  * @secure
4729
4299
  * @response `200` `GetForm` OK
4730
4300
  */
4731
- getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
4301
+ getWorkflow: (data, params = {}) => this.request(Object.assign({ path: `/api/workflow`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
4732
4302
  };
4733
4303
  this.sso = {
4734
4304
  /**