Browse Source

refactor(dynamite,dynamite_runtime): Separate injecting base values when executing requests

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/969/head
jld3103 1 year ago
parent
commit
f369b732aa
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/dynamite/dynamite/lib/src/builder/client.dart
  2. 26
      packages/dynamite/dynamite_runtime/lib/src/dynamite_client.dart
  3. 90
      packages/nextcloud/lib/src/api/core.openapi.dart
  4. 6
      packages/nextcloud/lib/src/api/dashboard.openapi.dart
  5. 2
      packages/nextcloud/lib/src/api/dav.openapi.dart
  6. 26
      packages/nextcloud/lib/src/api/files.openapi.dart
  7. 2
      packages/nextcloud/lib/src/api/files_external.openapi.dart
  8. 6
      packages/nextcloud/lib/src/api/files_reminders.openapi.dart
  9. 42
      packages/nextcloud/lib/src/api/files_sharing.openapi.dart
  10. 2
      packages/nextcloud/lib/src/api/files_trashbin.openapi.dart
  11. 2
      packages/nextcloud/lib/src/api/files_versions.openapi.dart
  12. 36
      packages/nextcloud/lib/src/api/news.openapi.dart
  13. 14
      packages/nextcloud/lib/src/api/notes.openapi.dart
  14. 20
      packages/nextcloud/lib/src/api/notifications.openapi.dart
  15. 86
      packages/nextcloud/lib/src/api/provisioning_api.openapi.dart
  16. 2
      packages/nextcloud/lib/src/api/settings.openapi.dart
  17. 22
      packages/nextcloud/lib/src/api/theming.openapi.dart
  18. 2
      packages/nextcloud/lib/src/api/updatenotification.openapi.dart
  19. 22
      packages/nextcloud/lib/src/api/uppush.openapi.dart
  20. 20
      packages/nextcloud/lib/src/api/user_status.openapi.dart
  21. 14
      packages/nextcloud/lib/src/api/weather_status.openapi.dart

2
packages/dynamite/dynamite/lib/src/builder/client.dart

@ -363,7 +363,7 @@ Iterable<Method> buildTags(
code.writeln('''
return DynamiteRawResponse<$returnDataType, $returnHeadersType>(
response: $client.doRequest(
response: $client.executeRequest(
'$httpMethod',
_uri,
_headers,

26
packages/dynamite/dynamite_runtime/lib/src/dynamite_client.dart

@ -405,13 +405,17 @@ class DynamiteClient {
final List<DynamiteAuthentication> authentications;
/// Makes a request against a given [path].
Future<HttpClientResponse> doRequest(
///
/// The query parameters of the [baseURL] are added.
/// The [path] is resolved against the path of the [baseURL].
/// All [baseHeaders] are added to the request.
Future<HttpClientResponse> executeRequest(
final String method,
final Uri path,
final Map<String, String> headers,
final Uint8List? body,
final Set<int>? validStatuses,
) async {
) {
final queryParameters = {
...baseURL.queryParametersAll,
...path.queryParametersAll,
@ -420,9 +424,25 @@ class DynamiteClient {
path: '${baseURL.path}${path.path}',
queryParameters: queryParameters.isNotEmpty ? queryParameters : null,
);
return executeRawRequest(
method,
uri,
{...?baseHeaders, ...headers},
body,
validStatuses,
);
}
/// Executes a HTTP request against give full [uri].
Future<HttpClientResponse> executeRawRequest(
final String method,
final Uri uri,
final Map<String, String> headers,
final Uint8List? body,
final Set<int>? validStatuses,
) async {
final request = await httpClient.openUrl(method, uri);
for (final header in {...?baseHeaders, ...headers}.entries) {
for (final header in headers.entries) {
request.headers.add(header.key, header.value);
}
if (body != null) {

90
packages/nextcloud/lib/src/api/core.openapi.dart

@ -110,7 +110,7 @@ class Client extends DynamiteClient {
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Status, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -200,7 +200,7 @@ class AppPasswordClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppPasswordGetAppPasswordResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -284,7 +284,7 @@ class AppPasswordClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppPasswordRotateAppPasswordResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -368,7 +368,7 @@ class AppPasswordClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppPasswordDeleteAppPasswordResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -502,7 +502,7 @@ class AutoCompleteClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AutoCompleteGetResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -597,7 +597,7 @@ class AvatarClient {
path = path.replaceAll('{size}', Uri.encodeQueryComponent(size.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, AvatarAvatarGetAvatarDarkHeaders>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -685,7 +685,7 @@ class AvatarClient {
path = path.replaceAll('{size}', Uri.encodeQueryComponent(size.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, AvatarAvatarGetAvatarHeaders>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -769,7 +769,7 @@ class ClientFlowLoginV2Client {
queryParameters['token'] = token;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<LoginFlowV2Credentials, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -836,7 +836,7 @@ class ClientFlowLoginV2Client {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<LoginFlowV2, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -932,7 +932,7 @@ class CollaborationResourcesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CollaborationResourcesSearchCollectionsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1024,7 +1024,7 @@ class CollaborationResourcesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CollaborationResourcesListCollectionResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1122,7 +1122,7 @@ class CollaborationResourcesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CollaborationResourcesRenameCollectionResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -1226,7 +1226,7 @@ class CollaborationResourcesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CollaborationResourcesAddResourceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1330,7 +1330,7 @@ class CollaborationResourcesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CollaborationResourcesRemoveResourceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -1428,7 +1428,7 @@ class CollaborationResourcesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CollaborationResourcesGetCollectionsByResourceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1536,7 +1536,7 @@ class CollaborationResourcesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1633,7 +1633,7 @@ class GuestAvatarClient {
path = path.replaceAll('{size}', Uri.encodeQueryComponent(size));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1733,7 +1733,7 @@ class GuestAvatarClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1829,7 +1829,7 @@ class HoverCardClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<HoverCardGetUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1927,7 +1927,7 @@ class NavigationClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<NavigationGetAppsNavigationResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2019,7 +2019,7 @@ class NavigationClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<NavigationGetSettingsNavigationResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2095,7 +2095,7 @@ class OcmClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<OcmDiscoveryResponseApplicationJson, OcmOcmDiscoveryHeaders>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2181,7 +2181,7 @@ class OcsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<OcsGetCapabilitiesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2327,7 +2327,7 @@ class PreviewClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2467,7 +2467,7 @@ class PreviewClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2579,7 +2579,7 @@ class ProfileApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ProfileApiSetVisibilityResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -2663,7 +2663,7 @@ class ReferenceClient {
path = path.replaceAll('{referenceId}', Uri.encodeQueryComponent(referenceId));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2757,7 +2757,7 @@ class ReferenceApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ReferenceApiResolveOneResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2853,7 +2853,7 @@ class ReferenceApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ReferenceApiResolveResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -2957,7 +2957,7 @@ class ReferenceApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ReferenceApiExtractResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -3039,7 +3039,7 @@ class ReferenceApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ReferenceApiGetProvidersInfoResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3135,7 +3135,7 @@ class ReferenceApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ReferenceApiTouchProviderResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -3221,7 +3221,7 @@ class TextProcessingApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TextProcessingApiTaskTypesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3331,7 +3331,7 @@ class TextProcessingApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TextProcessingApiScheduleResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -3421,7 +3421,7 @@ class TextProcessingApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TextProcessingApiGetTaskResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3513,7 +3513,7 @@ class TextProcessingApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TextProcessingApiDeleteTaskResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -3611,7 +3611,7 @@ class TextProcessingApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TextProcessingApiListTasksByAppResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3697,7 +3697,7 @@ class TranslationApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TranslationApiLanguagesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3803,7 +3803,7 @@ class TranslationApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TranslationApiTranslateResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -3899,7 +3899,7 @@ class UnifiedSearchClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UnifiedSearchGetProvidersResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -4032,7 +4032,7 @@ class UnifiedSearchClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UnifiedSearchSearchResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -4118,7 +4118,7 @@ class WhatsNewClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WhatsNewGetResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -4208,7 +4208,7 @@ class WhatsNewClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WhatsNewDismissResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -4292,7 +4292,7 @@ class WipeClient {
queryParameters['token'] = token;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WipeCheckWipeResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -4370,7 +4370,7 @@ class WipeClient {
queryParameters['token'] = token;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<JsonObject, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,

6
packages/nextcloud/lib/src/api/dashboard.openapi.dart

@ -112,7 +112,7 @@ class DashboardApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DashboardApiGetWidgetsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -223,7 +223,7 @@ class DashboardApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DashboardApiGetWidgetItemsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -334,7 +334,7 @@ class DashboardApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DashboardApiGetWidgetItemsV2ResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,

2
packages/nextcloud/lib/src/api/dav.openapi.dart

@ -131,7 +131,7 @@ class DirectClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DirectGetUrlResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,

26
packages/nextcloud/lib/src/api/files.openapi.dart

@ -139,7 +139,7 @@ class ApiClient {
path = path.replaceAll('{file}', Uri.encodeQueryComponent(file));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -225,7 +225,7 @@ class DirectEditingClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DirectEditingInfoResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -321,7 +321,7 @@ class DirectEditingClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DirectEditingTemplatesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -429,7 +429,7 @@ class DirectEditingClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DirectEditingOpenResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -541,7 +541,7 @@ class DirectEditingClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DirectEditingCreateResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -637,7 +637,7 @@ class OpenLocalEditorClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<OpenLocalEditorCreateResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -733,7 +733,7 @@ class OpenLocalEditorClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<OpenLocalEditorValidateResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -817,7 +817,7 @@ class TemplateClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TemplateListResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -923,7 +923,7 @@ class TemplateClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TemplateCreateResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1023,7 +1023,7 @@ class TemplateClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TemplatePathResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1127,7 +1127,7 @@ class TransferOwnershipClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TransferOwnershipTransferResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1219,7 +1219,7 @@ class TransferOwnershipClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TransferOwnershipAcceptResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1311,7 +1311,7 @@ class TransferOwnershipClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<TransferOwnershipRejectResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,

2
packages/nextcloud/lib/src/api/files_external.openapi.dart

@ -113,7 +113,7 @@ class ApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ApiGetUserMountsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,

6
packages/nextcloud/lib/src/api/files_reminders.openapi.dart

@ -128,7 +128,7 @@ class ApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ApiGetResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -237,7 +237,7 @@ class ApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ApiSetResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -336,7 +336,7 @@ class ApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ApiRemoveResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,

42
packages/nextcloud/lib/src/api/files_sharing.openapi.dart

@ -121,7 +121,7 @@ class DeletedShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DeletedShareapiListResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -211,7 +211,7 @@ class DeletedShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DeletedShareapiUndeleteResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -309,7 +309,7 @@ class PublicPreviewClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -433,7 +433,7 @@ class PublicPreviewClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -519,7 +519,7 @@ class RemoteClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<RemoteGetSharesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -601,7 +601,7 @@ class RemoteClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<RemoteGetOpenSharesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -691,7 +691,7 @@ class RemoteClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<RemoteAcceptShareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -781,7 +781,7 @@ class RemoteClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<RemoteDeclineShareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -871,7 +871,7 @@ class RemoteClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<RemoteGetShareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -963,7 +963,7 @@ class RemoteClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<RemoteUnshareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -1077,7 +1077,7 @@ class ShareInfoClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareInfo, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1207,7 +1207,7 @@ class ShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareapiGetSharesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1383,7 +1383,7 @@ class ShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareapiCreateShareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1475,7 +1475,7 @@ class ShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareapiGetInheritedSharesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1557,7 +1557,7 @@ class ShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareapiPendingSharesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1655,7 +1655,7 @@ class ShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareapiGetShareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1821,7 +1821,7 @@ class ShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareapiUpdateShareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -1913,7 +1913,7 @@ class ShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareapiDeleteShareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -2005,7 +2005,7 @@ class ShareapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareapiAcceptShareResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -2146,7 +2146,7 @@ class ShareesapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareesapiSearchResponseApplicationJson, ShareesapiShareesapiSearchHeaders>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2245,7 +2245,7 @@ class ShareesapiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ShareesapiFindRecommendedResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,

2
packages/nextcloud/lib/src/api/files_trashbin.openapi.dart

@ -141,7 +141,7 @@ class PreviewClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,

2
packages/nextcloud/lib/src/api/files_versions.openapi.dart

@ -141,7 +141,7 @@ class PreviewClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,

36
packages/nextcloud/lib/src/api/news.openapi.dart

@ -88,7 +88,7 @@ class Client extends DynamiteClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<SupportedAPIVersions, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -153,7 +153,7 @@ class Client extends DynamiteClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ListFolders, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -227,7 +227,7 @@ class Client extends DynamiteClient {
queryParameters['name'] = name;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ListFolders, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -307,7 +307,7 @@ class Client extends DynamiteClient {
queryParameters['name'] = name;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'put',
uri,
headers,
@ -373,7 +373,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{folderId}', Uri.encodeQueryComponent(folderId.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'delete',
uri,
headers,
@ -453,7 +453,7 @@ class Client extends DynamiteClient {
queryParameters['newestItemId'] = newestItemId.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -518,7 +518,7 @@ class Client extends DynamiteClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ListFeeds, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -604,7 +604,7 @@ class Client extends DynamiteClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ListFeeds, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -670,7 +670,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{feedId}', Uri.encodeQueryComponent(feedId.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'delete',
uri,
headers,
@ -752,7 +752,7 @@ class Client extends DynamiteClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -832,7 +832,7 @@ class Client extends DynamiteClient {
queryParameters['feedTitle'] = feedTitle;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -912,7 +912,7 @@ class Client extends DynamiteClient {
queryParameters['newestItemId'] = newestItemId.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -1032,7 +1032,7 @@ class Client extends DynamiteClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ListArticles, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -1128,7 +1128,7 @@ class Client extends DynamiteClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ListArticles, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -1194,7 +1194,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -1260,7 +1260,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -1326,7 +1326,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -1392,7 +1392,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{itemId}', Uri.encodeQueryComponent(itemId.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<void, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,

14
packages/nextcloud/lib/src/api/notes.openapi.dart

@ -144,7 +144,7 @@ class Client extends DynamiteClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<BuiltList<Note>, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -256,7 +256,7 @@ class Client extends DynamiteClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Note, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -348,7 +348,7 @@ class Client extends DynamiteClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Note, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -472,7 +472,7 @@ class Client extends DynamiteClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Note, void>(
response: doRequest(
response: executeRequest(
'put',
uri,
headers,
@ -540,7 +540,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString()));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<String, void>(
response: doRequest(
response: executeRequest(
'delete',
uri,
headers,
@ -605,7 +605,7 @@ class Client extends DynamiteClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Settings, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -675,7 +675,7 @@ class Client extends DynamiteClient {
as Uint8List;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Settings, void>(
response: doRequest(
response: executeRequest(
'put',
uri,
headers,

20
packages/nextcloud/lib/src/api/notifications.openapi.dart

@ -155,7 +155,7 @@ class ApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ApiGenerateNotificationResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -254,7 +254,7 @@ class EndpointClient {
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<EndpointListNotificationsResponseApplicationJson,
EndpointEndpointListNotificationsHeaders>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -344,7 +344,7 @@ class EndpointClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<EndpointDeleteAllNotificationsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -440,7 +440,7 @@ class EndpointClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<EndpointGetNotificationResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -538,7 +538,7 @@ class EndpointClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<EndpointDeleteNotificationResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -634,7 +634,7 @@ class EndpointClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<EndpointConfirmIdsForUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -752,7 +752,7 @@ class PushClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<PushRegisterDeviceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -846,7 +846,7 @@ class PushClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<PushRemoveDeviceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -958,7 +958,7 @@ class SettingsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<SettingsPersonalResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1068,7 +1068,7 @@ class SettingsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<SettingsAdminResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,

86
packages/nextcloud/lib/src/api/provisioning_api.openapi.dart

@ -124,7 +124,7 @@ class AppConfigClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppConfigGetAppsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -218,7 +218,7 @@ class AppConfigClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppConfigGetKeysResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -326,7 +326,7 @@ class AppConfigClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppConfigGetValueResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -428,7 +428,7 @@ class AppConfigClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppConfigSetValueResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -528,7 +528,7 @@ class AppConfigClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppConfigDeleteKeyResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -628,7 +628,7 @@ class AppsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppsGetAppsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -720,7 +720,7 @@ class AppsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppsGetAppInfoResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -812,7 +812,7 @@ class AppsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppsEnableResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -904,7 +904,7 @@ class AppsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<AppsDisableResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -1016,7 +1016,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsGetGroupsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1116,7 +1116,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsAddGroupResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -1222,7 +1222,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsGetGroupsDetailsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1315,7 +1315,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsGetGroupUsersResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1428,7 +1428,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsGetGroupUsersDetailsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1521,7 +1521,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsGetSubAdminsOfGroupResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1612,7 +1612,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsGetGroupResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -1717,7 +1717,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsUpdateGroupResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -1810,7 +1810,7 @@ class GroupsClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GroupsDeleteGroupResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -1918,7 +1918,7 @@ class PreferencesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<PreferencesSetPreferenceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -2014,7 +2014,7 @@ class PreferencesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<PreferencesDeletePreferenceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -2115,7 +2115,7 @@ class PreferencesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<PreferencesSetMultiplePreferencesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -2211,7 +2211,7 @@ class PreferencesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<PreferencesDeleteMultiplePreferenceResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -2323,7 +2323,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersGetUsersResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2477,7 +2477,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersAddUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -2583,7 +2583,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersGetUsersDetailsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2687,7 +2687,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersSearchByPhoneNumbersResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -2775,7 +2775,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersGetUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -2875,7 +2875,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersEditUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -2963,7 +2963,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersDeleteUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -3045,7 +3045,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersGetCurrentUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3127,7 +3127,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersGetEditableFieldsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3215,7 +3215,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersGetEditableFieldsForUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3326,7 +3326,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersEditUserMultiValueResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -3414,7 +3414,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersWipeUserDevicesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -3502,7 +3502,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersEnableUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -3590,7 +3590,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersDisableUserResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -3678,7 +3678,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersGetUsersGroupsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -3774,7 +3774,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersAddToGroupResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -3868,7 +3868,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersRemoveFromGroupResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -3960,7 +3960,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersGetUserSubAdminGroupsResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -4058,7 +4058,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersAddSubAdminResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -4156,7 +4156,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersRemoveSubAdminResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -4244,7 +4244,7 @@ class UsersClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UsersResendWelcomeMessageResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,

2
packages/nextcloud/lib/src/api/settings.openapi.dart

@ -102,7 +102,7 @@ class LogSettingsClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, LogSettingsLogSettingsDownloadHeaders>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,

22
packages/nextcloud/lib/src/api/theming.openapi.dart

@ -116,7 +116,7 @@ class IconClient {
path = path.replaceAll('{app}', Uri.encodeQueryComponent(app));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -196,7 +196,7 @@ class IconClient {
path = path.replaceAll('{app}', Uri.encodeQueryComponent(app));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -287,7 +287,7 @@ class IconClient {
path = path.replaceAll('{image}', Uri.encodeQueryComponent(image));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -393,7 +393,7 @@ class ThemingClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<String, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -485,7 +485,7 @@ class ThemingClient {
}
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -563,7 +563,7 @@ class ThemingClient {
path = path.replaceAll('{app}', Uri.encodeQueryComponent(app));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ThemingGetManifestResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -649,7 +649,7 @@ class UserThemeClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Uint8List, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -757,7 +757,7 @@ class UserThemeClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Background, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'post',
uri,
headers,
@ -835,7 +835,7 @@ class UserThemeClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<Background, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -927,7 +927,7 @@ class UserThemeClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UserThemeEnableThemeResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -1019,7 +1019,7 @@ class UserThemeClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UserThemeDisableThemeResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,

2
packages/nextcloud/lib/src/api/updatenotification.openapi.dart

@ -130,7 +130,7 @@ class ApiClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<ApiGetAppListResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,

22
packages/nextcloud/lib/src/api/uppush.openapi.dart

@ -91,7 +91,7 @@ class Client extends DynamiteClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CheckResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -175,7 +175,7 @@ class Client extends DynamiteClient {
queryParameters['keepalive'] = keepalive.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<SetKeepaliveResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'put',
uri,
headers,
@ -255,7 +255,7 @@ class Client extends DynamiteClient {
queryParameters['deviceName'] = deviceName;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CreateDeviceResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'put',
uri,
headers,
@ -331,7 +331,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{deviceId}', Uri.encodeQueryComponent(deviceId));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<SyncDeviceResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -405,7 +405,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{deviceId}', Uri.encodeQueryComponent(deviceId));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DeleteDeviceResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'delete',
uri,
headers,
@ -493,7 +493,7 @@ class Client extends DynamiteClient {
queryParameters['appName'] = appName;
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<CreateAppResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'put',
uri,
headers,
@ -565,7 +565,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{token}', Uri.encodeQueryComponent(token));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<DeleteAppResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'delete',
uri,
headers,
@ -641,7 +641,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{token}', Uri.encodeQueryComponent(token));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UnifiedpushDiscoveryResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -713,7 +713,7 @@ class Client extends DynamiteClient {
path = path.replaceAll('{token}', Uri.encodeQueryComponent(token));
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<PushResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,
@ -782,7 +782,7 @@ class Client extends DynamiteClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GatewayMatrixDiscoveryResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'get',
uri,
headers,
@ -851,7 +851,7 @@ class Client extends DynamiteClient {
// coverage:ignore-end
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<GatewayMatrixResponseApplicationJson, void>(
response: doRequest(
response: executeRequest(
'post',
uri,
headers,

20
packages/nextcloud/lib/src/api/user_status.openapi.dart

@ -131,7 +131,7 @@ class HeartbeatClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<HeartbeatHeartbeatResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -219,7 +219,7 @@ class PredefinedStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<PredefinedStatusFindAllResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -323,7 +323,7 @@ class StatusesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<StatusesFindAllResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -413,7 +413,7 @@ class StatusesClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<StatusesFindResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -503,7 +503,7 @@ class UserStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UserStatusGetStatusResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -593,7 +593,7 @@ class UserStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UserStatusSetStatusResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -691,7 +691,7 @@ class UserStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UserStatusSetPredefinedMessageResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -799,7 +799,7 @@ class UserStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UserStatusSetCustomMessageResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -881,7 +881,7 @@ class UserStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UserStatusClearMessageResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,
@ -969,7 +969,7 @@ class UserStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<UserStatusRevertStatusResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'delete',
uri,
headers,

14
packages/nextcloud/lib/src/api/weather_status.openapi.dart

@ -118,7 +118,7 @@ class WeatherStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WeatherStatusSetModeResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -200,7 +200,7 @@ class WeatherStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WeatherStatusUsePersonalAddressResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -282,7 +282,7 @@ class WeatherStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WeatherStatusGetLocationResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -388,7 +388,7 @@ class WeatherStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WeatherStatusSetLocationResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,
@ -472,7 +472,7 @@ class WeatherStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WeatherStatusGetForecastResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -554,7 +554,7 @@ class WeatherStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WeatherStatusGetFavoritesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'get',
uri,
headers,
@ -642,7 +642,7 @@ class WeatherStatusClient {
headers['OCS-APIRequest'] = oCSAPIRequest.toString();
final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null);
return DynamiteRawResponse<WeatherStatusSetFavoritesResponseApplicationJson, void>(
response: _rootClient.doRequest(
response: _rootClient.executeRequest(
'put',
uri,
headers,

Loading…
Cancel
Save