Skip to content

Commit 31e384b

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 8cff82c + 761e970 commit 31e384b

510 files changed

Lines changed: 21896 additions & 30674 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/Presenton/Generated/Presenton.AuthClient.ChangePasswordApiV1AuthProfileChangePasswordPost.g.cs

Lines changed: 474 additions & 0 deletions
Large diffs are not rendered by default.

src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -335,70 +335,70 @@ partial void ProcessUsersPatchCurrentUserApiV1AuthUsersMePatchResponseContent(
335335
retryReason: global::System.String.Empty,
336336
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
337337
}
338-
// Bad Request
339-
if ((int)__response.StatusCode == 400)
338+
//
339+
if ((int)__response.StatusCode == 401)
340340
{
341-
string? __content_400 = null;
342-
global::System.Exception? __exception_400 = null;
343-
global::Presenton.ErrorModel? __value_400 = null;
341+
string? __content_401 = null;
342+
global::System.Exception? __exception_401 = null;
344343
try
345344
{
346345
if (__effectiveReadResponseAsString)
347346
{
348-
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
349-
__value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
347+
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
350348
}
351349
else
352350
{
353-
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
354-
355-
__value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
351+
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
356352
}
357353
}
358354
catch (global::System.Exception __ex)
359355
{
360-
__exception_400 = __ex;
356+
__exception_401 = __ex;
361357
}
362358

363359

364-
throw global::Presenton.ApiException<global::Presenton.ErrorModel>.Create(
360+
throw global::Presenton.ApiException.Create(
365361
statusCode: __response.StatusCode,
366-
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
367-
innerException: __exception_400,
368-
responseBody: __content_400,
369-
responseObject: __value_400,
362+
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
363+
innerException: __exception_401,
364+
responseBody: __content_401,
370365
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
371366
__response.Headers,
372367
h => h.Key,
373368
h => h.Value));
374369
}
375-
//
376-
if ((int)__response.StatusCode == 401)
370+
// Bad Request
371+
if ((int)__response.StatusCode == 400)
377372
{
378-
string? __content_401 = null;
379-
global::System.Exception? __exception_401 = null;
373+
string? __content_400 = null;
374+
global::System.Exception? __exception_400 = null;
375+
global::Presenton.ErrorModel? __value_400 = null;
380376
try
381377
{
382378
if (__effectiveReadResponseAsString)
383379
{
384-
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
380+
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
381+
__value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
385382
}
386383
else
387384
{
388-
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
385+
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
386+
387+
__value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
389388
}
390389
}
391390
catch (global::System.Exception __ex)
392391
{
393-
__exception_401 = __ex;
392+
__exception_400 = __ex;
394393
}
395394

396395

397-
throw global::Presenton.ApiException.Create(
396+
throw global::Presenton.ApiException<global::Presenton.ErrorModel>.Create(
398397
statusCode: __response.StatusCode,
399-
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
400-
innerException: __exception_401,
401-
responseBody: __content_401,
398+
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
399+
innerException: __exception_400,
400+
responseBody: __content_400,
401+
responseObject: __value_400,
402402
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
403403
__response.Headers,
404404
h => h.Key,

src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -344,43 +344,6 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent(
344344
retryReason: global::System.String.Empty,
345345
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
346346
}
347-
// Bad Request
348-
if ((int)__response.StatusCode == 400)
349-
{
350-
string? __content_400 = null;
351-
global::System.Exception? __exception_400 = null;
352-
global::Presenton.ErrorModel? __value_400 = null;
353-
try
354-
{
355-
if (__effectiveReadResponseAsString)
356-
{
357-
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
358-
__value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
359-
}
360-
else
361-
{
362-
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
363-
364-
__value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
365-
}
366-
}
367-
catch (global::System.Exception __ex)
368-
{
369-
__exception_400 = __ex;
370-
}
371-
372-
373-
throw global::Presenton.ApiException<global::Presenton.ErrorModel>.Create(
374-
statusCode: __response.StatusCode,
375-
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
376-
innerException: __exception_400,
377-
responseBody: __content_400,
378-
responseObject: __value_400,
379-
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
380-
__response.Headers,
381-
h => h.Key,
382-
h => h.Value));
383-
}
384347
//
385348
if ((int)__response.StatusCode == 401)
386349
{
@@ -477,6 +440,43 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent(
477440
h => h.Key,
478441
h => h.Value));
479442
}
443+
// Bad Request
444+
if ((int)__response.StatusCode == 400)
445+
{
446+
string? __content_400 = null;
447+
global::System.Exception? __exception_400 = null;
448+
global::Presenton.ErrorModel? __value_400 = null;
449+
try
450+
{
451+
if (__effectiveReadResponseAsString)
452+
{
453+
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
454+
__value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
455+
}
456+
else
457+
{
458+
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
459+
460+
__value_400 = global::Presenton.ErrorModel.FromJson(__content_400, JsonSerializerContext);
461+
}
462+
}
463+
catch (global::System.Exception __ex)
464+
{
465+
__exception_400 = __ex;
466+
}
467+
468+
469+
throw global::Presenton.ApiException<global::Presenton.ErrorModel>.Create(
470+
statusCode: __response.StatusCode,
471+
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
472+
innerException: __exception_400,
473+
responseBody: __content_400,
474+
responseObject: __value_400,
475+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
476+
__response.Headers,
477+
h => h.Key,
478+
h => h.Value));
479+
}
480480
// Validation Error
481481
if ((int)__response.StatusCode == 422)
482482
{

0 commit comments

Comments
 (0)