diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1fbb970 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +# Runs on PRs and pushes to the default branch. We use `pull_request` (never +# `pull_request_target`), so secrets are NOT exposed to pull requests from forks. +on: + pull_request: + push: + branches: [main, master] + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dart-lang/setup-dart@v1 + with: + sdk: '3.0' + - name: Install dependencies + working-directory: client + run: dart pub get + - name: Run model tests + working-directory: client + run: dart test + - name: Install SSO test dependencies + working-directory: sso_tests + run: dart pub get + - name: Run SSO unit + integration tests + working-directory: sso_tests + run: dart test + env: + FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} + FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} diff --git a/.gitignore b/.gitignore index bb4c37c..75b32c9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ client/.dart_tool/ client/.packages client/pubspec.lock node_modules/ +openapi-generator-cli.jar diff --git a/README.md b/README.md index ca0a734..5e1e9c9 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,20 @@ dependencies: crypto: ^3.0.0 ``` +The client exposes three API classes: + +- `DefaultApi` — API-key-authenticated methods for server-side use. +- `PublicApi` — public methods that need no API key, safe for browser and + mobile clients. +- `ModerationApi` — methods that back the moderator dashboard: comment + moderation (list, count, search, logs, export), moderation actions + (remove/restore, flag, set review/spam/approval status, votes, reopen/close + thread), bans (ban from comment, undo, pre-ban summaries, ban status and + preferences, banned-user counts), and badges & trust (award/remove badge, + manual badges, get/set trust factor, user internal profile). Every + `ModerationApi` method takes an `sso` parameter for SSO-authenticated + moderators. + ```dart import 'package:fastcomments_dart/api.dart'; @@ -49,6 +63,20 @@ final comments = await api.getCommentsPublic( ); ``` +```dart +import 'package:fastcomments_dart/api.dart'; + +final publicApi = PublicApi(ApiClient(basePath: 'https://fastcomments.com')); +final feedPosts = await publicApi.getFeedPostsPublic('YOUR_TENANT_ID'); +``` + +```dart +import 'package:fastcomments_dart/api.dart'; + +final moderation = ModerationApi(ApiClient(basePath: 'https://fastcomments.com')); +final result = await moderation.getApiComments(sso: 'SSO_TOKEN'); +``` + ## SSO ```dart diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 96e0ac6..d0052f4 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -4,9 +4,14 @@ README.md analysis_options.yaml doc/APIAuditLog.md +doc/APIBanUserChangeLog.md +doc/APIBanUserChangedValues.md +doc/APIBannedUser.md +doc/APIBannedUserWithMultiMatchInfo.md doc/APIComment.md doc/APICommentBase.md doc/APICommentBaseMeta.md +doc/APICommentCommonBannedUser.md doc/APICreateUserBadgeResponse.md doc/APIDomainConfiguration.md doc/APIEmptyResponse.md @@ -18,6 +23,8 @@ doc/APIGetUserBadgeProgressListResponse.md doc/APIGetUserBadgeProgressResponse.md doc/APIGetUserBadgeResponse.md doc/APIGetUserBadgesResponse.md +doc/APIModerateGetUserBanPreferencesResponse.md +doc/APIModerateUserBanPreferences.md doc/APIPage.md doc/APISSOUser.md doc/APISaveCommentResponse.md @@ -28,16 +35,17 @@ doc/APITicket.md doc/APITicketDetail.md doc/APITicketFile.md doc/APIUserSubscription.md -doc/AddDomainConfig200Response.md -doc/AddDomainConfig200ResponseAnyOf.md doc/AddDomainConfigParams.md -doc/AddHashTag200Response.md -doc/AddHashTagsBulk200Response.md +doc/AddDomainConfigResponse.md +doc/AddDomainConfigResponseAnyOf.md doc/AddPageAPIResponse.md doc/AddSSOUserAPIResponse.md -doc/AggregateQuestionResults200Response.md +doc/AdjustCommentVotesParams.md +doc/AdjustVotesResponse.md doc/AggregateQuestionResultsResponse.md +doc/AggregateResponse.md doc/AggregateTimeBucket.md +doc/AggregationAPIError.md doc/AggregationItem.md doc/AggregationOpType.md doc/AggregationOperation.md @@ -46,24 +54,30 @@ doc/AggregationRequestSort.md doc/AggregationResponse.md doc/AggregationResponseStats.md doc/AggregationValue.md +doc/AwardUserBadgeResponse.md +doc/BanUserFromCommentResult.md +doc/BanUserUndoParams.md +doc/BannedUserMatch.md +doc/BannedUserMatchMatchedOnValue.md +doc/BannedUserMatchType.md doc/BillingInfo.md doc/BlockFromCommentParams.md -doc/BlockFromCommentPublic200Response.md doc/BlockSuccess.md +doc/BuildModerationFilterParams.md +doc/BuildModerationFilterResponse.md doc/BulkAggregateQuestionItem.md -doc/BulkAggregateQuestionResults200Response.md doc/BulkAggregateQuestionResultsRequest.md doc/BulkAggregateQuestionResultsResponse.md doc/BulkCreateHashTagsBody.md doc/BulkCreateHashTagsBodyTagsInner.md doc/BulkCreateHashTagsResponse.md +doc/BulkCreateHashTagsResponseResultsInner.md +doc/BulkPreBanParams.md +doc/BulkPreBanSummary.md doc/ChangeCommentPinStatusResponse.md -doc/ChangeTicketState200Response.md doc/ChangeTicketStateBody.md doc/ChangeTicketStateResponse.md doc/CheckBlockedCommentsResponse.md -doc/CheckedCommentsForBlocked200Response.md -doc/CombineCommentsWithQuestionResults200Response.md doc/CombineQuestionResultsWithCommentsResponse.md doc/CommentData.md doc/CommentHTMLRenderingMode.md @@ -78,57 +92,43 @@ doc/CommentUserBadgeInfo.md doc/CommentUserHashTagInfo.md doc/CommentUserMentionInfo.md doc/CommenterNameFormats.md +doc/CommentsByIdsParams.md doc/CreateAPIPageData.md doc/CreateAPISSOUserData.md doc/CreateAPIUserSubscriptionData.md doc/CreateCommentParams.md -doc/CreateCommentPublic200Response.md -doc/CreateEmailTemplate200Response.md doc/CreateEmailTemplateBody.md doc/CreateEmailTemplateResponse.md -doc/CreateFeedPost200Response.md doc/CreateFeedPostParams.md -doc/CreateFeedPostPublic200Response.md doc/CreateFeedPostResponse.md doc/CreateFeedPostsResponse.md doc/CreateHashTagBody.md doc/CreateHashTagResponse.md -doc/CreateModerator200Response.md doc/CreateModeratorBody.md doc/CreateModeratorResponse.md -doc/CreateQuestionConfig200Response.md doc/CreateQuestionConfigBody.md doc/CreateQuestionConfigResponse.md -doc/CreateQuestionResult200Response.md doc/CreateQuestionResultBody.md doc/CreateQuestionResultResponse.md doc/CreateSubscriptionAPIResponse.md -doc/CreateTenant200Response.md doc/CreateTenantBody.md -doc/CreateTenantPackage200Response.md doc/CreateTenantPackageBody.md doc/CreateTenantPackageResponse.md doc/CreateTenantResponse.md -doc/CreateTenantUser200Response.md doc/CreateTenantUserBody.md doc/CreateTenantUserResponse.md -doc/CreateTicket200Response.md doc/CreateTicketBody.md doc/CreateTicketResponse.md -doc/CreateUserBadge200Response.md doc/CreateUserBadgeParams.md +doc/CreateV1PageReact.md doc/CustomConfigParameters.md doc/CustomEmailTemplate.md doc/DefaultApi.md -doc/DeleteComment200Response.md doc/DeleteCommentAction.md -doc/DeleteCommentPublic200Response.md doc/DeleteCommentResult.md -doc/DeleteCommentVote200Response.md -doc/DeleteDomainConfig200Response.md -doc/DeleteFeedPostPublic200Response.md -doc/DeleteFeedPostPublic200ResponseAnyOf.md -doc/DeleteHashTagRequest.md +doc/DeleteDomainConfigResponse.md +doc/DeleteFeedPostPublicResponse.md +doc/DeleteHashTagRequestBody.md doc/DeletePageAPIResponse.md doc/DeleteSSOUserAPIResponse.md doc/DeleteSubscriptionAPIResponse.md @@ -147,104 +147,77 @@ doc/FeedPostStats.md doc/FeedPostsStatsResponse.md doc/FindCommentsByRangeItem.md doc/FindCommentsByRangeResponse.md -doc/FlagComment200Response.md -doc/FlagCommentPublic200Response.md doc/FlagCommentResponse.md -doc/GetAuditLogs200Response.md doc/GetAuditLogsResponse.md -doc/GetCachedNotificationCount200Response.md +doc/GetBannedUsersCountResponse.md +doc/GetBannedUsersFromCommentResponse.md doc/GetCachedNotificationCountResponse.md -doc/GetComment200Response.md -doc/GetCommentText200Response.md -doc/GetCommentVoteUserNames200Response.md +doc/GetCommentBanStatusResponse.md +doc/GetCommentTextResponse.md doc/GetCommentVoteUserNamesSuccessResponse.md -doc/GetComments200Response.md -doc/GetCommentsPublic200Response.md +doc/GetCommentsForUserResponse.md doc/GetCommentsResponsePublicComment.md doc/GetCommentsResponseWithPresencePublicComment.md -doc/GetDomainConfig200Response.md -doc/GetDomainConfigs200Response.md -doc/GetDomainConfigs200ResponseAnyOf.md -doc/GetDomainConfigs200ResponseAnyOf1.md -doc/GetEmailTemplate200Response.md -doc/GetEmailTemplateDefinitions200Response.md +doc/GetDomainConfigResponse.md +doc/GetDomainConfigsResponse.md +doc/GetDomainConfigsResponseAnyOf.md +doc/GetDomainConfigsResponseAnyOf1.md doc/GetEmailTemplateDefinitionsResponse.md -doc/GetEmailTemplateRenderErrors200Response.md doc/GetEmailTemplateRenderErrorsResponse.md doc/GetEmailTemplateResponse.md -doc/GetEmailTemplates200Response.md doc/GetEmailTemplatesResponse.md -doc/GetEventLog200Response.md doc/GetEventLogResponse.md -doc/GetFeedPosts200Response.md -doc/GetFeedPostsPublic200Response.md doc/GetFeedPostsResponse.md -doc/GetFeedPostsStats200Response.md -doc/GetHashTags200Response.md +doc/GetGifsSearchResponse.md +doc/GetGifsTrendingResponse.md doc/GetHashTagsResponse.md -doc/GetModerator200Response.md doc/GetModeratorResponse.md -doc/GetModerators200Response.md doc/GetModeratorsResponse.md doc/GetMyNotificationsResponse.md -doc/GetNotificationCount200Response.md doc/GetNotificationCountResponse.md -doc/GetNotifications200Response.md doc/GetNotificationsResponse.md doc/GetPageByURLIdAPIResponse.md doc/GetPagesAPIResponse.md -doc/GetPendingWebhookEventCount200Response.md doc/GetPendingWebhookEventCountResponse.md -doc/GetPendingWebhookEvents200Response.md doc/GetPendingWebhookEventsResponse.md doc/GetPublicFeedPostsResponse.md -doc/GetQuestionConfig200Response.md +doc/GetPublicPagesResponse.md doc/GetQuestionConfigResponse.md -doc/GetQuestionConfigs200Response.md doc/GetQuestionConfigsResponse.md -doc/GetQuestionResult200Response.md doc/GetQuestionResultResponse.md -doc/GetQuestionResults200Response.md doc/GetQuestionResultsResponse.md doc/GetSSOUserByEmailAPIResponse.md doc/GetSSOUserByIdAPIResponse.md -doc/GetSSOUsers200Response.md +doc/GetSSOUsersResponse.md doc/GetSubscriptionsAPIResponse.md -doc/GetTenant200Response.md -doc/GetTenantDailyUsages200Response.md doc/GetTenantDailyUsagesResponse.md -doc/GetTenantPackage200Response.md +doc/GetTenantManualBadgesResponse.md doc/GetTenantPackageResponse.md -doc/GetTenantPackages200Response.md doc/GetTenantPackagesResponse.md doc/GetTenantResponse.md -doc/GetTenantUser200Response.md doc/GetTenantUserResponse.md -doc/GetTenantUsers200Response.md doc/GetTenantUsersResponse.md -doc/GetTenants200Response.md doc/GetTenantsResponse.md -doc/GetTicket200Response.md doc/GetTicketResponse.md -doc/GetTickets200Response.md doc/GetTicketsResponse.md -doc/GetUser200Response.md -doc/GetUserBadge200Response.md -doc/GetUserBadgeProgressById200Response.md -doc/GetUserBadgeProgressList200Response.md -doc/GetUserBadges200Response.md -doc/GetUserNotificationCount200Response.md +doc/GetTranslationsResponse.md +doc/GetUserInternalProfileResponse.md +doc/GetUserInternalProfileResponseProfile.md +doc/GetUserManualBadgesResponse.md doc/GetUserNotificationCountResponse.md -doc/GetUserNotifications200Response.md -doc/GetUserPresenceStatuses200Response.md doc/GetUserPresenceStatusesResponse.md -doc/GetUserReactsPublic200Response.md doc/GetUserResponse.md -doc/GetVotes200Response.md -doc/GetVotesForUser200Response.md +doc/GetUserTrustFactorResponse.md +doc/GetV1PageLikes.md +doc/GetV2PageReactUsersResponse.md +doc/GetV2PageReacts.md doc/GetVotesForUserResponse.md doc/GetVotesResponse.md +doc/GifGetLargeResponse.md doc/GifRating.md +doc/GifSearchInternalError.md +doc/GifSearchResponse.md +doc/GifSearchResponseImagesInnerInner.md doc/HeaderAccountNotification.md doc/HeaderState.md doc/IgnoredResponse.md @@ -254,20 +227,45 @@ doc/ImportedSiteType.md doc/LiveEvent.md doc/LiveEventExtraInfo.md doc/LiveEventType.md -doc/LockComment200Response.md doc/MediaAsset.md doc/MentionAutoCompleteMode.md doc/MetaItem.md +doc/ModerationAPIChildCommentsResponse.md +doc/ModerationAPIComment.md +doc/ModerationAPICommentLog.md +doc/ModerationAPICommentResponse.md +doc/ModerationAPICountCommentsResponse.md +doc/ModerationAPIGetCommentIdsResponse.md +doc/ModerationAPIGetCommentsResponse.md +doc/ModerationAPIGetLogsResponse.md +doc/ModerationApi.md +doc/ModerationCommentSearchResponse.md +doc/ModerationExportResponse.md +doc/ModerationExportStatusResponse.md +doc/ModerationFilter.md +doc/ModerationPageSearchProjected.md +doc/ModerationPageSearchResponse.md +doc/ModerationSiteSearchProjected.md +doc/ModerationSiteSearchResponse.md +doc/ModerationSuggestResponse.md +doc/ModerationUserSearchProjected.md +doc/ModerationUserSearchResponse.md doc/Moderator.md doc/NotificationAndCount.md doc/NotificationObjectType.md doc/NotificationType.md +doc/PageUserEntry.md +doc/PageUsersInfoResponse.md +doc/PageUsersOfflineResponse.md +doc/PageUsersOnlineResponse.md +doc/PagesSortBy.md doc/PatchDomainConfigParams.md -doc/PatchHashTag200Response.md +doc/PatchDomainConfigResponse.md doc/PatchPageAPIResponse.md doc/PatchSSOUserAPIResponse.md doc/PendingCommentToSyncOutbound.md -doc/PinComment200Response.md +doc/PostRemoveCommentResponse.md +doc/PreBanSummary.md doc/PubSubComment.md doc/PubSubCommentBase.md doc/PubSubVote.md @@ -279,7 +277,9 @@ doc/PublicBlockFromCommentParams.md doc/PublicComment.md doc/PublicCommentBase.md doc/PublicFeedPostsResponse.md +doc/PublicPage.md doc/PublicVote.md +doc/PutDomainConfigResponse.md doc/PutSSOUserAPIResponse.md doc/QueryPredicate.md doc/QueryPredicateValue.md @@ -292,11 +292,10 @@ doc/QuestionResultAggregationOverall.md doc/QuestionSubQuestionVisibility.md doc/QuestionWhenSave.md doc/ReactBodyParams.md -doc/ReactFeedPostPublic200Response.md doc/ReactFeedPostResponse.md doc/RecordStringBeforeStringOrNullAfterStringOrNullValue.md -doc/RecordStringStringOrNumberValue.md -doc/RenderEmailTemplate200Response.md +doc/RemoveCommentActionResponse.md +doc/RemoveUserBadgeResponse.md doc/RenderEmailTemplateBody.md doc/RenderEmailTemplateResponse.md doc/RenderableUserNotification.md @@ -304,25 +303,27 @@ doc/RepeatCommentCheckIgnoredReason.md doc/RepeatCommentHandlingAction.md doc/ReplaceTenantPackageBody.md doc/ReplaceTenantUserBody.md -doc/ResetUserNotifications200Response.md doc/ResetUserNotificationsResponse.md doc/SORTDIR.md doc/SSOSecurityLevel.md -doc/SaveComment200Response.md doc/SaveCommentResponseOptimized.md +doc/SaveCommentsBulkResponse.md doc/SaveCommentsResponseWithPresence.md -doc/SearchUsers200Response.md doc/SearchUsersResponse.md +doc/SearchUsersResult.md doc/SearchUsersSectionedResponse.md -doc/SetCommentText200Response.md +doc/SetCommentApprovedResponse.md +doc/SetCommentTextParams.md +doc/SetCommentTextResponse.md doc/SetCommentTextResult.md +doc/SetUserTrustFactorResponse.md doc/SizePreset.md doc/SortDirections.md doc/SpamRule.md doc/TOSConfig.md +doc/TenantBadge.md doc/TenantHashTag.md doc/TenantPackage.md -doc/UnBlockCommentPublic200Response.md doc/UnBlockFromCommentParams.md doc/UnblockSuccess.md doc/UpdatableCommentParams.md @@ -342,9 +343,10 @@ doc/UpdateSubscriptionAPIResponse.md doc/UpdateTenantBody.md doc/UpdateTenantPackageBody.md doc/UpdateTenantUserBody.md -doc/UpdateUserBadge200Response.md doc/UpdateUserBadgeParams.md -doc/UpdateUserNotificationStatus200Response.md +doc/UpdateUserNotificationCommentSubscriptionStatusResponse.md +doc/UpdateUserNotificationPageSubscriptionStatusResponse.md +doc/UpdateUserNotificationStatusResponse.md doc/UploadImageResponse.md doc/User.md doc/UserBadge.md @@ -358,8 +360,8 @@ doc/UserSearchResult.md doc/UserSearchSection.md doc/UserSearchSectionResult.md doc/UserSessionInfo.md +doc/UsersListLocation.md doc/VoteBodyParams.md -doc/VoteComment200Response.md doc/VoteDeleteResponse.md doc/VoteResponse.md doc/VoteResponseUser.md @@ -367,6 +369,7 @@ doc/VoteStyle.md git_push.sh lib/api.dart lib/api/default_api.dart +lib/api/moderation_api.dart lib/api/public_api.dart lib/api_client.dart lib/api_exception.dart @@ -376,16 +379,17 @@ lib/auth/authentication.dart lib/auth/http_basic_auth.dart lib/auth/http_bearer_auth.dart lib/auth/oauth.dart -lib/model/add_domain_config200_response.dart -lib/model/add_domain_config200_response_any_of.dart lib/model/add_domain_config_params.dart -lib/model/add_hash_tag200_response.dart -lib/model/add_hash_tags_bulk200_response.dart +lib/model/add_domain_config_response.dart +lib/model/add_domain_config_response_any_of.dart lib/model/add_page_api_response.dart lib/model/add_sso_user_api_response.dart -lib/model/aggregate_question_results200_response.dart +lib/model/adjust_comment_votes_params.dart +lib/model/adjust_votes_response.dart lib/model/aggregate_question_results_response.dart +lib/model/aggregate_response.dart lib/model/aggregate_time_bucket.dart +lib/model/aggregation_api_error.dart lib/model/aggregation_item.dart lib/model/aggregation_op_type.dart lib/model/aggregation_operation.dart @@ -395,9 +399,14 @@ lib/model/aggregation_response.dart lib/model/aggregation_response_stats.dart lib/model/aggregation_value.dart lib/model/api_audit_log.dart +lib/model/api_ban_user_change_log.dart +lib/model/api_ban_user_changed_values.dart +lib/model/api_banned_user.dart +lib/model/api_banned_user_with_multi_match_info.dart lib/model/api_comment.dart lib/model/api_comment_base.dart lib/model/api_comment_base_meta.dart +lib/model/api_comment_common_banned_user.dart lib/model/api_create_user_badge_response.dart lib/model/api_domain_configuration.dart lib/model/api_empty_response.dart @@ -409,6 +418,8 @@ lib/model/api_get_user_badge_progress_list_response.dart lib/model/api_get_user_badge_progress_response.dart lib/model/api_get_user_badge_response.dart lib/model/api_get_user_badges_response.dart +lib/model/api_moderate_get_user_ban_preferences_response.dart +lib/model/api_moderate_user_ban_preferences.dart lib/model/api_page.dart lib/model/api_save_comment_response.dart lib/model/api_status.dart @@ -419,24 +430,30 @@ lib/model/api_ticket_detail.dart lib/model/api_ticket_file.dart lib/model/api_user_subscription.dart lib/model/apisso_user.dart +lib/model/award_user_badge_response.dart +lib/model/ban_user_from_comment_result.dart +lib/model/ban_user_undo_params.dart +lib/model/banned_user_match.dart +lib/model/banned_user_match_matched_on_value.dart +lib/model/banned_user_match_type.dart lib/model/billing_info.dart lib/model/block_from_comment_params.dart -lib/model/block_from_comment_public200_response.dart lib/model/block_success.dart +lib/model/build_moderation_filter_params.dart +lib/model/build_moderation_filter_response.dart lib/model/bulk_aggregate_question_item.dart -lib/model/bulk_aggregate_question_results200_response.dart lib/model/bulk_aggregate_question_results_request.dart lib/model/bulk_aggregate_question_results_response.dart lib/model/bulk_create_hash_tags_body.dart lib/model/bulk_create_hash_tags_body_tags_inner.dart lib/model/bulk_create_hash_tags_response.dart +lib/model/bulk_create_hash_tags_response_results_inner.dart +lib/model/bulk_pre_ban_params.dart +lib/model/bulk_pre_ban_summary.dart lib/model/change_comment_pin_status_response.dart -lib/model/change_ticket_state200_response.dart lib/model/change_ticket_state_body.dart lib/model/change_ticket_state_response.dart lib/model/check_blocked_comments_response.dart -lib/model/checked_comments_for_blocked200_response.dart -lib/model/combine_comments_with_question_results200_response.dart lib/model/combine_question_results_with_comments_response.dart lib/model/comment_data.dart lib/model/comment_html_rendering_mode.dart @@ -451,56 +468,42 @@ lib/model/comment_user_badge_info.dart lib/model/comment_user_hash_tag_info.dart lib/model/comment_user_mention_info.dart lib/model/commenter_name_formats.dart +lib/model/comments_by_ids_params.dart lib/model/create_api_page_data.dart lib/model/create_api_user_subscription_data.dart lib/model/create_apisso_user_data.dart lib/model/create_comment_params.dart -lib/model/create_comment_public200_response.dart -lib/model/create_email_template200_response.dart lib/model/create_email_template_body.dart lib/model/create_email_template_response.dart -lib/model/create_feed_post200_response.dart lib/model/create_feed_post_params.dart -lib/model/create_feed_post_public200_response.dart lib/model/create_feed_post_response.dart lib/model/create_feed_posts_response.dart lib/model/create_hash_tag_body.dart lib/model/create_hash_tag_response.dart -lib/model/create_moderator200_response.dart lib/model/create_moderator_body.dart lib/model/create_moderator_response.dart -lib/model/create_question_config200_response.dart lib/model/create_question_config_body.dart lib/model/create_question_config_response.dart -lib/model/create_question_result200_response.dart lib/model/create_question_result_body.dart lib/model/create_question_result_response.dart lib/model/create_subscription_api_response.dart -lib/model/create_tenant200_response.dart lib/model/create_tenant_body.dart -lib/model/create_tenant_package200_response.dart lib/model/create_tenant_package_body.dart lib/model/create_tenant_package_response.dart lib/model/create_tenant_response.dart -lib/model/create_tenant_user200_response.dart lib/model/create_tenant_user_body.dart lib/model/create_tenant_user_response.dart -lib/model/create_ticket200_response.dart lib/model/create_ticket_body.dart lib/model/create_ticket_response.dart -lib/model/create_user_badge200_response.dart lib/model/create_user_badge_params.dart +lib/model/create_v1_page_react.dart lib/model/custom_config_parameters.dart lib/model/custom_email_template.dart -lib/model/delete_comment200_response.dart lib/model/delete_comment_action.dart -lib/model/delete_comment_public200_response.dart lib/model/delete_comment_result.dart -lib/model/delete_comment_vote200_response.dart -lib/model/delete_domain_config200_response.dart -lib/model/delete_feed_post_public200_response.dart -lib/model/delete_feed_post_public200_response_any_of.dart -lib/model/delete_hash_tag_request.dart +lib/model/delete_domain_config_response.dart +lib/model/delete_feed_post_public_response.dart +lib/model/delete_hash_tag_request_body.dart lib/model/delete_page_api_response.dart lib/model/delete_sso_user_api_response.dart lib/model/delete_subscription_api_response.dart @@ -519,104 +522,77 @@ lib/model/feed_post_stats.dart lib/model/feed_posts_stats_response.dart lib/model/find_comments_by_range_item.dart lib/model/find_comments_by_range_response.dart -lib/model/flag_comment200_response.dart -lib/model/flag_comment_public200_response.dart lib/model/flag_comment_response.dart -lib/model/get_audit_logs200_response.dart lib/model/get_audit_logs_response.dart -lib/model/get_cached_notification_count200_response.dart +lib/model/get_banned_users_count_response.dart +lib/model/get_banned_users_from_comment_response.dart lib/model/get_cached_notification_count_response.dart -lib/model/get_comment200_response.dart -lib/model/get_comment_text200_response.dart -lib/model/get_comment_vote_user_names200_response.dart +lib/model/get_comment_ban_status_response.dart +lib/model/get_comment_text_response.dart lib/model/get_comment_vote_user_names_success_response.dart -lib/model/get_comments200_response.dart -lib/model/get_comments_public200_response.dart +lib/model/get_comments_for_user_response.dart lib/model/get_comments_response_public_comment.dart lib/model/get_comments_response_with_presence_public_comment.dart -lib/model/get_domain_config200_response.dart -lib/model/get_domain_configs200_response.dart -lib/model/get_domain_configs200_response_any_of.dart -lib/model/get_domain_configs200_response_any_of1.dart -lib/model/get_email_template200_response.dart -lib/model/get_email_template_definitions200_response.dart +lib/model/get_domain_config_response.dart +lib/model/get_domain_configs_response.dart +lib/model/get_domain_configs_response_any_of.dart +lib/model/get_domain_configs_response_any_of1.dart lib/model/get_email_template_definitions_response.dart -lib/model/get_email_template_render_errors200_response.dart lib/model/get_email_template_render_errors_response.dart lib/model/get_email_template_response.dart -lib/model/get_email_templates200_response.dart lib/model/get_email_templates_response.dart -lib/model/get_event_log200_response.dart lib/model/get_event_log_response.dart -lib/model/get_feed_posts200_response.dart -lib/model/get_feed_posts_public200_response.dart lib/model/get_feed_posts_response.dart -lib/model/get_feed_posts_stats200_response.dart -lib/model/get_hash_tags200_response.dart +lib/model/get_gifs_search_response.dart +lib/model/get_gifs_trending_response.dart lib/model/get_hash_tags_response.dart -lib/model/get_moderator200_response.dart lib/model/get_moderator_response.dart -lib/model/get_moderators200_response.dart lib/model/get_moderators_response.dart lib/model/get_my_notifications_response.dart -lib/model/get_notification_count200_response.dart lib/model/get_notification_count_response.dart -lib/model/get_notifications200_response.dart lib/model/get_notifications_response.dart lib/model/get_page_by_urlid_api_response.dart lib/model/get_pages_api_response.dart -lib/model/get_pending_webhook_event_count200_response.dart lib/model/get_pending_webhook_event_count_response.dart -lib/model/get_pending_webhook_events200_response.dart lib/model/get_pending_webhook_events_response.dart lib/model/get_public_feed_posts_response.dart -lib/model/get_question_config200_response.dart +lib/model/get_public_pages_response.dart lib/model/get_question_config_response.dart -lib/model/get_question_configs200_response.dart lib/model/get_question_configs_response.dart -lib/model/get_question_result200_response.dart lib/model/get_question_result_response.dart -lib/model/get_question_results200_response.dart lib/model/get_question_results_response.dart lib/model/get_sso_user_by_email_api_response.dart lib/model/get_sso_user_by_id_api_response.dart -lib/model/get_sso_users200_response.dart +lib/model/get_sso_users_response.dart lib/model/get_subscriptions_api_response.dart -lib/model/get_tenant200_response.dart -lib/model/get_tenant_daily_usages200_response.dart lib/model/get_tenant_daily_usages_response.dart -lib/model/get_tenant_package200_response.dart +lib/model/get_tenant_manual_badges_response.dart lib/model/get_tenant_package_response.dart -lib/model/get_tenant_packages200_response.dart lib/model/get_tenant_packages_response.dart lib/model/get_tenant_response.dart -lib/model/get_tenant_user200_response.dart lib/model/get_tenant_user_response.dart -lib/model/get_tenant_users200_response.dart lib/model/get_tenant_users_response.dart -lib/model/get_tenants200_response.dart lib/model/get_tenants_response.dart -lib/model/get_ticket200_response.dart lib/model/get_ticket_response.dart -lib/model/get_tickets200_response.dart lib/model/get_tickets_response.dart -lib/model/get_user200_response.dart -lib/model/get_user_badge200_response.dart -lib/model/get_user_badge_progress_by_id200_response.dart -lib/model/get_user_badge_progress_list200_response.dart -lib/model/get_user_badges200_response.dart -lib/model/get_user_notification_count200_response.dart +lib/model/get_translations_response.dart +lib/model/get_user_internal_profile_response.dart +lib/model/get_user_internal_profile_response_profile.dart +lib/model/get_user_manual_badges_response.dart lib/model/get_user_notification_count_response.dart -lib/model/get_user_notifications200_response.dart -lib/model/get_user_presence_statuses200_response.dart lib/model/get_user_presence_statuses_response.dart -lib/model/get_user_reacts_public200_response.dart lib/model/get_user_response.dart -lib/model/get_votes200_response.dart -lib/model/get_votes_for_user200_response.dart +lib/model/get_user_trust_factor_response.dart +lib/model/get_v1_page_likes.dart +lib/model/get_v2_page_react_users_response.dart +lib/model/get_v2_page_reacts.dart lib/model/get_votes_for_user_response.dart lib/model/get_votes_response.dart +lib/model/gif_get_large_response.dart lib/model/gif_rating.dart +lib/model/gif_search_internal_error.dart +lib/model/gif_search_response.dart +lib/model/gif_search_response_images_inner_inner.dart lib/model/header_account_notification.dart lib/model/header_state.dart lib/model/ignored_response.dart @@ -626,20 +602,44 @@ lib/model/imported_site_type.dart lib/model/live_event.dart lib/model/live_event_extra_info.dart lib/model/live_event_type.dart -lib/model/lock_comment200_response.dart lib/model/media_asset.dart lib/model/mention_auto_complete_mode.dart lib/model/meta_item.dart +lib/model/moderation_api_child_comments_response.dart +lib/model/moderation_api_comment.dart +lib/model/moderation_api_comment_log.dart +lib/model/moderation_api_comment_response.dart +lib/model/moderation_api_count_comments_response.dart +lib/model/moderation_api_get_comment_ids_response.dart +lib/model/moderation_api_get_comments_response.dart +lib/model/moderation_api_get_logs_response.dart +lib/model/moderation_comment_search_response.dart +lib/model/moderation_export_response.dart +lib/model/moderation_export_status_response.dart +lib/model/moderation_filter.dart +lib/model/moderation_page_search_projected.dart +lib/model/moderation_page_search_response.dart +lib/model/moderation_site_search_projected.dart +lib/model/moderation_site_search_response.dart +lib/model/moderation_suggest_response.dart +lib/model/moderation_user_search_projected.dart +lib/model/moderation_user_search_response.dart lib/model/moderator.dart lib/model/notification_and_count.dart lib/model/notification_object_type.dart lib/model/notification_type.dart +lib/model/page_user_entry.dart +lib/model/page_users_info_response.dart +lib/model/page_users_offline_response.dart +lib/model/page_users_online_response.dart +lib/model/pages_sort_by.dart lib/model/patch_domain_config_params.dart -lib/model/patch_hash_tag200_response.dart +lib/model/patch_domain_config_response.dart lib/model/patch_page_api_response.dart lib/model/patch_sso_user_api_response.dart lib/model/pending_comment_to_sync_outbound.dart -lib/model/pin_comment200_response.dart +lib/model/post_remove_comment_response.dart +lib/model/pre_ban_summary.dart lib/model/pub_sub_comment.dart lib/model/pub_sub_comment_base.dart lib/model/pub_sub_vote.dart @@ -650,7 +650,9 @@ lib/model/public_block_from_comment_params.dart lib/model/public_comment.dart lib/model/public_comment_base.dart lib/model/public_feed_posts_response.dart +lib/model/public_page.dart lib/model/public_vote.dart +lib/model/put_domain_config_response.dart lib/model/put_sso_user_api_response.dart lib/model/query_predicate.dart lib/model/query_predicate_value.dart @@ -663,11 +665,10 @@ lib/model/question_result_aggregation_overall.dart lib/model/question_sub_question_visibility.dart lib/model/question_when_save.dart lib/model/react_body_params.dart -lib/model/react_feed_post_public200_response.dart lib/model/react_feed_post_response.dart lib/model/record_string_before_string_or_null_after_string_or_null_value.dart -lib/model/record_string_string_or_number_value.dart -lib/model/render_email_template200_response.dart +lib/model/remove_comment_action_response.dart +lib/model/remove_user_badge_response.dart lib/model/render_email_template_body.dart lib/model/render_email_template_response.dart lib/model/renderable_user_notification.dart @@ -675,25 +676,27 @@ lib/model/repeat_comment_check_ignored_reason.dart lib/model/repeat_comment_handling_action.dart lib/model/replace_tenant_package_body.dart lib/model/replace_tenant_user_body.dart -lib/model/reset_user_notifications200_response.dart lib/model/reset_user_notifications_response.dart -lib/model/save_comment200_response.dart lib/model/save_comment_response_optimized.dart +lib/model/save_comments_bulk_response.dart lib/model/save_comments_response_with_presence.dart -lib/model/search_users200_response.dart lib/model/search_users_response.dart +lib/model/search_users_result.dart lib/model/search_users_sectioned_response.dart -lib/model/set_comment_text200_response.dart +lib/model/set_comment_approved_response.dart +lib/model/set_comment_text_params.dart +lib/model/set_comment_text_response.dart lib/model/set_comment_text_result.dart +lib/model/set_user_trust_factor_response.dart lib/model/size_preset.dart lib/model/sort_directions.dart lib/model/sortdir.dart lib/model/spam_rule.dart lib/model/sso_security_level.dart +lib/model/tenant_badge.dart lib/model/tenant_hash_tag.dart lib/model/tenant_package.dart lib/model/tos_config.dart -lib/model/un_block_comment_public200_response.dart lib/model/un_block_from_comment_params.dart lib/model/unblock_success.dart lib/model/updatable_comment_params.dart @@ -713,9 +716,10 @@ lib/model/update_subscription_api_response.dart lib/model/update_tenant_body.dart lib/model/update_tenant_package_body.dart lib/model/update_tenant_user_body.dart -lib/model/update_user_badge200_response.dart lib/model/update_user_badge_params.dart -lib/model/update_user_notification_status200_response.dart +lib/model/update_user_notification_comment_subscription_status_response.dart +lib/model/update_user_notification_page_subscription_status_response.dart +lib/model/update_user_notification_status_response.dart lib/model/upload_image_response.dart lib/model/user.dart lib/model/user_badge.dart @@ -729,23 +733,24 @@ lib/model/user_search_result.dart lib/model/user_search_section.dart lib/model/user_search_section_result.dart lib/model/user_session_info.dart +lib/model/users_list_location.dart lib/model/vote_body_params.dart -lib/model/vote_comment200_response.dart lib/model/vote_delete_response.dart lib/model/vote_response.dart lib/model/vote_response_user.dart lib/model/vote_style.dart pubspec.yaml -test/add_domain_config200_response_any_of_test.dart -test/add_domain_config200_response_test.dart test/add_domain_config_params_test.dart -test/add_hash_tag200_response_test.dart -test/add_hash_tags_bulk200_response_test.dart +test/add_domain_config_response_any_of_test.dart +test/add_domain_config_response_test.dart test/add_page_api_response_test.dart test/add_sso_user_api_response_test.dart -test/aggregate_question_results200_response_test.dart +test/adjust_comment_votes_params_test.dart +test/adjust_votes_response_test.dart test/aggregate_question_results_response_test.dart +test/aggregate_response_test.dart test/aggregate_time_bucket_test.dart +test/aggregation_api_error_test.dart test/aggregation_item_test.dart test/aggregation_op_type_test.dart test/aggregation_operation_test.dart @@ -755,8 +760,13 @@ test/aggregation_response_stats_test.dart test/aggregation_response_test.dart test/aggregation_value_test.dart test/api_audit_log_test.dart +test/api_ban_user_change_log_test.dart +test/api_ban_user_changed_values_test.dart +test/api_banned_user_test.dart +test/api_banned_user_with_multi_match_info_test.dart test/api_comment_base_meta_test.dart test/api_comment_base_test.dart +test/api_comment_common_banned_user_test.dart test/api_comment_test.dart test/api_create_user_badge_response_test.dart test/api_domain_configuration_test.dart @@ -769,6 +779,8 @@ test/api_get_user_badge_progress_list_response_test.dart test/api_get_user_badge_progress_response_test.dart test/api_get_user_badge_response_test.dart test/api_get_user_badges_response_test.dart +test/api_moderate_get_user_ban_preferences_response_test.dart +test/api_moderate_user_ban_preferences_test.dart test/api_page_test.dart test/api_save_comment_response_test.dart test/api_status_test.dart @@ -779,24 +791,30 @@ test/api_ticket_file_test.dart test/api_ticket_test.dart test/api_user_subscription_test.dart test/apisso_user_test.dart +test/award_user_badge_response_test.dart +test/ban_user_from_comment_result_test.dart +test/ban_user_undo_params_test.dart +test/banned_user_match_matched_on_value_test.dart +test/banned_user_match_test.dart +test/banned_user_match_type_test.dart test/billing_info_test.dart test/block_from_comment_params_test.dart -test/block_from_comment_public200_response_test.dart test/block_success_test.dart +test/build_moderation_filter_params_test.dart +test/build_moderation_filter_response_test.dart test/bulk_aggregate_question_item_test.dart -test/bulk_aggregate_question_results200_response_test.dart test/bulk_aggregate_question_results_request_test.dart test/bulk_aggregate_question_results_response_test.dart test/bulk_create_hash_tags_body_tags_inner_test.dart test/bulk_create_hash_tags_body_test.dart +test/bulk_create_hash_tags_response_results_inner_test.dart test/bulk_create_hash_tags_response_test.dart +test/bulk_pre_ban_params_test.dart +test/bulk_pre_ban_summary_test.dart test/change_comment_pin_status_response_test.dart -test/change_ticket_state200_response_test.dart test/change_ticket_state_body_test.dart test/change_ticket_state_response_test.dart test/check_blocked_comments_response_test.dart -test/checked_comments_for_blocked200_response_test.dart -test/combine_comments_with_question_results200_response_test.dart test/combine_question_results_with_comments_response_test.dart test/comment_data_test.dart test/comment_html_rendering_mode_test.dart @@ -811,57 +829,43 @@ test/comment_user_badge_info_test.dart test/comment_user_hash_tag_info_test.dart test/comment_user_mention_info_test.dart test/commenter_name_formats_test.dart +test/comments_by_ids_params_test.dart test/create_api_page_data_test.dart test/create_api_user_subscription_data_test.dart test/create_apisso_user_data_test.dart test/create_comment_params_test.dart -test/create_comment_public200_response_test.dart -test/create_email_template200_response_test.dart test/create_email_template_body_test.dart test/create_email_template_response_test.dart -test/create_feed_post200_response_test.dart test/create_feed_post_params_test.dart -test/create_feed_post_public200_response_test.dart test/create_feed_post_response_test.dart test/create_feed_posts_response_test.dart test/create_hash_tag_body_test.dart test/create_hash_tag_response_test.dart -test/create_moderator200_response_test.dart test/create_moderator_body_test.dart test/create_moderator_response_test.dart -test/create_question_config200_response_test.dart test/create_question_config_body_test.dart test/create_question_config_response_test.dart -test/create_question_result200_response_test.dart test/create_question_result_body_test.dart test/create_question_result_response_test.dart test/create_subscription_api_response_test.dart -test/create_tenant200_response_test.dart test/create_tenant_body_test.dart -test/create_tenant_package200_response_test.dart test/create_tenant_package_body_test.dart test/create_tenant_package_response_test.dart test/create_tenant_response_test.dart -test/create_tenant_user200_response_test.dart test/create_tenant_user_body_test.dart test/create_tenant_user_response_test.dart -test/create_ticket200_response_test.dart test/create_ticket_body_test.dart test/create_ticket_response_test.dart -test/create_user_badge200_response_test.dart test/create_user_badge_params_test.dart +test/create_v1_page_react_test.dart test/custom_config_parameters_test.dart test/custom_email_template_test.dart test/default_api_test.dart -test/delete_comment200_response_test.dart test/delete_comment_action_test.dart -test/delete_comment_public200_response_test.dart test/delete_comment_result_test.dart -test/delete_comment_vote200_response_test.dart -test/delete_domain_config200_response_test.dart -test/delete_feed_post_public200_response_any_of_test.dart -test/delete_feed_post_public200_response_test.dart -test/delete_hash_tag_request_test.dart +test/delete_domain_config_response_test.dart +test/delete_feed_post_public_response_test.dart +test/delete_hash_tag_request_body_test.dart test/delete_page_api_response_test.dart test/delete_sso_user_api_response_test.dart test/delete_subscription_api_response_test.dart @@ -880,104 +884,77 @@ test/feed_post_test.dart test/feed_posts_stats_response_test.dart test/find_comments_by_range_item_test.dart test/find_comments_by_range_response_test.dart -test/flag_comment200_response_test.dart -test/flag_comment_public200_response_test.dart test/flag_comment_response_test.dart -test/get_audit_logs200_response_test.dart test/get_audit_logs_response_test.dart -test/get_cached_notification_count200_response_test.dart +test/get_banned_users_count_response_test.dart +test/get_banned_users_from_comment_response_test.dart test/get_cached_notification_count_response_test.dart -test/get_comment200_response_test.dart -test/get_comment_text200_response_test.dart -test/get_comment_vote_user_names200_response_test.dart +test/get_comment_ban_status_response_test.dart +test/get_comment_text_response_test.dart test/get_comment_vote_user_names_success_response_test.dart -test/get_comments200_response_test.dart -test/get_comments_public200_response_test.dart +test/get_comments_for_user_response_test.dart test/get_comments_response_public_comment_test.dart test/get_comments_response_with_presence_public_comment_test.dart -test/get_domain_config200_response_test.dart -test/get_domain_configs200_response_any_of1_test.dart -test/get_domain_configs200_response_any_of_test.dart -test/get_domain_configs200_response_test.dart -test/get_email_template200_response_test.dart -test/get_email_template_definitions200_response_test.dart +test/get_domain_config_response_test.dart +test/get_domain_configs_response_any_of1_test.dart +test/get_domain_configs_response_any_of_test.dart +test/get_domain_configs_response_test.dart test/get_email_template_definitions_response_test.dart -test/get_email_template_render_errors200_response_test.dart test/get_email_template_render_errors_response_test.dart test/get_email_template_response_test.dart -test/get_email_templates200_response_test.dart test/get_email_templates_response_test.dart -test/get_event_log200_response_test.dart test/get_event_log_response_test.dart -test/get_feed_posts200_response_test.dart -test/get_feed_posts_public200_response_test.dart test/get_feed_posts_response_test.dart -test/get_feed_posts_stats200_response_test.dart -test/get_hash_tags200_response_test.dart +test/get_gifs_search_response_test.dart +test/get_gifs_trending_response_test.dart test/get_hash_tags_response_test.dart -test/get_moderator200_response_test.dart test/get_moderator_response_test.dart -test/get_moderators200_response_test.dart test/get_moderators_response_test.dart test/get_my_notifications_response_test.dart -test/get_notification_count200_response_test.dart test/get_notification_count_response_test.dart -test/get_notifications200_response_test.dart test/get_notifications_response_test.dart test/get_page_by_urlid_api_response_test.dart test/get_pages_api_response_test.dart -test/get_pending_webhook_event_count200_response_test.dart test/get_pending_webhook_event_count_response_test.dart -test/get_pending_webhook_events200_response_test.dart test/get_pending_webhook_events_response_test.dart test/get_public_feed_posts_response_test.dart -test/get_question_config200_response_test.dart +test/get_public_pages_response_test.dart test/get_question_config_response_test.dart -test/get_question_configs200_response_test.dart test/get_question_configs_response_test.dart -test/get_question_result200_response_test.dart test/get_question_result_response_test.dart -test/get_question_results200_response_test.dart test/get_question_results_response_test.dart test/get_sso_user_by_email_api_response_test.dart test/get_sso_user_by_id_api_response_test.dart -test/get_sso_users200_response_test.dart +test/get_sso_users_response_test.dart test/get_subscriptions_api_response_test.dart -test/get_tenant200_response_test.dart -test/get_tenant_daily_usages200_response_test.dart test/get_tenant_daily_usages_response_test.dart -test/get_tenant_package200_response_test.dart +test/get_tenant_manual_badges_response_test.dart test/get_tenant_package_response_test.dart -test/get_tenant_packages200_response_test.dart test/get_tenant_packages_response_test.dart test/get_tenant_response_test.dart -test/get_tenant_user200_response_test.dart test/get_tenant_user_response_test.dart -test/get_tenant_users200_response_test.dart test/get_tenant_users_response_test.dart -test/get_tenants200_response_test.dart test/get_tenants_response_test.dart -test/get_ticket200_response_test.dart test/get_ticket_response_test.dart -test/get_tickets200_response_test.dart test/get_tickets_response_test.dart -test/get_user200_response_test.dart -test/get_user_badge200_response_test.dart -test/get_user_badge_progress_by_id200_response_test.dart -test/get_user_badge_progress_list200_response_test.dart -test/get_user_badges200_response_test.dart -test/get_user_notification_count200_response_test.dart +test/get_translations_response_test.dart +test/get_user_internal_profile_response_profile_test.dart +test/get_user_internal_profile_response_test.dart +test/get_user_manual_badges_response_test.dart test/get_user_notification_count_response_test.dart -test/get_user_notifications200_response_test.dart -test/get_user_presence_statuses200_response_test.dart test/get_user_presence_statuses_response_test.dart -test/get_user_reacts_public200_response_test.dart test/get_user_response_test.dart -test/get_votes200_response_test.dart -test/get_votes_for_user200_response_test.dart +test/get_user_trust_factor_response_test.dart +test/get_v1_page_likes_test.dart +test/get_v2_page_react_users_response_test.dart +test/get_v2_page_reacts_test.dart test/get_votes_for_user_response_test.dart test/get_votes_response_test.dart +test/gif_get_large_response_test.dart test/gif_rating_test.dart +test/gif_search_internal_error_test.dart +test/gif_search_response_images_inner_inner_test.dart +test/gif_search_response_test.dart test/header_account_notification_test.dart test/header_state_test.dart test/ignored_response_test.dart @@ -987,20 +964,45 @@ test/imported_site_type_test.dart test/live_event_extra_info_test.dart test/live_event_test.dart test/live_event_type_test.dart -test/lock_comment200_response_test.dart test/media_asset_test.dart test/mention_auto_complete_mode_test.dart test/meta_item_test.dart +test/moderation_api_child_comments_response_test.dart +test/moderation_api_comment_log_test.dart +test/moderation_api_comment_response_test.dart +test/moderation_api_comment_test.dart +test/moderation_api_count_comments_response_test.dart +test/moderation_api_get_comment_ids_response_test.dart +test/moderation_api_get_comments_response_test.dart +test/moderation_api_get_logs_response_test.dart +test/moderation_api_test.dart +test/moderation_comment_search_response_test.dart +test/moderation_export_response_test.dart +test/moderation_export_status_response_test.dart +test/moderation_filter_test.dart +test/moderation_page_search_projected_test.dart +test/moderation_page_search_response_test.dart +test/moderation_site_search_projected_test.dart +test/moderation_site_search_response_test.dart +test/moderation_suggest_response_test.dart +test/moderation_user_search_projected_test.dart +test/moderation_user_search_response_test.dart test/moderator_test.dart test/notification_and_count_test.dart test/notification_object_type_test.dart test/notification_type_test.dart +test/page_user_entry_test.dart +test/page_users_info_response_test.dart +test/page_users_offline_response_test.dart +test/page_users_online_response_test.dart +test/pages_sort_by_test.dart test/patch_domain_config_params_test.dart -test/patch_hash_tag200_response_test.dart +test/patch_domain_config_response_test.dart test/patch_page_api_response_test.dart test/patch_sso_user_api_response_test.dart test/pending_comment_to_sync_outbound_test.dart -test/pin_comment200_response_test.dart +test/post_remove_comment_response_test.dart +test/pre_ban_summary_test.dart test/pub_sub_comment_base_test.dart test/pub_sub_comment_test.dart test/pub_sub_vote_test.dart @@ -1012,7 +1014,9 @@ test/public_block_from_comment_params_test.dart test/public_comment_base_test.dart test/public_comment_test.dart test/public_feed_posts_response_test.dart +test/public_page_test.dart test/public_vote_test.dart +test/put_domain_config_response_test.dart test/put_sso_user_api_response_test.dart test/query_predicate_test.dart test/query_predicate_value_test.dart @@ -1025,11 +1029,10 @@ test/question_result_test.dart test/question_sub_question_visibility_test.dart test/question_when_save_test.dart test/react_body_params_test.dart -test/react_feed_post_public200_response_test.dart test/react_feed_post_response_test.dart test/record_string_before_string_or_null_after_string_or_null_value_test.dart -test/record_string_string_or_number_value_test.dart -test/render_email_template200_response_test.dart +test/remove_comment_action_response_test.dart +test/remove_user_badge_response_test.dart test/render_email_template_body_test.dart test/render_email_template_response_test.dart test/renderable_user_notification_test.dart @@ -1037,25 +1040,27 @@ test/repeat_comment_check_ignored_reason_test.dart test/repeat_comment_handling_action_test.dart test/replace_tenant_package_body_test.dart test/replace_tenant_user_body_test.dart -test/reset_user_notifications200_response_test.dart test/reset_user_notifications_response_test.dart -test/save_comment200_response_test.dart test/save_comment_response_optimized_test.dart +test/save_comments_bulk_response_test.dart test/save_comments_response_with_presence_test.dart -test/search_users200_response_test.dart test/search_users_response_test.dart +test/search_users_result_test.dart test/search_users_sectioned_response_test.dart -test/set_comment_text200_response_test.dart +test/set_comment_approved_response_test.dart +test/set_comment_text_params_test.dart +test/set_comment_text_response_test.dart test/set_comment_text_result_test.dart +test/set_user_trust_factor_response_test.dart test/size_preset_test.dart test/sort_directions_test.dart test/sortdir_test.dart test/spam_rule_test.dart test/sso_security_level_test.dart +test/tenant_badge_test.dart test/tenant_hash_tag_test.dart test/tenant_package_test.dart test/tos_config_test.dart -test/un_block_comment_public200_response_test.dart test/un_block_from_comment_params_test.dart test/unblock_success_test.dart test/updatable_comment_params_test.dart @@ -1075,9 +1080,10 @@ test/update_subscription_api_response_test.dart test/update_tenant_body_test.dart test/update_tenant_package_body_test.dart test/update_tenant_user_body_test.dart -test/update_user_badge200_response_test.dart test/update_user_badge_params_test.dart -test/update_user_notification_status200_response_test.dart +test/update_user_notification_comment_subscription_status_response_test.dart +test/update_user_notification_page_subscription_status_response_test.dart +test/update_user_notification_status_response_test.dart test/upload_image_response_test.dart test/user_badge_progress_test.dart test/user_badge_test.dart @@ -1091,8 +1097,8 @@ test/user_search_section_result_test.dart test/user_search_section_test.dart test/user_session_info_test.dart test/user_test.dart +test/users_list_location_test.dart test/vote_body_params_test.dart -test/vote_comment200_response_test.dart test/vote_delete_response_test.dart test/vote_response_test.dart test/vote_response_user_test.dart diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index a29ba3d..ca7bf6e 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.21.0 +7.23.0-SNAPSHOT diff --git a/client/README.md b/client/README.md index c829de1..481c65e 100644 --- a/client/README.md +++ b/client/README.md @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.0 -- Generator version: 7.21.0 +- Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.DartClientCodegen ## Requirements @@ -178,26 +178,86 @@ Class | Method | HTTP request | Description *DefaultApi* | [**updateTenantPackage**](doc//DefaultApi.md#updatetenantpackage) | **PATCH** /api/v1/tenant-packages/{id} | *DefaultApi* | [**updateTenantUser**](doc//DefaultApi.md#updatetenantuser) | **PATCH** /api/v1/tenant-users/{id} | *DefaultApi* | [**updateUserBadge**](doc//DefaultApi.md#updateuserbadge) | **PUT** /api/v1/user-badges/{id} | +*ModerationApi* | [**deleteModerationVote**](doc//ModerationApi.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | +*ModerationApi* | [**getApiComments**](doc//ModerationApi.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | +*ModerationApi* | [**getApiExportStatus**](doc//ModerationApi.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | +*ModerationApi* | [**getApiIds**](doc//ModerationApi.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | +*ModerationApi* | [**getBanUsersFromComment**](doc//ModerationApi.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | +*ModerationApi* | [**getCommentBanStatus**](doc//ModerationApi.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | +*ModerationApi* | [**getCommentChildren**](doc//ModerationApi.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | +*ModerationApi* | [**getCount**](doc//ModerationApi.md#getcount) | **GET** /auth/my-account/moderate-comments/count | +*ModerationApi* | [**getCounts**](doc//ModerationApi.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | +*ModerationApi* | [**getLogs**](doc//ModerationApi.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | +*ModerationApi* | [**getManualBadges**](doc//ModerationApi.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | +*ModerationApi* | [**getManualBadgesForUser**](doc//ModerationApi.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | +*ModerationApi* | [**getModerationComment**](doc//ModerationApi.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | +*ModerationApi* | [**getModerationCommentText**](doc//ModerationApi.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | +*ModerationApi* | [**getPreBanSummary**](doc//ModerationApi.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | +*ModerationApi* | [**getSearchCommentsSummary**](doc//ModerationApi.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | +*ModerationApi* | [**getSearchPages**](doc//ModerationApi.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | +*ModerationApi* | [**getSearchSites**](doc//ModerationApi.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | +*ModerationApi* | [**getSearchSuggest**](doc//ModerationApi.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | +*ModerationApi* | [**getSearchUsers**](doc//ModerationApi.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | +*ModerationApi* | [**getTrustFactor**](doc//ModerationApi.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | +*ModerationApi* | [**getUserBanPreference**](doc//ModerationApi.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | +*ModerationApi* | [**getUserInternalProfile**](doc//ModerationApi.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | +*ModerationApi* | [**postAdjustCommentVotes**](doc//ModerationApi.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | +*ModerationApi* | [**postApiExport**](doc//ModerationApi.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | +*ModerationApi* | [**postBanUserFromComment**](doc//ModerationApi.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | +*ModerationApi* | [**postBanUserUndo**](doc//ModerationApi.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | +*ModerationApi* | [**postBulkPreBanSummary**](doc//ModerationApi.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | +*ModerationApi* | [**postCommentsByIds**](doc//ModerationApi.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | +*ModerationApi* | [**postFlagComment**](doc//ModerationApi.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | +*ModerationApi* | [**postRemoveComment**](doc//ModerationApi.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | +*ModerationApi* | [**postRestoreDeletedComment**](doc//ModerationApi.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | +*ModerationApi* | [**postSetCommentApprovalStatus**](doc//ModerationApi.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | +*ModerationApi* | [**postSetCommentReviewStatus**](doc//ModerationApi.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | +*ModerationApi* | [**postSetCommentSpamStatus**](doc//ModerationApi.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | +*ModerationApi* | [**postSetCommentText**](doc//ModerationApi.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | +*ModerationApi* | [**postUnFlagComment**](doc//ModerationApi.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | +*ModerationApi* | [**postVote**](doc//ModerationApi.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | +*ModerationApi* | [**putAwardBadge**](doc//ModerationApi.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | +*ModerationApi* | [**putCloseThread**](doc//ModerationApi.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | +*ModerationApi* | [**putRemoveBadge**](doc//ModerationApi.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | +*ModerationApi* | [**putReopenThread**](doc//ModerationApi.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | +*ModerationApi* | [**setTrustFactor**](doc//ModerationApi.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | *PublicApi* | [**blockFromCommentPublic**](doc//PublicApi.md#blockfromcommentpublic) | **POST** /block-from-comment/{commentId} | *PublicApi* | [**checkedCommentsForBlocked**](doc//PublicApi.md#checkedcommentsforblocked) | **GET** /check-blocked-comments | *PublicApi* | [**createCommentPublic**](doc//PublicApi.md#createcommentpublic) | **POST** /comments/{tenantId} | *PublicApi* | [**createFeedPostPublic**](doc//PublicApi.md#createfeedpostpublic) | **POST** /feed-posts/{tenantId} | +*PublicApi* | [**createV1PageReact**](doc//PublicApi.md#createv1pagereact) | **POST** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**createV2PageReact**](doc//PublicApi.md#createv2pagereact) | **POST** /page-reacts/v2/{tenantId} | *PublicApi* | [**deleteCommentPublic**](doc//PublicApi.md#deletecommentpublic) | **DELETE** /comments/{tenantId}/{commentId} | *PublicApi* | [**deleteCommentVote**](doc//PublicApi.md#deletecommentvote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | *PublicApi* | [**deleteFeedPostPublic**](doc//PublicApi.md#deletefeedpostpublic) | **DELETE** /feed-posts/{tenantId}/{postId} | +*PublicApi* | [**deleteV1PageReact**](doc//PublicApi.md#deletev1pagereact) | **DELETE** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**deleteV2PageReact**](doc//PublicApi.md#deletev2pagereact) | **DELETE** /page-reacts/v2/{tenantId} | *PublicApi* | [**flagCommentPublic**](doc//PublicApi.md#flagcommentpublic) | **POST** /flag-comment/{commentId} | *PublicApi* | [**getCommentText**](doc//PublicApi.md#getcommenttext) | **GET** /comments/{tenantId}/{commentId}/text | *PublicApi* | [**getCommentVoteUserNames**](doc//PublicApi.md#getcommentvoteusernames) | **GET** /comments/{tenantId}/{commentId}/votes | +*PublicApi* | [**getCommentsForUser**](doc//PublicApi.md#getcommentsforuser) | **GET** /comments-for-user | *PublicApi* | [**getCommentsPublic**](doc//PublicApi.md#getcommentspublic) | **GET** /comments/{tenantId} | *PublicApi* | [**getEventLog**](doc//PublicApi.md#geteventlog) | **GET** /event-log/{tenantId} | *PublicApi* | [**getFeedPostsPublic**](doc//PublicApi.md#getfeedpostspublic) | **GET** /feed-posts/{tenantId} | *PublicApi* | [**getFeedPostsStats**](doc//PublicApi.md#getfeedpostsstats) | **GET** /feed-posts/{tenantId}/stats | +*PublicApi* | [**getGifLarge**](doc//PublicApi.md#getgiflarge) | **GET** /gifs/get-large/{tenantId} | +*PublicApi* | [**getGifsSearch**](doc//PublicApi.md#getgifssearch) | **GET** /gifs/search/{tenantId} | +*PublicApi* | [**getGifsTrending**](doc//PublicApi.md#getgifstrending) | **GET** /gifs/trending/{tenantId} | *PublicApi* | [**getGlobalEventLog**](doc//PublicApi.md#getglobaleventlog) | **GET** /event-log/global/{tenantId} | +*PublicApi* | [**getOfflineUsers**](doc//PublicApi.md#getofflineusers) | **GET** /pages/{tenantId}/users/offline | +*PublicApi* | [**getOnlineUsers**](doc//PublicApi.md#getonlineusers) | **GET** /pages/{tenantId}/users/online | +*PublicApi* | [**getPagesPublic**](doc//PublicApi.md#getpagespublic) | **GET** /pages/{tenantId} | +*PublicApi* | [**getTranslations**](doc//PublicApi.md#gettranslations) | **GET** /translations/{namespace}/{component} | *PublicApi* | [**getUserNotificationCount**](doc//PublicApi.md#getusernotificationcount) | **GET** /user-notifications/get-count | *PublicApi* | [**getUserNotifications**](doc//PublicApi.md#getusernotifications) | **GET** /user-notifications | *PublicApi* | [**getUserPresenceStatuses**](doc//PublicApi.md#getuserpresencestatuses) | **GET** /user-presence-status | *PublicApi* | [**getUserReactsPublic**](doc//PublicApi.md#getuserreactspublic) | **GET** /feed-posts/{tenantId}/user-reacts | +*PublicApi* | [**getUsersInfo**](doc//PublicApi.md#getusersinfo) | **GET** /pages/{tenantId}/users/info | +*PublicApi* | [**getV1PageLikes**](doc//PublicApi.md#getv1pagelikes) | **GET** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**getV2PageReactUsers**](doc//PublicApi.md#getv2pagereactusers) | **GET** /page-reacts/v2/{tenantId}/list | +*PublicApi* | [**getV2PageReacts**](doc//PublicApi.md#getv2pagereacts) | **GET** /page-reacts/v2/{tenantId} | *PublicApi* | [**lockComment**](doc//PublicApi.md#lockcomment) | **POST** /comments/{tenantId}/{commentId}/lock | +*PublicApi* | [**logoutPublic**](doc//PublicApi.md#logoutpublic) | **PUT** /auth/logout | *PublicApi* | [**pinComment**](doc//PublicApi.md#pincomment) | **POST** /comments/{tenantId}/{commentId}/pin | *PublicApi* | [**reactFeedPostPublic**](doc//PublicApi.md#reactfeedpostpublic) | **POST** /feed-posts/{tenantId}/react/{postId} | *PublicApi* | [**resetUserNotificationCount**](doc//PublicApi.md#resetusernotificationcount) | **POST** /user-notifications/reset-count | @@ -218,9 +278,14 @@ Class | Method | HTTP request | Description ## Documentation For Models - [APIAuditLog](doc//APIAuditLog.md) + - [APIBanUserChangeLog](doc//APIBanUserChangeLog.md) + - [APIBanUserChangedValues](doc//APIBanUserChangedValues.md) + - [APIBannedUser](doc//APIBannedUser.md) + - [APIBannedUserWithMultiMatchInfo](doc//APIBannedUserWithMultiMatchInfo.md) - [APIComment](doc//APIComment.md) - [APICommentBase](doc//APICommentBase.md) - [APICommentBaseMeta](doc//APICommentBaseMeta.md) + - [APICommentCommonBannedUser](doc//APICommentCommonBannedUser.md) - [APICreateUserBadgeResponse](doc//APICreateUserBadgeResponse.md) - [APIDomainConfiguration](doc//APIDomainConfiguration.md) - [APIEmptyResponse](doc//APIEmptyResponse.md) @@ -232,6 +297,8 @@ Class | Method | HTTP request | Description - [APIGetUserBadgeProgressResponse](doc//APIGetUserBadgeProgressResponse.md) - [APIGetUserBadgeResponse](doc//APIGetUserBadgeResponse.md) - [APIGetUserBadgesResponse](doc//APIGetUserBadgesResponse.md) + - [APIModerateGetUserBanPreferencesResponse](doc//APIModerateGetUserBanPreferencesResponse.md) + - [APIModerateUserBanPreferences](doc//APIModerateUserBanPreferences.md) - [APIPage](doc//APIPage.md) - [APISSOUser](doc//APISSOUser.md) - [APISaveCommentResponse](doc//APISaveCommentResponse.md) @@ -242,16 +309,17 @@ Class | Method | HTTP request | Description - [APITicketDetail](doc//APITicketDetail.md) - [APITicketFile](doc//APITicketFile.md) - [APIUserSubscription](doc//APIUserSubscription.md) - - [AddDomainConfig200Response](doc//AddDomainConfig200Response.md) - - [AddDomainConfig200ResponseAnyOf](doc//AddDomainConfig200ResponseAnyOf.md) - [AddDomainConfigParams](doc//AddDomainConfigParams.md) - - [AddHashTag200Response](doc//AddHashTag200Response.md) - - [AddHashTagsBulk200Response](doc//AddHashTagsBulk200Response.md) + - [AddDomainConfigResponse](doc//AddDomainConfigResponse.md) + - [AddDomainConfigResponseAnyOf](doc//AddDomainConfigResponseAnyOf.md) - [AddPageAPIResponse](doc//AddPageAPIResponse.md) - [AddSSOUserAPIResponse](doc//AddSSOUserAPIResponse.md) - - [AggregateQuestionResults200Response](doc//AggregateQuestionResults200Response.md) + - [AdjustCommentVotesParams](doc//AdjustCommentVotesParams.md) + - [AdjustVotesResponse](doc//AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](doc//AggregateQuestionResultsResponse.md) + - [AggregateResponse](doc//AggregateResponse.md) - [AggregateTimeBucket](doc//AggregateTimeBucket.md) + - [AggregationAPIError](doc//AggregationAPIError.md) - [AggregationItem](doc//AggregationItem.md) - [AggregationOpType](doc//AggregationOpType.md) - [AggregationOperation](doc//AggregationOperation.md) @@ -260,24 +328,30 @@ Class | Method | HTTP request | Description - [AggregationResponse](doc//AggregationResponse.md) - [AggregationResponseStats](doc//AggregationResponseStats.md) - [AggregationValue](doc//AggregationValue.md) + - [AwardUserBadgeResponse](doc//AwardUserBadgeResponse.md) + - [BanUserFromCommentResult](doc//BanUserFromCommentResult.md) + - [BanUserUndoParams](doc//BanUserUndoParams.md) + - [BannedUserMatch](doc//BannedUserMatch.md) + - [BannedUserMatchMatchedOnValue](doc//BannedUserMatchMatchedOnValue.md) + - [BannedUserMatchType](doc//BannedUserMatchType.md) - [BillingInfo](doc//BillingInfo.md) - [BlockFromCommentParams](doc//BlockFromCommentParams.md) - - [BlockFromCommentPublic200Response](doc//BlockFromCommentPublic200Response.md) - [BlockSuccess](doc//BlockSuccess.md) + - [BuildModerationFilterParams](doc//BuildModerationFilterParams.md) + - [BuildModerationFilterResponse](doc//BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](doc//BulkAggregateQuestionItem.md) - - [BulkAggregateQuestionResults200Response](doc//BulkAggregateQuestionResults200Response.md) - [BulkAggregateQuestionResultsRequest](doc//BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](doc//BulkAggregateQuestionResultsResponse.md) - [BulkCreateHashTagsBody](doc//BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBodyTagsInner](doc//BulkCreateHashTagsBodyTagsInner.md) - [BulkCreateHashTagsResponse](doc//BulkCreateHashTagsResponse.md) + - [BulkCreateHashTagsResponseResultsInner](doc//BulkCreateHashTagsResponseResultsInner.md) + - [BulkPreBanParams](doc//BulkPreBanParams.md) + - [BulkPreBanSummary](doc//BulkPreBanSummary.md) - [ChangeCommentPinStatusResponse](doc//ChangeCommentPinStatusResponse.md) - - [ChangeTicketState200Response](doc//ChangeTicketState200Response.md) - [ChangeTicketStateBody](doc//ChangeTicketStateBody.md) - [ChangeTicketStateResponse](doc//ChangeTicketStateResponse.md) - [CheckBlockedCommentsResponse](doc//CheckBlockedCommentsResponse.md) - - [CheckedCommentsForBlocked200Response](doc//CheckedCommentsForBlocked200Response.md) - - [CombineCommentsWithQuestionResults200Response](doc//CombineCommentsWithQuestionResults200Response.md) - [CombineQuestionResultsWithCommentsResponse](doc//CombineQuestionResultsWithCommentsResponse.md) - [CommentData](doc//CommentData.md) - [CommentHTMLRenderingMode](doc//CommentHTMLRenderingMode.md) @@ -292,56 +366,42 @@ Class | Method | HTTP request | Description - [CommentUserHashTagInfo](doc//CommentUserHashTagInfo.md) - [CommentUserMentionInfo](doc//CommentUserMentionInfo.md) - [CommenterNameFormats](doc//CommenterNameFormats.md) + - [CommentsByIdsParams](doc//CommentsByIdsParams.md) - [CreateAPIPageData](doc//CreateAPIPageData.md) - [CreateAPISSOUserData](doc//CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](doc//CreateAPIUserSubscriptionData.md) - [CreateCommentParams](doc//CreateCommentParams.md) - - [CreateCommentPublic200Response](doc//CreateCommentPublic200Response.md) - - [CreateEmailTemplate200Response](doc//CreateEmailTemplate200Response.md) - [CreateEmailTemplateBody](doc//CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](doc//CreateEmailTemplateResponse.md) - - [CreateFeedPost200Response](doc//CreateFeedPost200Response.md) - [CreateFeedPostParams](doc//CreateFeedPostParams.md) - - [CreateFeedPostPublic200Response](doc//CreateFeedPostPublic200Response.md) - [CreateFeedPostResponse](doc//CreateFeedPostResponse.md) - [CreateFeedPostsResponse](doc//CreateFeedPostsResponse.md) - [CreateHashTagBody](doc//CreateHashTagBody.md) - [CreateHashTagResponse](doc//CreateHashTagResponse.md) - - [CreateModerator200Response](doc//CreateModerator200Response.md) - [CreateModeratorBody](doc//CreateModeratorBody.md) - [CreateModeratorResponse](doc//CreateModeratorResponse.md) - - [CreateQuestionConfig200Response](doc//CreateQuestionConfig200Response.md) - [CreateQuestionConfigBody](doc//CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](doc//CreateQuestionConfigResponse.md) - - [CreateQuestionResult200Response](doc//CreateQuestionResult200Response.md) - [CreateQuestionResultBody](doc//CreateQuestionResultBody.md) - [CreateQuestionResultResponse](doc//CreateQuestionResultResponse.md) - [CreateSubscriptionAPIResponse](doc//CreateSubscriptionAPIResponse.md) - - [CreateTenant200Response](doc//CreateTenant200Response.md) - [CreateTenantBody](doc//CreateTenantBody.md) - - [CreateTenantPackage200Response](doc//CreateTenantPackage200Response.md) - [CreateTenantPackageBody](doc//CreateTenantPackageBody.md) - [CreateTenantPackageResponse](doc//CreateTenantPackageResponse.md) - [CreateTenantResponse](doc//CreateTenantResponse.md) - - [CreateTenantUser200Response](doc//CreateTenantUser200Response.md) - [CreateTenantUserBody](doc//CreateTenantUserBody.md) - [CreateTenantUserResponse](doc//CreateTenantUserResponse.md) - - [CreateTicket200Response](doc//CreateTicket200Response.md) - [CreateTicketBody](doc//CreateTicketBody.md) - [CreateTicketResponse](doc//CreateTicketResponse.md) - - [CreateUserBadge200Response](doc//CreateUserBadge200Response.md) - [CreateUserBadgeParams](doc//CreateUserBadgeParams.md) + - [CreateV1PageReact](doc//CreateV1PageReact.md) - [CustomConfigParameters](doc//CustomConfigParameters.md) - [CustomEmailTemplate](doc//CustomEmailTemplate.md) - - [DeleteComment200Response](doc//DeleteComment200Response.md) - [DeleteCommentAction](doc//DeleteCommentAction.md) - - [DeleteCommentPublic200Response](doc//DeleteCommentPublic200Response.md) - [DeleteCommentResult](doc//DeleteCommentResult.md) - - [DeleteCommentVote200Response](doc//DeleteCommentVote200Response.md) - - [DeleteDomainConfig200Response](doc//DeleteDomainConfig200Response.md) - - [DeleteFeedPostPublic200Response](doc//DeleteFeedPostPublic200Response.md) - - [DeleteFeedPostPublic200ResponseAnyOf](doc//DeleteFeedPostPublic200ResponseAnyOf.md) - - [DeleteHashTagRequest](doc//DeleteHashTagRequest.md) + - [DeleteDomainConfigResponse](doc//DeleteDomainConfigResponse.md) + - [DeleteFeedPostPublicResponse](doc//DeleteFeedPostPublicResponse.md) + - [DeleteHashTagRequestBody](doc//DeleteHashTagRequestBody.md) - [DeletePageAPIResponse](doc//DeletePageAPIResponse.md) - [DeleteSSOUserAPIResponse](doc//DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](doc//DeleteSubscriptionAPIResponse.md) @@ -360,104 +420,77 @@ Class | Method | HTTP request | Description - [FeedPostsStatsResponse](doc//FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](doc//FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](doc//FindCommentsByRangeResponse.md) - - [FlagComment200Response](doc//FlagComment200Response.md) - - [FlagCommentPublic200Response](doc//FlagCommentPublic200Response.md) - [FlagCommentResponse](doc//FlagCommentResponse.md) - - [GetAuditLogs200Response](doc//GetAuditLogs200Response.md) - [GetAuditLogsResponse](doc//GetAuditLogsResponse.md) - - [GetCachedNotificationCount200Response](doc//GetCachedNotificationCount200Response.md) + - [GetBannedUsersCountResponse](doc//GetBannedUsersCountResponse.md) + - [GetBannedUsersFromCommentResponse](doc//GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](doc//GetCachedNotificationCountResponse.md) - - [GetComment200Response](doc//GetComment200Response.md) - - [GetCommentText200Response](doc//GetCommentText200Response.md) - - [GetCommentVoteUserNames200Response](doc//GetCommentVoteUserNames200Response.md) + - [GetCommentBanStatusResponse](doc//GetCommentBanStatusResponse.md) + - [GetCommentTextResponse](doc//GetCommentTextResponse.md) - [GetCommentVoteUserNamesSuccessResponse](doc//GetCommentVoteUserNamesSuccessResponse.md) - - [GetComments200Response](doc//GetComments200Response.md) - - [GetCommentsPublic200Response](doc//GetCommentsPublic200Response.md) + - [GetCommentsForUserResponse](doc//GetCommentsForUserResponse.md) - [GetCommentsResponsePublicComment](doc//GetCommentsResponsePublicComment.md) - [GetCommentsResponseWithPresencePublicComment](doc//GetCommentsResponseWithPresencePublicComment.md) - - [GetDomainConfig200Response](doc//GetDomainConfig200Response.md) - - [GetDomainConfigs200Response](doc//GetDomainConfigs200Response.md) - - [GetDomainConfigs200ResponseAnyOf](doc//GetDomainConfigs200ResponseAnyOf.md) - - [GetDomainConfigs200ResponseAnyOf1](doc//GetDomainConfigs200ResponseAnyOf1.md) - - [GetEmailTemplate200Response](doc//GetEmailTemplate200Response.md) - - [GetEmailTemplateDefinitions200Response](doc//GetEmailTemplateDefinitions200Response.md) + - [GetDomainConfigResponse](doc//GetDomainConfigResponse.md) + - [GetDomainConfigsResponse](doc//GetDomainConfigsResponse.md) + - [GetDomainConfigsResponseAnyOf](doc//GetDomainConfigsResponseAnyOf.md) + - [GetDomainConfigsResponseAnyOf1](doc//GetDomainConfigsResponseAnyOf1.md) - [GetEmailTemplateDefinitionsResponse](doc//GetEmailTemplateDefinitionsResponse.md) - - [GetEmailTemplateRenderErrors200Response](doc//GetEmailTemplateRenderErrors200Response.md) - [GetEmailTemplateRenderErrorsResponse](doc//GetEmailTemplateRenderErrorsResponse.md) - [GetEmailTemplateResponse](doc//GetEmailTemplateResponse.md) - - [GetEmailTemplates200Response](doc//GetEmailTemplates200Response.md) - [GetEmailTemplatesResponse](doc//GetEmailTemplatesResponse.md) - - [GetEventLog200Response](doc//GetEventLog200Response.md) - [GetEventLogResponse](doc//GetEventLogResponse.md) - - [GetFeedPosts200Response](doc//GetFeedPosts200Response.md) - - [GetFeedPostsPublic200Response](doc//GetFeedPostsPublic200Response.md) - [GetFeedPostsResponse](doc//GetFeedPostsResponse.md) - - [GetFeedPostsStats200Response](doc//GetFeedPostsStats200Response.md) - - [GetHashTags200Response](doc//GetHashTags200Response.md) + - [GetGifsSearchResponse](doc//GetGifsSearchResponse.md) + - [GetGifsTrendingResponse](doc//GetGifsTrendingResponse.md) - [GetHashTagsResponse](doc//GetHashTagsResponse.md) - - [GetModerator200Response](doc//GetModerator200Response.md) - [GetModeratorResponse](doc//GetModeratorResponse.md) - - [GetModerators200Response](doc//GetModerators200Response.md) - [GetModeratorsResponse](doc//GetModeratorsResponse.md) - [GetMyNotificationsResponse](doc//GetMyNotificationsResponse.md) - - [GetNotificationCount200Response](doc//GetNotificationCount200Response.md) - [GetNotificationCountResponse](doc//GetNotificationCountResponse.md) - - [GetNotifications200Response](doc//GetNotifications200Response.md) - [GetNotificationsResponse](doc//GetNotificationsResponse.md) - [GetPageByURLIdAPIResponse](doc//GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](doc//GetPagesAPIResponse.md) - - [GetPendingWebhookEventCount200Response](doc//GetPendingWebhookEventCount200Response.md) - [GetPendingWebhookEventCountResponse](doc//GetPendingWebhookEventCountResponse.md) - - [GetPendingWebhookEvents200Response](doc//GetPendingWebhookEvents200Response.md) - [GetPendingWebhookEventsResponse](doc//GetPendingWebhookEventsResponse.md) - [GetPublicFeedPostsResponse](doc//GetPublicFeedPostsResponse.md) - - [GetQuestionConfig200Response](doc//GetQuestionConfig200Response.md) + - [GetPublicPagesResponse](doc//GetPublicPagesResponse.md) - [GetQuestionConfigResponse](doc//GetQuestionConfigResponse.md) - - [GetQuestionConfigs200Response](doc//GetQuestionConfigs200Response.md) - [GetQuestionConfigsResponse](doc//GetQuestionConfigsResponse.md) - - [GetQuestionResult200Response](doc//GetQuestionResult200Response.md) - [GetQuestionResultResponse](doc//GetQuestionResultResponse.md) - - [GetQuestionResults200Response](doc//GetQuestionResults200Response.md) - [GetQuestionResultsResponse](doc//GetQuestionResultsResponse.md) - [GetSSOUserByEmailAPIResponse](doc//GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](doc//GetSSOUserByIdAPIResponse.md) - - [GetSSOUsers200Response](doc//GetSSOUsers200Response.md) + - [GetSSOUsersResponse](doc//GetSSOUsersResponse.md) - [GetSubscriptionsAPIResponse](doc//GetSubscriptionsAPIResponse.md) - - [GetTenant200Response](doc//GetTenant200Response.md) - - [GetTenantDailyUsages200Response](doc//GetTenantDailyUsages200Response.md) - [GetTenantDailyUsagesResponse](doc//GetTenantDailyUsagesResponse.md) - - [GetTenantPackage200Response](doc//GetTenantPackage200Response.md) + - [GetTenantManualBadgesResponse](doc//GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](doc//GetTenantPackageResponse.md) - - [GetTenantPackages200Response](doc//GetTenantPackages200Response.md) - [GetTenantPackagesResponse](doc//GetTenantPackagesResponse.md) - [GetTenantResponse](doc//GetTenantResponse.md) - - [GetTenantUser200Response](doc//GetTenantUser200Response.md) - [GetTenantUserResponse](doc//GetTenantUserResponse.md) - - [GetTenantUsers200Response](doc//GetTenantUsers200Response.md) - [GetTenantUsersResponse](doc//GetTenantUsersResponse.md) - - [GetTenants200Response](doc//GetTenants200Response.md) - [GetTenantsResponse](doc//GetTenantsResponse.md) - - [GetTicket200Response](doc//GetTicket200Response.md) - [GetTicketResponse](doc//GetTicketResponse.md) - - [GetTickets200Response](doc//GetTickets200Response.md) - [GetTicketsResponse](doc//GetTicketsResponse.md) - - [GetUser200Response](doc//GetUser200Response.md) - - [GetUserBadge200Response](doc//GetUserBadge200Response.md) - - [GetUserBadgeProgressById200Response](doc//GetUserBadgeProgressById200Response.md) - - [GetUserBadgeProgressList200Response](doc//GetUserBadgeProgressList200Response.md) - - [GetUserBadges200Response](doc//GetUserBadges200Response.md) - - [GetUserNotificationCount200Response](doc//GetUserNotificationCount200Response.md) + - [GetTranslationsResponse](doc//GetTranslationsResponse.md) + - [GetUserInternalProfileResponse](doc//GetUserInternalProfileResponse.md) + - [GetUserInternalProfileResponseProfile](doc//GetUserInternalProfileResponseProfile.md) + - [GetUserManualBadgesResponse](doc//GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](doc//GetUserNotificationCountResponse.md) - - [GetUserNotifications200Response](doc//GetUserNotifications200Response.md) - - [GetUserPresenceStatuses200Response](doc//GetUserPresenceStatuses200Response.md) - [GetUserPresenceStatusesResponse](doc//GetUserPresenceStatusesResponse.md) - - [GetUserReactsPublic200Response](doc//GetUserReactsPublic200Response.md) - [GetUserResponse](doc//GetUserResponse.md) - - [GetVotes200Response](doc//GetVotes200Response.md) - - [GetVotesForUser200Response](doc//GetVotesForUser200Response.md) + - [GetUserTrustFactorResponse](doc//GetUserTrustFactorResponse.md) + - [GetV1PageLikes](doc//GetV1PageLikes.md) + - [GetV2PageReactUsersResponse](doc//GetV2PageReactUsersResponse.md) + - [GetV2PageReacts](doc//GetV2PageReacts.md) - [GetVotesForUserResponse](doc//GetVotesForUserResponse.md) - [GetVotesResponse](doc//GetVotesResponse.md) + - [GifGetLargeResponse](doc//GifGetLargeResponse.md) - [GifRating](doc//GifRating.md) + - [GifSearchInternalError](doc//GifSearchInternalError.md) + - [GifSearchResponse](doc//GifSearchResponse.md) + - [GifSearchResponseImagesInnerInner](doc//GifSearchResponseImagesInnerInner.md) - [HeaderAccountNotification](doc//HeaderAccountNotification.md) - [HeaderState](doc//HeaderState.md) - [IgnoredResponse](doc//IgnoredResponse.md) @@ -467,20 +500,44 @@ Class | Method | HTTP request | Description - [LiveEvent](doc//LiveEvent.md) - [LiveEventExtraInfo](doc//LiveEventExtraInfo.md) - [LiveEventType](doc//LiveEventType.md) - - [LockComment200Response](doc//LockComment200Response.md) - [MediaAsset](doc//MediaAsset.md) - [MentionAutoCompleteMode](doc//MentionAutoCompleteMode.md) - [MetaItem](doc//MetaItem.md) + - [ModerationAPIChildCommentsResponse](doc//ModerationAPIChildCommentsResponse.md) + - [ModerationAPIComment](doc//ModerationAPIComment.md) + - [ModerationAPICommentLog](doc//ModerationAPICommentLog.md) + - [ModerationAPICommentResponse](doc//ModerationAPICommentResponse.md) + - [ModerationAPICountCommentsResponse](doc//ModerationAPICountCommentsResponse.md) + - [ModerationAPIGetCommentIdsResponse](doc//ModerationAPIGetCommentIdsResponse.md) + - [ModerationAPIGetCommentsResponse](doc//ModerationAPIGetCommentsResponse.md) + - [ModerationAPIGetLogsResponse](doc//ModerationAPIGetLogsResponse.md) + - [ModerationCommentSearchResponse](doc//ModerationCommentSearchResponse.md) + - [ModerationExportResponse](doc//ModerationExportResponse.md) + - [ModerationExportStatusResponse](doc//ModerationExportStatusResponse.md) + - [ModerationFilter](doc//ModerationFilter.md) + - [ModerationPageSearchProjected](doc//ModerationPageSearchProjected.md) + - [ModerationPageSearchResponse](doc//ModerationPageSearchResponse.md) + - [ModerationSiteSearchProjected](doc//ModerationSiteSearchProjected.md) + - [ModerationSiteSearchResponse](doc//ModerationSiteSearchResponse.md) + - [ModerationSuggestResponse](doc//ModerationSuggestResponse.md) + - [ModerationUserSearchProjected](doc//ModerationUserSearchProjected.md) + - [ModerationUserSearchResponse](doc//ModerationUserSearchResponse.md) - [Moderator](doc//Moderator.md) - [NotificationAndCount](doc//NotificationAndCount.md) - [NotificationObjectType](doc//NotificationObjectType.md) - [NotificationType](doc//NotificationType.md) + - [PageUserEntry](doc//PageUserEntry.md) + - [PageUsersInfoResponse](doc//PageUsersInfoResponse.md) + - [PageUsersOfflineResponse](doc//PageUsersOfflineResponse.md) + - [PageUsersOnlineResponse](doc//PageUsersOnlineResponse.md) + - [PagesSortBy](doc//PagesSortBy.md) - [PatchDomainConfigParams](doc//PatchDomainConfigParams.md) - - [PatchHashTag200Response](doc//PatchHashTag200Response.md) + - [PatchDomainConfigResponse](doc//PatchDomainConfigResponse.md) - [PatchPageAPIResponse](doc//PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](doc//PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](doc//PendingCommentToSyncOutbound.md) - - [PinComment200Response](doc//PinComment200Response.md) + - [PostRemoveCommentResponse](doc//PostRemoveCommentResponse.md) + - [PreBanSummary](doc//PreBanSummary.md) - [PubSubComment](doc//PubSubComment.md) - [PubSubCommentBase](doc//PubSubCommentBase.md) - [PubSubVote](doc//PubSubVote.md) @@ -491,7 +548,9 @@ Class | Method | HTTP request | Description - [PublicComment](doc//PublicComment.md) - [PublicCommentBase](doc//PublicCommentBase.md) - [PublicFeedPostsResponse](doc//PublicFeedPostsResponse.md) + - [PublicPage](doc//PublicPage.md) - [PublicVote](doc//PublicVote.md) + - [PutDomainConfigResponse](doc//PutDomainConfigResponse.md) - [PutSSOUserAPIResponse](doc//PutSSOUserAPIResponse.md) - [QueryPredicate](doc//QueryPredicate.md) - [QueryPredicateValue](doc//QueryPredicateValue.md) @@ -504,11 +563,10 @@ Class | Method | HTTP request | Description - [QuestionSubQuestionVisibility](doc//QuestionSubQuestionVisibility.md) - [QuestionWhenSave](doc//QuestionWhenSave.md) - [ReactBodyParams](doc//ReactBodyParams.md) - - [ReactFeedPostPublic200Response](doc//ReactFeedPostPublic200Response.md) - [ReactFeedPostResponse](doc//ReactFeedPostResponse.md) - [RecordStringBeforeStringOrNullAfterStringOrNullValue](doc//RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - - [RecordStringStringOrNumberValue](doc//RecordStringStringOrNumberValue.md) - - [RenderEmailTemplate200Response](doc//RenderEmailTemplate200Response.md) + - [RemoveCommentActionResponse](doc//RemoveCommentActionResponse.md) + - [RemoveUserBadgeResponse](doc//RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](doc//RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](doc//RenderEmailTemplateResponse.md) - [RenderableUserNotification](doc//RenderableUserNotification.md) @@ -516,25 +574,27 @@ Class | Method | HTTP request | Description - [RepeatCommentHandlingAction](doc//RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](doc//ReplaceTenantPackageBody.md) - [ReplaceTenantUserBody](doc//ReplaceTenantUserBody.md) - - [ResetUserNotifications200Response](doc//ResetUserNotifications200Response.md) - [ResetUserNotificationsResponse](doc//ResetUserNotificationsResponse.md) - [SORTDIR](doc//SORTDIR.md) - [SSOSecurityLevel](doc//SSOSecurityLevel.md) - - [SaveComment200Response](doc//SaveComment200Response.md) - [SaveCommentResponseOptimized](doc//SaveCommentResponseOptimized.md) + - [SaveCommentsBulkResponse](doc//SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](doc//SaveCommentsResponseWithPresence.md) - - [SearchUsers200Response](doc//SearchUsers200Response.md) - [SearchUsersResponse](doc//SearchUsersResponse.md) + - [SearchUsersResult](doc//SearchUsersResult.md) - [SearchUsersSectionedResponse](doc//SearchUsersSectionedResponse.md) - - [SetCommentText200Response](doc//SetCommentText200Response.md) + - [SetCommentApprovedResponse](doc//SetCommentApprovedResponse.md) + - [SetCommentTextParams](doc//SetCommentTextParams.md) + - [SetCommentTextResponse](doc//SetCommentTextResponse.md) - [SetCommentTextResult](doc//SetCommentTextResult.md) + - [SetUserTrustFactorResponse](doc//SetUserTrustFactorResponse.md) - [SizePreset](doc//SizePreset.md) - [SortDirections](doc//SortDirections.md) - [SpamRule](doc//SpamRule.md) - [TOSConfig](doc//TOSConfig.md) + - [TenantBadge](doc//TenantBadge.md) - [TenantHashTag](doc//TenantHashTag.md) - [TenantPackage](doc//TenantPackage.md) - - [UnBlockCommentPublic200Response](doc//UnBlockCommentPublic200Response.md) - [UnBlockFromCommentParams](doc//UnBlockFromCommentParams.md) - [UnblockSuccess](doc//UnblockSuccess.md) - [UpdatableCommentParams](doc//UpdatableCommentParams.md) @@ -554,9 +614,10 @@ Class | Method | HTTP request | Description - [UpdateTenantBody](doc//UpdateTenantBody.md) - [UpdateTenantPackageBody](doc//UpdateTenantPackageBody.md) - [UpdateTenantUserBody](doc//UpdateTenantUserBody.md) - - [UpdateUserBadge200Response](doc//UpdateUserBadge200Response.md) - [UpdateUserBadgeParams](doc//UpdateUserBadgeParams.md) - - [UpdateUserNotificationStatus200Response](doc//UpdateUserNotificationStatus200Response.md) + - [UpdateUserNotificationCommentSubscriptionStatusResponse](doc//UpdateUserNotificationCommentSubscriptionStatusResponse.md) + - [UpdateUserNotificationPageSubscriptionStatusResponse](doc//UpdateUserNotificationPageSubscriptionStatusResponse.md) + - [UpdateUserNotificationStatusResponse](doc//UpdateUserNotificationStatusResponse.md) - [UploadImageResponse](doc//UploadImageResponse.md) - [User](doc//User.md) - [UserBadge](doc//UserBadge.md) @@ -570,8 +631,8 @@ Class | Method | HTTP request | Description - [UserSearchSection](doc//UserSearchSection.md) - [UserSearchSectionResult](doc//UserSearchSectionResult.md) - [UserSessionInfo](doc//UserSessionInfo.md) + - [UsersListLocation](doc//UsersListLocation.md) - [VoteBodyParams](doc//VoteBodyParams.md) - - [VoteComment200Response](doc//VoteComment200Response.md) - [VoteDeleteResponse](doc//VoteDeleteResponse.md) - [VoteResponse](doc//VoteResponse.md) - [VoteResponseUser](doc//VoteResponseUser.md) diff --git a/client/doc/APIBanUserChangeLog.md b/client/doc/APIBanUserChangeLog.md new file mode 100644 index 0000000..da8a064 --- /dev/null +++ b/client/doc/APIBanUserChangeLog.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.APIBanUserChangeLog + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdBannedUserId** | **String** | | [optional] +**updatedBannedUserId** | **String** | | [optional] +**deletedBannedUsers** | [**List**](APIBannedUser.md) | | [optional] [default to const []] +**changedValuesBefore** | [**APIBanUserChangedValues**](APIBanUserChangedValues.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/APIBanUserChangedValues.md b/client/doc/APIBanUserChangedValues.md new file mode 100644 index 0000000..b93eb0c --- /dev/null +++ b/client/doc/APIBanUserChangedValues.md @@ -0,0 +1,27 @@ +# fastcomments_dart.model.APIBanUserChangedValues + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**tenantId** | **String** | | [optional] +**userId** | **String** | | [optional] +**email** | **String** | | [optional] +**username** | **String** | | [optional] +**ipHash** | **String** | | [optional] +**createdAt** | [**DateTime**](DateTime.md) | | [optional] +**bannedByUserId** | **String** | | [optional] +**bannedCommentText** | **String** | | [optional] +**banType** | **String** | | [optional] +**bannedUntil** | [**DateTime**](DateTime.md) | | [optional] +**hasEmailWildcard** | **bool** | | [optional] +**banReason** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/APIBannedUser.md b/client/doc/APIBannedUser.md new file mode 100644 index 0000000..7b17315 --- /dev/null +++ b/client/doc/APIBannedUser.md @@ -0,0 +1,27 @@ +# fastcomments_dart.model.APIBannedUser + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**tenantId** | **String** | | +**userId** | **String** | | [optional] +**email** | **String** | | [optional] +**username** | **String** | | [optional] +**ipHash** | **String** | | [optional] +**createdAt** | [**DateTime**](DateTime.md) | | +**bannedByUserId** | **String** | | +**bannedCommentText** | **String** | | +**banType** | **String** | | +**bannedUntil** | [**DateTime**](DateTime.md) | | +**hasEmailWildcard** | **bool** | | +**banReason** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/APIBannedUserWithMultiMatchInfo.md b/client/doc/APIBannedUserWithMultiMatchInfo.md new file mode 100644 index 0000000..997898c --- /dev/null +++ b/client/doc/APIBannedUserWithMultiMatchInfo.md @@ -0,0 +1,23 @@ +# fastcomments_dart.model.APIBannedUserWithMultiMatchInfo + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**userId** | **String** | | [optional] +**banType** | **String** | | +**email** | **String** | | [optional] +**ipHash** | **String** | | [optional] +**bannedUntil** | [**DateTime**](DateTime.md) | | +**hasEmailWildcard** | **bool** | | +**banReason** | **String** | | [optional] +**matches** | [**List**](BannedUserMatch.md) | | [default to const []] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/APICommentCommonBannedUser.md b/client/doc/APICommentCommonBannedUser.md new file mode 100644 index 0000000..9eb6cc4 --- /dev/null +++ b/client/doc/APICommentCommonBannedUser.md @@ -0,0 +1,22 @@ +# fastcomments_dart.model.APICommentCommonBannedUser + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**userId** | **String** | | [optional] +**banType** | **String** | | +**email** | **String** | | [optional] +**ipHash** | **String** | | [optional] +**bannedUntil** | [**DateTime**](DateTime.md) | | +**hasEmailWildcard** | **bool** | | +**banReason** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/APIModerateGetUserBanPreferencesResponse.md b/client/doc/APIModerateGetUserBanPreferencesResponse.md new file mode 100644 index 0000000..110a8b2 --- /dev/null +++ b/client/doc/APIModerateGetUserBanPreferencesResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.APIModerateGetUserBanPreferencesResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/APIModerateUserBanPreferences.md b/client/doc/APIModerateUserBanPreferences.md new file mode 100644 index 0000000..4019a00 --- /dev/null +++ b/client/doc/APIModerateUserBanPreferences.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.APIModerateUserBanPreferences + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shouldBanEmail** | **bool** | | +**shouldBanByIP** | **bool** | | +**lastBanType** | **String** | | +**lastBanDuration** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetDomainConfig200Response.md b/client/doc/AddDomainConfigResponse.md similarity index 68% rename from client/doc/GetDomainConfig200Response.md rename to client/doc/AddDomainConfigResponse.md index 20597eb..5551232 100644 --- a/client/doc/GetDomainConfig200Response.md +++ b/client/doc/AddDomainConfigResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.GetDomainConfig200Response +# fastcomments_dart.model.AddDomainConfigResponse ## Load the model package ```dart @@ -8,10 +8,10 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | **Object** | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] **status** | **Object** | | -**reason** | **String** | | -**code** | **String** | | +**configuration** | **Object** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/doc/AddDomainConfig200ResponseAnyOf.md b/client/doc/AddDomainConfigResponseAnyOf.md similarity index 88% rename from client/doc/AddDomainConfig200ResponseAnyOf.md rename to client/doc/AddDomainConfigResponseAnyOf.md index a12967f..37b8937 100644 --- a/client/doc/AddDomainConfig200ResponseAnyOf.md +++ b/client/doc/AddDomainConfigResponseAnyOf.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.AddDomainConfig200ResponseAnyOf +# fastcomments_dart.model.AddDomainConfigResponseAnyOf ## Load the model package ```dart diff --git a/client/doc/AddHashTag200Response.md b/client/doc/AddHashTag200Response.md deleted file mode 100644 index 8ff921d..0000000 --- a/client/doc/AddHashTag200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.AddHashTag200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**hashTag** | [**TenantHashTag**](TenantHashTag.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/AddHashTagsBulk200Response.md b/client/doc/AddHashTagsBulk200Response.md deleted file mode 100644 index 41a5bad..0000000 --- a/client/doc/AddHashTagsBulk200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.AddHashTagsBulk200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**results** | [**List**](AddHashTag200Response.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/AdjustCommentVotesParams.md b/client/doc/AdjustCommentVotesParams.md new file mode 100644 index 0000000..6b2809c --- /dev/null +++ b/client/doc/AdjustCommentVotesParams.md @@ -0,0 +1,15 @@ +# fastcomments_dart.model.AdjustCommentVotesParams + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjustVoteAmount** | **double** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/AdjustVotesResponse.md b/client/doc/AdjustVotesResponse.md new file mode 100644 index 0000000..7310db8 --- /dev/null +++ b/client/doc/AdjustVotesResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.AdjustVotesResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**newCommentVotes** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/AggregateQuestionResults200Response.md b/client/doc/AggregateQuestionResults200Response.md deleted file mode 100644 index a735e42..0000000 --- a/client/doc/AggregateQuestionResults200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.AggregateQuestionResults200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/LockComment200Response.md b/client/doc/AggregateResponse.md similarity index 51% rename from client/doc/LockComment200Response.md rename to client/doc/AggregateResponse.md index d69b160..c6f457c 100644 --- a/client/doc/LockComment200Response.md +++ b/client/doc/AggregateResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.LockComment200Response +# fastcomments_dart.model.AggregateResponse ## Load the model package ```dart @@ -9,13 +9,11 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] +**data** | [**List**](AggregationItem.md) | | [optional] [default to const []] +**stats** | [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] +**reason** | **String** | | [optional] +**code** | **String** | | [optional] +**validResourceNames** | **List** | | [optional] [default to const []] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/doc/AddDomainConfig200Response.md b/client/doc/AggregationAPIError.md similarity index 70% rename from client/doc/AddDomainConfig200Response.md rename to client/doc/AggregationAPIError.md index dd341d1..9b50520 100644 --- a/client/doc/AddDomainConfig200Response.md +++ b/client/doc/AggregationAPIError.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.AddDomainConfig200Response +# fastcomments_dart.model.AggregationAPIError ## Load the model package ```dart @@ -8,10 +8,10 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | **reason** | **String** | | **code** | **String** | | -**status** | **Object** | | -**configuration** | **Object** | | +**validResourceNames** | **List** | | [optional] [default to const []] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/doc/AwardUserBadgeResponse.md b/client/doc/AwardUserBadgeResponse.md new file mode 100644 index 0000000..137a047 --- /dev/null +++ b/client/doc/AwardUserBadgeResponse.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.AwardUserBadgeResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notes** | **List** | | [optional] [default to const []] +**badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/BanUserFromCommentResult.md b/client/doc/BanUserFromCommentResult.md new file mode 100644 index 0000000..06c227c --- /dev/null +++ b/client/doc/BanUserFromCommentResult.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.BanUserFromCommentResult + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] +**code** | **String** | | [optional] +**reason** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/BanUserUndoParams.md b/client/doc/BanUserUndoParams.md new file mode 100644 index 0000000..a8cc042 --- /dev/null +++ b/client/doc/BanUserUndoParams.md @@ -0,0 +1,15 @@ +# fastcomments_dart.model.BanUserUndoParams + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/BannedUserMatch.md b/client/doc/BannedUserMatch.md new file mode 100644 index 0000000..2f6fc15 --- /dev/null +++ b/client/doc/BannedUserMatch.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.BannedUserMatch + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matchedOn** | [**BannedUserMatchType**](BannedUserMatchType.md) | | +**matchedOnValue** | [**BannedUserMatchMatchedOnValue**](BannedUserMatchMatchedOnValue.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/RecordStringStringOrNumberValue.md b/client/doc/BannedUserMatchMatchedOnValue.md similarity index 86% rename from client/doc/RecordStringStringOrNumberValue.md rename to client/doc/BannedUserMatchMatchedOnValue.md index f1f08d2..baaa812 100644 --- a/client/doc/RecordStringStringOrNumberValue.md +++ b/client/doc/BannedUserMatchMatchedOnValue.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.RecordStringStringOrNumberValue +# fastcomments_dart.model.BannedUserMatchMatchedOnValue ## Load the model package ```dart diff --git a/client/doc/BannedUserMatchType.md b/client/doc/BannedUserMatchType.md new file mode 100644 index 0000000..1eff932 --- /dev/null +++ b/client/doc/BannedUserMatchType.md @@ -0,0 +1,14 @@ +# fastcomments_dart.model.BannedUserMatchType + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/BlockFromCommentPublic200Response.md b/client/doc/BlockFromCommentPublic200Response.md deleted file mode 100644 index 1660cb6..0000000 --- a/client/doc/BlockFromCommentPublic200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.BlockFromCommentPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [default to const {}] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/BuildModerationFilterParams.md b/client/doc/BuildModerationFilterParams.md new file mode 100644 index 0000000..68745e1 --- /dev/null +++ b/client/doc/BuildModerationFilterParams.md @@ -0,0 +1,19 @@ +# fastcomments_dart.model.BuildModerationFilterParams + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userId** | **String** | | +**tenantId** | **String** | | +**filters** | **String** | | [optional] +**searchFilters** | **String** | | [optional] +**textSearch** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/BuildModerationFilterResponse.md b/client/doc/BuildModerationFilterResponse.md new file mode 100644 index 0000000..bd85073 --- /dev/null +++ b/client/doc/BuildModerationFilterResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.BuildModerationFilterResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/BulkAggregateQuestionResults200Response.md b/client/doc/BulkAggregateQuestionResults200Response.md deleted file mode 100644 index 65dff41..0000000 --- a/client/doc/BulkAggregateQuestionResults200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.BulkAggregateQuestionResults200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**Map**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | [default to const {}] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/BulkCreateHashTagsResponse.md b/client/doc/BulkCreateHashTagsResponse.md index f156982..c1e515e 100644 --- a/client/doc/BulkCreateHashTagsResponse.md +++ b/client/doc/BulkCreateHashTagsResponse.md @@ -9,7 +9,7 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**results** | [**List**](AddHashTag200Response.md) | | [default to const []] +**results** | [**List**](BulkCreateHashTagsResponseResultsInner.md) | | [default to const []] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/doc/GetPendingWebhookEventCount200Response.md b/client/doc/BulkCreateHashTagsResponseResultsInner.md similarity index 76% rename from client/doc/GetPendingWebhookEventCount200Response.md rename to client/doc/BulkCreateHashTagsResponseResultsInner.md index 0077c04..ab05541 100644 --- a/client/doc/GetPendingWebhookEventCount200Response.md +++ b/client/doc/BulkCreateHashTagsResponseResultsInner.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.GetPendingWebhookEventCount200Response +# fastcomments_dart.model.BulkCreateHashTagsResponseResultsInner ## Load the model package ```dart @@ -9,9 +9,9 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**count** | **double** | | -**reason** | **String** | | -**code** | **String** | | +**hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] +**reason** | **String** | | [optional] +**code** | **String** | | [optional] **secondaryCode** | **String** | | [optional] **bannedUntil** | **int** | | [optional] **maxCharacterLength** | **int** | | [optional] diff --git a/client/doc/BulkPreBanParams.md b/client/doc/BulkPreBanParams.md new file mode 100644 index 0000000..e74713f --- /dev/null +++ b/client/doc/BulkPreBanParams.md @@ -0,0 +1,15 @@ +# fastcomments_dart.model.BulkPreBanParams + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commentIds** | **List** | | [default to const []] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/BulkPreBanSummary.md b/client/doc/BulkPreBanSummary.md new file mode 100644 index 0000000..0677a47 --- /dev/null +++ b/client/doc/BulkPreBanSummary.md @@ -0,0 +1,20 @@ +# fastcomments_dart.model.BulkPreBanSummary + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**totalRelatedCommentCount** | **int** | | +**emailDomains** | **List** | | [default to const []] +**emails** | **List** | | [default to const []] +**userIds** | **List** | | [default to const []] +**ipHashes** | **List** | | [default to const []] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ChangeTicketState200Response.md b/client/doc/ChangeTicketState200Response.md deleted file mode 100644 index 0483a0e..0000000 --- a/client/doc/ChangeTicketState200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.ChangeTicketState200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicket**](APITicket.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CheckedCommentsForBlocked200Response.md b/client/doc/CheckedCommentsForBlocked200Response.md deleted file mode 100644 index 8c138a5..0000000 --- a/client/doc/CheckedCommentsForBlocked200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CheckedCommentsForBlocked200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [default to const {}] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CombineCommentsWithQuestionResults200Response.md b/client/doc/CombineCommentsWithQuestionResults200Response.md deleted file mode 100644 index ffd7535..0000000 --- a/client/doc/CombineCommentsWithQuestionResults200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CombineCommentsWithQuestionResults200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CommentData.md b/client/doc/CommentData.md index 174f68f..9946295 100644 --- a/client/doc/CommentData.md +++ b/client/doc/CommentData.md @@ -31,7 +31,7 @@ Name | Type | Description | Notes **fromOfflineRestore** | **bool** | | [optional] **autoplayDelayMS** | **int** | | [optional] **feedbackIds** | **List** | | [optional] [default to const []] -**questionValues** | [**Map**](RecordStringStringOrNumberValue.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**questionValues** | [**Map**](GifSearchResponseImagesInnerInner.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] **tos** | **bool** | | [optional] **botId** | **String** | | [optional] diff --git a/client/doc/CommentLogData.md b/client/doc/CommentLogData.md index d51085c..6243a60 100644 --- a/client/doc/CommentLogData.md +++ b/client/doc/CommentLogData.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **engineResponse** | **String** | | [optional] **engineTokens** | **double** | | [optional] **trustFactor** | **double** | | [optional] +**source_** | **String** | | [optional] **rule** | [**SpamRule**](SpamRule.md) | | [optional] **userId** | **String** | | [optional] **subscribers** | **double** | | [optional] diff --git a/client/doc/CommentsByIdsParams.md b/client/doc/CommentsByIdsParams.md new file mode 100644 index 0000000..52ff9f0 --- /dev/null +++ b/client/doc/CommentsByIdsParams.md @@ -0,0 +1,15 @@ +# fastcomments_dart.model.CommentsByIdsParams + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List** | | [default to const []] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/CreateCommentParams.md b/client/doc/CreateCommentParams.md index d0b6482..64e6281 100644 --- a/client/doc/CreateCommentParams.md +++ b/client/doc/CreateCommentParams.md @@ -31,7 +31,7 @@ Name | Type | Description | Notes **fromOfflineRestore** | **bool** | | [optional] **autoplayDelayMS** | **int** | | [optional] **feedbackIds** | **List** | | [optional] [default to const []] -**questionValues** | [**Map**](RecordStringStringOrNumberValue.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**questionValues** | [**Map**](GifSearchResponseImagesInnerInner.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] **tos** | **bool** | | [optional] **botId** | **String** | | [optional] **approved** | **bool** | | [optional] diff --git a/client/doc/CreateCommentPublic200Response.md b/client/doc/CreateCommentPublic200Response.md deleted file mode 100644 index 369b3d6..0000000 --- a/client/doc/CreateCommentPublic200Response.md +++ /dev/null @@ -1,26 +0,0 @@ -# fastcomments_dart.model.CreateCommentPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**PublicComment**](PublicComment.md) | | -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**userIdWS** | **String** | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateEmailTemplate200Response.md b/client/doc/CreateEmailTemplate200Response.md deleted file mode 100644 index c5982d0..0000000 --- a/client/doc/CreateEmailTemplate200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateEmailTemplate200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateFeedPost200Response.md b/client/doc/CreateFeedPost200Response.md deleted file mode 100644 index 9247123..0000000 --- a/client/doc/CreateFeedPost200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateFeedPost200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feedPost** | [**FeedPost**](FeedPost.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateFeedPostPublic200Response.md b/client/doc/CreateFeedPostPublic200Response.md deleted file mode 100644 index 1bb9afc..0000000 --- a/client/doc/CreateFeedPostPublic200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateFeedPostPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feedPost** | [**FeedPost**](FeedPost.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateModerator200Response.md b/client/doc/CreateModerator200Response.md deleted file mode 100644 index 2ca5f7d..0000000 --- a/client/doc/CreateModerator200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateModerator200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderator** | [**Moderator**](Moderator.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateQuestionConfig200Response.md b/client/doc/CreateQuestionConfig200Response.md deleted file mode 100644 index aea0000..0000000 --- a/client/doc/CreateQuestionConfig200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateQuestionConfig200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateQuestionResult200Response.md b/client/doc/CreateQuestionResult200Response.md deleted file mode 100644 index 1811d8b..0000000 --- a/client/doc/CreateQuestionResult200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateQuestionResult200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionResult** | [**QuestionResult**](QuestionResult.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateTenant200Response.md b/client/doc/CreateTenant200Response.md deleted file mode 100644 index 5e9219b..0000000 --- a/client/doc/CreateTenant200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateTenant200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant** | [**APITenant**](APITenant.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateTenantPackage200Response.md b/client/doc/CreateTenantPackage200Response.md deleted file mode 100644 index 6e33154..0000000 --- a/client/doc/CreateTenantPackage200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateTenantPackage200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantPackage** | [**TenantPackage**](TenantPackage.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateTenantUser200Response.md b/client/doc/CreateTenantUser200Response.md deleted file mode 100644 index d367d5f..0000000 --- a/client/doc/CreateTenantUser200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateTenantUser200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantUser** | [**User**](User.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateTicket200Response.md b/client/doc/CreateTicket200Response.md deleted file mode 100644 index 6d7e8fa..0000000 --- a/client/doc/CreateTicket200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.CreateTicket200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicket**](APITicket.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateUserBadge200Response.md b/client/doc/CreateUserBadge200Response.md deleted file mode 100644 index 907a981..0000000 --- a/client/doc/CreateUserBadge200Response.md +++ /dev/null @@ -1,24 +0,0 @@ -# fastcomments_dart.model.CreateUserBadge200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadge** | [**UserBadge**](UserBadge.md) | | -**notes** | **List** | | [optional] [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/CreateV1PageReact.md b/client/doc/CreateV1PageReact.md new file mode 100644 index 0000000..a150c8d --- /dev/null +++ b/client/doc/CreateV1PageReact.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.CreateV1PageReact + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/CustomConfigParameters.md b/client/doc/CustomConfigParameters.md index 4531635..7c878ef 100644 --- a/client/doc/CustomConfigParameters.md +++ b/client/doc/CustomConfigParameters.md @@ -60,11 +60,14 @@ Name | Type | Description | Notes **noCustomConfig** | **bool** | | [optional] **mentionAutoCompleteMode** | [**MentionAutoCompleteMode**](MentionAutoCompleteMode.md) | | [optional] **noImageUploads** | **bool** | | [optional] +**allowEmbeds** | **bool** | | [optional] +**allowedEmbedDomains** | **List** | | [optional] [default to const []] **noStyles** | **bool** | | [optional] **pageSize** | **int** | | [optional] **readonly** | **bool** | | [optional] **noNewRootComments** | **bool** | | [optional] **requireSSO** | **bool** | | [optional] +**enableFChat** | **bool** | | [optional] **enableResizeHandle** | **bool** | | [optional] **restrictedLinkDomains** | **List** | | [optional] [default to const []] **showBadgesInTopBar** | **bool** | | [optional] @@ -85,6 +88,8 @@ Name | Type | Description | Notes **widgetQuestionsRequired** | [**CommentQuestionsRequired**](CommentQuestionsRequired.md) | | [optional] **widgetSubQuestionVisibility** | [**QuestionSubQuestionVisibility**](QuestionSubQuestionVisibility.md) | | [optional] **wrap** | **bool** | | [optional] +**usersListLocation** | [**UsersListLocation**](UsersListLocation.md) | | [optional] +**usersListIncludeOffline** | **bool** | | [optional] **ticketBaseUrl** | **String** | | [optional] **ticketKBSearchEndpoint** | **String** | | [optional] **ticketFileUploadsEnabled** | **bool** | | [optional] diff --git a/client/doc/DefaultApi.md b/client/doc/DefaultApi.md index 442dc6f..d0251a9 100644 --- a/client/doc/DefaultApi.md +++ b/client/doc/DefaultApi.md @@ -126,7 +126,7 @@ Method | HTTP request | Description # **addDomainConfig** -> AddDomainConfig200Response addDomainConfig(tenantId, addDomainConfigParams) +> AddDomainConfigResponse addDomainConfig(tenantId, addDomainConfigParams) @@ -159,7 +159,7 @@ Name | Type | Description | Notes ### Return type -[**AddDomainConfig200Response**](AddDomainConfig200Response.md) +[**AddDomainConfigResponse**](AddDomainConfigResponse.md) ### Authorization @@ -173,7 +173,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **addHashTag** -> AddHashTag200Response addHashTag(tenantId, createHashTagBody) +> CreateHashTagResponse addHashTag(tenantId, createHashTagBody) @@ -206,7 +206,7 @@ Name | Type | Description | Notes ### Return type -[**AddHashTag200Response**](AddHashTag200Response.md) +[**CreateHashTagResponse**](CreateHashTagResponse.md) ### Authorization @@ -220,7 +220,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **addHashTagsBulk** -> AddHashTagsBulk200Response addHashTagsBulk(tenantId, bulkCreateHashTagsBody) +> BulkCreateHashTagsResponse addHashTagsBulk(tenantId, bulkCreateHashTagsBody) @@ -253,7 +253,7 @@ Name | Type | Description | Notes ### Return type -[**AddHashTagsBulk200Response**](AddHashTagsBulk200Response.md) +[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) ### Authorization @@ -361,7 +361,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **aggregate** -> AggregationResponse aggregate(tenantId, aggregationRequest, parentTenantId, includeStats) +> AggregateResponse aggregate(tenantId, aggregationRequest, parentTenantId, includeStats) @@ -400,7 +400,7 @@ Name | Type | Description | Notes ### Return type -[**AggregationResponse**](AggregationResponse.md) +[**AggregateResponse**](AggregateResponse.md) ### Authorization @@ -414,7 +414,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **aggregateQuestionResults** -> AggregateQuestionResults200Response aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) +> AggregateQuestionResultsResponse aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) @@ -457,7 +457,7 @@ Name | Type | Description | Notes ### Return type -[**AggregateQuestionResults200Response**](AggregateQuestionResults200Response.md) +[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) ### Authorization @@ -471,7 +471,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **blockUserFromComment** -> BlockFromCommentPublic200Response blockUserFromComment(tenantId, id, blockFromCommentParams, userId, anonUserId) +> BlockSuccess blockUserFromComment(tenantId, id, blockFromCommentParams, userId, anonUserId) @@ -510,7 +510,7 @@ Name | Type | Description | Notes ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -524,7 +524,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **bulkAggregateQuestionResults** -> BulkAggregateQuestionResults200Response bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate) +> BulkAggregateQuestionResultsResponse bulkAggregateQuestionResults(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate) @@ -559,7 +559,7 @@ Name | Type | Description | Notes ### Return type -[**BulkAggregateQuestionResults200Response**](BulkAggregateQuestionResults200Response.md) +[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -573,7 +573,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **changeTicketState** -> ChangeTicketState200Response changeTicketState(tenantId, userId, id, changeTicketStateBody) +> ChangeTicketStateResponse changeTicketState(tenantId, userId, id, changeTicketStateBody) @@ -610,7 +610,7 @@ Name | Type | Description | Notes ### Return type -[**ChangeTicketState200Response**](ChangeTicketState200Response.md) +[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) ### Authorization @@ -624,7 +624,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **combineCommentsWithQuestionResults** -> CombineCommentsWithQuestionResults200Response combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) +> CombineQuestionResultsWithCommentsResponse combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) @@ -671,7 +671,7 @@ Name | Type | Description | Notes ### Return type -[**CombineCommentsWithQuestionResults200Response**](CombineCommentsWithQuestionResults200Response.md) +[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -685,7 +685,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createEmailTemplate** -> CreateEmailTemplate200Response createEmailTemplate(tenantId, createEmailTemplateBody) +> CreateEmailTemplateResponse createEmailTemplate(tenantId, createEmailTemplateBody) @@ -718,7 +718,7 @@ Name | Type | Description | Notes ### Return type -[**CreateEmailTemplate200Response**](CreateEmailTemplate200Response.md) +[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) ### Authorization @@ -732,7 +732,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createFeedPost** -> CreateFeedPost200Response createFeedPost(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) +> CreateFeedPostsResponse createFeedPost(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) @@ -773,7 +773,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPost200Response**](CreateFeedPost200Response.md) +[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) ### Authorization @@ -787,7 +787,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createModerator** -> CreateModerator200Response createModerator(tenantId, createModeratorBody) +> CreateModeratorResponse createModerator(tenantId, createModeratorBody) @@ -820,7 +820,7 @@ Name | Type | Description | Notes ### Return type -[**CreateModerator200Response**](CreateModerator200Response.md) +[**CreateModeratorResponse**](CreateModeratorResponse.md) ### Authorization @@ -834,7 +834,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createQuestionConfig** -> CreateQuestionConfig200Response createQuestionConfig(tenantId, createQuestionConfigBody) +> CreateQuestionConfigResponse createQuestionConfig(tenantId, createQuestionConfigBody) @@ -867,7 +867,7 @@ Name | Type | Description | Notes ### Return type -[**CreateQuestionConfig200Response**](CreateQuestionConfig200Response.md) +[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) ### Authorization @@ -881,7 +881,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createQuestionResult** -> CreateQuestionResult200Response createQuestionResult(tenantId, createQuestionResultBody) +> CreateQuestionResultResponse createQuestionResult(tenantId, createQuestionResultBody) @@ -914,7 +914,7 @@ Name | Type | Description | Notes ### Return type -[**CreateQuestionResult200Response**](CreateQuestionResult200Response.md) +[**CreateQuestionResultResponse**](CreateQuestionResultResponse.md) ### Authorization @@ -975,7 +975,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createTenant** -> CreateTenant200Response createTenant(tenantId, createTenantBody) +> CreateTenantResponse createTenant(tenantId, createTenantBody) @@ -1008,7 +1008,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenant200Response**](CreateTenant200Response.md) +[**CreateTenantResponse**](CreateTenantResponse.md) ### Authorization @@ -1022,7 +1022,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createTenantPackage** -> CreateTenantPackage200Response createTenantPackage(tenantId, createTenantPackageBody) +> CreateTenantPackageResponse createTenantPackage(tenantId, createTenantPackageBody) @@ -1055,7 +1055,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenantPackage200Response**](CreateTenantPackage200Response.md) +[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) ### Authorization @@ -1069,7 +1069,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createTenantUser** -> CreateTenantUser200Response createTenantUser(tenantId, createTenantUserBody) +> CreateTenantUserResponse createTenantUser(tenantId, createTenantUserBody) @@ -1102,7 +1102,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenantUser200Response**](CreateTenantUser200Response.md) +[**CreateTenantUserResponse**](CreateTenantUserResponse.md) ### Authorization @@ -1116,7 +1116,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createTicket** -> CreateTicket200Response createTicket(tenantId, userId, createTicketBody) +> CreateTicketResponse createTicket(tenantId, userId, createTicketBody) @@ -1151,7 +1151,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTicket200Response**](CreateTicket200Response.md) +[**CreateTicketResponse**](CreateTicketResponse.md) ### Authorization @@ -1165,7 +1165,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createUserBadge** -> CreateUserBadge200Response createUserBadge(tenantId, createUserBadgeParams) +> APICreateUserBadgeResponse createUserBadge(tenantId, createUserBadgeParams) @@ -1198,7 +1198,7 @@ Name | Type | Description | Notes ### Return type -[**CreateUserBadge200Response**](CreateUserBadge200Response.md) +[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) ### Authorization @@ -1212,7 +1212,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createVote** -> VoteComment200Response createVote(tenantId, commentId, direction, userId, anonUserId) +> VoteResponse createVote(tenantId, commentId, direction, userId, anonUserId) @@ -1251,7 +1251,7 @@ Name | Type | Description | Notes ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -1265,7 +1265,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteComment** -> DeleteComment200Response deleteComment(tenantId, id, contextUserId, isLive) +> DeleteCommentResult deleteComment(tenantId, id, contextUserId, isLive) @@ -1302,7 +1302,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteComment200Response**](DeleteComment200Response.md) +[**DeleteCommentResult**](DeleteCommentResult.md) ### Authorization @@ -1316,7 +1316,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteDomainConfig** -> DeleteDomainConfig200Response deleteDomainConfig(tenantId, domain) +> DeleteDomainConfigResponse deleteDomainConfig(tenantId, domain) @@ -1349,7 +1349,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteDomainConfig200Response**](DeleteDomainConfig200Response.md) +[**DeleteDomainConfigResponse**](DeleteDomainConfigResponse.md) ### Authorization @@ -1363,7 +1363,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteEmailTemplate** -> FlagCommentPublic200Response deleteEmailTemplate(tenantId, id) +> APIEmptyResponse deleteEmailTemplate(tenantId, id) @@ -1396,7 +1396,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1410,7 +1410,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteEmailTemplateRenderError** -> FlagCommentPublic200Response deleteEmailTemplateRenderError(tenantId, id, errorId) +> APIEmptyResponse deleteEmailTemplateRenderError(tenantId, id, errorId) @@ -1445,7 +1445,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1459,7 +1459,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteHashTag** -> FlagCommentPublic200Response deleteHashTag(tag, tenantId, deleteHashTagRequest) +> APIEmptyResponse deleteHashTag(tag, tenantId, deleteHashTagRequestBody) @@ -1474,10 +1474,10 @@ import 'package:fastcomments_dart/api.dart'; final api_instance = DefaultApi(); final tag = tag_example; // String | final tenantId = tenantId_example; // String | -final deleteHashTagRequest = DeleteHashTagRequest(); // DeleteHashTagRequest | +final deleteHashTagRequestBody = DeleteHashTagRequestBody(); // DeleteHashTagRequestBody | try { - final result = api_instance.deleteHashTag(tag, tenantId, deleteHashTagRequest); + final result = api_instance.deleteHashTag(tag, tenantId, deleteHashTagRequestBody); print(result); } catch (e) { print('Exception when calling DefaultApi->deleteHashTag: $e\n'); @@ -1490,11 +1490,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tag** | **String**| | **tenantId** | **String**| | [optional] - **deleteHashTagRequest** | [**DeleteHashTagRequest**](DeleteHashTagRequest.md)| | [optional] + **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md)| | [optional] ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1508,7 +1508,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteModerator** -> FlagCommentPublic200Response deleteModerator(tenantId, id, sendEmail) +> APIEmptyResponse deleteModerator(tenantId, id, sendEmail) @@ -1543,7 +1543,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1557,7 +1557,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteNotificationCount** -> FlagCommentPublic200Response deleteNotificationCount(tenantId, id) +> APIEmptyResponse deleteNotificationCount(tenantId, id) @@ -1590,7 +1590,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1651,7 +1651,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deletePendingWebhookEvent** -> FlagCommentPublic200Response deletePendingWebhookEvent(tenantId, id) +> APIEmptyResponse deletePendingWebhookEvent(tenantId, id) @@ -1684,7 +1684,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1698,7 +1698,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteQuestionConfig** -> FlagCommentPublic200Response deleteQuestionConfig(tenantId, id) +> APIEmptyResponse deleteQuestionConfig(tenantId, id) @@ -1731,7 +1731,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1745,7 +1745,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteQuestionResult** -> FlagCommentPublic200Response deleteQuestionResult(tenantId, id) +> APIEmptyResponse deleteQuestionResult(tenantId, id) @@ -1778,7 +1778,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1892,7 +1892,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteTenant** -> FlagCommentPublic200Response deleteTenant(tenantId, id, sure) +> APIEmptyResponse deleteTenant(tenantId, id, sure) @@ -1927,7 +1927,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1941,7 +1941,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteTenantPackage** -> FlagCommentPublic200Response deleteTenantPackage(tenantId, id) +> APIEmptyResponse deleteTenantPackage(tenantId, id) @@ -1974,7 +1974,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1988,7 +1988,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteTenantUser** -> FlagCommentPublic200Response deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) +> APIEmptyResponse deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) @@ -2025,7 +2025,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2039,7 +2039,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteUserBadge** -> UpdateUserBadge200Response deleteUserBadge(tenantId, id) +> APIEmptySuccessResponse deleteUserBadge(tenantId, id) @@ -2072,7 +2072,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -2086,7 +2086,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteVote** -> DeleteCommentVote200Response deleteVote(tenantId, id, editKey) +> VoteDeleteResponse deleteVote(tenantId, id, editKey) @@ -2121,7 +2121,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -2135,7 +2135,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **flagComment** -> FlagComment200Response flagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse flagComment(tenantId, id, userId, anonUserId) @@ -2172,7 +2172,7 @@ Name | Type | Description | Notes ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -2186,7 +2186,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getAuditLogs** -> GetAuditLogs200Response getAuditLogs(tenantId, limit, skip, order, after, before) +> GetAuditLogsResponse getAuditLogs(tenantId, limit, skip, order, after, before) @@ -2227,7 +2227,7 @@ Name | Type | Description | Notes ### Return type -[**GetAuditLogs200Response**](GetAuditLogs200Response.md) +[**GetAuditLogsResponse**](GetAuditLogsResponse.md) ### Authorization @@ -2241,7 +2241,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCachedNotificationCount** -> GetCachedNotificationCount200Response getCachedNotificationCount(tenantId, id) +> GetCachedNotificationCountResponse getCachedNotificationCount(tenantId, id) @@ -2274,7 +2274,7 @@ Name | Type | Description | Notes ### Return type -[**GetCachedNotificationCount200Response**](GetCachedNotificationCount200Response.md) +[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) ### Authorization @@ -2288,7 +2288,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getComment** -> GetComment200Response getComment(tenantId, id) +> APIGetCommentResponse getComment(tenantId, id) @@ -2321,7 +2321,7 @@ Name | Type | Description | Notes ### Return type -[**GetComment200Response**](GetComment200Response.md) +[**APIGetCommentResponse**](APIGetCommentResponse.md) ### Authorization @@ -2335,7 +2335,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getComments** -> GetComments200Response getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction) +> APIGetCommentsResponse getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate) @@ -2363,9 +2363,11 @@ final contextUserId = contextUserId_example; // String | final hashTag = hashTag_example; // String | final parentId = parentId_example; // String | final direction = ; // SortDirections | +final fromDate = 789; // int | +final toDate = 789; // int | try { - final result = api_instance.getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction); + final result = api_instance.getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate); print(result); } catch (e) { print('Exception when calling DefaultApi->getComments: $e\n'); @@ -2391,10 +2393,12 @@ Name | Type | Description | Notes **hashTag** | **String**| | [optional] **parentId** | **String**| | [optional] **direction** | [**SortDirections**](.md)| | [optional] + **fromDate** | **int**| | [optional] + **toDate** | **int**| | [optional] ### Return type -[**GetComments200Response**](GetComments200Response.md) +[**APIGetCommentsResponse**](APIGetCommentsResponse.md) ### Authorization @@ -2408,7 +2412,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getDomainConfig** -> GetDomainConfig200Response getDomainConfig(tenantId, domain) +> GetDomainConfigResponse getDomainConfig(tenantId, domain) @@ -2441,7 +2445,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**GetDomainConfigResponse**](GetDomainConfigResponse.md) ### Authorization @@ -2455,7 +2459,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getDomainConfigs** -> GetDomainConfigs200Response getDomainConfigs(tenantId) +> GetDomainConfigsResponse getDomainConfigs(tenantId) @@ -2486,7 +2490,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfigs200Response**](GetDomainConfigs200Response.md) +[**GetDomainConfigsResponse**](GetDomainConfigsResponse.md) ### Authorization @@ -2500,7 +2504,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getEmailTemplate** -> GetEmailTemplate200Response getEmailTemplate(tenantId, id) +> GetEmailTemplateResponse getEmailTemplate(tenantId, id) @@ -2533,7 +2537,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplate200Response**](GetEmailTemplate200Response.md) +[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) ### Authorization @@ -2547,7 +2551,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getEmailTemplateDefinitions** -> GetEmailTemplateDefinitions200Response getEmailTemplateDefinitions(tenantId) +> GetEmailTemplateDefinitionsResponse getEmailTemplateDefinitions(tenantId) @@ -2578,7 +2582,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplateDefinitions200Response**](GetEmailTemplateDefinitions200Response.md) +[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -2592,7 +2596,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getEmailTemplateRenderErrors** -> GetEmailTemplateRenderErrors200Response getEmailTemplateRenderErrors(tenantId, id, skip) +> GetEmailTemplateRenderErrorsResponse getEmailTemplateRenderErrors(tenantId, id, skip) @@ -2627,7 +2631,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplateRenderErrors200Response**](GetEmailTemplateRenderErrors200Response.md) +[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -2641,7 +2645,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getEmailTemplates** -> GetEmailTemplates200Response getEmailTemplates(tenantId, skip) +> GetEmailTemplatesResponse getEmailTemplates(tenantId, skip) @@ -2674,7 +2678,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplates200Response**](GetEmailTemplates200Response.md) +[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) ### Authorization @@ -2688,7 +2692,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getFeedPosts** -> GetFeedPosts200Response getFeedPosts(tenantId, afterId, limit, tags) +> GetFeedPostsResponse getFeedPosts(tenantId, afterId, limit, tags) @@ -2727,7 +2731,7 @@ Name | Type | Description | Notes ### Return type -[**GetFeedPosts200Response**](GetFeedPosts200Response.md) +[**GetFeedPostsResponse**](GetFeedPostsResponse.md) ### Authorization @@ -2741,7 +2745,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getHashTags** -> GetHashTags200Response getHashTags(tenantId, page) +> GetHashTagsResponse getHashTags(tenantId, page) @@ -2774,7 +2778,7 @@ Name | Type | Description | Notes ### Return type -[**GetHashTags200Response**](GetHashTags200Response.md) +[**GetHashTagsResponse**](GetHashTagsResponse.md) ### Authorization @@ -2788,7 +2792,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getModerator** -> GetModerator200Response getModerator(tenantId, id) +> GetModeratorResponse getModerator(tenantId, id) @@ -2821,7 +2825,7 @@ Name | Type | Description | Notes ### Return type -[**GetModerator200Response**](GetModerator200Response.md) +[**GetModeratorResponse**](GetModeratorResponse.md) ### Authorization @@ -2835,7 +2839,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getModerators** -> GetModerators200Response getModerators(tenantId, skip) +> GetModeratorsResponse getModerators(tenantId, skip) @@ -2868,7 +2872,7 @@ Name | Type | Description | Notes ### Return type -[**GetModerators200Response**](GetModerators200Response.md) +[**GetModeratorsResponse**](GetModeratorsResponse.md) ### Authorization @@ -2882,7 +2886,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getNotificationCount** -> GetNotificationCount200Response getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) +> GetNotificationCountResponse getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) @@ -2923,7 +2927,7 @@ Name | Type | Description | Notes ### Return type -[**GetNotificationCount200Response**](GetNotificationCount200Response.md) +[**GetNotificationCountResponse**](GetNotificationCountResponse.md) ### Authorization @@ -2937,7 +2941,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getNotifications** -> GetNotifications200Response getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) +> GetNotificationsResponse getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) @@ -2980,7 +2984,7 @@ Name | Type | Description | Notes ### Return type -[**GetNotifications200Response**](GetNotifications200Response.md) +[**GetNotificationsResponse**](GetNotificationsResponse.md) ### Authorization @@ -3086,7 +3090,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPendingWebhookEventCount** -> GetPendingWebhookEventCount200Response getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) +> GetPendingWebhookEventCountResponse getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) @@ -3129,7 +3133,7 @@ Name | Type | Description | Notes ### Return type -[**GetPendingWebhookEventCount200Response**](GetPendingWebhookEventCount200Response.md) +[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) ### Authorization @@ -3143,7 +3147,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPendingWebhookEvents** -> GetPendingWebhookEvents200Response getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) +> GetPendingWebhookEventsResponse getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) @@ -3188,7 +3192,7 @@ Name | Type | Description | Notes ### Return type -[**GetPendingWebhookEvents200Response**](GetPendingWebhookEvents200Response.md) +[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) ### Authorization @@ -3202,7 +3206,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getQuestionConfig** -> GetQuestionConfig200Response getQuestionConfig(tenantId, id) +> GetQuestionConfigResponse getQuestionConfig(tenantId, id) @@ -3235,7 +3239,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionConfig200Response**](GetQuestionConfig200Response.md) +[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) ### Authorization @@ -3249,7 +3253,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getQuestionConfigs** -> GetQuestionConfigs200Response getQuestionConfigs(tenantId, skip) +> GetQuestionConfigsResponse getQuestionConfigs(tenantId, skip) @@ -3282,7 +3286,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionConfigs200Response**](GetQuestionConfigs200Response.md) +[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) ### Authorization @@ -3296,7 +3300,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getQuestionResult** -> GetQuestionResult200Response getQuestionResult(tenantId, id) +> GetQuestionResultResponse getQuestionResult(tenantId, id) @@ -3329,7 +3333,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionResult200Response**](GetQuestionResult200Response.md) +[**GetQuestionResultResponse**](GetQuestionResultResponse.md) ### Authorization @@ -3343,7 +3347,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getQuestionResults** -> GetQuestionResults200Response getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) +> GetQuestionResultsResponse getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) @@ -3386,7 +3390,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionResults200Response**](GetQuestionResults200Response.md) +[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) ### Authorization @@ -3494,7 +3498,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getSSOUsers** -> GetSSOUsers200Response getSSOUsers(tenantId, skip) +> GetSSOUsersResponse getSSOUsers(tenantId, skip) @@ -3527,7 +3531,7 @@ Name | Type | Description | Notes ### Return type -[**GetSSOUsers200Response**](GetSSOUsers200Response.md) +[**GetSSOUsersResponse**](GetSSOUsersResponse.md) ### Authorization @@ -3588,7 +3592,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenant** -> GetTenant200Response getTenant(tenantId, id) +> GetTenantResponse getTenant(tenantId, id) @@ -3621,7 +3625,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenant200Response**](GetTenant200Response.md) +[**GetTenantResponse**](GetTenantResponse.md) ### Authorization @@ -3635,7 +3639,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenantDailyUsages** -> GetTenantDailyUsages200Response getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) +> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) @@ -3674,7 +3678,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantDailyUsages200Response**](GetTenantDailyUsages200Response.md) +[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) ### Authorization @@ -3688,7 +3692,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenantPackage** -> GetTenantPackage200Response getTenantPackage(tenantId, id) +> GetTenantPackageResponse getTenantPackage(tenantId, id) @@ -3721,7 +3725,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantPackage200Response**](GetTenantPackage200Response.md) +[**GetTenantPackageResponse**](GetTenantPackageResponse.md) ### Authorization @@ -3735,7 +3739,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenantPackages** -> GetTenantPackages200Response getTenantPackages(tenantId, skip) +> GetTenantPackagesResponse getTenantPackages(tenantId, skip) @@ -3768,7 +3772,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantPackages200Response**](GetTenantPackages200Response.md) +[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) ### Authorization @@ -3782,7 +3786,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenantUser** -> GetTenantUser200Response getTenantUser(tenantId, id) +> GetTenantUserResponse getTenantUser(tenantId, id) @@ -3815,7 +3819,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantUser200Response**](GetTenantUser200Response.md) +[**GetTenantUserResponse**](GetTenantUserResponse.md) ### Authorization @@ -3829,7 +3833,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenantUsers** -> GetTenantUsers200Response getTenantUsers(tenantId, skip) +> GetTenantUsersResponse getTenantUsers(tenantId, skip) @@ -3862,7 +3866,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantUsers200Response**](GetTenantUsers200Response.md) +[**GetTenantUsersResponse**](GetTenantUsersResponse.md) ### Authorization @@ -3876,7 +3880,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenants** -> GetTenants200Response getTenants(tenantId, meta, skip) +> GetTenantsResponse getTenants(tenantId, meta, skip) @@ -3911,7 +3915,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenants200Response**](GetTenants200Response.md) +[**GetTenantsResponse**](GetTenantsResponse.md) ### Authorization @@ -3925,7 +3929,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTicket** -> GetTicket200Response getTicket(tenantId, id, userId) +> GetTicketResponse getTicket(tenantId, id, userId) @@ -3960,7 +3964,7 @@ Name | Type | Description | Notes ### Return type -[**GetTicket200Response**](GetTicket200Response.md) +[**GetTicketResponse**](GetTicketResponse.md) ### Authorization @@ -3974,7 +3978,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTickets** -> GetTickets200Response getTickets(tenantId, userId, state, skip, limit) +> GetTicketsResponse getTickets(tenantId, userId, state, skip, limit) @@ -4013,7 +4017,7 @@ Name | Type | Description | Notes ### Return type -[**GetTickets200Response**](GetTickets200Response.md) +[**GetTicketsResponse**](GetTicketsResponse.md) ### Authorization @@ -4027,7 +4031,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUser** -> GetUser200Response getUser(tenantId, id) +> GetUserResponse getUser(tenantId, id) @@ -4060,7 +4064,7 @@ Name | Type | Description | Notes ### Return type -[**GetUser200Response**](GetUser200Response.md) +[**GetUserResponse**](GetUserResponse.md) ### Authorization @@ -4074,7 +4078,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserBadge** -> GetUserBadge200Response getUserBadge(tenantId, id) +> APIGetUserBadgeResponse getUserBadge(tenantId, id) @@ -4107,7 +4111,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadge200Response**](GetUserBadge200Response.md) +[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) ### Authorization @@ -4121,7 +4125,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserBadgeProgressById** -> GetUserBadgeProgressById200Response getUserBadgeProgressById(tenantId, id) +> APIGetUserBadgeProgressResponse getUserBadgeProgressById(tenantId, id) @@ -4154,7 +4158,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -4168,7 +4172,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserBadgeProgressByUserId** -> GetUserBadgeProgressById200Response getUserBadgeProgressByUserId(tenantId, userId) +> APIGetUserBadgeProgressResponse getUserBadgeProgressByUserId(tenantId, userId) @@ -4201,7 +4205,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -4215,7 +4219,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserBadgeProgressList** -> GetUserBadgeProgressList200Response getUserBadgeProgressList(tenantId, userId, limit, skip) +> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId, userId, limit, skip) @@ -4252,7 +4256,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressList200Response**](GetUserBadgeProgressList200Response.md) +[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -4266,7 +4270,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserBadges** -> GetUserBadges200Response getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) +> APIGetUserBadgesResponse getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) @@ -4309,7 +4313,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadges200Response**](GetUserBadges200Response.md) +[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) ### Authorization @@ -4323,7 +4327,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getVotes** -> GetVotes200Response getVotes(tenantId, urlId) +> GetVotesResponse getVotes(tenantId, urlId) @@ -4356,7 +4360,7 @@ Name | Type | Description | Notes ### Return type -[**GetVotes200Response**](GetVotes200Response.md) +[**GetVotesResponse**](GetVotesResponse.md) ### Authorization @@ -4370,7 +4374,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getVotesForUser** -> GetVotesForUser200Response getVotesForUser(tenantId, urlId, userId, anonUserId) +> GetVotesForUserResponse getVotesForUser(tenantId, urlId, userId, anonUserId) @@ -4407,7 +4411,7 @@ Name | Type | Description | Notes ### Return type -[**GetVotesForUser200Response**](GetVotesForUser200Response.md) +[**GetVotesForUserResponse**](GetVotesForUserResponse.md) ### Authorization @@ -4421,7 +4425,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patchDomainConfig** -> GetDomainConfig200Response patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams) +> PatchDomainConfigResponse patchDomainConfig(tenantId, domainToUpdate, patchDomainConfigParams) @@ -4456,7 +4460,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PatchDomainConfigResponse**](PatchDomainConfigResponse.md) ### Authorization @@ -4470,7 +4474,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patchHashTag** -> PatchHashTag200Response patchHashTag(tag, tenantId, updateHashTagBody) +> UpdateHashTagResponse patchHashTag(tag, tenantId, updateHashTagBody) @@ -4505,7 +4509,7 @@ Name | Type | Description | Notes ### Return type -[**PatchHashTag200Response**](PatchHashTag200Response.md) +[**UpdateHashTagResponse**](UpdateHashTagResponse.md) ### Authorization @@ -4619,7 +4623,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **putDomainConfig** -> GetDomainConfig200Response putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams) +> PutDomainConfigResponse putDomainConfig(tenantId, domainToUpdate, updateDomainConfigParams) @@ -4654,7 +4658,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PutDomainConfigResponse**](PutDomainConfigResponse.md) ### Authorization @@ -4719,7 +4723,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **renderEmailTemplate** -> RenderEmailTemplate200Response renderEmailTemplate(tenantId, renderEmailTemplateBody, locale) +> RenderEmailTemplateResponse renderEmailTemplate(tenantId, renderEmailTemplateBody, locale) @@ -4754,7 +4758,7 @@ Name | Type | Description | Notes ### Return type -[**RenderEmailTemplate200Response**](RenderEmailTemplate200Response.md) +[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) ### Authorization @@ -4768,7 +4772,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replaceTenantPackage** -> FlagCommentPublic200Response replaceTenantPackage(tenantId, id, replaceTenantPackageBody) +> APIEmptyResponse replaceTenantPackage(tenantId, id, replaceTenantPackageBody) @@ -4803,7 +4807,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -4817,7 +4821,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replaceTenantUser** -> FlagCommentPublic200Response replaceTenantUser(tenantId, id, replaceTenantUserBody, updateComments) +> APIEmptyResponse replaceTenantUser(tenantId, id, replaceTenantUserBody, updateComments) @@ -4854,7 +4858,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -4868,7 +4872,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **saveComment** -> SaveComment200Response saveComment(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) +> APISaveCommentResponse saveComment(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) @@ -4909,7 +4913,7 @@ Name | Type | Description | Notes ### Return type -[**SaveComment200Response**](SaveComment200Response.md) +[**APISaveCommentResponse**](APISaveCommentResponse.md) ### Authorization @@ -4923,7 +4927,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **saveCommentsBulk** -> List saveCommentsBulk(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) +> List saveCommentsBulk(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) @@ -4964,7 +4968,7 @@ Name | Type | Description | Notes ### Return type -[**List**](SaveComment200Response.md) +[**List**](SaveCommentsBulkResponse.md) ### Authorization @@ -4978,7 +4982,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **sendInvite** -> FlagCommentPublic200Response sendInvite(tenantId, id, fromName) +> APIEmptyResponse sendInvite(tenantId, id, fromName) @@ -5013,7 +5017,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5027,7 +5031,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **sendLoginLink** -> FlagCommentPublic200Response sendLoginLink(tenantId, id, redirectURL) +> APIEmptyResponse sendLoginLink(tenantId, id, redirectURL) @@ -5062,7 +5066,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5076,7 +5080,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unBlockUserFromComment** -> UnBlockCommentPublic200Response unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, userId, anonUserId) +> UnblockSuccess unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, userId, anonUserId) @@ -5115,7 +5119,7 @@ Name | Type | Description | Notes ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -5129,7 +5133,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unFlagComment** -> FlagComment200Response unFlagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse unFlagComment(tenantId, id, userId, anonUserId) @@ -5166,7 +5170,7 @@ Name | Type | Description | Notes ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -5180,7 +5184,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateComment** -> FlagCommentPublic200Response updateComment(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive) +> APIEmptyResponse updateComment(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive) @@ -5221,7 +5225,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5235,7 +5239,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateEmailTemplate** -> FlagCommentPublic200Response updateEmailTemplate(tenantId, id, updateEmailTemplateBody) +> APIEmptyResponse updateEmailTemplate(tenantId, id, updateEmailTemplateBody) @@ -5270,7 +5274,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5284,7 +5288,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateFeedPost** -> FlagCommentPublic200Response updateFeedPost(tenantId, id, feedPost) +> APIEmptyResponse updateFeedPost(tenantId, id, feedPost) @@ -5319,7 +5323,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5333,7 +5337,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateModerator** -> FlagCommentPublic200Response updateModerator(tenantId, id, updateModeratorBody) +> APIEmptyResponse updateModerator(tenantId, id, updateModeratorBody) @@ -5368,7 +5372,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5382,7 +5386,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateNotification** -> FlagCommentPublic200Response updateNotification(tenantId, id, updateNotificationBody, userId) +> APIEmptyResponse updateNotification(tenantId, id, updateNotificationBody, userId) @@ -5419,7 +5423,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5433,7 +5437,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateQuestionConfig** -> FlagCommentPublic200Response updateQuestionConfig(tenantId, id, updateQuestionConfigBody) +> APIEmptyResponse updateQuestionConfig(tenantId, id, updateQuestionConfigBody) @@ -5468,7 +5472,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5482,7 +5486,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateQuestionResult** -> FlagCommentPublic200Response updateQuestionResult(tenantId, id, updateQuestionResultBody) +> APIEmptyResponse updateQuestionResult(tenantId, id, updateQuestionResultBody) @@ -5517,7 +5521,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5582,7 +5586,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateTenant** -> FlagCommentPublic200Response updateTenant(tenantId, id, updateTenantBody) +> APIEmptyResponse updateTenant(tenantId, id, updateTenantBody) @@ -5617,7 +5621,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5631,7 +5635,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateTenantPackage** -> FlagCommentPublic200Response updateTenantPackage(tenantId, id, updateTenantPackageBody) +> APIEmptyResponse updateTenantPackage(tenantId, id, updateTenantPackageBody) @@ -5666,7 +5670,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5680,7 +5684,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateTenantUser** -> FlagCommentPublic200Response updateTenantUser(tenantId, id, updateTenantUserBody, updateComments) +> APIEmptyResponse updateTenantUser(tenantId, id, updateTenantUserBody, updateComments) @@ -5717,7 +5721,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5731,7 +5735,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateUserBadge** -> UpdateUserBadge200Response updateUserBadge(tenantId, id, updateUserBadgeParams) +> APIEmptySuccessResponse updateUserBadge(tenantId, id, updateUserBadgeParams) @@ -5766,7 +5770,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization diff --git a/client/doc/DeleteComment200Response.md b/client/doc/DeleteComment200Response.md deleted file mode 100644 index bf3f0eb..0000000 --- a/client/doc/DeleteComment200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.DeleteComment200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/DeleteCommentPublic200Response.md b/client/doc/DeleteCommentPublic200Response.md deleted file mode 100644 index 465d5fb..0000000 --- a/client/doc/DeleteCommentPublic200Response.md +++ /dev/null @@ -1,24 +0,0 @@ -# fastcomments_dart.model.DeleteCommentPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] -**hardRemoved** | **bool** | | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/DeleteCommentVote200Response.md b/client/doc/DeleteCommentVote200Response.md deleted file mode 100644 index 55dc4fa..0000000 --- a/client/doc/DeleteCommentVote200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.DeleteCommentVote200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**wasPendingVote** | **bool** | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/DeleteDomainConfig200Response.md b/client/doc/DeleteDomainConfigResponse.md similarity index 87% rename from client/doc/DeleteDomainConfig200Response.md rename to client/doc/DeleteDomainConfigResponse.md index 87b0882..35dcb2c 100644 --- a/client/doc/DeleteDomainConfig200Response.md +++ b/client/doc/DeleteDomainConfigResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.DeleteDomainConfig200Response +# fastcomments_dart.model.DeleteDomainConfigResponse ## Load the model package ```dart diff --git a/client/doc/DeleteFeedPostPublic200Response.md b/client/doc/DeleteFeedPostPublic200Response.md deleted file mode 100644 index b5a09a3..0000000 --- a/client/doc/DeleteFeedPostPublic200Response.md +++ /dev/null @@ -1,22 +0,0 @@ -# fastcomments_dart.model.DeleteFeedPostPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/DeleteFeedPostPublic200ResponseAnyOf.md b/client/doc/DeleteFeedPostPublicResponse.md similarity index 86% rename from client/doc/DeleteFeedPostPublic200ResponseAnyOf.md rename to client/doc/DeleteFeedPostPublicResponse.md index 3681083..3e85e28 100644 --- a/client/doc/DeleteFeedPostPublic200ResponseAnyOf.md +++ b/client/doc/DeleteFeedPostPublicResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.DeleteFeedPostPublic200ResponseAnyOf +# fastcomments_dart.model.DeleteFeedPostPublicResponse ## Load the model package ```dart diff --git a/client/doc/DeleteHashTagRequest.md b/client/doc/DeleteHashTagRequestBody.md similarity index 88% rename from client/doc/DeleteHashTagRequest.md rename to client/doc/DeleteHashTagRequestBody.md index 5672978..7617393 100644 --- a/client/doc/DeleteHashTagRequest.md +++ b/client/doc/DeleteHashTagRequestBody.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.DeleteHashTagRequest +# fastcomments_dart.model.DeleteHashTagRequestBody ## Load the model package ```dart diff --git a/client/doc/FlagComment200Response.md b/client/doc/FlagComment200Response.md deleted file mode 100644 index 1353562..0000000 --- a/client/doc/FlagComment200Response.md +++ /dev/null @@ -1,24 +0,0 @@ -# fastcomments_dart.model.FlagComment200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**statusCode** | **int** | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **String** | | -**reason** | **String** | | -**wasUnapproved** | **bool** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/FlagCommentPublic200Response.md b/client/doc/FlagCommentPublic200Response.md deleted file mode 100644 index edbb984..0000000 --- a/client/doc/FlagCommentPublic200Response.md +++ /dev/null @@ -1,22 +0,0 @@ -# fastcomments_dart.model.FlagCommentPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetAuditLogs200Response.md b/client/doc/GetAuditLogs200Response.md deleted file mode 100644 index cabeb84..0000000 --- a/client/doc/GetAuditLogs200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetAuditLogs200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**auditLogs** | [**List**](APIAuditLog.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetBannedUsersCountResponse.md b/client/doc/GetBannedUsersCountResponse.md new file mode 100644 index 0000000..45d7040 --- /dev/null +++ b/client/doc/GetBannedUsersCountResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GetBannedUsersCountResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**totalCount** | **double** | | +**status** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetBannedUsersFromCommentResponse.md b/client/doc/GetBannedUsersFromCommentResponse.md new file mode 100644 index 0000000..4e68891 --- /dev/null +++ b/client/doc/GetBannedUsersFromCommentResponse.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.GetBannedUsersFromCommentResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bannedUsers** | [**List**](APIBannedUserWithMultiMatchInfo.md) | | [default to const []] +**code** | **String** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetCachedNotificationCount200Response.md b/client/doc/GetCachedNotificationCount200Response.md deleted file mode 100644 index d2dbd9e..0000000 --- a/client/doc/GetCachedNotificationCount200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetCachedNotificationCount200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**UserNotificationCount**](UserNotificationCount.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetComment200Response.md b/client/doc/GetComment200Response.md deleted file mode 100644 index 4b27689..0000000 --- a/client/doc/GetComment200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetComment200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**APIComment**](APIComment.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetCommentBanStatusResponse.md b/client/doc/GetCommentBanStatusResponse.md new file mode 100644 index 0000000..057c69a --- /dev/null +++ b/client/doc/GetCommentBanStatusResponse.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.GetCommentBanStatusResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**emailDomain** | **String** | | +**canIPBan** | **bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetCommentText200Response.md b/client/doc/GetCommentText200Response.md deleted file mode 100644 index e988ae4..0000000 --- a/client/doc/GetCommentText200Response.md +++ /dev/null @@ -1,24 +0,0 @@ -# fastcomments_dart.model.GetCommentText200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**commentText** | **String** | | -**sanitizedCommentText** | **String** | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetCommentTextResponse.md b/client/doc/GetCommentTextResponse.md new file mode 100644 index 0000000..d90216c --- /dev/null +++ b/client/doc/GetCommentTextResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GetCommentTextResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **String** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetCommentVoteUserNames200Response.md b/client/doc/GetCommentVoteUserNames200Response.md deleted file mode 100644 index 9bb2442..0000000 --- a/client/doc/GetCommentVoteUserNames200Response.md +++ /dev/null @@ -1,24 +0,0 @@ -# fastcomments_dart.model.GetCommentVoteUserNames200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**voteUserNames** | **List** | | [default to const []] -**hasMore** | **bool** | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetComments200Response.md b/client/doc/GetComments200Response.md deleted file mode 100644 index 83920e8..0000000 --- a/client/doc/GetComments200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetComments200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comments** | [**List**](APIComment.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetCommentsForUserResponse.md b/client/doc/GetCommentsForUserResponse.md new file mode 100644 index 0000000..884401c --- /dev/null +++ b/client/doc/GetCommentsForUserResponse.md @@ -0,0 +1,15 @@ +# fastcomments_dart.model.GetCommentsForUserResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**moderatingTenantIds** | **List** | | [optional] [default to const []] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetCommentsPublic200Response.md b/client/doc/GetCommentsPublic200Response.md deleted file mode 100644 index a554274..0000000 --- a/client/doc/GetCommentsPublic200Response.md +++ /dev/null @@ -1,45 +0,0 @@ -# fastcomments_dart.model.GetCommentsPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**statusCode** | **int** | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **String** | | -**reason** | **String** | | -**translatedWarning** | **String** | | [optional] -**comments** | [**List**](PublicComment.md) | | [default to const []] -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**urlIdClean** | **String** | | [optional] -**lastGenDate** | **int** | | [optional] -**includesPastPages** | **bool** | | [optional] -**isDemo** | **bool** | | [optional] -**commentCount** | **int** | | [optional] -**isSiteAdmin** | **bool** | | [optional] -**hasBillingIssue** | **bool** | | [optional] -**moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**pageNumber** | **int** | | -**isWhiteLabeled** | **bool** | | [optional] -**isProd** | **bool** | | [optional] -**isCrawler** | **bool** | | [optional] -**notificationCount** | **int** | | [optional] -**hasMore** | **bool** | | [optional] -**isClosed** | **bool** | | [optional] -**presencePollState** | **int** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] -**urlIdWS** | **String** | | [optional] -**userIdWS** | **String** | | [optional] -**tenantIdWS** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetDomainConfigResponse.md b/client/doc/GetDomainConfigResponse.md new file mode 100644 index 0000000..e8015a2 --- /dev/null +++ b/client/doc/GetDomainConfigResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.GetDomainConfigResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **Object** | | [optional] +**status** | **Object** | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetDomainConfigs200Response.md b/client/doc/GetDomainConfigs200Response.md deleted file mode 100644 index 111ac56..0000000 --- a/client/doc/GetDomainConfigs200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# fastcomments_dart.model.GetDomainConfigs200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configurations** | **Object** | | -**status** | **Object** | | -**reason** | **String** | | -**code** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetDomainConfigsResponse.md b/client/doc/GetDomainConfigsResponse.md new file mode 100644 index 0000000..fad0545 --- /dev/null +++ b/client/doc/GetDomainConfigsResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.GetDomainConfigsResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configurations** | **Object** | | [optional] +**status** | **Object** | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetDomainConfigs200ResponseAnyOf.md b/client/doc/GetDomainConfigsResponseAnyOf.md similarity index 87% rename from client/doc/GetDomainConfigs200ResponseAnyOf.md rename to client/doc/GetDomainConfigsResponseAnyOf.md index 9adf85e..78c0424 100644 --- a/client/doc/GetDomainConfigs200ResponseAnyOf.md +++ b/client/doc/GetDomainConfigsResponseAnyOf.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.GetDomainConfigs200ResponseAnyOf +# fastcomments_dart.model.GetDomainConfigsResponseAnyOf ## Load the model package ```dart diff --git a/client/doc/GetDomainConfigs200ResponseAnyOf1.md b/client/doc/GetDomainConfigsResponseAnyOf1.md similarity index 88% rename from client/doc/GetDomainConfigs200ResponseAnyOf1.md rename to client/doc/GetDomainConfigsResponseAnyOf1.md index dfda05f..ade92d6 100644 --- a/client/doc/GetDomainConfigs200ResponseAnyOf1.md +++ b/client/doc/GetDomainConfigsResponseAnyOf1.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.GetDomainConfigs200ResponseAnyOf1 +# fastcomments_dart.model.GetDomainConfigsResponseAnyOf1 ## Load the model package ```dart diff --git a/client/doc/GetEmailTemplate200Response.md b/client/doc/GetEmailTemplate200Response.md deleted file mode 100644 index 1de03c0..0000000 --- a/client/doc/GetEmailTemplate200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetEmailTemplate200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetEmailTemplateDefinitions200Response.md b/client/doc/GetEmailTemplateDefinitions200Response.md deleted file mode 100644 index 372ed43..0000000 --- a/client/doc/GetEmailTemplateDefinitions200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetEmailTemplateDefinitions200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**definitions** | [**List**](EmailTemplateDefinition.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetEmailTemplateRenderErrors200Response.md b/client/doc/GetEmailTemplateRenderErrors200Response.md deleted file mode 100644 index 51e44b2..0000000 --- a/client/doc/GetEmailTemplateRenderErrors200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetEmailTemplateRenderErrors200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**renderErrors** | [**List**](EmailTemplateRenderErrorResponse.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetEmailTemplates200Response.md b/client/doc/GetEmailTemplates200Response.md deleted file mode 100644 index 1d4723f..0000000 --- a/client/doc/GetEmailTemplates200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetEmailTemplates200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**emailTemplates** | [**List**](CustomEmailTemplate.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetEventLog200Response.md b/client/doc/GetEventLog200Response.md deleted file mode 100644 index 680b9e0..0000000 --- a/client/doc/GetEventLog200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetEventLog200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**events** | [**List**](EventLogEntry.md) | | [default to const []] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetFeedPosts200Response.md b/client/doc/GetFeedPosts200Response.md deleted file mode 100644 index 02461fa..0000000 --- a/client/doc/GetFeedPosts200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetFeedPosts200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feedPosts** | [**List**](FeedPost.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetFeedPostsPublic200Response.md b/client/doc/GetFeedPostsPublic200Response.md deleted file mode 100644 index 51fd37b..0000000 --- a/client/doc/GetFeedPostsPublic200Response.md +++ /dev/null @@ -1,28 +0,0 @@ -# fastcomments_dart.model.GetFeedPostsPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**myReacts** | [**Map>**](Map.md) | | [optional] [default to const {}] -**status** | [**APIStatus**](APIStatus.md) | | -**feedPosts** | [**List**](FeedPost.md) | | [default to const []] -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] -**urlIdWS** | **String** | | [optional] -**userIdWS** | **String** | | [optional] -**tenantIdWS** | **String** | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetFeedPostsStats200Response.md b/client/doc/GetFeedPostsStats200Response.md deleted file mode 100644 index 35107d6..0000000 --- a/client/doc/GetFeedPostsStats200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetFeedPostsStats200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**stats** | [**Map**](FeedPostStats.md) | | [default to const {}] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetGifsSearchResponse.md b/client/doc/GetGifsSearchResponse.md new file mode 100644 index 0000000..f3c80b7 --- /dev/null +++ b/client/doc/GetGifsSearchResponse.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.GetGifsSearchResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [**List>**](List.md) | | [optional] [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetGifsTrendingResponse.md b/client/doc/GetGifsTrendingResponse.md new file mode 100644 index 0000000..555cf8b --- /dev/null +++ b/client/doc/GetGifsTrendingResponse.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.GetGifsTrendingResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [**List>**](List.md) | | [optional] [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetHashTags200Response.md b/client/doc/GetHashTags200Response.md deleted file mode 100644 index 4a60268..0000000 --- a/client/doc/GetHashTags200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetHashTags200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**hashTags** | [**List**](TenantHashTag.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetModerator200Response.md b/client/doc/GetModerator200Response.md deleted file mode 100644 index 72be109..0000000 --- a/client/doc/GetModerator200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetModerator200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderator** | [**Moderator**](Moderator.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetModerators200Response.md b/client/doc/GetModerators200Response.md deleted file mode 100644 index 5fc5179..0000000 --- a/client/doc/GetModerators200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetModerators200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderators** | [**List**](Moderator.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetNotificationCount200Response.md b/client/doc/GetNotificationCount200Response.md deleted file mode 100644 index f24bc26..0000000 --- a/client/doc/GetNotificationCount200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetNotificationCount200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**count** | **double** | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetNotifications200Response.md b/client/doc/GetNotifications200Response.md deleted file mode 100644 index 0f11051..0000000 --- a/client/doc/GetNotifications200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetNotifications200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**notifications** | [**List**](UserNotification.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetPendingWebhookEvents200Response.md b/client/doc/GetPendingWebhookEvents200Response.md deleted file mode 100644 index 1136ae6..0000000 --- a/client/doc/GetPendingWebhookEvents200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetPendingWebhookEvents200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**pendingWebhookEvents** | [**List**](PendingCommentToSyncOutbound.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetPublicPagesResponse.md b/client/doc/GetPublicPagesResponse.md new file mode 100644 index 0000000..1af75f9 --- /dev/null +++ b/client/doc/GetPublicPagesResponse.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.GetPublicPagesResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nextCursor** | **String** | | +**pages** | [**List**](PublicPage.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetQuestionConfig200Response.md b/client/doc/GetQuestionConfig200Response.md deleted file mode 100644 index e2c114f..0000000 --- a/client/doc/GetQuestionConfig200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetQuestionConfig200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetQuestionConfigs200Response.md b/client/doc/GetQuestionConfigs200Response.md deleted file mode 100644 index ac16c3e..0000000 --- a/client/doc/GetQuestionConfigs200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetQuestionConfigs200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionConfigs** | [**List**](QuestionConfig.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetQuestionResult200Response.md b/client/doc/GetQuestionResult200Response.md deleted file mode 100644 index affffe6..0000000 --- a/client/doc/GetQuestionResult200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetQuestionResult200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionResult** | [**QuestionResult**](QuestionResult.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetQuestionResults200Response.md b/client/doc/GetQuestionResults200Response.md deleted file mode 100644 index 9b102d9..0000000 --- a/client/doc/GetQuestionResults200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetQuestionResults200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionResults** | [**List**](QuestionResult.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetSSOUsers200Response.md b/client/doc/GetSSOUsersResponse.md similarity index 90% rename from client/doc/GetSSOUsers200Response.md rename to client/doc/GetSSOUsersResponse.md index 5605cd0..1e133ef 100644 --- a/client/doc/GetSSOUsers200Response.md +++ b/client/doc/GetSSOUsersResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.GetSSOUsers200Response +# fastcomments_dart.model.GetSSOUsersResponse ## Load the model package ```dart diff --git a/client/doc/GetTenant200Response.md b/client/doc/GetTenant200Response.md deleted file mode 100644 index e38212c..0000000 --- a/client/doc/GetTenant200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetTenant200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant** | [**APITenant**](APITenant.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTenantDailyUsages200Response.md b/client/doc/GetTenantDailyUsages200Response.md deleted file mode 100644 index f992819..0000000 --- a/client/doc/GetTenantDailyUsages200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetTenantDailyUsages200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantDailyUsages** | [**List**](APITenantDailyUsage.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTenantManualBadgesResponse.md b/client/doc/GetTenantManualBadgesResponse.md new file mode 100644 index 0000000..81bf1db --- /dev/null +++ b/client/doc/GetTenantManualBadgesResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GetTenantManualBadgesResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [**List**](TenantBadge.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetTenantPackage200Response.md b/client/doc/GetTenantPackage200Response.md deleted file mode 100644 index f02d954..0000000 --- a/client/doc/GetTenantPackage200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetTenantPackage200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantPackage** | [**TenantPackage**](TenantPackage.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTenantPackages200Response.md b/client/doc/GetTenantPackages200Response.md deleted file mode 100644 index 85154c3..0000000 --- a/client/doc/GetTenantPackages200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetTenantPackages200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantPackages** | [**List**](TenantPackage.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTenantUser200Response.md b/client/doc/GetTenantUser200Response.md deleted file mode 100644 index a2169fa..0000000 --- a/client/doc/GetTenantUser200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetTenantUser200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantUser** | [**User**](User.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTenantUsers200Response.md b/client/doc/GetTenantUsers200Response.md deleted file mode 100644 index f51f72b..0000000 --- a/client/doc/GetTenantUsers200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetTenantUsers200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantUsers** | [**List**](User.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTenants200Response.md b/client/doc/GetTenants200Response.md deleted file mode 100644 index bd0771f..0000000 --- a/client/doc/GetTenants200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetTenants200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenants** | [**List**](APITenant.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTicket200Response.md b/client/doc/GetTicket200Response.md deleted file mode 100644 index 22c4348..0000000 --- a/client/doc/GetTicket200Response.md +++ /dev/null @@ -1,24 +0,0 @@ -# fastcomments_dart.model.GetTicket200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicketDetail**](APITicketDetail.md) | | -**availableStates** | **List** | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTickets200Response.md b/client/doc/GetTickets200Response.md deleted file mode 100644 index 10ac92f..0000000 --- a/client/doc/GetTickets200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetTickets200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tickets** | [**List**](APITicket.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetTranslationsResponse.md b/client/doc/GetTranslationsResponse.md new file mode 100644 index 0000000..3d13836 --- /dev/null +++ b/client/doc/GetTranslationsResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GetTranslationsResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**translations** | **Map** | Construct a type with a set of properties K of type T | [default to const {}] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetUser200Response.md b/client/doc/GetUser200Response.md deleted file mode 100644 index 5334535..0000000 --- a/client/doc/GetUser200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetUser200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user** | [**User**](User.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserBadge200Response.md b/client/doc/GetUserBadge200Response.md deleted file mode 100644 index 6c5d0bd..0000000 --- a/client/doc/GetUserBadge200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetUserBadge200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadge** | [**UserBadge**](UserBadge.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserBadgeProgressById200Response.md b/client/doc/GetUserBadgeProgressById200Response.md deleted file mode 100644 index 8be2026..0000000 --- a/client/doc/GetUserBadgeProgressById200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetUserBadgeProgressById200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserBadgeProgressList200Response.md b/client/doc/GetUserBadgeProgressList200Response.md deleted file mode 100644 index 27cf951..0000000 --- a/client/doc/GetUserBadgeProgressList200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetUserBadgeProgressList200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadgeProgresses** | [**List**](UserBadgeProgress.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserBadges200Response.md b/client/doc/GetUserBadges200Response.md deleted file mode 100644 index 959e6b1..0000000 --- a/client/doc/GetUserBadges200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetUserBadges200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadges** | [**List**](UserBadge.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserInternalProfileResponse.md b/client/doc/GetUserInternalProfileResponse.md new file mode 100644 index 0000000..62f9b3c --- /dev/null +++ b/client/doc/GetUserInternalProfileResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GetUserInternalProfileResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetUserInternalProfileResponseProfile.md b/client/doc/GetUserInternalProfileResponseProfile.md new file mode 100644 index 0000000..b52b894 --- /dev/null +++ b/client/doc/GetUserInternalProfileResponseProfile.md @@ -0,0 +1,31 @@ +# fastcomments_dart.model.GetUserInternalProfileResponseProfile + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commenterName** | **String** | | [optional] +**firstCommentDate** | [**DateTime**](DateTime.md) | | [optional] +**ipHash** | **String** | | [optional] +**countryFlag** | **String** | | [optional] +**countryCode** | **String** | | [optional] +**websiteUrl** | **String** | | [optional] +**bio** | **String** | | [optional] +**karma** | **double** | | [optional] +**locale** | **String** | | [optional] +**verified** | **bool** | | [optional] +**avatarSrc** | **String** | | [optional] +**displayName** | **String** | | [optional] +**username** | **String** | | [optional] +**commenterEmail** | **String** | | [optional] +**email** | **String** | | [optional] +**anonUserId** | **String** | | [optional] +**userId** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetUserManualBadgesResponse.md b/client/doc/GetUserManualBadgesResponse.md new file mode 100644 index 0000000..97d3dca --- /dev/null +++ b/client/doc/GetUserManualBadgesResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GetUserManualBadgesResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [**List**](UserBadge.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetUserNotificationCount200Response.md b/client/doc/GetUserNotificationCount200Response.md deleted file mode 100644 index 94474f4..0000000 --- a/client/doc/GetUserNotificationCount200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetUserNotificationCount200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**count** | **int** | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserNotifications200Response.md b/client/doc/GetUserNotifications200Response.md deleted file mode 100644 index f212955..0000000 --- a/client/doc/GetUserNotifications200Response.md +++ /dev/null @@ -1,26 +0,0 @@ -# fastcomments_dart.model.GetUserNotifications200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**translations** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**isSubscribed** | **bool** | | -**hasMore** | **bool** | | -**notifications** | [**List**](RenderableUserNotification.md) | | [default to const []] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserPresenceStatuses200Response.md b/client/doc/GetUserPresenceStatuses200Response.md deleted file mode 100644 index 5700764..0000000 --- a/client/doc/GetUserPresenceStatuses200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetUserPresenceStatuses200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userIdsOnline** | **Map** | Construct a type with a set of properties K of type T | [default to const {}] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserReactsPublic200Response.md b/client/doc/GetUserReactsPublic200Response.md deleted file mode 100644 index 1d8fe59..0000000 --- a/client/doc/GetUserReactsPublic200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetUserReactsPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reacts** | [**Map>**](Map.md) | | [default to const {}] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetUserTrustFactorResponse.md b/client/doc/GetUserTrustFactorResponse.md new file mode 100644 index 0000000..3ebfdf5 --- /dev/null +++ b/client/doc/GetUserTrustFactorResponse.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.GetUserTrustFactorResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**manualTrustFactor** | **double** | | [optional] +**autoTrustFactor** | **double** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetV1PageLikes.md b/client/doc/GetV1PageLikes.md new file mode 100644 index 0000000..97412f8 --- /dev/null +++ b/client/doc/GetV1PageLikes.md @@ -0,0 +1,19 @@ +# fastcomments_dart.model.GetV1PageLikes + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**urlIdWS** | **String** | | +**didLike** | **bool** | | +**commentCount** | **int** | | +**likeCount** | **int** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetV2PageReactUsersResponse.md b/client/doc/GetV2PageReactUsersResponse.md new file mode 100644 index 0000000..e03a9ff --- /dev/null +++ b/client/doc/GetV2PageReactUsersResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GetV2PageReactUsersResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userNames** | **List** | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetV2PageReacts.md b/client/doc/GetV2PageReacts.md new file mode 100644 index 0000000..e815bf2 --- /dev/null +++ b/client/doc/GetV2PageReacts.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.GetV2PageReacts + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reactedIds** | **List** | | [optional] [default to const []] +**counts** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GetVotes200Response.md b/client/doc/GetVotes200Response.md deleted file mode 100644 index 73d96f5..0000000 --- a/client/doc/GetVotes200Response.md +++ /dev/null @@ -1,25 +0,0 @@ -# fastcomments_dart.model.GetVotes200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**appliedAuthorizedVotes** | [**List**](PublicVote.md) | | [default to const []] -**appliedAnonymousVotes** | [**List**](PublicVote.md) | | [default to const []] -**pendingVotes** | [**List**](PublicVote.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GetVotesForUser200Response.md b/client/doc/GetVotesForUser200Response.md deleted file mode 100644 index 98546e4..0000000 --- a/client/doc/GetVotesForUser200Response.md +++ /dev/null @@ -1,25 +0,0 @@ -# fastcomments_dart.model.GetVotesForUser200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**appliedAuthorizedVotes** | [**List**](PublicVote.md) | | [default to const []] -**appliedAnonymousVotes** | [**List**](PublicVote.md) | | [default to const []] -**pendingVotes** | [**List**](PublicVote.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/GifGetLargeResponse.md b/client/doc/GifGetLargeResponse.md new file mode 100644 index 0000000..d9d0939 --- /dev/null +++ b/client/doc/GifGetLargeResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GifGetLargeResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**src** | **String** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GifSearchInternalError.md b/client/doc/GifSearchInternalError.md new file mode 100644 index 0000000..e0903ca --- /dev/null +++ b/client/doc/GifSearchInternalError.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GifSearchInternalError + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GifSearchResponse.md b/client/doc/GifSearchResponse.md new file mode 100644 index 0000000..acfca0f --- /dev/null +++ b/client/doc/GifSearchResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GifSearchResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [**List>**](List.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/GifSearchResponseImagesInnerInner.md b/client/doc/GifSearchResponseImagesInnerInner.md new file mode 100644 index 0000000..97e78bb --- /dev/null +++ b/client/doc/GifSearchResponseImagesInnerInner.md @@ -0,0 +1,14 @@ +# fastcomments_dart.model.GifSearchResponseImagesInnerInner + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/HeaderAccountNotification.md b/client/doc/HeaderAccountNotification.md index e4cd0ac..889684d 100644 --- a/client/doc/HeaderAccountNotification.md +++ b/client/doc/HeaderAccountNotification.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **linkUrl** | **String** | | **linkText** | **String** | | **createdAt** | [**DateTime**](DateTime.md) | | +**type** | **String** | Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/doc/ModerationAPIChildCommentsResponse.md b/client/doc/ModerationAPIChildCommentsResponse.md new file mode 100644 index 0000000..0192a22 --- /dev/null +++ b/client/doc/ModerationAPIChildCommentsResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationAPIChildCommentsResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comments** | [**List**](ModerationAPIComment.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationAPIComment.md b/client/doc/ModerationAPIComment.md new file mode 100644 index 0000000..7405b78 --- /dev/null +++ b/client/doc/ModerationAPIComment.md @@ -0,0 +1,56 @@ +# fastcomments_dart.model.ModerationAPIComment + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isLocalDeleted** | **bool** | | [optional] +**replyCount** | **double** | | [optional] +**feedbackResults** | **List** | | [optional] [default to const []] +**isVotedUp** | **bool** | | [optional] +**isVotedDown** | **bool** | | [optional] +**myVoteId** | **String** | | [optional] +**id** | **String** | | +**tenantId** | **String** | | +**urlId** | **String** | | +**url** | **String** | | +**pageTitle** | **String** | | [optional] +**userId** | **String** | | [optional] +**anonUserId** | **String** | | [optional] +**commenterName** | **String** | | +**commenterLink** | **String** | | [optional] +**commentHTML** | **String** | | +**parentId** | **String** | | [optional] +**date** | [**DateTime**](DateTime.md) | | +**localDateString** | **String** | | [optional] +**votes** | **double** | | [optional] +**votesUp** | **double** | | [optional] +**votesDown** | **double** | | [optional] +**expireAt** | [**DateTime**](DateTime.md) | | [optional] +**reviewed** | **bool** | | [optional] +**avatarSrc** | **String** | | [optional] +**isSpam** | **bool** | | [optional] +**permNotSpam** | **bool** | | [optional] +**hasLinks** | **bool** | | [optional] +**hasCode** | **bool** | | [optional] +**approved** | **bool** | | +**locale** | **String** | | +**isBannedUser** | **bool** | | [optional] +**isByAdmin** | **bool** | | [optional] +**isByModerator** | **bool** | | [optional] +**isPinned** | **bool** | | [optional] +**isLocked** | **bool** | | [optional] +**flagCount** | **double** | | [optional] +**displayLabel** | **String** | | [optional] +**badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to const []] +**verified** | **bool** | | +**feedbackIds** | **List** | | [optional] [default to const []] +**isDeleted** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationAPICommentLog.md b/client/doc/ModerationAPICommentLog.md new file mode 100644 index 0000000..32af56e --- /dev/null +++ b/client/doc/ModerationAPICommentLog.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.ModerationAPICommentLog + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | [**DateTime**](DateTime.md) | | +**username** | **String** | | [optional] +**actionName** | **String** | | +**messageHTML** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationAPICommentResponse.md b/client/doc/ModerationAPICommentResponse.md new file mode 100644 index 0000000..6102836 --- /dev/null +++ b/client/doc/ModerationAPICommentResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationAPICommentResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationAPICountCommentsResponse.md b/client/doc/ModerationAPICountCommentsResponse.md new file mode 100644 index 0000000..575c2e1 --- /dev/null +++ b/client/doc/ModerationAPICountCommentsResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationAPICountCommentsResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**count** | **double** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationAPIGetCommentIdsResponse.md b/client/doc/ModerationAPIGetCommentIdsResponse.md new file mode 100644 index 0000000..1feb2c2 --- /dev/null +++ b/client/doc/ModerationAPIGetCommentIdsResponse.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.ModerationAPIGetCommentIdsResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List** | | [default to const []] +**hasMore** | **bool** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationAPIGetCommentsResponse.md b/client/doc/ModerationAPIGetCommentsResponse.md new file mode 100644 index 0000000..4b07aa7 --- /dev/null +++ b/client/doc/ModerationAPIGetCommentsResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.ModerationAPIGetCommentsResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**translations** | **Object** | | +**comments** | [**List**](ModerationAPIComment.md) | | [default to const []] +**moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationAPIGetLogsResponse.md b/client/doc/ModerationAPIGetLogsResponse.md new file mode 100644 index 0000000..9de8fee --- /dev/null +++ b/client/doc/ModerationAPIGetLogsResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationAPIGetLogsResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | [**List**](ModerationAPICommentLog.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationApi.md b/client/doc/ModerationApi.md new file mode 100644 index 0000000..84827de --- /dev/null +++ b/client/doc/ModerationApi.md @@ -0,0 +1,2007 @@ +# fastcomments_dart.api.ModerationApi + +## Load the API package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +All URIs are relative to *https://fastcomments.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteModerationVote**](ModerationApi.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | +[**getApiComments**](ModerationApi.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | +[**getApiExportStatus**](ModerationApi.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | +[**getApiIds**](ModerationApi.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | +[**getBanUsersFromComment**](ModerationApi.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | +[**getCommentBanStatus**](ModerationApi.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | +[**getCommentChildren**](ModerationApi.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | +[**getCount**](ModerationApi.md#getcount) | **GET** /auth/my-account/moderate-comments/count | +[**getCounts**](ModerationApi.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | +[**getLogs**](ModerationApi.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | +[**getManualBadges**](ModerationApi.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | +[**getManualBadgesForUser**](ModerationApi.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | +[**getModerationComment**](ModerationApi.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | +[**getModerationCommentText**](ModerationApi.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | +[**getPreBanSummary**](ModerationApi.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | +[**getSearchCommentsSummary**](ModerationApi.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | +[**getSearchPages**](ModerationApi.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | +[**getSearchSites**](ModerationApi.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | +[**getSearchSuggest**](ModerationApi.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | +[**getSearchUsers**](ModerationApi.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | +[**getTrustFactor**](ModerationApi.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | +[**getUserBanPreference**](ModerationApi.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | +[**getUserInternalProfile**](ModerationApi.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | +[**postAdjustCommentVotes**](ModerationApi.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | +[**postApiExport**](ModerationApi.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | +[**postBanUserFromComment**](ModerationApi.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | +[**postBanUserUndo**](ModerationApi.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | +[**postBulkPreBanSummary**](ModerationApi.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | +[**postCommentsByIds**](ModerationApi.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | +[**postFlagComment**](ModerationApi.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | +[**postRemoveComment**](ModerationApi.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | +[**postRestoreDeletedComment**](ModerationApi.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | +[**postSetCommentApprovalStatus**](ModerationApi.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | +[**postSetCommentReviewStatus**](ModerationApi.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | +[**postSetCommentSpamStatus**](ModerationApi.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | +[**postSetCommentText**](ModerationApi.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | +[**postUnFlagComment**](ModerationApi.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | +[**postVote**](ModerationApi.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | +[**putAwardBadge**](ModerationApi.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | +[**putCloseThread**](ModerationApi.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | +[**putRemoveBadge**](ModerationApi.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | +[**putReopenThread**](ModerationApi.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | +[**setTrustFactor**](ModerationApi.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | + + +# **deleteModerationVote** +> VoteDeleteResponse deleteModerationVote(commentId, voteId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final voteId = voteId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.deleteModerationVote(commentId, voteId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->deleteModerationVote: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **voteId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**VoteDeleteResponse**](VoteDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getApiComments** +> ModerationAPIGetCommentsResponse getApiComments(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final page = 1.2; // double | +final count = 1.2; // double | +final textSearch = textSearch_example; // String | +final byIPFromComment = byIPFromComment_example; // String | +final filters = filters_example; // String | +final searchFilters = searchFilters_example; // String | +final sorts = sorts_example; // String | +final demo = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.getApiComments(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getApiComments: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **double**| | [optional] + **count** | **double**| | [optional] + **textSearch** | **String**| | [optional] + **byIPFromComment** | **String**| | [optional] + **filters** | **String**| | [optional] + **searchFilters** | **String**| | [optional] + **sorts** | **String**| | [optional] + **demo** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getApiExportStatus** +> ModerationExportStatusResponse getApiExportStatus(batchJobId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final batchJobId = batchJobId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getApiExportStatus(batchJobId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getApiExportStatus: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchJobId** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getApiIds** +> ModerationAPIGetCommentIdsResponse getApiIds(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final textSearch = textSearch_example; // String | +final byIPFromComment = byIPFromComment_example; // String | +final filters = filters_example; // String | +final searchFilters = searchFilters_example; // String | +final afterId = afterId_example; // String | +final demo = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.getApiIds(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getApiIds: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **String**| | [optional] + **byIPFromComment** | **String**| | [optional] + **filters** | **String**| | [optional] + **searchFilters** | **String**| | [optional] + **afterId** | **String**| | [optional] + **demo** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getBanUsersFromComment** +> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getBanUsersFromComment(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getBanUsersFromComment: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentBanStatus** +> GetCommentBanStatusResponse getCommentBanStatus(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getCommentBanStatus(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getCommentBanStatus: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentChildren** +> ModerationAPIChildCommentsResponse getCommentChildren(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getCommentChildren(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getCommentChildren: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCount** +> ModerationAPICountCommentsResponse getCount(textSearch, byIPFromComment, filter, searchFilters, demo, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final textSearch = textSearch_example; // String | +final byIPFromComment = byIPFromComment_example; // String | +final filter = filter_example; // String | +final searchFilters = searchFilters_example; // String | +final demo = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.getCount(textSearch, byIPFromComment, filter, searchFilters, demo, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getCount: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **String**| | [optional] + **byIPFromComment** | **String**| | [optional] + **filter** | **String**| | [optional] + **searchFilters** | **String**| | [optional] + **demo** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCounts** +> GetBannedUsersCountResponse getCounts(sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final sso = sso_example; // String | + +try { + final result = api_instance.getCounts(sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getCounts: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **String**| | [optional] + +### Return type + +[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getLogs** +> ModerationAPIGetLogsResponse getLogs(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getLogs(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getLogs: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getManualBadges** +> GetTenantManualBadgesResponse getManualBadges(sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final sso = sso_example; // String | + +try { + final result = api_instance.getManualBadges(sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getManualBadges: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **String**| | [optional] + +### Return type + +[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getManualBadgesForUser** +> GetUserManualBadgesResponse getManualBadgesForUser(badgesUserId, commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final badgesUserId = badgesUserId_example; // String | +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getManualBadgesForUser(badgesUserId, commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getManualBadgesForUser: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgesUserId** | **String**| | [optional] + **commentId** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getModerationComment** +> ModerationAPICommentResponse getModerationComment(commentId, includeEmail, includeIP, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final includeEmail = true; // bool | +final includeIP = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.getModerationComment(commentId, includeEmail, includeIP, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getModerationComment: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **includeEmail** | **bool**| | [optional] + **includeIP** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getModerationCommentText** +> GetCommentTextResponse getModerationCommentText(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getModerationCommentText(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getModerationCommentText: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**GetCommentTextResponse**](GetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getPreBanSummary** +> PreBanSummary getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final includeByUserIdAndEmail = true; // bool | +final includeByIP = true; // bool | +final includeByEmailDomain = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getPreBanSummary: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **includeByUserIdAndEmail** | **bool**| | [optional] + **includeByIP** | **bool**| | [optional] + **includeByEmailDomain** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**PreBanSummary**](PreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchCommentsSummary** +> ModerationCommentSearchResponse getSearchCommentsSummary(value, filters, searchFilters, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final value = value_example; // String | +final filters = filters_example; // String | +final searchFilters = searchFilters_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getSearchCommentsSummary(value, filters, searchFilters, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getSearchCommentsSummary: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **String**| | [optional] + **filters** | **String**| | [optional] + **searchFilters** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchPages** +> ModerationPageSearchResponse getSearchPages(value, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final value = value_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getSearchPages(value, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getSearchPages: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchSites** +> ModerationSiteSearchResponse getSearchSites(value, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final value = value_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getSearchSites(value, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getSearchSites: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchSuggest** +> ModerationSuggestResponse getSearchSuggest(textSearch, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final textSearch = textSearch_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getSearchSuggest(textSearch, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getSearchSuggest: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationSuggestResponse**](ModerationSuggestResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchUsers** +> ModerationUserSearchResponse getSearchUsers(value, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final value = value_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getSearchUsers(value, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getSearchUsers: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getTrustFactor** +> GetUserTrustFactorResponse getTrustFactor(userId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final userId = userId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getTrustFactor(userId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getTrustFactor: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUserBanPreference** +> APIModerateGetUserBanPreferencesResponse getUserBanPreference(sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final sso = sso_example; // String | + +try { + final result = api_instance.getUserBanPreference(sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getUserBanPreference: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **String**| | [optional] + +### Return type + +[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUserInternalProfile** +> GetUserInternalProfileResponse getUserInternalProfile(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getUserInternalProfile(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->getUserInternalProfile: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postAdjustCommentVotes** +> AdjustVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final adjustCommentVotesParams = AdjustCommentVotesParams(); // AdjustCommentVotesParams | +final sso = sso_example; // String | + +try { + final result = api_instance.postAdjustCommentVotes(commentId, adjustCommentVotesParams, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postAdjustCommentVotes: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md)| | + **sso** | **String**| | [optional] + +### Return type + +[**AdjustVotesResponse**](AdjustVotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postApiExport** +> ModerationExportResponse postApiExport(textSearch, byIPFromComment, filters, searchFilters, sorts, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final textSearch = textSearch_example; // String | +final byIPFromComment = byIPFromComment_example; // String | +final filters = filters_example; // String | +final searchFilters = searchFilters_example; // String | +final sorts = sorts_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.postApiExport(textSearch, byIPFromComment, filters, searchFilters, sorts, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postApiExport: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **String**| | [optional] + **byIPFromComment** | **String**| | [optional] + **filters** | **String**| | [optional] + **searchFilters** | **String**| | [optional] + **sorts** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**ModerationExportResponse**](ModerationExportResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postBanUserFromComment** +> BanUserFromCommentResult postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final banEmail = true; // bool | +final banEmailDomain = true; // bool | +final banIP = true; // bool | +final deleteAllUsersComments = true; // bool | +final bannedUntil = bannedUntil_example; // String | +final isShadowBan = true; // bool | +final updateId = updateId_example; // String | +final banReason = banReason_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postBanUserFromComment: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **banEmail** | **bool**| | [optional] + **banEmailDomain** | **bool**| | [optional] + **banIP** | **bool**| | [optional] + **deleteAllUsersComments** | **bool**| | [optional] + **bannedUntil** | **String**| | [optional] + **isShadowBan** | **bool**| | [optional] + **updateId** | **String**| | [optional] + **banReason** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**BanUserFromCommentResult**](BanUserFromCommentResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postBanUserUndo** +> APIEmptyResponse postBanUserUndo(banUserUndoParams, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final banUserUndoParams = BanUserUndoParams(); // BanUserUndoParams | +final sso = sso_example; // String | + +try { + final result = api_instance.postBanUserUndo(banUserUndoParams, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postBanUserUndo: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md)| | + **sso** | **String**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postBulkPreBanSummary** +> BulkPreBanSummary postBulkPreBanSummary(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final bulkPreBanParams = BulkPreBanParams(); // BulkPreBanParams | +final includeByUserIdAndEmail = true; // bool | +final includeByIP = true; // bool | +final includeByEmailDomain = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.postBulkPreBanSummary(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postBulkPreBanSummary: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md)| | + **includeByUserIdAndEmail** | **bool**| | [optional] + **includeByIP** | **bool**| | [optional] + **includeByEmailDomain** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**BulkPreBanSummary**](BulkPreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postCommentsByIds** +> ModerationAPIChildCommentsResponse postCommentsByIds(commentsByIdsParams, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentsByIdsParams = CommentsByIdsParams(); // CommentsByIdsParams | +final sso = sso_example; // String | + +try { + final result = api_instance.postCommentsByIds(commentsByIdsParams, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postCommentsByIds: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md)| | + **sso** | **String**| | [optional] + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postFlagComment** +> APIEmptyResponse postFlagComment(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.postFlagComment(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postFlagComment: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postRemoveComment** +> PostRemoveCommentResponse postRemoveComment(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.postRemoveComment(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postRemoveComment: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postRestoreDeletedComment** +> APIEmptyResponse postRestoreDeletedComment(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.postRestoreDeletedComment(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postRestoreDeletedComment: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postSetCommentApprovalStatus** +> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final approved = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.postSetCommentApprovalStatus(commentId, approved, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postSetCommentApprovalStatus: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **approved** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postSetCommentReviewStatus** +> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final reviewed = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.postSetCommentReviewStatus(commentId, reviewed, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postSetCommentReviewStatus: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **reviewed** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postSetCommentSpamStatus** +> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final spam = true; // bool | +final permNotSpam = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.postSetCommentSpamStatus(commentId, spam, permNotSpam, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postSetCommentSpamStatus: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **spam** | **bool**| | [optional] + **permNotSpam** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postSetCommentText** +> SetCommentTextResponse postSetCommentText(commentId, setCommentTextParams, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final setCommentTextParams = SetCommentTextParams(); // SetCommentTextParams | +final sso = sso_example; // String | + +try { + final result = api_instance.postSetCommentText(commentId, setCommentTextParams, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postSetCommentText: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md)| | + **sso** | **String**| | [optional] + +### Return type + +[**SetCommentTextResponse**](SetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postUnFlagComment** +> APIEmptyResponse postUnFlagComment(commentId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.postUnFlagComment(commentId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postUnFlagComment: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postVote** +> VoteResponse postVote(commentId, direction, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final commentId = commentId_example; // String | +final direction = direction_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.postVote(commentId, direction, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->postVote: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String**| | + **direction** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**VoteResponse**](VoteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **putAwardBadge** +> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final badgeId = badgeId_example; // String | +final userId = userId_example; // String | +final commentId = commentId_example; // String | +final broadcastId = broadcastId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.putAwardBadge(badgeId, userId, commentId, broadcastId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->putAwardBadge: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgeId** | **String**| | + **userId** | **String**| | [optional] + **commentId** | **String**| | [optional] + **broadcastId** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **putCloseThread** +> APIEmptyResponse putCloseThread(urlId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final urlId = urlId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.putCloseThread(urlId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->putCloseThread: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **urlId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **putRemoveBadge** +> RemoveUserBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final badgeId = badgeId_example; // String | +final userId = userId_example; // String | +final commentId = commentId_example; // String | +final broadcastId = broadcastId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.putRemoveBadge(badgeId, userId, commentId, broadcastId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->putRemoveBadge: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgeId** | **String**| | + **userId** | **String**| | [optional] + **commentId** | **String**| | [optional] + **broadcastId** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **putReopenThread** +> APIEmptyResponse putReopenThread(urlId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final urlId = urlId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.putReopenThread(urlId, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->putReopenThread: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **urlId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **setTrustFactor** +> SetUserTrustFactorResponse setTrustFactor(userId, trustFactor, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = ModerationApi(); +final userId = userId_example; // String | +final trustFactor = trustFactor_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.setTrustFactor(userId, trustFactor, sso); + print(result); +} catch (e) { + print('Exception when calling ModerationApi->setTrustFactor: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| | [optional] + **trustFactor** | **String**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/client/doc/ModerationCommentSearchResponse.md b/client/doc/ModerationCommentSearchResponse.md new file mode 100644 index 0000000..c843bb4 --- /dev/null +++ b/client/doc/ModerationCommentSearchResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationCommentSearchResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commentCount** | **int** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationExportResponse.md b/client/doc/ModerationExportResponse.md new file mode 100644 index 0000000..954f2c9 --- /dev/null +++ b/client/doc/ModerationExportResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationExportResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**batchJobId** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationExportStatusResponse.md b/client/doc/ModerationExportStatusResponse.md new file mode 100644 index 0000000..c02e7e0 --- /dev/null +++ b/client/doc/ModerationExportStatusResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.ModerationExportStatusResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**jobStatus** | **String** | | +**recordCount** | **int** | | +**downloadUrl** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationFilter.md b/client/doc/ModerationFilter.md new file mode 100644 index 0000000..6bf802d --- /dev/null +++ b/client/doc/ModerationFilter.md @@ -0,0 +1,26 @@ +# fastcomments_dart.model.ModerationFilter + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reviewed** | **bool** | | [optional] +**approved** | **bool** | | [optional] +**isSpam** | **bool** | | [optional] +**isBannedUser** | **bool** | | [optional] +**isLocked** | **bool** | | [optional] +**flagCountGt** | **double** | | [optional] +**userId** | **String** | | [optional] +**urlId** | **String** | | [optional] +**domain** | **String** | | [optional] +**moderationGroupIds** | **List** | | [optional] [default to const []] +**commentTextSearch** | **List** | Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. | [optional] [default to const []] +**exactCommentText** | **String** | Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationPageSearchProjected.md b/client/doc/ModerationPageSearchProjected.md new file mode 100644 index 0000000..3306587 --- /dev/null +++ b/client/doc/ModerationPageSearchProjected.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.ModerationPageSearchProjected + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**urlId** | **String** | | +**url** | **String** | | +**title** | **String** | | +**commentCount** | **double** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationPageSearchResponse.md b/client/doc/ModerationPageSearchResponse.md new file mode 100644 index 0000000..9c4d5ba --- /dev/null +++ b/client/doc/ModerationPageSearchResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationPageSearchResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pages** | [**List**](ModerationPageSearchProjected.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationSiteSearchProjected.md b/client/doc/ModerationSiteSearchProjected.md new file mode 100644 index 0000000..012dbf8 --- /dev/null +++ b/client/doc/ModerationSiteSearchProjected.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationSiteSearchProjected + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **String** | | +**logoSrc100px** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationSiteSearchResponse.md b/client/doc/ModerationSiteSearchResponse.md new file mode 100644 index 0000000..603c9de --- /dev/null +++ b/client/doc/ModerationSiteSearchResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationSiteSearchResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sites** | [**List**](ModerationSiteSearchProjected.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationSuggestResponse.md b/client/doc/ModerationSuggestResponse.md new file mode 100644 index 0000000..13f7a05 --- /dev/null +++ b/client/doc/ModerationSuggestResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.ModerationSuggestResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**pages** | [**List**](ModerationPageSearchProjected.md) | | [optional] [default to const []] +**users** | [**List**](ModerationUserSearchProjected.md) | | [optional] [default to const []] +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationUserSearchProjected.md b/client/doc/ModerationUserSearchProjected.md new file mode 100644 index 0000000..c87cdfe --- /dev/null +++ b/client/doc/ModerationUserSearchProjected.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.ModerationUserSearchProjected + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**username** | **String** | | +**displayName** | **String** | | [optional] +**avatarSrc** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ModerationUserSearchResponse.md b/client/doc/ModerationUserSearchResponse.md new file mode 100644 index 0000000..4bd5b78 --- /dev/null +++ b/client/doc/ModerationUserSearchResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.ModerationUserSearchResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List**](ModerationUserSearchProjected.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PageUserEntry.md b/client/doc/PageUserEntry.md new file mode 100644 index 0000000..f701eee --- /dev/null +++ b/client/doc/PageUserEntry.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.PageUserEntry + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isPrivate** | **bool** | | [optional] +**avatarSrc** | **String** | | [optional] +**displayName** | **String** | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PageUsersInfoResponse.md b/client/doc/PageUsersInfoResponse.md new file mode 100644 index 0000000..a552a20 --- /dev/null +++ b/client/doc/PageUsersInfoResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.PageUsersInfoResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List**](PageUserEntry.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PageUsersOfflineResponse.md b/client/doc/PageUsersOfflineResponse.md new file mode 100644 index 0000000..06ca1f2 --- /dev/null +++ b/client/doc/PageUsersOfflineResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.PageUsersOfflineResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nextAfterUserId** | **String** | | +**nextAfterName** | **String** | | +**users** | [**List**](PageUserEntry.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PageUsersOnlineResponse.md b/client/doc/PageUsersOnlineResponse.md new file mode 100644 index 0000000..4623fd4 --- /dev/null +++ b/client/doc/PageUsersOnlineResponse.md @@ -0,0 +1,20 @@ +# fastcomments_dart.model.PageUsersOnlineResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nextAfterUserId** | **String** | | +**nextAfterName** | **String** | | +**totalCount** | **double** | | +**anonCount** | **double** | | +**users** | [**List**](PageUserEntry.md) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PagesSortBy.md b/client/doc/PagesSortBy.md new file mode 100644 index 0000000..9965e59 --- /dev/null +++ b/client/doc/PagesSortBy.md @@ -0,0 +1,14 @@ +# fastcomments_dart.model.PagesSortBy + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PatchDomainConfigResponse.md b/client/doc/PatchDomainConfigResponse.md new file mode 100644 index 0000000..3601152 --- /dev/null +++ b/client/doc/PatchDomainConfigResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.PatchDomainConfigResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **Object** | | [optional] +**status** | **Object** | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PatchHashTag200Response.md b/client/doc/PatchHashTag200Response.md deleted file mode 100644 index cc3fed1..0000000 --- a/client/doc/PatchHashTag200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.PatchHashTag200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**hashTag** | [**TenantHashTag**](TenantHashTag.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/PinComment200Response.md b/client/doc/PinComment200Response.md deleted file mode 100644 index aef04bc..0000000 --- a/client/doc/PinComment200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.PinComment200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**commentPositions** | [**Map**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | [default to const {}] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/PostRemoveCommentResponse.md b/client/doc/PostRemoveCommentResponse.md new file mode 100644 index 0000000..20c632d --- /dev/null +++ b/client/doc/PostRemoveCommentResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.PostRemoveCommentResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**status** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PreBanSummary.md b/client/doc/PreBanSummary.md new file mode 100644 index 0000000..0317a23 --- /dev/null +++ b/client/doc/PreBanSummary.md @@ -0,0 +1,17 @@ +# fastcomments_dart.model.PreBanSummary + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**usernames** | **List** | | [default to const []] +**count** | **double** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PublicApi.md b/client/doc/PublicApi.md index 5264824..47ee71d 100644 --- a/client/doc/PublicApi.md +++ b/client/doc/PublicApi.md @@ -13,22 +13,39 @@ Method | HTTP request | Description [**checkedCommentsForBlocked**](PublicApi.md#checkedcommentsforblocked) | **GET** /check-blocked-comments | [**createCommentPublic**](PublicApi.md#createcommentpublic) | **POST** /comments/{tenantId} | [**createFeedPostPublic**](PublicApi.md#createfeedpostpublic) | **POST** /feed-posts/{tenantId} | +[**createV1PageReact**](PublicApi.md#createv1pagereact) | **POST** /page-reacts/v1/likes/{tenantId} | +[**createV2PageReact**](PublicApi.md#createv2pagereact) | **POST** /page-reacts/v2/{tenantId} | [**deleteCommentPublic**](PublicApi.md#deletecommentpublic) | **DELETE** /comments/{tenantId}/{commentId} | [**deleteCommentVote**](PublicApi.md#deletecommentvote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | [**deleteFeedPostPublic**](PublicApi.md#deletefeedpostpublic) | **DELETE** /feed-posts/{tenantId}/{postId} | +[**deleteV1PageReact**](PublicApi.md#deletev1pagereact) | **DELETE** /page-reacts/v1/likes/{tenantId} | +[**deleteV2PageReact**](PublicApi.md#deletev2pagereact) | **DELETE** /page-reacts/v2/{tenantId} | [**flagCommentPublic**](PublicApi.md#flagcommentpublic) | **POST** /flag-comment/{commentId} | [**getCommentText**](PublicApi.md#getcommenttext) | **GET** /comments/{tenantId}/{commentId}/text | [**getCommentVoteUserNames**](PublicApi.md#getcommentvoteusernames) | **GET** /comments/{tenantId}/{commentId}/votes | +[**getCommentsForUser**](PublicApi.md#getcommentsforuser) | **GET** /comments-for-user | [**getCommentsPublic**](PublicApi.md#getcommentspublic) | **GET** /comments/{tenantId} | [**getEventLog**](PublicApi.md#geteventlog) | **GET** /event-log/{tenantId} | [**getFeedPostsPublic**](PublicApi.md#getfeedpostspublic) | **GET** /feed-posts/{tenantId} | [**getFeedPostsStats**](PublicApi.md#getfeedpostsstats) | **GET** /feed-posts/{tenantId}/stats | +[**getGifLarge**](PublicApi.md#getgiflarge) | **GET** /gifs/get-large/{tenantId} | +[**getGifsSearch**](PublicApi.md#getgifssearch) | **GET** /gifs/search/{tenantId} | +[**getGifsTrending**](PublicApi.md#getgifstrending) | **GET** /gifs/trending/{tenantId} | [**getGlobalEventLog**](PublicApi.md#getglobaleventlog) | **GET** /event-log/global/{tenantId} | +[**getOfflineUsers**](PublicApi.md#getofflineusers) | **GET** /pages/{tenantId}/users/offline | +[**getOnlineUsers**](PublicApi.md#getonlineusers) | **GET** /pages/{tenantId}/users/online | +[**getPagesPublic**](PublicApi.md#getpagespublic) | **GET** /pages/{tenantId} | +[**getTranslations**](PublicApi.md#gettranslations) | **GET** /translations/{namespace}/{component} | [**getUserNotificationCount**](PublicApi.md#getusernotificationcount) | **GET** /user-notifications/get-count | [**getUserNotifications**](PublicApi.md#getusernotifications) | **GET** /user-notifications | [**getUserPresenceStatuses**](PublicApi.md#getuserpresencestatuses) | **GET** /user-presence-status | [**getUserReactsPublic**](PublicApi.md#getuserreactspublic) | **GET** /feed-posts/{tenantId}/user-reacts | +[**getUsersInfo**](PublicApi.md#getusersinfo) | **GET** /pages/{tenantId}/users/info | +[**getV1PageLikes**](PublicApi.md#getv1pagelikes) | **GET** /page-reacts/v1/likes/{tenantId} | +[**getV2PageReactUsers**](PublicApi.md#getv2pagereactusers) | **GET** /page-reacts/v2/{tenantId}/list | +[**getV2PageReacts**](PublicApi.md#getv2pagereacts) | **GET** /page-reacts/v2/{tenantId} | [**lockComment**](PublicApi.md#lockcomment) | **POST** /comments/{tenantId}/{commentId}/lock | +[**logoutPublic**](PublicApi.md#logoutpublic) | **PUT** /auth/logout | [**pinComment**](PublicApi.md#pincomment) | **POST** /comments/{tenantId}/{commentId}/pin | [**reactFeedPostPublic**](PublicApi.md#reactfeedpostpublic) | **POST** /feed-posts/{tenantId}/react/{postId} | [**resetUserNotificationCount**](PublicApi.md#resetusernotificationcount) | **POST** /user-notifications/reset-count | @@ -47,7 +64,7 @@ Method | HTTP request | Description # **blockFromCommentPublic** -> BlockFromCommentPublic200Response blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso) +> BlockSuccess blockFromCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso) @@ -80,7 +97,7 @@ Name | Type | Description | Notes ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -94,7 +111,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **checkedCommentsForBlocked** -> CheckedCommentsForBlocked200Response checkedCommentsForBlocked(tenantId, commentIds, sso) +> CheckBlockedCommentsResponse checkedCommentsForBlocked(tenantId, commentIds, sso) @@ -125,7 +142,7 @@ Name | Type | Description | Notes ### Return type -[**CheckedCommentsForBlocked200Response**](CheckedCommentsForBlocked200Response.md) +[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) ### Authorization @@ -139,7 +156,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createCommentPublic** -> CreateCommentPublic200Response createCommentPublic(tenantId, urlId, broadcastId, commentData, sessionId, sso) +> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, commentData, sessionId, sso) @@ -176,7 +193,7 @@ Name | Type | Description | Notes ### Return type -[**CreateCommentPublic200Response**](CreateCommentPublic200Response.md) +[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) ### Authorization @@ -190,7 +207,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createFeedPostPublic** -> CreateFeedPostPublic200Response createFeedPostPublic(tenantId, createFeedPostParams, broadcastId, sso) +> CreateFeedPostResponse createFeedPostPublic(tenantId, createFeedPostParams, broadcastId, sso) @@ -223,7 +240,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -236,8 +253,100 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **createV1PageReact** +> CreateV1PageReact createV1PageReact(tenantId, urlId, title) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | +final title = title_example; // String | + +try { + final result = api_instance.createV1PageReact(tenantId, urlId, title); + print(result); +} catch (e) { + print('Exception when calling PublicApi->createV1PageReact: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| | + **title** | **String**| | [optional] + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createV2PageReact** +> CreateV1PageReact createV2PageReact(tenantId, urlId, id, title) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | +final id = id_example; // String | +final title = title_example; // String | + +try { + final result = api_instance.createV2PageReact(tenantId, urlId, id, title); + print(result); +} catch (e) { + print('Exception when calling PublicApi->createV2PageReact: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| | + **id** | **String**| | + **title** | **String**| | [optional] + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **deleteCommentPublic** -> DeleteCommentPublic200Response deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) +> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) @@ -272,7 +381,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteCommentPublic200Response**](DeleteCommentPublic200Response.md) +[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) ### Authorization @@ -286,7 +395,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteCommentVote** -> DeleteCommentVote200Response deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) +> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) @@ -325,7 +434,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -339,7 +448,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteFeedPostPublic** -> DeleteFeedPostPublic200Response deleteFeedPostPublic(tenantId, postId, broadcastId, sso) +> DeleteFeedPostPublicResponse deleteFeedPostPublic(tenantId, postId, broadcastId, sso) @@ -372,7 +481,95 @@ Name | Type | Description | Notes ### Return type -[**DeleteFeedPostPublic200Response**](DeleteFeedPostPublic200Response.md) +[**DeleteFeedPostPublicResponse**](DeleteFeedPostPublicResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deleteV1PageReact** +> CreateV1PageReact deleteV1PageReact(tenantId, urlId) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | + +try { + final result = api_instance.deleteV1PageReact(tenantId, urlId); + print(result); +} catch (e) { + print('Exception when calling PublicApi->deleteV1PageReact: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| | + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deleteV2PageReact** +> CreateV1PageReact deleteV2PageReact(tenantId, urlId, id) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | +final id = id_example; // String | + +try { + final result = api_instance.deleteV2PageReact(tenantId, urlId, id); + print(result); +} catch (e) { + print('Exception when calling PublicApi->deleteV2PageReact: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| | + **id** | **String**| | + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -386,7 +583,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **flagCommentPublic** -> FlagCommentPublic200Response flagCommentPublic(tenantId, commentId, isFlagged, sso) +> APIEmptyResponse flagCommentPublic(tenantId, commentId, isFlagged, sso) @@ -419,7 +616,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -433,7 +630,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCommentText** -> GetCommentText200Response getCommentText(tenantId, commentId, editKey, sso) +> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId, editKey, sso) @@ -466,7 +663,7 @@ Name | Type | Description | Notes ### Return type -[**GetCommentText200Response**](GetCommentText200Response.md) +[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) ### Authorization @@ -480,7 +677,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCommentVoteUserNames** -> GetCommentVoteUserNames200Response getCommentVoteUserNames(tenantId, commentId, dir, sso) +> GetCommentVoteUserNamesSuccessResponse getCommentVoteUserNames(tenantId, commentId, dir, sso) @@ -513,7 +710,60 @@ Name | Type | Description | Notes ### Return type -[**GetCommentVoteUserNames200Response**](GetCommentVoteUserNames200Response.md) +[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentsForUser** +> GetCommentsForUserResponse getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final userId = userId_example; // String | +final direction = ; // SortDirections | +final repliesToUserId = repliesToUserId_example; // String | +final page = 1.2; // double | +final includei10n = true; // bool | +final locale = locale_example; // String | +final isCrawler = true; // bool | + +try { + final result = api_instance.getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getCommentsForUser: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| | [optional] + **direction** | [**SortDirections**](.md)| | [optional] + **repliesToUserId** | **String**| | [optional] + **page** | **double**| | [optional] + **includei10n** | **bool**| | [optional] + **locale** | **String**| | [optional] + **isCrawler** | **bool**| | [optional] + +### Return type + +[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) ### Authorization @@ -527,7 +777,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCommentsPublic** -> GetCommentsPublic200Response getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) +> GetCommentsResponseWithPresencePublicComment getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) @@ -610,7 +860,7 @@ Name | Type | Description | Notes ### Return type -[**GetCommentsPublic200Response**](GetCommentsPublic200Response.md) +[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) ### Authorization @@ -624,7 +874,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getEventLog** -> GetEventLog200Response getEventLog(tenantId, urlId, userIdWS, startTime, endTime) +> GetEventLogResponse getEventLog(tenantId, urlId, userIdWS, startTime, endTime) @@ -657,11 +907,11 @@ Name | Type | Description | Notes **urlId** | **String**| | **userIdWS** | **String**| | **startTime** | **int**| | - **endTime** | **int**| | + **endTime** | **int**| | [optional] ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**GetEventLogResponse**](GetEventLogResponse.md) ### Authorization @@ -675,7 +925,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getFeedPostsPublic** -> GetFeedPostsPublic200Response getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) +> PublicFeedPostsResponse getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) @@ -716,7 +966,7 @@ Name | Type | Description | Notes ### Return type -[**GetFeedPostsPublic200Response**](GetFeedPostsPublic200Response.md) +[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) ### Authorization @@ -730,7 +980,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getFeedPostsStats** -> GetFeedPostsStats200Response getFeedPostsStats(tenantId, postIds, sso) +> FeedPostsStatsResponse getFeedPostsStats(tenantId, postIds, sso) @@ -761,7 +1011,7 @@ Name | Type | Description | Notes ### Return type -[**GetFeedPostsStats200Response**](GetFeedPostsStats200Response.md) +[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) ### Authorization @@ -774,12 +1024,10 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **getGlobalEventLog** -> GetEventLog200Response getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) - +# **getGifLarge** +> GifGetLargeResponse getGifLarge(tenantId, largeInternalURLSanitized) - req tenantId urlId userIdWS ### Example ```dart @@ -787,16 +1035,13 @@ import 'package:fastcomments_dart/api.dart'; final api_instance = PublicApi(); final tenantId = tenantId_example; // String | -final urlId = urlId_example; // String | -final userIdWS = userIdWS_example; // String | -final startTime = 789; // int | -final endTime = 789; // int | +final largeInternalURLSanitized = largeInternalURLSanitized_example; // String | try { - final result = api_instance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime); + final result = api_instance.getGifLarge(tenantId, largeInternalURLSanitized); print(result); } catch (e) { - print('Exception when calling PublicApi->getGlobalEventLog: $e\n'); + print('Exception when calling PublicApi->getGifLarge: $e\n'); } ``` @@ -805,14 +1050,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String**| | - **urlId** | **String**| | - **userIdWS** | **String**| | - **startTime** | **int**| | - **endTime** | **int**| | + **largeInternalURLSanitized** | **String**| | ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**GifGetLargeResponse**](GifGetLargeResponse.md) ### Authorization @@ -825,8 +1067,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **getUserNotificationCount** -> GetUserNotificationCount200Response getUserNotificationCount(tenantId, sso) +# **getGifsSearch** +> GetGifsSearchResponse getGifsSearch(tenantId, search, locale, rating, page) @@ -836,13 +1078,16 @@ import 'package:fastcomments_dart/api.dart'; final api_instance = PublicApi(); final tenantId = tenantId_example; // String | -final sso = sso_example; // String | +final search = search_example; // String | +final locale = locale_example; // String | +final rating = rating_example; // String | +final page = 1.2; // double | try { - final result = api_instance.getUserNotificationCount(tenantId, sso); + final result = api_instance.getGifsSearch(tenantId, search, locale, rating, page); print(result); } catch (e) { - print('Exception when calling PublicApi->getUserNotificationCount: $e\n'); + print('Exception when calling PublicApi->getGifsSearch: $e\n'); } ``` @@ -851,11 +1096,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String**| | - **sso** | **String**| | [optional] + **search** | **String**| | + **locale** | **String**| | [optional] + **rating** | **String**| | [optional] + **page** | **double**| | [optional] ### Return type -[**GetUserNotificationCount200Response**](GetUserNotificationCount200Response.md) +[**GetGifsSearchResponse**](GetGifsSearchResponse.md) ### Authorization @@ -868,8 +1116,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **getUserNotifications** -> GetUserNotifications200Response getUserNotifications(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso) +# **getGifsTrending** +> GetGifsTrendingResponse getGifsTrending(tenantId, locale, rating, page) @@ -879,21 +1127,15 @@ import 'package:fastcomments_dart/api.dart'; final api_instance = PublicApi(); final tenantId = tenantId_example; // String | -final pageSize = 56; // int | -final afterId = afterId_example; // String | -final includeContext = true; // bool | -final afterCreatedAt = 789; // int | -final unreadOnly = true; // bool | -final dmOnly = true; // bool | -final noDm = true; // bool | -final includeTranslations = true; // bool | -final sso = sso_example; // String | +final locale = locale_example; // String | +final rating = rating_example; // String | +final page = 1.2; // double | try { - final result = api_instance.getUserNotifications(tenantId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, sso); + final result = api_instance.getGifsTrending(tenantId, locale, rating, page); print(result); } catch (e) { - print('Exception when calling PublicApi->getUserNotifications: $e\n'); + print('Exception when calling PublicApi->getGifsTrending: $e\n'); } ``` @@ -902,19 +1144,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String**| | - **pageSize** | **int**| | [optional] - **afterId** | **String**| | [optional] - **includeContext** | **bool**| | [optional] - **afterCreatedAt** | **int**| | [optional] - **unreadOnly** | **bool**| | [optional] - **dmOnly** | **bool**| | [optional] - **noDm** | **bool**| | [optional] - **includeTranslations** | **bool**| | [optional] - **sso** | **String**| | [optional] + **locale** | **String**| | [optional] + **rating** | **String**| | [optional] + **page** | **double**| | [optional] ### Return type -[**GetUserNotifications200Response**](GetUserNotifications200Response.md) +[**GetGifsTrendingResponse**](GetGifsTrendingResponse.md) ### Authorization @@ -927,10 +1163,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **getUserPresenceStatuses** -> GetUserPresenceStatuses200Response getUserPresenceStatuses(tenantId, urlIdWS, userIds) +# **getGlobalEventLog** +> GetEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) + + req tenantId urlId userIdWS ### Example ```dart @@ -938,14 +1176,16 @@ import 'package:fastcomments_dart/api.dart'; final api_instance = PublicApi(); final tenantId = tenantId_example; // String | -final urlIdWS = urlIdWS_example; // String | -final userIds = userIds_example; // String | +final urlId = urlId_example; // String | +final userIdWS = userIdWS_example; // String | +final startTime = 789; // int | +final endTime = 789; // int | try { - final result = api_instance.getUserPresenceStatuses(tenantId, urlIdWS, userIds); + final result = api_instance.getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime); print(result); } catch (e) { - print('Exception when calling PublicApi->getUserPresenceStatuses: $e\n'); + print('Exception when calling PublicApi->getGlobalEventLog: $e\n'); } ``` @@ -954,12 +1194,363 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String**| | - **urlIdWS** | **String**| | - **userIds** | **String**| | + **urlId** | **String**| | + **userIdWS** | **String**| | + **startTime** | **int**| | + **endTime** | **int**| | [optional] ### Return type -[**GetUserPresenceStatuses200Response**](GetUserPresenceStatuses200Response.md) +[**GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getOfflineUsers** +> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId, afterName, afterUserId) + + + +Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | Page URL identifier (cleaned server-side). +final afterName = afterName_example; // String | Cursor: pass nextAfterName from the previous response. +final afterUserId = afterUserId_example; // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + +try { + final result = api_instance.getOfflineUsers(tenantId, urlId, afterName, afterUserId); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getOfflineUsers: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| Page URL identifier (cleaned server-side). | + **afterName** | **String**| Cursor: pass nextAfterName from the previous response. | [optional] + **afterUserId** | **String**| Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] + +### Return type + +[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getOnlineUsers** +> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId, afterName, afterUserId) + + + +Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | Page URL identifier (cleaned server-side). +final afterName = afterName_example; // String | Cursor: pass nextAfterName from the previous response. +final afterUserId = afterUserId_example; // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + +try { + final result = api_instance.getOnlineUsers(tenantId, urlId, afterName, afterUserId); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getOnlineUsers: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| Page URL identifier (cleaned server-side). | + **afterName** | **String**| Cursor: pass nextAfterName from the previous response. | [optional] + **afterUserId** | **String**| Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] + +### Return type + +[**PageUsersOnlineResponse**](PageUsersOnlineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getPagesPublic** +> GetPublicPagesResponse getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments) + + + +List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final cursor = cursor_example; // String | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. +final limit = 56; // int | 1..200, default 50 +final q = q_example; // String | Optional case-insensitive title prefix filter. +final sortBy = ; // PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). +final hasComments = true; // bool | If true, only return pages with at least one comment. + +try { + final result = api_instance.getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getPagesPublic: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **cursor** | **String**| Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. | [optional] + **limit** | **int**| 1..200, default 50 | [optional] + **q** | **String**| Optional case-insensitive title prefix filter. | [optional] + **sortBy** | [**PagesSortBy**](.md)| Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). | [optional] + **hasComments** | **bool**| If true, only return pages with at least one comment. | [optional] + +### Return type + +[**GetPublicPagesResponse**](GetPublicPagesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getTranslations** +> GetTranslationsResponse getTranslations(namespace, component, locale, useFullTranslationIds) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final namespace = namespace_example; // String | +final component = component_example; // String | +final locale = locale_example; // String | +final useFullTranslationIds = true; // bool | + +try { + final result = api_instance.getTranslations(namespace, component, locale, useFullTranslationIds); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getTranslations: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **String**| | + **component** | **String**| | + **locale** | **String**| | [optional] + **useFullTranslationIds** | **bool**| | [optional] + +### Return type + +[**GetTranslationsResponse**](GetTranslationsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUserNotificationCount** +> GetUserNotificationCountResponse getUserNotificationCount(tenantId, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final sso = sso_example; // String | + +try { + final result = api_instance.getUserNotificationCount(tenantId, sso); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getUserNotificationCount: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **sso** | **String**| | [optional] + +### Return type + +[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUserNotifications** +> GetMyNotificationsResponse getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | Used to determine whether the current page is subscribed. +final pageSize = 56; // int | +final afterId = afterId_example; // String | +final includeContext = true; // bool | +final afterCreatedAt = 789; // int | +final unreadOnly = true; // bool | +final dmOnly = true; // bool | +final noDm = true; // bool | +final includeTranslations = true; // bool | +final includeTenantNotifications = true; // bool | +final sso = sso_example; // String | + +try { + final result = api_instance.getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getUserNotifications: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| Used to determine whether the current page is subscribed. | [optional] + **pageSize** | **int**| | [optional] + **afterId** | **String**| | [optional] + **includeContext** | **bool**| | [optional] + **afterCreatedAt** | **int**| | [optional] + **unreadOnly** | **bool**| | [optional] + **dmOnly** | **bool**| | [optional] + **noDm** | **bool**| | [optional] + **includeTranslations** | **bool**| | [optional] + **includeTenantNotifications** | **bool**| | [optional] + **sso** | **String**| | [optional] + +### Return type + +[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUserPresenceStatuses** +> GetUserPresenceStatusesResponse getUserPresenceStatuses(tenantId, urlIdWS, userIds) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlIdWS = urlIdWS_example; // String | +final userIds = userIds_example; // String | + +try { + final result = api_instance.getUserPresenceStatuses(tenantId, urlIdWS, userIds); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getUserPresenceStatuses: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlIdWS** | **String**| | + **userIds** | **String**| | + +### Return type + +[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) ### Authorization @@ -973,7 +1564,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserReactsPublic** -> GetUserReactsPublic200Response getUserReactsPublic(tenantId, postIds, sso) +> UserReactsResponse getUserReactsPublic(tenantId, postIds, sso) @@ -1004,7 +1595,183 @@ Name | Type | Description | Notes ### Return type -[**GetUserReactsPublic200Response**](GetUserReactsPublic200Response.md) +[**UserReactsResponse**](UserReactsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUsersInfo** +> PageUsersInfoResponse getUsersInfo(tenantId, ids) + + + +Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final ids = ids_example; // String | Comma-delimited userIds. + +try { + final result = api_instance.getUsersInfo(tenantId, ids); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getUsersInfo: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **ids** | **String**| Comma-delimited userIds. | + +### Return type + +[**PageUsersInfoResponse**](PageUsersInfoResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getV1PageLikes** +> GetV1PageLikes getV1PageLikes(tenantId, urlId) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | + +try { + final result = api_instance.getV1PageLikes(tenantId, urlId); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getV1PageLikes: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| | + +### Return type + +[**GetV1PageLikes**](GetV1PageLikes.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getV2PageReactUsers** +> GetV2PageReactUsersResponse getV2PageReactUsers(tenantId, urlId, id) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | +final id = id_example; // String | + +try { + final result = api_instance.getV2PageReactUsers(tenantId, urlId, id); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getV2PageReactUsers: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| | + **id** | **String**| | + +### Return type + +[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getV2PageReacts** +> GetV2PageReacts getV2PageReacts(tenantId, urlId) + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); +final tenantId = tenantId_example; // String | +final urlId = urlId_example; // String | + +try { + final result = api_instance.getV2PageReacts(tenantId, urlId); + print(result); +} catch (e) { + print('Exception when calling PublicApi->getV2PageReacts: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | + **urlId** | **String**| | + +### Return type + +[**GetV2PageReacts**](GetV2PageReacts.md) ### Authorization @@ -1018,7 +1785,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **lockComment** -> LockComment200Response lockComment(tenantId, commentId, broadcastId, sso) +> APIEmptyResponse lockComment(tenantId, commentId, broadcastId, sso) @@ -1051,7 +1818,44 @@ Name | Type | Description | Notes ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **logoutPublic** +> APIEmptyResponse logoutPublic() + + + +### Example +```dart +import 'package:fastcomments_dart/api.dart'; + +final api_instance = PublicApi(); + +try { + final result = api_instance.logoutPublic(); + print(result); +} catch (e) { + print('Exception when calling PublicApi->logoutPublic: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1065,7 +1869,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **pinComment** -> PinComment200Response pinComment(tenantId, commentId, broadcastId, sso) +> ChangeCommentPinStatusResponse pinComment(tenantId, commentId, broadcastId, sso) @@ -1098,7 +1902,7 @@ Name | Type | Description | Notes ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -1112,7 +1916,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **reactFeedPostPublic** -> ReactFeedPostPublic200Response reactFeedPostPublic(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso) +> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso) @@ -1149,7 +1953,7 @@ Name | Type | Description | Notes ### Return type -[**ReactFeedPostPublic200Response**](ReactFeedPostPublic200Response.md) +[**ReactFeedPostResponse**](ReactFeedPostResponse.md) ### Authorization @@ -1163,7 +1967,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **resetUserNotificationCount** -> ResetUserNotifications200Response resetUserNotificationCount(tenantId, sso) +> ResetUserNotificationsResponse resetUserNotificationCount(tenantId, sso) @@ -1192,7 +1996,7 @@ Name | Type | Description | Notes ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1206,7 +2010,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **resetUserNotifications** -> ResetUserNotifications200Response resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) +> ResetUserNotificationsResponse resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) @@ -1245,7 +2049,7 @@ Name | Type | Description | Notes ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1259,7 +2063,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **searchUsers** -> SearchUsers200Response searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) +> SearchUsersResult searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) @@ -1296,7 +2100,7 @@ Name | Type | Description | Notes ### Return type -[**SearchUsers200Response**](SearchUsers200Response.md) +[**SearchUsersResult**](SearchUsersResult.md) ### Authorization @@ -1310,7 +2114,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **setCommentText** -> SetCommentText200Response setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso) +> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso) @@ -1347,7 +2151,7 @@ Name | Type | Description | Notes ### Return type -[**SetCommentText200Response**](SetCommentText200Response.md) +[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) ### Authorization @@ -1361,7 +2165,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unBlockCommentPublic** -> UnBlockCommentPublic200Response unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso) +> UnblockSuccess unBlockCommentPublic(tenantId, commentId, publicBlockFromCommentParams, sso) @@ -1394,7 +2198,7 @@ Name | Type | Description | Notes ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -1408,7 +2212,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unLockComment** -> LockComment200Response unLockComment(tenantId, commentId, broadcastId, sso) +> APIEmptyResponse unLockComment(tenantId, commentId, broadcastId, sso) @@ -1441,7 +2245,7 @@ Name | Type | Description | Notes ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1455,7 +2259,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unPinComment** -> PinComment200Response unPinComment(tenantId, commentId, broadcastId, sso) +> ChangeCommentPinStatusResponse unPinComment(tenantId, commentId, broadcastId, sso) @@ -1488,7 +2292,7 @@ Name | Type | Description | Notes ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -1502,7 +2306,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateFeedPostPublic** -> CreateFeedPostPublic200Response updateFeedPostPublic(tenantId, postId, updateFeedPostParams, broadcastId, sso) +> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, updateFeedPostParams, broadcastId, sso) @@ -1537,7 +2341,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -1551,7 +2355,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateUserNotificationCommentSubscriptionStatus** -> UpdateUserNotificationStatus200Response updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId, sso) +> UpdateUserNotificationCommentSubscriptionStatusResponse updateUserNotificationCommentSubscriptionStatus(tenantId, notificationId, optedInOrOut, commentId, sso) @@ -1588,7 +2392,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationCommentSubscriptionStatusResponse**](UpdateUserNotificationCommentSubscriptionStatusResponse.md) ### Authorization @@ -1602,7 +2406,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateUserNotificationPageSubscriptionStatus** -> UpdateUserNotificationStatus200Response updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso) +> UpdateUserNotificationPageSubscriptionStatusResponse updateUserNotificationPageSubscriptionStatus(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso) @@ -1641,7 +2445,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationPageSubscriptionStatusResponse**](UpdateUserNotificationPageSubscriptionStatusResponse.md) ### Authorization @@ -1655,7 +2459,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateUserNotificationStatus** -> UpdateUserNotificationStatus200Response updateUserNotificationStatus(tenantId, notificationId, newStatus, sso) +> UpdateUserNotificationStatusResponse updateUserNotificationStatus(tenantId, notificationId, newStatus, sso) @@ -1688,7 +2492,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationStatusResponse**](UpdateUserNotificationStatusResponse.md) ### Authorization @@ -1751,7 +2555,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **voteComment** -> VoteComment200Response voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso) +> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso) @@ -1790,7 +2594,7 @@ Name | Type | Description | Notes ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization diff --git a/client/doc/PublicPage.md b/client/doc/PublicPage.md new file mode 100644 index 0000000..bfe18ce --- /dev/null +++ b/client/doc/PublicPage.md @@ -0,0 +1,19 @@ +# fastcomments_dart.model.PublicPage + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**updatedAt** | **int** | | +**commentCount** | **int** | | +**title** | **String** | | +**url** | **String** | | +**urlId** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/PutDomainConfigResponse.md b/client/doc/PutDomainConfigResponse.md new file mode 100644 index 0000000..0eeff0f --- /dev/null +++ b/client/doc/PutDomainConfigResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.PutDomainConfigResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **Object** | | [optional] +**status** | **Object** | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/ReactFeedPostPublic200Response.md b/client/doc/ReactFeedPostPublic200Response.md deleted file mode 100644 index ec419bc..0000000 --- a/client/doc/ReactFeedPostPublic200Response.md +++ /dev/null @@ -1,24 +0,0 @@ -# fastcomments_dart.model.ReactFeedPostPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reactType** | **String** | | -**isUndo** | **bool** | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/RemoveCommentActionResponse.md b/client/doc/RemoveCommentActionResponse.md new file mode 100644 index 0000000..44d80eb --- /dev/null +++ b/client/doc/RemoveCommentActionResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.RemoveCommentActionResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/RemoveUserBadgeResponse.md b/client/doc/RemoveUserBadgeResponse.md new file mode 100644 index 0000000..f5eaf56 --- /dev/null +++ b/client/doc/RemoveUserBadgeResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.RemoveUserBadgeResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/RenderEmailTemplate200Response.md b/client/doc/RenderEmailTemplate200Response.md deleted file mode 100644 index d2ad514..0000000 --- a/client/doc/RenderEmailTemplate200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.RenderEmailTemplate200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**html** | **String** | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/ResetUserNotifications200Response.md b/client/doc/ResetUserNotifications200Response.md deleted file mode 100644 index 005d8dd..0000000 --- a/client/doc/ResetUserNotifications200Response.md +++ /dev/null @@ -1,22 +0,0 @@ -# fastcomments_dart.model.ResetUserNotifications200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **String** | | -**reason** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/SaveComment200Response.md b/client/doc/SaveCommentsBulkResponse.md similarity index 75% rename from client/doc/SaveComment200Response.md rename to client/doc/SaveCommentsBulkResponse.md index c0963a1..2de9269 100644 --- a/client/doc/SaveComment200Response.md +++ b/client/doc/SaveCommentsBulkResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.SaveComment200Response +# fastcomments_dart.model.SaveCommentsBulkResponse ## Load the model package ```dart @@ -9,11 +9,11 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**APIComment**](APIComment.md) | | -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | +**comment** | [**APIComment**](APIComment.md) | | [optional] +**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**reason** | **String** | | -**code** | **String** | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] **secondaryCode** | **String** | | [optional] **bannedUntil** | **int** | | [optional] **maxCharacterLength** | **int** | | [optional] diff --git a/client/doc/SearchUsers200Response.md b/client/doc/SearchUsersResult.md similarity index 53% rename from client/doc/SearchUsers200Response.md rename to client/doc/SearchUsersResult.md index f8a8716..ff56ee1 100644 --- a/client/doc/SearchUsers200Response.md +++ b/client/doc/SearchUsersResult.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.SearchUsers200Response +# fastcomments_dart.model.SearchUsersResult ## Load the model package ```dart @@ -9,15 +9,8 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**sections** | [**List**](UserSearchSectionResult.md) | | [default to const []] -**users** | [**List**](UserSearchResult.md) | | [default to const []] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] +**sections** | [**List**](UserSearchSectionResult.md) | | [optional] [default to const []] +**users** | [**List**](UserSearchResult.md) | | [optional] [default to const []] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/doc/SetCommentApprovedResponse.md b/client/doc/SetCommentApprovedResponse.md new file mode 100644 index 0000000..dd7707c --- /dev/null +++ b/client/doc/SetCommentApprovedResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.SetCommentApprovedResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**didResetFlaggedCount** | **bool** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/SetCommentText200Response.md b/client/doc/SetCommentText200Response.md deleted file mode 100644 index 471f9aa..0000000 --- a/client/doc/SetCommentText200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.SetCommentText200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/SetCommentTextParams.md b/client/doc/SetCommentTextParams.md new file mode 100644 index 0000000..b8bea5f --- /dev/null +++ b/client/doc/SetCommentTextParams.md @@ -0,0 +1,15 @@ +# fastcomments_dart.model.SetCommentTextParams + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/SetCommentTextResponse.md b/client/doc/SetCommentTextResponse.md new file mode 100644 index 0000000..72dfa5a --- /dev/null +++ b/client/doc/SetCommentTextResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.SetCommentTextResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**newCommentTextHTML** | **String** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/SetUserTrustFactorResponse.md b/client/doc/SetUserTrustFactorResponse.md new file mode 100644 index 0000000..9f3b58a --- /dev/null +++ b/client/doc/SetUserTrustFactorResponse.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.SetUserTrustFactorResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**previousManualTrustFactor** | **double** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/TenantBadge.md b/client/doc/TenantBadge.md new file mode 100644 index 0000000..33552a5 --- /dev/null +++ b/client/doc/TenantBadge.md @@ -0,0 +1,35 @@ +# fastcomments_dart.model.TenantBadge + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**tenantId** | **String** | | +**createdByUserId** | **String** | | +**createdAt** | [**DateTime**](DateTime.md) | | +**enabled** | **bool** | | +**urlId** | **String** | | [optional] +**type** | **double** | | +**threshold** | **double** | | +**uses** | **double** | | +**name** | **String** | | +**description** | **String** | | +**displayLabel** | **String** | | +**displaySrc** | **String** | | +**backgroundColor** | **String** | | +**borderColor** | **String** | | +**textColor** | **String** | | +**cssClass** | **String** | | [optional] +**veteranUserThresholdMillis** | **double** | | [optional] +**isAwaitingReprocess** | **bool** | | +**isAwaitingDeletion** | **bool** | | +**replacesBadgeId** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/TenantPackage.md b/client/doc/TenantPackage.md index 8289da0..5aab7bd 100644 --- a/client/doc/TenantPackage.md +++ b/client/doc/TenantPackage.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **name** | **String** | | **tenantId** | **String** | | **createdAt** | [**DateTime**](DateTime.md) | | +**templateId** | **String** | | [optional] **monthlyCostUSD** | **double** | | **yearlyCostUSD** | **double** | | **monthlyStripePlanId** | **String** | | diff --git a/client/doc/UnBlockCommentPublic200Response.md b/client/doc/UnBlockCommentPublic200Response.md deleted file mode 100644 index d43d3fe..0000000 --- a/client/doc/UnBlockCommentPublic200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.UnBlockCommentPublic200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [default to const {}] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/UpdateUserBadge200Response.md b/client/doc/UpdateUserBadge200Response.md deleted file mode 100644 index f551329..0000000 --- a/client/doc/UpdateUserBadge200Response.md +++ /dev/null @@ -1,22 +0,0 @@ -# fastcomments_dart.model.UpdateUserBadge200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/doc/UpdateUserNotificationCommentSubscriptionStatusResponse.md new file mode 100644 index 0000000..5a17479 --- /dev/null +++ b/client/doc/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.UpdateUserNotificationCommentSubscriptionStatusResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matchedCount** | **int** | | [optional] +**modifiedCount** | **int** | | [optional] +**note** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/doc/UpdateUserNotificationPageSubscriptionStatusResponse.md new file mode 100644 index 0000000..57a9370 --- /dev/null +++ b/client/doc/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.UpdateUserNotificationPageSubscriptionStatusResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matchedCount** | **int** | | [optional] +**modifiedCount** | **int** | | [optional] +**note** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/UpdateUserNotificationStatus200Response.md b/client/doc/UpdateUserNotificationStatus200Response.md deleted file mode 100644 index 2baa132..0000000 --- a/client/doc/UpdateUserNotificationStatus200Response.md +++ /dev/null @@ -1,25 +0,0 @@ -# fastcomments_dart.model.UpdateUserNotificationStatus200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**matchedCount** | **int** | | -**modifiedCount** | **int** | | -**note** | **String** | | -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/doc/UpdateUserNotificationStatusResponse.md b/client/doc/UpdateUserNotificationStatusResponse.md new file mode 100644 index 0000000..c75c653 --- /dev/null +++ b/client/doc/UpdateUserNotificationStatusResponse.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.UpdateUserNotificationStatusResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matchedCount** | **int** | | [optional] +**modifiedCount** | **int** | | [optional] +**note** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/UsersListLocation.md b/client/doc/UsersListLocation.md new file mode 100644 index 0000000..edbd542 --- /dev/null +++ b/client/doc/UsersListLocation.md @@ -0,0 +1,14 @@ +# fastcomments_dart.model.UsersListLocation + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/doc/VoteComment200Response.md b/client/doc/VoteComment200Response.md deleted file mode 100644 index 7f6da57..0000000 --- a/client/doc/VoteComment200Response.md +++ /dev/null @@ -1,26 +0,0 @@ -# fastcomments_dart.model.VoteComment200Response - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**voteId** | **String** | | [optional] -**isVerified** | **bool** | | [optional] -**user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] -**editKey** | **String** | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/lib/api.dart b/client/lib/api.dart index 33140dc..27757e2 100644 --- a/client/lib/api.dart +++ b/client/lib/api.dart @@ -29,12 +29,18 @@ part 'auth/http_basic_auth.dart'; part 'auth/http_bearer_auth.dart'; part 'api/default_api.dart'; +part 'api/moderation_api.dart'; part 'api/public_api.dart'; part 'model/api_audit_log.dart'; +part 'model/api_ban_user_change_log.dart'; +part 'model/api_ban_user_changed_values.dart'; +part 'model/api_banned_user.dart'; +part 'model/api_banned_user_with_multi_match_info.dart'; part 'model/api_comment.dart'; part 'model/api_comment_base.dart'; part 'model/api_comment_base_meta.dart'; +part 'model/api_comment_common_banned_user.dart'; part 'model/api_create_user_badge_response.dart'; part 'model/api_domain_configuration.dart'; part 'model/api_empty_response.dart'; @@ -46,6 +52,8 @@ part 'model/api_get_user_badge_progress_list_response.dart'; part 'model/api_get_user_badge_progress_response.dart'; part 'model/api_get_user_badge_response.dart'; part 'model/api_get_user_badges_response.dart'; +part 'model/api_moderate_get_user_ban_preferences_response.dart'; +part 'model/api_moderate_user_ban_preferences.dart'; part 'model/api_page.dart'; part 'model/apisso_user.dart'; part 'model/api_save_comment_response.dart'; @@ -56,16 +64,17 @@ part 'model/api_ticket.dart'; part 'model/api_ticket_detail.dart'; part 'model/api_ticket_file.dart'; part 'model/api_user_subscription.dart'; -part 'model/add_domain_config200_response.dart'; -part 'model/add_domain_config200_response_any_of.dart'; part 'model/add_domain_config_params.dart'; -part 'model/add_hash_tag200_response.dart'; -part 'model/add_hash_tags_bulk200_response.dart'; +part 'model/add_domain_config_response.dart'; +part 'model/add_domain_config_response_any_of.dart'; part 'model/add_page_api_response.dart'; part 'model/add_sso_user_api_response.dart'; -part 'model/aggregate_question_results200_response.dart'; +part 'model/adjust_comment_votes_params.dart'; +part 'model/adjust_votes_response.dart'; part 'model/aggregate_question_results_response.dart'; +part 'model/aggregate_response.dart'; part 'model/aggregate_time_bucket.dart'; +part 'model/aggregation_api_error.dart'; part 'model/aggregation_item.dart'; part 'model/aggregation_op_type.dart'; part 'model/aggregation_operation.dart'; @@ -74,24 +83,30 @@ part 'model/aggregation_request_sort.dart'; part 'model/aggregation_response.dart'; part 'model/aggregation_response_stats.dart'; part 'model/aggregation_value.dart'; +part 'model/award_user_badge_response.dart'; +part 'model/ban_user_from_comment_result.dart'; +part 'model/ban_user_undo_params.dart'; +part 'model/banned_user_match.dart'; +part 'model/banned_user_match_matched_on_value.dart'; +part 'model/banned_user_match_type.dart'; part 'model/billing_info.dart'; part 'model/block_from_comment_params.dart'; -part 'model/block_from_comment_public200_response.dart'; part 'model/block_success.dart'; +part 'model/build_moderation_filter_params.dart'; +part 'model/build_moderation_filter_response.dart'; part 'model/bulk_aggregate_question_item.dart'; -part 'model/bulk_aggregate_question_results200_response.dart'; part 'model/bulk_aggregate_question_results_request.dart'; part 'model/bulk_aggregate_question_results_response.dart'; part 'model/bulk_create_hash_tags_body.dart'; part 'model/bulk_create_hash_tags_body_tags_inner.dart'; part 'model/bulk_create_hash_tags_response.dart'; +part 'model/bulk_create_hash_tags_response_results_inner.dart'; +part 'model/bulk_pre_ban_params.dart'; +part 'model/bulk_pre_ban_summary.dart'; part 'model/change_comment_pin_status_response.dart'; -part 'model/change_ticket_state200_response.dart'; part 'model/change_ticket_state_body.dart'; part 'model/change_ticket_state_response.dart'; part 'model/check_blocked_comments_response.dart'; -part 'model/checked_comments_for_blocked200_response.dart'; -part 'model/combine_comments_with_question_results200_response.dart'; part 'model/combine_question_results_with_comments_response.dart'; part 'model/comment_data.dart'; part 'model/comment_html_rendering_mode.dart'; @@ -106,56 +121,42 @@ part 'model/comment_user_badge_info.dart'; part 'model/comment_user_hash_tag_info.dart'; part 'model/comment_user_mention_info.dart'; part 'model/commenter_name_formats.dart'; +part 'model/comments_by_ids_params.dart'; part 'model/create_api_page_data.dart'; part 'model/create_apisso_user_data.dart'; part 'model/create_api_user_subscription_data.dart'; part 'model/create_comment_params.dart'; -part 'model/create_comment_public200_response.dart'; -part 'model/create_email_template200_response.dart'; part 'model/create_email_template_body.dart'; part 'model/create_email_template_response.dart'; -part 'model/create_feed_post200_response.dart'; part 'model/create_feed_post_params.dart'; -part 'model/create_feed_post_public200_response.dart'; part 'model/create_feed_post_response.dart'; part 'model/create_feed_posts_response.dart'; part 'model/create_hash_tag_body.dart'; part 'model/create_hash_tag_response.dart'; -part 'model/create_moderator200_response.dart'; part 'model/create_moderator_body.dart'; part 'model/create_moderator_response.dart'; -part 'model/create_question_config200_response.dart'; part 'model/create_question_config_body.dart'; part 'model/create_question_config_response.dart'; -part 'model/create_question_result200_response.dart'; part 'model/create_question_result_body.dart'; part 'model/create_question_result_response.dart'; part 'model/create_subscription_api_response.dart'; -part 'model/create_tenant200_response.dart'; part 'model/create_tenant_body.dart'; -part 'model/create_tenant_package200_response.dart'; part 'model/create_tenant_package_body.dart'; part 'model/create_tenant_package_response.dart'; part 'model/create_tenant_response.dart'; -part 'model/create_tenant_user200_response.dart'; part 'model/create_tenant_user_body.dart'; part 'model/create_tenant_user_response.dart'; -part 'model/create_ticket200_response.dart'; part 'model/create_ticket_body.dart'; part 'model/create_ticket_response.dart'; -part 'model/create_user_badge200_response.dart'; part 'model/create_user_badge_params.dart'; +part 'model/create_v1_page_react.dart'; part 'model/custom_config_parameters.dart'; part 'model/custom_email_template.dart'; -part 'model/delete_comment200_response.dart'; part 'model/delete_comment_action.dart'; -part 'model/delete_comment_public200_response.dart'; part 'model/delete_comment_result.dart'; -part 'model/delete_comment_vote200_response.dart'; -part 'model/delete_domain_config200_response.dart'; -part 'model/delete_feed_post_public200_response.dart'; -part 'model/delete_feed_post_public200_response_any_of.dart'; -part 'model/delete_hash_tag_request.dart'; +part 'model/delete_domain_config_response.dart'; +part 'model/delete_feed_post_public_response.dart'; +part 'model/delete_hash_tag_request_body.dart'; part 'model/delete_page_api_response.dart'; part 'model/delete_sso_user_api_response.dart'; part 'model/delete_subscription_api_response.dart'; @@ -174,104 +175,77 @@ part 'model/feed_post_stats.dart'; part 'model/feed_posts_stats_response.dart'; part 'model/find_comments_by_range_item.dart'; part 'model/find_comments_by_range_response.dart'; -part 'model/flag_comment200_response.dart'; -part 'model/flag_comment_public200_response.dart'; part 'model/flag_comment_response.dart'; -part 'model/get_audit_logs200_response.dart'; part 'model/get_audit_logs_response.dart'; -part 'model/get_cached_notification_count200_response.dart'; +part 'model/get_banned_users_count_response.dart'; +part 'model/get_banned_users_from_comment_response.dart'; part 'model/get_cached_notification_count_response.dart'; -part 'model/get_comment200_response.dart'; -part 'model/get_comment_text200_response.dart'; -part 'model/get_comment_vote_user_names200_response.dart'; +part 'model/get_comment_ban_status_response.dart'; +part 'model/get_comment_text_response.dart'; part 'model/get_comment_vote_user_names_success_response.dart'; -part 'model/get_comments200_response.dart'; -part 'model/get_comments_public200_response.dart'; +part 'model/get_comments_for_user_response.dart'; part 'model/get_comments_response_public_comment.dart'; part 'model/get_comments_response_with_presence_public_comment.dart'; -part 'model/get_domain_config200_response.dart'; -part 'model/get_domain_configs200_response.dart'; -part 'model/get_domain_configs200_response_any_of.dart'; -part 'model/get_domain_configs200_response_any_of1.dart'; -part 'model/get_email_template200_response.dart'; -part 'model/get_email_template_definitions200_response.dart'; +part 'model/get_domain_config_response.dart'; +part 'model/get_domain_configs_response.dart'; +part 'model/get_domain_configs_response_any_of.dart'; +part 'model/get_domain_configs_response_any_of1.dart'; part 'model/get_email_template_definitions_response.dart'; -part 'model/get_email_template_render_errors200_response.dart'; part 'model/get_email_template_render_errors_response.dart'; part 'model/get_email_template_response.dart'; -part 'model/get_email_templates200_response.dart'; part 'model/get_email_templates_response.dart'; -part 'model/get_event_log200_response.dart'; part 'model/get_event_log_response.dart'; -part 'model/get_feed_posts200_response.dart'; -part 'model/get_feed_posts_public200_response.dart'; part 'model/get_feed_posts_response.dart'; -part 'model/get_feed_posts_stats200_response.dart'; -part 'model/get_hash_tags200_response.dart'; +part 'model/get_gifs_search_response.dart'; +part 'model/get_gifs_trending_response.dart'; part 'model/get_hash_tags_response.dart'; -part 'model/get_moderator200_response.dart'; part 'model/get_moderator_response.dart'; -part 'model/get_moderators200_response.dart'; part 'model/get_moderators_response.dart'; part 'model/get_my_notifications_response.dart'; -part 'model/get_notification_count200_response.dart'; part 'model/get_notification_count_response.dart'; -part 'model/get_notifications200_response.dart'; part 'model/get_notifications_response.dart'; part 'model/get_page_by_urlid_api_response.dart'; part 'model/get_pages_api_response.dart'; -part 'model/get_pending_webhook_event_count200_response.dart'; part 'model/get_pending_webhook_event_count_response.dart'; -part 'model/get_pending_webhook_events200_response.dart'; part 'model/get_pending_webhook_events_response.dart'; part 'model/get_public_feed_posts_response.dart'; -part 'model/get_question_config200_response.dart'; +part 'model/get_public_pages_response.dart'; part 'model/get_question_config_response.dart'; -part 'model/get_question_configs200_response.dart'; part 'model/get_question_configs_response.dart'; -part 'model/get_question_result200_response.dart'; part 'model/get_question_result_response.dart'; -part 'model/get_question_results200_response.dart'; part 'model/get_question_results_response.dart'; part 'model/get_sso_user_by_email_api_response.dart'; part 'model/get_sso_user_by_id_api_response.dart'; -part 'model/get_sso_users200_response.dart'; +part 'model/get_sso_users_response.dart'; part 'model/get_subscriptions_api_response.dart'; -part 'model/get_tenant200_response.dart'; -part 'model/get_tenant_daily_usages200_response.dart'; part 'model/get_tenant_daily_usages_response.dart'; -part 'model/get_tenant_package200_response.dart'; +part 'model/get_tenant_manual_badges_response.dart'; part 'model/get_tenant_package_response.dart'; -part 'model/get_tenant_packages200_response.dart'; part 'model/get_tenant_packages_response.dart'; part 'model/get_tenant_response.dart'; -part 'model/get_tenant_user200_response.dart'; part 'model/get_tenant_user_response.dart'; -part 'model/get_tenant_users200_response.dart'; part 'model/get_tenant_users_response.dart'; -part 'model/get_tenants200_response.dart'; part 'model/get_tenants_response.dart'; -part 'model/get_ticket200_response.dart'; part 'model/get_ticket_response.dart'; -part 'model/get_tickets200_response.dart'; part 'model/get_tickets_response.dart'; -part 'model/get_user200_response.dart'; -part 'model/get_user_badge200_response.dart'; -part 'model/get_user_badge_progress_by_id200_response.dart'; -part 'model/get_user_badge_progress_list200_response.dart'; -part 'model/get_user_badges200_response.dart'; -part 'model/get_user_notification_count200_response.dart'; +part 'model/get_translations_response.dart'; +part 'model/get_user_internal_profile_response.dart'; +part 'model/get_user_internal_profile_response_profile.dart'; +part 'model/get_user_manual_badges_response.dart'; part 'model/get_user_notification_count_response.dart'; -part 'model/get_user_notifications200_response.dart'; -part 'model/get_user_presence_statuses200_response.dart'; part 'model/get_user_presence_statuses_response.dart'; -part 'model/get_user_reacts_public200_response.dart'; part 'model/get_user_response.dart'; -part 'model/get_votes200_response.dart'; -part 'model/get_votes_for_user200_response.dart'; +part 'model/get_user_trust_factor_response.dart'; +part 'model/get_v1_page_likes.dart'; +part 'model/get_v2_page_react_users_response.dart'; +part 'model/get_v2_page_reacts.dart'; part 'model/get_votes_for_user_response.dart'; part 'model/get_votes_response.dart'; +part 'model/gif_get_large_response.dart'; part 'model/gif_rating.dart'; +part 'model/gif_search_internal_error.dart'; +part 'model/gif_search_response.dart'; +part 'model/gif_search_response_images_inner_inner.dart'; part 'model/header_account_notification.dart'; part 'model/header_state.dart'; part 'model/ignored_response.dart'; @@ -281,20 +255,44 @@ part 'model/imported_site_type.dart'; part 'model/live_event.dart'; part 'model/live_event_extra_info.dart'; part 'model/live_event_type.dart'; -part 'model/lock_comment200_response.dart'; part 'model/media_asset.dart'; part 'model/mention_auto_complete_mode.dart'; part 'model/meta_item.dart'; +part 'model/moderation_api_child_comments_response.dart'; +part 'model/moderation_api_comment.dart'; +part 'model/moderation_api_comment_log.dart'; +part 'model/moderation_api_comment_response.dart'; +part 'model/moderation_api_count_comments_response.dart'; +part 'model/moderation_api_get_comment_ids_response.dart'; +part 'model/moderation_api_get_comments_response.dart'; +part 'model/moderation_api_get_logs_response.dart'; +part 'model/moderation_comment_search_response.dart'; +part 'model/moderation_export_response.dart'; +part 'model/moderation_export_status_response.dart'; +part 'model/moderation_filter.dart'; +part 'model/moderation_page_search_projected.dart'; +part 'model/moderation_page_search_response.dart'; +part 'model/moderation_site_search_projected.dart'; +part 'model/moderation_site_search_response.dart'; +part 'model/moderation_suggest_response.dart'; +part 'model/moderation_user_search_projected.dart'; +part 'model/moderation_user_search_response.dart'; part 'model/moderator.dart'; part 'model/notification_and_count.dart'; part 'model/notification_object_type.dart'; part 'model/notification_type.dart'; +part 'model/page_user_entry.dart'; +part 'model/page_users_info_response.dart'; +part 'model/page_users_offline_response.dart'; +part 'model/page_users_online_response.dart'; +part 'model/pages_sort_by.dart'; part 'model/patch_domain_config_params.dart'; -part 'model/patch_hash_tag200_response.dart'; +part 'model/patch_domain_config_response.dart'; part 'model/patch_page_api_response.dart'; part 'model/patch_sso_user_api_response.dart'; part 'model/pending_comment_to_sync_outbound.dart'; -part 'model/pin_comment200_response.dart'; +part 'model/post_remove_comment_response.dart'; +part 'model/pre_ban_summary.dart'; part 'model/pub_sub_comment.dart'; part 'model/pub_sub_comment_base.dart'; part 'model/pub_sub_vote.dart'; @@ -305,7 +303,9 @@ part 'model/public_block_from_comment_params.dart'; part 'model/public_comment.dart'; part 'model/public_comment_base.dart'; part 'model/public_feed_posts_response.dart'; +part 'model/public_page.dart'; part 'model/public_vote.dart'; +part 'model/put_domain_config_response.dart'; part 'model/put_sso_user_api_response.dart'; part 'model/query_predicate.dart'; part 'model/query_predicate_value.dart'; @@ -318,11 +318,10 @@ part 'model/question_result_aggregation_overall.dart'; part 'model/question_sub_question_visibility.dart'; part 'model/question_when_save.dart'; part 'model/react_body_params.dart'; -part 'model/react_feed_post_public200_response.dart'; part 'model/react_feed_post_response.dart'; part 'model/record_string_before_string_or_null_after_string_or_null_value.dart'; -part 'model/record_string_string_or_number_value.dart'; -part 'model/render_email_template200_response.dart'; +part 'model/remove_comment_action_response.dart'; +part 'model/remove_user_badge_response.dart'; part 'model/render_email_template_body.dart'; part 'model/render_email_template_response.dart'; part 'model/renderable_user_notification.dart'; @@ -330,25 +329,27 @@ part 'model/repeat_comment_check_ignored_reason.dart'; part 'model/repeat_comment_handling_action.dart'; part 'model/replace_tenant_package_body.dart'; part 'model/replace_tenant_user_body.dart'; -part 'model/reset_user_notifications200_response.dart'; part 'model/reset_user_notifications_response.dart'; part 'model/sortdir.dart'; part 'model/sso_security_level.dart'; -part 'model/save_comment200_response.dart'; part 'model/save_comment_response_optimized.dart'; +part 'model/save_comments_bulk_response.dart'; part 'model/save_comments_response_with_presence.dart'; -part 'model/search_users200_response.dart'; part 'model/search_users_response.dart'; +part 'model/search_users_result.dart'; part 'model/search_users_sectioned_response.dart'; -part 'model/set_comment_text200_response.dart'; +part 'model/set_comment_approved_response.dart'; +part 'model/set_comment_text_params.dart'; +part 'model/set_comment_text_response.dart'; part 'model/set_comment_text_result.dart'; +part 'model/set_user_trust_factor_response.dart'; part 'model/size_preset.dart'; part 'model/sort_directions.dart'; part 'model/spam_rule.dart'; part 'model/tos_config.dart'; +part 'model/tenant_badge.dart'; part 'model/tenant_hash_tag.dart'; part 'model/tenant_package.dart'; -part 'model/un_block_comment_public200_response.dart'; part 'model/un_block_from_comment_params.dart'; part 'model/unblock_success.dart'; part 'model/updatable_comment_params.dart'; @@ -368,9 +369,10 @@ part 'model/update_subscription_api_response.dart'; part 'model/update_tenant_body.dart'; part 'model/update_tenant_package_body.dart'; part 'model/update_tenant_user_body.dart'; -part 'model/update_user_badge200_response.dart'; part 'model/update_user_badge_params.dart'; -part 'model/update_user_notification_status200_response.dart'; +part 'model/update_user_notification_comment_subscription_status_response.dart'; +part 'model/update_user_notification_page_subscription_status_response.dart'; +part 'model/update_user_notification_status_response.dart'; part 'model/upload_image_response.dart'; part 'model/user.dart'; part 'model/user_badge.dart'; @@ -384,8 +386,8 @@ part 'model/user_search_result.dart'; part 'model/user_search_section.dart'; part 'model/user_search_section_result.dart'; part 'model/user_session_info.dart'; +part 'model/users_list_location.dart'; part 'model/vote_body_params.dart'; -part 'model/vote_comment200_response.dart'; part 'model/vote_delete_response.dart'; part 'model/vote_response.dart'; part 'model/vote_response_user.dart'; diff --git a/client/lib/api/default_api.dart b/client/lib/api/default_api.dart index a8ec164..c101e96 100644 --- a/client/lib/api/default_api.dart +++ b/client/lib/api/default_api.dart @@ -54,7 +54,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [AddDomainConfigParams] addDomainConfigParams (required): - Future addDomainConfig(String tenantId, AddDomainConfigParams addDomainConfigParams,) async { + Future addDomainConfig(String tenantId, AddDomainConfigParams addDomainConfigParams,) async { final response = await addDomainConfigWithHttpInfo(tenantId, addDomainConfigParams,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -63,7 +63,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AddDomainConfig200Response',) as AddDomainConfig200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AddDomainConfigResponse',) as AddDomainConfigResponse; } return null; @@ -109,7 +109,7 @@ class DefaultApi { /// * [String] tenantId: /// /// * [CreateHashTagBody] createHashTagBody: - Future addHashTag({ String? tenantId, CreateHashTagBody? createHashTagBody, }) async { + Future addHashTag({ String? tenantId, CreateHashTagBody? createHashTagBody, }) async { final response = await addHashTagWithHttpInfo( tenantId: tenantId, createHashTagBody: createHashTagBody, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -118,7 +118,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AddHashTag200Response',) as AddHashTag200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateHashTagResponse',) as CreateHashTagResponse; } return null; @@ -164,7 +164,7 @@ class DefaultApi { /// * [String] tenantId: /// /// * [BulkCreateHashTagsBody] bulkCreateHashTagsBody: - Future addHashTagsBulk({ String? tenantId, BulkCreateHashTagsBody? bulkCreateHashTagsBody, }) async { + Future addHashTagsBulk({ String? tenantId, BulkCreateHashTagsBody? bulkCreateHashTagsBody, }) async { final response = await addHashTagsBulkWithHttpInfo( tenantId: tenantId, bulkCreateHashTagsBody: bulkCreateHashTagsBody, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -173,7 +173,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AddHashTagsBulk200Response',) as AddHashTagsBulk200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BulkCreateHashTagsResponse',) as BulkCreateHashTagsResponse; } return null; @@ -342,7 +342,7 @@ class DefaultApi { /// * [String] parentTenantId: /// /// * [bool] includeStats: - Future aggregate(String tenantId, AggregationRequest aggregationRequest, { String? parentTenantId, bool? includeStats, }) async { + Future aggregate(String tenantId, AggregationRequest aggregationRequest, { String? parentTenantId, bool? includeStats, }) async { final response = await aggregateWithHttpInfo(tenantId, aggregationRequest, parentTenantId: parentTenantId, includeStats: includeStats, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -351,7 +351,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AggregationResponse',) as AggregationResponse; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AggregateResponse',) as AggregateResponse; } return null; @@ -433,7 +433,7 @@ class DefaultApi { /// * [DateTime] startDate: /// /// * [bool] forceRecalculate: - Future aggregateQuestionResults(String tenantId, { String? questionId, List? questionIds, String? urlId, AggregateTimeBucket? timeBucket, DateTime? startDate, bool? forceRecalculate, }) async { + Future aggregateQuestionResults(String tenantId, { String? questionId, List? questionIds, String? urlId, AggregateTimeBucket? timeBucket, DateTime? startDate, bool? forceRecalculate, }) async { final response = await aggregateQuestionResultsWithHttpInfo(tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, timeBucket: timeBucket, startDate: startDate, forceRecalculate: forceRecalculate, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -442,7 +442,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AggregateQuestionResults200Response',) as AggregateQuestionResults200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AggregateQuestionResultsResponse',) as AggregateQuestionResultsResponse; } return null; @@ -505,7 +505,7 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future blockUserFromComment(String tenantId, String id, BlockFromCommentParams blockFromCommentParams, { String? userId, String? anonUserId, }) async { + Future blockUserFromComment(String tenantId, String id, BlockFromCommentParams blockFromCommentParams, { String? userId, String? anonUserId, }) async { final response = await blockUserFromCommentWithHttpInfo(tenantId, id, blockFromCommentParams, userId: userId, anonUserId: anonUserId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -514,7 +514,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BlockFromCommentPublic200Response',) as BlockFromCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BlockSuccess',) as BlockSuccess; } return null; @@ -565,7 +565,7 @@ class DefaultApi { /// * [BulkAggregateQuestionResultsRequest] bulkAggregateQuestionResultsRequest (required): /// /// * [bool] forceRecalculate: - Future bulkAggregateQuestionResults(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, { bool? forceRecalculate, }) async { + Future bulkAggregateQuestionResults(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, { bool? forceRecalculate, }) async { final response = await bulkAggregateQuestionResultsWithHttpInfo(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate: forceRecalculate, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -574,7 +574,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BulkAggregateQuestionResults200Response',) as BulkAggregateQuestionResults200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BulkAggregateQuestionResultsResponse',) as BulkAggregateQuestionResultsResponse; } return null; @@ -628,7 +628,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [ChangeTicketStateBody] changeTicketStateBody (required): - Future changeTicketState(String tenantId, String userId, String id, ChangeTicketStateBody changeTicketStateBody,) async { + Future changeTicketState(String tenantId, String userId, String id, ChangeTicketStateBody changeTicketStateBody,) async { final response = await changeTicketStateWithHttpInfo(tenantId, userId, id, changeTicketStateBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -637,7 +637,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ChangeTicketState200Response',) as ChangeTicketState200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ChangeTicketStateResponse',) as ChangeTicketStateResponse; } return null; @@ -733,7 +733,7 @@ class DefaultApi { /// * [double] maxValue: /// /// * [double] limit: - Future combineCommentsWithQuestionResults(String tenantId, { String? questionId, List? questionIds, String? urlId, DateTime? startDate, bool? forceRecalculate, double? minValue, double? maxValue, double? limit, }) async { + Future combineCommentsWithQuestionResults(String tenantId, { String? questionId, List? questionIds, String? urlId, DateTime? startDate, bool? forceRecalculate, double? minValue, double? maxValue, double? limit, }) async { final response = await combineCommentsWithQuestionResultsWithHttpInfo(tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, startDate: startDate, forceRecalculate: forceRecalculate, minValue: minValue, maxValue: maxValue, limit: limit, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -742,7 +742,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CombineCommentsWithQuestionResults200Response',) as CombineCommentsWithQuestionResults200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CombineQuestionResultsWithCommentsResponse',) as CombineQuestionResultsWithCommentsResponse; } return null; @@ -786,7 +786,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateEmailTemplateBody] createEmailTemplateBody (required): - Future createEmailTemplate(String tenantId, CreateEmailTemplateBody createEmailTemplateBody,) async { + Future createEmailTemplate(String tenantId, CreateEmailTemplateBody createEmailTemplateBody,) async { final response = await createEmailTemplateWithHttpInfo(tenantId, createEmailTemplateBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -795,7 +795,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateEmailTemplate200Response',) as CreateEmailTemplate200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateEmailTemplateResponse',) as CreateEmailTemplateResponse; } return null; @@ -867,7 +867,7 @@ class DefaultApi { /// * [bool] doSpamCheck: /// /// * [bool] skipDupCheck: - Future createFeedPost(String tenantId, CreateFeedPostParams createFeedPostParams, { String? broadcastId, bool? isLive, bool? doSpamCheck, bool? skipDupCheck, }) async { + Future createFeedPost(String tenantId, CreateFeedPostParams createFeedPostParams, { String? broadcastId, bool? isLive, bool? doSpamCheck, bool? skipDupCheck, }) async { final response = await createFeedPostWithHttpInfo(tenantId, createFeedPostParams, broadcastId: broadcastId, isLive: isLive, doSpamCheck: doSpamCheck, skipDupCheck: skipDupCheck, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -876,7 +876,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateFeedPost200Response',) as CreateFeedPost200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateFeedPostsResponse',) as CreateFeedPostsResponse; } return null; @@ -920,7 +920,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateModeratorBody] createModeratorBody (required): - Future createModerator(String tenantId, CreateModeratorBody createModeratorBody,) async { + Future createModerator(String tenantId, CreateModeratorBody createModeratorBody,) async { final response = await createModeratorWithHttpInfo(tenantId, createModeratorBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -929,7 +929,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateModerator200Response',) as CreateModerator200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateModeratorResponse',) as CreateModeratorResponse; } return null; @@ -973,7 +973,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateQuestionConfigBody] createQuestionConfigBody (required): - Future createQuestionConfig(String tenantId, CreateQuestionConfigBody createQuestionConfigBody,) async { + Future createQuestionConfig(String tenantId, CreateQuestionConfigBody createQuestionConfigBody,) async { final response = await createQuestionConfigWithHttpInfo(tenantId, createQuestionConfigBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -982,7 +982,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateQuestionConfig200Response',) as CreateQuestionConfig200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateQuestionConfigResponse',) as CreateQuestionConfigResponse; } return null; @@ -1026,7 +1026,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateQuestionResultBody] createQuestionResultBody (required): - Future createQuestionResult(String tenantId, CreateQuestionResultBody createQuestionResultBody,) async { + Future createQuestionResult(String tenantId, CreateQuestionResultBody createQuestionResultBody,) async { final response = await createQuestionResultWithHttpInfo(tenantId, createQuestionResultBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1035,7 +1035,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateQuestionResult200Response',) as CreateQuestionResult200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateQuestionResultResponse',) as CreateQuestionResultResponse; } return null; @@ -1132,7 +1132,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantBody] createTenantBody (required): - Future createTenant(String tenantId, CreateTenantBody createTenantBody,) async { + Future createTenant(String tenantId, CreateTenantBody createTenantBody,) async { final response = await createTenantWithHttpInfo(tenantId, createTenantBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1141,7 +1141,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateTenant200Response',) as CreateTenant200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateTenantResponse',) as CreateTenantResponse; } return null; @@ -1185,7 +1185,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantPackageBody] createTenantPackageBody (required): - Future createTenantPackage(String tenantId, CreateTenantPackageBody createTenantPackageBody,) async { + Future createTenantPackage(String tenantId, CreateTenantPackageBody createTenantPackageBody,) async { final response = await createTenantPackageWithHttpInfo(tenantId, createTenantPackageBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1194,7 +1194,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateTenantPackage200Response',) as CreateTenantPackage200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateTenantPackageResponse',) as CreateTenantPackageResponse; } return null; @@ -1238,7 +1238,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantUserBody] createTenantUserBody (required): - Future createTenantUser(String tenantId, CreateTenantUserBody createTenantUserBody,) async { + Future createTenantUser(String tenantId, CreateTenantUserBody createTenantUserBody,) async { final response = await createTenantUserWithHttpInfo(tenantId, createTenantUserBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1247,7 +1247,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateTenantUser200Response',) as CreateTenantUser200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateTenantUserResponse',) as CreateTenantUserResponse; } return null; @@ -1296,7 +1296,7 @@ class DefaultApi { /// * [String] userId (required): /// /// * [CreateTicketBody] createTicketBody (required): - Future createTicket(String tenantId, String userId, CreateTicketBody createTicketBody,) async { + Future createTicket(String tenantId, String userId, CreateTicketBody createTicketBody,) async { final response = await createTicketWithHttpInfo(tenantId, userId, createTicketBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1305,7 +1305,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateTicket200Response',) as CreateTicket200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateTicketResponse',) as CreateTicketResponse; } return null; @@ -1349,7 +1349,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateUserBadgeParams] createUserBadgeParams (required): - Future createUserBadge(String tenantId, CreateUserBadgeParams createUserBadgeParams,) async { + Future createUserBadge(String tenantId, CreateUserBadgeParams createUserBadgeParams,) async { final response = await createUserBadgeWithHttpInfo(tenantId, createUserBadgeParams,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1358,7 +1358,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateUserBadge200Response',) as CreateUserBadge200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APICreateUserBadgeResponse',) as APICreateUserBadgeResponse; } return null; @@ -1422,7 +1422,7 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future createVote(String tenantId, String commentId, String direction, { String? userId, String? anonUserId, }) async { + Future createVote(String tenantId, String commentId, String direction, { String? userId, String? anonUserId, }) async { final response = await createVoteWithHttpInfo(tenantId, commentId, direction, userId: userId, anonUserId: anonUserId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1431,7 +1431,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VoteComment200Response',) as VoteComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VoteResponse',) as VoteResponse; } return null; @@ -1490,7 +1490,7 @@ class DefaultApi { /// * [String] contextUserId: /// /// * [bool] isLive: - Future deleteComment(String tenantId, String id, { String? contextUserId, bool? isLive, }) async { + Future deleteComment(String tenantId, String id, { String? contextUserId, bool? isLive, }) async { final response = await deleteCommentWithHttpInfo(tenantId, id, contextUserId: contextUserId, isLive: isLive, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1499,7 +1499,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteComment200Response',) as DeleteComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteCommentResult',) as DeleteCommentResult; } return null; @@ -1544,7 +1544,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] domain (required): - Future deleteDomainConfig(String tenantId, String domain,) async { + Future deleteDomainConfig(String tenantId, String domain,) async { final response = await deleteDomainConfigWithHttpInfo(tenantId, domain,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1553,7 +1553,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteDomainConfig200Response',) as DeleteDomainConfig200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteDomainConfigResponse',) as DeleteDomainConfigResponse; } return null; @@ -1598,7 +1598,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteEmailTemplate(String tenantId, String id,) async { + Future deleteEmailTemplate(String tenantId, String id,) async { final response = await deleteEmailTemplateWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1607,7 +1607,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -1657,7 +1657,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] errorId (required): - Future deleteEmailTemplateRenderError(String tenantId, String id, String errorId,) async { + Future deleteEmailTemplateRenderError(String tenantId, String id, String errorId,) async { final response = await deleteEmailTemplateRenderErrorWithHttpInfo(tenantId, id, errorId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1666,7 +1666,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -1679,14 +1679,14 @@ class DefaultApi { /// /// * [String] tenantId: /// - /// * [DeleteHashTagRequest] deleteHashTagRequest: - Future deleteHashTagWithHttpInfo(String tag, { String? tenantId, DeleteHashTagRequest? deleteHashTagRequest, }) async { + /// * [DeleteHashTagRequestBody] deleteHashTagRequestBody: + Future deleteHashTagWithHttpInfo(String tag, { String? tenantId, DeleteHashTagRequestBody? deleteHashTagRequestBody, }) async { // ignore: prefer_const_declarations final path = r'/api/v1/hash-tags/{tag}' .replaceAll('{tag}', tag); // ignore: prefer_final_locals - Object? postBody = deleteHashTagRequest; + Object? postBody = deleteHashTagRequestBody; final queryParams = []; final headerParams = {}; @@ -1716,9 +1716,9 @@ class DefaultApi { /// /// * [String] tenantId: /// - /// * [DeleteHashTagRequest] deleteHashTagRequest: - Future deleteHashTag(String tag, { String? tenantId, DeleteHashTagRequest? deleteHashTagRequest, }) async { - final response = await deleteHashTagWithHttpInfo(tag, tenantId: tenantId, deleteHashTagRequest: deleteHashTagRequest, ); + /// * [DeleteHashTagRequestBody] deleteHashTagRequestBody: + Future deleteHashTag(String tag, { String? tenantId, DeleteHashTagRequestBody? deleteHashTagRequestBody, }) async { + final response = await deleteHashTagWithHttpInfo(tag, tenantId: tenantId, deleteHashTagRequestBody: deleteHashTagRequestBody, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1726,7 +1726,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -1778,7 +1778,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] sendEmail: - Future deleteModerator(String tenantId, String id, { String? sendEmail, }) async { + Future deleteModerator(String tenantId, String id, { String? sendEmail, }) async { final response = await deleteModeratorWithHttpInfo(tenantId, id, sendEmail: sendEmail, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1787,7 +1787,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -1832,7 +1832,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteNotificationCount(String tenantId, String id,) async { + Future deleteNotificationCount(String tenantId, String id,) async { final response = await deleteNotificationCountWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1841,7 +1841,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -1940,7 +1940,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deletePendingWebhookEvent(String tenantId, String id,) async { + Future deletePendingWebhookEvent(String tenantId, String id,) async { final response = await deletePendingWebhookEventWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1949,7 +1949,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -1994,7 +1994,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteQuestionConfig(String tenantId, String id,) async { + Future deleteQuestionConfig(String tenantId, String id,) async { final response = await deleteQuestionConfigWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2003,7 +2003,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -2048,7 +2048,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteQuestionResult(String tenantId, String id,) async { + Future deleteQuestionResult(String tenantId, String id,) async { final response = await deleteQuestionResultWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2057,7 +2057,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -2238,7 +2238,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] sure: - Future deleteTenant(String tenantId, String id, { String? sure, }) async { + Future deleteTenant(String tenantId, String id, { String? sure, }) async { final response = await deleteTenantWithHttpInfo(tenantId, id, sure: sure, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2247,7 +2247,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -2292,7 +2292,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteTenantPackage(String tenantId, String id,) async { + Future deleteTenantPackage(String tenantId, String id,) async { final response = await deleteTenantPackageWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2301,7 +2301,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -2360,7 +2360,7 @@ class DefaultApi { /// * [String] deleteComments: /// /// * [String] commentDeleteMode: - Future deleteTenantUser(String tenantId, String id, { String? deleteComments, String? commentDeleteMode, }) async { + Future deleteTenantUser(String tenantId, String id, { String? deleteComments, String? commentDeleteMode, }) async { final response = await deleteTenantUserWithHttpInfo(tenantId, id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2369,7 +2369,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -2414,7 +2414,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteUserBadge(String tenantId, String id,) async { + Future deleteUserBadge(String tenantId, String id,) async { final response = await deleteUserBadgeWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2423,7 +2423,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateUserBadge200Response',) as UpdateUserBadge200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptySuccessResponse',) as APIEmptySuccessResponse; } return null; @@ -2475,7 +2475,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] editKey: - Future deleteVote(String tenantId, String id, { String? editKey, }) async { + Future deleteVote(String tenantId, String id, { String? editKey, }) async { final response = await deleteVoteWithHttpInfo(tenantId, id, editKey: editKey, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2484,7 +2484,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteCommentVote200Response',) as DeleteCommentVote200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VoteDeleteResponse',) as VoteDeleteResponse; } return null; @@ -2543,7 +2543,7 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future flagComment(String tenantId, String id, { String? userId, String? anonUserId, }) async { + Future flagComment(String tenantId, String id, { String? userId, String? anonUserId, }) async { final response = await flagCommentWithHttpInfo(tenantId, id, userId: userId, anonUserId: anonUserId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2552,7 +2552,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagComment200Response',) as FlagComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentResponse',) as FlagCommentResponse; } return null; @@ -2627,7 +2627,7 @@ class DefaultApi { /// * [double] after: /// /// * [double] before: - Future getAuditLogs(String tenantId, { double? limit, double? skip, SORTDIR? order, double? after, double? before, }) async { + Future getAuditLogs(String tenantId, { double? limit, double? skip, SORTDIR? order, double? after, double? before, }) async { final response = await getAuditLogsWithHttpInfo(tenantId, limit: limit, skip: skip, order: order, after: after, before: before, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2636,7 +2636,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetAuditLogs200Response',) as GetAuditLogs200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetAuditLogsResponse',) as GetAuditLogsResponse; } return null; @@ -2681,7 +2681,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getCachedNotificationCount(String tenantId, String id,) async { + Future getCachedNotificationCount(String tenantId, String id,) async { final response = await getCachedNotificationCountWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2690,7 +2690,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCachedNotificationCount200Response',) as GetCachedNotificationCount200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCachedNotificationCountResponse',) as GetCachedNotificationCountResponse; } return null; @@ -2735,7 +2735,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getComment(String tenantId, String id,) async { + Future getComment(String tenantId, String id,) async { final response = await getCommentWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2744,7 +2744,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetComment200Response',) as GetComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIGetCommentResponse',) as APIGetCommentResponse; } return null; @@ -2782,7 +2782,11 @@ class DefaultApi { /// * [String] parentId: /// /// * [SortDirections] direction: - Future getCommentsWithHttpInfo(String tenantId, { int? page, int? limit, int? skip, bool? asTree, int? skipChildren, int? limitChildren, int? maxTreeDepth, String? urlId, String? userId, String? anonUserId, String? contextUserId, String? hashTag, String? parentId, SortDirections? direction, }) async { + /// + /// * [int] fromDate: + /// + /// * [int] toDate: + Future getCommentsWithHttpInfo(String tenantId, { int? page, int? limit, int? skip, bool? asTree, int? skipChildren, int? limitChildren, int? maxTreeDepth, String? urlId, String? userId, String? anonUserId, String? contextUserId, String? hashTag, String? parentId, SortDirections? direction, int? fromDate, int? toDate, }) async { // ignore: prefer_const_declarations final path = r'/api/v1/comments'; @@ -2836,6 +2840,12 @@ class DefaultApi { if (direction != null) { queryParams.addAll(_queryParams('', 'direction', direction)); } + if (fromDate != null) { + queryParams.addAll(_queryParams('', 'fromDate', fromDate)); + } + if (toDate != null) { + queryParams.addAll(_queryParams('', 'toDate', toDate)); + } const contentTypes = []; @@ -2882,8 +2892,12 @@ class DefaultApi { /// * [String] parentId: /// /// * [SortDirections] direction: - Future getComments(String tenantId, { int? page, int? limit, int? skip, bool? asTree, int? skipChildren, int? limitChildren, int? maxTreeDepth, String? urlId, String? userId, String? anonUserId, String? contextUserId, String? hashTag, String? parentId, SortDirections? direction, }) async { - final response = await getCommentsWithHttpInfo(tenantId, page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, ); + /// + /// * [int] fromDate: + /// + /// * [int] toDate: + Future getComments(String tenantId, { int? page, int? limit, int? skip, bool? asTree, int? skipChildren, int? limitChildren, int? maxTreeDepth, String? urlId, String? userId, String? anonUserId, String? contextUserId, String? hashTag, String? parentId, SortDirections? direction, int? fromDate, int? toDate, }) async { + final response = await getCommentsWithHttpInfo(tenantId, page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, fromDate: fromDate, toDate: toDate, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2891,7 +2905,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetComments200Response',) as GetComments200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIGetCommentsResponse',) as APIGetCommentsResponse; } return null; @@ -2936,7 +2950,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] domain (required): - Future getDomainConfig(String tenantId, String domain,) async { + Future getDomainConfig(String tenantId, String domain,) async { final response = await getDomainConfigWithHttpInfo(tenantId, domain,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2945,7 +2959,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetDomainConfig200Response',) as GetDomainConfig200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetDomainConfigResponse',) as GetDomainConfigResponse; } return null; @@ -2985,7 +2999,7 @@ class DefaultApi { /// Parameters: /// /// * [String] tenantId (required): - Future getDomainConfigs(String tenantId,) async { + Future getDomainConfigs(String tenantId,) async { final response = await getDomainConfigsWithHttpInfo(tenantId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2994,7 +3008,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetDomainConfigs200Response',) as GetDomainConfigs200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetDomainConfigsResponse',) as GetDomainConfigsResponse; } return null; @@ -3039,7 +3053,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getEmailTemplate(String tenantId, String id,) async { + Future getEmailTemplate(String tenantId, String id,) async { final response = await getEmailTemplateWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3048,7 +3062,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEmailTemplate200Response',) as GetEmailTemplate200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEmailTemplateResponse',) as GetEmailTemplateResponse; } return null; @@ -3088,7 +3102,7 @@ class DefaultApi { /// Parameters: /// /// * [String] tenantId (required): - Future getEmailTemplateDefinitions(String tenantId,) async { + Future getEmailTemplateDefinitions(String tenantId,) async { final response = await getEmailTemplateDefinitionsWithHttpInfo(tenantId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3097,7 +3111,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEmailTemplateDefinitions200Response',) as GetEmailTemplateDefinitions200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEmailTemplateDefinitionsResponse',) as GetEmailTemplateDefinitionsResponse; } return null; @@ -3149,7 +3163,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [double] skip: - Future getEmailTemplateRenderErrors(String tenantId, String id, { double? skip, }) async { + Future getEmailTemplateRenderErrors(String tenantId, String id, { double? skip, }) async { final response = await getEmailTemplateRenderErrorsWithHttpInfo(tenantId, id, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3158,7 +3172,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEmailTemplateRenderErrors200Response',) as GetEmailTemplateRenderErrors200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEmailTemplateRenderErrorsResponse',) as GetEmailTemplateRenderErrorsResponse; } return null; @@ -3205,7 +3219,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getEmailTemplates(String tenantId, { double? skip, }) async { + Future getEmailTemplates(String tenantId, { double? skip, }) async { final response = await getEmailTemplatesWithHttpInfo(tenantId, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3214,7 +3228,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEmailTemplates200Response',) as GetEmailTemplates200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEmailTemplatesResponse',) as GetEmailTemplatesResponse; } return null; @@ -3280,7 +3294,7 @@ class DefaultApi { /// * [int] limit: /// /// * [List] tags: - Future getFeedPosts(String tenantId, { String? afterId, int? limit, List? tags, }) async { + Future getFeedPosts(String tenantId, { String? afterId, int? limit, List? tags, }) async { final response = await getFeedPostsWithHttpInfo(tenantId, afterId: afterId, limit: limit, tags: tags, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3289,7 +3303,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetFeedPosts200Response',) as GetFeedPosts200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetFeedPostsResponse',) as GetFeedPostsResponse; } return null; @@ -3336,7 +3350,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] page: - Future getHashTags(String tenantId, { double? page, }) async { + Future getHashTags(String tenantId, { double? page, }) async { final response = await getHashTagsWithHttpInfo(tenantId, page: page, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3345,7 +3359,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetHashTags200Response',) as GetHashTags200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetHashTagsResponse',) as GetHashTagsResponse; } return null; @@ -3390,7 +3404,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getModerator(String tenantId, String id,) async { + Future getModerator(String tenantId, String id,) async { final response = await getModeratorWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3399,7 +3413,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetModerator200Response',) as GetModerator200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetModeratorResponse',) as GetModeratorResponse; } return null; @@ -3446,7 +3460,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getModerators(String tenantId, { double? skip, }) async { + Future getModerators(String tenantId, { double? skip, }) async { final response = await getModeratorsWithHttpInfo(tenantId, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3455,7 +3469,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetModerators200Response',) as GetModerators200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetModeratorsResponse',) as GetModeratorsResponse; } return null; @@ -3530,7 +3544,7 @@ class DefaultApi { /// * [bool] viewed: /// /// * [String] type: - Future getNotificationCount(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, }) async { + Future getNotificationCount(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, }) async { final response = await getNotificationCountWithHttpInfo(tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3539,7 +3553,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetNotificationCount200Response',) as GetNotificationCount200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetNotificationCountResponse',) as GetNotificationCountResponse; } return null; @@ -3621,7 +3635,7 @@ class DefaultApi { /// * [String] type: /// /// * [double] skip: - Future getNotifications(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, double? skip, }) async { + Future getNotifications(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, double? skip, }) async { final response = await getNotificationsWithHttpInfo(tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3630,7 +3644,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetNotifications200Response',) as GetNotifications200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetNotificationsResponse',) as GetNotificationsResponse; } return null; @@ -3815,7 +3829,7 @@ class DefaultApi { /// * [String] domain: /// /// * [double] attemptCountGT: - Future getPendingWebhookEventCount(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, }) async { + Future getPendingWebhookEventCount(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, }) async { final response = await getPendingWebhookEventCountWithHttpInfo(tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3824,7 +3838,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetPendingWebhookEventCount200Response',) as GetPendingWebhookEventCount200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetPendingWebhookEventCountResponse',) as GetPendingWebhookEventCountResponse; } return null; @@ -3913,7 +3927,7 @@ class DefaultApi { /// * [double] attemptCountGT: /// /// * [double] skip: - Future getPendingWebhookEvents(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, double? skip, }) async { + Future getPendingWebhookEvents(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, double? skip, }) async { final response = await getPendingWebhookEventsWithHttpInfo(tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3922,7 +3936,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetPendingWebhookEvents200Response',) as GetPendingWebhookEvents200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetPendingWebhookEventsResponse',) as GetPendingWebhookEventsResponse; } return null; @@ -3967,7 +3981,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getQuestionConfig(String tenantId, String id,) async { + Future getQuestionConfig(String tenantId, String id,) async { final response = await getQuestionConfigWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -3976,7 +3990,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetQuestionConfig200Response',) as GetQuestionConfig200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetQuestionConfigResponse',) as GetQuestionConfigResponse; } return null; @@ -4023,7 +4037,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getQuestionConfigs(String tenantId, { double? skip, }) async { + Future getQuestionConfigs(String tenantId, { double? skip, }) async { final response = await getQuestionConfigsWithHttpInfo(tenantId, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4032,7 +4046,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetQuestionConfigs200Response',) as GetQuestionConfigs200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetQuestionConfigsResponse',) as GetQuestionConfigsResponse; } return null; @@ -4077,7 +4091,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getQuestionResult(String tenantId, String id,) async { + Future getQuestionResult(String tenantId, String id,) async { final response = await getQuestionResultWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4086,7 +4100,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetQuestionResult200Response',) as GetQuestionResult200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetQuestionResultResponse',) as GetQuestionResultResponse; } return null; @@ -4168,7 +4182,7 @@ class DefaultApi { /// * [String] questionIds: /// /// * [double] skip: - Future getQuestionResults(String tenantId, { String? urlId, String? userId, String? startDate, String? questionId, String? questionIds, double? skip, }) async { + Future getQuestionResults(String tenantId, { String? urlId, String? userId, String? startDate, String? questionId, String? questionIds, double? skip, }) async { final response = await getQuestionResultsWithHttpInfo(tenantId, urlId: urlId, userId: userId, startDate: startDate, questionId: questionId, questionIds: questionIds, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4177,7 +4191,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetQuestionResults200Response',) as GetQuestionResults200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetQuestionResultsResponse',) as GetQuestionResultsResponse; } return null; @@ -4332,7 +4346,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [int] skip: - Future getSSOUsers(String tenantId, { int? skip, }) async { + Future getSSOUsers(String tenantId, { int? skip, }) async { final response = await getSSOUsersWithHttpInfo(tenantId, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4341,7 +4355,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetSSOUsers200Response',) as GetSSOUsers200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetSSOUsersResponse',) as GetSSOUsersResponse; } return null; @@ -4442,7 +4456,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenant(String tenantId, String id,) async { + Future getTenant(String tenantId, String id,) async { final response = await getTenantWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4451,7 +4465,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenant200Response',) as GetTenant200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantResponse',) as GetTenantResponse; } return null; @@ -4519,7 +4533,7 @@ class DefaultApi { /// * [double] dayNumber: /// /// * [double] skip: - Future getTenantDailyUsages(String tenantId, { double? yearNumber, double? monthNumber, double? dayNumber, double? skip, }) async { + Future getTenantDailyUsages(String tenantId, { double? yearNumber, double? monthNumber, double? dayNumber, double? skip, }) async { final response = await getTenantDailyUsagesWithHttpInfo(tenantId, yearNumber: yearNumber, monthNumber: monthNumber, dayNumber: dayNumber, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4528,7 +4542,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantDailyUsages200Response',) as GetTenantDailyUsages200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantDailyUsagesResponse',) as GetTenantDailyUsagesResponse; } return null; @@ -4573,7 +4587,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenantPackage(String tenantId, String id,) async { + Future getTenantPackage(String tenantId, String id,) async { final response = await getTenantPackageWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4582,7 +4596,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantPackage200Response',) as GetTenantPackage200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantPackageResponse',) as GetTenantPackageResponse; } return null; @@ -4629,7 +4643,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getTenantPackages(String tenantId, { double? skip, }) async { + Future getTenantPackages(String tenantId, { double? skip, }) async { final response = await getTenantPackagesWithHttpInfo(tenantId, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4638,7 +4652,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantPackages200Response',) as GetTenantPackages200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantPackagesResponse',) as GetTenantPackagesResponse; } return null; @@ -4683,7 +4697,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenantUser(String tenantId, String id,) async { + Future getTenantUser(String tenantId, String id,) async { final response = await getTenantUserWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4692,7 +4706,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantUser200Response',) as GetTenantUser200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantUserResponse',) as GetTenantUserResponse; } return null; @@ -4739,7 +4753,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getTenantUsers(String tenantId, { double? skip, }) async { + Future getTenantUsers(String tenantId, { double? skip, }) async { final response = await getTenantUsersWithHttpInfo(tenantId, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4748,7 +4762,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantUsers200Response',) as GetTenantUsers200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantUsersResponse',) as GetTenantUsersResponse; } return null; @@ -4802,7 +4816,7 @@ class DefaultApi { /// * [String] meta: /// /// * [double] skip: - Future getTenants(String tenantId, { String? meta, double? skip, }) async { + Future getTenants(String tenantId, { String? meta, double? skip, }) async { final response = await getTenantsWithHttpInfo(tenantId, meta: meta, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4811,7 +4825,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenants200Response',) as GetTenants200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantsResponse',) as GetTenantsResponse; } return null; @@ -4863,7 +4877,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] userId: - Future getTicket(String tenantId, String id, { String? userId, }) async { + Future getTicket(String tenantId, String id, { String? userId, }) async { final response = await getTicketWithHttpInfo(tenantId, id, userId: userId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4872,7 +4886,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTicket200Response',) as GetTicket200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTicketResponse',) as GetTicketResponse; } return null; @@ -4940,7 +4954,7 @@ class DefaultApi { /// * [double] skip: /// /// * [double] limit: - Future getTickets(String tenantId, { String? userId, double? state, double? skip, double? limit, }) async { + Future getTickets(String tenantId, { String? userId, double? state, double? skip, double? limit, }) async { final response = await getTicketsWithHttpInfo(tenantId, userId: userId, state: state, skip: skip, limit: limit, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -4949,7 +4963,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTickets200Response',) as GetTickets200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTicketsResponse',) as GetTicketsResponse; } return null; @@ -4994,7 +5008,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUser(String tenantId, String id,) async { + Future getUser(String tenantId, String id,) async { final response = await getUserWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5003,7 +5017,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUser200Response',) as GetUser200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserResponse',) as GetUserResponse; } return null; @@ -5048,7 +5062,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUserBadge(String tenantId, String id,) async { + Future getUserBadge(String tenantId, String id,) async { final response = await getUserBadgeWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5057,7 +5071,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserBadge200Response',) as GetUserBadge200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIGetUserBadgeResponse',) as APIGetUserBadgeResponse; } return null; @@ -5102,7 +5116,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUserBadgeProgressById(String tenantId, String id,) async { + Future getUserBadgeProgressById(String tenantId, String id,) async { final response = await getUserBadgeProgressByIdWithHttpInfo(tenantId, id,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5111,7 +5125,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserBadgeProgressById200Response',) as GetUserBadgeProgressById200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIGetUserBadgeProgressResponse',) as APIGetUserBadgeProgressResponse; } return null; @@ -5156,7 +5170,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] userId (required): - Future getUserBadgeProgressByUserId(String tenantId, String userId,) async { + Future getUserBadgeProgressByUserId(String tenantId, String userId,) async { final response = await getUserBadgeProgressByUserIdWithHttpInfo(tenantId, userId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5165,7 +5179,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserBadgeProgressById200Response',) as GetUserBadgeProgressById200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIGetUserBadgeProgressResponse',) as APIGetUserBadgeProgressResponse; } return null; @@ -5226,7 +5240,7 @@ class DefaultApi { /// * [double] limit: /// /// * [double] skip: - Future getUserBadgeProgressList(String tenantId, { String? userId, double? limit, double? skip, }) async { + Future getUserBadgeProgressList(String tenantId, { String? userId, double? limit, double? skip, }) async { final response = await getUserBadgeProgressListWithHttpInfo(tenantId, userId: userId, limit: limit, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5235,7 +5249,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserBadgeProgressList200Response',) as GetUserBadgeProgressList200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIGetUserBadgeProgressListResponse',) as APIGetUserBadgeProgressListResponse; } return null; @@ -5317,7 +5331,7 @@ class DefaultApi { /// * [double] limit: /// /// * [double] skip: - Future getUserBadges(String tenantId, { String? userId, String? badgeId, double? type, bool? displayedOnComments, double? limit, double? skip, }) async { + Future getUserBadges(String tenantId, { String? userId, String? badgeId, double? type, bool? displayedOnComments, double? limit, double? skip, }) async { final response = await getUserBadgesWithHttpInfo(tenantId, userId: userId, badgeId: badgeId, type: type, displayedOnComments: displayedOnComments, limit: limit, skip: skip, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5326,7 +5340,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserBadges200Response',) as GetUserBadges200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIGetUserBadgesResponse',) as APIGetUserBadgesResponse; } return null; @@ -5371,7 +5385,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getVotes(String tenantId, String urlId,) async { + Future getVotes(String tenantId, String urlId,) async { final response = await getVotesWithHttpInfo(tenantId, urlId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5380,7 +5394,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetVotes200Response',) as GetVotes200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetVotesResponse',) as GetVotesResponse; } return null; @@ -5439,7 +5453,7 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future getVotesForUser(String tenantId, String urlId, { String? userId, String? anonUserId, }) async { + Future getVotesForUser(String tenantId, String urlId, { String? userId, String? anonUserId, }) async { final response = await getVotesForUserWithHttpInfo(tenantId, urlId, userId: userId, anonUserId: anonUserId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5448,7 +5462,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetVotesForUser200Response',) as GetVotesForUser200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetVotesForUserResponse',) as GetVotesForUserResponse; } return null; @@ -5497,7 +5511,7 @@ class DefaultApi { /// * [String] domainToUpdate (required): /// /// * [PatchDomainConfigParams] patchDomainConfigParams (required): - Future patchDomainConfig(String tenantId, String domainToUpdate, PatchDomainConfigParams patchDomainConfigParams,) async { + Future patchDomainConfig(String tenantId, String domainToUpdate, PatchDomainConfigParams patchDomainConfigParams,) async { final response = await patchDomainConfigWithHttpInfo(tenantId, domainToUpdate, patchDomainConfigParams,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5506,7 +5520,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetDomainConfig200Response',) as GetDomainConfig200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PatchDomainConfigResponse',) as PatchDomainConfigResponse; } return null; @@ -5557,7 +5571,7 @@ class DefaultApi { /// * [String] tenantId: /// /// * [UpdateHashTagBody] updateHashTagBody: - Future patchHashTag(String tag, { String? tenantId, UpdateHashTagBody? updateHashTagBody, }) async { + Future patchHashTag(String tag, { String? tenantId, UpdateHashTagBody? updateHashTagBody, }) async { final response = await patchHashTagWithHttpInfo(tag, tenantId: tenantId, updateHashTagBody: updateHashTagBody, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5566,7 +5580,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PatchHashTag200Response',) as PatchHashTag200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateHashTagResponse',) as UpdateHashTagResponse; } return null; @@ -5738,7 +5752,7 @@ class DefaultApi { /// * [String] domainToUpdate (required): /// /// * [UpdateDomainConfigParams] updateDomainConfigParams (required): - Future putDomainConfig(String tenantId, String domainToUpdate, UpdateDomainConfigParams updateDomainConfigParams,) async { + Future putDomainConfig(String tenantId, String domainToUpdate, UpdateDomainConfigParams updateDomainConfigParams,) async { final response = await putDomainConfigWithHttpInfo(tenantId, domainToUpdate, updateDomainConfigParams,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5747,7 +5761,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetDomainConfig200Response',) as GetDomainConfig200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PutDomainConfigResponse',) as PutDomainConfigResponse; } return null; @@ -5863,7 +5877,7 @@ class DefaultApi { /// * [RenderEmailTemplateBody] renderEmailTemplateBody (required): /// /// * [String] locale: - Future renderEmailTemplate(String tenantId, RenderEmailTemplateBody renderEmailTemplateBody, { String? locale, }) async { + Future renderEmailTemplate(String tenantId, RenderEmailTemplateBody renderEmailTemplateBody, { String? locale, }) async { final response = await renderEmailTemplateWithHttpInfo(tenantId, renderEmailTemplateBody, locale: locale, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5872,7 +5886,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'RenderEmailTemplate200Response',) as RenderEmailTemplate200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'RenderEmailTemplateResponse',) as RenderEmailTemplateResponse; } return null; @@ -5921,7 +5935,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [ReplaceTenantPackageBody] replaceTenantPackageBody (required): - Future replaceTenantPackage(String tenantId, String id, ReplaceTenantPackageBody replaceTenantPackageBody,) async { + Future replaceTenantPackage(String tenantId, String id, ReplaceTenantPackageBody replaceTenantPackageBody,) async { final response = await replaceTenantPackageWithHttpInfo(tenantId, id, replaceTenantPackageBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5930,7 +5944,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -5986,7 +6000,7 @@ class DefaultApi { /// * [ReplaceTenantUserBody] replaceTenantUserBody (required): /// /// * [String] updateComments: - Future replaceTenantUser(String tenantId, String id, ReplaceTenantUserBody replaceTenantUserBody, { String? updateComments, }) async { + Future replaceTenantUser(String tenantId, String id, ReplaceTenantUserBody replaceTenantUserBody, { String? updateComments, }) async { final response = await replaceTenantUserWithHttpInfo(tenantId, id, replaceTenantUserBody, updateComments: updateComments, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -5995,7 +6009,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6067,7 +6081,7 @@ class DefaultApi { /// * [bool] sendEmails: /// /// * [bool] populateNotifications: - Future saveComment(String tenantId, CreateCommentParams createCommentParams, { bool? isLive, bool? doSpamCheck, bool? sendEmails, bool? populateNotifications, }) async { + Future saveComment(String tenantId, CreateCommentParams createCommentParams, { bool? isLive, bool? doSpamCheck, bool? sendEmails, bool? populateNotifications, }) async { final response = await saveCommentWithHttpInfo(tenantId, createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6076,7 +6090,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SaveComment200Response',) as SaveComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APISaveCommentResponse',) as APISaveCommentResponse; } return null; @@ -6148,7 +6162,7 @@ class DefaultApi { /// * [bool] sendEmails: /// /// * [bool] populateNotifications: - Future?> saveCommentsBulk(String tenantId, List createCommentParams, { bool? isLive, bool? doSpamCheck, bool? sendEmails, bool? populateNotifications, }) async { + Future?> saveCommentsBulk(String tenantId, List createCommentParams, { bool? isLive, bool? doSpamCheck, bool? sendEmails, bool? populateNotifications, }) async { final response = await saveCommentsBulkWithHttpInfo(tenantId, createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6158,8 +6172,8 @@ class DefaultApi { // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') as List) - .cast() + return (await apiClient.deserializeAsync(responseBody, 'List') as List) + .cast() .toList(growable: false); } @@ -6210,7 +6224,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] fromName (required): - Future sendInvite(String tenantId, String id, String fromName,) async { + Future sendInvite(String tenantId, String id, String fromName,) async { final response = await sendInviteWithHttpInfo(tenantId, id, fromName,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6219,7 +6233,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6271,7 +6285,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] redirectURL: - Future sendLoginLink(String tenantId, String id, { String? redirectURL, }) async { + Future sendLoginLink(String tenantId, String id, { String? redirectURL, }) async { final response = await sendLoginLinkWithHttpInfo(tenantId, id, redirectURL: redirectURL, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6280,7 +6294,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6343,7 +6357,7 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future unBlockUserFromComment(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, { String? userId, String? anonUserId, }) async { + Future unBlockUserFromComment(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, { String? userId, String? anonUserId, }) async { final response = await unBlockUserFromCommentWithHttpInfo(tenantId, id, unBlockFromCommentParams, userId: userId, anonUserId: anonUserId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6352,7 +6366,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UnBlockCommentPublic200Response',) as UnBlockCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UnblockSuccess',) as UnblockSuccess; } return null; @@ -6411,7 +6425,7 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future unFlagComment(String tenantId, String id, { String? userId, String? anonUserId, }) async { + Future unFlagComment(String tenantId, String id, { String? userId, String? anonUserId, }) async { final response = await unFlagCommentWithHttpInfo(tenantId, id, userId: userId, anonUserId: anonUserId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6420,7 +6434,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagComment200Response',) as FlagComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentResponse',) as FlagCommentResponse; } return null; @@ -6490,7 +6504,7 @@ class DefaultApi { /// * [bool] doSpamCheck: /// /// * [bool] isLive: - Future updateComment(String tenantId, String id, UpdatableCommentParams updatableCommentParams, { String? contextUserId, bool? doSpamCheck, bool? isLive, }) async { + Future updateComment(String tenantId, String id, UpdatableCommentParams updatableCommentParams, { String? contextUserId, bool? doSpamCheck, bool? isLive, }) async { final response = await updateCommentWithHttpInfo(tenantId, id, updatableCommentParams, contextUserId: contextUserId, doSpamCheck: doSpamCheck, isLive: isLive, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6499,7 +6513,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6548,7 +6562,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateEmailTemplateBody] updateEmailTemplateBody (required): - Future updateEmailTemplate(String tenantId, String id, UpdateEmailTemplateBody updateEmailTemplateBody,) async { + Future updateEmailTemplate(String tenantId, String id, UpdateEmailTemplateBody updateEmailTemplateBody,) async { final response = await updateEmailTemplateWithHttpInfo(tenantId, id, updateEmailTemplateBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6557,7 +6571,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6606,7 +6620,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [FeedPost] feedPost (required): - Future updateFeedPost(String tenantId, String id, FeedPost feedPost,) async { + Future updateFeedPost(String tenantId, String id, FeedPost feedPost,) async { final response = await updateFeedPostWithHttpInfo(tenantId, id, feedPost,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6615,7 +6629,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6664,7 +6678,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateModeratorBody] updateModeratorBody (required): - Future updateModerator(String tenantId, String id, UpdateModeratorBody updateModeratorBody,) async { + Future updateModerator(String tenantId, String id, UpdateModeratorBody updateModeratorBody,) async { final response = await updateModeratorWithHttpInfo(tenantId, id, updateModeratorBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6673,7 +6687,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6729,7 +6743,7 @@ class DefaultApi { /// * [UpdateNotificationBody] updateNotificationBody (required): /// /// * [String] userId: - Future updateNotification(String tenantId, String id, UpdateNotificationBody updateNotificationBody, { String? userId, }) async { + Future updateNotification(String tenantId, String id, UpdateNotificationBody updateNotificationBody, { String? userId, }) async { final response = await updateNotificationWithHttpInfo(tenantId, id, updateNotificationBody, userId: userId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6738,7 +6752,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6787,7 +6801,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateQuestionConfigBody] updateQuestionConfigBody (required): - Future updateQuestionConfig(String tenantId, String id, UpdateQuestionConfigBody updateQuestionConfigBody,) async { + Future updateQuestionConfig(String tenantId, String id, UpdateQuestionConfigBody updateQuestionConfigBody,) async { final response = await updateQuestionConfigWithHttpInfo(tenantId, id, updateQuestionConfigBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6796,7 +6810,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6845,7 +6859,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateQuestionResultBody] updateQuestionResultBody (required): - Future updateQuestionResult(String tenantId, String id, UpdateQuestionResultBody updateQuestionResultBody,) async { + Future updateQuestionResult(String tenantId, String id, UpdateQuestionResultBody updateQuestionResultBody,) async { final response = await updateQuestionResultWithHttpInfo(tenantId, id, updateQuestionResultBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6854,7 +6868,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -6968,7 +6982,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateTenantBody] updateTenantBody (required): - Future updateTenant(String tenantId, String id, UpdateTenantBody updateTenantBody,) async { + Future updateTenant(String tenantId, String id, UpdateTenantBody updateTenantBody,) async { final response = await updateTenantWithHttpInfo(tenantId, id, updateTenantBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -6977,7 +6991,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -7026,7 +7040,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateTenantPackageBody] updateTenantPackageBody (required): - Future updateTenantPackage(String tenantId, String id, UpdateTenantPackageBody updateTenantPackageBody,) async { + Future updateTenantPackage(String tenantId, String id, UpdateTenantPackageBody updateTenantPackageBody,) async { final response = await updateTenantPackageWithHttpInfo(tenantId, id, updateTenantPackageBody,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -7035,7 +7049,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -7091,7 +7105,7 @@ class DefaultApi { /// * [UpdateTenantUserBody] updateTenantUserBody (required): /// /// * [String] updateComments: - Future updateTenantUser(String tenantId, String id, UpdateTenantUserBody updateTenantUserBody, { String? updateComments, }) async { + Future updateTenantUser(String tenantId, String id, UpdateTenantUserBody updateTenantUserBody, { String? updateComments, }) async { final response = await updateTenantUserWithHttpInfo(tenantId, id, updateTenantUserBody, updateComments: updateComments, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -7100,7 +7114,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -7149,7 +7163,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateUserBadgeParams] updateUserBadgeParams (required): - Future updateUserBadge(String tenantId, String id, UpdateUserBadgeParams updateUserBadgeParams,) async { + Future updateUserBadge(String tenantId, String id, UpdateUserBadgeParams updateUserBadgeParams,) async { final response = await updateUserBadgeWithHttpInfo(tenantId, id, updateUserBadgeParams,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -7158,7 +7172,7 @@ class DefaultApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateUserBadge200Response',) as UpdateUserBadge200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptySuccessResponse',) as APIEmptySuccessResponse; } return null; diff --git a/client/lib/api/moderation_api.dart b/client/lib/api/moderation_api.dart new file mode 100644 index 0000000..1727b6a --- /dev/null +++ b/client/lib/api/moderation_api.dart @@ -0,0 +1,2806 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class ModerationApi { + ModerationApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; + + final ApiClient apiClient; + + /// Performs an HTTP 'DELETE /auth/my-account/moderate-comments/vote/{commentId}/{voteId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] voteId (required): + /// + /// * [String] sso: + Future deleteModerationVoteWithHttpInfo(String commentId, String voteId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/vote/{commentId}/{voteId}' + .replaceAll('{commentId}', commentId) + .replaceAll('{voteId}', voteId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'DELETE', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] voteId (required): + /// + /// * [String] sso: + Future deleteModerationVote(String commentId, String voteId, { String? sso, }) async { + final response = await deleteModerationVoteWithHttpInfo(commentId, voteId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VoteDeleteResponse',) as VoteDeleteResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/api/comments' operation and returns the [Response]. + /// Parameters: + /// + /// * [double] page: + /// + /// * [double] count: + /// + /// * [String] textSearch: + /// + /// * [String] byIPFromComment: + /// + /// * [String] filters: + /// + /// * [String] searchFilters: + /// + /// * [String] sorts: + /// + /// * [bool] demo: + /// + /// * [String] sso: + Future getApiCommentsWithHttpInfo({ double? page, double? count, String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, bool? demo, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/api/comments'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (page != null) { + queryParams.addAll(_queryParams('', 'page', page)); + } + if (count != null) { + queryParams.addAll(_queryParams('', 'count', count)); + } + if (textSearch != null) { + queryParams.addAll(_queryParams('', 'text-search', textSearch)); + } + if (byIPFromComment != null) { + queryParams.addAll(_queryParams('', 'byIPFromComment', byIPFromComment)); + } + if (filters != null) { + queryParams.addAll(_queryParams('', 'filters', filters)); + } + if (searchFilters != null) { + queryParams.addAll(_queryParams('', 'searchFilters', searchFilters)); + } + if (sorts != null) { + queryParams.addAll(_queryParams('', 'sorts', sorts)); + } + if (demo != null) { + queryParams.addAll(_queryParams('', 'demo', demo)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [double] page: + /// + /// * [double] count: + /// + /// * [String] textSearch: + /// + /// * [String] byIPFromComment: + /// + /// * [String] filters: + /// + /// * [String] searchFilters: + /// + /// * [String] sorts: + /// + /// * [bool] demo: + /// + /// * [String] sso: + Future getApiComments({ double? page, double? count, String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, bool? demo, String? sso, }) async { + final response = await getApiCommentsWithHttpInfo( page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationAPIGetCommentsResponse',) as ModerationAPIGetCommentsResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/api/export/status' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] batchJobId: + /// + /// * [String] sso: + Future getApiExportStatusWithHttpInfo({ String? batchJobId, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/api/export/status'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (batchJobId != null) { + queryParams.addAll(_queryParams('', 'batchJobId', batchJobId)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] batchJobId: + /// + /// * [String] sso: + Future getApiExportStatus({ String? batchJobId, String? sso, }) async { + final response = await getApiExportStatusWithHttpInfo( batchJobId: batchJobId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationExportStatusResponse',) as ModerationExportStatusResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/api/ids' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] textSearch: + /// + /// * [String] byIPFromComment: + /// + /// * [String] filters: + /// + /// * [String] searchFilters: + /// + /// * [String] afterId: + /// + /// * [bool] demo: + /// + /// * [String] sso: + Future getApiIdsWithHttpInfo({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? afterId, bool? demo, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/api/ids'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (textSearch != null) { + queryParams.addAll(_queryParams('', 'text-search', textSearch)); + } + if (byIPFromComment != null) { + queryParams.addAll(_queryParams('', 'byIPFromComment', byIPFromComment)); + } + if (filters != null) { + queryParams.addAll(_queryParams('', 'filters', filters)); + } + if (searchFilters != null) { + queryParams.addAll(_queryParams('', 'searchFilters', searchFilters)); + } + if (afterId != null) { + queryParams.addAll(_queryParams('', 'afterId', afterId)); + } + if (demo != null) { + queryParams.addAll(_queryParams('', 'demo', demo)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] textSearch: + /// + /// * [String] byIPFromComment: + /// + /// * [String] filters: + /// + /// * [String] searchFilters: + /// + /// * [String] afterId: + /// + /// * [bool] demo: + /// + /// * [String] sso: + Future getApiIds({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? afterId, bool? demo, String? sso, }) async { + final response = await getApiIdsWithHttpInfo( textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationAPIGetCommentIdsResponse',) as ModerationAPIGetCommentIdsResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/ban-users/from-comment/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getBanUsersFromCommentWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getBanUsersFromComment(String commentId, { String? sso, }) async { + final response = await getBanUsersFromCommentWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetBannedUsersFromCommentResponse',) as GetBannedUsersFromCommentResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-comment-ban-status/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getCommentBanStatusWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getCommentBanStatus(String commentId, { String? sso, }) async { + final response = await getCommentBanStatusWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCommentBanStatusResponse',) as GetCommentBanStatusResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/comment-children/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getCommentChildrenWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/comment-children/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getCommentChildren(String commentId, { String? sso, }) async { + final response = await getCommentChildrenWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationAPIChildCommentsResponse',) as ModerationAPIChildCommentsResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/count' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] textSearch: + /// + /// * [String] byIPFromComment: + /// + /// * [String] filter: + /// + /// * [String] searchFilters: + /// + /// * [bool] demo: + /// + /// * [String] sso: + Future getCountWithHttpInfo({ String? textSearch, String? byIPFromComment, String? filter, String? searchFilters, bool? demo, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/count'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (textSearch != null) { + queryParams.addAll(_queryParams('', 'text-search', textSearch)); + } + if (byIPFromComment != null) { + queryParams.addAll(_queryParams('', 'byIPFromComment', byIPFromComment)); + } + if (filter != null) { + queryParams.addAll(_queryParams('', 'filter', filter)); + } + if (searchFilters != null) { + queryParams.addAll(_queryParams('', 'searchFilters', searchFilters)); + } + if (demo != null) { + queryParams.addAll(_queryParams('', 'demo', demo)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] textSearch: + /// + /// * [String] byIPFromComment: + /// + /// * [String] filter: + /// + /// * [String] searchFilters: + /// + /// * [bool] demo: + /// + /// * [String] sso: + Future getCount({ String? textSearch, String? byIPFromComment, String? filter, String? searchFilters, bool? demo, String? sso, }) async { + final response = await getCountWithHttpInfo( textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationAPICountCommentsResponse',) as ModerationAPICountCommentsResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/banned-users/counts' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] sso: + Future getCountsWithHttpInfo({ String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/banned-users/counts'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] sso: + Future getCounts({ String? sso, }) async { + final response = await getCountsWithHttpInfo( sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetBannedUsersCountResponse',) as GetBannedUsersCountResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/logs/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getLogsWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/logs/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getLogs(String commentId, { String? sso, }) async { + final response = await getLogsWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationAPIGetLogsResponse',) as ModerationAPIGetLogsResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-manual-badges' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] sso: + Future getManualBadgesWithHttpInfo({ String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/get-manual-badges'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] sso: + Future getManualBadges({ String? sso, }) async { + final response = await getManualBadgesWithHttpInfo( sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTenantManualBadgesResponse',) as GetTenantManualBadgesResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-manual-badges-for-user' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] badgesUserId: + /// + /// * [String] commentId: + /// + /// * [String] sso: + Future getManualBadgesForUserWithHttpInfo({ String? badgesUserId, String? commentId, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/get-manual-badges-for-user'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (badgesUserId != null) { + queryParams.addAll(_queryParams('', 'badgesUserId', badgesUserId)); + } + if (commentId != null) { + queryParams.addAll(_queryParams('', 'commentId', commentId)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] badgesUserId: + /// + /// * [String] commentId: + /// + /// * [String] sso: + Future getManualBadgesForUser({ String? badgesUserId, String? commentId, String? sso, }) async { + final response = await getManualBadgesForUserWithHttpInfo( badgesUserId: badgesUserId, commentId: commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserManualBadgesResponse',) as GetUserManualBadgesResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/comment/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] includeEmail: + /// + /// * [bool] includeIP: + /// + /// * [String] sso: + Future getModerationCommentWithHttpInfo(String commentId, { bool? includeEmail, bool? includeIP, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/comment/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (includeEmail != null) { + queryParams.addAll(_queryParams('', 'includeEmail', includeEmail)); + } + if (includeIP != null) { + queryParams.addAll(_queryParams('', 'includeIP', includeIP)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] includeEmail: + /// + /// * [bool] includeIP: + /// + /// * [String] sso: + Future getModerationComment(String commentId, { bool? includeEmail, bool? includeIP, String? sso, }) async { + final response = await getModerationCommentWithHttpInfo(commentId, includeEmail: includeEmail, includeIP: includeIP, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationAPICommentResponse',) as ModerationAPICommentResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-comment-text/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getModerationCommentTextWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/get-comment-text/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future getModerationCommentText(String commentId, { String? sso, }) async { + final response = await getModerationCommentTextWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCommentTextResponse',) as GetCommentTextResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/pre-ban-summary/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] includeByUserIdAndEmail: + /// + /// * [bool] includeByIP: + /// + /// * [bool] includeByEmailDomain: + /// + /// * [String] sso: + Future getPreBanSummaryWithHttpInfo(String commentId, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/pre-ban-summary/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (includeByUserIdAndEmail != null) { + queryParams.addAll(_queryParams('', 'includeByUserIdAndEmail', includeByUserIdAndEmail)); + } + if (includeByIP != null) { + queryParams.addAll(_queryParams('', 'includeByIP', includeByIP)); + } + if (includeByEmailDomain != null) { + queryParams.addAll(_queryParams('', 'includeByEmailDomain', includeByEmailDomain)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] includeByUserIdAndEmail: + /// + /// * [bool] includeByIP: + /// + /// * [bool] includeByEmailDomain: + /// + /// * [String] sso: + Future getPreBanSummary(String commentId, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async { + final response = await getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PreBanSummary',) as PreBanSummary; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/comments/summary' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] value: + /// + /// * [String] filters: + /// + /// * [String] searchFilters: + /// + /// * [String] sso: + Future getSearchCommentsSummaryWithHttpInfo({ String? value, String? filters, String? searchFilters, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/search/comments/summary'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (value != null) { + queryParams.addAll(_queryParams('', 'value', value)); + } + if (filters != null) { + queryParams.addAll(_queryParams('', 'filters', filters)); + } + if (searchFilters != null) { + queryParams.addAll(_queryParams('', 'searchFilters', searchFilters)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] value: + /// + /// * [String] filters: + /// + /// * [String] searchFilters: + /// + /// * [String] sso: + Future getSearchCommentsSummary({ String? value, String? filters, String? searchFilters, String? sso, }) async { + final response = await getSearchCommentsSummaryWithHttpInfo( value: value, filters: filters, searchFilters: searchFilters, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationCommentSearchResponse',) as ModerationCommentSearchResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/pages' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] value: + /// + /// * [String] sso: + Future getSearchPagesWithHttpInfo({ String? value, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/search/pages'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (value != null) { + queryParams.addAll(_queryParams('', 'value', value)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] value: + /// + /// * [String] sso: + Future getSearchPages({ String? value, String? sso, }) async { + final response = await getSearchPagesWithHttpInfo( value: value, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationPageSearchResponse',) as ModerationPageSearchResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/sites' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] value: + /// + /// * [String] sso: + Future getSearchSitesWithHttpInfo({ String? value, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/search/sites'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (value != null) { + queryParams.addAll(_queryParams('', 'value', value)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] value: + /// + /// * [String] sso: + Future getSearchSites({ String? value, String? sso, }) async { + final response = await getSearchSitesWithHttpInfo( value: value, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationSiteSearchResponse',) as ModerationSiteSearchResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/suggest' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] textSearch: + /// + /// * [String] sso: + Future getSearchSuggestWithHttpInfo({ String? textSearch, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/search/suggest'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (textSearch != null) { + queryParams.addAll(_queryParams('', 'text-search', textSearch)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] textSearch: + /// + /// * [String] sso: + Future getSearchSuggest({ String? textSearch, String? sso, }) async { + final response = await getSearchSuggestWithHttpInfo( textSearch: textSearch, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationSuggestResponse',) as ModerationSuggestResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/users' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] value: + /// + /// * [String] sso: + Future getSearchUsersWithHttpInfo({ String? value, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/search/users'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (value != null) { + queryParams.addAll(_queryParams('', 'value', value)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] value: + /// + /// * [String] sso: + Future getSearchUsers({ String? value, String? sso, }) async { + final response = await getSearchUsersWithHttpInfo( value: value, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationUserSearchResponse',) as ModerationUserSearchResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-trust-factor' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] userId: + /// + /// * [String] sso: + Future getTrustFactorWithHttpInfo({ String? userId, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/get-trust-factor'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (userId != null) { + queryParams.addAll(_queryParams('', 'userId', userId)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] userId: + /// + /// * [String] sso: + Future getTrustFactor({ String? userId, String? sso, }) async { + final response = await getTrustFactorWithHttpInfo( userId: userId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserTrustFactorResponse',) as GetUserTrustFactorResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/user-ban-preference' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] sso: + Future getUserBanPreferenceWithHttpInfo({ String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/user-ban-preference'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] sso: + Future getUserBanPreference({ String? sso, }) async { + final response = await getUserBanPreferenceWithHttpInfo( sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIModerateGetUserBanPreferencesResponse',) as APIModerateGetUserBanPreferencesResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-user-internal-profile' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId: + /// + /// * [String] sso: + Future getUserInternalProfileWithHttpInfo({ String? commentId, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/get-user-internal-profile'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (commentId != null) { + queryParams.addAll(_queryParams('', 'commentId', commentId)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId: + /// + /// * [String] sso: + Future getUserInternalProfile({ String? commentId, String? sso, }) async { + final response = await getUserInternalProfileWithHttpInfo( commentId: commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserInternalProfileResponse',) as GetUserInternalProfileResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/adjust-comment-votes/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [AdjustCommentVotesParams] adjustCommentVotesParams (required): + /// + /// * [String] sso: + Future postAdjustCommentVotesWithHttpInfo(String commentId, AdjustCommentVotesParams adjustCommentVotesParams, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody = adjustCommentVotesParams; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [AdjustCommentVotesParams] adjustCommentVotesParams (required): + /// + /// * [String] sso: + Future postAdjustCommentVotes(String commentId, AdjustCommentVotesParams adjustCommentVotesParams, { String? sso, }) async { + final response = await postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AdjustVotesResponse',) as AdjustVotesResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/api/export' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] textSearch: + /// + /// * [String] byIPFromComment: + /// + /// * [String] filters: + /// + /// * [String] searchFilters: + /// + /// * [String] sorts: + /// + /// * [String] sso: + Future postApiExportWithHttpInfo({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/api/export'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (textSearch != null) { + queryParams.addAll(_queryParams('', 'text-search', textSearch)); + } + if (byIPFromComment != null) { + queryParams.addAll(_queryParams('', 'byIPFromComment', byIPFromComment)); + } + if (filters != null) { + queryParams.addAll(_queryParams('', 'filters', filters)); + } + if (searchFilters != null) { + queryParams.addAll(_queryParams('', 'searchFilters', searchFilters)); + } + if (sorts != null) { + queryParams.addAll(_queryParams('', 'sorts', sorts)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] textSearch: + /// + /// * [String] byIPFromComment: + /// + /// * [String] filters: + /// + /// * [String] searchFilters: + /// + /// * [String] sorts: + /// + /// * [String] sso: + Future postApiExport({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, String? sso, }) async { + final response = await postApiExportWithHttpInfo( textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationExportResponse',) as ModerationExportResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/ban-user/from-comment/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] banEmail: + /// + /// * [bool] banEmailDomain: + /// + /// * [bool] banIP: + /// + /// * [bool] deleteAllUsersComments: + /// + /// * [String] bannedUntil: + /// + /// * [bool] isShadowBan: + /// + /// * [String] updateId: + /// + /// * [String] banReason: + /// + /// * [String] sso: + Future postBanUserFromCommentWithHttpInfo(String commentId, { bool? banEmail, bool? banEmailDomain, bool? banIP, bool? deleteAllUsersComments, String? bannedUntil, bool? isShadowBan, String? updateId, String? banReason, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (banEmail != null) { + queryParams.addAll(_queryParams('', 'banEmail', banEmail)); + } + if (banEmailDomain != null) { + queryParams.addAll(_queryParams('', 'banEmailDomain', banEmailDomain)); + } + if (banIP != null) { + queryParams.addAll(_queryParams('', 'banIP', banIP)); + } + if (deleteAllUsersComments != null) { + queryParams.addAll(_queryParams('', 'deleteAllUsersComments', deleteAllUsersComments)); + } + if (bannedUntil != null) { + queryParams.addAll(_queryParams('', 'bannedUntil', bannedUntil)); + } + if (isShadowBan != null) { + queryParams.addAll(_queryParams('', 'isShadowBan', isShadowBan)); + } + if (updateId != null) { + queryParams.addAll(_queryParams('', 'updateId', updateId)); + } + if (banReason != null) { + queryParams.addAll(_queryParams('', 'banReason', banReason)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] banEmail: + /// + /// * [bool] banEmailDomain: + /// + /// * [bool] banIP: + /// + /// * [bool] deleteAllUsersComments: + /// + /// * [String] bannedUntil: + /// + /// * [bool] isShadowBan: + /// + /// * [String] updateId: + /// + /// * [String] banReason: + /// + /// * [String] sso: + Future postBanUserFromComment(String commentId, { bool? banEmail, bool? banEmailDomain, bool? banIP, bool? deleteAllUsersComments, String? bannedUntil, bool? isShadowBan, String? updateId, String? banReason, String? sso, }) async { + final response = await postBanUserFromCommentWithHttpInfo(commentId, banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BanUserFromCommentResult',) as BanUserFromCommentResult; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/ban-user/undo' operation and returns the [Response]. + /// Parameters: + /// + /// * [BanUserUndoParams] banUserUndoParams (required): + /// + /// * [String] sso: + Future postBanUserUndoWithHttpInfo(BanUserUndoParams banUserUndoParams, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/ban-user/undo'; + + // ignore: prefer_final_locals + Object? postBody = banUserUndoParams; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [BanUserUndoParams] banUserUndoParams (required): + /// + /// * [String] sso: + Future postBanUserUndo(BanUserUndoParams banUserUndoParams, { String? sso, }) async { + final response = await postBanUserUndoWithHttpInfo(banUserUndoParams, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/bulk-pre-ban-summary' operation and returns the [Response]. + /// Parameters: + /// + /// * [BulkPreBanParams] bulkPreBanParams (required): + /// + /// * [bool] includeByUserIdAndEmail: + /// + /// * [bool] includeByIP: + /// + /// * [bool] includeByEmailDomain: + /// + /// * [String] sso: + Future postBulkPreBanSummaryWithHttpInfo(BulkPreBanParams bulkPreBanParams, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/bulk-pre-ban-summary'; + + // ignore: prefer_final_locals + Object? postBody = bulkPreBanParams; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (includeByUserIdAndEmail != null) { + queryParams.addAll(_queryParams('', 'includeByUserIdAndEmail', includeByUserIdAndEmail)); + } + if (includeByIP != null) { + queryParams.addAll(_queryParams('', 'includeByIP', includeByIP)); + } + if (includeByEmailDomain != null) { + queryParams.addAll(_queryParams('', 'includeByEmailDomain', includeByEmailDomain)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [BulkPreBanParams] bulkPreBanParams (required): + /// + /// * [bool] includeByUserIdAndEmail: + /// + /// * [bool] includeByIP: + /// + /// * [bool] includeByEmailDomain: + /// + /// * [String] sso: + Future postBulkPreBanSummary(BulkPreBanParams bulkPreBanParams, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async { + final response = await postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BulkPreBanSummary',) as BulkPreBanSummary; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/comments-by-ids' operation and returns the [Response]. + /// Parameters: + /// + /// * [CommentsByIdsParams] commentsByIdsParams (required): + /// + /// * [String] sso: + Future postCommentsByIdsWithHttpInfo(CommentsByIdsParams commentsByIdsParams, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/comments-by-ids'; + + // ignore: prefer_final_locals + Object? postBody = commentsByIdsParams; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [CommentsByIdsParams] commentsByIdsParams (required): + /// + /// * [String] sso: + Future postCommentsByIds(CommentsByIdsParams commentsByIdsParams, { String? sso, }) async { + final response = await postCommentsByIdsWithHttpInfo(commentsByIdsParams, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ModerationAPIChildCommentsResponse',) as ModerationAPIChildCommentsResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/flag-comment/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future postFlagCommentWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/flag-comment/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future postFlagComment(String commentId, { String? sso, }) async { + final response = await postFlagCommentWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/remove-comment/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future postRemoveCommentWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/remove-comment/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future postRemoveComment(String commentId, { String? sso, }) async { + final response = await postRemoveCommentWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PostRemoveCommentResponse',) as PostRemoveCommentResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/restore-deleted-comment/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future postRestoreDeletedCommentWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future postRestoreDeletedComment(String commentId, { String? sso, }) async { + final response = await postRestoreDeletedCommentWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/set-comment-approval-status/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] approved: + /// + /// * [String] sso: + Future postSetCommentApprovalStatusWithHttpInfo(String commentId, { bool? approved, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (approved != null) { + queryParams.addAll(_queryParams('', 'approved', approved)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] approved: + /// + /// * [String] sso: + Future postSetCommentApprovalStatus(String commentId, { bool? approved, String? sso, }) async { + final response = await postSetCommentApprovalStatusWithHttpInfo(commentId, approved: approved, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SetCommentApprovedResponse',) as SetCommentApprovedResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/set-comment-review-status/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] reviewed: + /// + /// * [String] sso: + Future postSetCommentReviewStatusWithHttpInfo(String commentId, { bool? reviewed, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/set-comment-review-status/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (reviewed != null) { + queryParams.addAll(_queryParams('', 'reviewed', reviewed)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] reviewed: + /// + /// * [String] sso: + Future postSetCommentReviewStatus(String commentId, { bool? reviewed, String? sso, }) async { + final response = await postSetCommentReviewStatusWithHttpInfo(commentId, reviewed: reviewed, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/set-comment-spam-status/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] spam: + /// + /// * [bool] permNotSpam: + /// + /// * [String] sso: + Future postSetCommentSpamStatusWithHttpInfo(String commentId, { bool? spam, bool? permNotSpam, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (spam != null) { + queryParams.addAll(_queryParams('', 'spam', spam)); + } + if (permNotSpam != null) { + queryParams.addAll(_queryParams('', 'permNotSpam', permNotSpam)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [bool] spam: + /// + /// * [bool] permNotSpam: + /// + /// * [String] sso: + Future postSetCommentSpamStatus(String commentId, { bool? spam, bool? permNotSpam, String? sso, }) async { + final response = await postSetCommentSpamStatusWithHttpInfo(commentId, spam: spam, permNotSpam: permNotSpam, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/set-comment-text/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [SetCommentTextParams] setCommentTextParams (required): + /// + /// * [String] sso: + Future postSetCommentTextWithHttpInfo(String commentId, SetCommentTextParams setCommentTextParams, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/set-comment-text/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody = setCommentTextParams; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [SetCommentTextParams] setCommentTextParams (required): + /// + /// * [String] sso: + Future postSetCommentText(String commentId, SetCommentTextParams setCommentTextParams, { String? sso, }) async { + final response = await postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SetCommentTextResponse',) as SetCommentTextResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/un-flag-comment/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future postUnFlagCommentWithHttpInfo(String commentId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/un-flag-comment/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] sso: + Future postUnFlagComment(String commentId, { String? sso, }) async { + final response = await postUnFlagCommentWithHttpInfo(commentId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/vote/{commentId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] direction: + /// + /// * [String] sso: + Future postVoteWithHttpInfo(String commentId, { String? direction, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/vote/{commentId}' + .replaceAll('{commentId}', commentId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (direction != null) { + queryParams.addAll(_queryParams('', 'direction', direction)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] commentId (required): + /// + /// * [String] direction: + /// + /// * [String] sso: + Future postVote(String commentId, { String? direction, String? sso, }) async { + final response = await postVoteWithHttpInfo(commentId, direction: direction, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VoteResponse',) as VoteResponse; + + } + return null; + } + + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/award-badge' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] badgeId (required): + /// + /// * [String] userId: + /// + /// * [String] commentId: + /// + /// * [String] broadcastId: + /// + /// * [String] sso: + Future putAwardBadgeWithHttpInfo(String badgeId, { String? userId, String? commentId, String? broadcastId, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/award-badge'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'badgeId', badgeId)); + if (userId != null) { + queryParams.addAll(_queryParams('', 'userId', userId)); + } + if (commentId != null) { + queryParams.addAll(_queryParams('', 'commentId', commentId)); + } + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] badgeId (required): + /// + /// * [String] userId: + /// + /// * [String] commentId: + /// + /// * [String] broadcastId: + /// + /// * [String] sso: + Future putAwardBadge(String badgeId, { String? userId, String? commentId, String? broadcastId, String? sso, }) async { + final response = await putAwardBadgeWithHttpInfo(badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AwardUserBadgeResponse',) as AwardUserBadgeResponse; + + } + return null; + } + + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/close-thread' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] urlId (required): + /// + /// * [String] sso: + Future putCloseThreadWithHttpInfo(String urlId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/close-thread'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] urlId (required): + /// + /// * [String] sso: + Future putCloseThread(String urlId, { String? sso, }) async { + final response = await putCloseThreadWithHttpInfo(urlId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/remove-badge' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] badgeId (required): + /// + /// * [String] userId: + /// + /// * [String] commentId: + /// + /// * [String] broadcastId: + /// + /// * [String] sso: + Future putRemoveBadgeWithHttpInfo(String badgeId, { String? userId, String? commentId, String? broadcastId, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/remove-badge'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'badgeId', badgeId)); + if (userId != null) { + queryParams.addAll(_queryParams('', 'userId', userId)); + } + if (commentId != null) { + queryParams.addAll(_queryParams('', 'commentId', commentId)); + } + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] badgeId (required): + /// + /// * [String] userId: + /// + /// * [String] commentId: + /// + /// * [String] broadcastId: + /// + /// * [String] sso: + Future putRemoveBadge(String badgeId, { String? userId, String? commentId, String? broadcastId, String? sso, }) async { + final response = await putRemoveBadgeWithHttpInfo(badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'RemoveUserBadgeResponse',) as RemoveUserBadgeResponse; + + } + return null; + } + + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/reopen-thread' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] urlId (required): + /// + /// * [String] sso: + Future putReopenThreadWithHttpInfo(String urlId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/reopen-thread'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] urlId (required): + /// + /// * [String] sso: + Future putReopenThread(String urlId, { String? sso, }) async { + final response = await putReopenThreadWithHttpInfo(urlId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/set-trust-factor' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] userId: + /// + /// * [String] trustFactor: + /// + /// * [String] sso: + Future setTrustFactorWithHttpInfo({ String? userId, String? trustFactor, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/auth/my-account/moderate-comments/set-trust-factor'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (userId != null) { + queryParams.addAll(_queryParams('', 'userId', userId)); + } + if (trustFactor != null) { + queryParams.addAll(_queryParams('', 'trustFactor', trustFactor)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] userId: + /// + /// * [String] trustFactor: + /// + /// * [String] sso: + Future setTrustFactor({ String? userId, String? trustFactor, String? sso, }) async { + final response = await setTrustFactorWithHttpInfo( userId: userId, trustFactor: trustFactor, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SetUserTrustFactorResponse',) as SetUserTrustFactorResponse; + + } + return null; + } +} diff --git a/client/lib/api/public_api.dart b/client/lib/api/public_api.dart index e026c81..43a384e 100644 --- a/client/lib/api/public_api.dart +++ b/client/lib/api/public_api.dart @@ -66,7 +66,7 @@ class PublicApi { /// * [PublicBlockFromCommentParams] publicBlockFromCommentParams (required): /// /// * [String] sso: - Future blockFromCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String? sso, }) async { + Future blockFromCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String? sso, }) async { final response = await blockFromCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -75,7 +75,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BlockFromCommentPublic200Response',) as BlockFromCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'BlockSuccess',) as BlockSuccess; } return null; @@ -129,7 +129,7 @@ class PublicApi { /// A comma separated list of comment ids. /// /// * [String] sso: - Future checkedCommentsForBlocked(String tenantId, String commentIds, { String? sso, }) async { + Future checkedCommentsForBlocked(String tenantId, String commentIds, { String? sso, }) async { final response = await checkedCommentsForBlockedWithHttpInfo(tenantId, commentIds, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -138,7 +138,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CheckedCommentsForBlocked200Response',) as CheckedCommentsForBlocked200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CheckBlockedCommentsResponse',) as CheckBlockedCommentsResponse; } return null; @@ -206,7 +206,7 @@ class PublicApi { /// * [String] sessionId: /// /// * [String] sso: - Future createCommentPublic(String tenantId, String urlId, String broadcastId, CommentData commentData, { String? sessionId, String? sso, }) async { + Future createCommentPublic(String tenantId, String urlId, String broadcastId, CommentData commentData, { String? sessionId, String? sso, }) async { final response = await createCommentPublicWithHttpInfo(tenantId, urlId, broadcastId, commentData, sessionId: sessionId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -215,7 +215,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateCommentPublic200Response',) as CreateCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SaveCommentsResponseWithPresence',) as SaveCommentsResponseWithPresence; } return null; @@ -273,7 +273,7 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future createFeedPostPublic(String tenantId, CreateFeedPostParams createFeedPostParams, { String? broadcastId, String? sso, }) async { + Future createFeedPostPublic(String tenantId, CreateFeedPostParams createFeedPostParams, { String? broadcastId, String? sso, }) async { final response = await createFeedPostPublicWithHttpInfo(tenantId, createFeedPostParams, broadcastId: broadcastId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -282,7 +282,134 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateFeedPostPublic200Response',) as CreateFeedPostPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateFeedPostResponse',) as CreateFeedPostResponse; + + } + return null; + } + + /// Performs an HTTP 'POST /page-reacts/v1/likes/{tenantId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] title: + Future createV1PageReactWithHttpInfo(String tenantId, String urlId, { String? title, }) async { + // ignore: prefer_const_declarations + final path = r'/page-reacts/v1/likes/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + if (title != null) { + queryParams.addAll(_queryParams('', 'title', title)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] title: + Future createV1PageReact(String tenantId, String urlId, { String? title, }) async { + final response = await createV1PageReactWithHttpInfo(tenantId, urlId, title: title, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateV1PageReact',) as CreateV1PageReact; + + } + return null; + } + + /// Performs an HTTP 'POST /page-reacts/v2/{tenantId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] id (required): + /// + /// * [String] title: + Future createV2PageReactWithHttpInfo(String tenantId, String urlId, String id, { String? title, }) async { + // ignore: prefer_const_declarations + final path = r'/page-reacts/v2/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + queryParams.addAll(_queryParams('', 'id', id)); + if (title != null) { + queryParams.addAll(_queryParams('', 'title', title)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] id (required): + /// + /// * [String] title: + Future createV2PageReact(String tenantId, String urlId, String id, { String? title, }) async { + final response = await createV2PageReactWithHttpInfo(tenantId, urlId, id, title: title, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateV1PageReact',) as CreateV1PageReact; } return null; @@ -346,7 +473,7 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future deleteCommentPublic(String tenantId, String commentId, String broadcastId, { String? editKey, String? sso, }) async { + Future deleteCommentPublic(String tenantId, String commentId, String broadcastId, { String? editKey, String? sso, }) async { final response = await deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey: editKey, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -355,7 +482,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteCommentPublic200Response',) as DeleteCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PublicAPIDeleteCommentResponse',) as PublicAPIDeleteCommentResponse; } return null; @@ -429,7 +556,7 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future deleteCommentVote(String tenantId, String commentId, String voteId, String urlId, String broadcastId, { String? editKey, String? sso, }) async { + Future deleteCommentVote(String tenantId, String commentId, String voteId, String urlId, String broadcastId, { String? editKey, String? sso, }) async { final response = await deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey: editKey, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -438,7 +565,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteCommentVote200Response',) as DeleteCommentVote200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VoteDeleteResponse',) as VoteDeleteResponse; } return null; @@ -497,7 +624,7 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future deleteFeedPostPublic(String tenantId, String postId, { String? broadcastId, String? sso, }) async { + Future deleteFeedPostPublic(String tenantId, String postId, { String? broadcastId, String? sso, }) async { final response = await deleteFeedPostPublicWithHttpInfo(tenantId, postId, broadcastId: broadcastId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -506,7 +633,120 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteFeedPostPublic200Response',) as DeleteFeedPostPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DeleteFeedPostPublicResponse',) as DeleteFeedPostPublicResponse; + + } + return null; + } + + /// Performs an HTTP 'DELETE /page-reacts/v1/likes/{tenantId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + Future deleteV1PageReactWithHttpInfo(String tenantId, String urlId,) async { + // ignore: prefer_const_declarations + final path = r'/page-reacts/v1/likes/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'DELETE', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + Future deleteV1PageReact(String tenantId, String urlId,) async { + final response = await deleteV1PageReactWithHttpInfo(tenantId, urlId,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateV1PageReact',) as CreateV1PageReact; + + } + return null; + } + + /// Performs an HTTP 'DELETE /page-reacts/v2/{tenantId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] id (required): + Future deleteV2PageReactWithHttpInfo(String tenantId, String urlId, String id,) async { + // ignore: prefer_const_declarations + final path = r'/page-reacts/v2/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + queryParams.addAll(_queryParams('', 'id', id)); + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'DELETE', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] id (required): + Future deleteV2PageReact(String tenantId, String urlId, String id,) async { + final response = await deleteV2PageReactWithHttpInfo(tenantId, urlId, id,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateV1PageReact',) as CreateV1PageReact; } return null; @@ -563,7 +803,7 @@ class PublicApi { /// * [bool] isFlagged (required): /// /// * [String] sso: - Future flagCommentPublic(String tenantId, String commentId, bool isFlagged, { String? sso, }) async { + Future flagCommentPublic(String tenantId, String commentId, bool isFlagged, { String? sso, }) async { final response = await flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -572,7 +812,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlagCommentPublic200Response',) as FlagCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -631,7 +871,7 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future getCommentText(String tenantId, String commentId, { String? editKey, String? sso, }) async { + Future getCommentText(String tenantId, String commentId, { String? editKey, String? sso, }) async { final response = await getCommentTextWithHttpInfo(tenantId, commentId, editKey: editKey, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -640,7 +880,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCommentText200Response',) as GetCommentText200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PublicAPIGetCommentTextResponse',) as PublicAPIGetCommentTextResponse; } return null; @@ -697,7 +937,7 @@ class PublicApi { /// * [int] dir (required): /// /// * [String] sso: - Future getCommentVoteUserNames(String tenantId, String commentId, int dir, { String? sso, }) async { + Future getCommentVoteUserNames(String tenantId, String commentId, int dir, { String? sso, }) async { final response = await getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -706,77 +946,31 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCommentVoteUserNames200Response',) as GetCommentVoteUserNames200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCommentVoteUserNamesSuccessResponse',) as GetCommentVoteUserNamesSuccessResponse; } return null; } - /// req tenantId urlId - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /comments-for-user' operation and returns the [Response]. /// Parameters: /// - /// * [String] tenantId (required): - /// - /// * [String] urlId (required): - /// - /// * [int] page: + /// * [String] userId: /// /// * [SortDirections] direction: /// - /// * [String] sso: - /// - /// * [int] skip: - /// - /// * [int] skipChildren: - /// - /// * [int] limit: - /// - /// * [int] limitChildren: - /// - /// * [bool] countChildren: - /// - /// * [String] fetchPageForCommentId: - /// - /// * [bool] includeConfig: + /// * [String] repliesToUserId: /// - /// * [bool] countAll: + /// * [double] page: /// /// * [bool] includei10n: /// /// * [String] locale: /// - /// * [String] modules: - /// /// * [bool] isCrawler: - /// - /// * [bool] includeNotificationCount: - /// - /// * [bool] asTree: - /// - /// * [int] maxTreeDepth: - /// - /// * [bool] useFullTranslationIds: - /// - /// * [String] parentId: - /// - /// * [String] searchText: - /// - /// * [List] hashTags: - /// - /// * [String] userId: - /// - /// * [String] customConfigStr: - /// - /// * [String] afterCommentId: - /// - /// * [String] beforeCommentId: - Future getCommentsPublicWithHttpInfo(String tenantId, String urlId, { int? page, SortDirections? direction, String? sso, int? skip, int? skipChildren, int? limit, int? limitChildren, bool? countChildren, String? fetchPageForCommentId, bool? includeConfig, bool? countAll, bool? includei10n, String? locale, String? modules, bool? isCrawler, bool? includeNotificationCount, bool? asTree, int? maxTreeDepth, bool? useFullTranslationIds, String? parentId, String? searchText, List? hashTags, String? userId, String? customConfigStr, String? afterCommentId, String? beforeCommentId, }) async { + Future getCommentsForUserWithHttpInfo({ String? userId, SortDirections? direction, String? repliesToUserId, double? page, bool? includei10n, String? locale, bool? isCrawler, }) async { // ignore: prefer_const_declarations - final path = r'/comments/{tenantId}' - .replaceAll('{tenantId}', tenantId); + final path = r'/comments-for-user'; // ignore: prefer_final_locals Object? postBody; @@ -785,7 +979,146 @@ class PublicApi { final headerParams = {}; final formParams = {}; - queryParams.addAll(_queryParams('', 'urlId', urlId)); + if (userId != null) { + queryParams.addAll(_queryParams('', 'userId', userId)); + } + if (direction != null) { + queryParams.addAll(_queryParams('', 'direction', direction)); + } + if (repliesToUserId != null) { + queryParams.addAll(_queryParams('', 'repliesToUserId', repliesToUserId)); + } + if (page != null) { + queryParams.addAll(_queryParams('', 'page', page)); + } + if (includei10n != null) { + queryParams.addAll(_queryParams('', 'includei10n', includei10n)); + } + if (locale != null) { + queryParams.addAll(_queryParams('', 'locale', locale)); + } + if (isCrawler != null) { + queryParams.addAll(_queryParams('', 'isCrawler', isCrawler)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] userId: + /// + /// * [SortDirections] direction: + /// + /// * [String] repliesToUserId: + /// + /// * [double] page: + /// + /// * [bool] includei10n: + /// + /// * [String] locale: + /// + /// * [bool] isCrawler: + Future getCommentsForUser({ String? userId, SortDirections? direction, String? repliesToUserId, double? page, bool? includei10n, String? locale, bool? isCrawler, }) async { + final response = await getCommentsForUserWithHttpInfo( userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCommentsForUserResponse',) as GetCommentsForUserResponse; + + } + return null; + } + + /// req tenantId urlId + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [int] page: + /// + /// * [SortDirections] direction: + /// + /// * [String] sso: + /// + /// * [int] skip: + /// + /// * [int] skipChildren: + /// + /// * [int] limit: + /// + /// * [int] limitChildren: + /// + /// * [bool] countChildren: + /// + /// * [String] fetchPageForCommentId: + /// + /// * [bool] includeConfig: + /// + /// * [bool] countAll: + /// + /// * [bool] includei10n: + /// + /// * [String] locale: + /// + /// * [String] modules: + /// + /// * [bool] isCrawler: + /// + /// * [bool] includeNotificationCount: + /// + /// * [bool] asTree: + /// + /// * [int] maxTreeDepth: + /// + /// * [bool] useFullTranslationIds: + /// + /// * [String] parentId: + /// + /// * [String] searchText: + /// + /// * [List] hashTags: + /// + /// * [String] userId: + /// + /// * [String] customConfigStr: + /// + /// * [String] afterCommentId: + /// + /// * [String] beforeCommentId: + Future getCommentsPublicWithHttpInfo(String tenantId, String urlId, { int? page, SortDirections? direction, String? sso, int? skip, int? skipChildren, int? limit, int? limitChildren, bool? countChildren, String? fetchPageForCommentId, bool? includeConfig, bool? countAll, bool? includei10n, String? locale, String? modules, bool? isCrawler, bool? includeNotificationCount, bool? asTree, int? maxTreeDepth, bool? useFullTranslationIds, String? parentId, String? searchText, List? hashTags, String? userId, String? customConfigStr, String? afterCommentId, String? beforeCommentId, }) async { + // ignore: prefer_const_declarations + final path = r'/comments/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); if (page != null) { queryParams.addAll(_queryParams('', 'page', page)); } @@ -938,7 +1271,7 @@ class PublicApi { /// * [String] afterCommentId: /// /// * [String] beforeCommentId: - Future getCommentsPublic(String tenantId, String urlId, { int? page, SortDirections? direction, String? sso, int? skip, int? skipChildren, int? limit, int? limitChildren, bool? countChildren, String? fetchPageForCommentId, bool? includeConfig, bool? countAll, bool? includei10n, String? locale, String? modules, bool? isCrawler, bool? includeNotificationCount, bool? asTree, int? maxTreeDepth, bool? useFullTranslationIds, String? parentId, String? searchText, List? hashTags, String? userId, String? customConfigStr, String? afterCommentId, String? beforeCommentId, }) async { + Future getCommentsPublic(String tenantId, String urlId, { int? page, SortDirections? direction, String? sso, int? skip, int? skipChildren, int? limit, int? limitChildren, bool? countChildren, String? fetchPageForCommentId, bool? includeConfig, bool? countAll, bool? includei10n, String? locale, String? modules, bool? isCrawler, bool? includeNotificationCount, bool? asTree, int? maxTreeDepth, bool? useFullTranslationIds, String? parentId, String? searchText, List? hashTags, String? userId, String? customConfigStr, String? afterCommentId, String? beforeCommentId, }) async { final response = await getCommentsPublicWithHttpInfo(tenantId, urlId, page: page, direction: direction, sso: sso, skip: skip, skipChildren: skipChildren, limit: limit, limitChildren: limitChildren, countChildren: countChildren, fetchPageForCommentId: fetchPageForCommentId, includeConfig: includeConfig, countAll: countAll, includei10n: includei10n, locale: locale, modules: modules, isCrawler: isCrawler, includeNotificationCount: includeNotificationCount, asTree: asTree, maxTreeDepth: maxTreeDepth, useFullTranslationIds: useFullTranslationIds, parentId: parentId, searchText: searchText, hashTags: hashTags, userId: userId, customConfigStr: customConfigStr, afterCommentId: afterCommentId, beforeCommentId: beforeCommentId, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -947,7 +1280,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCommentsPublic200Response',) as GetCommentsPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetCommentsResponseWithPresencePublicComment',) as GetCommentsResponseWithPresencePublicComment; } return null; @@ -967,8 +1300,8 @@ class PublicApi { /// /// * [int] startTime (required): /// - /// * [int] endTime (required): - Future getEventLogWithHttpInfo(String tenantId, String urlId, String userIdWS, int startTime, int endTime,) async { + /// * [int] endTime: + Future getEventLogWithHttpInfo(String tenantId, String urlId, String userIdWS, int startTime, { int? endTime, }) async { // ignore: prefer_const_declarations final path = r'/event-log/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -983,7 +1316,9 @@ class PublicApi { queryParams.addAll(_queryParams('', 'urlId', urlId)); queryParams.addAll(_queryParams('', 'userIdWS', userIdWS)); queryParams.addAll(_queryParams('', 'startTime', startTime)); + if (endTime != null) { queryParams.addAll(_queryParams('', 'endTime', endTime)); + } const contentTypes = []; @@ -1011,9 +1346,9 @@ class PublicApi { /// /// * [int] startTime (required): /// - /// * [int] endTime (required): - Future getEventLog(String tenantId, String urlId, String userIdWS, int startTime, int endTime,) async { - final response = await getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime,); + /// * [int] endTime: + Future getEventLog(String tenantId, String urlId, String userIdWS, int startTime, { int? endTime, }) async { + final response = await getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime: endTime, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1021,7 +1356,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEventLog200Response',) as GetEventLog200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEventLogResponse',) as GetEventLogResponse; } return null; @@ -1108,7 +1443,7 @@ class PublicApi { /// * [bool] isCrawler: /// /// * [bool] includeUserInfo: - Future getFeedPostsPublic(String tenantId, { String? afterId, int? limit, List? tags, String? sso, bool? isCrawler, bool? includeUserInfo, }) async { + Future getFeedPostsPublic(String tenantId, { String? afterId, int? limit, List? tags, String? sso, bool? isCrawler, bool? includeUserInfo, }) async { final response = await getFeedPostsPublicWithHttpInfo(tenantId, afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1117,7 +1452,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetFeedPostsPublic200Response',) as GetFeedPostsPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PublicFeedPostsResponse',) as PublicFeedPostsResponse; } return null; @@ -1169,7 +1504,7 @@ class PublicApi { /// * [List] postIds (required): /// /// * [String] sso: - Future getFeedPostsStats(String tenantId, List postIds, { String? sso, }) async { + Future getFeedPostsStats(String tenantId, List postIds, { String? sso, }) async { final response = await getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1178,30 +1513,21 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetFeedPostsStats200Response',) as GetFeedPostsStats200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FeedPostsStatsResponse',) as FeedPostsStatsResponse; } return null; } - /// req tenantId urlId userIdWS - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /gifs/get-large/{tenantId}' operation and returns the [Response]. /// Parameters: /// /// * [String] tenantId (required): /// - /// * [String] urlId (required): - /// - /// * [String] userIdWS (required): - /// - /// * [int] startTime (required): - /// - /// * [int] endTime (required): - Future getGlobalEventLogWithHttpInfo(String tenantId, String urlId, String userIdWS, int startTime, int endTime,) async { + /// * [String] largeInternalURLSanitized (required): + Future getGifLargeWithHttpInfo(String tenantId, String largeInternalURLSanitized,) async { // ignore: prefer_const_declarations - final path = r'/event-log/global/{tenantId}' + final path = r'/gifs/get-large/{tenantId}' .replaceAll('{tenantId}', tenantId); // ignore: prefer_final_locals @@ -1211,10 +1537,7 @@ class PublicApi { final headerParams = {}; final formParams = {}; - queryParams.addAll(_queryParams('', 'urlId', urlId)); - queryParams.addAll(_queryParams('', 'userIdWS', userIdWS)); - queryParams.addAll(_queryParams('', 'startTime', startTime)); - queryParams.addAll(_queryParams('', 'endTime', endTime)); + queryParams.addAll(_queryParams('', 'largeInternalURLSanitized', largeInternalURLSanitized)); const contentTypes = []; @@ -1230,21 +1553,13 @@ class PublicApi { ); } - /// req tenantId urlId userIdWS - /// /// Parameters: /// /// * [String] tenantId (required): /// - /// * [String] urlId (required): - /// - /// * [String] userIdWS (required): - /// - /// * [int] startTime (required): - /// - /// * [int] endTime (required): - Future getGlobalEventLog(String tenantId, String urlId, String userIdWS, int startTime, int endTime,) async { - final response = await getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime,); + /// * [String] largeInternalURLSanitized (required): + Future getGifLarge(String tenantId, String largeInternalURLSanitized,) async { + final response = await getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1252,21 +1567,28 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEventLog200Response',) as GetEventLog200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GifGetLargeResponse',) as GifGetLargeResponse; } return null; } - /// Performs an HTTP 'GET /user-notifications/get-count' operation and returns the [Response]. + /// Performs an HTTP 'GET /gifs/search/{tenantId}' operation and returns the [Response]. /// Parameters: /// /// * [String] tenantId (required): /// - /// * [String] sso: - Future getUserNotificationCountWithHttpInfo(String tenantId, { String? sso, }) async { + /// * [String] search (required): + /// + /// * [String] locale: + /// + /// * [String] rating: + /// + /// * [double] page: + Future getGifsSearchWithHttpInfo(String tenantId, String search, { String? locale, String? rating, double? page, }) async { // ignore: prefer_const_declarations - final path = r'/user-notifications/get-count'; + final path = r'/gifs/search/{tenantId}' + .replaceAll('{tenantId}', tenantId); // ignore: prefer_final_locals Object? postBody; @@ -1275,9 +1597,15 @@ class PublicApi { final headerParams = {}; final formParams = {}; - queryParams.addAll(_queryParams('', 'tenantId', tenantId)); - if (sso != null) { - queryParams.addAll(_queryParams('', 'sso', sso)); + queryParams.addAll(_queryParams('', 'search', search)); + if (locale != null) { + queryParams.addAll(_queryParams('', 'locale', locale)); + } + if (rating != null) { + queryParams.addAll(_queryParams('', 'rating', rating)); + } + if (page != null) { + queryParams.addAll(_queryParams('', 'page', page)); } const contentTypes = []; @@ -1298,9 +1626,15 @@ class PublicApi { /// /// * [String] tenantId (required): /// - /// * [String] sso: - Future getUserNotificationCount(String tenantId, { String? sso, }) async { - final response = await getUserNotificationCountWithHttpInfo(tenantId, sso: sso, ); + /// * [String] search (required): + /// + /// * [String] locale: + /// + /// * [String] rating: + /// + /// * [double] page: + Future getGifsSearch(String tenantId, String search, { String? locale, String? rating, double? page, }) async { + final response = await getGifsSearchWithHttpInfo(tenantId, search, locale: locale, rating: rating, page: page, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1308,37 +1642,26 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserNotificationCount200Response',) as GetUserNotificationCount200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetGifsSearchResponse',) as GetGifsSearchResponse; } return null; } - /// Performs an HTTP 'GET /user-notifications' operation and returns the [Response]. + /// Performs an HTTP 'GET /gifs/trending/{tenantId}' operation and returns the [Response]. /// Parameters: /// /// * [String] tenantId (required): /// - /// * [int] pageSize: - /// - /// * [String] afterId: - /// - /// * [bool] includeContext: - /// - /// * [int] afterCreatedAt: - /// - /// * [bool] unreadOnly: - /// - /// * [bool] dmOnly: - /// - /// * [bool] noDm: + /// * [String] locale: /// - /// * [bool] includeTranslations: + /// * [String] rating: /// - /// * [String] sso: - Future getUserNotificationsWithHttpInfo(String tenantId, { int? pageSize, String? afterId, bool? includeContext, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, bool? includeTranslations, String? sso, }) async { + /// * [double] page: + Future getGifsTrendingWithHttpInfo(String tenantId, { String? locale, String? rating, double? page, }) async { // ignore: prefer_const_declarations - final path = r'/user-notifications'; + final path = r'/gifs/trending/{tenantId}' + .replaceAll('{tenantId}', tenantId); // ignore: prefer_final_locals Object? postBody; @@ -1347,33 +1670,14 @@ class PublicApi { final headerParams = {}; final formParams = {}; - queryParams.addAll(_queryParams('', 'tenantId', tenantId)); - if (pageSize != null) { - queryParams.addAll(_queryParams('', 'pageSize', pageSize)); - } - if (afterId != null) { - queryParams.addAll(_queryParams('', 'afterId', afterId)); - } - if (includeContext != null) { - queryParams.addAll(_queryParams('', 'includeContext', includeContext)); - } - if (afterCreatedAt != null) { - queryParams.addAll(_queryParams('', 'afterCreatedAt', afterCreatedAt)); - } - if (unreadOnly != null) { - queryParams.addAll(_queryParams('', 'unreadOnly', unreadOnly)); - } - if (dmOnly != null) { - queryParams.addAll(_queryParams('', 'dmOnly', dmOnly)); - } - if (noDm != null) { - queryParams.addAll(_queryParams('', 'noDm', noDm)); + if (locale != null) { + queryParams.addAll(_queryParams('', 'locale', locale)); } - if (includeTranslations != null) { - queryParams.addAll(_queryParams('', 'includeTranslations', includeTranslations)); + if (rating != null) { + queryParams.addAll(_queryParams('', 'rating', rating)); } - if (sso != null) { - queryParams.addAll(_queryParams('', 'sso', sso)); + if (page != null) { + queryParams.addAll(_queryParams('', 'page', page)); } const contentTypes = []; @@ -1394,25 +1698,13 @@ class PublicApi { /// /// * [String] tenantId (required): /// - /// * [int] pageSize: - /// - /// * [String] afterId: - /// - /// * [bool] includeContext: - /// - /// * [int] afterCreatedAt: - /// - /// * [bool] unreadOnly: - /// - /// * [bool] dmOnly: - /// - /// * [bool] noDm: + /// * [String] locale: /// - /// * [bool] includeTranslations: + /// * [String] rating: /// - /// * [String] sso: - Future getUserNotifications(String tenantId, { int? pageSize, String? afterId, bool? includeContext, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, bool? includeTranslations, String? sso, }) async { - final response = await getUserNotificationsWithHttpInfo(tenantId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, sso: sso, ); + /// * [double] page: + Future getGifsTrending(String tenantId, { String? locale, String? rating, double? page, }) async { + final response = await getGifsTrendingWithHttpInfo(tenantId, locale: locale, rating: rating, page: page, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1420,23 +1712,608 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserNotifications200Response',) as GetUserNotifications200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetGifsTrendingResponse',) as GetGifsTrendingResponse; } return null; } - /// Performs an HTTP 'GET /user-presence-status' operation and returns the [Response]. + /// req tenantId urlId userIdWS + /// + /// Note: This method returns the HTTP [Response]. + /// /// Parameters: /// /// * [String] tenantId (required): /// - /// * [String] urlIdWS (required): + /// * [String] urlId (required): /// - /// * [String] userIds (required): - Future getUserPresenceStatusesWithHttpInfo(String tenantId, String urlIdWS, String userIds,) async { - // ignore: prefer_const_declarations - final path = r'/user-presence-status'; + /// * [String] userIdWS (required): + /// + /// * [int] startTime (required): + /// + /// * [int] endTime: + Future getGlobalEventLogWithHttpInfo(String tenantId, String urlId, String userIdWS, int startTime, { int? endTime, }) async { + // ignore: prefer_const_declarations + final path = r'/event-log/global/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + queryParams.addAll(_queryParams('', 'userIdWS', userIdWS)); + queryParams.addAll(_queryParams('', 'startTime', startTime)); + if (endTime != null) { + queryParams.addAll(_queryParams('', 'endTime', endTime)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// req tenantId urlId userIdWS + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] userIdWS (required): + /// + /// * [int] startTime (required): + /// + /// * [int] endTime: + Future getGlobalEventLog(String tenantId, String urlId, String userIdWS, int startTime, { int? endTime, }) async { + final response = await getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime: endTime, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetEventLogResponse',) as GetEventLogResponse; + + } + return null; + } + + /// Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// Page URL identifier (cleaned server-side). + /// + /// * [String] afterName: + /// Cursor: pass nextAfterName from the previous response. + /// + /// * [String] afterUserId: + /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + Future getOfflineUsersWithHttpInfo(String tenantId, String urlId, { String? afterName, String? afterUserId, }) async { + // ignore: prefer_const_declarations + final path = r'/pages/{tenantId}/users/offline' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + if (afterName != null) { + queryParams.addAll(_queryParams('', 'afterName', afterName)); + } + if (afterUserId != null) { + queryParams.addAll(_queryParams('', 'afterUserId', afterUserId)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// Page URL identifier (cleaned server-side). + /// + /// * [String] afterName: + /// Cursor: pass nextAfterName from the previous response. + /// + /// * [String] afterUserId: + /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + Future getOfflineUsers(String tenantId, String urlId, { String? afterName, String? afterUserId, }) async { + final response = await getOfflineUsersWithHttpInfo(tenantId, urlId, afterName: afterName, afterUserId: afterUserId, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PageUsersOfflineResponse',) as PageUsersOfflineResponse; + + } + return null; + } + + /// Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// Page URL identifier (cleaned server-side). + /// + /// * [String] afterName: + /// Cursor: pass nextAfterName from the previous response. + /// + /// * [String] afterUserId: + /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + Future getOnlineUsersWithHttpInfo(String tenantId, String urlId, { String? afterName, String? afterUserId, }) async { + // ignore: prefer_const_declarations + final path = r'/pages/{tenantId}/users/online' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + if (afterName != null) { + queryParams.addAll(_queryParams('', 'afterName', afterName)); + } + if (afterUserId != null) { + queryParams.addAll(_queryParams('', 'afterUserId', afterUserId)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// Page URL identifier (cleaned server-side). + /// + /// * [String] afterName: + /// Cursor: pass nextAfterName from the previous response. + /// + /// * [String] afterUserId: + /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + Future getOnlineUsers(String tenantId, String urlId, { String? afterName, String? afterUserId, }) async { + final response = await getOnlineUsersWithHttpInfo(tenantId, urlId, afterName: afterName, afterUserId: afterUserId, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PageUsersOnlineResponse',) as PageUsersOnlineResponse; + + } + return null; + } + + /// List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] cursor: + /// Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + /// + /// * [int] limit: + /// 1..200, default 50 + /// + /// * [String] q: + /// Optional case-insensitive title prefix filter. + /// + /// * [PagesSortBy] sortBy: + /// Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + /// + /// * [bool] hasComments: + /// If true, only return pages with at least one comment. + Future getPagesPublicWithHttpInfo(String tenantId, { String? cursor, int? limit, String? q, PagesSortBy? sortBy, bool? hasComments, }) async { + // ignore: prefer_const_declarations + final path = r'/pages/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (cursor != null) { + queryParams.addAll(_queryParams('', 'cursor', cursor)); + } + if (limit != null) { + queryParams.addAll(_queryParams('', 'limit', limit)); + } + if (q != null) { + queryParams.addAll(_queryParams('', 'q', q)); + } + if (sortBy != null) { + queryParams.addAll(_queryParams('', 'sortBy', sortBy)); + } + if (hasComments != null) { + queryParams.addAll(_queryParams('', 'hasComments', hasComments)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] cursor: + /// Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + /// + /// * [int] limit: + /// 1..200, default 50 + /// + /// * [String] q: + /// Optional case-insensitive title prefix filter. + /// + /// * [PagesSortBy] sortBy: + /// Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + /// + /// * [bool] hasComments: + /// If true, only return pages with at least one comment. + Future getPagesPublic(String tenantId, { String? cursor, int? limit, String? q, PagesSortBy? sortBy, bool? hasComments, }) async { + final response = await getPagesPublicWithHttpInfo(tenantId, cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetPublicPagesResponse',) as GetPublicPagesResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /translations/{namespace}/{component}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] namespace (required): + /// + /// * [String] component (required): + /// + /// * [String] locale: + /// + /// * [bool] useFullTranslationIds: + Future getTranslationsWithHttpInfo(String namespace, String component, { String? locale, bool? useFullTranslationIds, }) async { + // ignore: prefer_const_declarations + final path = r'/translations/{namespace}/{component}' + .replaceAll('{namespace}', namespace) + .replaceAll('{component}', component); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (locale != null) { + queryParams.addAll(_queryParams('', 'locale', locale)); + } + if (useFullTranslationIds != null) { + queryParams.addAll(_queryParams('', 'useFullTranslationIds', useFullTranslationIds)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] namespace (required): + /// + /// * [String] component (required): + /// + /// * [String] locale: + /// + /// * [bool] useFullTranslationIds: + Future getTranslations(String namespace, String component, { String? locale, bool? useFullTranslationIds, }) async { + final response = await getTranslationsWithHttpInfo(namespace, component, locale: locale, useFullTranslationIds: useFullTranslationIds, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetTranslationsResponse',) as GetTranslationsResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /user-notifications/get-count' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] sso: + Future getUserNotificationCountWithHttpInfo(String tenantId, { String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/user-notifications/get-count'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] sso: + Future getUserNotificationCount(String tenantId, { String? sso, }) async { + final response = await getUserNotificationCountWithHttpInfo(tenantId, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserNotificationCountResponse',) as GetUserNotificationCountResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /user-notifications' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId: + /// Used to determine whether the current page is subscribed. + /// + /// * [int] pageSize: + /// + /// * [String] afterId: + /// + /// * [bool] includeContext: + /// + /// * [int] afterCreatedAt: + /// + /// * [bool] unreadOnly: + /// + /// * [bool] dmOnly: + /// + /// * [bool] noDm: + /// + /// * [bool] includeTranslations: + /// + /// * [bool] includeTenantNotifications: + /// + /// * [String] sso: + Future getUserNotificationsWithHttpInfo(String tenantId, { String? urlId, int? pageSize, String? afterId, bool? includeContext, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, bool? includeTranslations, bool? includeTenantNotifications, String? sso, }) async { + // ignore: prefer_const_declarations + final path = r'/user-notifications'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (urlId != null) { + queryParams.addAll(_queryParams('', 'urlId', urlId)); + } + if (pageSize != null) { + queryParams.addAll(_queryParams('', 'pageSize', pageSize)); + } + if (afterId != null) { + queryParams.addAll(_queryParams('', 'afterId', afterId)); + } + if (includeContext != null) { + queryParams.addAll(_queryParams('', 'includeContext', includeContext)); + } + if (afterCreatedAt != null) { + queryParams.addAll(_queryParams('', 'afterCreatedAt', afterCreatedAt)); + } + if (unreadOnly != null) { + queryParams.addAll(_queryParams('', 'unreadOnly', unreadOnly)); + } + if (dmOnly != null) { + queryParams.addAll(_queryParams('', 'dmOnly', dmOnly)); + } + if (noDm != null) { + queryParams.addAll(_queryParams('', 'noDm', noDm)); + } + if (includeTranslations != null) { + queryParams.addAll(_queryParams('', 'includeTranslations', includeTranslations)); + } + if (includeTenantNotifications != null) { + queryParams.addAll(_queryParams('', 'includeTenantNotifications', includeTenantNotifications)); + } + if (sso != null) { + queryParams.addAll(_queryParams('', 'sso', sso)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId: + /// Used to determine whether the current page is subscribed. + /// + /// * [int] pageSize: + /// + /// * [String] afterId: + /// + /// * [bool] includeContext: + /// + /// * [int] afterCreatedAt: + /// + /// * [bool] unreadOnly: + /// + /// * [bool] dmOnly: + /// + /// * [bool] noDm: + /// + /// * [bool] includeTranslations: + /// + /// * [bool] includeTenantNotifications: + /// + /// * [String] sso: + Future getUserNotifications(String tenantId, { String? urlId, int? pageSize, String? afterId, bool? includeContext, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, bool? includeTranslations, bool? includeTenantNotifications, String? sso, }) async { + final response = await getUserNotificationsWithHttpInfo(tenantId, urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso, ); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetMyNotificationsResponse',) as GetMyNotificationsResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /user-presence-status' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlIdWS (required): + /// + /// * [String] userIds (required): + Future getUserPresenceStatusesWithHttpInfo(String tenantId, String urlIdWS, String userIds,) async { + // ignore: prefer_const_declarations + final path = r'/user-presence-status'; // ignore: prefer_final_locals Object? postBody; @@ -1470,7 +2347,7 @@ class PublicApi { /// * [String] urlIdWS (required): /// /// * [String] userIds (required): - Future getUserPresenceStatuses(String tenantId, String urlIdWS, String userIds,) async { + Future getUserPresenceStatuses(String tenantId, String urlIdWS, String userIds,) async { final response = await getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1479,7 +2356,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserPresenceStatuses200Response',) as GetUserPresenceStatuses200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserPresenceStatusesResponse',) as GetUserPresenceStatusesResponse; } return null; @@ -1533,7 +2410,7 @@ class PublicApi { /// * [List] postIds: /// /// * [String] sso: - Future getUserReactsPublic(String tenantId, { List? postIds, String? sso, }) async { + Future getUserReactsPublic(String tenantId, { List? postIds, String? sso, }) async { final response = await getUserReactsPublicWithHttpInfo(tenantId, postIds: postIds, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1542,7 +2419,235 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetUserReactsPublic200Response',) as GetUserReactsPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserReactsResponse',) as UserReactsResponse; + + } + return null; + } + + /// Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] ids (required): + /// Comma-delimited userIds. + Future getUsersInfoWithHttpInfo(String tenantId, String ids,) async { + // ignore: prefer_const_declarations + final path = r'/pages/{tenantId}/users/info' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'ids', ids)); + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). + /// + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] ids (required): + /// Comma-delimited userIds. + Future getUsersInfo(String tenantId, String ids,) async { + final response = await getUsersInfoWithHttpInfo(tenantId, ids,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PageUsersInfoResponse',) as PageUsersInfoResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /page-reacts/v1/likes/{tenantId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + Future getV1PageLikesWithHttpInfo(String tenantId, String urlId,) async { + // ignore: prefer_const_declarations + final path = r'/page-reacts/v1/likes/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + Future getV1PageLikes(String tenantId, String urlId,) async { + final response = await getV1PageLikesWithHttpInfo(tenantId, urlId,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetV1PageLikes',) as GetV1PageLikes; + + } + return null; + } + + /// Performs an HTTP 'GET /page-reacts/v2/{tenantId}/list' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] id (required): + Future getV2PageReactUsersWithHttpInfo(String tenantId, String urlId, String id,) async { + // ignore: prefer_const_declarations + final path = r'/page-reacts/v2/{tenantId}/list' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + queryParams.addAll(_queryParams('', 'id', id)); + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + /// + /// * [String] id (required): + Future getV2PageReactUsers(String tenantId, String urlId, String id,) async { + final response = await getV2PageReactUsersWithHttpInfo(tenantId, urlId, id,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetV2PageReactUsersResponse',) as GetV2PageReactUsersResponse; + + } + return null; + } + + /// Performs an HTTP 'GET /page-reacts/v2/{tenantId}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + Future getV2PageReactsWithHttpInfo(String tenantId, String urlId,) async { + // ignore: prefer_const_declarations + final path = r'/page-reacts/v2/{tenantId}' + .replaceAll('{tenantId}', tenantId); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + queryParams.addAll(_queryParams('', 'urlId', urlId)); + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] tenantId (required): + /// + /// * [String] urlId (required): + Future getV2PageReacts(String tenantId, String urlId,) async { + final response = await getV2PageReactsWithHttpInfo(tenantId, urlId,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetV2PageReacts',) as GetV2PageReacts; } return null; @@ -1599,7 +2704,7 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future lockComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { + Future lockComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { final response = await lockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1608,7 +2713,48 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LockComment200Response',) as LockComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; + + } + return null; + } + + /// Performs an HTTP 'PUT /auth/logout' operation and returns the [Response]. + Future logoutPublicWithHttpInfo() async { + // ignore: prefer_const_declarations + final path = r'/auth/logout'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + Future logoutPublic() async { + final response = await logoutPublicWithHttpInfo(); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -1665,7 +2811,7 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future pinComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { + Future pinComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { final response = await pinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1674,7 +2820,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PinComment200Response',) as PinComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ChangeCommentPinStatusResponse',) as ChangeCommentPinStatusResponse; } return null; @@ -1744,7 +2890,7 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future reactFeedPostPublic(String tenantId, String postId, ReactBodyParams reactBodyParams, { bool? isUndo, String? broadcastId, String? sso, }) async { + Future reactFeedPostPublic(String tenantId, String postId, ReactBodyParams reactBodyParams, { bool? isUndo, String? broadcastId, String? sso, }) async { final response = await reactFeedPostPublicWithHttpInfo(tenantId, postId, reactBodyParams, isUndo: isUndo, broadcastId: broadcastId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1753,7 +2899,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ReactFeedPostPublic200Response',) as ReactFeedPostPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ReactFeedPostResponse',) as ReactFeedPostResponse; } return null; @@ -1800,7 +2946,7 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] sso: - Future resetUserNotificationCount(String tenantId, { String? sso, }) async { + Future resetUserNotificationCount(String tenantId, { String? sso, }) async { final response = await resetUserNotificationCountWithHttpInfo(tenantId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1809,7 +2955,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ResetUserNotifications200Response',) as ResetUserNotifications200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ResetUserNotificationsResponse',) as ResetUserNotificationsResponse; } return null; @@ -1891,7 +3037,7 @@ class PublicApi { /// * [bool] noDm: /// /// * [String] sso: - Future resetUserNotifications(String tenantId, { String? afterId, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, String? sso, }) async { + Future resetUserNotifications(String tenantId, { String? afterId, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, String? sso, }) async { final response = await resetUserNotificationsWithHttpInfo(tenantId, afterId: afterId, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1900,7 +3046,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ResetUserNotifications200Response',) as ResetUserNotifications200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ResetUserNotificationsResponse',) as ResetUserNotificationsResponse; } return null; @@ -1973,7 +3119,7 @@ class PublicApi { /// * [String] sso: /// /// * [String] searchSection: - Future searchUsers(String tenantId, String urlId, { String? usernameStartsWith, List? mentionGroupIds, String? sso, String? searchSection, }) async { + Future searchUsers(String tenantId, String urlId, { String? usernameStartsWith, List? mentionGroupIds, String? sso, String? searchSection, }) async { final response = await searchUsersWithHttpInfo(tenantId, urlId, usernameStartsWith: usernameStartsWith, mentionGroupIds: mentionGroupIds, sso: sso, searchSection: searchSection, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -1982,7 +3128,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SearchUsers200Response',) as SearchUsers200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SearchUsersResult',) as SearchUsersResult; } return null; @@ -2050,7 +3196,7 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future setCommentText(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, { String? editKey, String? sso, }) async { + Future setCommentText(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, { String? editKey, String? sso, }) async { final response = await setCommentTextWithHttpInfo(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey: editKey, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2059,7 +3205,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SetCommentText200Response',) as SetCommentText200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PublicAPISetCommentTextResponse',) as PublicAPISetCommentTextResponse; } return null; @@ -2115,7 +3261,7 @@ class PublicApi { /// * [PublicBlockFromCommentParams] publicBlockFromCommentParams (required): /// /// * [String] sso: - Future unBlockCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String? sso, }) async { + Future unBlockCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String? sso, }) async { final response = await unBlockCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2124,7 +3270,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UnBlockCommentPublic200Response',) as UnBlockCommentPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UnblockSuccess',) as UnblockSuccess; } return null; @@ -2181,7 +3327,7 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future unLockComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { + Future unLockComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { final response = await unLockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2190,7 +3336,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LockComment200Response',) as LockComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIEmptyResponse',) as APIEmptyResponse; } return null; @@ -2247,7 +3393,7 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future unPinComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { + Future unPinComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { final response = await unPinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2256,7 +3402,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PinComment200Response',) as PinComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ChangeCommentPinStatusResponse',) as ChangeCommentPinStatusResponse; } return null; @@ -2319,7 +3465,7 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future updateFeedPostPublic(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, { String? broadcastId, String? sso, }) async { + Future updateFeedPostPublic(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, { String? broadcastId, String? sso, }) async { final response = await updateFeedPostPublicWithHttpInfo(tenantId, postId, updateFeedPostParams, broadcastId: broadcastId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2328,7 +3474,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateFeedPostPublic200Response',) as CreateFeedPostPublic200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateFeedPostResponse',) as CreateFeedPostResponse; } return null; @@ -2395,7 +3541,7 @@ class PublicApi { /// * [String] commentId (required): /// /// * [String] sso: - Future updateUserNotificationCommentSubscriptionStatus(String tenantId, String notificationId, String optedInOrOut, String commentId, { String? sso, }) async { + Future updateUserNotificationCommentSubscriptionStatus(String tenantId, String notificationId, String optedInOrOut, String commentId, { String? sso, }) async { final response = await updateUserNotificationCommentSubscriptionStatusWithHttpInfo(tenantId, notificationId, optedInOrOut, commentId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2404,7 +3550,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateUserNotificationStatus200Response',) as UpdateUserNotificationStatus200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateUserNotificationCommentSubscriptionStatusResponse',) as UpdateUserNotificationCommentSubscriptionStatusResponse; } return null; @@ -2476,7 +3622,7 @@ class PublicApi { /// * [String] subscribedOrUnsubscribed (required): /// /// * [String] sso: - Future updateUserNotificationPageSubscriptionStatus(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, { String? sso, }) async { + Future updateUserNotificationPageSubscriptionStatus(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, { String? sso, }) async { final response = await updateUserNotificationPageSubscriptionStatusWithHttpInfo(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2485,7 +3631,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateUserNotificationStatus200Response',) as UpdateUserNotificationStatus200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateUserNotificationPageSubscriptionStatusResponse',) as UpdateUserNotificationPageSubscriptionStatusResponse; } return null; @@ -2542,7 +3688,7 @@ class PublicApi { /// * [String] newStatus (required): /// /// * [String] sso: - Future updateUserNotificationStatus(String tenantId, String notificationId, String newStatus, { String? sso, }) async { + Future updateUserNotificationStatus(String tenantId, String notificationId, String newStatus, { String? sso, }) async { final response = await updateUserNotificationStatusWithHttpInfo(tenantId, notificationId, newStatus, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2551,7 +3697,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateUserNotificationStatus200Response',) as UpdateUserNotificationStatus200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UpdateUserNotificationStatusResponse',) as UpdateUserNotificationStatusResponse; } return null; @@ -2710,7 +3856,7 @@ class PublicApi { /// * [String] sessionId: /// /// * [String] sso: - Future voteComment(String tenantId, String commentId, String urlId, String broadcastId, VoteBodyParams voteBodyParams, { String? sessionId, String? sso, }) async { + Future voteComment(String tenantId, String commentId, String urlId, String broadcastId, VoteBodyParams voteBodyParams, { String? sessionId, String? sso, }) async { final response = await voteCommentWithHttpInfo(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId: sessionId, sso: sso, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -2719,7 +3865,7 @@ class PublicApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VoteComment200Response',) as VoteComment200Response; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VoteResponse',) as VoteResponse; } return null; diff --git a/client/lib/api_client.dart b/client/lib/api_client.dart index 63a2834..5cfb051 100644 --- a/client/lib/api_client.dart +++ b/client/lib/api_client.dart @@ -184,12 +184,22 @@ class ApiClient { return value is DateTime ? value : DateTime.tryParse(value); case 'APIAuditLog': return APIAuditLog.fromJson(value); + case 'APIBanUserChangeLog': + return APIBanUserChangeLog.fromJson(value); + case 'APIBanUserChangedValues': + return APIBanUserChangedValues.fromJson(value); + case 'APIBannedUser': + return APIBannedUser.fromJson(value); + case 'APIBannedUserWithMultiMatchInfo': + return APIBannedUserWithMultiMatchInfo.fromJson(value); case 'APIComment': return APIComment.fromJson(value); case 'APICommentBase': return APICommentBase.fromJson(value); case 'APICommentBaseMeta': return APICommentBaseMeta.fromJson(value); + case 'APICommentCommonBannedUser': + return APICommentCommonBannedUser.fromJson(value); case 'APICreateUserBadgeResponse': return APICreateUserBadgeResponse.fromJson(value); case 'APIDomainConfiguration': @@ -212,6 +222,10 @@ class ApiClient { return APIGetUserBadgeResponse.fromJson(value); case 'APIGetUserBadgesResponse': return APIGetUserBadgesResponse.fromJson(value); + case 'APIModerateGetUserBanPreferencesResponse': + return APIModerateGetUserBanPreferencesResponse.fromJson(value); + case 'APIModerateUserBanPreferences': + return APIModerateUserBanPreferences.fromJson(value); case 'APIPage': return APIPage.fromJson(value); case 'APISSOUser': @@ -232,26 +246,28 @@ class ApiClient { return APITicketFile.fromJson(value); case 'APIUserSubscription': return APIUserSubscription.fromJson(value); - case 'AddDomainConfig200Response': - return AddDomainConfig200Response.fromJson(value); - case 'AddDomainConfig200ResponseAnyOf': - return AddDomainConfig200ResponseAnyOf.fromJson(value); case 'AddDomainConfigParams': return AddDomainConfigParams.fromJson(value); - case 'AddHashTag200Response': - return AddHashTag200Response.fromJson(value); - case 'AddHashTagsBulk200Response': - return AddHashTagsBulk200Response.fromJson(value); + case 'AddDomainConfigResponse': + return AddDomainConfigResponse.fromJson(value); + case 'AddDomainConfigResponseAnyOf': + return AddDomainConfigResponseAnyOf.fromJson(value); case 'AddPageAPIResponse': return AddPageAPIResponse.fromJson(value); case 'AddSSOUserAPIResponse': return AddSSOUserAPIResponse.fromJson(value); - case 'AggregateQuestionResults200Response': - return AggregateQuestionResults200Response.fromJson(value); + case 'AdjustCommentVotesParams': + return AdjustCommentVotesParams.fromJson(value); + case 'AdjustVotesResponse': + return AdjustVotesResponse.fromJson(value); case 'AggregateQuestionResultsResponse': return AggregateQuestionResultsResponse.fromJson(value); + case 'AggregateResponse': + return AggregateResponse.fromJson(value); case 'AggregateTimeBucket': return AggregateTimeBucketTypeTransformer().decode(value); + case 'AggregationAPIError': + return AggregationAPIError.fromJson(value); case 'AggregationItem': return AggregationItem.fromJson(value); case 'AggregationOpType': @@ -268,18 +284,30 @@ class ApiClient { return AggregationResponseStats.fromJson(value); case 'AggregationValue': return AggregationValue.fromJson(value); + case 'AwardUserBadgeResponse': + return AwardUserBadgeResponse.fromJson(value); + case 'BanUserFromCommentResult': + return BanUserFromCommentResult.fromJson(value); + case 'BanUserUndoParams': + return BanUserUndoParams.fromJson(value); + case 'BannedUserMatch': + return BannedUserMatch.fromJson(value); + case 'BannedUserMatchMatchedOnValue': + return BannedUserMatchMatchedOnValue.fromJson(value); + case 'BannedUserMatchType': + return BannedUserMatchTypeTypeTransformer().decode(value); case 'BillingInfo': return BillingInfo.fromJson(value); case 'BlockFromCommentParams': return BlockFromCommentParams.fromJson(value); - case 'BlockFromCommentPublic200Response': - return BlockFromCommentPublic200Response.fromJson(value); case 'BlockSuccess': return BlockSuccess.fromJson(value); + case 'BuildModerationFilterParams': + return BuildModerationFilterParams.fromJson(value); + case 'BuildModerationFilterResponse': + return BuildModerationFilterResponse.fromJson(value); case 'BulkAggregateQuestionItem': return BulkAggregateQuestionItem.fromJson(value); - case 'BulkAggregateQuestionResults200Response': - return BulkAggregateQuestionResults200Response.fromJson(value); case 'BulkAggregateQuestionResultsRequest': return BulkAggregateQuestionResultsRequest.fromJson(value); case 'BulkAggregateQuestionResultsResponse': @@ -290,20 +318,20 @@ class ApiClient { return BulkCreateHashTagsBodyTagsInner.fromJson(value); case 'BulkCreateHashTagsResponse': return BulkCreateHashTagsResponse.fromJson(value); + case 'BulkCreateHashTagsResponseResultsInner': + return BulkCreateHashTagsResponseResultsInner.fromJson(value); + case 'BulkPreBanParams': + return BulkPreBanParams.fromJson(value); + case 'BulkPreBanSummary': + return BulkPreBanSummary.fromJson(value); case 'ChangeCommentPinStatusResponse': return ChangeCommentPinStatusResponse.fromJson(value); - case 'ChangeTicketState200Response': - return ChangeTicketState200Response.fromJson(value); case 'ChangeTicketStateBody': return ChangeTicketStateBody.fromJson(value); case 'ChangeTicketStateResponse': return ChangeTicketStateResponse.fromJson(value); case 'CheckBlockedCommentsResponse': return CheckBlockedCommentsResponse.fromJson(value); - case 'CheckedCommentsForBlocked200Response': - return CheckedCommentsForBlocked200Response.fromJson(value); - case 'CombineCommentsWithQuestionResults200Response': - return CombineCommentsWithQuestionResults200Response.fromJson(value); case 'CombineQuestionResultsWithCommentsResponse': return CombineQuestionResultsWithCommentsResponse.fromJson(value); case 'CommentData': @@ -332,6 +360,8 @@ class ApiClient { return CommentUserMentionInfo.fromJson(value); case 'CommenterNameFormats': return CommenterNameFormatsTypeTransformer().decode(value); + case 'CommentsByIdsParams': + return CommentsByIdsParams.fromJson(value); case 'CreateAPIPageData': return CreateAPIPageData.fromJson(value); case 'CreateAPISSOUserData': @@ -340,20 +370,12 @@ class ApiClient { return CreateAPIUserSubscriptionData.fromJson(value); case 'CreateCommentParams': return CreateCommentParams.fromJson(value); - case 'CreateCommentPublic200Response': - return CreateCommentPublic200Response.fromJson(value); - case 'CreateEmailTemplate200Response': - return CreateEmailTemplate200Response.fromJson(value); case 'CreateEmailTemplateBody': return CreateEmailTemplateBody.fromJson(value); case 'CreateEmailTemplateResponse': return CreateEmailTemplateResponse.fromJson(value); - case 'CreateFeedPost200Response': - return CreateFeedPost200Response.fromJson(value); case 'CreateFeedPostParams': return CreateFeedPostParams.fromJson(value); - case 'CreateFeedPostPublic200Response': - return CreateFeedPostPublic200Response.fromJson(value); case 'CreateFeedPostResponse': return CreateFeedPostResponse.fromJson(value); case 'CreateFeedPostsResponse': @@ -362,76 +384,54 @@ class ApiClient { return CreateHashTagBody.fromJson(value); case 'CreateHashTagResponse': return CreateHashTagResponse.fromJson(value); - case 'CreateModerator200Response': - return CreateModerator200Response.fromJson(value); case 'CreateModeratorBody': return CreateModeratorBody.fromJson(value); case 'CreateModeratorResponse': return CreateModeratorResponse.fromJson(value); - case 'CreateQuestionConfig200Response': - return CreateQuestionConfig200Response.fromJson(value); case 'CreateQuestionConfigBody': return CreateQuestionConfigBody.fromJson(value); case 'CreateQuestionConfigResponse': return CreateQuestionConfigResponse.fromJson(value); - case 'CreateQuestionResult200Response': - return CreateQuestionResult200Response.fromJson(value); case 'CreateQuestionResultBody': return CreateQuestionResultBody.fromJson(value); case 'CreateQuestionResultResponse': return CreateQuestionResultResponse.fromJson(value); case 'CreateSubscriptionAPIResponse': return CreateSubscriptionAPIResponse.fromJson(value); - case 'CreateTenant200Response': - return CreateTenant200Response.fromJson(value); case 'CreateTenantBody': return CreateTenantBody.fromJson(value); - case 'CreateTenantPackage200Response': - return CreateTenantPackage200Response.fromJson(value); case 'CreateTenantPackageBody': return CreateTenantPackageBody.fromJson(value); case 'CreateTenantPackageResponse': return CreateTenantPackageResponse.fromJson(value); case 'CreateTenantResponse': return CreateTenantResponse.fromJson(value); - case 'CreateTenantUser200Response': - return CreateTenantUser200Response.fromJson(value); case 'CreateTenantUserBody': return CreateTenantUserBody.fromJson(value); case 'CreateTenantUserResponse': return CreateTenantUserResponse.fromJson(value); - case 'CreateTicket200Response': - return CreateTicket200Response.fromJson(value); case 'CreateTicketBody': return CreateTicketBody.fromJson(value); case 'CreateTicketResponse': return CreateTicketResponse.fromJson(value); - case 'CreateUserBadge200Response': - return CreateUserBadge200Response.fromJson(value); case 'CreateUserBadgeParams': return CreateUserBadgeParams.fromJson(value); + case 'CreateV1PageReact': + return CreateV1PageReact.fromJson(value); case 'CustomConfigParameters': return CustomConfigParameters.fromJson(value); case 'CustomEmailTemplate': return CustomEmailTemplate.fromJson(value); - case 'DeleteComment200Response': - return DeleteComment200Response.fromJson(value); case 'DeleteCommentAction': return DeleteCommentActionTypeTransformer().decode(value); - case 'DeleteCommentPublic200Response': - return DeleteCommentPublic200Response.fromJson(value); case 'DeleteCommentResult': return DeleteCommentResult.fromJson(value); - case 'DeleteCommentVote200Response': - return DeleteCommentVote200Response.fromJson(value); - case 'DeleteDomainConfig200Response': - return DeleteDomainConfig200Response.fromJson(value); - case 'DeleteFeedPostPublic200Response': - return DeleteFeedPostPublic200Response.fromJson(value); - case 'DeleteFeedPostPublic200ResponseAnyOf': - return DeleteFeedPostPublic200ResponseAnyOf.fromJson(value); - case 'DeleteHashTagRequest': - return DeleteHashTagRequest.fromJson(value); + case 'DeleteDomainConfigResponse': + return DeleteDomainConfigResponse.fromJson(value); + case 'DeleteFeedPostPublicResponse': + return DeleteFeedPostPublicResponse.fromJson(value); + case 'DeleteHashTagRequestBody': + return DeleteHashTagRequestBody.fromJson(value); case 'DeletePageAPIResponse': return DeletePageAPIResponse.fromJson(value); case 'DeleteSSOUserAPIResponse': @@ -468,202 +468,148 @@ class ApiClient { return FindCommentsByRangeItem.fromJson(value); case 'FindCommentsByRangeResponse': return FindCommentsByRangeResponse.fromJson(value); - case 'FlagComment200Response': - return FlagComment200Response.fromJson(value); - case 'FlagCommentPublic200Response': - return FlagCommentPublic200Response.fromJson(value); case 'FlagCommentResponse': return FlagCommentResponse.fromJson(value); - case 'GetAuditLogs200Response': - return GetAuditLogs200Response.fromJson(value); case 'GetAuditLogsResponse': return GetAuditLogsResponse.fromJson(value); - case 'GetCachedNotificationCount200Response': - return GetCachedNotificationCount200Response.fromJson(value); + case 'GetBannedUsersCountResponse': + return GetBannedUsersCountResponse.fromJson(value); + case 'GetBannedUsersFromCommentResponse': + return GetBannedUsersFromCommentResponse.fromJson(value); case 'GetCachedNotificationCountResponse': return GetCachedNotificationCountResponse.fromJson(value); - case 'GetComment200Response': - return GetComment200Response.fromJson(value); - case 'GetCommentText200Response': - return GetCommentText200Response.fromJson(value); - case 'GetCommentVoteUserNames200Response': - return GetCommentVoteUserNames200Response.fromJson(value); + case 'GetCommentBanStatusResponse': + return GetCommentBanStatusResponse.fromJson(value); + case 'GetCommentTextResponse': + return GetCommentTextResponse.fromJson(value); case 'GetCommentVoteUserNamesSuccessResponse': return GetCommentVoteUserNamesSuccessResponse.fromJson(value); - case 'GetComments200Response': - return GetComments200Response.fromJson(value); - case 'GetCommentsPublic200Response': - return GetCommentsPublic200Response.fromJson(value); + case 'GetCommentsForUserResponse': + return GetCommentsForUserResponse.fromJson(value); case 'GetCommentsResponsePublicComment': return GetCommentsResponsePublicComment.fromJson(value); case 'GetCommentsResponseWithPresencePublicComment': return GetCommentsResponseWithPresencePublicComment.fromJson(value); - case 'GetDomainConfig200Response': - return GetDomainConfig200Response.fromJson(value); - case 'GetDomainConfigs200Response': - return GetDomainConfigs200Response.fromJson(value); - case 'GetDomainConfigs200ResponseAnyOf': - return GetDomainConfigs200ResponseAnyOf.fromJson(value); - case 'GetDomainConfigs200ResponseAnyOf1': - return GetDomainConfigs200ResponseAnyOf1.fromJson(value); - case 'GetEmailTemplate200Response': - return GetEmailTemplate200Response.fromJson(value); - case 'GetEmailTemplateDefinitions200Response': - return GetEmailTemplateDefinitions200Response.fromJson(value); + case 'GetDomainConfigResponse': + return GetDomainConfigResponse.fromJson(value); + case 'GetDomainConfigsResponse': + return GetDomainConfigsResponse.fromJson(value); + case 'GetDomainConfigsResponseAnyOf': + return GetDomainConfigsResponseAnyOf.fromJson(value); + case 'GetDomainConfigsResponseAnyOf1': + return GetDomainConfigsResponseAnyOf1.fromJson(value); case 'GetEmailTemplateDefinitionsResponse': return GetEmailTemplateDefinitionsResponse.fromJson(value); - case 'GetEmailTemplateRenderErrors200Response': - return GetEmailTemplateRenderErrors200Response.fromJson(value); case 'GetEmailTemplateRenderErrorsResponse': return GetEmailTemplateRenderErrorsResponse.fromJson(value); case 'GetEmailTemplateResponse': return GetEmailTemplateResponse.fromJson(value); - case 'GetEmailTemplates200Response': - return GetEmailTemplates200Response.fromJson(value); case 'GetEmailTemplatesResponse': return GetEmailTemplatesResponse.fromJson(value); - case 'GetEventLog200Response': - return GetEventLog200Response.fromJson(value); case 'GetEventLogResponse': return GetEventLogResponse.fromJson(value); - case 'GetFeedPosts200Response': - return GetFeedPosts200Response.fromJson(value); - case 'GetFeedPostsPublic200Response': - return GetFeedPostsPublic200Response.fromJson(value); case 'GetFeedPostsResponse': return GetFeedPostsResponse.fromJson(value); - case 'GetFeedPostsStats200Response': - return GetFeedPostsStats200Response.fromJson(value); - case 'GetHashTags200Response': - return GetHashTags200Response.fromJson(value); + case 'GetGifsSearchResponse': + return GetGifsSearchResponse.fromJson(value); + case 'GetGifsTrendingResponse': + return GetGifsTrendingResponse.fromJson(value); case 'GetHashTagsResponse': return GetHashTagsResponse.fromJson(value); - case 'GetModerator200Response': - return GetModerator200Response.fromJson(value); case 'GetModeratorResponse': return GetModeratorResponse.fromJson(value); - case 'GetModerators200Response': - return GetModerators200Response.fromJson(value); case 'GetModeratorsResponse': return GetModeratorsResponse.fromJson(value); case 'GetMyNotificationsResponse': return GetMyNotificationsResponse.fromJson(value); - case 'GetNotificationCount200Response': - return GetNotificationCount200Response.fromJson(value); case 'GetNotificationCountResponse': return GetNotificationCountResponse.fromJson(value); - case 'GetNotifications200Response': - return GetNotifications200Response.fromJson(value); case 'GetNotificationsResponse': return GetNotificationsResponse.fromJson(value); case 'GetPageByURLIdAPIResponse': return GetPageByURLIdAPIResponse.fromJson(value); case 'GetPagesAPIResponse': return GetPagesAPIResponse.fromJson(value); - case 'GetPendingWebhookEventCount200Response': - return GetPendingWebhookEventCount200Response.fromJson(value); case 'GetPendingWebhookEventCountResponse': return GetPendingWebhookEventCountResponse.fromJson(value); - case 'GetPendingWebhookEvents200Response': - return GetPendingWebhookEvents200Response.fromJson(value); case 'GetPendingWebhookEventsResponse': return GetPendingWebhookEventsResponse.fromJson(value); case 'GetPublicFeedPostsResponse': return GetPublicFeedPostsResponse.fromJson(value); - case 'GetQuestionConfig200Response': - return GetQuestionConfig200Response.fromJson(value); + case 'GetPublicPagesResponse': + return GetPublicPagesResponse.fromJson(value); case 'GetQuestionConfigResponse': return GetQuestionConfigResponse.fromJson(value); - case 'GetQuestionConfigs200Response': - return GetQuestionConfigs200Response.fromJson(value); case 'GetQuestionConfigsResponse': return GetQuestionConfigsResponse.fromJson(value); - case 'GetQuestionResult200Response': - return GetQuestionResult200Response.fromJson(value); case 'GetQuestionResultResponse': return GetQuestionResultResponse.fromJson(value); - case 'GetQuestionResults200Response': - return GetQuestionResults200Response.fromJson(value); case 'GetQuestionResultsResponse': return GetQuestionResultsResponse.fromJson(value); case 'GetSSOUserByEmailAPIResponse': return GetSSOUserByEmailAPIResponse.fromJson(value); case 'GetSSOUserByIdAPIResponse': return GetSSOUserByIdAPIResponse.fromJson(value); - case 'GetSSOUsers200Response': - return GetSSOUsers200Response.fromJson(value); + case 'GetSSOUsersResponse': + return GetSSOUsersResponse.fromJson(value); case 'GetSubscriptionsAPIResponse': return GetSubscriptionsAPIResponse.fromJson(value); - case 'GetTenant200Response': - return GetTenant200Response.fromJson(value); - case 'GetTenantDailyUsages200Response': - return GetTenantDailyUsages200Response.fromJson(value); case 'GetTenantDailyUsagesResponse': return GetTenantDailyUsagesResponse.fromJson(value); - case 'GetTenantPackage200Response': - return GetTenantPackage200Response.fromJson(value); + case 'GetTenantManualBadgesResponse': + return GetTenantManualBadgesResponse.fromJson(value); case 'GetTenantPackageResponse': return GetTenantPackageResponse.fromJson(value); - case 'GetTenantPackages200Response': - return GetTenantPackages200Response.fromJson(value); case 'GetTenantPackagesResponse': return GetTenantPackagesResponse.fromJson(value); case 'GetTenantResponse': return GetTenantResponse.fromJson(value); - case 'GetTenantUser200Response': - return GetTenantUser200Response.fromJson(value); case 'GetTenantUserResponse': return GetTenantUserResponse.fromJson(value); - case 'GetTenantUsers200Response': - return GetTenantUsers200Response.fromJson(value); case 'GetTenantUsersResponse': return GetTenantUsersResponse.fromJson(value); - case 'GetTenants200Response': - return GetTenants200Response.fromJson(value); case 'GetTenantsResponse': return GetTenantsResponse.fromJson(value); - case 'GetTicket200Response': - return GetTicket200Response.fromJson(value); case 'GetTicketResponse': return GetTicketResponse.fromJson(value); - case 'GetTickets200Response': - return GetTickets200Response.fromJson(value); case 'GetTicketsResponse': return GetTicketsResponse.fromJson(value); - case 'GetUser200Response': - return GetUser200Response.fromJson(value); - case 'GetUserBadge200Response': - return GetUserBadge200Response.fromJson(value); - case 'GetUserBadgeProgressById200Response': - return GetUserBadgeProgressById200Response.fromJson(value); - case 'GetUserBadgeProgressList200Response': - return GetUserBadgeProgressList200Response.fromJson(value); - case 'GetUserBadges200Response': - return GetUserBadges200Response.fromJson(value); - case 'GetUserNotificationCount200Response': - return GetUserNotificationCount200Response.fromJson(value); + case 'GetTranslationsResponse': + return GetTranslationsResponse.fromJson(value); + case 'GetUserInternalProfileResponse': + return GetUserInternalProfileResponse.fromJson(value); + case 'GetUserInternalProfileResponseProfile': + return GetUserInternalProfileResponseProfile.fromJson(value); + case 'GetUserManualBadgesResponse': + return GetUserManualBadgesResponse.fromJson(value); case 'GetUserNotificationCountResponse': return GetUserNotificationCountResponse.fromJson(value); - case 'GetUserNotifications200Response': - return GetUserNotifications200Response.fromJson(value); - case 'GetUserPresenceStatuses200Response': - return GetUserPresenceStatuses200Response.fromJson(value); case 'GetUserPresenceStatusesResponse': return GetUserPresenceStatusesResponse.fromJson(value); - case 'GetUserReactsPublic200Response': - return GetUserReactsPublic200Response.fromJson(value); case 'GetUserResponse': return GetUserResponse.fromJson(value); - case 'GetVotes200Response': - return GetVotes200Response.fromJson(value); - case 'GetVotesForUser200Response': - return GetVotesForUser200Response.fromJson(value); + case 'GetUserTrustFactorResponse': + return GetUserTrustFactorResponse.fromJson(value); + case 'GetV1PageLikes': + return GetV1PageLikes.fromJson(value); + case 'GetV2PageReactUsersResponse': + return GetV2PageReactUsersResponse.fromJson(value); + case 'GetV2PageReacts': + return GetV2PageReacts.fromJson(value); case 'GetVotesForUserResponse': return GetVotesForUserResponse.fromJson(value); case 'GetVotesResponse': return GetVotesResponse.fromJson(value); + case 'GifGetLargeResponse': + return GifGetLargeResponse.fromJson(value); case 'GifRating': return GifRatingTypeTransformer().decode(value); + case 'GifSearchInternalError': + return GifSearchInternalError.fromJson(value); + case 'GifSearchResponse': + return GifSearchResponse.fromJson(value); + case 'GifSearchResponseImagesInnerInner': + return GifSearchResponseImagesInnerInner.fromJson(value); case 'HeaderAccountNotification': return HeaderAccountNotification.fromJson(value); case 'HeaderState': @@ -682,14 +628,50 @@ class ApiClient { return LiveEventExtraInfo.fromJson(value); case 'LiveEventType': return LiveEventTypeTypeTransformer().decode(value); - case 'LockComment200Response': - return LockComment200Response.fromJson(value); case 'MediaAsset': return MediaAsset.fromJson(value); case 'MentionAutoCompleteMode': return MentionAutoCompleteModeTypeTransformer().decode(value); case 'MetaItem': return MetaItem.fromJson(value); + case 'ModerationAPIChildCommentsResponse': + return ModerationAPIChildCommentsResponse.fromJson(value); + case 'ModerationAPIComment': + return ModerationAPIComment.fromJson(value); + case 'ModerationAPICommentLog': + return ModerationAPICommentLog.fromJson(value); + case 'ModerationAPICommentResponse': + return ModerationAPICommentResponse.fromJson(value); + case 'ModerationAPICountCommentsResponse': + return ModerationAPICountCommentsResponse.fromJson(value); + case 'ModerationAPIGetCommentIdsResponse': + return ModerationAPIGetCommentIdsResponse.fromJson(value); + case 'ModerationAPIGetCommentsResponse': + return ModerationAPIGetCommentsResponse.fromJson(value); + case 'ModerationAPIGetLogsResponse': + return ModerationAPIGetLogsResponse.fromJson(value); + case 'ModerationCommentSearchResponse': + return ModerationCommentSearchResponse.fromJson(value); + case 'ModerationExportResponse': + return ModerationExportResponse.fromJson(value); + case 'ModerationExportStatusResponse': + return ModerationExportStatusResponse.fromJson(value); + case 'ModerationFilter': + return ModerationFilter.fromJson(value); + case 'ModerationPageSearchProjected': + return ModerationPageSearchProjected.fromJson(value); + case 'ModerationPageSearchResponse': + return ModerationPageSearchResponse.fromJson(value); + case 'ModerationSiteSearchProjected': + return ModerationSiteSearchProjected.fromJson(value); + case 'ModerationSiteSearchResponse': + return ModerationSiteSearchResponse.fromJson(value); + case 'ModerationSuggestResponse': + return ModerationSuggestResponse.fromJson(value); + case 'ModerationUserSearchProjected': + return ModerationUserSearchProjected.fromJson(value); + case 'ModerationUserSearchResponse': + return ModerationUserSearchResponse.fromJson(value); case 'Moderator': return Moderator.fromJson(value); case 'NotificationAndCount': @@ -698,18 +680,30 @@ class ApiClient { return NotificationObjectTypeTypeTransformer().decode(value); case 'NotificationType': return NotificationTypeTypeTransformer().decode(value); + case 'PageUserEntry': + return PageUserEntry.fromJson(value); + case 'PageUsersInfoResponse': + return PageUsersInfoResponse.fromJson(value); + case 'PageUsersOfflineResponse': + return PageUsersOfflineResponse.fromJson(value); + case 'PageUsersOnlineResponse': + return PageUsersOnlineResponse.fromJson(value); + case 'PagesSortBy': + return PagesSortByTypeTransformer().decode(value); case 'PatchDomainConfigParams': return PatchDomainConfigParams.fromJson(value); - case 'PatchHashTag200Response': - return PatchHashTag200Response.fromJson(value); + case 'PatchDomainConfigResponse': + return PatchDomainConfigResponse.fromJson(value); case 'PatchPageAPIResponse': return PatchPageAPIResponse.fromJson(value); case 'PatchSSOUserAPIResponse': return PatchSSOUserAPIResponse.fromJson(value); case 'PendingCommentToSyncOutbound': return PendingCommentToSyncOutbound.fromJson(value); - case 'PinComment200Response': - return PinComment200Response.fromJson(value); + case 'PostRemoveCommentResponse': + return PostRemoveCommentResponse.fromJson(value); + case 'PreBanSummary': + return PreBanSummary.fromJson(value); case 'PubSubComment': return PubSubComment.fromJson(value); case 'PubSubCommentBase': @@ -730,8 +724,12 @@ class ApiClient { return PublicCommentBase.fromJson(value); case 'PublicFeedPostsResponse': return PublicFeedPostsResponse.fromJson(value); + case 'PublicPage': + return PublicPage.fromJson(value); case 'PublicVote': return PublicVote.fromJson(value); + case 'PutDomainConfigResponse': + return PutDomainConfigResponse.fromJson(value); case 'PutSSOUserAPIResponse': return PutSSOUserAPIResponse.fromJson(value); case 'QueryPredicate': @@ -756,16 +754,14 @@ class ApiClient { return QuestionWhenSaveTypeTransformer().decode(value); case 'ReactBodyParams': return ReactBodyParams.fromJson(value); - case 'ReactFeedPostPublic200Response': - return ReactFeedPostPublic200Response.fromJson(value); case 'ReactFeedPostResponse': return ReactFeedPostResponse.fromJson(value); case 'RecordStringBeforeStringOrNullAfterStringOrNullValue': return RecordStringBeforeStringOrNullAfterStringOrNullValue.fromJson(value); - case 'RecordStringStringOrNumberValue': - return RecordStringStringOrNumberValue.fromJson(value); - case 'RenderEmailTemplate200Response': - return RenderEmailTemplate200Response.fromJson(value); + case 'RemoveCommentActionResponse': + return RemoveCommentActionResponse.fromJson(value); + case 'RemoveUserBadgeResponse': + return RemoveUserBadgeResponse.fromJson(value); case 'RenderEmailTemplateBody': return RenderEmailTemplateBody.fromJson(value); case 'RenderEmailTemplateResponse': @@ -780,30 +776,34 @@ class ApiClient { return ReplaceTenantPackageBody.fromJson(value); case 'ReplaceTenantUserBody': return ReplaceTenantUserBody.fromJson(value); - case 'ResetUserNotifications200Response': - return ResetUserNotifications200Response.fromJson(value); case 'ResetUserNotificationsResponse': return ResetUserNotificationsResponse.fromJson(value); case 'SORTDIR': return SORTDIRTypeTransformer().decode(value); case 'SSOSecurityLevel': return SSOSecurityLevelTypeTransformer().decode(value); - case 'SaveComment200Response': - return SaveComment200Response.fromJson(value); case 'SaveCommentResponseOptimized': return SaveCommentResponseOptimized.fromJson(value); + case 'SaveCommentsBulkResponse': + return SaveCommentsBulkResponse.fromJson(value); case 'SaveCommentsResponseWithPresence': return SaveCommentsResponseWithPresence.fromJson(value); - case 'SearchUsers200Response': - return SearchUsers200Response.fromJson(value); case 'SearchUsersResponse': return SearchUsersResponse.fromJson(value); + case 'SearchUsersResult': + return SearchUsersResult.fromJson(value); case 'SearchUsersSectionedResponse': return SearchUsersSectionedResponse.fromJson(value); - case 'SetCommentText200Response': - return SetCommentText200Response.fromJson(value); + case 'SetCommentApprovedResponse': + return SetCommentApprovedResponse.fromJson(value); + case 'SetCommentTextParams': + return SetCommentTextParams.fromJson(value); + case 'SetCommentTextResponse': + return SetCommentTextResponse.fromJson(value); case 'SetCommentTextResult': return SetCommentTextResult.fromJson(value); + case 'SetUserTrustFactorResponse': + return SetUserTrustFactorResponse.fromJson(value); case 'SizePreset': return SizePresetTypeTransformer().decode(value); case 'SortDirections': @@ -812,12 +812,12 @@ class ApiClient { return SpamRule.fromJson(value); case 'TOSConfig': return TOSConfig.fromJson(value); + case 'TenantBadge': + return TenantBadge.fromJson(value); case 'TenantHashTag': return TenantHashTag.fromJson(value); case 'TenantPackage': return TenantPackage.fromJson(value); - case 'UnBlockCommentPublic200Response': - return UnBlockCommentPublic200Response.fromJson(value); case 'UnBlockFromCommentParams': return UnBlockFromCommentParams.fromJson(value); case 'UnblockSuccess': @@ -856,12 +856,14 @@ class ApiClient { return UpdateTenantPackageBody.fromJson(value); case 'UpdateTenantUserBody': return UpdateTenantUserBody.fromJson(value); - case 'UpdateUserBadge200Response': - return UpdateUserBadge200Response.fromJson(value); case 'UpdateUserBadgeParams': return UpdateUserBadgeParams.fromJson(value); - case 'UpdateUserNotificationStatus200Response': - return UpdateUserNotificationStatus200Response.fromJson(value); + case 'UpdateUserNotificationCommentSubscriptionStatusResponse': + return UpdateUserNotificationCommentSubscriptionStatusResponse.fromJson(value); + case 'UpdateUserNotificationPageSubscriptionStatusResponse': + return UpdateUserNotificationPageSubscriptionStatusResponse.fromJson(value); + case 'UpdateUserNotificationStatusResponse': + return UpdateUserNotificationStatusResponse.fromJson(value); case 'UploadImageResponse': return UploadImageResponse.fromJson(value); case 'User': @@ -888,10 +890,10 @@ class ApiClient { return UserSearchSectionResult.fromJson(value); case 'UserSessionInfo': return UserSessionInfo.fromJson(value); + case 'UsersListLocation': + return UsersListLocationTypeTransformer().decode(value); case 'VoteBodyParams': return VoteBodyParams.fromJson(value); - case 'VoteComment200Response': - return VoteComment200Response.fromJson(value); case 'VoteDeleteResponse': return VoteDeleteResponse.fromJson(value); case 'VoteResponse': diff --git a/client/lib/api_helper.dart b/client/lib/api_helper.dart index 200b94e..ce81d21 100644 --- a/client/lib/api_helper.dart +++ b/client/lib/api_helper.dart @@ -64,6 +64,9 @@ String parameterToString(dynamic value) { if (value is AggregationOpType) { return AggregationOpTypeTypeTransformer().encode(value).toString(); } + if (value is BannedUserMatchType) { + return BannedUserMatchTypeTypeTransformer().encode(value).toString(); + } if (value is CommentHTMLRenderingMode) { return CommentHTMLRenderingModeTypeTransformer().encode(value).toString(); } @@ -112,6 +115,9 @@ String parameterToString(dynamic value) { if (value is NotificationType) { return NotificationTypeTypeTransformer().encode(value).toString(); } + if (value is PagesSortBy) { + return PagesSortByTypeTransformer().encode(value).toString(); + } if (value is QuestionRenderingType) { return QuestionRenderingTypeTypeTransformer().encode(value).toString(); } @@ -142,6 +148,9 @@ String parameterToString(dynamic value) { if (value is UserSearchSection) { return UserSearchSectionTypeTransformer().encode(value).toString(); } + if (value is UsersListLocation) { + return UsersListLocationTypeTransformer().encode(value).toString(); + } if (value is VoteStyle) { return VoteStyleTypeTransformer().encode(value).toString(); } diff --git a/client/lib/model/add_domain_config200_response.dart b/client/lib/model/add_domain_config200_response.dart deleted file mode 100644 index 98255f4..0000000 --- a/client/lib/model/add_domain_config200_response.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AddDomainConfig200Response { - /// Returns a new [AddDomainConfig200Response] instance. - AddDomainConfig200Response({ - required this.reason, - required this.code, - required this.status, - required this.configuration, - }); - - String reason; - - String code; - - Object? status; - - Object? configuration; - - @override - bool operator ==(Object other) => identical(this, other) || other is AddDomainConfig200Response && - other.reason == reason && - other.code == code && - other.status == status && - other.configuration == configuration; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (reason.hashCode) + - (code.hashCode) + - (status == null ? 0 : status!.hashCode) + - (configuration == null ? 0 : configuration!.hashCode); - - @override - String toString() => 'AddDomainConfig200Response[reason=$reason, code=$code, status=$status, configuration=$configuration]'; - - Map toJson() { - final json = {}; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.status != null) { - json[r'status'] = this.status; - } else { - json[r'status'] = null; - } - if (this.configuration != null) { - json[r'configuration'] = this.configuration; - } else { - json[r'configuration'] = null; - } - return json; - } - - /// Returns a new [AddDomainConfig200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AddDomainConfig200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'reason'), 'Required key "AddDomainConfig200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "AddDomainConfig200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "AddDomainConfig200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "AddDomainConfig200Response[code]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "AddDomainConfig200Response[status]" is missing from JSON.'); - assert(json.containsKey(r'configuration'), 'Required key "AddDomainConfig200Response[configuration]" is missing from JSON.'); - return true; - }()); - - return AddDomainConfig200Response( - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - status: mapValueOfType(json, r'status'), - configuration: mapValueOfType(json, r'configuration'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AddDomainConfig200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AddDomainConfig200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AddDomainConfig200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AddDomainConfig200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'reason', - 'code', - 'status', - 'configuration', - }; -} - diff --git a/client/lib/model/add_domain_config_params.dart b/client/lib/model/add_domain_config_params.dart index b587a8c..eafa982 100644 --- a/client/lib/model/add_domain_config_params.dart +++ b/client/lib/model/add_domain_config_params.dart @@ -70,23 +70,25 @@ class AddDomainConfigParams { @override bool operator ==(Object other) => identical(this, other) || other is AddDomainConfigParams && other.domain == domain && - other.emailFromName == emailFromName && - other.emailFromEmail == emailFromEmail && - other.logoSrc == logoSrc && - other.logoSrc100px == logoSrc100px && - other.footerUnsubscribeURL == footerUnsubscribeURL && - _deepEquality.equals(other.emailHeaders, emailHeaders); + other.emailFromName == emailFromName && + other.emailFromEmail == emailFromEmail && + other.logoSrc == logoSrc && + other.logoSrc100px == logoSrc100px && + other.footerUnsubscribeURL == footerUnsubscribeURL && + _deepEquality.equals(other.emailHeaders, emailHeaders); + @override int get hashCode => // ignore: unnecessary_parenthesis (domain.hashCode) + - (emailFromName == null ? 0 : emailFromName!.hashCode) + - (emailFromEmail == null ? 0 : emailFromEmail!.hashCode) + - (logoSrc == null ? 0 : logoSrc!.hashCode) + - (logoSrc100px == null ? 0 : logoSrc100px!.hashCode) + - (footerUnsubscribeURL == null ? 0 : footerUnsubscribeURL!.hashCode) + - (emailHeaders.hashCode); + (emailFromName == null ? 0 : emailFromName!.hashCode) + + (emailFromEmail == null ? 0 : emailFromEmail!.hashCode) + + (logoSrc == null ? 0 : logoSrc!.hashCode) + + (logoSrc100px == null ? 0 : logoSrc100px!.hashCode) + + (footerUnsubscribeURL == null ? 0 : footerUnsubscribeURL!.hashCode) + + (emailHeaders.hashCode); + @override String toString() => 'AddDomainConfigParams[domain=$domain, emailFromName=$emailFromName, emailFromEmail=$emailFromEmail, logoSrc=$logoSrc, logoSrc100px=$logoSrc100px, footerUnsubscribeURL=$footerUnsubscribeURL, emailHeaders=$emailHeaders]'; diff --git a/client/lib/model/add_domain_config_response.dart b/client/lib/model/add_domain_config_response.dart new file mode 100644 index 0000000..0ee3306 --- /dev/null +++ b/client/lib/model/add_domain_config_response.dart @@ -0,0 +1,157 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class AddDomainConfigResponse { + /// Returns a new [AddDomainConfigResponse] instance. + AddDomainConfigResponse({ + this.reason, + this.code, + required this.status, + this.configuration, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? reason; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + Object? status; + + Object? configuration; + + @override + bool operator ==(Object other) => identical(this, other) || other is AddDomainConfigResponse && + other.reason == reason && + other.code == code && + other.status == status && + other.configuration == configuration; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode) + + (status == null ? 0 : status!.hashCode) + + (configuration == null ? 0 : configuration!.hashCode); + + + @override + String toString() => 'AddDomainConfigResponse[reason=$reason, code=$code, status=$status, configuration=$configuration]'; + + Map toJson() { + final json = {}; + if (this.reason != null) { + json[r'reason'] = this.reason; + } else { + json[r'reason'] = null; + } + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + if (this.status != null) { + json[r'status'] = this.status; + } else { + json[r'status'] = null; + } + if (this.configuration != null) { + json[r'configuration'] = this.configuration; + } else { + json[r'configuration'] = null; + } + return json; + } + + /// Returns a new [AddDomainConfigResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static AddDomainConfigResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "AddDomainConfigResponse[status]" is missing from JSON.'); + return true; + }()); + + return AddDomainConfigResponse( + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), + status: mapValueOfType(json, r'status'), + configuration: mapValueOfType(json, r'configuration'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = AddDomainConfigResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = AddDomainConfigResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of AddDomainConfigResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = AddDomainConfigResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/add_domain_config200_response_any_of.dart b/client/lib/model/add_domain_config_response_any_of.dart similarity index 62% rename from client/lib/model/add_domain_config200_response_any_of.dart rename to client/lib/model/add_domain_config_response_any_of.dart index fb8477f..f9e2f61 100644 --- a/client/lib/model/add_domain_config200_response_any_of.dart +++ b/client/lib/model/add_domain_config_response_any_of.dart @@ -10,9 +10,9 @@ part of openapi.api; -class AddDomainConfig200ResponseAnyOf { - /// Returns a new [AddDomainConfig200ResponseAnyOf] instance. - AddDomainConfig200ResponseAnyOf({ +class AddDomainConfigResponseAnyOf { + /// Returns a new [AddDomainConfigResponseAnyOf] instance. + AddDomainConfigResponseAnyOf({ required this.configuration, required this.status, }); @@ -22,18 +22,20 @@ class AddDomainConfig200ResponseAnyOf { Object? status; @override - bool operator ==(Object other) => identical(this, other) || other is AddDomainConfig200ResponseAnyOf && + bool operator ==(Object other) => identical(this, other) || other is AddDomainConfigResponseAnyOf && other.configuration == configuration && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (configuration == null ? 0 : configuration!.hashCode) + - (status == null ? 0 : status!.hashCode); + (status == null ? 0 : status!.hashCode); + @override - String toString() => 'AddDomainConfig200ResponseAnyOf[configuration=$configuration, status=$status]'; + String toString() => 'AddDomainConfigResponseAnyOf[configuration=$configuration, status=$status]'; Map toJson() { final json = {}; @@ -50,10 +52,10 @@ class AddDomainConfig200ResponseAnyOf { return json; } - /// Returns a new [AddDomainConfig200ResponseAnyOf] instance and imports its values from + /// Returns a new [AddDomainConfigResponseAnyOf] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static AddDomainConfig200ResponseAnyOf? fromJson(dynamic value) { + static AddDomainConfigResponseAnyOf? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -61,12 +63,12 @@ class AddDomainConfig200ResponseAnyOf { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'configuration'), 'Required key "AddDomainConfig200ResponseAnyOf[configuration]" is missing from JSON.'); - assert(json.containsKey(r'status'), 'Required key "AddDomainConfig200ResponseAnyOf[status]" is missing from JSON.'); + assert(json.containsKey(r'configuration'), 'Required key "AddDomainConfigResponseAnyOf[configuration]" is missing from JSON.'); + assert(json.containsKey(r'status'), 'Required key "AddDomainConfigResponseAnyOf[status]" is missing from JSON.'); return true; }()); - return AddDomainConfig200ResponseAnyOf( + return AddDomainConfigResponseAnyOf( configuration: mapValueOfType(json, r'configuration'), status: mapValueOfType(json, r'status'), ); @@ -74,11 +76,11 @@ class AddDomainConfig200ResponseAnyOf { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = AddDomainConfig200ResponseAnyOf.fromJson(row); + final value = AddDomainConfigResponseAnyOf.fromJson(row); if (value != null) { result.add(value); } @@ -87,12 +89,12 @@ class AddDomainConfig200ResponseAnyOf { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = AddDomainConfig200ResponseAnyOf.fromJson(entry.value); + final value = AddDomainConfigResponseAnyOf.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -101,14 +103,14 @@ class AddDomainConfig200ResponseAnyOf { return map; } - // maps a json object with a list of AddDomainConfig200ResponseAnyOf-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of AddDomainConfigResponseAnyOf-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = AddDomainConfig200ResponseAnyOf.listFromJson(entry.value, growable: growable,); + map[entry.key] = AddDomainConfigResponseAnyOf.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/add_hash_tag200_response.dart b/client/lib/model/add_hash_tag200_response.dart deleted file mode 100644 index 98661e0..0000000 --- a/client/lib/model/add_hash_tag200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AddHashTag200Response { - /// Returns a new [AddHashTag200Response] instance. - AddHashTag200Response({ - required this.status, - required this.hashTag, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - TenantHashTag hashTag; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is AddHashTag200Response && - other.status == status && - other.hashTag == hashTag && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (hashTag.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'AddHashTag200Response[status=$status, hashTag=$hashTag, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'hashTag'] = this.hashTag; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [AddHashTag200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AddHashTag200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "AddHashTag200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "AddHashTag200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'hashTag'), 'Required key "AddHashTag200Response[hashTag]" is missing from JSON.'); - assert(json[r'hashTag'] != null, 'Required key "AddHashTag200Response[hashTag]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "AddHashTag200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "AddHashTag200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "AddHashTag200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "AddHashTag200Response[code]" has a null value in JSON.'); - return true; - }()); - - return AddHashTag200Response( - status: APIStatus.fromJson(json[r'status'])!, - hashTag: TenantHashTag.fromJson(json[r'hashTag'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AddHashTag200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AddHashTag200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AddHashTag200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AddHashTag200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'hashTag', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/add_hash_tags_bulk200_response.dart b/client/lib/model/add_hash_tags_bulk200_response.dart deleted file mode 100644 index 6d946c8..0000000 --- a/client/lib/model/add_hash_tags_bulk200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AddHashTagsBulk200Response { - /// Returns a new [AddHashTagsBulk200Response] instance. - AddHashTagsBulk200Response({ - required this.status, - this.results = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List results; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is AddHashTagsBulk200Response && - other.status == status && - _deepEquality.equals(other.results, results) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (results.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'AddHashTagsBulk200Response[status=$status, results=$results, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'results'] = this.results; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [AddHashTagsBulk200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AddHashTagsBulk200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "AddHashTagsBulk200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "AddHashTagsBulk200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'results'), 'Required key "AddHashTagsBulk200Response[results]" is missing from JSON.'); - assert(json[r'results'] != null, 'Required key "AddHashTagsBulk200Response[results]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "AddHashTagsBulk200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "AddHashTagsBulk200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "AddHashTagsBulk200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "AddHashTagsBulk200Response[code]" has a null value in JSON.'); - return true; - }()); - - return AddHashTagsBulk200Response( - status: APIStatus.fromJson(json[r'status'])!, - results: AddHashTag200Response.listFromJson(json[r'results']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AddHashTagsBulk200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AddHashTagsBulk200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AddHashTagsBulk200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AddHashTagsBulk200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'results', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/add_page_api_response.dart b/client/lib/model/add_page_api_response.dart index 482133b..c392bb4 100644 --- a/client/lib/model/add_page_api_response.dart +++ b/client/lib/model/add_page_api_response.dart @@ -48,17 +48,19 @@ class AddPageAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is AddPageAPIResponse && other.reason == reason && - other.code == code && - other.page == page && - other.status == status; + other.code == code && + other.page == page && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (page == null ? 0 : page!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (page == null ? 0 : page!.hashCode) + + (status.hashCode); + @override String toString() => 'AddPageAPIResponse[reason=$reason, code=$code, page=$page, status=$status]'; diff --git a/client/lib/model/add_sso_user_api_response.dart b/client/lib/model/add_sso_user_api_response.dart index 3632583..62cd0fe 100644 --- a/client/lib/model/add_sso_user_api_response.dart +++ b/client/lib/model/add_sso_user_api_response.dart @@ -48,17 +48,19 @@ class AddSSOUserAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is AddSSOUserAPIResponse && other.reason == reason && - other.code == code && - other.user == user && - other.status == status; + other.code == code && + other.user == user && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (user == null ? 0 : user!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (user == null ? 0 : user!.hashCode) + + (status.hashCode); + @override String toString() => 'AddSSOUserAPIResponse[reason=$reason, code=$code, user=$user, status=$status]'; diff --git a/client/lib/model/adjust_comment_votes_params.dart b/client/lib/model/adjust_comment_votes_params.dart new file mode 100644 index 0000000..d8afbaf --- /dev/null +++ b/client/lib/model/adjust_comment_votes_params.dart @@ -0,0 +1,109 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class AdjustCommentVotesParams { + /// Returns a new [AdjustCommentVotesParams] instance. + AdjustCommentVotesParams({ + required this.adjustVoteAmount, + }); + + double adjustVoteAmount; + + @override + bool operator ==(Object other) => identical(this, other) || other is AdjustCommentVotesParams && + other.adjustVoteAmount == adjustVoteAmount; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (adjustVoteAmount.hashCode); + + + @override + String toString() => 'AdjustCommentVotesParams[adjustVoteAmount=$adjustVoteAmount]'; + + Map toJson() { + final json = {}; + json[r'adjustVoteAmount'] = this.adjustVoteAmount; + return json; + } + + /// Returns a new [AdjustCommentVotesParams] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static AdjustCommentVotesParams? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'adjustVoteAmount'), 'Required key "AdjustCommentVotesParams[adjustVoteAmount]" is missing from JSON.'); + assert(json[r'adjustVoteAmount'] != null, 'Required key "AdjustCommentVotesParams[adjustVoteAmount]" has a null value in JSON.'); + return true; + }()); + + return AdjustCommentVotesParams( + adjustVoteAmount: mapValueOfType(json, r'adjustVoteAmount')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = AdjustCommentVotesParams.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = AdjustCommentVotesParams.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of AdjustCommentVotesParams-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = AdjustCommentVotesParams.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'adjustVoteAmount', + }; +} + diff --git a/client/lib/model/adjust_votes_response.dart b/client/lib/model/adjust_votes_response.dart new file mode 100644 index 0000000..a8790ef --- /dev/null +++ b/client/lib/model/adjust_votes_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class AdjustVotesResponse { + /// Returns a new [AdjustVotesResponse] instance. + AdjustVotesResponse({ + required this.status, + required this.newCommentVotes, + }); + + String status; + + int newCommentVotes; + + @override + bool operator ==(Object other) => identical(this, other) || other is AdjustVotesResponse && + other.status == status && + other.newCommentVotes == newCommentVotes; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (newCommentVotes.hashCode); + + + @override + String toString() => 'AdjustVotesResponse[status=$status, newCommentVotes=$newCommentVotes]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'newCommentVotes'] = this.newCommentVotes; + return json; + } + + /// Returns a new [AdjustVotesResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static AdjustVotesResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "AdjustVotesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "AdjustVotesResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'newCommentVotes'), 'Required key "AdjustVotesResponse[newCommentVotes]" is missing from JSON.'); + assert(json[r'newCommentVotes'] != null, 'Required key "AdjustVotesResponse[newCommentVotes]" has a null value in JSON.'); + return true; + }()); + + return AdjustVotesResponse( + status: mapValueOfType(json, r'status')!, + newCommentVotes: mapValueOfType(json, r'newCommentVotes')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = AdjustVotesResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = AdjustVotesResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of AdjustVotesResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = AdjustVotesResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'newCommentVotes', + }; +} + diff --git a/client/lib/model/aggregate_question_results200_response.dart b/client/lib/model/aggregate_question_results200_response.dart deleted file mode 100644 index 506ebdd..0000000 --- a/client/lib/model/aggregate_question_results200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AggregateQuestionResults200Response { - /// Returns a new [AggregateQuestionResults200Response] instance. - AggregateQuestionResults200Response({ - required this.status, - required this.data, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - QuestionResultAggregationOverall data; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is AggregateQuestionResults200Response && - other.status == status && - other.data == data && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (data.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'AggregateQuestionResults200Response[status=$status, data=$data, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'data'] = this.data; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [AggregateQuestionResults200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AggregateQuestionResults200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "AggregateQuestionResults200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "AggregateQuestionResults200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "AggregateQuestionResults200Response[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "AggregateQuestionResults200Response[data]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "AggregateQuestionResults200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "AggregateQuestionResults200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "AggregateQuestionResults200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "AggregateQuestionResults200Response[code]" has a null value in JSON.'); - return true; - }()); - - return AggregateQuestionResults200Response( - status: APIStatus.fromJson(json[r'status'])!, - data: QuestionResultAggregationOverall.fromJson(json[r'data'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AggregateQuestionResults200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AggregateQuestionResults200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AggregateQuestionResults200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AggregateQuestionResults200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'data', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/aggregate_question_results_response.dart b/client/lib/model/aggregate_question_results_response.dart index 2a29930..aebf533 100644 --- a/client/lib/model/aggregate_question_results_response.dart +++ b/client/lib/model/aggregate_question_results_response.dart @@ -24,13 +24,15 @@ class AggregateQuestionResultsResponse { @override bool operator ==(Object other) => identical(this, other) || other is AggregateQuestionResultsResponse && other.status == status && - other.data == data; + other.data == data; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (data.hashCode); + (data.hashCode); + @override String toString() => 'AggregateQuestionResultsResponse[status=$status, data=$data]'; diff --git a/client/lib/model/aggregate_response.dart b/client/lib/model/aggregate_response.dart new file mode 100644 index 0000000..28fa207 --- /dev/null +++ b/client/lib/model/aggregate_response.dart @@ -0,0 +1,176 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class AggregateResponse { + /// Returns a new [AggregateResponse] instance. + AggregateResponse({ + required this.status, + this.data = const [], + this.stats, + this.reason, + this.code, + this.validResourceNames = const [], + }); + + APIStatus status; + + List data; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + AggregationResponseStats? stats; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? reason; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + List validResourceNames; + + @override + bool operator ==(Object other) => identical(this, other) || other is AggregateResponse && + other.status == status && + _deepEquality.equals(other.data, data) && + other.stats == stats && + other.reason == reason && + other.code == code && + _deepEquality.equals(other.validResourceNames, validResourceNames); + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (data.hashCode) + + (stats == null ? 0 : stats!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode) + + (validResourceNames.hashCode); + + + @override + String toString() => 'AggregateResponse[status=$status, data=$data, stats=$stats, reason=$reason, code=$code, validResourceNames=$validResourceNames]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'data'] = this.data; + if (this.stats != null) { + json[r'stats'] = this.stats; + } else { + json[r'stats'] = null; + } + if (this.reason != null) { + json[r'reason'] = this.reason; + } else { + json[r'reason'] = null; + } + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + json[r'validResourceNames'] = this.validResourceNames; + return json; + } + + /// Returns a new [AggregateResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static AggregateResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "AggregateResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "AggregateResponse[status]" has a null value in JSON.'); + return true; + }()); + + return AggregateResponse( + status: APIStatus.fromJson(json[r'status'])!, + data: AggregationItem.listFromJson(json[r'data']), + stats: AggregationResponseStats.fromJson(json[r'stats']), + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), + validResourceNames: json[r'validResourceNames'] is Iterable + ? (json[r'validResourceNames'] as Iterable).cast().toList(growable: false) + : const [], + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = AggregateResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = AggregateResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of AggregateResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = AggregateResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/aggregation_api_error.dart b/client/lib/model/aggregation_api_error.dart new file mode 100644 index 0000000..e8e25e0 --- /dev/null +++ b/client/lib/model/aggregation_api_error.dart @@ -0,0 +1,138 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class AggregationAPIError { + /// Returns a new [AggregationAPIError] instance. + AggregationAPIError({ + required this.status, + required this.reason, + required this.code, + this.validResourceNames = const [], + }); + + APIStatus status; + + String reason; + + String code; + + List validResourceNames; + + @override + bool operator ==(Object other) => identical(this, other) || other is AggregationAPIError && + other.status == status && + other.reason == reason && + other.code == code && + _deepEquality.equals(other.validResourceNames, validResourceNames); + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (reason.hashCode) + + (code.hashCode) + + (validResourceNames.hashCode); + + + @override + String toString() => 'AggregationAPIError[status=$status, reason=$reason, code=$code, validResourceNames=$validResourceNames]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'reason'] = this.reason; + json[r'code'] = this.code; + json[r'validResourceNames'] = this.validResourceNames; + return json; + } + + /// Returns a new [AggregationAPIError] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static AggregationAPIError? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "AggregationAPIError[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "AggregationAPIError[status]" has a null value in JSON.'); + assert(json.containsKey(r'reason'), 'Required key "AggregationAPIError[reason]" is missing from JSON.'); + assert(json[r'reason'] != null, 'Required key "AggregationAPIError[reason]" has a null value in JSON.'); + assert(json.containsKey(r'code'), 'Required key "AggregationAPIError[code]" is missing from JSON.'); + assert(json[r'code'] != null, 'Required key "AggregationAPIError[code]" has a null value in JSON.'); + return true; + }()); + + return AggregationAPIError( + status: APIStatus.fromJson(json[r'status'])!, + reason: mapValueOfType(json, r'reason')!, + code: mapValueOfType(json, r'code')!, + validResourceNames: json[r'validResourceNames'] is Iterable + ? (json[r'validResourceNames'] as Iterable).cast().toList(growable: false) + : const [], + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = AggregationAPIError.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = AggregationAPIError.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of AggregationAPIError-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = AggregationAPIError.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'reason', + 'code', + }; +} + diff --git a/client/lib/model/aggregation_item.dart b/client/lib/model/aggregation_item.dart index 201fc3e..3484026 100644 --- a/client/lib/model/aggregation_item.dart +++ b/client/lib/model/aggregation_item.dart @@ -22,11 +22,13 @@ class AggregationItem { @override bool operator ==(Object other) => identical(this, other) || other is AggregationItem && _deepEquality.equals(other.groups, groups); + @override int get hashCode => // ignore: unnecessary_parenthesis (groups.hashCode); + @override String toString() => 'AggregationItem[groups=$groups]'; diff --git a/client/lib/model/aggregation_operation.dart b/client/lib/model/aggregation_operation.dart index 25d839b..246ece3 100644 --- a/client/lib/model/aggregation_operation.dart +++ b/client/lib/model/aggregation_operation.dart @@ -44,17 +44,19 @@ class AggregationOperation { @override bool operator ==(Object other) => identical(this, other) || other is AggregationOperation && other.field == field && - other.op == op && - other.alias == alias && - other.expandArray == expandArray; + other.op == op && + other.alias == alias && + other.expandArray == expandArray; + @override int get hashCode => // ignore: unnecessary_parenthesis (field.hashCode) + - (op.hashCode) + - (alias == null ? 0 : alias!.hashCode) + - (expandArray == null ? 0 : expandArray!.hashCode); + (op.hashCode) + + (alias == null ? 0 : alias!.hashCode) + + (expandArray == null ? 0 : expandArray!.hashCode); + @override String toString() => 'AggregationOperation[field=$field, op=$op, alias=$alias, expandArray=$expandArray]'; diff --git a/client/lib/model/aggregation_request.dart b/client/lib/model/aggregation_request.dart index 6f11dce..16d548e 100644 --- a/client/lib/model/aggregation_request.dart +++ b/client/lib/model/aggregation_request.dart @@ -39,19 +39,21 @@ class AggregationRequest { @override bool operator ==(Object other) => identical(this, other) || other is AggregationRequest && _deepEquality.equals(other.query, query) && - other.resourceName == resourceName && - _deepEquality.equals(other.groupBy, groupBy) && - _deepEquality.equals(other.operations, operations) && - other.sort == sort; + other.resourceName == resourceName && + _deepEquality.equals(other.groupBy, groupBy) && + _deepEquality.equals(other.operations, operations) && + other.sort == sort; + @override int get hashCode => // ignore: unnecessary_parenthesis (query.hashCode) + - (resourceName.hashCode) + - (groupBy.hashCode) + - (operations.hashCode) + - (sort == null ? 0 : sort!.hashCode); + (resourceName.hashCode) + + (groupBy.hashCode) + + (operations.hashCode) + + (sort == null ? 0 : sort!.hashCode); + @override String toString() => 'AggregationRequest[query=$query, resourceName=$resourceName, groupBy=$groupBy, operations=$operations, sort=$sort]'; diff --git a/client/lib/model/aggregation_request_sort.dart b/client/lib/model/aggregation_request_sort.dart index 3b2a5b4..adcca61 100644 --- a/client/lib/model/aggregation_request_sort.dart +++ b/client/lib/model/aggregation_request_sort.dart @@ -24,13 +24,15 @@ class AggregationRequestSort { @override bool operator ==(Object other) => identical(this, other) || other is AggregationRequestSort && other.dir == dir && - other.field == field; + other.field == field; + @override int get hashCode => // ignore: unnecessary_parenthesis (dir.hashCode) + - (field.hashCode); + (field.hashCode); + @override String toString() => 'AggregationRequestSort[dir=$dir, field=$field]'; diff --git a/client/lib/model/aggregation_response.dart b/client/lib/model/aggregation_response.dart index a7a5eda..72a48e0 100644 --- a/client/lib/model/aggregation_response.dart +++ b/client/lib/model/aggregation_response.dart @@ -33,15 +33,17 @@ class AggregationResponse { @override bool operator ==(Object other) => identical(this, other) || other is AggregationResponse && other.status == status && - _deepEquality.equals(other.data, data) && - other.stats == stats; + _deepEquality.equals(other.data, data) && + other.stats == stats; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (data.hashCode) + - (stats == null ? 0 : stats!.hashCode); + (data.hashCode) + + (stats == null ? 0 : stats!.hashCode); + @override String toString() => 'AggregationResponse[status=$status, data=$data, stats=$stats]'; diff --git a/client/lib/model/aggregation_response_stats.dart b/client/lib/model/aggregation_response_stats.dart index 8fe645c..85c8c25 100644 --- a/client/lib/model/aggregation_response_stats.dart +++ b/client/lib/model/aggregation_response_stats.dart @@ -24,13 +24,15 @@ class AggregationResponseStats { @override bool operator ==(Object other) => identical(this, other) || other is AggregationResponseStats && other.timeMS == timeMS && - other.scanned == scanned; + other.scanned == scanned; + @override int get hashCode => // ignore: unnecessary_parenthesis (timeMS.hashCode) + - (scanned.hashCode); + (scanned.hashCode); + @override String toString() => 'AggregationResponseStats[timeMS=$timeMS, scanned=$scanned]'; diff --git a/client/lib/model/aggregation_value.dart b/client/lib/model/aggregation_value.dart index 16c7e54..5bafb35 100644 --- a/client/lib/model/aggregation_value.dart +++ b/client/lib/model/aggregation_value.dart @@ -53,19 +53,21 @@ class AggregationValue { @override bool operator ==(Object other) => identical(this, other) || other is AggregationValue && _deepEquality.equals(other.groups, groups) && - other.stringValue == stringValue && - other.numericValue == numericValue && - other.distinctCount == distinctCount && - _deepEquality.equals(other.distinctCounts, distinctCounts); + other.stringValue == stringValue && + other.numericValue == numericValue && + other.distinctCount == distinctCount && + _deepEquality.equals(other.distinctCounts, distinctCounts); + @override int get hashCode => // ignore: unnecessary_parenthesis (groups.hashCode) + - (stringValue == null ? 0 : stringValue!.hashCode) + - (numericValue == null ? 0 : numericValue!.hashCode) + - (distinctCount == null ? 0 : distinctCount!.hashCode) + - (distinctCounts.hashCode); + (stringValue == null ? 0 : stringValue!.hashCode) + + (numericValue == null ? 0 : numericValue!.hashCode) + + (distinctCount == null ? 0 : distinctCount!.hashCode) + + (distinctCounts.hashCode); + @override String toString() => 'AggregationValue[groups=$groups, stringValue=$stringValue, numericValue=$numericValue, distinctCount=$distinctCount, distinctCounts=$distinctCounts]'; diff --git a/client/lib/model/api_audit_log.dart b/client/lib/model/api_audit_log.dart index cb03e1c..54a6b1e 100644 --- a/client/lib/model/api_audit_log.dart +++ b/client/lib/model/api_audit_log.dart @@ -85,33 +85,35 @@ class APIAuditLog { @override bool operator ==(Object other) => identical(this, other) || other is APIAuditLog && other.id == id && - other.userId == userId && - other.username == username && - other.resourceName == resourceName && - other.crudType == crudType && - other.from == from && - other.url == url && - other.ip == ip && - other.when_ == when_ && - other.description == description && - other.serverStartDate == serverStartDate && - _deepEquality.equals(other.objectDetails, objectDetails); + other.userId == userId && + other.username == username && + other.resourceName == resourceName && + other.crudType == crudType && + other.from == from && + other.url == url && + other.ip == ip && + other.when_ == when_ && + other.description == description && + other.serverStartDate == serverStartDate && + _deepEquality.equals(other.objectDetails, objectDetails); + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (username == null ? 0 : username!.hashCode) + - (resourceName.hashCode) + - (crudType.hashCode) + - (from == null ? 0 : from!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (ip == null ? 0 : ip!.hashCode) + - (when_ == null ? 0 : when_!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (serverStartDate == null ? 0 : serverStartDate!.hashCode) + - (objectDetails == null ? 0 : objectDetails!.hashCode); + (userId == null ? 0 : userId!.hashCode) + + (username == null ? 0 : username!.hashCode) + + (resourceName.hashCode) + + (crudType.hashCode) + + (from == null ? 0 : from!.hashCode) + + (url == null ? 0 : url!.hashCode) + + (ip == null ? 0 : ip!.hashCode) + + (when_ == null ? 0 : when_!.hashCode) + + (description == null ? 0 : description!.hashCode) + + (serverStartDate == null ? 0 : serverStartDate!.hashCode) + + (objectDetails == null ? 0 : objectDetails!.hashCode); + @override String toString() => 'APIAuditLog[id=$id, userId=$userId, username=$username, resourceName=$resourceName, crudType=$crudType, from=$from, url=$url, ip=$ip, when_=$when_, description=$description, serverStartDate=$serverStartDate, objectDetails=$objectDetails]'; diff --git a/client/lib/model/api_ban_user_change_log.dart b/client/lib/model/api_ban_user_change_log.dart new file mode 100644 index 0000000..698ac30 --- /dev/null +++ b/client/lib/model/api_ban_user_change_log.dart @@ -0,0 +1,157 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class APIBanUserChangeLog { + /// Returns a new [APIBanUserChangeLog] instance. + APIBanUserChangeLog({ + this.createdBannedUserId, + this.updatedBannedUserId, + this.deletedBannedUsers = const [], + this.changedValuesBefore, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? createdBannedUserId; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? updatedBannedUserId; + + List deletedBannedUsers; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + APIBanUserChangedValues? changedValuesBefore; + + @override + bool operator ==(Object other) => identical(this, other) || other is APIBanUserChangeLog && + other.createdBannedUserId == createdBannedUserId && + other.updatedBannedUserId == updatedBannedUserId && + _deepEquality.equals(other.deletedBannedUsers, deletedBannedUsers) && + other.changedValuesBefore == changedValuesBefore; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (createdBannedUserId == null ? 0 : createdBannedUserId!.hashCode) + + (updatedBannedUserId == null ? 0 : updatedBannedUserId!.hashCode) + + (deletedBannedUsers.hashCode) + + (changedValuesBefore == null ? 0 : changedValuesBefore!.hashCode); + + + @override + String toString() => 'APIBanUserChangeLog[createdBannedUserId=$createdBannedUserId, updatedBannedUserId=$updatedBannedUserId, deletedBannedUsers=$deletedBannedUsers, changedValuesBefore=$changedValuesBefore]'; + + Map toJson() { + final json = {}; + if (this.createdBannedUserId != null) { + json[r'createdBannedUserId'] = this.createdBannedUserId; + } else { + json[r'createdBannedUserId'] = null; + } + if (this.updatedBannedUserId != null) { + json[r'updatedBannedUserId'] = this.updatedBannedUserId; + } else { + json[r'updatedBannedUserId'] = null; + } + json[r'deletedBannedUsers'] = this.deletedBannedUsers; + if (this.changedValuesBefore != null) { + json[r'changedValuesBefore'] = this.changedValuesBefore; + } else { + json[r'changedValuesBefore'] = null; + } + return json; + } + + /// Returns a new [APIBanUserChangeLog] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static APIBanUserChangeLog? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + return true; + }()); + + return APIBanUserChangeLog( + createdBannedUserId: mapValueOfType(json, r'createdBannedUserId'), + updatedBannedUserId: mapValueOfType(json, r'updatedBannedUserId'), + deletedBannedUsers: APIBannedUser.listFromJson(json[r'deletedBannedUsers']), + changedValuesBefore: APIBanUserChangedValues.fromJson(json[r'changedValuesBefore']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = APIBanUserChangeLog.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = APIBanUserChangeLog.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of APIBanUserChangeLog-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = APIBanUserChangeLog.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/client/lib/model/api_ban_user_changed_values.dart b/client/lib/model/api_ban_user_changed_values.dart new file mode 100644 index 0000000..23aa832 --- /dev/null +++ b/client/lib/model/api_ban_user_changed_values.dart @@ -0,0 +1,290 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class APIBanUserChangedValues { + /// Returns a new [APIBanUserChangedValues] instance. + APIBanUserChangedValues({ + this.id, + this.tenantId, + this.userId, + this.email, + this.username, + this.ipHash, + this.createdAt, + this.bannedByUserId, + this.bannedCommentText, + this.banType, + this.bannedUntil, + this.hasEmailWildcard, + this.banReason, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? id; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? tenantId; + + String? userId; + + String? email; + + String? username; + + String? ipHash; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + DateTime? createdAt; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? bannedByUserId; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? bannedCommentText; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? banType; + + DateTime? bannedUntil; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? hasEmailWildcard; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? banReason; + + @override + bool operator ==(Object other) => identical(this, other) || other is APIBanUserChangedValues && + other.id == id && + other.tenantId == tenantId && + other.userId == userId && + other.email == email && + other.username == username && + other.ipHash == ipHash && + other.createdAt == createdAt && + other.bannedByUserId == bannedByUserId && + other.bannedCommentText == bannedCommentText && + other.banType == banType && + other.bannedUntil == bannedUntil && + other.hasEmailWildcard == hasEmailWildcard && + other.banReason == banReason; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (id == null ? 0 : id!.hashCode) + + (tenantId == null ? 0 : tenantId!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (email == null ? 0 : email!.hashCode) + + (username == null ? 0 : username!.hashCode) + + (ipHash == null ? 0 : ipHash!.hashCode) + + (createdAt == null ? 0 : createdAt!.hashCode) + + (bannedByUserId == null ? 0 : bannedByUserId!.hashCode) + + (bannedCommentText == null ? 0 : bannedCommentText!.hashCode) + + (banType == null ? 0 : banType!.hashCode) + + (bannedUntil == null ? 0 : bannedUntil!.hashCode) + + (hasEmailWildcard == null ? 0 : hasEmailWildcard!.hashCode) + + (banReason == null ? 0 : banReason!.hashCode); + + + @override + String toString() => 'APIBanUserChangedValues[id=$id, tenantId=$tenantId, userId=$userId, email=$email, username=$username, ipHash=$ipHash, createdAt=$createdAt, bannedByUserId=$bannedByUserId, bannedCommentText=$bannedCommentText, banType=$banType, bannedUntil=$bannedUntil, hasEmailWildcard=$hasEmailWildcard, banReason=$banReason]'; + + Map toJson() { + final json = {}; + if (this.id != null) { + json[r'_id'] = this.id; + } else { + json[r'_id'] = null; + } + if (this.tenantId != null) { + json[r'tenantId'] = this.tenantId; + } else { + json[r'tenantId'] = null; + } + if (this.userId != null) { + json[r'userId'] = this.userId; + } else { + json[r'userId'] = null; + } + if (this.email != null) { + json[r'email'] = this.email; + } else { + json[r'email'] = null; + } + if (this.username != null) { + json[r'username'] = this.username; + } else { + json[r'username'] = null; + } + if (this.ipHash != null) { + json[r'ipHash'] = this.ipHash; + } else { + json[r'ipHash'] = null; + } + if (this.createdAt != null) { + json[r'createdAt'] = this.createdAt!.toUtc().toIso8601String(); + } else { + json[r'createdAt'] = null; + } + if (this.bannedByUserId != null) { + json[r'bannedByUserId'] = this.bannedByUserId; + } else { + json[r'bannedByUserId'] = null; + } + if (this.bannedCommentText != null) { + json[r'bannedCommentText'] = this.bannedCommentText; + } else { + json[r'bannedCommentText'] = null; + } + if (this.banType != null) { + json[r'banType'] = this.banType; + } else { + json[r'banType'] = null; + } + if (this.bannedUntil != null) { + json[r'bannedUntil'] = this.bannedUntil!.toUtc().toIso8601String(); + } else { + json[r'bannedUntil'] = null; + } + if (this.hasEmailWildcard != null) { + json[r'hasEmailWildcard'] = this.hasEmailWildcard; + } else { + json[r'hasEmailWildcard'] = null; + } + if (this.banReason != null) { + json[r'banReason'] = this.banReason; + } else { + json[r'banReason'] = null; + } + return json; + } + + /// Returns a new [APIBanUserChangedValues] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static APIBanUserChangedValues? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + return true; + }()); + + return APIBanUserChangedValues( + id: mapValueOfType(json, r'_id'), + tenantId: mapValueOfType(json, r'tenantId'), + userId: mapValueOfType(json, r'userId'), + email: mapValueOfType(json, r'email'), + username: mapValueOfType(json, r'username'), + ipHash: mapValueOfType(json, r'ipHash'), + createdAt: mapDateTime(json, r'createdAt', r''), + bannedByUserId: mapValueOfType(json, r'bannedByUserId'), + bannedCommentText: mapValueOfType(json, r'bannedCommentText'), + banType: mapValueOfType(json, r'banType'), + bannedUntil: mapDateTime(json, r'bannedUntil', r''), + hasEmailWildcard: mapValueOfType(json, r'hasEmailWildcard'), + banReason: mapValueOfType(json, r'banReason'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = APIBanUserChangedValues.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = APIBanUserChangedValues.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of APIBanUserChangedValues-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = APIBanUserChangedValues.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/client/lib/model/api_banned_user.dart b/client/lib/model/api_banned_user.dart new file mode 100644 index 0000000..5aea73c --- /dev/null +++ b/client/lib/model/api_banned_user.dart @@ -0,0 +1,243 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class APIBannedUser { + /// Returns a new [APIBannedUser] instance. + APIBannedUser({ + required this.id, + required this.tenantId, + this.userId, + this.email, + this.username, + this.ipHash, + required this.createdAt, + required this.bannedByUserId, + required this.bannedCommentText, + required this.banType, + required this.bannedUntil, + required this.hasEmailWildcard, + this.banReason, + }); + + String id; + + String tenantId; + + String? userId; + + String? email; + + String? username; + + String? ipHash; + + DateTime createdAt; + + String bannedByUserId; + + String bannedCommentText; + + String banType; + + DateTime? bannedUntil; + + bool hasEmailWildcard; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? banReason; + + @override + bool operator ==(Object other) => identical(this, other) || other is APIBannedUser && + other.id == id && + other.tenantId == tenantId && + other.userId == userId && + other.email == email && + other.username == username && + other.ipHash == ipHash && + other.createdAt == createdAt && + other.bannedByUserId == bannedByUserId && + other.bannedCommentText == bannedCommentText && + other.banType == banType && + other.bannedUntil == bannedUntil && + other.hasEmailWildcard == hasEmailWildcard && + other.banReason == banReason; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (id.hashCode) + + (tenantId.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (email == null ? 0 : email!.hashCode) + + (username == null ? 0 : username!.hashCode) + + (ipHash == null ? 0 : ipHash!.hashCode) + + (createdAt.hashCode) + + (bannedByUserId.hashCode) + + (bannedCommentText.hashCode) + + (banType.hashCode) + + (bannedUntil == null ? 0 : bannedUntil!.hashCode) + + (hasEmailWildcard.hashCode) + + (banReason == null ? 0 : banReason!.hashCode); + + + @override + String toString() => 'APIBannedUser[id=$id, tenantId=$tenantId, userId=$userId, email=$email, username=$username, ipHash=$ipHash, createdAt=$createdAt, bannedByUserId=$bannedByUserId, bannedCommentText=$bannedCommentText, banType=$banType, bannedUntil=$bannedUntil, hasEmailWildcard=$hasEmailWildcard, banReason=$banReason]'; + + Map toJson() { + final json = {}; + json[r'_id'] = this.id; + json[r'tenantId'] = this.tenantId; + if (this.userId != null) { + json[r'userId'] = this.userId; + } else { + json[r'userId'] = null; + } + if (this.email != null) { + json[r'email'] = this.email; + } else { + json[r'email'] = null; + } + if (this.username != null) { + json[r'username'] = this.username; + } else { + json[r'username'] = null; + } + if (this.ipHash != null) { + json[r'ipHash'] = this.ipHash; + } else { + json[r'ipHash'] = null; + } + json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); + json[r'bannedByUserId'] = this.bannedByUserId; + json[r'bannedCommentText'] = this.bannedCommentText; + json[r'banType'] = this.banType; + if (this.bannedUntil != null) { + json[r'bannedUntil'] = this.bannedUntil!.toUtc().toIso8601String(); + } else { + json[r'bannedUntil'] = null; + } + json[r'hasEmailWildcard'] = this.hasEmailWildcard; + if (this.banReason != null) { + json[r'banReason'] = this.banReason; + } else { + json[r'banReason'] = null; + } + return json; + } + + /// Returns a new [APIBannedUser] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static APIBannedUser? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'_id'), 'Required key "APIBannedUser[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "APIBannedUser[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "APIBannedUser[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "APIBannedUser[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "APIBannedUser[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "APIBannedUser[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'bannedByUserId'), 'Required key "APIBannedUser[bannedByUserId]" is missing from JSON.'); + assert(json[r'bannedByUserId'] != null, 'Required key "APIBannedUser[bannedByUserId]" has a null value in JSON.'); + assert(json.containsKey(r'bannedCommentText'), 'Required key "APIBannedUser[bannedCommentText]" is missing from JSON.'); + assert(json[r'bannedCommentText'] != null, 'Required key "APIBannedUser[bannedCommentText]" has a null value in JSON.'); + assert(json.containsKey(r'banType'), 'Required key "APIBannedUser[banType]" is missing from JSON.'); + assert(json[r'banType'] != null, 'Required key "APIBannedUser[banType]" has a null value in JSON.'); + assert(json.containsKey(r'bannedUntil'), 'Required key "APIBannedUser[bannedUntil]" is missing from JSON.'); + assert(json.containsKey(r'hasEmailWildcard'), 'Required key "APIBannedUser[hasEmailWildcard]" is missing from JSON.'); + assert(json[r'hasEmailWildcard'] != null, 'Required key "APIBannedUser[hasEmailWildcard]" has a null value in JSON.'); + return true; + }()); + + return APIBannedUser( + id: mapValueOfType(json, r'_id')!, + tenantId: mapValueOfType(json, r'tenantId')!, + userId: mapValueOfType(json, r'userId'), + email: mapValueOfType(json, r'email'), + username: mapValueOfType(json, r'username'), + ipHash: mapValueOfType(json, r'ipHash'), + createdAt: mapDateTime(json, r'createdAt', r'')!, + bannedByUserId: mapValueOfType(json, r'bannedByUserId')!, + bannedCommentText: mapValueOfType(json, r'bannedCommentText')!, + banType: mapValueOfType(json, r'banType')!, + bannedUntil: mapDateTime(json, r'bannedUntil', r''), + hasEmailWildcard: mapValueOfType(json, r'hasEmailWildcard')!, + banReason: mapValueOfType(json, r'banReason'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = APIBannedUser.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = APIBannedUser.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of APIBannedUser-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = APIBannedUser.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + '_id', + 'tenantId', + 'createdAt', + 'bannedByUserId', + 'bannedCommentText', + 'banType', + 'bannedUntil', + 'hasEmailWildcard', + }; +} + diff --git a/client/lib/model/api_banned_user_with_multi_match_info.dart b/client/lib/model/api_banned_user_with_multi_match_info.dart new file mode 100644 index 0000000..28aa08d --- /dev/null +++ b/client/lib/model/api_banned_user_with_multi_match_info.dart @@ -0,0 +1,202 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class APIBannedUserWithMultiMatchInfo { + /// Returns a new [APIBannedUserWithMultiMatchInfo] instance. + APIBannedUserWithMultiMatchInfo({ + required this.id, + this.userId, + required this.banType, + this.email, + this.ipHash, + required this.bannedUntil, + required this.hasEmailWildcard, + this.banReason, + this.matches = const [], + }); + + String id; + + String? userId; + + String banType; + + String? email; + + String? ipHash; + + DateTime? bannedUntil; + + bool hasEmailWildcard; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? banReason; + + List matches; + + @override + bool operator ==(Object other) => identical(this, other) || other is APIBannedUserWithMultiMatchInfo && + other.id == id && + other.userId == userId && + other.banType == banType && + other.email == email && + other.ipHash == ipHash && + other.bannedUntil == bannedUntil && + other.hasEmailWildcard == hasEmailWildcard && + other.banReason == banReason && + _deepEquality.equals(other.matches, matches); + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (id.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (banType.hashCode) + + (email == null ? 0 : email!.hashCode) + + (ipHash == null ? 0 : ipHash!.hashCode) + + (bannedUntil == null ? 0 : bannedUntil!.hashCode) + + (hasEmailWildcard.hashCode) + + (banReason == null ? 0 : banReason!.hashCode) + + (matches.hashCode); + + + @override + String toString() => 'APIBannedUserWithMultiMatchInfo[id=$id, userId=$userId, banType=$banType, email=$email, ipHash=$ipHash, bannedUntil=$bannedUntil, hasEmailWildcard=$hasEmailWildcard, banReason=$banReason, matches=$matches]'; + + Map toJson() { + final json = {}; + json[r'_id'] = this.id; + if (this.userId != null) { + json[r'userId'] = this.userId; + } else { + json[r'userId'] = null; + } + json[r'banType'] = this.banType; + if (this.email != null) { + json[r'email'] = this.email; + } else { + json[r'email'] = null; + } + if (this.ipHash != null) { + json[r'ipHash'] = this.ipHash; + } else { + json[r'ipHash'] = null; + } + if (this.bannedUntil != null) { + json[r'bannedUntil'] = this.bannedUntil!.toUtc().toIso8601String(); + } else { + json[r'bannedUntil'] = null; + } + json[r'hasEmailWildcard'] = this.hasEmailWildcard; + if (this.banReason != null) { + json[r'banReason'] = this.banReason; + } else { + json[r'banReason'] = null; + } + json[r'matches'] = this.matches; + return json; + } + + /// Returns a new [APIBannedUserWithMultiMatchInfo] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static APIBannedUserWithMultiMatchInfo? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'_id'), 'Required key "APIBannedUserWithMultiMatchInfo[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "APIBannedUserWithMultiMatchInfo[_id]" has a null value in JSON.'); + assert(json.containsKey(r'banType'), 'Required key "APIBannedUserWithMultiMatchInfo[banType]" is missing from JSON.'); + assert(json[r'banType'] != null, 'Required key "APIBannedUserWithMultiMatchInfo[banType]" has a null value in JSON.'); + assert(json.containsKey(r'bannedUntil'), 'Required key "APIBannedUserWithMultiMatchInfo[bannedUntil]" is missing from JSON.'); + assert(json.containsKey(r'hasEmailWildcard'), 'Required key "APIBannedUserWithMultiMatchInfo[hasEmailWildcard]" is missing from JSON.'); + assert(json[r'hasEmailWildcard'] != null, 'Required key "APIBannedUserWithMultiMatchInfo[hasEmailWildcard]" has a null value in JSON.'); + assert(json.containsKey(r'matches'), 'Required key "APIBannedUserWithMultiMatchInfo[matches]" is missing from JSON.'); + assert(json[r'matches'] != null, 'Required key "APIBannedUserWithMultiMatchInfo[matches]" has a null value in JSON.'); + return true; + }()); + + return APIBannedUserWithMultiMatchInfo( + id: mapValueOfType(json, r'_id')!, + userId: mapValueOfType(json, r'userId'), + banType: mapValueOfType(json, r'banType')!, + email: mapValueOfType(json, r'email'), + ipHash: mapValueOfType(json, r'ipHash'), + bannedUntil: mapDateTime(json, r'bannedUntil', r''), + hasEmailWildcard: mapValueOfType(json, r'hasEmailWildcard')!, + banReason: mapValueOfType(json, r'banReason'), + matches: BannedUserMatch.listFromJson(json[r'matches']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = APIBannedUserWithMultiMatchInfo.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = APIBannedUserWithMultiMatchInfo.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of APIBannedUserWithMultiMatchInfo-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = APIBannedUserWithMultiMatchInfo.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + '_id', + 'banType', + 'bannedUntil', + 'hasEmailWildcard', + 'matches', + }; +} + diff --git a/client/lib/model/api_comment.dart b/client/lib/model/api_comment.dart index 07d8b75..32dc343 100644 --- a/client/lib/model/api_comment.dart +++ b/client/lib/model/api_comment.dart @@ -267,115 +267,117 @@ class APIComment { @override bool operator ==(Object other) => identical(this, other) || other is APIComment && other.id == id && - other.aiDeterminedSpam == aiDeterminedSpam && - other.anonUserId == anonUserId && - other.approved == approved && - other.avatarSrc == avatarSrc && - _deepEquality.equals(other.badges, badges) && - other.comment == comment && - other.commentHTML == commentHTML && - other.commenterEmail == commenterEmail && - other.commenterLink == commenterLink && - other.commenterName == commenterName && - other.date == date && - other.displayLabel == displayLabel && - other.domain == domain && - other.externalId == externalId && - other.externalParentId == externalParentId && - other.expireAt == expireAt && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - other.flagCount == flagCount && - other.fromProductId == fromProductId && - other.hasCode == hasCode && - other.hasImages == hasImages && - other.hasLinks == hasLinks && - _deepEquality.equals(other.hashTags, hashTags) && - other.isByAdmin == isByAdmin && - other.isByModerator == isByModerator && - other.isDeleted == isDeleted && - other.isDeletedUser == isDeletedUser && - other.isPinned == isPinned && - other.isLocked == isLocked && - other.isSpam == isSpam && - other.localDateHours == localDateHours && - other.localDateString == localDateString && - other.locale == locale && - _deepEquality.equals(other.mentions, mentions) && - other.meta == meta && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && - other.notificationSentForParent == notificationSentForParent && - other.notificationSentForParentTenant == notificationSentForParentTenant && - other.pageTitle == pageTitle && - other.parentId == parentId && - other.rating == rating && - other.reviewed == reviewed && - other.tenantId == tenantId && - other.url == url && - other.urlId == urlId && - other.urlIdRaw == urlIdRaw && - other.userId == userId && - other.verified == verified && - other.verifiedDate == verifiedDate && - other.votes == votes && - other.votesDown == votesDown && - other.votesUp == votesUp; + other.aiDeterminedSpam == aiDeterminedSpam && + other.anonUserId == anonUserId && + other.approved == approved && + other.avatarSrc == avatarSrc && + _deepEquality.equals(other.badges, badges) && + other.comment == comment && + other.commentHTML == commentHTML && + other.commenterEmail == commenterEmail && + other.commenterLink == commenterLink && + other.commenterName == commenterName && + other.date == date && + other.displayLabel == displayLabel && + other.domain == domain && + other.externalId == externalId && + other.externalParentId == externalParentId && + other.expireAt == expireAt && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + other.flagCount == flagCount && + other.fromProductId == fromProductId && + other.hasCode == hasCode && + other.hasImages == hasImages && + other.hasLinks == hasLinks && + _deepEquality.equals(other.hashTags, hashTags) && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isDeleted == isDeleted && + other.isDeletedUser == isDeletedUser && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.isSpam == isSpam && + other.localDateHours == localDateHours && + other.localDateString == localDateString && + other.locale == locale && + _deepEquality.equals(other.mentions, mentions) && + other.meta == meta && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && + other.notificationSentForParent == notificationSentForParent && + other.notificationSentForParentTenant == notificationSentForParentTenant && + other.pageTitle == pageTitle && + other.parentId == parentId && + other.rating == rating && + other.reviewed == reviewed && + other.tenantId == tenantId && + other.url == url && + other.urlId == urlId && + other.urlIdRaw == urlIdRaw && + other.userId == userId && + other.verified == verified && + other.verifiedDate == verifiedDate && + other.votes == votes && + other.votesDown == votesDown && + other.votesUp == votesUp; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (aiDeterminedSpam == null ? 0 : aiDeterminedSpam!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (approved.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (badges == null ? 0 : badges!.hashCode) + - (comment.hashCode) + - (commentHTML.hashCode) + - (commenterEmail == null ? 0 : commenterEmail!.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (commenterName.hashCode) + - (date == null ? 0 : date!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (externalId == null ? 0 : externalId!.hashCode) + - (externalParentId == null ? 0 : externalParentId!.hashCode) + - (expireAt == null ? 0 : expireAt!.hashCode) + - (feedbackIds.hashCode) + - (flagCount == null ? 0 : flagCount!.hashCode) + - (fromProductId == null ? 0 : fromProductId!.hashCode) + - (hasCode == null ? 0 : hasCode!.hashCode) + - (hasImages == null ? 0 : hasImages!.hashCode) + - (hasLinks == null ? 0 : hasLinks!.hashCode) + - (hashTags.hashCode) + - (isByAdmin == null ? 0 : isByAdmin!.hashCode) + - (isByModerator == null ? 0 : isByModerator!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (isLocked == null ? 0 : isLocked!.hashCode) + - (isSpam == null ? 0 : isSpam!.hashCode) + - (localDateHours == null ? 0 : localDateHours!.hashCode) + - (localDateString == null ? 0 : localDateString!.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (mentions.hashCode) + - (meta == null ? 0 : meta!.hashCode) + - (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + - (notificationSentForParent == null ? 0 : notificationSentForParent!.hashCode) + - (notificationSentForParentTenant == null ? 0 : notificationSentForParentTenant!.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (reviewed == null ? 0 : reviewed!.hashCode) + - (tenantId.hashCode) + - (url.hashCode) + - (urlId.hashCode) + - (urlIdRaw == null ? 0 : urlIdRaw!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (verified.hashCode) + - (verifiedDate == null ? 0 : verifiedDate!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode); + (aiDeterminedSpam == null ? 0 : aiDeterminedSpam!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (approved.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (badges == null ? 0 : badges!.hashCode) + + (comment.hashCode) + + (commentHTML.hashCode) + + (commenterEmail == null ? 0 : commenterEmail!.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (commenterName.hashCode) + + (date == null ? 0 : date!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (externalId == null ? 0 : externalId!.hashCode) + + (externalParentId == null ? 0 : externalParentId!.hashCode) + + (expireAt == null ? 0 : expireAt!.hashCode) + + (feedbackIds.hashCode) + + (flagCount == null ? 0 : flagCount!.hashCode) + + (fromProductId == null ? 0 : fromProductId!.hashCode) + + (hasCode == null ? 0 : hasCode!.hashCode) + + (hasImages == null ? 0 : hasImages!.hashCode) + + (hasLinks == null ? 0 : hasLinks!.hashCode) + + (hashTags.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode) + + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (localDateHours == null ? 0 : localDateHours!.hashCode) + + (localDateString == null ? 0 : localDateString!.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (mentions.hashCode) + + (meta == null ? 0 : meta!.hashCode) + + (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + + (notificationSentForParent == null ? 0 : notificationSentForParent!.hashCode) + + (notificationSentForParentTenant == null ? 0 : notificationSentForParentTenant!.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (reviewed == null ? 0 : reviewed!.hashCode) + + (tenantId.hashCode) + + (url.hashCode) + + (urlId.hashCode) + + (urlIdRaw == null ? 0 : urlIdRaw!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (verified.hashCode) + + (verifiedDate == null ? 0 : verifiedDate!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode); + @override String toString() => 'APIComment[id=$id, aiDeterminedSpam=$aiDeterminedSpam, anonUserId=$anonUserId, approved=$approved, avatarSrc=$avatarSrc, badges=$badges, comment=$comment, commentHTML=$commentHTML, commenterEmail=$commenterEmail, commenterLink=$commenterLink, commenterName=$commenterName, date=$date, displayLabel=$displayLabel, domain=$domain, externalId=$externalId, externalParentId=$externalParentId, expireAt=$expireAt, feedbackIds=$feedbackIds, flagCount=$flagCount, fromProductId=$fromProductId, hasCode=$hasCode, hasImages=$hasImages, hasLinks=$hasLinks, hashTags=$hashTags, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isDeleted=$isDeleted, isDeletedUser=$isDeletedUser, isPinned=$isPinned, isLocked=$isLocked, isSpam=$isSpam, localDateHours=$localDateHours, localDateString=$localDateString, locale=$locale, mentions=$mentions, meta=$meta, moderationGroupIds=$moderationGroupIds, notificationSentForParent=$notificationSentForParent, notificationSentForParentTenant=$notificationSentForParentTenant, pageTitle=$pageTitle, parentId=$parentId, rating=$rating, reviewed=$reviewed, tenantId=$tenantId, url=$url, urlId=$urlId, urlIdRaw=$urlIdRaw, userId=$userId, verified=$verified, verifiedDate=$verifiedDate, votes=$votes, votesDown=$votesDown, votesUp=$votesUp]'; diff --git a/client/lib/model/api_comment_base.dart b/client/lib/model/api_comment_base.dart index 43bffdd..494dbc1 100644 --- a/client/lib/model/api_comment_base.dart +++ b/client/lib/model/api_comment_base.dart @@ -267,115 +267,117 @@ class APICommentBase { @override bool operator ==(Object other) => identical(this, other) || other is APICommentBase && other.id == id && - other.aiDeterminedSpam == aiDeterminedSpam && - other.anonUserId == anonUserId && - other.approved == approved && - other.avatarSrc == avatarSrc && - _deepEquality.equals(other.badges, badges) && - other.comment == comment && - other.commentHTML == commentHTML && - other.commenterEmail == commenterEmail && - other.commenterLink == commenterLink && - other.commenterName == commenterName && - other.date == date && - other.displayLabel == displayLabel && - other.domain == domain && - other.externalId == externalId && - other.externalParentId == externalParentId && - other.expireAt == expireAt && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - other.flagCount == flagCount && - other.fromProductId == fromProductId && - other.hasCode == hasCode && - other.hasImages == hasImages && - other.hasLinks == hasLinks && - _deepEquality.equals(other.hashTags, hashTags) && - other.isByAdmin == isByAdmin && - other.isByModerator == isByModerator && - other.isDeleted == isDeleted && - other.isDeletedUser == isDeletedUser && - other.isPinned == isPinned && - other.isLocked == isLocked && - other.isSpam == isSpam && - other.localDateHours == localDateHours && - other.localDateString == localDateString && - other.locale == locale && - _deepEquality.equals(other.mentions, mentions) && - other.meta == meta && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && - other.notificationSentForParent == notificationSentForParent && - other.notificationSentForParentTenant == notificationSentForParentTenant && - other.pageTitle == pageTitle && - other.parentId == parentId && - other.rating == rating && - other.reviewed == reviewed && - other.tenantId == tenantId && - other.url == url && - other.urlId == urlId && - other.urlIdRaw == urlIdRaw && - other.userId == userId && - other.verified == verified && - other.verifiedDate == verifiedDate && - other.votes == votes && - other.votesDown == votesDown && - other.votesUp == votesUp; + other.aiDeterminedSpam == aiDeterminedSpam && + other.anonUserId == anonUserId && + other.approved == approved && + other.avatarSrc == avatarSrc && + _deepEquality.equals(other.badges, badges) && + other.comment == comment && + other.commentHTML == commentHTML && + other.commenterEmail == commenterEmail && + other.commenterLink == commenterLink && + other.commenterName == commenterName && + other.date == date && + other.displayLabel == displayLabel && + other.domain == domain && + other.externalId == externalId && + other.externalParentId == externalParentId && + other.expireAt == expireAt && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + other.flagCount == flagCount && + other.fromProductId == fromProductId && + other.hasCode == hasCode && + other.hasImages == hasImages && + other.hasLinks == hasLinks && + _deepEquality.equals(other.hashTags, hashTags) && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isDeleted == isDeleted && + other.isDeletedUser == isDeletedUser && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.isSpam == isSpam && + other.localDateHours == localDateHours && + other.localDateString == localDateString && + other.locale == locale && + _deepEquality.equals(other.mentions, mentions) && + other.meta == meta && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && + other.notificationSentForParent == notificationSentForParent && + other.notificationSentForParentTenant == notificationSentForParentTenant && + other.pageTitle == pageTitle && + other.parentId == parentId && + other.rating == rating && + other.reviewed == reviewed && + other.tenantId == tenantId && + other.url == url && + other.urlId == urlId && + other.urlIdRaw == urlIdRaw && + other.userId == userId && + other.verified == verified && + other.verifiedDate == verifiedDate && + other.votes == votes && + other.votesDown == votesDown && + other.votesUp == votesUp; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (aiDeterminedSpam == null ? 0 : aiDeterminedSpam!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (approved.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (badges == null ? 0 : badges!.hashCode) + - (comment.hashCode) + - (commentHTML.hashCode) + - (commenterEmail == null ? 0 : commenterEmail!.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (commenterName.hashCode) + - (date == null ? 0 : date!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (externalId == null ? 0 : externalId!.hashCode) + - (externalParentId == null ? 0 : externalParentId!.hashCode) + - (expireAt == null ? 0 : expireAt!.hashCode) + - (feedbackIds.hashCode) + - (flagCount == null ? 0 : flagCount!.hashCode) + - (fromProductId == null ? 0 : fromProductId!.hashCode) + - (hasCode == null ? 0 : hasCode!.hashCode) + - (hasImages == null ? 0 : hasImages!.hashCode) + - (hasLinks == null ? 0 : hasLinks!.hashCode) + - (hashTags.hashCode) + - (isByAdmin == null ? 0 : isByAdmin!.hashCode) + - (isByModerator == null ? 0 : isByModerator!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (isLocked == null ? 0 : isLocked!.hashCode) + - (isSpam == null ? 0 : isSpam!.hashCode) + - (localDateHours == null ? 0 : localDateHours!.hashCode) + - (localDateString == null ? 0 : localDateString!.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (mentions.hashCode) + - (meta == null ? 0 : meta!.hashCode) + - (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + - (notificationSentForParent == null ? 0 : notificationSentForParent!.hashCode) + - (notificationSentForParentTenant == null ? 0 : notificationSentForParentTenant!.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (reviewed == null ? 0 : reviewed!.hashCode) + - (tenantId.hashCode) + - (url.hashCode) + - (urlId.hashCode) + - (urlIdRaw == null ? 0 : urlIdRaw!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (verified.hashCode) + - (verifiedDate == null ? 0 : verifiedDate!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode); + (aiDeterminedSpam == null ? 0 : aiDeterminedSpam!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (approved.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (badges == null ? 0 : badges!.hashCode) + + (comment.hashCode) + + (commentHTML.hashCode) + + (commenterEmail == null ? 0 : commenterEmail!.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (commenterName.hashCode) + + (date == null ? 0 : date!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (externalId == null ? 0 : externalId!.hashCode) + + (externalParentId == null ? 0 : externalParentId!.hashCode) + + (expireAt == null ? 0 : expireAt!.hashCode) + + (feedbackIds.hashCode) + + (flagCount == null ? 0 : flagCount!.hashCode) + + (fromProductId == null ? 0 : fromProductId!.hashCode) + + (hasCode == null ? 0 : hasCode!.hashCode) + + (hasImages == null ? 0 : hasImages!.hashCode) + + (hasLinks == null ? 0 : hasLinks!.hashCode) + + (hashTags.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode) + + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (localDateHours == null ? 0 : localDateHours!.hashCode) + + (localDateString == null ? 0 : localDateString!.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (mentions.hashCode) + + (meta == null ? 0 : meta!.hashCode) + + (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + + (notificationSentForParent == null ? 0 : notificationSentForParent!.hashCode) + + (notificationSentForParentTenant == null ? 0 : notificationSentForParentTenant!.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (reviewed == null ? 0 : reviewed!.hashCode) + + (tenantId.hashCode) + + (url.hashCode) + + (urlId.hashCode) + + (urlIdRaw == null ? 0 : urlIdRaw!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (verified.hashCode) + + (verifiedDate == null ? 0 : verifiedDate!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode); + @override String toString() => 'APICommentBase[id=$id, aiDeterminedSpam=$aiDeterminedSpam, anonUserId=$anonUserId, approved=$approved, avatarSrc=$avatarSrc, badges=$badges, comment=$comment, commentHTML=$commentHTML, commenterEmail=$commenterEmail, commenterLink=$commenterLink, commenterName=$commenterName, date=$date, displayLabel=$displayLabel, domain=$domain, externalId=$externalId, externalParentId=$externalParentId, expireAt=$expireAt, feedbackIds=$feedbackIds, flagCount=$flagCount, fromProductId=$fromProductId, hasCode=$hasCode, hasImages=$hasImages, hasLinks=$hasLinks, hashTags=$hashTags, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isDeleted=$isDeleted, isDeletedUser=$isDeletedUser, isPinned=$isPinned, isLocked=$isLocked, isSpam=$isSpam, localDateHours=$localDateHours, localDateString=$localDateString, locale=$locale, mentions=$mentions, meta=$meta, moderationGroupIds=$moderationGroupIds, notificationSentForParent=$notificationSentForParent, notificationSentForParentTenant=$notificationSentForParentTenant, pageTitle=$pageTitle, parentId=$parentId, rating=$rating, reviewed=$reviewed, tenantId=$tenantId, url=$url, urlId=$urlId, urlIdRaw=$urlIdRaw, userId=$userId, verified=$verified, verifiedDate=$verifiedDate, votes=$votes, votesDown=$votesDown, votesUp=$votesUp]'; diff --git a/client/lib/model/api_comment_base_meta.dart b/client/lib/model/api_comment_base_meta.dart index 523a563..7aef5e9 100644 --- a/client/lib/model/api_comment_base_meta.dart +++ b/client/lib/model/api_comment_base_meta.dart @@ -36,13 +36,15 @@ class APICommentBaseMeta { @override bool operator ==(Object other) => identical(this, other) || other is APICommentBaseMeta && other.wpUserId == wpUserId && - other.wpPostId == wpPostId; + other.wpPostId == wpPostId; + @override int get hashCode => // ignore: unnecessary_parenthesis (wpUserId == null ? 0 : wpUserId!.hashCode) + - (wpPostId == null ? 0 : wpPostId!.hashCode); + (wpPostId == null ? 0 : wpPostId!.hashCode); + @override String toString() => 'APICommentBaseMeta[wpUserId=$wpUserId, wpPostId=$wpPostId]'; diff --git a/client/lib/model/api_comment_common_banned_user.dart b/client/lib/model/api_comment_common_banned_user.dart new file mode 100644 index 0000000..4101681 --- /dev/null +++ b/client/lib/model/api_comment_common_banned_user.dart @@ -0,0 +1,192 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class APICommentCommonBannedUser { + /// Returns a new [APICommentCommonBannedUser] instance. + APICommentCommonBannedUser({ + required this.id, + this.userId, + required this.banType, + this.email, + this.ipHash, + required this.bannedUntil, + required this.hasEmailWildcard, + this.banReason, + }); + + String id; + + String? userId; + + String banType; + + String? email; + + String? ipHash; + + DateTime? bannedUntil; + + bool hasEmailWildcard; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? banReason; + + @override + bool operator ==(Object other) => identical(this, other) || other is APICommentCommonBannedUser && + other.id == id && + other.userId == userId && + other.banType == banType && + other.email == email && + other.ipHash == ipHash && + other.bannedUntil == bannedUntil && + other.hasEmailWildcard == hasEmailWildcard && + other.banReason == banReason; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (id.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (banType.hashCode) + + (email == null ? 0 : email!.hashCode) + + (ipHash == null ? 0 : ipHash!.hashCode) + + (bannedUntil == null ? 0 : bannedUntil!.hashCode) + + (hasEmailWildcard.hashCode) + + (banReason == null ? 0 : banReason!.hashCode); + + + @override + String toString() => 'APICommentCommonBannedUser[id=$id, userId=$userId, banType=$banType, email=$email, ipHash=$ipHash, bannedUntil=$bannedUntil, hasEmailWildcard=$hasEmailWildcard, banReason=$banReason]'; + + Map toJson() { + final json = {}; + json[r'_id'] = this.id; + if (this.userId != null) { + json[r'userId'] = this.userId; + } else { + json[r'userId'] = null; + } + json[r'banType'] = this.banType; + if (this.email != null) { + json[r'email'] = this.email; + } else { + json[r'email'] = null; + } + if (this.ipHash != null) { + json[r'ipHash'] = this.ipHash; + } else { + json[r'ipHash'] = null; + } + if (this.bannedUntil != null) { + json[r'bannedUntil'] = this.bannedUntil!.toUtc().toIso8601String(); + } else { + json[r'bannedUntil'] = null; + } + json[r'hasEmailWildcard'] = this.hasEmailWildcard; + if (this.banReason != null) { + json[r'banReason'] = this.banReason; + } else { + json[r'banReason'] = null; + } + return json; + } + + /// Returns a new [APICommentCommonBannedUser] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static APICommentCommonBannedUser? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'_id'), 'Required key "APICommentCommonBannedUser[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "APICommentCommonBannedUser[_id]" has a null value in JSON.'); + assert(json.containsKey(r'banType'), 'Required key "APICommentCommonBannedUser[banType]" is missing from JSON.'); + assert(json[r'banType'] != null, 'Required key "APICommentCommonBannedUser[banType]" has a null value in JSON.'); + assert(json.containsKey(r'bannedUntil'), 'Required key "APICommentCommonBannedUser[bannedUntil]" is missing from JSON.'); + assert(json.containsKey(r'hasEmailWildcard'), 'Required key "APICommentCommonBannedUser[hasEmailWildcard]" is missing from JSON.'); + assert(json[r'hasEmailWildcard'] != null, 'Required key "APICommentCommonBannedUser[hasEmailWildcard]" has a null value in JSON.'); + return true; + }()); + + return APICommentCommonBannedUser( + id: mapValueOfType(json, r'_id')!, + userId: mapValueOfType(json, r'userId'), + banType: mapValueOfType(json, r'banType')!, + email: mapValueOfType(json, r'email'), + ipHash: mapValueOfType(json, r'ipHash'), + bannedUntil: mapDateTime(json, r'bannedUntil', r''), + hasEmailWildcard: mapValueOfType(json, r'hasEmailWildcard')!, + banReason: mapValueOfType(json, r'banReason'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = APICommentCommonBannedUser.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = APICommentCommonBannedUser.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of APICommentCommonBannedUser-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = APICommentCommonBannedUser.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + '_id', + 'banType', + 'bannedUntil', + 'hasEmailWildcard', + }; +} + diff --git a/client/lib/model/api_create_user_badge_response.dart b/client/lib/model/api_create_user_badge_response.dart index 7a0782e..2c4fb8a 100644 --- a/client/lib/model/api_create_user_badge_response.dart +++ b/client/lib/model/api_create_user_badge_response.dart @@ -27,15 +27,17 @@ class APICreateUserBadgeResponse { @override bool operator ==(Object other) => identical(this, other) || other is APICreateUserBadgeResponse && other.status == status && - other.userBadge == userBadge && - _deepEquality.equals(other.notes, notes); + other.userBadge == userBadge && + _deepEquality.equals(other.notes, notes); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (userBadge.hashCode) + - (notes.hashCode); + (userBadge.hashCode) + + (notes.hashCode); + @override String toString() => 'APICreateUserBadgeResponse[status=$status, userBadge=$userBadge, notes=$notes]'; diff --git a/client/lib/model/api_domain_configuration.dart b/client/lib/model/api_domain_configuration.dart index f7b8bfd..926315c 100644 --- a/client/lib/model/api_domain_configuration.dart +++ b/client/lib/model/api_domain_configuration.dart @@ -94,39 +94,41 @@ class APIDomainConfiguration { @override bool operator ==(Object other) => identical(this, other) || other is APIDomainConfiguration && other.id == id && - other.domain == domain && - other.emailFromName == emailFromName && - other.emailFromEmail == emailFromEmail && - _deepEquality.equals(other.emailHeaders, emailHeaders) && - other.wpSyncToken == wpSyncToken && - other.wpSynced == wpSynced && - other.wpURL == wpURL && - other.createdAt == createdAt && - other.autoAddedDate == autoAddedDate && - other.siteType == siteType && - other.logoSrc == logoSrc && - other.logoSrc100px == logoSrc100px && - other.footerUnsubscribeURL == footerUnsubscribeURL && - other.disableUnsubscribeLinks == disableUnsubscribeLinks; + other.domain == domain && + other.emailFromName == emailFromName && + other.emailFromEmail == emailFromEmail && + _deepEquality.equals(other.emailHeaders, emailHeaders) && + other.wpSyncToken == wpSyncToken && + other.wpSynced == wpSynced && + other.wpURL == wpURL && + other.createdAt == createdAt && + other.autoAddedDate == autoAddedDate && + other.siteType == siteType && + other.logoSrc == logoSrc && + other.logoSrc100px == logoSrc100px && + other.footerUnsubscribeURL == footerUnsubscribeURL && + other.disableUnsubscribeLinks == disableUnsubscribeLinks; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (domain.hashCode) + - (emailFromName == null ? 0 : emailFromName!.hashCode) + - (emailFromEmail == null ? 0 : emailFromEmail!.hashCode) + - (emailHeaders.hashCode) + - (wpSyncToken == null ? 0 : wpSyncToken!.hashCode) + - (wpSynced == null ? 0 : wpSynced!.hashCode) + - (wpURL == null ? 0 : wpURL!.hashCode) + - (createdAt.hashCode) + - (autoAddedDate == null ? 0 : autoAddedDate!.hashCode) + - (siteType == null ? 0 : siteType!.hashCode) + - (logoSrc == null ? 0 : logoSrc!.hashCode) + - (logoSrc100px == null ? 0 : logoSrc100px!.hashCode) + - (footerUnsubscribeURL == null ? 0 : footerUnsubscribeURL!.hashCode) + - (disableUnsubscribeLinks == null ? 0 : disableUnsubscribeLinks!.hashCode); + (domain.hashCode) + + (emailFromName == null ? 0 : emailFromName!.hashCode) + + (emailFromEmail == null ? 0 : emailFromEmail!.hashCode) + + (emailHeaders.hashCode) + + (wpSyncToken == null ? 0 : wpSyncToken!.hashCode) + + (wpSynced == null ? 0 : wpSynced!.hashCode) + + (wpURL == null ? 0 : wpURL!.hashCode) + + (createdAt.hashCode) + + (autoAddedDate == null ? 0 : autoAddedDate!.hashCode) + + (siteType == null ? 0 : siteType!.hashCode) + + (logoSrc == null ? 0 : logoSrc!.hashCode) + + (logoSrc100px == null ? 0 : logoSrc100px!.hashCode) + + (footerUnsubscribeURL == null ? 0 : footerUnsubscribeURL!.hashCode) + + (disableUnsubscribeLinks == null ? 0 : disableUnsubscribeLinks!.hashCode); + @override String toString() => 'APIDomainConfiguration[id=$id, domain=$domain, emailFromName=$emailFromName, emailFromEmail=$emailFromEmail, emailHeaders=$emailHeaders, wpSyncToken=$wpSyncToken, wpSynced=$wpSynced, wpURL=$wpURL, createdAt=$createdAt, autoAddedDate=$autoAddedDate, siteType=$siteType, logoSrc=$logoSrc, logoSrc100px=$logoSrc100px, footerUnsubscribeURL=$footerUnsubscribeURL, disableUnsubscribeLinks=$disableUnsubscribeLinks]'; diff --git a/client/lib/model/api_empty_response.dart b/client/lib/model/api_empty_response.dart index 953fb81..4858ed3 100644 --- a/client/lib/model/api_empty_response.dart +++ b/client/lib/model/api_empty_response.dart @@ -21,11 +21,13 @@ class APIEmptyResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIEmptyResponse && other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode); + @override String toString() => 'APIEmptyResponse[status=$status]'; diff --git a/client/lib/model/api_empty_success_response.dart b/client/lib/model/api_empty_success_response.dart index b35f81d..50dc768 100644 --- a/client/lib/model/api_empty_success_response.dart +++ b/client/lib/model/api_empty_success_response.dart @@ -21,11 +21,13 @@ class APIEmptySuccessResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIEmptySuccessResponse && other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode); + @override String toString() => 'APIEmptySuccessResponse[status=$status]'; diff --git a/client/lib/model/api_error.dart b/client/lib/model/api_error.dart index a0493b8..5bed585 100644 --- a/client/lib/model/api_error.dart +++ b/client/lib/model/api_error.dart @@ -72,25 +72,27 @@ class APIError { @override bool operator ==(Object other) => identical(this, other) || other is APIError && other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; + other.reason == reason && + other.code == code && + other.secondaryCode == secondaryCode && + other.bannedUntil == bannedUntil && + other.maxCharacterLength == maxCharacterLength && + other.translatedError == translatedError && + other.customConfig == customConfig; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); + (reason.hashCode) + + (code.hashCode) + + (secondaryCode == null ? 0 : secondaryCode!.hashCode) + + (bannedUntil == null ? 0 : bannedUntil!.hashCode) + + (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + + (translatedError == null ? 0 : translatedError!.hashCode) + + (customConfig == null ? 0 : customConfig!.hashCode); + @override String toString() => 'APIError[status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; diff --git a/client/lib/model/api_get_comment_response.dart b/client/lib/model/api_get_comment_response.dart index e8c28ab..638dd17 100644 --- a/client/lib/model/api_get_comment_response.dart +++ b/client/lib/model/api_get_comment_response.dart @@ -24,13 +24,15 @@ class APIGetCommentResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIGetCommentResponse && other.status == status && - other.comment == comment; + other.comment == comment; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (comment.hashCode); + (comment.hashCode); + @override String toString() => 'APIGetCommentResponse[status=$status, comment=$comment]'; diff --git a/client/lib/model/api_get_comments_response.dart b/client/lib/model/api_get_comments_response.dart index e586006..112cb88 100644 --- a/client/lib/model/api_get_comments_response.dart +++ b/client/lib/model/api_get_comments_response.dart @@ -24,13 +24,15 @@ class APIGetCommentsResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIGetCommentsResponse && other.status == status && - _deepEquality.equals(other.comments, comments); + _deepEquality.equals(other.comments, comments); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (comments.hashCode); + (comments.hashCode); + @override String toString() => 'APIGetCommentsResponse[status=$status, comments=$comments]'; diff --git a/client/lib/model/api_get_user_badge_progress_list_response.dart b/client/lib/model/api_get_user_badge_progress_list_response.dart index 262b101..45ca6db 100644 --- a/client/lib/model/api_get_user_badge_progress_list_response.dart +++ b/client/lib/model/api_get_user_badge_progress_list_response.dart @@ -24,13 +24,15 @@ class APIGetUserBadgeProgressListResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIGetUserBadgeProgressListResponse && other.status == status && - _deepEquality.equals(other.userBadgeProgresses, userBadgeProgresses); + _deepEquality.equals(other.userBadgeProgresses, userBadgeProgresses); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (userBadgeProgresses.hashCode); + (userBadgeProgresses.hashCode); + @override String toString() => 'APIGetUserBadgeProgressListResponse[status=$status, userBadgeProgresses=$userBadgeProgresses]'; diff --git a/client/lib/model/api_get_user_badge_progress_response.dart b/client/lib/model/api_get_user_badge_progress_response.dart index 8c7a3d7..1d6195a 100644 --- a/client/lib/model/api_get_user_badge_progress_response.dart +++ b/client/lib/model/api_get_user_badge_progress_response.dart @@ -24,13 +24,15 @@ class APIGetUserBadgeProgressResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIGetUserBadgeProgressResponse && other.status == status && - other.userBadgeProgress == userBadgeProgress; + other.userBadgeProgress == userBadgeProgress; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (userBadgeProgress.hashCode); + (userBadgeProgress.hashCode); + @override String toString() => 'APIGetUserBadgeProgressResponse[status=$status, userBadgeProgress=$userBadgeProgress]'; diff --git a/client/lib/model/api_get_user_badge_response.dart b/client/lib/model/api_get_user_badge_response.dart index 775bfa0..b23892a 100644 --- a/client/lib/model/api_get_user_badge_response.dart +++ b/client/lib/model/api_get_user_badge_response.dart @@ -24,13 +24,15 @@ class APIGetUserBadgeResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIGetUserBadgeResponse && other.status == status && - other.userBadge == userBadge; + other.userBadge == userBadge; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (userBadge.hashCode); + (userBadge.hashCode); + @override String toString() => 'APIGetUserBadgeResponse[status=$status, userBadge=$userBadge]'; diff --git a/client/lib/model/api_get_user_badges_response.dart b/client/lib/model/api_get_user_badges_response.dart index ca51e81..8adbf1a 100644 --- a/client/lib/model/api_get_user_badges_response.dart +++ b/client/lib/model/api_get_user_badges_response.dart @@ -24,13 +24,15 @@ class APIGetUserBadgesResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIGetUserBadgesResponse && other.status == status && - _deepEquality.equals(other.userBadges, userBadges); + _deepEquality.equals(other.userBadges, userBadges); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (userBadges.hashCode); + (userBadges.hashCode); + @override String toString() => 'APIGetUserBadgesResponse[status=$status, userBadges=$userBadges]'; diff --git a/client/lib/model/api_moderate_get_user_ban_preferences_response.dart b/client/lib/model/api_moderate_get_user_ban_preferences_response.dart new file mode 100644 index 0000000..7a911cb --- /dev/null +++ b/client/lib/model/api_moderate_get_user_ban_preferences_response.dart @@ -0,0 +1,122 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class APIModerateGetUserBanPreferencesResponse { + /// Returns a new [APIModerateGetUserBanPreferencesResponse] instance. + APIModerateGetUserBanPreferencesResponse({ + required this.preferences, + required this.status, + }); + + APIModerateUserBanPreferences? preferences; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is APIModerateGetUserBanPreferencesResponse && + other.preferences == preferences && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (preferences == null ? 0 : preferences!.hashCode) + + (status.hashCode); + + + @override + String toString() => 'APIModerateGetUserBanPreferencesResponse[preferences=$preferences, status=$status]'; + + Map toJson() { + final json = {}; + if (this.preferences != null) { + json[r'preferences'] = this.preferences; + } else { + json[r'preferences'] = null; + } + json[r'status'] = this.status; + return json; + } + + /// Returns a new [APIModerateGetUserBanPreferencesResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static APIModerateGetUserBanPreferencesResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'preferences'), 'Required key "APIModerateGetUserBanPreferencesResponse[preferences]" is missing from JSON.'); + assert(json.containsKey(r'status'), 'Required key "APIModerateGetUserBanPreferencesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIModerateGetUserBanPreferencesResponse[status]" has a null value in JSON.'); + return true; + }()); + + return APIModerateGetUserBanPreferencesResponse( + preferences: APIModerateUserBanPreferences.fromJson(json[r'preferences']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = APIModerateGetUserBanPreferencesResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = APIModerateGetUserBanPreferencesResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of APIModerateGetUserBanPreferencesResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = APIModerateGetUserBanPreferencesResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'preferences', + 'status', + }; +} + diff --git a/client/lib/model/api_moderate_user_ban_preferences.dart b/client/lib/model/api_moderate_user_ban_preferences.dart new file mode 100644 index 0000000..fe5e875 --- /dev/null +++ b/client/lib/model/api_moderate_user_ban_preferences.dart @@ -0,0 +1,139 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class APIModerateUserBanPreferences { + /// Returns a new [APIModerateUserBanPreferences] instance. + APIModerateUserBanPreferences({ + required this.shouldBanEmail, + required this.shouldBanByIP, + required this.lastBanType, + required this.lastBanDuration, + }); + + bool shouldBanEmail; + + bool shouldBanByIP; + + String lastBanType; + + String lastBanDuration; + + @override + bool operator ==(Object other) => identical(this, other) || other is APIModerateUserBanPreferences && + other.shouldBanEmail == shouldBanEmail && + other.shouldBanByIP == shouldBanByIP && + other.lastBanType == lastBanType && + other.lastBanDuration == lastBanDuration; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (shouldBanEmail.hashCode) + + (shouldBanByIP.hashCode) + + (lastBanType.hashCode) + + (lastBanDuration.hashCode); + + + @override + String toString() => 'APIModerateUserBanPreferences[shouldBanEmail=$shouldBanEmail, shouldBanByIP=$shouldBanByIP, lastBanType=$lastBanType, lastBanDuration=$lastBanDuration]'; + + Map toJson() { + final json = {}; + json[r'shouldBanEmail'] = this.shouldBanEmail; + json[r'shouldBanByIP'] = this.shouldBanByIP; + json[r'lastBanType'] = this.lastBanType; + json[r'lastBanDuration'] = this.lastBanDuration; + return json; + } + + /// Returns a new [APIModerateUserBanPreferences] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static APIModerateUserBanPreferences? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'shouldBanEmail'), 'Required key "APIModerateUserBanPreferences[shouldBanEmail]" is missing from JSON.'); + assert(json[r'shouldBanEmail'] != null, 'Required key "APIModerateUserBanPreferences[shouldBanEmail]" has a null value in JSON.'); + assert(json.containsKey(r'shouldBanByIP'), 'Required key "APIModerateUserBanPreferences[shouldBanByIP]" is missing from JSON.'); + assert(json[r'shouldBanByIP'] != null, 'Required key "APIModerateUserBanPreferences[shouldBanByIP]" has a null value in JSON.'); + assert(json.containsKey(r'lastBanType'), 'Required key "APIModerateUserBanPreferences[lastBanType]" is missing from JSON.'); + assert(json[r'lastBanType'] != null, 'Required key "APIModerateUserBanPreferences[lastBanType]" has a null value in JSON.'); + assert(json.containsKey(r'lastBanDuration'), 'Required key "APIModerateUserBanPreferences[lastBanDuration]" is missing from JSON.'); + assert(json[r'lastBanDuration'] != null, 'Required key "APIModerateUserBanPreferences[lastBanDuration]" has a null value in JSON.'); + return true; + }()); + + return APIModerateUserBanPreferences( + shouldBanEmail: mapValueOfType(json, r'shouldBanEmail')!, + shouldBanByIP: mapValueOfType(json, r'shouldBanByIP')!, + lastBanType: mapValueOfType(json, r'lastBanType')!, + lastBanDuration: mapValueOfType(json, r'lastBanDuration')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = APIModerateUserBanPreferences.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = APIModerateUserBanPreferences.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of APIModerateUserBanPreferences-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = APIModerateUserBanPreferences.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'shouldBanEmail', + 'shouldBanByIP', + 'lastBanType', + 'lastBanDuration', + }; +} + diff --git a/client/lib/model/api_page.dart b/client/lib/model/api_page.dart index eb28b15..f808f09 100644 --- a/client/lib/model/api_page.dart +++ b/client/lib/model/api_page.dart @@ -57,27 +57,29 @@ class APIPage { @override bool operator ==(Object other) => identical(this, other) || other is APIPage && other.isClosed == isClosed && - _deepEquality.equals(other.accessibleByGroupIds, accessibleByGroupIds) && - other.rootCommentCount == rootCommentCount && - other.commentCount == commentCount && - other.createdAt == createdAt && - other.title == title && - other.url == url && - other.urlId == urlId && - other.id == id; + _deepEquality.equals(other.accessibleByGroupIds, accessibleByGroupIds) && + other.rootCommentCount == rootCommentCount && + other.commentCount == commentCount && + other.createdAt == createdAt && + other.title == title && + other.url == url && + other.urlId == urlId && + other.id == id; + @override int get hashCode => // ignore: unnecessary_parenthesis (isClosed == null ? 0 : isClosed!.hashCode) + - (accessibleByGroupIds.hashCode) + - (rootCommentCount.hashCode) + - (commentCount.hashCode) + - (createdAt.hashCode) + - (title.hashCode) + - (url == null ? 0 : url!.hashCode) + - (urlId.hashCode) + - (id.hashCode); + (accessibleByGroupIds.hashCode) + + (rootCommentCount.hashCode) + + (commentCount.hashCode) + + (createdAt.hashCode) + + (title.hashCode) + + (url == null ? 0 : url!.hashCode) + + (urlId.hashCode) + + (id.hashCode); + @override String toString() => 'APIPage[isClosed=$isClosed, accessibleByGroupIds=$accessibleByGroupIds, rootCommentCount=$rootCommentCount, commentCount=$commentCount, createdAt=$createdAt, title=$title, url=$url, urlId=$urlId, id=$id]'; diff --git a/client/lib/model/api_save_comment_response.dart b/client/lib/model/api_save_comment_response.dart index 6438ef1..c1a99b1 100644 --- a/client/lib/model/api_save_comment_response.dart +++ b/client/lib/model/api_save_comment_response.dart @@ -31,17 +31,19 @@ class APISaveCommentResponse { @override bool operator ==(Object other) => identical(this, other) || other is APISaveCommentResponse && other.status == status && - other.comment == comment && - other.user == user && - _deepEquality.equals(other.moduleData, moduleData); + other.comment == comment && + other.user == user && + _deepEquality.equals(other.moduleData, moduleData); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (comment.hashCode) + - (user == null ? 0 : user!.hashCode) + - (moduleData.hashCode); + (comment.hashCode) + + (user == null ? 0 : user!.hashCode) + + (moduleData.hashCode); + @override String toString() => 'APISaveCommentResponse[status=$status, comment=$comment, user=$user, moduleData=$moduleData]'; diff --git a/client/lib/model/api_tenant.dart b/client/lib/model/api_tenant.dart index 558547c..33bc8f8 100644 --- a/client/lib/model/api_tenant.dart +++ b/client/lib/model/api_tenant.dart @@ -193,65 +193,67 @@ class APITenant { @override bool operator ==(Object other) => identical(this, other) || other is APITenant && other.id == id && - other.name == name && - other.email == email && - other.signUpDate == signUpDate && - other.packageId == packageId && - other.paymentFrequency == paymentFrequency && - other.billingInfoValid == billingInfoValid && - other.billingHandledExternally == billingHandledExternally && - other.createdBy == createdBy && - other.isSetup == isSetup && - _deepEquality.equals(other.domainConfiguration, domainConfiguration) && - other.billingInfo == billingInfo && - other.stripeCustomerId == stripeCustomerId && - other.stripeSubscriptionId == stripeSubscriptionId && - other.stripePlanId == stripePlanId && - other.enableProfanityFilter == enableProfanityFilter && - other.enableSpamFilter == enableSpamFilter && - other.lastBillingIssueReminderDate == lastBillingIssueReminderDate && - other.removeUnverifiedComments == removeUnverifiedComments && - other.unverifiedCommentsTTLms == unverifiedCommentsTTLms && - other.commentsRequireApproval == commentsRequireApproval && - other.autoApproveCommentOnVerification == autoApproveCommentOnVerification && - other.sendProfaneToSpam == sendProfaneToSpam && - other.hasFlexPricing == hasFlexPricing && - other.hasAuditing == hasAuditing && - other.flexLastBilledAmount == flexLastBilledAmount && - other.deAnonIpAddr == deAnonIpAddr && - _deepEquality.equals(other.meta, meta); + other.name == name && + other.email == email && + other.signUpDate == signUpDate && + other.packageId == packageId && + other.paymentFrequency == paymentFrequency && + other.billingInfoValid == billingInfoValid && + other.billingHandledExternally == billingHandledExternally && + other.createdBy == createdBy && + other.isSetup == isSetup && + _deepEquality.equals(other.domainConfiguration, domainConfiguration) && + other.billingInfo == billingInfo && + other.stripeCustomerId == stripeCustomerId && + other.stripeSubscriptionId == stripeSubscriptionId && + other.stripePlanId == stripePlanId && + other.enableProfanityFilter == enableProfanityFilter && + other.enableSpamFilter == enableSpamFilter && + other.lastBillingIssueReminderDate == lastBillingIssueReminderDate && + other.removeUnverifiedComments == removeUnverifiedComments && + other.unverifiedCommentsTTLms == unverifiedCommentsTTLms && + other.commentsRequireApproval == commentsRequireApproval && + other.autoApproveCommentOnVerification == autoApproveCommentOnVerification && + other.sendProfaneToSpam == sendProfaneToSpam && + other.hasFlexPricing == hasFlexPricing && + other.hasAuditing == hasAuditing && + other.flexLastBilledAmount == flexLastBilledAmount && + other.deAnonIpAddr == deAnonIpAddr && + _deepEquality.equals(other.meta, meta); + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (name.hashCode) + - (email == null ? 0 : email!.hashCode) + - (signUpDate.hashCode) + - (packageId.hashCode) + - (paymentFrequency.hashCode) + - (billingInfoValid.hashCode) + - (billingHandledExternally == null ? 0 : billingHandledExternally!.hashCode) + - (createdBy.hashCode) + - (isSetup.hashCode) + - (domainConfiguration.hashCode) + - (billingInfo == null ? 0 : billingInfo!.hashCode) + - (stripeCustomerId == null ? 0 : stripeCustomerId!.hashCode) + - (stripeSubscriptionId == null ? 0 : stripeSubscriptionId!.hashCode) + - (stripePlanId == null ? 0 : stripePlanId!.hashCode) + - (enableProfanityFilter.hashCode) + - (enableSpamFilter.hashCode) + - (lastBillingIssueReminderDate == null ? 0 : lastBillingIssueReminderDate!.hashCode) + - (removeUnverifiedComments == null ? 0 : removeUnverifiedComments!.hashCode) + - (unverifiedCommentsTTLms == null ? 0 : unverifiedCommentsTTLms!.hashCode) + - (commentsRequireApproval == null ? 0 : commentsRequireApproval!.hashCode) + - (autoApproveCommentOnVerification == null ? 0 : autoApproveCommentOnVerification!.hashCode) + - (sendProfaneToSpam == null ? 0 : sendProfaneToSpam!.hashCode) + - (hasFlexPricing == null ? 0 : hasFlexPricing!.hashCode) + - (hasAuditing == null ? 0 : hasAuditing!.hashCode) + - (flexLastBilledAmount == null ? 0 : flexLastBilledAmount!.hashCode) + - (deAnonIpAddr == null ? 0 : deAnonIpAddr!.hashCode) + - (meta.hashCode); + (name.hashCode) + + (email == null ? 0 : email!.hashCode) + + (signUpDate.hashCode) + + (packageId.hashCode) + + (paymentFrequency.hashCode) + + (billingInfoValid.hashCode) + + (billingHandledExternally == null ? 0 : billingHandledExternally!.hashCode) + + (createdBy.hashCode) + + (isSetup.hashCode) + + (domainConfiguration.hashCode) + + (billingInfo == null ? 0 : billingInfo!.hashCode) + + (stripeCustomerId == null ? 0 : stripeCustomerId!.hashCode) + + (stripeSubscriptionId == null ? 0 : stripeSubscriptionId!.hashCode) + + (stripePlanId == null ? 0 : stripePlanId!.hashCode) + + (enableProfanityFilter.hashCode) + + (enableSpamFilter.hashCode) + + (lastBillingIssueReminderDate == null ? 0 : lastBillingIssueReminderDate!.hashCode) + + (removeUnverifiedComments == null ? 0 : removeUnverifiedComments!.hashCode) + + (unverifiedCommentsTTLms == null ? 0 : unverifiedCommentsTTLms!.hashCode) + + (commentsRequireApproval == null ? 0 : commentsRequireApproval!.hashCode) + + (autoApproveCommentOnVerification == null ? 0 : autoApproveCommentOnVerification!.hashCode) + + (sendProfaneToSpam == null ? 0 : sendProfaneToSpam!.hashCode) + + (hasFlexPricing == null ? 0 : hasFlexPricing!.hashCode) + + (hasAuditing == null ? 0 : hasAuditing!.hashCode) + + (flexLastBilledAmount == null ? 0 : flexLastBilledAmount!.hashCode) + + (deAnonIpAddr == null ? 0 : deAnonIpAddr!.hashCode) + + (meta.hashCode); + @override String toString() => 'APITenant[id=$id, name=$name, email=$email, signUpDate=$signUpDate, packageId=$packageId, paymentFrequency=$paymentFrequency, billingInfoValid=$billingInfoValid, billingHandledExternally=$billingHandledExternally, createdBy=$createdBy, isSetup=$isSetup, domainConfiguration=$domainConfiguration, billingInfo=$billingInfo, stripeCustomerId=$stripeCustomerId, stripeSubscriptionId=$stripeSubscriptionId, stripePlanId=$stripePlanId, enableProfanityFilter=$enableProfanityFilter, enableSpamFilter=$enableSpamFilter, lastBillingIssueReminderDate=$lastBillingIssueReminderDate, removeUnverifiedComments=$removeUnverifiedComments, unverifiedCommentsTTLms=$unverifiedCommentsTTLms, commentsRequireApproval=$commentsRequireApproval, autoApproveCommentOnVerification=$autoApproveCommentOnVerification, sendProfaneToSpam=$sendProfaneToSpam, hasFlexPricing=$hasFlexPricing, hasAuditing=$hasAuditing, flexLastBilledAmount=$flexLastBilledAmount, deAnonIpAddr=$deAnonIpAddr, meta=$meta]'; diff --git a/client/lib/model/api_tenant_daily_usage.dart b/client/lib/model/api_tenant_daily_usage.dart index edecb51..60fe72c 100644 --- a/client/lib/model/api_tenant_daily_usage.dart +++ b/client/lib/model/api_tenant_daily_usage.dart @@ -75,47 +75,49 @@ class APITenantDailyUsage { @override bool operator ==(Object other) => identical(this, other) || other is APITenantDailyUsage && other.id == id && - other.tenantId == tenantId && - other.yearNumber == yearNumber && - other.monthNumber == monthNumber && - other.dayNumber == dayNumber && - other.commentFetchCount == commentFetchCount && - other.commentCreateCount == commentCreateCount && - other.conversationCreateCount == conversationCreateCount && - other.voteCount == voteCount && - other.accountCreatedCount == accountCreatedCount && - other.userMentionSearch == userMentionSearch && - other.hashTagSearch == hashTagSearch && - other.gifSearchTrending == gifSearchTrending && - other.gifSearch == gifSearch && - other.apiCreditsUsed == apiCreditsUsed && - other.createdAt == createdAt && - other.billed == billed && - other.ignored == ignored && - other.apiErrorCount == apiErrorCount; + other.tenantId == tenantId && + other.yearNumber == yearNumber && + other.monthNumber == monthNumber && + other.dayNumber == dayNumber && + other.commentFetchCount == commentFetchCount && + other.commentCreateCount == commentCreateCount && + other.conversationCreateCount == conversationCreateCount && + other.voteCount == voteCount && + other.accountCreatedCount == accountCreatedCount && + other.userMentionSearch == userMentionSearch && + other.hashTagSearch == hashTagSearch && + other.gifSearchTrending == gifSearchTrending && + other.gifSearch == gifSearch && + other.apiCreditsUsed == apiCreditsUsed && + other.createdAt == createdAt && + other.billed == billed && + other.ignored == ignored && + other.apiErrorCount == apiErrorCount; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (yearNumber.hashCode) + - (monthNumber.hashCode) + - (dayNumber.hashCode) + - (commentFetchCount.hashCode) + - (commentCreateCount.hashCode) + - (conversationCreateCount.hashCode) + - (voteCount.hashCode) + - (accountCreatedCount.hashCode) + - (userMentionSearch.hashCode) + - (hashTagSearch.hashCode) + - (gifSearchTrending.hashCode) + - (gifSearch.hashCode) + - (apiCreditsUsed.hashCode) + - (createdAt.hashCode) + - (billed.hashCode) + - (ignored.hashCode) + - (apiErrorCount.hashCode); + (tenantId.hashCode) + + (yearNumber.hashCode) + + (monthNumber.hashCode) + + (dayNumber.hashCode) + + (commentFetchCount.hashCode) + + (commentCreateCount.hashCode) + + (conversationCreateCount.hashCode) + + (voteCount.hashCode) + + (accountCreatedCount.hashCode) + + (userMentionSearch.hashCode) + + (hashTagSearch.hashCode) + + (gifSearchTrending.hashCode) + + (gifSearch.hashCode) + + (apiCreditsUsed.hashCode) + + (createdAt.hashCode) + + (billed.hashCode) + + (ignored.hashCode) + + (apiErrorCount.hashCode); + @override String toString() => 'APITenantDailyUsage[id=$id, tenantId=$tenantId, yearNumber=$yearNumber, monthNumber=$monthNumber, dayNumber=$dayNumber, commentFetchCount=$commentFetchCount, commentCreateCount=$commentCreateCount, conversationCreateCount=$conversationCreateCount, voteCount=$voteCount, accountCreatedCount=$accountCreatedCount, userMentionSearch=$userMentionSearch, hashTagSearch=$hashTagSearch, gifSearchTrending=$gifSearchTrending, gifSearch=$gifSearch, apiCreditsUsed=$apiCreditsUsed, createdAt=$createdAt, billed=$billed, ignored=$ignored, apiErrorCount=$apiErrorCount]'; diff --git a/client/lib/model/api_ticket.dart b/client/lib/model/api_ticket.dart index 90a1b97..7767fda 100644 --- a/client/lib/model/api_ticket.dart +++ b/client/lib/model/api_ticket.dart @@ -45,27 +45,29 @@ class APITicket { @override bool operator ==(Object other) => identical(this, other) || other is APITicket && other.id == id && - other.urlId == urlId && - other.userId == userId && - other.managedByTenantId == managedByTenantId && - _deepEquality.equals(other.assignedUserIds, assignedUserIds) && - other.subject == subject && - other.createdAt == createdAt && - other.state == state && - other.fileCount == fileCount; + other.urlId == urlId && + other.userId == userId && + other.managedByTenantId == managedByTenantId && + _deepEquality.equals(other.assignedUserIds, assignedUserIds) && + other.subject == subject && + other.createdAt == createdAt && + other.state == state && + other.fileCount == fileCount; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (urlId.hashCode) + - (userId.hashCode) + - (managedByTenantId.hashCode) + - (assignedUserIds.hashCode) + - (subject.hashCode) + - (createdAt.hashCode) + - (state.hashCode) + - (fileCount.hashCode); + (urlId.hashCode) + + (userId.hashCode) + + (managedByTenantId.hashCode) + + (assignedUserIds.hashCode) + + (subject.hashCode) + + (createdAt.hashCode) + + (state.hashCode) + + (fileCount.hashCode); + @override String toString() => 'APITicket[id=$id, urlId=$urlId, userId=$userId, managedByTenantId=$managedByTenantId, assignedUserIds=$assignedUserIds, subject=$subject, createdAt=$createdAt, state=$state, fileCount=$fileCount]'; diff --git a/client/lib/model/api_ticket_detail.dart b/client/lib/model/api_ticket_detail.dart index e755b8d..00703f9 100644 --- a/client/lib/model/api_ticket_detail.dart +++ b/client/lib/model/api_ticket_detail.dart @@ -57,35 +57,37 @@ class APITicketDetail { @override bool operator ==(Object other) => identical(this, other) || other is APITicketDetail && other.id == id && - other.urlId == urlId && - other.userId == userId && - other.managedByTenantId == managedByTenantId && - _deepEquality.equals(other.assignedUserIds, assignedUserIds) && - other.subject == subject && - other.createdAt == createdAt && - other.state == state && - other.fileCount == fileCount && - _deepEquality.equals(other.files, files) && - other.reopenedAt == reopenedAt && - other.resolvedAt == resolvedAt && - other.ackAt == ackAt; + other.urlId == urlId && + other.userId == userId && + other.managedByTenantId == managedByTenantId && + _deepEquality.equals(other.assignedUserIds, assignedUserIds) && + other.subject == subject && + other.createdAt == createdAt && + other.state == state && + other.fileCount == fileCount && + _deepEquality.equals(other.files, files) && + other.reopenedAt == reopenedAt && + other.resolvedAt == resolvedAt && + other.ackAt == ackAt; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (urlId.hashCode) + - (userId.hashCode) + - (managedByTenantId.hashCode) + - (assignedUserIds.hashCode) + - (subject.hashCode) + - (createdAt.hashCode) + - (state.hashCode) + - (fileCount.hashCode) + - (files.hashCode) + - (reopenedAt == null ? 0 : reopenedAt!.hashCode) + - (resolvedAt == null ? 0 : resolvedAt!.hashCode) + - (ackAt == null ? 0 : ackAt!.hashCode); + (urlId.hashCode) + + (userId.hashCode) + + (managedByTenantId.hashCode) + + (assignedUserIds.hashCode) + + (subject.hashCode) + + (createdAt.hashCode) + + (state.hashCode) + + (fileCount.hashCode) + + (files.hashCode) + + (reopenedAt == null ? 0 : reopenedAt!.hashCode) + + (resolvedAt == null ? 0 : resolvedAt!.hashCode) + + (ackAt == null ? 0 : ackAt!.hashCode); + @override String toString() => 'APITicketDetail[id=$id, urlId=$urlId, userId=$userId, managedByTenantId=$managedByTenantId, assignedUserIds=$assignedUserIds, subject=$subject, createdAt=$createdAt, state=$state, fileCount=$fileCount, files=$files, reopenedAt=$reopenedAt, resolvedAt=$resolvedAt, ackAt=$ackAt]'; diff --git a/client/lib/model/api_ticket_file.dart b/client/lib/model/api_ticket_file.dart index 1421ccf..683a98b 100644 --- a/client/lib/model/api_ticket_file.dart +++ b/client/lib/model/api_ticket_file.dart @@ -54,29 +54,31 @@ class APITicketFile { @override bool operator ==(Object other) => identical(this, other) || other is APITicketFile && other.id == id && - other.s3Key == s3Key && - other.originalFileName == originalFileName && - other.sizeBytes == sizeBytes && - other.contentType == contentType && - other.uploadedByUserId == uploadedByUserId && - other.uploadedAt == uploadedAt && - other.url == url && - other.expiresAt == expiresAt && - other.expired == expired; + other.s3Key == s3Key && + other.originalFileName == originalFileName && + other.sizeBytes == sizeBytes && + other.contentType == contentType && + other.uploadedByUserId == uploadedByUserId && + other.uploadedAt == uploadedAt && + other.url == url && + other.expiresAt == expiresAt && + other.expired == expired; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (s3Key.hashCode) + - (originalFileName.hashCode) + - (sizeBytes.hashCode) + - (contentType.hashCode) + - (uploadedByUserId.hashCode) + - (uploadedAt.hashCode) + - (url.hashCode) + - (expiresAt.hashCode) + - (expired == null ? 0 : expired!.hashCode); + (s3Key.hashCode) + + (originalFileName.hashCode) + + (sizeBytes.hashCode) + + (contentType.hashCode) + + (uploadedByUserId.hashCode) + + (uploadedAt.hashCode) + + (url.hashCode) + + (expiresAt.hashCode) + + (expired == null ? 0 : expired!.hashCode); + @override String toString() => 'APITicketFile[id=$id, s3Key=$s3Key, originalFileName=$originalFileName, sizeBytes=$sizeBytes, contentType=$contentType, uploadedByUserId=$uploadedByUserId, uploadedAt=$uploadedAt, url=$url, expiresAt=$expiresAt, expired=$expired]'; diff --git a/client/lib/model/api_user_subscription.dart b/client/lib/model/api_user_subscription.dart index ed0ec87..843baec 100644 --- a/client/lib/model/api_user_subscription.dart +++ b/client/lib/model/api_user_subscription.dart @@ -72,25 +72,27 @@ class APIUserSubscription { @override bool operator ==(Object other) => identical(this, other) || other is APIUserSubscription && other.notificationFrequency == notificationFrequency && - other.createdAt == createdAt && - other.pageTitle == pageTitle && - other.url == url && - other.urlId == urlId && - other.anonUserId == anonUserId && - other.userId == userId && - other.id == id; + other.createdAt == createdAt && + other.pageTitle == pageTitle && + other.url == url && + other.urlId == urlId && + other.anonUserId == anonUserId && + other.userId == userId && + other.id == id; + @override int get hashCode => // ignore: unnecessary_parenthesis (notificationFrequency == null ? 0 : notificationFrequency!.hashCode) + - (createdAt.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (urlId.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (id.hashCode); + (createdAt.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (url == null ? 0 : url!.hashCode) + + (urlId.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (id.hashCode); + @override String toString() => 'APIUserSubscription[notificationFrequency=$notificationFrequency, createdAt=$createdAt, pageTitle=$pageTitle, url=$url, urlId=$urlId, anonUserId=$anonUserId, userId=$userId, id=$id]'; diff --git a/client/lib/model/apisso_user.dart b/client/lib/model/apisso_user.dart index 8d0efe8..240bfb6 100644 --- a/client/lib/model/apisso_user.dart +++ b/client/lib/model/apisso_user.dart @@ -120,49 +120,51 @@ class APISSOUser { @override bool operator ==(Object other) => identical(this, other) || other is APISSOUser && other.id == id && - other.username == username && - other.websiteUrl == websiteUrl && - other.email == email && - other.signUpDate == signUpDate && - other.createdFromUrlId == createdFromUrlId && - other.loginCount == loginCount && - other.avatarSrc == avatarSrc && - other.optedInNotifications == optedInNotifications && - other.optedInSubscriptionNotifications == optedInSubscriptionNotifications && - other.displayLabel == displayLabel && - other.displayName == displayName && - other.isAccountOwner == isAccountOwner && - other.isAdminAdmin == isAdminAdmin && - other.isCommentModeratorAdmin == isCommentModeratorAdmin && - other.isProfileActivityPrivate == isProfileActivityPrivate && - other.isProfileCommentsPrivate == isProfileCommentsPrivate && - other.isProfileDMDisabled == isProfileDMDisabled && - other.hasBlockedUsers == hasBlockedUsers && - _deepEquality.equals(other.groupIds, groupIds); + other.username == username && + other.websiteUrl == websiteUrl && + other.email == email && + other.signUpDate == signUpDate && + other.createdFromUrlId == createdFromUrlId && + other.loginCount == loginCount && + other.avatarSrc == avatarSrc && + other.optedInNotifications == optedInNotifications && + other.optedInSubscriptionNotifications == optedInSubscriptionNotifications && + other.displayLabel == displayLabel && + other.displayName == displayName && + other.isAccountOwner == isAccountOwner && + other.isAdminAdmin == isAdminAdmin && + other.isCommentModeratorAdmin == isCommentModeratorAdmin && + other.isProfileActivityPrivate == isProfileActivityPrivate && + other.isProfileCommentsPrivate == isProfileCommentsPrivate && + other.isProfileDMDisabled == isProfileDMDisabled && + other.hasBlockedUsers == hasBlockedUsers && + _deepEquality.equals(other.groupIds, groupIds); + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (username.hashCode) + - (websiteUrl.hashCode) + - (email.hashCode) + - (signUpDate.hashCode) + - (createdFromUrlId.hashCode) + - (loginCount.hashCode) + - (avatarSrc.hashCode) + - (optedInNotifications.hashCode) + - (optedInSubscriptionNotifications.hashCode) + - (displayLabel.hashCode) + - (displayName.hashCode) + - (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + - (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + - (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + - (isProfileActivityPrivate == null ? 0 : isProfileActivityPrivate!.hashCode) + - (isProfileCommentsPrivate == null ? 0 : isProfileCommentsPrivate!.hashCode) + - (isProfileDMDisabled == null ? 0 : isProfileDMDisabled!.hashCode) + - (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + - (groupIds.hashCode); + (username.hashCode) + + (websiteUrl.hashCode) + + (email.hashCode) + + (signUpDate.hashCode) + + (createdFromUrlId.hashCode) + + (loginCount.hashCode) + + (avatarSrc.hashCode) + + (optedInNotifications.hashCode) + + (optedInSubscriptionNotifications.hashCode) + + (displayLabel.hashCode) + + (displayName.hashCode) + + (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + + (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + + (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + + (isProfileActivityPrivate == null ? 0 : isProfileActivityPrivate!.hashCode) + + (isProfileCommentsPrivate == null ? 0 : isProfileCommentsPrivate!.hashCode) + + (isProfileDMDisabled == null ? 0 : isProfileDMDisabled!.hashCode) + + (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + + (groupIds.hashCode); + @override String toString() => 'APISSOUser[id=$id, username=$username, websiteUrl=$websiteUrl, email=$email, signUpDate=$signUpDate, createdFromUrlId=$createdFromUrlId, loginCount=$loginCount, avatarSrc=$avatarSrc, optedInNotifications=$optedInNotifications, optedInSubscriptionNotifications=$optedInSubscriptionNotifications, displayLabel=$displayLabel, displayName=$displayName, isAccountOwner=$isAccountOwner, isAdminAdmin=$isAdminAdmin, isCommentModeratorAdmin=$isCommentModeratorAdmin, isProfileActivityPrivate=$isProfileActivityPrivate, isProfileCommentsPrivate=$isProfileCommentsPrivate, isProfileDMDisabled=$isProfileDMDisabled, hasBlockedUsers=$hasBlockedUsers, groupIds=$groupIds]'; diff --git a/client/lib/model/award_user_badge_response.dart b/client/lib/model/award_user_badge_response.dart new file mode 100644 index 0000000..8537ee3 --- /dev/null +++ b/client/lib/model/award_user_badge_response.dart @@ -0,0 +1,125 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class AwardUserBadgeResponse { + /// Returns a new [AwardUserBadgeResponse] instance. + AwardUserBadgeResponse({ + this.notes = const [], + this.badges = const [], + required this.status, + }); + + List notes; + + List badges; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is AwardUserBadgeResponse && + _deepEquality.equals(other.notes, notes) && + _deepEquality.equals(other.badges, badges) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (notes.hashCode) + + (badges.hashCode) + + (status.hashCode); + + + @override + String toString() => 'AwardUserBadgeResponse[notes=$notes, badges=$badges, status=$status]'; + + Map toJson() { + final json = {}; + json[r'notes'] = this.notes; + json[r'badges'] = this.badges; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [AwardUserBadgeResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static AwardUserBadgeResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "AwardUserBadgeResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "AwardUserBadgeResponse[status]" has a null value in JSON.'); + return true; + }()); + + return AwardUserBadgeResponse( + notes: json[r'notes'] is Iterable + ? (json[r'notes'] as Iterable).cast().toList(growable: false) + : const [], + badges: CommentUserBadgeInfo.listFromJson(json[r'badges']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = AwardUserBadgeResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = AwardUserBadgeResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of AwardUserBadgeResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = AwardUserBadgeResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/ban_user_from_comment_result.dart b/client/lib/model/ban_user_from_comment_result.dart new file mode 100644 index 0000000..5a64a84 --- /dev/null +++ b/client/lib/model/ban_user_from_comment_result.dart @@ -0,0 +1,160 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class BanUserFromCommentResult { + /// Returns a new [BanUserFromCommentResult] instance. + BanUserFromCommentResult({ + required this.status, + this.changelog, + this.code, + this.reason, + }); + + String status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + APIBanUserChangeLog? changelog; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? reason; + + @override + bool operator ==(Object other) => identical(this, other) || other is BanUserFromCommentResult && + other.status == status && + other.changelog == changelog && + other.code == code && + other.reason == reason; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (changelog == null ? 0 : changelog!.hashCode) + + (code == null ? 0 : code!.hashCode) + + (reason == null ? 0 : reason!.hashCode); + + + @override + String toString() => 'BanUserFromCommentResult[status=$status, changelog=$changelog, code=$code, reason=$reason]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + if (this.changelog != null) { + json[r'changelog'] = this.changelog; + } else { + json[r'changelog'] = null; + } + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + if (this.reason != null) { + json[r'reason'] = this.reason; + } else { + json[r'reason'] = null; + } + return json; + } + + /// Returns a new [BanUserFromCommentResult] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static BanUserFromCommentResult? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "BanUserFromCommentResult[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "BanUserFromCommentResult[status]" has a null value in JSON.'); + return true; + }()); + + return BanUserFromCommentResult( + status: mapValueOfType(json, r'status')!, + changelog: APIBanUserChangeLog.fromJson(json[r'changelog']), + code: mapValueOfType(json, r'code'), + reason: mapValueOfType(json, r'reason'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = BanUserFromCommentResult.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = BanUserFromCommentResult.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of BanUserFromCommentResult-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = BanUserFromCommentResult.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/ban_user_undo_params.dart b/client/lib/model/ban_user_undo_params.dart new file mode 100644 index 0000000..f71f94a --- /dev/null +++ b/client/lib/model/ban_user_undo_params.dart @@ -0,0 +1,109 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class BanUserUndoParams { + /// Returns a new [BanUserUndoParams] instance. + BanUserUndoParams({ + required this.changelog, + }); + + APIBanUserChangeLog changelog; + + @override + bool operator ==(Object other) => identical(this, other) || other is BanUserUndoParams && + other.changelog == changelog; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (changelog.hashCode); + + + @override + String toString() => 'BanUserUndoParams[changelog=$changelog]'; + + Map toJson() { + final json = {}; + json[r'changelog'] = this.changelog; + return json; + } + + /// Returns a new [BanUserUndoParams] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static BanUserUndoParams? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'changelog'), 'Required key "BanUserUndoParams[changelog]" is missing from JSON.'); + assert(json[r'changelog'] != null, 'Required key "BanUserUndoParams[changelog]" has a null value in JSON.'); + return true; + }()); + + return BanUserUndoParams( + changelog: APIBanUserChangeLog.fromJson(json[r'changelog'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = BanUserUndoParams.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = BanUserUndoParams.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of BanUserUndoParams-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = BanUserUndoParams.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'changelog', + }; +} + diff --git a/client/lib/model/banned_user_match.dart b/client/lib/model/banned_user_match.dart new file mode 100644 index 0000000..20354d4 --- /dev/null +++ b/client/lib/model/banned_user_match.dart @@ -0,0 +1,122 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class BannedUserMatch { + /// Returns a new [BannedUserMatch] instance. + BannedUserMatch({ + required this.matchedOn, + required this.matchedOnValue, + }); + + BannedUserMatchType matchedOn; + + BannedUserMatchMatchedOnValue? matchedOnValue; + + @override + bool operator ==(Object other) => identical(this, other) || other is BannedUserMatch && + other.matchedOn == matchedOn && + other.matchedOnValue == matchedOnValue; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (matchedOn.hashCode) + + (matchedOnValue == null ? 0 : matchedOnValue!.hashCode); + + + @override + String toString() => 'BannedUserMatch[matchedOn=$matchedOn, matchedOnValue=$matchedOnValue]'; + + Map toJson() { + final json = {}; + json[r'matchedOn'] = this.matchedOn; + if (this.matchedOnValue != null) { + json[r'matchedOnValue'] = this.matchedOnValue; + } else { + json[r'matchedOnValue'] = null; + } + return json; + } + + /// Returns a new [BannedUserMatch] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static BannedUserMatch? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'matchedOn'), 'Required key "BannedUserMatch[matchedOn]" is missing from JSON.'); + assert(json[r'matchedOn'] != null, 'Required key "BannedUserMatch[matchedOn]" has a null value in JSON.'); + assert(json.containsKey(r'matchedOnValue'), 'Required key "BannedUserMatch[matchedOnValue]" is missing from JSON.'); + return true; + }()); + + return BannedUserMatch( + matchedOn: BannedUserMatchType.fromJson(json[r'matchedOn'])!, + matchedOnValue: BannedUserMatchMatchedOnValue.fromJson(json[r'matchedOnValue']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = BannedUserMatch.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = BannedUserMatch.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of BannedUserMatch-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = BannedUserMatch.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'matchedOn', + 'matchedOnValue', + }; +} + diff --git a/client/lib/model/record_string_string_or_number_value.dart b/client/lib/model/banned_user_match_matched_on_value.dart similarity index 58% rename from client/lib/model/record_string_string_or_number_value.dart rename to client/lib/model/banned_user_match_matched_on_value.dart index db42eab..2bbc01f 100644 --- a/client/lib/model/record_string_string_or_number_value.dart +++ b/client/lib/model/banned_user_match_matched_on_value.dart @@ -10,30 +10,30 @@ part of openapi.api; -class RecordStringStringOrNumberValue { - /// Returns a new [RecordStringStringOrNumberValue] instance. - RecordStringStringOrNumberValue({ - }); +class BannedUserMatchMatchedOnValue { + /// Returns a new [BannedUserMatchMatchedOnValue] instance. + BannedUserMatchMatchedOnValue(); @override - bool operator ==(Object other) => identical(this, other) || other is RecordStringStringOrNumberValue && + bool operator ==(Object other) => identical(this, other) || other is BannedUserMatchMatchedOnValue; @override int get hashCode => // ignore: unnecessary_parenthesis + 0; @override - String toString() => 'RecordStringStringOrNumberValue[]'; + String toString() => 'BannedUserMatchMatchedOnValue[]'; Map toJson() { final json = {}; return json; } - /// Returns a new [RecordStringStringOrNumberValue] instance and imports its values from + /// Returns a new [BannedUserMatchMatchedOnValue] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static RecordStringStringOrNumberValue? fromJson(dynamic value) { + static BannedUserMatchMatchedOnValue? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -44,17 +44,17 @@ class RecordStringStringOrNumberValue { return true; }()); - return RecordStringStringOrNumberValue( + return BannedUserMatchMatchedOnValue( ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = RecordStringStringOrNumberValue.fromJson(row); + final value = BannedUserMatchMatchedOnValue.fromJson(row); if (value != null) { result.add(value); } @@ -63,12 +63,12 @@ class RecordStringStringOrNumberValue { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = RecordStringStringOrNumberValue.fromJson(entry.value); + final value = BannedUserMatchMatchedOnValue.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -77,14 +77,14 @@ class RecordStringStringOrNumberValue { return map; } - // maps a json object with a list of RecordStringStringOrNumberValue-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of BannedUserMatchMatchedOnValue-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = RecordStringStringOrNumberValue.listFromJson(entry.value, growable: growable,); + map[entry.key] = BannedUserMatchMatchedOnValue.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/banned_user_match_type.dart b/client/lib/model/banned_user_match_type.dart new file mode 100644 index 0000000..5103163 --- /dev/null +++ b/client/lib/model/banned_user_match_type.dart @@ -0,0 +1,91 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class BannedUserMatchType { + /// Instantiate a new enum with the provided [value]. + const BannedUserMatchType._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const userId = BannedUserMatchType._(r'userId'); + static const email = BannedUserMatchType._(r'email'); + static const emailWildcard = BannedUserMatchType._(r'email-wildcard'); + static const IP = BannedUserMatchType._(r'IP'); + + /// List of all possible values in this [enum][BannedUserMatchType]. + static const values = [ + userId, + email, + emailWildcard, + IP, + ]; + + static BannedUserMatchType? fromJson(dynamic value) => BannedUserMatchTypeTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = BannedUserMatchType.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [BannedUserMatchType] to String, +/// and [decode] dynamic data back to [BannedUserMatchType]. +class BannedUserMatchTypeTypeTransformer { + factory BannedUserMatchTypeTypeTransformer() => _instance ??= const BannedUserMatchTypeTypeTransformer._(); + + const BannedUserMatchTypeTypeTransformer._(); + + String encode(BannedUserMatchType data) => data.value; + + /// Decodes a [dynamic value][data] to a BannedUserMatchType. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + BannedUserMatchType? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'userId': return BannedUserMatchType.userId; + case r'email': return BannedUserMatchType.email; + case r'email-wildcard': return BannedUserMatchType.emailWildcard; + case r'IP': return BannedUserMatchType.IP; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [BannedUserMatchTypeTypeTransformer] instance. + static BannedUserMatchTypeTypeTransformer? _instance; +} + diff --git a/client/lib/model/billing_info.dart b/client/lib/model/billing_info.dart index a72d2c0..50b81ac 100644 --- a/client/lib/model/billing_info.dart +++ b/client/lib/model/billing_info.dart @@ -50,25 +50,27 @@ class BillingInfo { @override bool operator ==(Object other) => identical(this, other) || other is BillingInfo && other.name == name && - other.address == address && - other.city == city && - other.state == state && - other.zip == zip && - other.country == country && - other.currency == currency && - other.email == email; + other.address == address && + other.city == city && + other.state == state && + other.zip == zip && + other.country == country && + other.currency == currency && + other.email == email; + @override int get hashCode => // ignore: unnecessary_parenthesis (name.hashCode) + - (address.hashCode) + - (city.hashCode) + - (state.hashCode) + - (zip.hashCode) + - (country.hashCode) + - (currency == null ? 0 : currency!.hashCode) + - (email == null ? 0 : email!.hashCode); + (address.hashCode) + + (city.hashCode) + + (state.hashCode) + + (zip.hashCode) + + (country.hashCode) + + (currency == null ? 0 : currency!.hashCode) + + (email == null ? 0 : email!.hashCode); + @override String toString() => 'BillingInfo[name=$name, address=$address, city=$city, state=$state, zip=$zip, country=$country, currency=$currency, email=$email]'; diff --git a/client/lib/model/block_from_comment_params.dart b/client/lib/model/block_from_comment_params.dart index a846b77..0f2ddbd 100644 --- a/client/lib/model/block_from_comment_params.dart +++ b/client/lib/model/block_from_comment_params.dart @@ -21,11 +21,13 @@ class BlockFromCommentParams { @override bool operator ==(Object other) => identical(this, other) || other is BlockFromCommentParams && _deepEquality.equals(other.commentIdsToCheck, commentIdsToCheck); + @override int get hashCode => // ignore: unnecessary_parenthesis (commentIdsToCheck.hashCode); + @override String toString() => 'BlockFromCommentParams[commentIdsToCheck=$commentIdsToCheck]'; diff --git a/client/lib/model/block_from_comment_public200_response.dart b/client/lib/model/block_from_comment_public200_response.dart deleted file mode 100644 index 0780e5b..0000000 --- a/client/lib/model/block_from_comment_public200_response.dart +++ /dev/null @@ -1,223 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class BlockFromCommentPublic200Response { - /// Returns a new [BlockFromCommentPublic200Response] instance. - BlockFromCommentPublic200Response({ - required this.status, - this.commentStatuses = const {}, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - /// Construct a type with a set of properties K of type T - Map commentStatuses; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is BlockFromCommentPublic200Response && - other.status == status && - _deepEquality.equals(other.commentStatuses, commentStatuses) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (commentStatuses.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'BlockFromCommentPublic200Response[status=$status, commentStatuses=$commentStatuses, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'commentStatuses'] = this.commentStatuses; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [BlockFromCommentPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static BlockFromCommentPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "BlockFromCommentPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "BlockFromCommentPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'commentStatuses'), 'Required key "BlockFromCommentPublic200Response[commentStatuses]" is missing from JSON.'); - assert(json[r'commentStatuses'] != null, 'Required key "BlockFromCommentPublic200Response[commentStatuses]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "BlockFromCommentPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "BlockFromCommentPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "BlockFromCommentPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "BlockFromCommentPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return BlockFromCommentPublic200Response( - status: APIStatus.fromJson(json[r'status'])!, - commentStatuses: mapCastOfType(json, r'commentStatuses')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = BlockFromCommentPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = BlockFromCommentPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of BlockFromCommentPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = BlockFromCommentPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'commentStatuses', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/block_success.dart b/client/lib/model/block_success.dart index 069667f..34c02f1 100644 --- a/client/lib/model/block_success.dart +++ b/client/lib/model/block_success.dart @@ -25,13 +25,15 @@ class BlockSuccess { @override bool operator ==(Object other) => identical(this, other) || other is BlockSuccess && other.status == status && - _deepEquality.equals(other.commentStatuses, commentStatuses); + _deepEquality.equals(other.commentStatuses, commentStatuses); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (commentStatuses.hashCode); + (commentStatuses.hashCode); + @override String toString() => 'BlockSuccess[status=$status, commentStatuses=$commentStatuses]'; diff --git a/client/lib/model/build_moderation_filter_params.dart b/client/lib/model/build_moderation_filter_params.dart new file mode 100644 index 0000000..cf289fa --- /dev/null +++ b/client/lib/model/build_moderation_filter_params.dart @@ -0,0 +1,170 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class BuildModerationFilterParams { + /// Returns a new [BuildModerationFilterParams] instance. + BuildModerationFilterParams({ + required this.userId, + required this.tenantId, + this.filters, + this.searchFilters, + this.textSearch, + }); + + String userId; + + String tenantId; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? filters; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? searchFilters; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? textSearch; + + @override + bool operator ==(Object other) => identical(this, other) || other is BuildModerationFilterParams && + other.userId == userId && + other.tenantId == tenantId && + other.filters == filters && + other.searchFilters == searchFilters && + other.textSearch == textSearch; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (userId.hashCode) + + (tenantId.hashCode) + + (filters == null ? 0 : filters!.hashCode) + + (searchFilters == null ? 0 : searchFilters!.hashCode) + + (textSearch == null ? 0 : textSearch!.hashCode); + + + @override + String toString() => 'BuildModerationFilterParams[userId=$userId, tenantId=$tenantId, filters=$filters, searchFilters=$searchFilters, textSearch=$textSearch]'; + + Map toJson() { + final json = {}; + json[r'userId'] = this.userId; + json[r'tenantId'] = this.tenantId; + if (this.filters != null) { + json[r'filters'] = this.filters; + } else { + json[r'filters'] = null; + } + if (this.searchFilters != null) { + json[r'searchFilters'] = this.searchFilters; + } else { + json[r'searchFilters'] = null; + } + if (this.textSearch != null) { + json[r'textSearch'] = this.textSearch; + } else { + json[r'textSearch'] = null; + } + return json; + } + + /// Returns a new [BuildModerationFilterParams] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static BuildModerationFilterParams? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'userId'), 'Required key "BuildModerationFilterParams[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "BuildModerationFilterParams[userId]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "BuildModerationFilterParams[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "BuildModerationFilterParams[tenantId]" has a null value in JSON.'); + return true; + }()); + + return BuildModerationFilterParams( + userId: mapValueOfType(json, r'userId')!, + tenantId: mapValueOfType(json, r'tenantId')!, + filters: mapValueOfType(json, r'filters'), + searchFilters: mapValueOfType(json, r'searchFilters'), + textSearch: mapValueOfType(json, r'textSearch'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = BuildModerationFilterParams.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = BuildModerationFilterParams.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of BuildModerationFilterParams-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = BuildModerationFilterParams.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'userId', + 'tenantId', + }; +} + diff --git a/client/lib/model/build_moderation_filter_response.dart b/client/lib/model/build_moderation_filter_response.dart new file mode 100644 index 0000000..0767c67 --- /dev/null +++ b/client/lib/model/build_moderation_filter_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class BuildModerationFilterResponse { + /// Returns a new [BuildModerationFilterResponse] instance. + BuildModerationFilterResponse({ + required this.status, + required this.moderationFilter, + }); + + String status; + + ModerationFilter moderationFilter; + + @override + bool operator ==(Object other) => identical(this, other) || other is BuildModerationFilterResponse && + other.status == status && + other.moderationFilter == moderationFilter; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (moderationFilter.hashCode); + + + @override + String toString() => 'BuildModerationFilterResponse[status=$status, moderationFilter=$moderationFilter]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'moderationFilter'] = this.moderationFilter; + return json; + } + + /// Returns a new [BuildModerationFilterResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static BuildModerationFilterResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "BuildModerationFilterResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "BuildModerationFilterResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'moderationFilter'), 'Required key "BuildModerationFilterResponse[moderationFilter]" is missing from JSON.'); + assert(json[r'moderationFilter'] != null, 'Required key "BuildModerationFilterResponse[moderationFilter]" has a null value in JSON.'); + return true; + }()); + + return BuildModerationFilterResponse( + status: mapValueOfType(json, r'status')!, + moderationFilter: ModerationFilter.fromJson(json[r'moderationFilter'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = BuildModerationFilterResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = BuildModerationFilterResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of BuildModerationFilterResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = BuildModerationFilterResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'moderationFilter', + }; +} + diff --git a/client/lib/model/bulk_aggregate_question_item.dart b/client/lib/model/bulk_aggregate_question_item.dart index 3f2d732..08950ff 100644 --- a/client/lib/model/bulk_aggregate_question_item.dart +++ b/client/lib/model/bulk_aggregate_question_item.dart @@ -60,21 +60,23 @@ class BulkAggregateQuestionItem { @override bool operator ==(Object other) => identical(this, other) || other is BulkAggregateQuestionItem && other.aggId == aggId && - other.questionId == questionId && - _deepEquality.equals(other.questionIds, questionIds) && - other.urlId == urlId && - other.timeBucket == timeBucket && - other.startDate == startDate; + other.questionId == questionId && + _deepEquality.equals(other.questionIds, questionIds) && + other.urlId == urlId && + other.timeBucket == timeBucket && + other.startDate == startDate; + @override int get hashCode => // ignore: unnecessary_parenthesis (aggId.hashCode) + - (questionId == null ? 0 : questionId!.hashCode) + - (questionIds.hashCode) + - (urlId == null ? 0 : urlId!.hashCode) + - (timeBucket == null ? 0 : timeBucket!.hashCode) + - (startDate == null ? 0 : startDate!.hashCode); + (questionId == null ? 0 : questionId!.hashCode) + + (questionIds.hashCode) + + (urlId == null ? 0 : urlId!.hashCode) + + (timeBucket == null ? 0 : timeBucket!.hashCode) + + (startDate == null ? 0 : startDate!.hashCode); + @override String toString() => 'BulkAggregateQuestionItem[aggId=$aggId, questionId=$questionId, questionIds=$questionIds, urlId=$urlId, timeBucket=$timeBucket, startDate=$startDate]'; diff --git a/client/lib/model/bulk_aggregate_question_results200_response.dart b/client/lib/model/bulk_aggregate_question_results200_response.dart deleted file mode 100644 index 53976be..0000000 --- a/client/lib/model/bulk_aggregate_question_results200_response.dart +++ /dev/null @@ -1,223 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class BulkAggregateQuestionResults200Response { - /// Returns a new [BulkAggregateQuestionResults200Response] instance. - BulkAggregateQuestionResults200Response({ - required this.status, - this.data = const {}, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - /// Construct a type with a set of properties K of type T - Map data; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is BulkAggregateQuestionResults200Response && - other.status == status && - _deepEquality.equals(other.data, data) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (data.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'BulkAggregateQuestionResults200Response[status=$status, data=$data, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'data'] = this.data; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [BulkAggregateQuestionResults200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static BulkAggregateQuestionResults200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "BulkAggregateQuestionResults200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "BulkAggregateQuestionResults200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "BulkAggregateQuestionResults200Response[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "BulkAggregateQuestionResults200Response[data]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "BulkAggregateQuestionResults200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "BulkAggregateQuestionResults200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "BulkAggregateQuestionResults200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "BulkAggregateQuestionResults200Response[code]" has a null value in JSON.'); - return true; - }()); - - return BulkAggregateQuestionResults200Response( - status: APIStatus.fromJson(json[r'status'])!, - data: QuestionResultAggregationOverall.mapFromJson(json[r'data']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = BulkAggregateQuestionResults200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = BulkAggregateQuestionResults200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of BulkAggregateQuestionResults200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = BulkAggregateQuestionResults200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'data', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/bulk_aggregate_question_results_request.dart b/client/lib/model/bulk_aggregate_question_results_request.dart index e9c93a5..6c629ac 100644 --- a/client/lib/model/bulk_aggregate_question_results_request.dart +++ b/client/lib/model/bulk_aggregate_question_results_request.dart @@ -21,11 +21,13 @@ class BulkAggregateQuestionResultsRequest { @override bool operator ==(Object other) => identical(this, other) || other is BulkAggregateQuestionResultsRequest && _deepEquality.equals(other.aggregations, aggregations); + @override int get hashCode => // ignore: unnecessary_parenthesis (aggregations.hashCode); + @override String toString() => 'BulkAggregateQuestionResultsRequest[aggregations=$aggregations]'; diff --git a/client/lib/model/bulk_aggregate_question_results_response.dart b/client/lib/model/bulk_aggregate_question_results_response.dart index 1f1d47f..e0dde36 100644 --- a/client/lib/model/bulk_aggregate_question_results_response.dart +++ b/client/lib/model/bulk_aggregate_question_results_response.dart @@ -25,13 +25,15 @@ class BulkAggregateQuestionResultsResponse { @override bool operator ==(Object other) => identical(this, other) || other is BulkAggregateQuestionResultsResponse && other.status == status && - _deepEquality.equals(other.data, data); + _deepEquality.equals(other.data, data); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (data.hashCode); + (data.hashCode); + @override String toString() => 'BulkAggregateQuestionResultsResponse[status=$status, data=$data]'; diff --git a/client/lib/model/bulk_create_hash_tags_body.dart b/client/lib/model/bulk_create_hash_tags_body.dart index df9264d..afd661e 100644 --- a/client/lib/model/bulk_create_hash_tags_body.dart +++ b/client/lib/model/bulk_create_hash_tags_body.dart @@ -30,13 +30,15 @@ class BulkCreateHashTagsBody { @override bool operator ==(Object other) => identical(this, other) || other is BulkCreateHashTagsBody && other.tenantId == tenantId && - _deepEquality.equals(other.tags, tags); + _deepEquality.equals(other.tags, tags); + @override int get hashCode => // ignore: unnecessary_parenthesis (tenantId == null ? 0 : tenantId!.hashCode) + - (tags.hashCode); + (tags.hashCode); + @override String toString() => 'BulkCreateHashTagsBody[tenantId=$tenantId, tags=$tags]'; diff --git a/client/lib/model/bulk_create_hash_tags_body_tags_inner.dart b/client/lib/model/bulk_create_hash_tags_body_tags_inner.dart index 0d52174..fed53ad 100644 --- a/client/lib/model/bulk_create_hash_tags_body_tags_inner.dart +++ b/client/lib/model/bulk_create_hash_tags_body_tags_inner.dart @@ -30,13 +30,15 @@ class BulkCreateHashTagsBodyTagsInner { @override bool operator ==(Object other) => identical(this, other) || other is BulkCreateHashTagsBodyTagsInner && other.url == url && - other.tag == tag; + other.tag == tag; + @override int get hashCode => // ignore: unnecessary_parenthesis (url == null ? 0 : url!.hashCode) + - (tag.hashCode); + (tag.hashCode); + @override String toString() => 'BulkCreateHashTagsBodyTagsInner[url=$url, tag=$tag]'; diff --git a/client/lib/model/bulk_create_hash_tags_response.dart b/client/lib/model/bulk_create_hash_tags_response.dart index e708bbd..6ccd419 100644 --- a/client/lib/model/bulk_create_hash_tags_response.dart +++ b/client/lib/model/bulk_create_hash_tags_response.dart @@ -19,18 +19,20 @@ class BulkCreateHashTagsResponse { APIStatus status; - List results; + List results; @override bool operator ==(Object other) => identical(this, other) || other is BulkCreateHashTagsResponse && other.status == status && - _deepEquality.equals(other.results, results); + _deepEquality.equals(other.results, results); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (results.hashCode); + (results.hashCode); + @override String toString() => 'BulkCreateHashTagsResponse[status=$status, results=$results]'; @@ -62,7 +64,7 @@ class BulkCreateHashTagsResponse { return BulkCreateHashTagsResponse( status: APIStatus.fromJson(json[r'status'])!, - results: AddHashTag200Response.listFromJson(json[r'results']), + results: BulkCreateHashTagsResponseResultsInner.listFromJson(json[r'results']), ); } return null; diff --git a/client/lib/model/flag_comment200_response.dart b/client/lib/model/bulk_create_hash_tags_response_results_inner.dart similarity index 62% rename from client/lib/model/flag_comment200_response.dart rename to client/lib/model/bulk_create_hash_tags_response_results_inner.dart index 0e0f444..1ab2cb8 100644 --- a/client/lib/model/flag_comment200_response.dart +++ b/client/lib/model/bulk_create_hash_tags_response_results_inner.dart @@ -10,14 +10,13 @@ part of openapi.api; -class FlagComment200Response { - /// Returns a new [FlagComment200Response] instance. - FlagComment200Response({ - this.statusCode, +class BulkCreateHashTagsResponseResultsInner { + /// Returns a new [BulkCreateHashTagsResponseResultsInner] instance. + BulkCreateHashTagsResponseResultsInner({ required this.status, - required this.code, - required this.reason, - this.wasUnapproved, + this.hashTag, + this.reason, + this.code, this.secondaryCode, this.bannedUntil, this.maxCharacterLength, @@ -25,19 +24,23 @@ class FlagComment200Response { this.customConfig, }); + APIStatus status; + /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? statusCode; - - APIStatus status; - - String code; + TenantHashTag? hashTag; - String reason; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? reason; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -45,7 +48,7 @@ class FlagComment200Response { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - bool? wasUnapproved; + String? code; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -88,49 +91,52 @@ class FlagComment200Response { CustomConfigParameters? customConfig; @override - bool operator ==(Object other) => identical(this, other) || other is FlagComment200Response && - other.statusCode == statusCode && + bool operator ==(Object other) => identical(this, other) || other is BulkCreateHashTagsResponseResultsInner && other.status == status && - other.code == code && - other.reason == reason && - other.wasUnapproved == wasUnapproved && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; + other.hashTag == hashTag && + other.reason == reason && + other.code == code && + other.secondaryCode == secondaryCode && + other.bannedUntil == bannedUntil && + other.maxCharacterLength == maxCharacterLength && + other.translatedError == translatedError && + other.customConfig == customConfig; + @override int get hashCode => // ignore: unnecessary_parenthesis - (statusCode == null ? 0 : statusCode!.hashCode) + (status.hashCode) + - (code.hashCode) + - (reason.hashCode) + - (wasUnapproved == null ? 0 : wasUnapproved!.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); + (hashTag == null ? 0 : hashTag!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode) + + (secondaryCode == null ? 0 : secondaryCode!.hashCode) + + (bannedUntil == null ? 0 : bannedUntil!.hashCode) + + (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + + (translatedError == null ? 0 : translatedError!.hashCode) + + (customConfig == null ? 0 : customConfig!.hashCode); + @override - String toString() => 'FlagComment200Response[statusCode=$statusCode, status=$status, code=$code, reason=$reason, wasUnapproved=$wasUnapproved, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; + String toString() => 'BulkCreateHashTagsResponseResultsInner[status=$status, hashTag=$hashTag, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; Map toJson() { final json = {}; - if (this.statusCode != null) { - json[r'statusCode'] = this.statusCode; + json[r'status'] = this.status; + if (this.hashTag != null) { + json[r'hashTag'] = this.hashTag; } else { - json[r'statusCode'] = null; + json[r'hashTag'] = null; } - json[r'status'] = this.status; - json[r'code'] = this.code; + if (this.reason != null) { json[r'reason'] = this.reason; - if (this.wasUnapproved != null) { - json[r'wasUnapproved'] = this.wasUnapproved; } else { - json[r'wasUnapproved'] = null; + json[r'reason'] = null; + } + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; } if (this.secondaryCode != null) { json[r'secondaryCode'] = this.secondaryCode; @@ -160,10 +166,10 @@ class FlagComment200Response { return json; } - /// Returns a new [FlagComment200Response] instance and imports its values from + /// Returns a new [BulkCreateHashTagsResponseResultsInner] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static FlagComment200Response? fromJson(dynamic value) { + static BulkCreateHashTagsResponseResultsInner? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -171,21 +177,16 @@ class FlagComment200Response { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'status'), 'Required key "FlagComment200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "FlagComment200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "FlagComment200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "FlagComment200Response[code]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "FlagComment200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "FlagComment200Response[reason]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "BulkCreateHashTagsResponseResultsInner[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "BulkCreateHashTagsResponseResultsInner[status]" has a null value in JSON.'); return true; }()); - return FlagComment200Response( - statusCode: mapValueOfType(json, r'statusCode'), + return BulkCreateHashTagsResponseResultsInner( status: APIStatus.fromJson(json[r'status'])!, - code: mapValueOfType(json, r'code')!, - reason: mapValueOfType(json, r'reason')!, - wasUnapproved: mapValueOfType(json, r'wasUnapproved'), + hashTag: TenantHashTag.fromJson(json[r'hashTag']), + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), secondaryCode: mapValueOfType(json, r'secondaryCode'), bannedUntil: mapValueOfType(json, r'bannedUntil'), maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), @@ -196,11 +197,11 @@ class FlagComment200Response { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = FlagComment200Response.fromJson(row); + final value = BulkCreateHashTagsResponseResultsInner.fromJson(row); if (value != null) { result.add(value); } @@ -209,12 +210,12 @@ class FlagComment200Response { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = FlagComment200Response.fromJson(entry.value); + final value = BulkCreateHashTagsResponseResultsInner.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -223,14 +224,14 @@ class FlagComment200Response { return map; } - // maps a json object with a list of FlagComment200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of BulkCreateHashTagsResponseResultsInner-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = FlagComment200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = BulkCreateHashTagsResponseResultsInner.listFromJson(entry.value, growable: growable,); } } return map; @@ -239,8 +240,6 @@ class FlagComment200Response { /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'status', - 'code', - 'reason', }; } diff --git a/client/lib/model/bulk_pre_ban_params.dart b/client/lib/model/bulk_pre_ban_params.dart new file mode 100644 index 0000000..3080bb4 --- /dev/null +++ b/client/lib/model/bulk_pre_ban_params.dart @@ -0,0 +1,111 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class BulkPreBanParams { + /// Returns a new [BulkPreBanParams] instance. + BulkPreBanParams({ + this.commentIds = const [], + }); + + List commentIds; + + @override + bool operator ==(Object other) => identical(this, other) || other is BulkPreBanParams && + _deepEquality.equals(other.commentIds, commentIds); + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (commentIds.hashCode); + + + @override + String toString() => 'BulkPreBanParams[commentIds=$commentIds]'; + + Map toJson() { + final json = {}; + json[r'commentIds'] = this.commentIds; + return json; + } + + /// Returns a new [BulkPreBanParams] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static BulkPreBanParams? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'commentIds'), 'Required key "BulkPreBanParams[commentIds]" is missing from JSON.'); + assert(json[r'commentIds'] != null, 'Required key "BulkPreBanParams[commentIds]" has a null value in JSON.'); + return true; + }()); + + return BulkPreBanParams( + commentIds: json[r'commentIds'] is Iterable + ? (json[r'commentIds'] as Iterable).cast().toList(growable: false) + : const [], + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = BulkPreBanParams.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = BulkPreBanParams.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of BulkPreBanParams-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = BulkPreBanParams.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'commentIds', + }; +} + diff --git a/client/lib/model/bulk_pre_ban_summary.dart b/client/lib/model/bulk_pre_ban_summary.dart new file mode 100644 index 0000000..0db157c --- /dev/null +++ b/client/lib/model/bulk_pre_ban_summary.dart @@ -0,0 +1,167 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class BulkPreBanSummary { + /// Returns a new [BulkPreBanSummary] instance. + BulkPreBanSummary({ + required this.status, + required this.totalRelatedCommentCount, + this.emailDomains = const [], + this.emails = const [], + this.userIds = const [], + this.ipHashes = const [], + }); + + String status; + + int totalRelatedCommentCount; + + List emailDomains; + + List emails; + + List userIds; + + List ipHashes; + + @override + bool operator ==(Object other) => identical(this, other) || other is BulkPreBanSummary && + other.status == status && + other.totalRelatedCommentCount == totalRelatedCommentCount && + _deepEquality.equals(other.emailDomains, emailDomains) && + _deepEquality.equals(other.emails, emails) && + _deepEquality.equals(other.userIds, userIds) && + _deepEquality.equals(other.ipHashes, ipHashes); + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (totalRelatedCommentCount.hashCode) + + (emailDomains.hashCode) + + (emails.hashCode) + + (userIds.hashCode) + + (ipHashes.hashCode); + + + @override + String toString() => 'BulkPreBanSummary[status=$status, totalRelatedCommentCount=$totalRelatedCommentCount, emailDomains=$emailDomains, emails=$emails, userIds=$userIds, ipHashes=$ipHashes]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'totalRelatedCommentCount'] = this.totalRelatedCommentCount; + json[r'emailDomains'] = this.emailDomains; + json[r'emails'] = this.emails; + json[r'userIds'] = this.userIds; + json[r'ipHashes'] = this.ipHashes; + return json; + } + + /// Returns a new [BulkPreBanSummary] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static BulkPreBanSummary? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "BulkPreBanSummary[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "BulkPreBanSummary[status]" has a null value in JSON.'); + assert(json.containsKey(r'totalRelatedCommentCount'), 'Required key "BulkPreBanSummary[totalRelatedCommentCount]" is missing from JSON.'); + assert(json[r'totalRelatedCommentCount'] != null, 'Required key "BulkPreBanSummary[totalRelatedCommentCount]" has a null value in JSON.'); + assert(json.containsKey(r'emailDomains'), 'Required key "BulkPreBanSummary[emailDomains]" is missing from JSON.'); + assert(json[r'emailDomains'] != null, 'Required key "BulkPreBanSummary[emailDomains]" has a null value in JSON.'); + assert(json.containsKey(r'emails'), 'Required key "BulkPreBanSummary[emails]" is missing from JSON.'); + assert(json[r'emails'] != null, 'Required key "BulkPreBanSummary[emails]" has a null value in JSON.'); + assert(json.containsKey(r'userIds'), 'Required key "BulkPreBanSummary[userIds]" is missing from JSON.'); + assert(json[r'userIds'] != null, 'Required key "BulkPreBanSummary[userIds]" has a null value in JSON.'); + assert(json.containsKey(r'ipHashes'), 'Required key "BulkPreBanSummary[ipHashes]" is missing from JSON.'); + assert(json[r'ipHashes'] != null, 'Required key "BulkPreBanSummary[ipHashes]" has a null value in JSON.'); + return true; + }()); + + return BulkPreBanSummary( + status: mapValueOfType(json, r'status')!, + totalRelatedCommentCount: mapValueOfType(json, r'totalRelatedCommentCount')!, + emailDomains: json[r'emailDomains'] is Iterable + ? (json[r'emailDomains'] as Iterable).cast().toList(growable: false) + : const [], + emails: json[r'emails'] is Iterable + ? (json[r'emails'] as Iterable).cast().toList(growable: false) + : const [], + userIds: json[r'userIds'] is Iterable + ? (json[r'userIds'] as Iterable).cast().toList(growable: false) + : const [], + ipHashes: json[r'ipHashes'] is Iterable + ? (json[r'ipHashes'] as Iterable).cast().toList(growable: false) + : const [], + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = BulkPreBanSummary.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = BulkPreBanSummary.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of BulkPreBanSummary-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = BulkPreBanSummary.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'totalRelatedCommentCount', + 'emailDomains', + 'emails', + 'userIds', + 'ipHashes', + }; +} + diff --git a/client/lib/model/change_comment_pin_status_response.dart b/client/lib/model/change_comment_pin_status_response.dart index 85cffa0..57d623a 100644 --- a/client/lib/model/change_comment_pin_status_response.dart +++ b/client/lib/model/change_comment_pin_status_response.dart @@ -25,13 +25,15 @@ class ChangeCommentPinStatusResponse { @override bool operator ==(Object other) => identical(this, other) || other is ChangeCommentPinStatusResponse && _deepEquality.equals(other.commentPositions, commentPositions) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (commentPositions.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'ChangeCommentPinStatusResponse[commentPositions=$commentPositions, status=$status]'; diff --git a/client/lib/model/change_ticket_state200_response.dart b/client/lib/model/change_ticket_state200_response.dart deleted file mode 100644 index d36e192..0000000 --- a/client/lib/model/change_ticket_state200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ChangeTicketState200Response { - /// Returns a new [ChangeTicketState200Response] instance. - ChangeTicketState200Response({ - required this.status, - required this.ticket, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - APITicket ticket; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is ChangeTicketState200Response && - other.status == status && - other.ticket == ticket && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (ticket.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'ChangeTicketState200Response[status=$status, ticket=$ticket, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'ticket'] = this.ticket; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [ChangeTicketState200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ChangeTicketState200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "ChangeTicketState200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "ChangeTicketState200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'ticket'), 'Required key "ChangeTicketState200Response[ticket]" is missing from JSON.'); - assert(json[r'ticket'] != null, 'Required key "ChangeTicketState200Response[ticket]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "ChangeTicketState200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "ChangeTicketState200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "ChangeTicketState200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "ChangeTicketState200Response[code]" has a null value in JSON.'); - return true; - }()); - - return ChangeTicketState200Response( - status: APIStatus.fromJson(json[r'status'])!, - ticket: APITicket.fromJson(json[r'ticket'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ChangeTicketState200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ChangeTicketState200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ChangeTicketState200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ChangeTicketState200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'ticket', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/change_ticket_state_body.dart b/client/lib/model/change_ticket_state_body.dart index 2120940..75f15b5 100644 --- a/client/lib/model/change_ticket_state_body.dart +++ b/client/lib/model/change_ticket_state_body.dart @@ -21,11 +21,13 @@ class ChangeTicketStateBody { @override bool operator ==(Object other) => identical(this, other) || other is ChangeTicketStateBody && other.state == state; + @override int get hashCode => // ignore: unnecessary_parenthesis (state.hashCode); + @override String toString() => 'ChangeTicketStateBody[state=$state]'; diff --git a/client/lib/model/change_ticket_state_response.dart b/client/lib/model/change_ticket_state_response.dart index 3829d3b..afac106 100644 --- a/client/lib/model/change_ticket_state_response.dart +++ b/client/lib/model/change_ticket_state_response.dart @@ -24,13 +24,15 @@ class ChangeTicketStateResponse { @override bool operator ==(Object other) => identical(this, other) || other is ChangeTicketStateResponse && other.status == status && - other.ticket == ticket; + other.ticket == ticket; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (ticket.hashCode); + (ticket.hashCode); + @override String toString() => 'ChangeTicketStateResponse[status=$status, ticket=$ticket]'; diff --git a/client/lib/model/check_blocked_comments_response.dart b/client/lib/model/check_blocked_comments_response.dart index abc3e67..d5f9a78 100644 --- a/client/lib/model/check_blocked_comments_response.dart +++ b/client/lib/model/check_blocked_comments_response.dart @@ -25,13 +25,15 @@ class CheckBlockedCommentsResponse { @override bool operator ==(Object other) => identical(this, other) || other is CheckBlockedCommentsResponse && _deepEquality.equals(other.commentStatuses, commentStatuses) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (commentStatuses.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'CheckBlockedCommentsResponse[commentStatuses=$commentStatuses, status=$status]'; diff --git a/client/lib/model/checked_comments_for_blocked200_response.dart b/client/lib/model/checked_comments_for_blocked200_response.dart deleted file mode 100644 index ba4e81a..0000000 --- a/client/lib/model/checked_comments_for_blocked200_response.dart +++ /dev/null @@ -1,223 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CheckedCommentsForBlocked200Response { - /// Returns a new [CheckedCommentsForBlocked200Response] instance. - CheckedCommentsForBlocked200Response({ - this.commentStatuses = const {}, - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - /// Construct a type with a set of properties K of type T - Map commentStatuses; - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CheckedCommentsForBlocked200Response && - _deepEquality.equals(other.commentStatuses, commentStatuses) && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (commentStatuses.hashCode) + - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CheckedCommentsForBlocked200Response[commentStatuses=$commentStatuses, status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'commentStatuses'] = this.commentStatuses; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CheckedCommentsForBlocked200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CheckedCommentsForBlocked200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'commentStatuses'), 'Required key "CheckedCommentsForBlocked200Response[commentStatuses]" is missing from JSON.'); - assert(json[r'commentStatuses'] != null, 'Required key "CheckedCommentsForBlocked200Response[commentStatuses]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "CheckedCommentsForBlocked200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CheckedCommentsForBlocked200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CheckedCommentsForBlocked200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CheckedCommentsForBlocked200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CheckedCommentsForBlocked200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CheckedCommentsForBlocked200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CheckedCommentsForBlocked200Response( - commentStatuses: mapCastOfType(json, r'commentStatuses')!, - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CheckedCommentsForBlocked200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CheckedCommentsForBlocked200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CheckedCommentsForBlocked200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CheckedCommentsForBlocked200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'commentStatuses', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/combine_comments_with_question_results200_response.dart b/client/lib/model/combine_comments_with_question_results200_response.dart deleted file mode 100644 index 78b8d34..0000000 --- a/client/lib/model/combine_comments_with_question_results200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CombineCommentsWithQuestionResults200Response { - /// Returns a new [CombineCommentsWithQuestionResults200Response] instance. - CombineCommentsWithQuestionResults200Response({ - required this.status, - required this.data, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - FindCommentsByRangeResponse data; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CombineCommentsWithQuestionResults200Response && - other.status == status && - other.data == data && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (data.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CombineCommentsWithQuestionResults200Response[status=$status, data=$data, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'data'] = this.data; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CombineCommentsWithQuestionResults200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CombineCommentsWithQuestionResults200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CombineCommentsWithQuestionResults200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CombineCommentsWithQuestionResults200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "CombineCommentsWithQuestionResults200Response[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "CombineCommentsWithQuestionResults200Response[data]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CombineCommentsWithQuestionResults200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CombineCommentsWithQuestionResults200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CombineCommentsWithQuestionResults200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CombineCommentsWithQuestionResults200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CombineCommentsWithQuestionResults200Response( - status: APIStatus.fromJson(json[r'status'])!, - data: FindCommentsByRangeResponse.fromJson(json[r'data'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CombineCommentsWithQuestionResults200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CombineCommentsWithQuestionResults200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CombineCommentsWithQuestionResults200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CombineCommentsWithQuestionResults200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'data', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/combine_question_results_with_comments_response.dart b/client/lib/model/combine_question_results_with_comments_response.dart index ed15f6e..e544e83 100644 --- a/client/lib/model/combine_question_results_with_comments_response.dart +++ b/client/lib/model/combine_question_results_with_comments_response.dart @@ -24,13 +24,15 @@ class CombineQuestionResultsWithCommentsResponse { @override bool operator ==(Object other) => identical(this, other) || other is CombineQuestionResultsWithCommentsResponse && other.status == status && - other.data == data; + other.data == data; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (data.hashCode); + (data.hashCode); + @override String toString() => 'CombineQuestionResultsWithCommentsResponse[status=$status, data=$data]'; diff --git a/client/lib/model/comment_data.dart b/client/lib/model/comment_data.dart index c0cc4ee..7c2b7bb 100644 --- a/client/lib/model/comment_data.dart +++ b/client/lib/model/comment_data.dart @@ -148,7 +148,7 @@ class CommentData { List feedbackIds; /// Construct a type with a set of properties K of type T - Map questionValues; + Map questionValues; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -169,61 +169,63 @@ class CommentData { @override bool operator ==(Object other) => identical(this, other) || other is CommentData && other.date == date && - other.localDateString == localDateString && - other.localDateHours == localDateHours && - other.commenterName == commenterName && - other.commenterEmail == commenterEmail && - other.commenterLink == commenterLink && - other.comment == comment && - other.productId == productId && - other.userId == userId && - other.avatarSrc == avatarSrc && - other.parentId == parentId && - _deepEquality.equals(other.mentions, mentions) && - _deepEquality.equals(other.hashTags, hashTags) && - other.pageTitle == pageTitle && - other.isFromMyAccountPage == isFromMyAccountPage && - other.url == url && - other.urlId == urlId && - other.meta == meta && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && - other.rating == rating && - other.fromOfflineRestore == fromOfflineRestore && - other.autoplayDelayMS == autoplayDelayMS && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - _deepEquality.equals(other.questionValues, questionValues) && - other.tos == tos && - other.botId == botId; + other.localDateString == localDateString && + other.localDateHours == localDateHours && + other.commenterName == commenterName && + other.commenterEmail == commenterEmail && + other.commenterLink == commenterLink && + other.comment == comment && + other.productId == productId && + other.userId == userId && + other.avatarSrc == avatarSrc && + other.parentId == parentId && + _deepEquality.equals(other.mentions, mentions) && + _deepEquality.equals(other.hashTags, hashTags) && + other.pageTitle == pageTitle && + other.isFromMyAccountPage == isFromMyAccountPage && + other.url == url && + other.urlId == urlId && + other.meta == meta && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && + other.rating == rating && + other.fromOfflineRestore == fromOfflineRestore && + other.autoplayDelayMS == autoplayDelayMS && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + _deepEquality.equals(other.questionValues, questionValues) && + other.tos == tos && + other.botId == botId; + @override int get hashCode => // ignore: unnecessary_parenthesis (date == null ? 0 : date!.hashCode) + - (localDateString == null ? 0 : localDateString!.hashCode) + - (localDateHours == null ? 0 : localDateHours!.hashCode) + - (commenterName.hashCode) + - (commenterEmail == null ? 0 : commenterEmail!.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (comment.hashCode) + - (productId == null ? 0 : productId!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (mentions.hashCode) + - (hashTags.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (isFromMyAccountPage == null ? 0 : isFromMyAccountPage!.hashCode) + - (url.hashCode) + - (urlId.hashCode) + - (meta == null ? 0 : meta!.hashCode) + - (moderationGroupIds.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (fromOfflineRestore == null ? 0 : fromOfflineRestore!.hashCode) + - (autoplayDelayMS == null ? 0 : autoplayDelayMS!.hashCode) + - (feedbackIds.hashCode) + - (questionValues.hashCode) + - (tos == null ? 0 : tos!.hashCode) + - (botId == null ? 0 : botId!.hashCode); + (localDateString == null ? 0 : localDateString!.hashCode) + + (localDateHours == null ? 0 : localDateHours!.hashCode) + + (commenterName.hashCode) + + (commenterEmail == null ? 0 : commenterEmail!.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (comment.hashCode) + + (productId == null ? 0 : productId!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (mentions.hashCode) + + (hashTags.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (isFromMyAccountPage == null ? 0 : isFromMyAccountPage!.hashCode) + + (url.hashCode) + + (urlId.hashCode) + + (meta == null ? 0 : meta!.hashCode) + + (moderationGroupIds.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (fromOfflineRestore == null ? 0 : fromOfflineRestore!.hashCode) + + (autoplayDelayMS == null ? 0 : autoplayDelayMS!.hashCode) + + (feedbackIds.hashCode) + + (questionValues.hashCode) + + (tos == null ? 0 : tos!.hashCode) + + (botId == null ? 0 : botId!.hashCode); + @override String toString() => 'CommentData[date=$date, localDateString=$localDateString, localDateHours=$localDateHours, commenterName=$commenterName, commenterEmail=$commenterEmail, commenterLink=$commenterLink, comment=$comment, productId=$productId, userId=$userId, avatarSrc=$avatarSrc, parentId=$parentId, mentions=$mentions, hashTags=$hashTags, pageTitle=$pageTitle, isFromMyAccountPage=$isFromMyAccountPage, url=$url, urlId=$urlId, meta=$meta, moderationGroupIds=$moderationGroupIds, rating=$rating, fromOfflineRestore=$fromOfflineRestore, autoplayDelayMS=$autoplayDelayMS, feedbackIds=$feedbackIds, questionValues=$questionValues, tos=$tos, botId=$botId]'; @@ -377,7 +379,7 @@ class CommentData { feedbackIds: json[r'feedbackIds'] is Iterable ? (json[r'feedbackIds'] as Iterable).cast().toList(growable: false) : const [], - questionValues: RecordStringStringOrNumberValue.mapFromJson(json[r'questionValues']), + questionValues: GifSearchResponseImagesInnerInner.mapFromJson(json[r'questionValues']), tos: mapValueOfType(json, r'tos'), botId: mapValueOfType(json, r'botId'), ); diff --git a/client/lib/model/comment_log_data.dart b/client/lib/model/comment_log_data.dart index 6576f36..b5d2baf 100644 --- a/client/lib/model/comment_log_data.dart +++ b/client/lib/model/comment_log_data.dart @@ -28,6 +28,7 @@ class CommentLogData { this.engineResponse, this.engineTokens, this.trustFactor, + this.source_, this.rule, this.userId, this.subscribers, @@ -181,6 +182,14 @@ class CommentLogData { /// double? trustFactor; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? source_; + /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated @@ -366,104 +375,108 @@ class CommentLogData { @override bool operator ==(Object other) => identical(this, other) || other is CommentLogData && other.clearContent == clearContent && - other.isDeletedUser == isDeletedUser && - other.phrase == phrase && - other.badWord == badWord && - other.word == word && - other.locale == locale && - other.tenantBadgeId == tenantBadgeId && - other.badgeId == badgeId && - other.wasLoggedIn == wasLoggedIn && - other.foundUser == foundUser && - other.verified == verified && - other.engine == engine && - other.engineResponse == engineResponse && - other.engineTokens == engineTokens && - other.trustFactor == trustFactor && - other.rule == rule && - other.userId == userId && - other.subscribers == subscribers && - other.notificationCount == notificationCount && - other.votesBefore == votesBefore && - other.votesUpBefore == votesUpBefore && - other.votesDownBefore == votesDownBefore && - other.votesAfter == votesAfter && - other.votesUpAfter == votesUpAfter && - other.votesDownAfter == votesDownAfter && - other.repeatAction == repeatAction && - other.reason == reason && - other.otherData == otherData && - other.spamBefore == spamBefore && - other.spamAfter == spamAfter && - other.permanentFlag == permanentFlag && - other.approvedBefore == approvedBefore && - other.approvedAfter == approvedAfter && - other.reviewedBefore == reviewedBefore && - other.reviewedAfter == reviewedAfter && - other.textBefore == textBefore && - other.textAfter == textAfter && - other.expireBefore == expireBefore && - other.expireAfter == expireAfter && - other.flagCountBefore == flagCountBefore && - other.trustFactorBefore == trustFactorBefore && - other.trustFactorAfter == trustFactorAfter && - other.referencedCommentId == referencedCommentId && - other.invalidLocale == invalidLocale && - other.detectedLocale == detectedLocale && - other.detectedLanguage == detectedLanguage; + other.isDeletedUser == isDeletedUser && + other.phrase == phrase && + other.badWord == badWord && + other.word == word && + other.locale == locale && + other.tenantBadgeId == tenantBadgeId && + other.badgeId == badgeId && + other.wasLoggedIn == wasLoggedIn && + other.foundUser == foundUser && + other.verified == verified && + other.engine == engine && + other.engineResponse == engineResponse && + other.engineTokens == engineTokens && + other.trustFactor == trustFactor && + other.source_ == source_ && + other.rule == rule && + other.userId == userId && + other.subscribers == subscribers && + other.notificationCount == notificationCount && + other.votesBefore == votesBefore && + other.votesUpBefore == votesUpBefore && + other.votesDownBefore == votesDownBefore && + other.votesAfter == votesAfter && + other.votesUpAfter == votesUpAfter && + other.votesDownAfter == votesDownAfter && + other.repeatAction == repeatAction && + other.reason == reason && + other.otherData == otherData && + other.spamBefore == spamBefore && + other.spamAfter == spamAfter && + other.permanentFlag == permanentFlag && + other.approvedBefore == approvedBefore && + other.approvedAfter == approvedAfter && + other.reviewedBefore == reviewedBefore && + other.reviewedAfter == reviewedAfter && + other.textBefore == textBefore && + other.textAfter == textAfter && + other.expireBefore == expireBefore && + other.expireAfter == expireAfter && + other.flagCountBefore == flagCountBefore && + other.trustFactorBefore == trustFactorBefore && + other.trustFactorAfter == trustFactorAfter && + other.referencedCommentId == referencedCommentId && + other.invalidLocale == invalidLocale && + other.detectedLocale == detectedLocale && + other.detectedLanguage == detectedLanguage; + @override int get hashCode => // ignore: unnecessary_parenthesis (clearContent == null ? 0 : clearContent!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (phrase == null ? 0 : phrase!.hashCode) + - (badWord == null ? 0 : badWord!.hashCode) + - (word == null ? 0 : word!.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (tenantBadgeId == null ? 0 : tenantBadgeId!.hashCode) + - (badgeId == null ? 0 : badgeId!.hashCode) + - (wasLoggedIn == null ? 0 : wasLoggedIn!.hashCode) + - (foundUser == null ? 0 : foundUser!.hashCode) + - (verified == null ? 0 : verified!.hashCode) + - (engine == null ? 0 : engine!.hashCode) + - (engineResponse == null ? 0 : engineResponse!.hashCode) + - (engineTokens == null ? 0 : engineTokens!.hashCode) + - (trustFactor == null ? 0 : trustFactor!.hashCode) + - (rule == null ? 0 : rule!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (subscribers == null ? 0 : subscribers!.hashCode) + - (notificationCount == null ? 0 : notificationCount!.hashCode) + - (votesBefore == null ? 0 : votesBefore!.hashCode) + - (votesUpBefore == null ? 0 : votesUpBefore!.hashCode) + - (votesDownBefore == null ? 0 : votesDownBefore!.hashCode) + - (votesAfter == null ? 0 : votesAfter!.hashCode) + - (votesUpAfter == null ? 0 : votesUpAfter!.hashCode) + - (votesDownAfter == null ? 0 : votesDownAfter!.hashCode) + - (repeatAction == null ? 0 : repeatAction!.hashCode) + - (reason == null ? 0 : reason!.hashCode) + - (otherData == null ? 0 : otherData!.hashCode) + - (spamBefore == null ? 0 : spamBefore!.hashCode) + - (spamAfter == null ? 0 : spamAfter!.hashCode) + - (permanentFlag == null ? 0 : permanentFlag!.hashCode) + - (approvedBefore == null ? 0 : approvedBefore!.hashCode) + - (approvedAfter == null ? 0 : approvedAfter!.hashCode) + - (reviewedBefore == null ? 0 : reviewedBefore!.hashCode) + - (reviewedAfter == null ? 0 : reviewedAfter!.hashCode) + - (textBefore == null ? 0 : textBefore!.hashCode) + - (textAfter == null ? 0 : textAfter!.hashCode) + - (expireBefore == null ? 0 : expireBefore!.hashCode) + - (expireAfter == null ? 0 : expireAfter!.hashCode) + - (flagCountBefore == null ? 0 : flagCountBefore!.hashCode) + - (trustFactorBefore == null ? 0 : trustFactorBefore!.hashCode) + - (trustFactorAfter == null ? 0 : trustFactorAfter!.hashCode) + - (referencedCommentId == null ? 0 : referencedCommentId!.hashCode) + - (invalidLocale == null ? 0 : invalidLocale!.hashCode) + - (detectedLocale == null ? 0 : detectedLocale!.hashCode) + - (detectedLanguage == null ? 0 : detectedLanguage!.hashCode); + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (phrase == null ? 0 : phrase!.hashCode) + + (badWord == null ? 0 : badWord!.hashCode) + + (word == null ? 0 : word!.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (tenantBadgeId == null ? 0 : tenantBadgeId!.hashCode) + + (badgeId == null ? 0 : badgeId!.hashCode) + + (wasLoggedIn == null ? 0 : wasLoggedIn!.hashCode) + + (foundUser == null ? 0 : foundUser!.hashCode) + + (verified == null ? 0 : verified!.hashCode) + + (engine == null ? 0 : engine!.hashCode) + + (engineResponse == null ? 0 : engineResponse!.hashCode) + + (engineTokens == null ? 0 : engineTokens!.hashCode) + + (trustFactor == null ? 0 : trustFactor!.hashCode) + + (source_ == null ? 0 : source_!.hashCode) + + (rule == null ? 0 : rule!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (subscribers == null ? 0 : subscribers!.hashCode) + + (notificationCount == null ? 0 : notificationCount!.hashCode) + + (votesBefore == null ? 0 : votesBefore!.hashCode) + + (votesUpBefore == null ? 0 : votesUpBefore!.hashCode) + + (votesDownBefore == null ? 0 : votesDownBefore!.hashCode) + + (votesAfter == null ? 0 : votesAfter!.hashCode) + + (votesUpAfter == null ? 0 : votesUpAfter!.hashCode) + + (votesDownAfter == null ? 0 : votesDownAfter!.hashCode) + + (repeatAction == null ? 0 : repeatAction!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (otherData == null ? 0 : otherData!.hashCode) + + (spamBefore == null ? 0 : spamBefore!.hashCode) + + (spamAfter == null ? 0 : spamAfter!.hashCode) + + (permanentFlag == null ? 0 : permanentFlag!.hashCode) + + (approvedBefore == null ? 0 : approvedBefore!.hashCode) + + (approvedAfter == null ? 0 : approvedAfter!.hashCode) + + (reviewedBefore == null ? 0 : reviewedBefore!.hashCode) + + (reviewedAfter == null ? 0 : reviewedAfter!.hashCode) + + (textBefore == null ? 0 : textBefore!.hashCode) + + (textAfter == null ? 0 : textAfter!.hashCode) + + (expireBefore == null ? 0 : expireBefore!.hashCode) + + (expireAfter == null ? 0 : expireAfter!.hashCode) + + (flagCountBefore == null ? 0 : flagCountBefore!.hashCode) + + (trustFactorBefore == null ? 0 : trustFactorBefore!.hashCode) + + (trustFactorAfter == null ? 0 : trustFactorAfter!.hashCode) + + (referencedCommentId == null ? 0 : referencedCommentId!.hashCode) + + (invalidLocale == null ? 0 : invalidLocale!.hashCode) + + (detectedLocale == null ? 0 : detectedLocale!.hashCode) + + (detectedLanguage == null ? 0 : detectedLanguage!.hashCode); + @override - String toString() => 'CommentLogData[clearContent=$clearContent, isDeletedUser=$isDeletedUser, phrase=$phrase, badWord=$badWord, word=$word, locale=$locale, tenantBadgeId=$tenantBadgeId, badgeId=$badgeId, wasLoggedIn=$wasLoggedIn, foundUser=$foundUser, verified=$verified, engine=$engine, engineResponse=$engineResponse, engineTokens=$engineTokens, trustFactor=$trustFactor, rule=$rule, userId=$userId, subscribers=$subscribers, notificationCount=$notificationCount, votesBefore=$votesBefore, votesUpBefore=$votesUpBefore, votesDownBefore=$votesDownBefore, votesAfter=$votesAfter, votesUpAfter=$votesUpAfter, votesDownAfter=$votesDownAfter, repeatAction=$repeatAction, reason=$reason, otherData=$otherData, spamBefore=$spamBefore, spamAfter=$spamAfter, permanentFlag=$permanentFlag, approvedBefore=$approvedBefore, approvedAfter=$approvedAfter, reviewedBefore=$reviewedBefore, reviewedAfter=$reviewedAfter, textBefore=$textBefore, textAfter=$textAfter, expireBefore=$expireBefore, expireAfter=$expireAfter, flagCountBefore=$flagCountBefore, trustFactorBefore=$trustFactorBefore, trustFactorAfter=$trustFactorAfter, referencedCommentId=$referencedCommentId, invalidLocale=$invalidLocale, detectedLocale=$detectedLocale, detectedLanguage=$detectedLanguage]'; + String toString() => 'CommentLogData[clearContent=$clearContent, isDeletedUser=$isDeletedUser, phrase=$phrase, badWord=$badWord, word=$word, locale=$locale, tenantBadgeId=$tenantBadgeId, badgeId=$badgeId, wasLoggedIn=$wasLoggedIn, foundUser=$foundUser, verified=$verified, engine=$engine, engineResponse=$engineResponse, engineTokens=$engineTokens, trustFactor=$trustFactor, source_=$source_, rule=$rule, userId=$userId, subscribers=$subscribers, notificationCount=$notificationCount, votesBefore=$votesBefore, votesUpBefore=$votesUpBefore, votesDownBefore=$votesDownBefore, votesAfter=$votesAfter, votesUpAfter=$votesUpAfter, votesDownAfter=$votesDownAfter, repeatAction=$repeatAction, reason=$reason, otherData=$otherData, spamBefore=$spamBefore, spamAfter=$spamAfter, permanentFlag=$permanentFlag, approvedBefore=$approvedBefore, approvedAfter=$approvedAfter, reviewedBefore=$reviewedBefore, reviewedAfter=$reviewedAfter, textBefore=$textBefore, textAfter=$textAfter, expireBefore=$expireBefore, expireAfter=$expireAfter, flagCountBefore=$flagCountBefore, trustFactorBefore=$trustFactorBefore, trustFactorAfter=$trustFactorAfter, referencedCommentId=$referencedCommentId, invalidLocale=$invalidLocale, detectedLocale=$detectedLocale, detectedLanguage=$detectedLanguage]'; Map toJson() { final json = {}; @@ -542,6 +555,11 @@ class CommentLogData { } else { json[r'trustFactor'] = null; } + if (this.source_ != null) { + json[r'source'] = this.source_; + } else { + json[r'source'] = null; + } if (this.rule != null) { json[r'rule'] = this.rule; } else { @@ -730,6 +748,7 @@ class CommentLogData { engineResponse: mapValueOfType(json, r'engineResponse'), engineTokens: mapValueOfType(json, r'engineTokens'), trustFactor: mapValueOfType(json, r'trustFactor'), + source_: mapValueOfType(json, r'source'), rule: SpamRule.fromJson(json[r'rule']), userId: mapValueOfType(json, r'userId'), subscribers: mapValueOfType(json, r'subscribers'), diff --git a/client/lib/model/comment_log_entry.dart b/client/lib/model/comment_log_entry.dart index 3c8fc3d..0b2ee41 100644 --- a/client/lib/model/comment_log_entry.dart +++ b/client/lib/model/comment_log_entry.dart @@ -33,15 +33,17 @@ class CommentLogEntry { @override bool operator ==(Object other) => identical(this, other) || other is CommentLogEntry && other.d == d && - other.t == t && - other.da == da; + other.t == t && + other.da == da; + @override int get hashCode => // ignore: unnecessary_parenthesis (d.hashCode) + - (t.hashCode) + - (da == null ? 0 : da!.hashCode); + (t.hashCode) + + (da == null ? 0 : da!.hashCode); + @override String toString() => 'CommentLogEntry[d=$d, t=$t, da=$da]'; diff --git a/client/lib/model/comment_text_update_request.dart b/client/lib/model/comment_text_update_request.dart index 32b9692..edfc70a 100644 --- a/client/lib/model/comment_text_update_request.dart +++ b/client/lib/model/comment_text_update_request.dart @@ -27,15 +27,17 @@ class CommentTextUpdateRequest { @override bool operator ==(Object other) => identical(this, other) || other is CommentTextUpdateRequest && other.comment == comment && - _deepEquality.equals(other.mentions, mentions) && - _deepEquality.equals(other.hashTags, hashTags); + _deepEquality.equals(other.mentions, mentions) && + _deepEquality.equals(other.hashTags, hashTags); + @override int get hashCode => // ignore: unnecessary_parenthesis (comment.hashCode) + - (mentions.hashCode) + - (hashTags.hashCode); + (mentions.hashCode) + + (hashTags.hashCode); + @override String toString() => 'CommentTextUpdateRequest[comment=$comment, mentions=$mentions, hashTags=$hashTags]'; diff --git a/client/lib/model/comment_user_badge_info.dart b/client/lib/model/comment_user_badge_info.dart index aaf9428..cb183ec 100644 --- a/client/lib/model/comment_user_badge_info.dart +++ b/client/lib/model/comment_user_badge_info.dart @@ -45,27 +45,29 @@ class CommentUserBadgeInfo { @override bool operator ==(Object other) => identical(this, other) || other is CommentUserBadgeInfo && other.id == id && - other.type == type && - other.description == description && - other.displayLabel == displayLabel && - other.displaySrc == displaySrc && - other.backgroundColor == backgroundColor && - other.borderColor == borderColor && - other.textColor == textColor && - other.cssClass == cssClass; + other.type == type && + other.description == description && + other.displayLabel == displayLabel && + other.displaySrc == displaySrc && + other.backgroundColor == backgroundColor && + other.borderColor == borderColor && + other.textColor == textColor && + other.cssClass == cssClass; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (type.hashCode) + - (description.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (displaySrc == null ? 0 : displaySrc!.hashCode) + - (backgroundColor == null ? 0 : backgroundColor!.hashCode) + - (borderColor == null ? 0 : borderColor!.hashCode) + - (textColor == null ? 0 : textColor!.hashCode) + - (cssClass == null ? 0 : cssClass!.hashCode); + (type.hashCode) + + (description.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (displaySrc == null ? 0 : displaySrc!.hashCode) + + (backgroundColor == null ? 0 : backgroundColor!.hashCode) + + (borderColor == null ? 0 : borderColor!.hashCode) + + (textColor == null ? 0 : textColor!.hashCode) + + (cssClass == null ? 0 : cssClass!.hashCode); + @override String toString() => 'CommentUserBadgeInfo[id=$id, type=$type, description=$description, displayLabel=$displayLabel, displaySrc=$displaySrc, backgroundColor=$backgroundColor, borderColor=$borderColor, textColor=$textColor, cssClass=$cssClass]'; diff --git a/client/lib/model/comment_user_hash_tag_info.dart b/client/lib/model/comment_user_hash_tag_info.dart index 9dea07d..b02a13a 100644 --- a/client/lib/model/comment_user_hash_tag_info.dart +++ b/client/lib/model/comment_user_hash_tag_info.dart @@ -36,17 +36,19 @@ class CommentUserHashTagInfo { @override bool operator ==(Object other) => identical(this, other) || other is CommentUserHashTagInfo && other.id == id && - other.tag == tag && - other.url == url && - other.retain == retain; + other.tag == tag && + other.url == url && + other.retain == retain; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tag.hashCode) + - (url == null ? 0 : url!.hashCode) + - (retain == null ? 0 : retain!.hashCode); + (tag.hashCode) + + (url == null ? 0 : url!.hashCode) + + (retain == null ? 0 : retain!.hashCode); + @override String toString() => 'CommentUserHashTagInfo[id=$id, tag=$tag, url=$url, retain=$retain]'; diff --git a/client/lib/model/comment_user_mention_info.dart b/client/lib/model/comment_user_mention_info.dart index 3c6eafc..257ec76 100644 --- a/client/lib/model/comment_user_mention_info.dart +++ b/client/lib/model/comment_user_mention_info.dart @@ -45,19 +45,21 @@ class CommentUserMentionInfo { @override bool operator ==(Object other) => identical(this, other) || other is CommentUserMentionInfo && other.id == id && - other.tag == tag && - other.rawTag == rawTag && - other.type == type && - other.sent == sent; + other.tag == tag && + other.rawTag == rawTag && + other.type == type && + other.sent == sent; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tag.hashCode) + - (rawTag == null ? 0 : rawTag!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (sent == null ? 0 : sent!.hashCode); + (tag.hashCode) + + (rawTag == null ? 0 : rawTag!.hashCode) + + (type == null ? 0 : type!.hashCode) + + (sent == null ? 0 : sent!.hashCode); + @override String toString() => 'CommentUserMentionInfo[id=$id, tag=$tag, rawTag=$rawTag, type=$type, sent=$sent]'; diff --git a/client/lib/model/comments_by_ids_params.dart b/client/lib/model/comments_by_ids_params.dart new file mode 100644 index 0000000..e66f5c4 --- /dev/null +++ b/client/lib/model/comments_by_ids_params.dart @@ -0,0 +1,111 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class CommentsByIdsParams { + /// Returns a new [CommentsByIdsParams] instance. + CommentsByIdsParams({ + this.ids = const [], + }); + + List ids; + + @override + bool operator ==(Object other) => identical(this, other) || other is CommentsByIdsParams && + _deepEquality.equals(other.ids, ids); + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (ids.hashCode); + + + @override + String toString() => 'CommentsByIdsParams[ids=$ids]'; + + Map toJson() { + final json = {}; + json[r'ids'] = this.ids; + return json; + } + + /// Returns a new [CommentsByIdsParams] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static CommentsByIdsParams? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'ids'), 'Required key "CommentsByIdsParams[ids]" is missing from JSON.'); + assert(json[r'ids'] != null, 'Required key "CommentsByIdsParams[ids]" has a null value in JSON.'); + return true; + }()); + + return CommentsByIdsParams( + ids: json[r'ids'] is Iterable + ? (json[r'ids'] as Iterable).cast().toList(growable: false) + : const [], + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = CommentsByIdsParams.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = CommentsByIdsParams.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of CommentsByIdsParams-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = CommentsByIdsParams.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'ids', + }; +} + diff --git a/client/lib/model/create_api_page_data.dart b/client/lib/model/create_api_page_data.dart index 1164ba3..1f6f827 100644 --- a/client/lib/model/create_api_page_data.dart +++ b/client/lib/model/create_api_page_data.dart @@ -48,21 +48,23 @@ class CreateAPIPageData { @override bool operator ==(Object other) => identical(this, other) || other is CreateAPIPageData && _deepEquality.equals(other.accessibleByGroupIds, accessibleByGroupIds) && - other.rootCommentCount == rootCommentCount && - other.commentCount == commentCount && - other.title == title && - other.url == url && - other.urlId == urlId; + other.rootCommentCount == rootCommentCount && + other.commentCount == commentCount && + other.title == title && + other.url == url && + other.urlId == urlId; + @override int get hashCode => // ignore: unnecessary_parenthesis (accessibleByGroupIds.hashCode) + - (rootCommentCount == null ? 0 : rootCommentCount!.hashCode) + - (commentCount == null ? 0 : commentCount!.hashCode) + - (title.hashCode) + - (url.hashCode) + - (urlId.hashCode); + (rootCommentCount == null ? 0 : rootCommentCount!.hashCode) + + (commentCount == null ? 0 : commentCount!.hashCode) + + (title.hashCode) + + (url.hashCode) + + (urlId.hashCode); + @override String toString() => 'CreateAPIPageData[accessibleByGroupIds=$accessibleByGroupIds, rootCommentCount=$rootCommentCount, commentCount=$commentCount, title=$title, url=$url, urlId=$urlId]'; diff --git a/client/lib/model/create_api_user_subscription_data.dart b/client/lib/model/create_api_user_subscription_data.dart index aa8c7b3..57cb1de 100644 --- a/client/lib/model/create_api_user_subscription_data.dart +++ b/client/lib/model/create_api_user_subscription_data.dart @@ -66,21 +66,23 @@ class CreateAPIUserSubscriptionData { @override bool operator ==(Object other) => identical(this, other) || other is CreateAPIUserSubscriptionData && other.notificationFrequency == notificationFrequency && - other.pageTitle == pageTitle && - other.url == url && - other.urlId == urlId && - other.anonUserId == anonUserId && - other.userId == userId; + other.pageTitle == pageTitle && + other.url == url && + other.urlId == urlId && + other.anonUserId == anonUserId && + other.userId == userId; + @override int get hashCode => // ignore: unnecessary_parenthesis (notificationFrequency == null ? 0 : notificationFrequency!.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (urlId.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (userId == null ? 0 : userId!.hashCode); + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (url == null ? 0 : url!.hashCode) + + (urlId.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (userId == null ? 0 : userId!.hashCode); + @override String toString() => 'CreateAPIUserSubscriptionData[notificationFrequency=$notificationFrequency, pageTitle=$pageTitle, url=$url, urlId=$urlId, anonUserId=$anonUserId, userId=$userId]'; diff --git a/client/lib/model/create_apisso_user_data.dart b/client/lib/model/create_apisso_user_data.dart index 117bbb0..8f398b1 100644 --- a/client/lib/model/create_apisso_user_data.dart +++ b/client/lib/model/create_apisso_user_data.dart @@ -174,49 +174,51 @@ class CreateAPISSOUserData { @override bool operator ==(Object other) => identical(this, other) || other is CreateAPISSOUserData && _deepEquality.equals(other.groupIds, groupIds) && - other.hasBlockedUsers == hasBlockedUsers && - other.isProfileDMDisabled == isProfileDMDisabled && - other.isProfileCommentsPrivate == isProfileCommentsPrivate && - other.isProfileActivityPrivate == isProfileActivityPrivate && - other.isCommentModeratorAdmin == isCommentModeratorAdmin && - other.isAdminAdmin == isAdminAdmin && - other.isAccountOwner == isAccountOwner && - other.displayName == displayName && - other.displayLabel == displayLabel && - other.optedInSubscriptionNotifications == optedInSubscriptionNotifications && - other.optedInNotifications == optedInNotifications && - other.avatarSrc == avatarSrc && - other.loginCount == loginCount && - other.createdFromUrlId == createdFromUrlId && - other.signUpDate == signUpDate && - other.email == email && - other.websiteUrl == websiteUrl && - other.username == username && - other.id == id; + other.hasBlockedUsers == hasBlockedUsers && + other.isProfileDMDisabled == isProfileDMDisabled && + other.isProfileCommentsPrivate == isProfileCommentsPrivate && + other.isProfileActivityPrivate == isProfileActivityPrivate && + other.isCommentModeratorAdmin == isCommentModeratorAdmin && + other.isAdminAdmin == isAdminAdmin && + other.isAccountOwner == isAccountOwner && + other.displayName == displayName && + other.displayLabel == displayLabel && + other.optedInSubscriptionNotifications == optedInSubscriptionNotifications && + other.optedInNotifications == optedInNotifications && + other.avatarSrc == avatarSrc && + other.loginCount == loginCount && + other.createdFromUrlId == createdFromUrlId && + other.signUpDate == signUpDate && + other.email == email && + other.websiteUrl == websiteUrl && + other.username == username && + other.id == id; + @override int get hashCode => // ignore: unnecessary_parenthesis (groupIds.hashCode) + - (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + - (isProfileDMDisabled == null ? 0 : isProfileDMDisabled!.hashCode) + - (isProfileCommentsPrivate == null ? 0 : isProfileCommentsPrivate!.hashCode) + - (isProfileActivityPrivate == null ? 0 : isProfileActivityPrivate!.hashCode) + - (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + - (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + - (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (optedInSubscriptionNotifications == null ? 0 : optedInSubscriptionNotifications!.hashCode) + - (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (loginCount == null ? 0 : loginCount!.hashCode) + - (createdFromUrlId == null ? 0 : createdFromUrlId!.hashCode) + - (signUpDate == null ? 0 : signUpDate!.hashCode) + - (email.hashCode) + - (websiteUrl == null ? 0 : websiteUrl!.hashCode) + - (username.hashCode) + - (id.hashCode); + (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + + (isProfileDMDisabled == null ? 0 : isProfileDMDisabled!.hashCode) + + (isProfileCommentsPrivate == null ? 0 : isProfileCommentsPrivate!.hashCode) + + (isProfileActivityPrivate == null ? 0 : isProfileActivityPrivate!.hashCode) + + (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + + (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + + (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (optedInSubscriptionNotifications == null ? 0 : optedInSubscriptionNotifications!.hashCode) + + (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (loginCount == null ? 0 : loginCount!.hashCode) + + (createdFromUrlId == null ? 0 : createdFromUrlId!.hashCode) + + (signUpDate == null ? 0 : signUpDate!.hashCode) + + (email.hashCode) + + (websiteUrl == null ? 0 : websiteUrl!.hashCode) + + (username.hashCode) + + (id.hashCode); + @override String toString() => 'CreateAPISSOUserData[groupIds=$groupIds, hasBlockedUsers=$hasBlockedUsers, isProfileDMDisabled=$isProfileDMDisabled, isProfileCommentsPrivate=$isProfileCommentsPrivate, isProfileActivityPrivate=$isProfileActivityPrivate, isCommentModeratorAdmin=$isCommentModeratorAdmin, isAdminAdmin=$isAdminAdmin, isAccountOwner=$isAccountOwner, displayName=$displayName, displayLabel=$displayLabel, optedInSubscriptionNotifications=$optedInSubscriptionNotifications, optedInNotifications=$optedInNotifications, avatarSrc=$avatarSrc, loginCount=$loginCount, createdFromUrlId=$createdFromUrlId, signUpDate=$signUpDate, email=$email, websiteUrl=$websiteUrl, username=$username, id=$id]'; diff --git a/client/lib/model/create_comment_params.dart b/client/lib/model/create_comment_params.dart index 68a449c..691fc7c 100644 --- a/client/lib/model/create_comment_params.dart +++ b/client/lib/model/create_comment_params.dart @@ -158,7 +158,7 @@ class CreateCommentParams { List feedbackIds; /// Construct a type with a set of properties K of type T - Map questionValues; + Map questionValues; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -254,81 +254,83 @@ class CreateCommentParams { @override bool operator ==(Object other) => identical(this, other) || other is CreateCommentParams && other.date == date && - other.localDateString == localDateString && - other.localDateHours == localDateHours && - other.commenterName == commenterName && - other.commenterEmail == commenterEmail && - other.commenterLink == commenterLink && - other.comment == comment && - other.productId == productId && - other.userId == userId && - other.avatarSrc == avatarSrc && - other.parentId == parentId && - _deepEquality.equals(other.mentions, mentions) && - _deepEquality.equals(other.hashTags, hashTags) && - other.pageTitle == pageTitle && - other.isFromMyAccountPage == isFromMyAccountPage && - other.url == url && - other.urlId == urlId && - other.meta == meta && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && - other.rating == rating && - other.fromOfflineRestore == fromOfflineRestore && - other.autoplayDelayMS == autoplayDelayMS && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - _deepEquality.equals(other.questionValues, questionValues) && - other.tos == tos && - other.botId == botId && - other.approved == approved && - other.domain == domain && - other.ip == ip && - other.isPinned == isPinned && - other.locale == locale && - other.reviewed == reviewed && - other.verified == verified && - other.votes == votes && - other.votesDown == votesDown && - other.votesUp == votesUp; + other.localDateString == localDateString && + other.localDateHours == localDateHours && + other.commenterName == commenterName && + other.commenterEmail == commenterEmail && + other.commenterLink == commenterLink && + other.comment == comment && + other.productId == productId && + other.userId == userId && + other.avatarSrc == avatarSrc && + other.parentId == parentId && + _deepEquality.equals(other.mentions, mentions) && + _deepEquality.equals(other.hashTags, hashTags) && + other.pageTitle == pageTitle && + other.isFromMyAccountPage == isFromMyAccountPage && + other.url == url && + other.urlId == urlId && + other.meta == meta && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && + other.rating == rating && + other.fromOfflineRestore == fromOfflineRestore && + other.autoplayDelayMS == autoplayDelayMS && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + _deepEquality.equals(other.questionValues, questionValues) && + other.tos == tos && + other.botId == botId && + other.approved == approved && + other.domain == domain && + other.ip == ip && + other.isPinned == isPinned && + other.locale == locale && + other.reviewed == reviewed && + other.verified == verified && + other.votes == votes && + other.votesDown == votesDown && + other.votesUp == votesUp; + @override int get hashCode => // ignore: unnecessary_parenthesis (date == null ? 0 : date!.hashCode) + - (localDateString == null ? 0 : localDateString!.hashCode) + - (localDateHours == null ? 0 : localDateHours!.hashCode) + - (commenterName.hashCode) + - (commenterEmail == null ? 0 : commenterEmail!.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (comment.hashCode) + - (productId == null ? 0 : productId!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (mentions.hashCode) + - (hashTags.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (isFromMyAccountPage == null ? 0 : isFromMyAccountPage!.hashCode) + - (url.hashCode) + - (urlId.hashCode) + - (meta == null ? 0 : meta!.hashCode) + - (moderationGroupIds.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (fromOfflineRestore == null ? 0 : fromOfflineRestore!.hashCode) + - (autoplayDelayMS == null ? 0 : autoplayDelayMS!.hashCode) + - (feedbackIds.hashCode) + - (questionValues.hashCode) + - (tos == null ? 0 : tos!.hashCode) + - (botId == null ? 0 : botId!.hashCode) + - (approved == null ? 0 : approved!.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (ip == null ? 0 : ip!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (locale.hashCode) + - (reviewed == null ? 0 : reviewed!.hashCode) + - (verified == null ? 0 : verified!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode); + (localDateString == null ? 0 : localDateString!.hashCode) + + (localDateHours == null ? 0 : localDateHours!.hashCode) + + (commenterName.hashCode) + + (commenterEmail == null ? 0 : commenterEmail!.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (comment.hashCode) + + (productId == null ? 0 : productId!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (mentions.hashCode) + + (hashTags.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (isFromMyAccountPage == null ? 0 : isFromMyAccountPage!.hashCode) + + (url.hashCode) + + (urlId.hashCode) + + (meta == null ? 0 : meta!.hashCode) + + (moderationGroupIds.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (fromOfflineRestore == null ? 0 : fromOfflineRestore!.hashCode) + + (autoplayDelayMS == null ? 0 : autoplayDelayMS!.hashCode) + + (feedbackIds.hashCode) + + (questionValues.hashCode) + + (tos == null ? 0 : tos!.hashCode) + + (botId == null ? 0 : botId!.hashCode) + + (approved == null ? 0 : approved!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (ip == null ? 0 : ip!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (locale.hashCode) + + (reviewed == null ? 0 : reviewed!.hashCode) + + (verified == null ? 0 : verified!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode); + @override String toString() => 'CreateCommentParams[date=$date, localDateString=$localDateString, localDateHours=$localDateHours, commenterName=$commenterName, commenterEmail=$commenterEmail, commenterLink=$commenterLink, comment=$comment, productId=$productId, userId=$userId, avatarSrc=$avatarSrc, parentId=$parentId, mentions=$mentions, hashTags=$hashTags, pageTitle=$pageTitle, isFromMyAccountPage=$isFromMyAccountPage, url=$url, urlId=$urlId, meta=$meta, moderationGroupIds=$moderationGroupIds, rating=$rating, fromOfflineRestore=$fromOfflineRestore, autoplayDelayMS=$autoplayDelayMS, feedbackIds=$feedbackIds, questionValues=$questionValues, tos=$tos, botId=$botId, approved=$approved, domain=$domain, ip=$ip, isPinned=$isPinned, locale=$locale, reviewed=$reviewed, verified=$verified, votes=$votes, votesDown=$votesDown, votesUp=$votesUp]'; @@ -530,7 +532,7 @@ class CreateCommentParams { feedbackIds: json[r'feedbackIds'] is Iterable ? (json[r'feedbackIds'] as Iterable).cast().toList(growable: false) : const [], - questionValues: RecordStringStringOrNumberValue.mapFromJson(json[r'questionValues']), + questionValues: GifSearchResponseImagesInnerInner.mapFromJson(json[r'questionValues']), tos: mapValueOfType(json, r'tos'), botId: mapValueOfType(json, r'botId'), approved: mapValueOfType(json, r'approved'), diff --git a/client/lib/model/create_comment_public200_response.dart b/client/lib/model/create_comment_public200_response.dart deleted file mode 100644 index 3c6e563..0000000 --- a/client/lib/model/create_comment_public200_response.dart +++ /dev/null @@ -1,260 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateCommentPublic200Response { - /// Returns a new [CreateCommentPublic200Response] instance. - CreateCommentPublic200Response({ - required this.status, - required this.comment, - required this.user, - this.moduleData = const {}, - this.userIdWS, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - PublicComment comment; - - UserSessionInfo? user; - - /// Construct a type with a set of properties K of type T - Map moduleData; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? userIdWS; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateCommentPublic200Response && - other.status == status && - other.comment == comment && - other.user == user && - _deepEquality.equals(other.moduleData, moduleData) && - other.userIdWS == userIdWS && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (comment.hashCode) + - (user == null ? 0 : user!.hashCode) + - (moduleData.hashCode) + - (userIdWS == null ? 0 : userIdWS!.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateCommentPublic200Response[status=$status, comment=$comment, user=$user, moduleData=$moduleData, userIdWS=$userIdWS, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'comment'] = this.comment; - if (this.user != null) { - json[r'user'] = this.user; - } else { - json[r'user'] = null; - } - json[r'moduleData'] = this.moduleData; - if (this.userIdWS != null) { - json[r'userIdWS'] = this.userIdWS; - } else { - json[r'userIdWS'] = null; - } - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateCommentPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateCommentPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateCommentPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateCommentPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "CreateCommentPublic200Response[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "CreateCommentPublic200Response[comment]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "CreateCommentPublic200Response[user]" is missing from JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateCommentPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateCommentPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateCommentPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateCommentPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateCommentPublic200Response( - status: APIStatus.fromJson(json[r'status'])!, - comment: PublicComment.fromJson(json[r'comment'])!, - user: UserSessionInfo.fromJson(json[r'user']), - moduleData: mapCastOfType(json, r'moduleData') ?? const {}, - userIdWS: mapValueOfType(json, r'userIdWS'), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateCommentPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateCommentPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateCommentPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateCommentPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'comment', - 'user', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_email_template200_response.dart b/client/lib/model/create_email_template200_response.dart deleted file mode 100644 index e0b5014..0000000 --- a/client/lib/model/create_email_template200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateEmailTemplate200Response { - /// Returns a new [CreateEmailTemplate200Response] instance. - CreateEmailTemplate200Response({ - required this.status, - required this.emailTemplate, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - CustomEmailTemplate emailTemplate; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateEmailTemplate200Response && - other.status == status && - other.emailTemplate == emailTemplate && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (emailTemplate.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateEmailTemplate200Response[status=$status, emailTemplate=$emailTemplate, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'emailTemplate'] = this.emailTemplate; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateEmailTemplate200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateEmailTemplate200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateEmailTemplate200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateEmailTemplate200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'emailTemplate'), 'Required key "CreateEmailTemplate200Response[emailTemplate]" is missing from JSON.'); - assert(json[r'emailTemplate'] != null, 'Required key "CreateEmailTemplate200Response[emailTemplate]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateEmailTemplate200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateEmailTemplate200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateEmailTemplate200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateEmailTemplate200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateEmailTemplate200Response( - status: APIStatus.fromJson(json[r'status'])!, - emailTemplate: CustomEmailTemplate.fromJson(json[r'emailTemplate'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateEmailTemplate200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateEmailTemplate200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateEmailTemplate200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateEmailTemplate200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'emailTemplate', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_email_template_body.dart b/client/lib/model/create_email_template_body.dart index 867c70b..cdec6ad 100644 --- a/client/lib/model/create_email_template_body.dart +++ b/client/lib/model/create_email_template_body.dart @@ -44,21 +44,23 @@ class CreateEmailTemplateBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateEmailTemplateBody && other.emailTemplateId == emailTemplateId && - other.displayName == displayName && - other.ejs == ejs && - other.domain == domain && - _deepEquality.equals(other.translationOverridesByLocale, translationOverridesByLocale) && - _deepEquality.equals(other.testData, testData); + other.displayName == displayName && + other.ejs == ejs && + other.domain == domain && + _deepEquality.equals(other.translationOverridesByLocale, translationOverridesByLocale) && + _deepEquality.equals(other.testData, testData); + @override int get hashCode => // ignore: unnecessary_parenthesis (emailTemplateId.hashCode) + - (displayName.hashCode) + - (ejs.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (translationOverridesByLocale.hashCode) + - (testData.hashCode); + (displayName.hashCode) + + (ejs.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (translationOverridesByLocale.hashCode) + + (testData.hashCode); + @override String toString() => 'CreateEmailTemplateBody[emailTemplateId=$emailTemplateId, displayName=$displayName, ejs=$ejs, domain=$domain, translationOverridesByLocale=$translationOverridesByLocale, testData=$testData]'; @@ -103,7 +105,7 @@ class CreateEmailTemplateBody { displayName: mapValueOfType(json, r'displayName')!, ejs: mapValueOfType(json, r'ejs')!, domain: mapValueOfType(json, r'domain'), - translationOverridesByLocale: mapCastOfType(json, r'translationOverridesByLocale') ?? const {}, + translationOverridesByLocale: (json[r'translationOverridesByLocale'] as Map?)?.map((k, v) => MapEntry(k as String, (v as Map).cast())) ?? const {}, testData: mapCastOfType(json, r'testData') ?? const {}, ); } diff --git a/client/lib/model/create_email_template_response.dart b/client/lib/model/create_email_template_response.dart index fb0901c..90b603f 100644 --- a/client/lib/model/create_email_template_response.dart +++ b/client/lib/model/create_email_template_response.dart @@ -24,13 +24,15 @@ class CreateEmailTemplateResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateEmailTemplateResponse && other.status == status && - other.emailTemplate == emailTemplate; + other.emailTemplate == emailTemplate; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (emailTemplate.hashCode); + (emailTemplate.hashCode); + @override String toString() => 'CreateEmailTemplateResponse[status=$status, emailTemplate=$emailTemplate]'; diff --git a/client/lib/model/create_feed_post200_response.dart b/client/lib/model/create_feed_post200_response.dart deleted file mode 100644 index a4e488e..0000000 --- a/client/lib/model/create_feed_post200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateFeedPost200Response { - /// Returns a new [CreateFeedPost200Response] instance. - CreateFeedPost200Response({ - required this.status, - required this.feedPost, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - FeedPost feedPost; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateFeedPost200Response && - other.status == status && - other.feedPost == feedPost && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (feedPost.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateFeedPost200Response[status=$status, feedPost=$feedPost, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'feedPost'] = this.feedPost; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateFeedPost200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateFeedPost200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateFeedPost200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateFeedPost200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPost'), 'Required key "CreateFeedPost200Response[feedPost]" is missing from JSON.'); - assert(json[r'feedPost'] != null, 'Required key "CreateFeedPost200Response[feedPost]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateFeedPost200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateFeedPost200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateFeedPost200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateFeedPost200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateFeedPost200Response( - status: APIStatus.fromJson(json[r'status'])!, - feedPost: FeedPost.fromJson(json[r'feedPost'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateFeedPost200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateFeedPost200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateFeedPost200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateFeedPost200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'feedPost', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_feed_post_params.dart b/client/lib/model/create_feed_post_params.dart index 57e472a..793a6fb 100644 --- a/client/lib/model/create_feed_post_params.dart +++ b/client/lib/model/create_feed_post_params.dart @@ -67,25 +67,27 @@ class CreateFeedPostParams { @override bool operator ==(Object other) => identical(this, other) || other is CreateFeedPostParams && other.title == title && - other.contentHTML == contentHTML && - _deepEquality.equals(other.media, media) && - _deepEquality.equals(other.links, links) && - other.fromUserId == fromUserId && - other.fromUserDisplayName == fromUserDisplayName && - _deepEquality.equals(other.tags, tags) && - _deepEquality.equals(other.meta, meta); + other.contentHTML == contentHTML && + _deepEquality.equals(other.media, media) && + _deepEquality.equals(other.links, links) && + other.fromUserId == fromUserId && + other.fromUserDisplayName == fromUserDisplayName && + _deepEquality.equals(other.tags, tags) && + _deepEquality.equals(other.meta, meta); + @override int get hashCode => // ignore: unnecessary_parenthesis (title == null ? 0 : title!.hashCode) + - (contentHTML == null ? 0 : contentHTML!.hashCode) + - (media.hashCode) + - (links.hashCode) + - (fromUserId == null ? 0 : fromUserId!.hashCode) + - (fromUserDisplayName == null ? 0 : fromUserDisplayName!.hashCode) + - (tags.hashCode) + - (meta.hashCode); + (contentHTML == null ? 0 : contentHTML!.hashCode) + + (media.hashCode) + + (links.hashCode) + + (fromUserId == null ? 0 : fromUserId!.hashCode) + + (fromUserDisplayName == null ? 0 : fromUserDisplayName!.hashCode) + + (tags.hashCode) + + (meta.hashCode); + @override String toString() => 'CreateFeedPostParams[title=$title, contentHTML=$contentHTML, media=$media, links=$links, fromUserId=$fromUserId, fromUserDisplayName=$fromUserDisplayName, tags=$tags, meta=$meta]'; diff --git a/client/lib/model/create_feed_post_public200_response.dart b/client/lib/model/create_feed_post_public200_response.dart deleted file mode 100644 index d1bedc8..0000000 --- a/client/lib/model/create_feed_post_public200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateFeedPostPublic200Response { - /// Returns a new [CreateFeedPostPublic200Response] instance. - CreateFeedPostPublic200Response({ - required this.status, - required this.feedPost, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - FeedPost feedPost; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateFeedPostPublic200Response && - other.status == status && - other.feedPost == feedPost && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (feedPost.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateFeedPostPublic200Response[status=$status, feedPost=$feedPost, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'feedPost'] = this.feedPost; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateFeedPostPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateFeedPostPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateFeedPostPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateFeedPostPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPost'), 'Required key "CreateFeedPostPublic200Response[feedPost]" is missing from JSON.'); - assert(json[r'feedPost'] != null, 'Required key "CreateFeedPostPublic200Response[feedPost]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateFeedPostPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateFeedPostPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateFeedPostPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateFeedPostPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateFeedPostPublic200Response( - status: APIStatus.fromJson(json[r'status'])!, - feedPost: FeedPost.fromJson(json[r'feedPost'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateFeedPostPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateFeedPostPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateFeedPostPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateFeedPostPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'feedPost', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_feed_post_response.dart b/client/lib/model/create_feed_post_response.dart index d93a361..72060ac 100644 --- a/client/lib/model/create_feed_post_response.dart +++ b/client/lib/model/create_feed_post_response.dart @@ -24,13 +24,15 @@ class CreateFeedPostResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateFeedPostResponse && other.status == status && - other.feedPost == feedPost; + other.feedPost == feedPost; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (feedPost.hashCode); + (feedPost.hashCode); + @override String toString() => 'CreateFeedPostResponse[status=$status, feedPost=$feedPost]'; diff --git a/client/lib/model/create_feed_posts_response.dart b/client/lib/model/create_feed_posts_response.dart index 4c672a9..c0eeff6 100644 --- a/client/lib/model/create_feed_posts_response.dart +++ b/client/lib/model/create_feed_posts_response.dart @@ -24,13 +24,15 @@ class CreateFeedPostsResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateFeedPostsResponse && other.status == status && - other.feedPost == feedPost; + other.feedPost == feedPost; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (feedPost.hashCode); + (feedPost.hashCode); + @override String toString() => 'CreateFeedPostsResponse[status=$status, feedPost=$feedPost]'; diff --git a/client/lib/model/create_hash_tag_body.dart b/client/lib/model/create_hash_tag_body.dart index a0a70a8..20238e6 100644 --- a/client/lib/model/create_hash_tag_body.dart +++ b/client/lib/model/create_hash_tag_body.dart @@ -39,15 +39,17 @@ class CreateHashTagBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateHashTagBody && other.tenantId == tenantId && - other.tag == tag && - other.url == url; + other.tag == tag && + other.url == url; + @override int get hashCode => // ignore: unnecessary_parenthesis (tenantId == null ? 0 : tenantId!.hashCode) + - (tag.hashCode) + - (url == null ? 0 : url!.hashCode); + (tag.hashCode) + + (url == null ? 0 : url!.hashCode); + @override String toString() => 'CreateHashTagBody[tenantId=$tenantId, tag=$tag, url=$url]'; diff --git a/client/lib/model/create_hash_tag_response.dart b/client/lib/model/create_hash_tag_response.dart index 3f9f72a..5644d13 100644 --- a/client/lib/model/create_hash_tag_response.dart +++ b/client/lib/model/create_hash_tag_response.dart @@ -24,13 +24,15 @@ class CreateHashTagResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateHashTagResponse && other.status == status && - other.hashTag == hashTag; + other.hashTag == hashTag; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (hashTag.hashCode); + (hashTag.hashCode); + @override String toString() => 'CreateHashTagResponse[status=$status, hashTag=$hashTag]'; diff --git a/client/lib/model/create_moderator200_response.dart b/client/lib/model/create_moderator200_response.dart deleted file mode 100644 index a7d689d..0000000 --- a/client/lib/model/create_moderator200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateModerator200Response { - /// Returns a new [CreateModerator200Response] instance. - CreateModerator200Response({ - required this.status, - required this.moderator, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - Moderator moderator; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateModerator200Response && - other.status == status && - other.moderator == moderator && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (moderator.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateModerator200Response[status=$status, moderator=$moderator, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'moderator'] = this.moderator; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateModerator200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateModerator200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateModerator200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateModerator200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'moderator'), 'Required key "CreateModerator200Response[moderator]" is missing from JSON.'); - assert(json[r'moderator'] != null, 'Required key "CreateModerator200Response[moderator]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateModerator200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateModerator200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateModerator200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateModerator200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateModerator200Response( - status: APIStatus.fromJson(json[r'status'])!, - moderator: Moderator.fromJson(json[r'moderator'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateModerator200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateModerator200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateModerator200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateModerator200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'moderator', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_moderator_body.dart b/client/lib/model/create_moderator_body.dart index 79963cf..7d7a3b3 100644 --- a/client/lib/model/create_moderator_body.dart +++ b/client/lib/model/create_moderator_body.dart @@ -36,17 +36,19 @@ class CreateModeratorBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateModeratorBody && other.name == name && - other.email == email && - other.userId == userId && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds); + other.email == email && + other.userId == userId && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds); + @override int get hashCode => // ignore: unnecessary_parenthesis (name.hashCode) + - (email.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (moderationGroupIds.hashCode); + (email.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (moderationGroupIds.hashCode); + @override String toString() => 'CreateModeratorBody[name=$name, email=$email, userId=$userId, moderationGroupIds=$moderationGroupIds]'; diff --git a/client/lib/model/create_moderator_response.dart b/client/lib/model/create_moderator_response.dart index 1d2558a..32069df 100644 --- a/client/lib/model/create_moderator_response.dart +++ b/client/lib/model/create_moderator_response.dart @@ -24,13 +24,15 @@ class CreateModeratorResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateModeratorResponse && other.status == status && - other.moderator == moderator; + other.moderator == moderator; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (moderator.hashCode); + (moderator.hashCode); + @override String toString() => 'CreateModeratorResponse[status=$status, moderator=$moderator]'; diff --git a/client/lib/model/create_question_config200_response.dart b/client/lib/model/create_question_config200_response.dart deleted file mode 100644 index dfb8bc1..0000000 --- a/client/lib/model/create_question_config200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateQuestionConfig200Response { - /// Returns a new [CreateQuestionConfig200Response] instance. - CreateQuestionConfig200Response({ - required this.status, - required this.questionConfig, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - QuestionConfig questionConfig; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateQuestionConfig200Response && - other.status == status && - other.questionConfig == questionConfig && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (questionConfig.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateQuestionConfig200Response[status=$status, questionConfig=$questionConfig, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'questionConfig'] = this.questionConfig; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateQuestionConfig200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateQuestionConfig200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateQuestionConfig200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateQuestionConfig200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionConfig'), 'Required key "CreateQuestionConfig200Response[questionConfig]" is missing from JSON.'); - assert(json[r'questionConfig'] != null, 'Required key "CreateQuestionConfig200Response[questionConfig]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateQuestionConfig200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateQuestionConfig200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateQuestionConfig200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateQuestionConfig200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateQuestionConfig200Response( - status: APIStatus.fromJson(json[r'status'])!, - questionConfig: QuestionConfig.fromJson(json[r'questionConfig'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateQuestionConfig200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateQuestionConfig200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateQuestionConfig200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateQuestionConfig200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'questionConfig', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_question_config_body.dart b/client/lib/model/create_question_config_body.dart index 911030f..e01610d 100644 --- a/client/lib/model/create_question_config_body.dart +++ b/client/lib/model/create_question_config_body.dart @@ -108,37 +108,39 @@ class CreateQuestionConfigBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateQuestionConfigBody && other.name == name && - other.question == question && - other.helpText == helpText && - other.type == type && - other.numStars == numStars && - other.min == min && - other.max == max && - other.defaultValue == defaultValue && - other.labelNegative == labelNegative && - other.labelPositive == labelPositive && - _deepEquality.equals(other.customOptions, customOptions) && - _deepEquality.equals(other.subQuestionIds, subQuestionIds) && - other.alwaysShowSubQuestions == alwaysShowSubQuestions && - other.reportingOrder == reportingOrder; + other.question == question && + other.helpText == helpText && + other.type == type && + other.numStars == numStars && + other.min == min && + other.max == max && + other.defaultValue == defaultValue && + other.labelNegative == labelNegative && + other.labelPositive == labelPositive && + _deepEquality.equals(other.customOptions, customOptions) && + _deepEquality.equals(other.subQuestionIds, subQuestionIds) && + other.alwaysShowSubQuestions == alwaysShowSubQuestions && + other.reportingOrder == reportingOrder; + @override int get hashCode => // ignore: unnecessary_parenthesis (name.hashCode) + - (question.hashCode) + - (helpText == null ? 0 : helpText!.hashCode) + - (type.hashCode) + - (numStars == null ? 0 : numStars!.hashCode) + - (min == null ? 0 : min!.hashCode) + - (max == null ? 0 : max!.hashCode) + - (defaultValue == null ? 0 : defaultValue!.hashCode) + - (labelNegative == null ? 0 : labelNegative!.hashCode) + - (labelPositive == null ? 0 : labelPositive!.hashCode) + - (customOptions.hashCode) + - (subQuestionIds.hashCode) + - (alwaysShowSubQuestions == null ? 0 : alwaysShowSubQuestions!.hashCode) + - (reportingOrder.hashCode); + (question.hashCode) + + (helpText == null ? 0 : helpText!.hashCode) + + (type.hashCode) + + (numStars == null ? 0 : numStars!.hashCode) + + (min == null ? 0 : min!.hashCode) + + (max == null ? 0 : max!.hashCode) + + (defaultValue == null ? 0 : defaultValue!.hashCode) + + (labelNegative == null ? 0 : labelNegative!.hashCode) + + (labelPositive == null ? 0 : labelPositive!.hashCode) + + (customOptions.hashCode) + + (subQuestionIds.hashCode) + + (alwaysShowSubQuestions == null ? 0 : alwaysShowSubQuestions!.hashCode) + + (reportingOrder.hashCode); + @override String toString() => 'CreateQuestionConfigBody[name=$name, question=$question, helpText=$helpText, type=$type, numStars=$numStars, min=$min, max=$max, defaultValue=$defaultValue, labelNegative=$labelNegative, labelPositive=$labelPositive, customOptions=$customOptions, subQuestionIds=$subQuestionIds, alwaysShowSubQuestions=$alwaysShowSubQuestions, reportingOrder=$reportingOrder]'; diff --git a/client/lib/model/create_question_config_response.dart b/client/lib/model/create_question_config_response.dart index ea537a5..b62c271 100644 --- a/client/lib/model/create_question_config_response.dart +++ b/client/lib/model/create_question_config_response.dart @@ -24,13 +24,15 @@ class CreateQuestionConfigResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateQuestionConfigResponse && other.status == status && - other.questionConfig == questionConfig; + other.questionConfig == questionConfig; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (questionConfig.hashCode); + (questionConfig.hashCode); + @override String toString() => 'CreateQuestionConfigResponse[status=$status, questionConfig=$questionConfig]'; diff --git a/client/lib/model/create_question_result200_response.dart b/client/lib/model/create_question_result200_response.dart deleted file mode 100644 index b89596f..0000000 --- a/client/lib/model/create_question_result200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateQuestionResult200Response { - /// Returns a new [CreateQuestionResult200Response] instance. - CreateQuestionResult200Response({ - required this.status, - required this.questionResult, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - QuestionResult questionResult; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateQuestionResult200Response && - other.status == status && - other.questionResult == questionResult && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (questionResult.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateQuestionResult200Response[status=$status, questionResult=$questionResult, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'questionResult'] = this.questionResult; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateQuestionResult200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateQuestionResult200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateQuestionResult200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateQuestionResult200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionResult'), 'Required key "CreateQuestionResult200Response[questionResult]" is missing from JSON.'); - assert(json[r'questionResult'] != null, 'Required key "CreateQuestionResult200Response[questionResult]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateQuestionResult200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateQuestionResult200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateQuestionResult200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateQuestionResult200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateQuestionResult200Response( - status: APIStatus.fromJson(json[r'status'])!, - questionResult: QuestionResult.fromJson(json[r'questionResult'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateQuestionResult200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateQuestionResult200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateQuestionResult200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateQuestionResult200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'questionResult', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_question_result_body.dart b/client/lib/model/create_question_result_body.dart index 19541fe..ee55a5a 100644 --- a/client/lib/model/create_question_result_body.dart +++ b/client/lib/model/create_question_result_body.dart @@ -57,23 +57,25 @@ class CreateQuestionResultBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateQuestionResultBody && other.urlId == urlId && - other.value == value && - other.questionId == questionId && - other.anonUserId == anonUserId && - other.userId == userId && - other.commentId == commentId && - _deepEquality.equals(other.meta, meta); + other.value == value && + other.questionId == questionId && + other.anonUserId == anonUserId && + other.userId == userId && + other.commentId == commentId && + _deepEquality.equals(other.meta, meta); + @override int get hashCode => // ignore: unnecessary_parenthesis (urlId.hashCode) + - (value.hashCode) + - (questionId.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (commentId == null ? 0 : commentId!.hashCode) + - (meta == null ? 0 : meta!.hashCode); + (value.hashCode) + + (questionId.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (commentId == null ? 0 : commentId!.hashCode) + + (meta == null ? 0 : meta!.hashCode); + @override String toString() => 'CreateQuestionResultBody[urlId=$urlId, value=$value, questionId=$questionId, anonUserId=$anonUserId, userId=$userId, commentId=$commentId, meta=$meta]'; diff --git a/client/lib/model/create_question_result_response.dart b/client/lib/model/create_question_result_response.dart index 2120e83..72e6e07 100644 --- a/client/lib/model/create_question_result_response.dart +++ b/client/lib/model/create_question_result_response.dart @@ -24,13 +24,15 @@ class CreateQuestionResultResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateQuestionResultResponse && other.status == status && - other.questionResult == questionResult; + other.questionResult == questionResult; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (questionResult.hashCode); + (questionResult.hashCode); + @override String toString() => 'CreateQuestionResultResponse[status=$status, questionResult=$questionResult]'; diff --git a/client/lib/model/create_subscription_api_response.dart b/client/lib/model/create_subscription_api_response.dart index 86387c6..31a168a 100644 --- a/client/lib/model/create_subscription_api_response.dart +++ b/client/lib/model/create_subscription_api_response.dart @@ -48,17 +48,19 @@ class CreateSubscriptionAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateSubscriptionAPIResponse && other.reason == reason && - other.code == code && - other.subscription == subscription && - other.status == status; + other.code == code && + other.subscription == subscription && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (subscription == null ? 0 : subscription!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (subscription == null ? 0 : subscription!.hashCode) + + (status.hashCode); + @override String toString() => 'CreateSubscriptionAPIResponse[reason=$reason, code=$code, subscription=$subscription, status=$status]'; diff --git a/client/lib/model/create_tenant200_response.dart b/client/lib/model/create_tenant200_response.dart deleted file mode 100644 index dec1ded..0000000 --- a/client/lib/model/create_tenant200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateTenant200Response { - /// Returns a new [CreateTenant200Response] instance. - CreateTenant200Response({ - required this.status, - required this.tenant, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - APITenant tenant; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateTenant200Response && - other.status == status && - other.tenant == tenant && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenant.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateTenant200Response[status=$status, tenant=$tenant, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenant'] = this.tenant; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateTenant200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateTenant200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateTenant200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateTenant200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenant'), 'Required key "CreateTenant200Response[tenant]" is missing from JSON.'); - assert(json[r'tenant'] != null, 'Required key "CreateTenant200Response[tenant]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateTenant200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateTenant200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateTenant200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateTenant200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateTenant200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenant: APITenant.fromJson(json[r'tenant'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateTenant200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateTenant200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateTenant200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateTenant200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenant', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_tenant_body.dart b/client/lib/model/create_tenant_body.dart index 8d79347..0a1bf15 100644 --- a/client/lib/model/create_tenant_body.dart +++ b/client/lib/model/create_tenant_body.dart @@ -208,55 +208,57 @@ class CreateTenantBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateTenantBody && other.name == name && - _deepEquality.equals(other.domainConfiguration, domainConfiguration) && - other.email == email && - other.signUpDate == signUpDate && - other.packageId == packageId && - other.paymentFrequency == paymentFrequency && - other.billingInfoValid == billingInfoValid && - other.billingHandledExternally == billingHandledExternally && - other.createdBy == createdBy && - other.isSetup == isSetup && - other.billingInfo == billingInfo && - other.stripeCustomerId == stripeCustomerId && - other.stripeSubscriptionId == stripeSubscriptionId && - other.stripePlanId == stripePlanId && - other.enableProfanityFilter == enableProfanityFilter && - other.enableSpamFilter == enableSpamFilter && - other.removeUnverifiedComments == removeUnverifiedComments && - other.unverifiedCommentsTTLms == unverifiedCommentsTTLms && - other.commentsRequireApproval == commentsRequireApproval && - other.autoApproveCommentOnVerification == autoApproveCommentOnVerification && - other.sendProfaneToSpam == sendProfaneToSpam && - other.deAnonIpAddr == deAnonIpAddr && - _deepEquality.equals(other.meta, meta); + _deepEquality.equals(other.domainConfiguration, domainConfiguration) && + other.email == email && + other.signUpDate == signUpDate && + other.packageId == packageId && + other.paymentFrequency == paymentFrequency && + other.billingInfoValid == billingInfoValid && + other.billingHandledExternally == billingHandledExternally && + other.createdBy == createdBy && + other.isSetup == isSetup && + other.billingInfo == billingInfo && + other.stripeCustomerId == stripeCustomerId && + other.stripeSubscriptionId == stripeSubscriptionId && + other.stripePlanId == stripePlanId && + other.enableProfanityFilter == enableProfanityFilter && + other.enableSpamFilter == enableSpamFilter && + other.removeUnverifiedComments == removeUnverifiedComments && + other.unverifiedCommentsTTLms == unverifiedCommentsTTLms && + other.commentsRequireApproval == commentsRequireApproval && + other.autoApproveCommentOnVerification == autoApproveCommentOnVerification && + other.sendProfaneToSpam == sendProfaneToSpam && + other.deAnonIpAddr == deAnonIpAddr && + _deepEquality.equals(other.meta, meta); + @override int get hashCode => // ignore: unnecessary_parenthesis (name.hashCode) + - (domainConfiguration.hashCode) + - (email == null ? 0 : email!.hashCode) + - (signUpDate == null ? 0 : signUpDate!.hashCode) + - (packageId == null ? 0 : packageId!.hashCode) + - (paymentFrequency == null ? 0 : paymentFrequency!.hashCode) + - (billingInfoValid == null ? 0 : billingInfoValid!.hashCode) + - (billingHandledExternally == null ? 0 : billingHandledExternally!.hashCode) + - (createdBy == null ? 0 : createdBy!.hashCode) + - (isSetup == null ? 0 : isSetup!.hashCode) + - (billingInfo == null ? 0 : billingInfo!.hashCode) + - (stripeCustomerId == null ? 0 : stripeCustomerId!.hashCode) + - (stripeSubscriptionId == null ? 0 : stripeSubscriptionId!.hashCode) + - (stripePlanId == null ? 0 : stripePlanId!.hashCode) + - (enableProfanityFilter == null ? 0 : enableProfanityFilter!.hashCode) + - (enableSpamFilter == null ? 0 : enableSpamFilter!.hashCode) + - (removeUnverifiedComments == null ? 0 : removeUnverifiedComments!.hashCode) + - (unverifiedCommentsTTLms == null ? 0 : unverifiedCommentsTTLms!.hashCode) + - (commentsRequireApproval == null ? 0 : commentsRequireApproval!.hashCode) + - (autoApproveCommentOnVerification == null ? 0 : autoApproveCommentOnVerification!.hashCode) + - (sendProfaneToSpam == null ? 0 : sendProfaneToSpam!.hashCode) + - (deAnonIpAddr == null ? 0 : deAnonIpAddr!.hashCode) + - (meta.hashCode); + (domainConfiguration.hashCode) + + (email == null ? 0 : email!.hashCode) + + (signUpDate == null ? 0 : signUpDate!.hashCode) + + (packageId == null ? 0 : packageId!.hashCode) + + (paymentFrequency == null ? 0 : paymentFrequency!.hashCode) + + (billingInfoValid == null ? 0 : billingInfoValid!.hashCode) + + (billingHandledExternally == null ? 0 : billingHandledExternally!.hashCode) + + (createdBy == null ? 0 : createdBy!.hashCode) + + (isSetup == null ? 0 : isSetup!.hashCode) + + (billingInfo == null ? 0 : billingInfo!.hashCode) + + (stripeCustomerId == null ? 0 : stripeCustomerId!.hashCode) + + (stripeSubscriptionId == null ? 0 : stripeSubscriptionId!.hashCode) + + (stripePlanId == null ? 0 : stripePlanId!.hashCode) + + (enableProfanityFilter == null ? 0 : enableProfanityFilter!.hashCode) + + (enableSpamFilter == null ? 0 : enableSpamFilter!.hashCode) + + (removeUnverifiedComments == null ? 0 : removeUnverifiedComments!.hashCode) + + (unverifiedCommentsTTLms == null ? 0 : unverifiedCommentsTTLms!.hashCode) + + (commentsRequireApproval == null ? 0 : commentsRequireApproval!.hashCode) + + (autoApproveCommentOnVerification == null ? 0 : autoApproveCommentOnVerification!.hashCode) + + (sendProfaneToSpam == null ? 0 : sendProfaneToSpam!.hashCode) + + (deAnonIpAddr == null ? 0 : deAnonIpAddr!.hashCode) + + (meta.hashCode); + @override String toString() => 'CreateTenantBody[name=$name, domainConfiguration=$domainConfiguration, email=$email, signUpDate=$signUpDate, packageId=$packageId, paymentFrequency=$paymentFrequency, billingInfoValid=$billingInfoValid, billingHandledExternally=$billingHandledExternally, createdBy=$createdBy, isSetup=$isSetup, billingInfo=$billingInfo, stripeCustomerId=$stripeCustomerId, stripeSubscriptionId=$stripeSubscriptionId, stripePlanId=$stripePlanId, enableProfanityFilter=$enableProfanityFilter, enableSpamFilter=$enableSpamFilter, removeUnverifiedComments=$removeUnverifiedComments, unverifiedCommentsTTLms=$unverifiedCommentsTTLms, commentsRequireApproval=$commentsRequireApproval, autoApproveCommentOnVerification=$autoApproveCommentOnVerification, sendProfaneToSpam=$sendProfaneToSpam, deAnonIpAddr=$deAnonIpAddr, meta=$meta]'; diff --git a/client/lib/model/create_tenant_package200_response.dart b/client/lib/model/create_tenant_package200_response.dart deleted file mode 100644 index 058ee24..0000000 --- a/client/lib/model/create_tenant_package200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateTenantPackage200Response { - /// Returns a new [CreateTenantPackage200Response] instance. - CreateTenantPackage200Response({ - required this.status, - required this.tenantPackage, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - TenantPackage tenantPackage; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateTenantPackage200Response && - other.status == status && - other.tenantPackage == tenantPackage && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenantPackage.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateTenantPackage200Response[status=$status, tenantPackage=$tenantPackage, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenantPackage'] = this.tenantPackage; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateTenantPackage200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateTenantPackage200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateTenantPackage200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateTenantPackage200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantPackage'), 'Required key "CreateTenantPackage200Response[tenantPackage]" is missing from JSON.'); - assert(json[r'tenantPackage'] != null, 'Required key "CreateTenantPackage200Response[tenantPackage]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateTenantPackage200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateTenantPackage200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateTenantPackage200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateTenantPackage200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateTenantPackage200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenantPackage: TenantPackage.fromJson(json[r'tenantPackage'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateTenantPackage200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateTenantPackage200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateTenantPackage200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateTenantPackage200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenantPackage', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_tenant_package_body.dart b/client/lib/model/create_tenant_package_body.dart index a1bdadd..95b4ca3 100644 --- a/client/lib/model/create_tenant_package_body.dart +++ b/client/lib/model/create_tenant_package_body.dart @@ -357,107 +357,109 @@ class CreateTenantPackageBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateTenantPackageBody && other.name == name && - other.monthlyCostUSD == monthlyCostUSD && - other.yearlyCostUSD == yearlyCostUSD && - other.monthlyStripePlanId == monthlyStripePlanId && - other.yearlyStripePlanId == yearlyStripePlanId && - other.maxMonthlyPageLoads == maxMonthlyPageLoads && - other.maxMonthlyAPICredits == maxMonthlyAPICredits && - other.maxMonthlySmallWidgetsCredits == maxMonthlySmallWidgetsCredits && - other.maxMonthlyComments == maxMonthlyComments && - other.maxConcurrentUsers == maxConcurrentUsers && - other.maxTenantUsers == maxTenantUsers && - other.maxSSOUsers == maxSSOUsers && - other.maxModerators == maxModerators && - other.maxDomains == maxDomains && - other.maxWhiteLabeledTenants == maxWhiteLabeledTenants && - other.maxMonthlyEventLogRequests == maxMonthlyEventLogRequests && - other.maxCustomCollectionSize == maxCustomCollectionSize && - other.hasWhiteLabeling == hasWhiteLabeling && - other.hasDebranding == hasDebranding && - other.hasLLMSpamDetection == hasLLMSpamDetection && - other.forWhoText == forWhoText && - _deepEquality.equals(other.featureTaglines, featureTaglines) && - other.hasAuditing == hasAuditing && - other.hasFlexPricing == hasFlexPricing && - other.enableSAML == enableSAML && - other.flexPageLoadCostCents == flexPageLoadCostCents && - other.flexPageLoadUnit == flexPageLoadUnit && - other.flexCommentCostCents == flexCommentCostCents && - other.flexCommentUnit == flexCommentUnit && - other.flexSSOUserCostCents == flexSSOUserCostCents && - other.flexSSOUserUnit == flexSSOUserUnit && - other.flexAPICreditCostCents == flexAPICreditCostCents && - other.flexAPICreditUnit == flexAPICreditUnit && - other.flexSmallWidgetsCreditCostCents == flexSmallWidgetsCreditCostCents && - other.flexSmallWidgetsCreditUnit == flexSmallWidgetsCreditUnit && - other.flexModeratorCostCents == flexModeratorCostCents && - other.flexModeratorUnit == flexModeratorUnit && - other.flexAdminCostCents == flexAdminCostCents && - other.flexAdminUnit == flexAdminUnit && - other.flexDomainCostCents == flexDomainCostCents && - other.flexDomainUnit == flexDomainUnit && - other.flexLLMCostCents == flexLLMCostCents && - other.flexLLMUnit == flexLLMUnit && - other.flexMinimumCostCents == flexMinimumCostCents && - other.flexManagedTenantCostCents == flexManagedTenantCostCents && - other.flexSSOAdminCostCents == flexSSOAdminCostCents && - other.flexSSOAdminUnit == flexSSOAdminUnit && - other.flexSSOModeratorCostCents == flexSSOModeratorCostCents && - other.flexSSOModeratorUnit == flexSSOModeratorUnit; + other.monthlyCostUSD == monthlyCostUSD && + other.yearlyCostUSD == yearlyCostUSD && + other.monthlyStripePlanId == monthlyStripePlanId && + other.yearlyStripePlanId == yearlyStripePlanId && + other.maxMonthlyPageLoads == maxMonthlyPageLoads && + other.maxMonthlyAPICredits == maxMonthlyAPICredits && + other.maxMonthlySmallWidgetsCredits == maxMonthlySmallWidgetsCredits && + other.maxMonthlyComments == maxMonthlyComments && + other.maxConcurrentUsers == maxConcurrentUsers && + other.maxTenantUsers == maxTenantUsers && + other.maxSSOUsers == maxSSOUsers && + other.maxModerators == maxModerators && + other.maxDomains == maxDomains && + other.maxWhiteLabeledTenants == maxWhiteLabeledTenants && + other.maxMonthlyEventLogRequests == maxMonthlyEventLogRequests && + other.maxCustomCollectionSize == maxCustomCollectionSize && + other.hasWhiteLabeling == hasWhiteLabeling && + other.hasDebranding == hasDebranding && + other.hasLLMSpamDetection == hasLLMSpamDetection && + other.forWhoText == forWhoText && + _deepEquality.equals(other.featureTaglines, featureTaglines) && + other.hasAuditing == hasAuditing && + other.hasFlexPricing == hasFlexPricing && + other.enableSAML == enableSAML && + other.flexPageLoadCostCents == flexPageLoadCostCents && + other.flexPageLoadUnit == flexPageLoadUnit && + other.flexCommentCostCents == flexCommentCostCents && + other.flexCommentUnit == flexCommentUnit && + other.flexSSOUserCostCents == flexSSOUserCostCents && + other.flexSSOUserUnit == flexSSOUserUnit && + other.flexAPICreditCostCents == flexAPICreditCostCents && + other.flexAPICreditUnit == flexAPICreditUnit && + other.flexSmallWidgetsCreditCostCents == flexSmallWidgetsCreditCostCents && + other.flexSmallWidgetsCreditUnit == flexSmallWidgetsCreditUnit && + other.flexModeratorCostCents == flexModeratorCostCents && + other.flexModeratorUnit == flexModeratorUnit && + other.flexAdminCostCents == flexAdminCostCents && + other.flexAdminUnit == flexAdminUnit && + other.flexDomainCostCents == flexDomainCostCents && + other.flexDomainUnit == flexDomainUnit && + other.flexLLMCostCents == flexLLMCostCents && + other.flexLLMUnit == flexLLMUnit && + other.flexMinimumCostCents == flexMinimumCostCents && + other.flexManagedTenantCostCents == flexManagedTenantCostCents && + other.flexSSOAdminCostCents == flexSSOAdminCostCents && + other.flexSSOAdminUnit == flexSSOAdminUnit && + other.flexSSOModeratorCostCents == flexSSOModeratorCostCents && + other.flexSSOModeratorUnit == flexSSOModeratorUnit; + @override int get hashCode => // ignore: unnecessary_parenthesis (name.hashCode) + - (monthlyCostUSD == null ? 0 : monthlyCostUSD!.hashCode) + - (yearlyCostUSD == null ? 0 : yearlyCostUSD!.hashCode) + - (monthlyStripePlanId == null ? 0 : monthlyStripePlanId!.hashCode) + - (yearlyStripePlanId == null ? 0 : yearlyStripePlanId!.hashCode) + - (maxMonthlyPageLoads.hashCode) + - (maxMonthlyAPICredits.hashCode) + - (maxMonthlySmallWidgetsCredits == null ? 0 : maxMonthlySmallWidgetsCredits!.hashCode) + - (maxMonthlyComments.hashCode) + - (maxConcurrentUsers.hashCode) + - (maxTenantUsers.hashCode) + - (maxSSOUsers.hashCode) + - (maxModerators.hashCode) + - (maxDomains.hashCode) + - (maxWhiteLabeledTenants == null ? 0 : maxWhiteLabeledTenants!.hashCode) + - (maxMonthlyEventLogRequests == null ? 0 : maxMonthlyEventLogRequests!.hashCode) + - (maxCustomCollectionSize == null ? 0 : maxCustomCollectionSize!.hashCode) + - (hasWhiteLabeling == null ? 0 : hasWhiteLabeling!.hashCode) + - (hasDebranding.hashCode) + - (hasLLMSpamDetection == null ? 0 : hasLLMSpamDetection!.hashCode) + - (forWhoText.hashCode) + - (featureTaglines.hashCode) + - (hasAuditing == null ? 0 : hasAuditing!.hashCode) + - (hasFlexPricing.hashCode) + - (enableSAML == null ? 0 : enableSAML!.hashCode) + - (flexPageLoadCostCents == null ? 0 : flexPageLoadCostCents!.hashCode) + - (flexPageLoadUnit == null ? 0 : flexPageLoadUnit!.hashCode) + - (flexCommentCostCents == null ? 0 : flexCommentCostCents!.hashCode) + - (flexCommentUnit == null ? 0 : flexCommentUnit!.hashCode) + - (flexSSOUserCostCents == null ? 0 : flexSSOUserCostCents!.hashCode) + - (flexSSOUserUnit == null ? 0 : flexSSOUserUnit!.hashCode) + - (flexAPICreditCostCents == null ? 0 : flexAPICreditCostCents!.hashCode) + - (flexAPICreditUnit == null ? 0 : flexAPICreditUnit!.hashCode) + - (flexSmallWidgetsCreditCostCents == null ? 0 : flexSmallWidgetsCreditCostCents!.hashCode) + - (flexSmallWidgetsCreditUnit == null ? 0 : flexSmallWidgetsCreditUnit!.hashCode) + - (flexModeratorCostCents == null ? 0 : flexModeratorCostCents!.hashCode) + - (flexModeratorUnit == null ? 0 : flexModeratorUnit!.hashCode) + - (flexAdminCostCents == null ? 0 : flexAdminCostCents!.hashCode) + - (flexAdminUnit == null ? 0 : flexAdminUnit!.hashCode) + - (flexDomainCostCents == null ? 0 : flexDomainCostCents!.hashCode) + - (flexDomainUnit == null ? 0 : flexDomainUnit!.hashCode) + - (flexLLMCostCents == null ? 0 : flexLLMCostCents!.hashCode) + - (flexLLMUnit == null ? 0 : flexLLMUnit!.hashCode) + - (flexMinimumCostCents == null ? 0 : flexMinimumCostCents!.hashCode) + - (flexManagedTenantCostCents == null ? 0 : flexManagedTenantCostCents!.hashCode) + - (flexSSOAdminCostCents == null ? 0 : flexSSOAdminCostCents!.hashCode) + - (flexSSOAdminUnit == null ? 0 : flexSSOAdminUnit!.hashCode) + - (flexSSOModeratorCostCents == null ? 0 : flexSSOModeratorCostCents!.hashCode) + - (flexSSOModeratorUnit == null ? 0 : flexSSOModeratorUnit!.hashCode); + (monthlyCostUSD == null ? 0 : monthlyCostUSD!.hashCode) + + (yearlyCostUSD == null ? 0 : yearlyCostUSD!.hashCode) + + (monthlyStripePlanId == null ? 0 : monthlyStripePlanId!.hashCode) + + (yearlyStripePlanId == null ? 0 : yearlyStripePlanId!.hashCode) + + (maxMonthlyPageLoads.hashCode) + + (maxMonthlyAPICredits.hashCode) + + (maxMonthlySmallWidgetsCredits == null ? 0 : maxMonthlySmallWidgetsCredits!.hashCode) + + (maxMonthlyComments.hashCode) + + (maxConcurrentUsers.hashCode) + + (maxTenantUsers.hashCode) + + (maxSSOUsers.hashCode) + + (maxModerators.hashCode) + + (maxDomains.hashCode) + + (maxWhiteLabeledTenants == null ? 0 : maxWhiteLabeledTenants!.hashCode) + + (maxMonthlyEventLogRequests == null ? 0 : maxMonthlyEventLogRequests!.hashCode) + + (maxCustomCollectionSize == null ? 0 : maxCustomCollectionSize!.hashCode) + + (hasWhiteLabeling == null ? 0 : hasWhiteLabeling!.hashCode) + + (hasDebranding.hashCode) + + (hasLLMSpamDetection == null ? 0 : hasLLMSpamDetection!.hashCode) + + (forWhoText.hashCode) + + (featureTaglines.hashCode) + + (hasAuditing == null ? 0 : hasAuditing!.hashCode) + + (hasFlexPricing.hashCode) + + (enableSAML == null ? 0 : enableSAML!.hashCode) + + (flexPageLoadCostCents == null ? 0 : flexPageLoadCostCents!.hashCode) + + (flexPageLoadUnit == null ? 0 : flexPageLoadUnit!.hashCode) + + (flexCommentCostCents == null ? 0 : flexCommentCostCents!.hashCode) + + (flexCommentUnit == null ? 0 : flexCommentUnit!.hashCode) + + (flexSSOUserCostCents == null ? 0 : flexSSOUserCostCents!.hashCode) + + (flexSSOUserUnit == null ? 0 : flexSSOUserUnit!.hashCode) + + (flexAPICreditCostCents == null ? 0 : flexAPICreditCostCents!.hashCode) + + (flexAPICreditUnit == null ? 0 : flexAPICreditUnit!.hashCode) + + (flexSmallWidgetsCreditCostCents == null ? 0 : flexSmallWidgetsCreditCostCents!.hashCode) + + (flexSmallWidgetsCreditUnit == null ? 0 : flexSmallWidgetsCreditUnit!.hashCode) + + (flexModeratorCostCents == null ? 0 : flexModeratorCostCents!.hashCode) + + (flexModeratorUnit == null ? 0 : flexModeratorUnit!.hashCode) + + (flexAdminCostCents == null ? 0 : flexAdminCostCents!.hashCode) + + (flexAdminUnit == null ? 0 : flexAdminUnit!.hashCode) + + (flexDomainCostCents == null ? 0 : flexDomainCostCents!.hashCode) + + (flexDomainUnit == null ? 0 : flexDomainUnit!.hashCode) + + (flexLLMCostCents == null ? 0 : flexLLMCostCents!.hashCode) + + (flexLLMUnit == null ? 0 : flexLLMUnit!.hashCode) + + (flexMinimumCostCents == null ? 0 : flexMinimumCostCents!.hashCode) + + (flexManagedTenantCostCents == null ? 0 : flexManagedTenantCostCents!.hashCode) + + (flexSSOAdminCostCents == null ? 0 : flexSSOAdminCostCents!.hashCode) + + (flexSSOAdminUnit == null ? 0 : flexSSOAdminUnit!.hashCode) + + (flexSSOModeratorCostCents == null ? 0 : flexSSOModeratorCostCents!.hashCode) + + (flexSSOModeratorUnit == null ? 0 : flexSSOModeratorUnit!.hashCode); + @override String toString() => 'CreateTenantPackageBody[name=$name, monthlyCostUSD=$monthlyCostUSD, yearlyCostUSD=$yearlyCostUSD, monthlyStripePlanId=$monthlyStripePlanId, yearlyStripePlanId=$yearlyStripePlanId, maxMonthlyPageLoads=$maxMonthlyPageLoads, maxMonthlyAPICredits=$maxMonthlyAPICredits, maxMonthlySmallWidgetsCredits=$maxMonthlySmallWidgetsCredits, maxMonthlyComments=$maxMonthlyComments, maxConcurrentUsers=$maxConcurrentUsers, maxTenantUsers=$maxTenantUsers, maxSSOUsers=$maxSSOUsers, maxModerators=$maxModerators, maxDomains=$maxDomains, maxWhiteLabeledTenants=$maxWhiteLabeledTenants, maxMonthlyEventLogRequests=$maxMonthlyEventLogRequests, maxCustomCollectionSize=$maxCustomCollectionSize, hasWhiteLabeling=$hasWhiteLabeling, hasDebranding=$hasDebranding, hasLLMSpamDetection=$hasLLMSpamDetection, forWhoText=$forWhoText, featureTaglines=$featureTaglines, hasAuditing=$hasAuditing, hasFlexPricing=$hasFlexPricing, enableSAML=$enableSAML, flexPageLoadCostCents=$flexPageLoadCostCents, flexPageLoadUnit=$flexPageLoadUnit, flexCommentCostCents=$flexCommentCostCents, flexCommentUnit=$flexCommentUnit, flexSSOUserCostCents=$flexSSOUserCostCents, flexSSOUserUnit=$flexSSOUserUnit, flexAPICreditCostCents=$flexAPICreditCostCents, flexAPICreditUnit=$flexAPICreditUnit, flexSmallWidgetsCreditCostCents=$flexSmallWidgetsCreditCostCents, flexSmallWidgetsCreditUnit=$flexSmallWidgetsCreditUnit, flexModeratorCostCents=$flexModeratorCostCents, flexModeratorUnit=$flexModeratorUnit, flexAdminCostCents=$flexAdminCostCents, flexAdminUnit=$flexAdminUnit, flexDomainCostCents=$flexDomainCostCents, flexDomainUnit=$flexDomainUnit, flexLLMCostCents=$flexLLMCostCents, flexLLMUnit=$flexLLMUnit, flexMinimumCostCents=$flexMinimumCostCents, flexManagedTenantCostCents=$flexManagedTenantCostCents, flexSSOAdminCostCents=$flexSSOAdminCostCents, flexSSOAdminUnit=$flexSSOAdminUnit, flexSSOModeratorCostCents=$flexSSOModeratorCostCents, flexSSOModeratorUnit=$flexSSOModeratorUnit]'; diff --git a/client/lib/model/create_tenant_package_response.dart b/client/lib/model/create_tenant_package_response.dart index 5e2499a..29a6076 100644 --- a/client/lib/model/create_tenant_package_response.dart +++ b/client/lib/model/create_tenant_package_response.dart @@ -24,13 +24,15 @@ class CreateTenantPackageResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateTenantPackageResponse && other.status == status && - other.tenantPackage == tenantPackage; + other.tenantPackage == tenantPackage; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenantPackage.hashCode); + (tenantPackage.hashCode); + @override String toString() => 'CreateTenantPackageResponse[status=$status, tenantPackage=$tenantPackage]'; diff --git a/client/lib/model/create_tenant_response.dart b/client/lib/model/create_tenant_response.dart index 678a402..bf73cba 100644 --- a/client/lib/model/create_tenant_response.dart +++ b/client/lib/model/create_tenant_response.dart @@ -24,13 +24,15 @@ class CreateTenantResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateTenantResponse && other.status == status && - other.tenant == tenant; + other.tenant == tenant; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenant.hashCode); + (tenant.hashCode); + @override String toString() => 'CreateTenantResponse[status=$status, tenant=$tenant]'; diff --git a/client/lib/model/create_tenant_user200_response.dart b/client/lib/model/create_tenant_user200_response.dart deleted file mode 100644 index 713dab0..0000000 --- a/client/lib/model/create_tenant_user200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateTenantUser200Response { - /// Returns a new [CreateTenantUser200Response] instance. - CreateTenantUser200Response({ - required this.status, - required this.tenantUser, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - User tenantUser; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateTenantUser200Response && - other.status == status && - other.tenantUser == tenantUser && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenantUser.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateTenantUser200Response[status=$status, tenantUser=$tenantUser, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenantUser'] = this.tenantUser; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateTenantUser200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateTenantUser200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateTenantUser200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateTenantUser200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantUser'), 'Required key "CreateTenantUser200Response[tenantUser]" is missing from JSON.'); - assert(json[r'tenantUser'] != null, 'Required key "CreateTenantUser200Response[tenantUser]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateTenantUser200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateTenantUser200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateTenantUser200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateTenantUser200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateTenantUser200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenantUser: User.fromJson(json[r'tenantUser'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateTenantUser200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateTenantUser200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateTenantUser200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateTenantUser200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenantUser', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_tenant_user_body.dart b/client/lib/model/create_tenant_user_body.dart index 6cfb0cf..38b3611 100644 --- a/client/lib/model/create_tenant_user_body.dart +++ b/client/lib/model/create_tenant_user_body.dart @@ -216,57 +216,59 @@ class CreateTenantUserBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateTenantUserBody && other.username == username && - other.email == email && - other.displayName == displayName && - other.websiteUrl == websiteUrl && - other.signUpDate == signUpDate && - other.locale == locale && - other.verified == verified && - other.loginCount == loginCount && - other.optedInNotifications == optedInNotifications && - other.optedInTenantNotifications == optedInTenantNotifications && - other.hideAccountCode == hideAccountCode && - other.avatarSrc == avatarSrc && - other.isHelpRequestAdmin == isHelpRequestAdmin && - other.isAccountOwner == isAccountOwner && - other.isAdminAdmin == isAdminAdmin && - other.isBillingAdmin == isBillingAdmin && - other.isAnalyticsAdmin == isAnalyticsAdmin && - other.isCustomizationAdmin == isCustomizationAdmin && - other.isManageDataAdmin == isManageDataAdmin && - other.isCommentModeratorAdmin == isCommentModeratorAdmin && - other.isAPIAdmin == isAPIAdmin && - _deepEquality.equals(other.moderatorIds, moderatorIds) && - other.digestEmailFrequency == digestEmailFrequency && - other.displayLabel == displayLabel; + other.email == email && + other.displayName == displayName && + other.websiteUrl == websiteUrl && + other.signUpDate == signUpDate && + other.locale == locale && + other.verified == verified && + other.loginCount == loginCount && + other.optedInNotifications == optedInNotifications && + other.optedInTenantNotifications == optedInTenantNotifications && + other.hideAccountCode == hideAccountCode && + other.avatarSrc == avatarSrc && + other.isHelpRequestAdmin == isHelpRequestAdmin && + other.isAccountOwner == isAccountOwner && + other.isAdminAdmin == isAdminAdmin && + other.isBillingAdmin == isBillingAdmin && + other.isAnalyticsAdmin == isAnalyticsAdmin && + other.isCustomizationAdmin == isCustomizationAdmin && + other.isManageDataAdmin == isManageDataAdmin && + other.isCommentModeratorAdmin == isCommentModeratorAdmin && + other.isAPIAdmin == isAPIAdmin && + _deepEquality.equals(other.moderatorIds, moderatorIds) && + other.digestEmailFrequency == digestEmailFrequency && + other.displayLabel == displayLabel; + @override int get hashCode => // ignore: unnecessary_parenthesis (username.hashCode) + - (email.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (websiteUrl == null ? 0 : websiteUrl!.hashCode) + - (signUpDate == null ? 0 : signUpDate!.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (verified == null ? 0 : verified!.hashCode) + - (loginCount == null ? 0 : loginCount!.hashCode) + - (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + - (optedInTenantNotifications == null ? 0 : optedInTenantNotifications!.hashCode) + - (hideAccountCode == null ? 0 : hideAccountCode!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (isHelpRequestAdmin == null ? 0 : isHelpRequestAdmin!.hashCode) + - (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + - (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + - (isBillingAdmin == null ? 0 : isBillingAdmin!.hashCode) + - (isAnalyticsAdmin == null ? 0 : isAnalyticsAdmin!.hashCode) + - (isCustomizationAdmin == null ? 0 : isCustomizationAdmin!.hashCode) + - (isManageDataAdmin == null ? 0 : isManageDataAdmin!.hashCode) + - (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + - (isAPIAdmin == null ? 0 : isAPIAdmin!.hashCode) + - (moderatorIds.hashCode) + - (digestEmailFrequency == null ? 0 : digestEmailFrequency!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode); + (email.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (websiteUrl == null ? 0 : websiteUrl!.hashCode) + + (signUpDate == null ? 0 : signUpDate!.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (verified == null ? 0 : verified!.hashCode) + + (loginCount == null ? 0 : loginCount!.hashCode) + + (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + + (optedInTenantNotifications == null ? 0 : optedInTenantNotifications!.hashCode) + + (hideAccountCode == null ? 0 : hideAccountCode!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (isHelpRequestAdmin == null ? 0 : isHelpRequestAdmin!.hashCode) + + (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + + (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + + (isBillingAdmin == null ? 0 : isBillingAdmin!.hashCode) + + (isAnalyticsAdmin == null ? 0 : isAnalyticsAdmin!.hashCode) + + (isCustomizationAdmin == null ? 0 : isCustomizationAdmin!.hashCode) + + (isManageDataAdmin == null ? 0 : isManageDataAdmin!.hashCode) + + (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + + (isAPIAdmin == null ? 0 : isAPIAdmin!.hashCode) + + (moderatorIds.hashCode) + + (digestEmailFrequency == null ? 0 : digestEmailFrequency!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode); + @override String toString() => 'CreateTenantUserBody[username=$username, email=$email, displayName=$displayName, websiteUrl=$websiteUrl, signUpDate=$signUpDate, locale=$locale, verified=$verified, loginCount=$loginCount, optedInNotifications=$optedInNotifications, optedInTenantNotifications=$optedInTenantNotifications, hideAccountCode=$hideAccountCode, avatarSrc=$avatarSrc, isHelpRequestAdmin=$isHelpRequestAdmin, isAccountOwner=$isAccountOwner, isAdminAdmin=$isAdminAdmin, isBillingAdmin=$isBillingAdmin, isAnalyticsAdmin=$isAnalyticsAdmin, isCustomizationAdmin=$isCustomizationAdmin, isManageDataAdmin=$isManageDataAdmin, isCommentModeratorAdmin=$isCommentModeratorAdmin, isAPIAdmin=$isAPIAdmin, moderatorIds=$moderatorIds, digestEmailFrequency=$digestEmailFrequency, displayLabel=$displayLabel]'; diff --git a/client/lib/model/create_tenant_user_response.dart b/client/lib/model/create_tenant_user_response.dart index c3c0a7c..2217ddb 100644 --- a/client/lib/model/create_tenant_user_response.dart +++ b/client/lib/model/create_tenant_user_response.dart @@ -24,13 +24,15 @@ class CreateTenantUserResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateTenantUserResponse && other.status == status && - other.tenantUser == tenantUser; + other.tenantUser == tenantUser; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenantUser.hashCode); + (tenantUser.hashCode); + @override String toString() => 'CreateTenantUserResponse[status=$status, tenantUser=$tenantUser]'; diff --git a/client/lib/model/create_ticket200_response.dart b/client/lib/model/create_ticket200_response.dart deleted file mode 100644 index 67796da..0000000 --- a/client/lib/model/create_ticket200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateTicket200Response { - /// Returns a new [CreateTicket200Response] instance. - CreateTicket200Response({ - required this.status, - required this.ticket, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - APITicket ticket; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateTicket200Response && - other.status == status && - other.ticket == ticket && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (ticket.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateTicket200Response[status=$status, ticket=$ticket, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'ticket'] = this.ticket; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateTicket200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateTicket200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateTicket200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateTicket200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'ticket'), 'Required key "CreateTicket200Response[ticket]" is missing from JSON.'); - assert(json[r'ticket'] != null, 'Required key "CreateTicket200Response[ticket]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateTicket200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateTicket200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateTicket200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateTicket200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateTicket200Response( - status: APIStatus.fromJson(json[r'status'])!, - ticket: APITicket.fromJson(json[r'ticket'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateTicket200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateTicket200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateTicket200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateTicket200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'ticket', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_ticket_body.dart b/client/lib/model/create_ticket_body.dart index 9c09f5e..b454f5d 100644 --- a/client/lib/model/create_ticket_body.dart +++ b/client/lib/model/create_ticket_body.dart @@ -21,11 +21,13 @@ class CreateTicketBody { @override bool operator ==(Object other) => identical(this, other) || other is CreateTicketBody && other.subject == subject; + @override int get hashCode => // ignore: unnecessary_parenthesis (subject.hashCode); + @override String toString() => 'CreateTicketBody[subject=$subject]'; diff --git a/client/lib/model/create_ticket_response.dart b/client/lib/model/create_ticket_response.dart index 03f2b3b..eb9d29d 100644 --- a/client/lib/model/create_ticket_response.dart +++ b/client/lib/model/create_ticket_response.dart @@ -24,13 +24,15 @@ class CreateTicketResponse { @override bool operator ==(Object other) => identical(this, other) || other is CreateTicketResponse && other.status == status && - other.ticket == ticket; + other.ticket == ticket; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (ticket.hashCode); + (ticket.hashCode); + @override String toString() => 'CreateTicketResponse[status=$status, ticket=$ticket]'; diff --git a/client/lib/model/create_user_badge200_response.dart b/client/lib/model/create_user_badge200_response.dart deleted file mode 100644 index 502a3fc..0000000 --- a/client/lib/model/create_user_badge200_response.dart +++ /dev/null @@ -1,231 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class CreateUserBadge200Response { - /// Returns a new [CreateUserBadge200Response] instance. - CreateUserBadge200Response({ - required this.status, - required this.userBadge, - this.notes = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - UserBadge userBadge; - - List notes; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateUserBadge200Response && - other.status == status && - other.userBadge == userBadge && - _deepEquality.equals(other.notes, notes) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (userBadge.hashCode) + - (notes.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'CreateUserBadge200Response[status=$status, userBadge=$userBadge, notes=$notes, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'userBadge'] = this.userBadge; - json[r'notes'] = this.notes; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [CreateUserBadge200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateUserBadge200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "CreateUserBadge200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateUserBadge200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadge'), 'Required key "CreateUserBadge200Response[userBadge]" is missing from JSON.'); - assert(json[r'userBadge'] != null, 'Required key "CreateUserBadge200Response[userBadge]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "CreateUserBadge200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "CreateUserBadge200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "CreateUserBadge200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "CreateUserBadge200Response[code]" has a null value in JSON.'); - return true; - }()); - - return CreateUserBadge200Response( - status: APIStatus.fromJson(json[r'status'])!, - userBadge: UserBadge.fromJson(json[r'userBadge'])!, - notes: json[r'notes'] is Iterable - ? (json[r'notes'] as Iterable).cast().toList(growable: false) - : const [], - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateUserBadge200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateUserBadge200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateUserBadge200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateUserBadge200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'userBadge', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/create_user_badge_params.dart b/client/lib/model/create_user_badge_params.dart index 3cfd283..3d2fb54 100644 --- a/client/lib/model/create_user_badge_params.dart +++ b/client/lib/model/create_user_badge_params.dart @@ -33,15 +33,17 @@ class CreateUserBadgeParams { @override bool operator ==(Object other) => identical(this, other) || other is CreateUserBadgeParams && other.userId == userId && - other.badgeId == badgeId && - other.displayedOnComments == displayedOnComments; + other.badgeId == badgeId && + other.displayedOnComments == displayedOnComments; + @override int get hashCode => // ignore: unnecessary_parenthesis (userId.hashCode) + - (badgeId.hashCode) + - (displayedOnComments == null ? 0 : displayedOnComments!.hashCode); + (badgeId.hashCode) + + (displayedOnComments == null ? 0 : displayedOnComments!.hashCode); + @override String toString() => 'CreateUserBadgeParams[userId=$userId, badgeId=$badgeId, displayedOnComments=$displayedOnComments]'; diff --git a/client/lib/model/create_v1_page_react.dart b/client/lib/model/create_v1_page_react.dart new file mode 100644 index 0000000..7ea471f --- /dev/null +++ b/client/lib/model/create_v1_page_react.dart @@ -0,0 +1,126 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class CreateV1PageReact { + /// Returns a new [CreateV1PageReact] instance. + CreateV1PageReact({ + this.code, + required this.status, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is CreateV1PageReact && + other.code == code && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (code == null ? 0 : code!.hashCode) + + (status.hashCode); + + + @override + String toString() => 'CreateV1PageReact[code=$code, status=$status]'; + + Map toJson() { + final json = {}; + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + json[r'status'] = this.status; + return json; + } + + /// Returns a new [CreateV1PageReact] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static CreateV1PageReact? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "CreateV1PageReact[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateV1PageReact[status]" has a null value in JSON.'); + return true; + }()); + + return CreateV1PageReact( + code: mapValueOfType(json, r'code'), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = CreateV1PageReact.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = CreateV1PageReact.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of CreateV1PageReact-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = CreateV1PageReact.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/custom_config_parameters.dart b/client/lib/model/custom_config_parameters.dart index de24070..226aefe 100644 --- a/client/lib/model/custom_config_parameters.dart +++ b/client/lib/model/custom_config_parameters.dart @@ -65,11 +65,14 @@ class CustomConfigParameters { this.noCustomConfig, this.mentionAutoCompleteMode, this.noImageUploads, + this.allowEmbeds, + this.allowedEmbedDomains = const [], this.noStyles, this.pageSize, this.readonly, this.noNewRootComments, this.requireSSO, + this.enableFChat, this.enableResizeHandle, this.restrictedLinkDomains = const [], this.showBadgesInTopBar, @@ -90,6 +93,8 @@ class CustomConfigParameters { this.widgetQuestionsRequired, this.widgetSubQuestionVisibility, this.wrap, + this.usersListLocation, + this.usersListIncludeOffline, this.ticketBaseUrl, this.ticketKBSearchEndpoint, this.ticketFileUploadsEnabled, @@ -430,6 +435,16 @@ class CustomConfigParameters { /// bool? noImageUploads; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? allowEmbeds; + + List? allowedEmbedDomains; + /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated @@ -464,6 +479,14 @@ class CustomConfigParameters { /// bool? requireSSO; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? enableFChat; + /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated @@ -607,6 +630,22 @@ class CustomConfigParameters { /// bool? wrap; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + UsersListLocation? usersListLocation; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? usersListIncludeOffline; + /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated @@ -652,178 +691,190 @@ class CustomConfigParameters { @override bool operator ==(Object other) => identical(this, other) || other is CustomConfigParameters && other.absoluteAndRelativeDates == absoluteAndRelativeDates && - other.absoluteDates == absoluteDates && - other.allowAnon == allowAnon && - other.allowAnonFlag == allowAnonFlag && - other.allowAnonVotes == allowAnonVotes && - _deepEquality.equals(other.allowedLanguages, allowedLanguages) && - other.collapseReplies == collapseReplies && - other.commentCountFormat == commentCountFormat && - other.commentHTMLRenderingMode == commentHTMLRenderingMode && - other.commentThreadDeleteMode == commentThreadDeleteMode && - other.commenterNameFormat == commenterNameFormat && - other.countAboveToggle == countAboveToggle && - other.customCSS == customCSS && - other.defaultAvatarSrc == defaultAvatarSrc && - other.defaultSortDirection == defaultSortDirection && - other.defaultUsername == defaultUsername && - other.disableAutoAdminMigration == disableAutoAdminMigration && - other.disableAutoHashTagCreation == disableAutoHashTagCreation && - other.disableBlocking == disableBlocking && - other.disableCommenterCommentDelete == disableCommenterCommentDelete && - other.disableCommenterCommentEdit == disableCommenterCommentEdit && - other.disableEmailInputs == disableEmailInputs && - other.disableLiveCommenting == disableLiveCommenting && - other.disableNotificationBell == disableNotificationBell && - other.disableProfileComments == disableProfileComments && - other.disableProfileDirectMessages == disableProfileDirectMessages && - other.disableProfiles == disableProfiles && - other.disableSuccessMessage == disableSuccessMessage && - other.disableToolbar == disableToolbar && - other.disableUnverifiedLabel == disableUnverifiedLabel && - other.disableVoting == disableVoting && - other.enableCommenterLinks == enableCommenterLinks && - other.enableSearch == enableSearch && - other.enableSpoilers == enableSpoilers && - other.enableThirdPartyCookieBypass == enableThirdPartyCookieBypass && - other.enableViewCounts == enableViewCounts && - other.enableVoteList == enableVoteList && - other.enableWYSIWYG == enableWYSIWYG && - other.gifRating == gifRating && - other.hasDarkBackground == hasDarkBackground && - other.headerHTML == headerHTML && - other.hideAvatars == hideAvatars && - other.hideCommentsUnderCountTextFormat == hideCommentsUnderCountTextFormat && - other.imageContentProfanityLevel == imageContentProfanityLevel && - other.inputAfterComments == inputAfterComments && - other.limitCommentsByGroups == limitCommentsByGroups && - other.locale == locale && - other.maxCommentCharacterLength == maxCommentCharacterLength && - other.maxCommentCreatedCountPUPM == maxCommentCreatedCountPUPM && - other.noCustomConfig == noCustomConfig && - other.mentionAutoCompleteMode == mentionAutoCompleteMode && - other.noImageUploads == noImageUploads && - other.noStyles == noStyles && - other.pageSize == pageSize && - other.readonly == readonly && - other.noNewRootComments == noNewRootComments && - other.requireSSO == requireSSO && - other.enableResizeHandle == enableResizeHandle && - _deepEquality.equals(other.restrictedLinkDomains, restrictedLinkDomains) && - other.showBadgesInTopBar == showBadgesInTopBar && - other.showCommentSaveSuccess == showCommentSaveSuccess && - other.showLiveRightAway == showLiveRightAway && - other.showQuestion == showQuestion && - _deepEquality.equals(other.spamRules, spamRules) && - other.ssoSecLvl == ssoSecLvl && - _deepEquality.equals(other.translations, translations) && - other.useShowCommentsToggle == useShowCommentsToggle && - other.useSingleLineCommentInput == useSingleLineCommentInput && - other.voteStyle == voteStyle && - other.widgetQuestionId == widgetQuestionId && - other.widgetQuestionResultsStyle == widgetQuestionResultsStyle && - other.widgetQuestionShowBreakdown == widgetQuestionShowBreakdown && - other.widgetQuestionStyle == widgetQuestionStyle && - other.widgetQuestionWhenToSave == widgetQuestionWhenToSave && - other.widgetQuestionsRequired == widgetQuestionsRequired && - other.widgetSubQuestionVisibility == widgetSubQuestionVisibility && - other.wrap == wrap && - other.ticketBaseUrl == ticketBaseUrl && - other.ticketKBSearchEndpoint == ticketKBSearchEndpoint && - other.ticketFileUploadsEnabled == ticketFileUploadsEnabled && - other.ticketMaxFileSize == ticketMaxFileSize && - _deepEquality.equals(other.ticketAutoAssignUserIds, ticketAutoAssignUserIds) && - other.tos == tos; + other.absoluteDates == absoluteDates && + other.allowAnon == allowAnon && + other.allowAnonFlag == allowAnonFlag && + other.allowAnonVotes == allowAnonVotes && + _deepEquality.equals(other.allowedLanguages, allowedLanguages) && + other.collapseReplies == collapseReplies && + other.commentCountFormat == commentCountFormat && + other.commentHTMLRenderingMode == commentHTMLRenderingMode && + other.commentThreadDeleteMode == commentThreadDeleteMode && + other.commenterNameFormat == commenterNameFormat && + other.countAboveToggle == countAboveToggle && + other.customCSS == customCSS && + other.defaultAvatarSrc == defaultAvatarSrc && + other.defaultSortDirection == defaultSortDirection && + other.defaultUsername == defaultUsername && + other.disableAutoAdminMigration == disableAutoAdminMigration && + other.disableAutoHashTagCreation == disableAutoHashTagCreation && + other.disableBlocking == disableBlocking && + other.disableCommenterCommentDelete == disableCommenterCommentDelete && + other.disableCommenterCommentEdit == disableCommenterCommentEdit && + other.disableEmailInputs == disableEmailInputs && + other.disableLiveCommenting == disableLiveCommenting && + other.disableNotificationBell == disableNotificationBell && + other.disableProfileComments == disableProfileComments && + other.disableProfileDirectMessages == disableProfileDirectMessages && + other.disableProfiles == disableProfiles && + other.disableSuccessMessage == disableSuccessMessage && + other.disableToolbar == disableToolbar && + other.disableUnverifiedLabel == disableUnverifiedLabel && + other.disableVoting == disableVoting && + other.enableCommenterLinks == enableCommenterLinks && + other.enableSearch == enableSearch && + other.enableSpoilers == enableSpoilers && + other.enableThirdPartyCookieBypass == enableThirdPartyCookieBypass && + other.enableViewCounts == enableViewCounts && + other.enableVoteList == enableVoteList && + other.enableWYSIWYG == enableWYSIWYG && + other.gifRating == gifRating && + other.hasDarkBackground == hasDarkBackground && + other.headerHTML == headerHTML && + other.hideAvatars == hideAvatars && + other.hideCommentsUnderCountTextFormat == hideCommentsUnderCountTextFormat && + other.imageContentProfanityLevel == imageContentProfanityLevel && + other.inputAfterComments == inputAfterComments && + other.limitCommentsByGroups == limitCommentsByGroups && + other.locale == locale && + other.maxCommentCharacterLength == maxCommentCharacterLength && + other.maxCommentCreatedCountPUPM == maxCommentCreatedCountPUPM && + other.noCustomConfig == noCustomConfig && + other.mentionAutoCompleteMode == mentionAutoCompleteMode && + other.noImageUploads == noImageUploads && + other.allowEmbeds == allowEmbeds && + _deepEquality.equals(other.allowedEmbedDomains, allowedEmbedDomains) && + other.noStyles == noStyles && + other.pageSize == pageSize && + other.readonly == readonly && + other.noNewRootComments == noNewRootComments && + other.requireSSO == requireSSO && + other.enableFChat == enableFChat && + other.enableResizeHandle == enableResizeHandle && + _deepEquality.equals(other.restrictedLinkDomains, restrictedLinkDomains) && + other.showBadgesInTopBar == showBadgesInTopBar && + other.showCommentSaveSuccess == showCommentSaveSuccess && + other.showLiveRightAway == showLiveRightAway && + other.showQuestion == showQuestion && + _deepEquality.equals(other.spamRules, spamRules) && + other.ssoSecLvl == ssoSecLvl && + _deepEquality.equals(other.translations, translations) && + other.useShowCommentsToggle == useShowCommentsToggle && + other.useSingleLineCommentInput == useSingleLineCommentInput && + other.voteStyle == voteStyle && + other.widgetQuestionId == widgetQuestionId && + other.widgetQuestionResultsStyle == widgetQuestionResultsStyle && + other.widgetQuestionShowBreakdown == widgetQuestionShowBreakdown && + other.widgetQuestionStyle == widgetQuestionStyle && + other.widgetQuestionWhenToSave == widgetQuestionWhenToSave && + other.widgetQuestionsRequired == widgetQuestionsRequired && + other.widgetSubQuestionVisibility == widgetSubQuestionVisibility && + other.wrap == wrap && + other.usersListLocation == usersListLocation && + other.usersListIncludeOffline == usersListIncludeOffline && + other.ticketBaseUrl == ticketBaseUrl && + other.ticketKBSearchEndpoint == ticketKBSearchEndpoint && + other.ticketFileUploadsEnabled == ticketFileUploadsEnabled && + other.ticketMaxFileSize == ticketMaxFileSize && + _deepEquality.equals(other.ticketAutoAssignUserIds, ticketAutoAssignUserIds) && + other.tos == tos; + @override int get hashCode => // ignore: unnecessary_parenthesis (absoluteAndRelativeDates == null ? 0 : absoluteAndRelativeDates!.hashCode) + - (absoluteDates == null ? 0 : absoluteDates!.hashCode) + - (allowAnon == null ? 0 : allowAnon!.hashCode) + - (allowAnonFlag == null ? 0 : allowAnonFlag!.hashCode) + - (allowAnonVotes == null ? 0 : allowAnonVotes!.hashCode) + - (allowedLanguages == null ? 0 : allowedLanguages!.hashCode) + - (collapseReplies == null ? 0 : collapseReplies!.hashCode) + - (commentCountFormat == null ? 0 : commentCountFormat!.hashCode) + - (commentHTMLRenderingMode == null ? 0 : commentHTMLRenderingMode!.hashCode) + - (commentThreadDeleteMode == null ? 0 : commentThreadDeleteMode!.hashCode) + - (commenterNameFormat == null ? 0 : commenterNameFormat!.hashCode) + - (countAboveToggle == null ? 0 : countAboveToggle!.hashCode) + - (customCSS == null ? 0 : customCSS!.hashCode) + - (defaultAvatarSrc == null ? 0 : defaultAvatarSrc!.hashCode) + - (defaultSortDirection == null ? 0 : defaultSortDirection!.hashCode) + - (defaultUsername == null ? 0 : defaultUsername!.hashCode) + - (disableAutoAdminMigration == null ? 0 : disableAutoAdminMigration!.hashCode) + - (disableAutoHashTagCreation == null ? 0 : disableAutoHashTagCreation!.hashCode) + - (disableBlocking == null ? 0 : disableBlocking!.hashCode) + - (disableCommenterCommentDelete == null ? 0 : disableCommenterCommentDelete!.hashCode) + - (disableCommenterCommentEdit == null ? 0 : disableCommenterCommentEdit!.hashCode) + - (disableEmailInputs == null ? 0 : disableEmailInputs!.hashCode) + - (disableLiveCommenting == null ? 0 : disableLiveCommenting!.hashCode) + - (disableNotificationBell == null ? 0 : disableNotificationBell!.hashCode) + - (disableProfileComments == null ? 0 : disableProfileComments!.hashCode) + - (disableProfileDirectMessages == null ? 0 : disableProfileDirectMessages!.hashCode) + - (disableProfiles == null ? 0 : disableProfiles!.hashCode) + - (disableSuccessMessage == null ? 0 : disableSuccessMessage!.hashCode) + - (disableToolbar == null ? 0 : disableToolbar!.hashCode) + - (disableUnverifiedLabel == null ? 0 : disableUnverifiedLabel!.hashCode) + - (disableVoting == null ? 0 : disableVoting!.hashCode) + - (enableCommenterLinks == null ? 0 : enableCommenterLinks!.hashCode) + - (enableSearch == null ? 0 : enableSearch!.hashCode) + - (enableSpoilers == null ? 0 : enableSpoilers!.hashCode) + - (enableThirdPartyCookieBypass == null ? 0 : enableThirdPartyCookieBypass!.hashCode) + - (enableViewCounts == null ? 0 : enableViewCounts!.hashCode) + - (enableVoteList == null ? 0 : enableVoteList!.hashCode) + - (enableWYSIWYG == null ? 0 : enableWYSIWYG!.hashCode) + - (gifRating == null ? 0 : gifRating!.hashCode) + - (hasDarkBackground == null ? 0 : hasDarkBackground!.hashCode) + - (headerHTML == null ? 0 : headerHTML!.hashCode) + - (hideAvatars == null ? 0 : hideAvatars!.hashCode) + - (hideCommentsUnderCountTextFormat == null ? 0 : hideCommentsUnderCountTextFormat!.hashCode) + - (imageContentProfanityLevel == null ? 0 : imageContentProfanityLevel!.hashCode) + - (inputAfterComments == null ? 0 : inputAfterComments!.hashCode) + - (limitCommentsByGroups == null ? 0 : limitCommentsByGroups!.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (maxCommentCharacterLength == null ? 0 : maxCommentCharacterLength!.hashCode) + - (maxCommentCreatedCountPUPM == null ? 0 : maxCommentCreatedCountPUPM!.hashCode) + - (noCustomConfig == null ? 0 : noCustomConfig!.hashCode) + - (mentionAutoCompleteMode == null ? 0 : mentionAutoCompleteMode!.hashCode) + - (noImageUploads == null ? 0 : noImageUploads!.hashCode) + - (noStyles == null ? 0 : noStyles!.hashCode) + - (pageSize == null ? 0 : pageSize!.hashCode) + - (readonly == null ? 0 : readonly!.hashCode) + - (noNewRootComments == null ? 0 : noNewRootComments!.hashCode) + - (requireSSO == null ? 0 : requireSSO!.hashCode) + - (enableResizeHandle == null ? 0 : enableResizeHandle!.hashCode) + - (restrictedLinkDomains == null ? 0 : restrictedLinkDomains!.hashCode) + - (showBadgesInTopBar == null ? 0 : showBadgesInTopBar!.hashCode) + - (showCommentSaveSuccess == null ? 0 : showCommentSaveSuccess!.hashCode) + - (showLiveRightAway == null ? 0 : showLiveRightAway!.hashCode) + - (showQuestion == null ? 0 : showQuestion!.hashCode) + - (spamRules.hashCode) + - (ssoSecLvl == null ? 0 : ssoSecLvl!.hashCode) + - (translations == null ? 0 : translations!.hashCode) + - (useShowCommentsToggle == null ? 0 : useShowCommentsToggle!.hashCode) + - (useSingleLineCommentInput == null ? 0 : useSingleLineCommentInput!.hashCode) + - (voteStyle == null ? 0 : voteStyle!.hashCode) + - (widgetQuestionId == null ? 0 : widgetQuestionId!.hashCode) + - (widgetQuestionResultsStyle == null ? 0 : widgetQuestionResultsStyle!.hashCode) + - (widgetQuestionShowBreakdown == null ? 0 : widgetQuestionShowBreakdown!.hashCode) + - (widgetQuestionStyle == null ? 0 : widgetQuestionStyle!.hashCode) + - (widgetQuestionWhenToSave == null ? 0 : widgetQuestionWhenToSave!.hashCode) + - (widgetQuestionsRequired == null ? 0 : widgetQuestionsRequired!.hashCode) + - (widgetSubQuestionVisibility == null ? 0 : widgetSubQuestionVisibility!.hashCode) + - (wrap == null ? 0 : wrap!.hashCode) + - (ticketBaseUrl == null ? 0 : ticketBaseUrl!.hashCode) + - (ticketKBSearchEndpoint == null ? 0 : ticketKBSearchEndpoint!.hashCode) + - (ticketFileUploadsEnabled == null ? 0 : ticketFileUploadsEnabled!.hashCode) + - (ticketMaxFileSize == null ? 0 : ticketMaxFileSize!.hashCode) + - (ticketAutoAssignUserIds.hashCode) + - (tos == null ? 0 : tos!.hashCode); + (absoluteDates == null ? 0 : absoluteDates!.hashCode) + + (allowAnon == null ? 0 : allowAnon!.hashCode) + + (allowAnonFlag == null ? 0 : allowAnonFlag!.hashCode) + + (allowAnonVotes == null ? 0 : allowAnonVotes!.hashCode) + + (allowedLanguages == null ? 0 : allowedLanguages!.hashCode) + + (collapseReplies == null ? 0 : collapseReplies!.hashCode) + + (commentCountFormat == null ? 0 : commentCountFormat!.hashCode) + + (commentHTMLRenderingMode == null ? 0 : commentHTMLRenderingMode!.hashCode) + + (commentThreadDeleteMode == null ? 0 : commentThreadDeleteMode!.hashCode) + + (commenterNameFormat == null ? 0 : commenterNameFormat!.hashCode) + + (countAboveToggle == null ? 0 : countAboveToggle!.hashCode) + + (customCSS == null ? 0 : customCSS!.hashCode) + + (defaultAvatarSrc == null ? 0 : defaultAvatarSrc!.hashCode) + + (defaultSortDirection == null ? 0 : defaultSortDirection!.hashCode) + + (defaultUsername == null ? 0 : defaultUsername!.hashCode) + + (disableAutoAdminMigration == null ? 0 : disableAutoAdminMigration!.hashCode) + + (disableAutoHashTagCreation == null ? 0 : disableAutoHashTagCreation!.hashCode) + + (disableBlocking == null ? 0 : disableBlocking!.hashCode) + + (disableCommenterCommentDelete == null ? 0 : disableCommenterCommentDelete!.hashCode) + + (disableCommenterCommentEdit == null ? 0 : disableCommenterCommentEdit!.hashCode) + + (disableEmailInputs == null ? 0 : disableEmailInputs!.hashCode) + + (disableLiveCommenting == null ? 0 : disableLiveCommenting!.hashCode) + + (disableNotificationBell == null ? 0 : disableNotificationBell!.hashCode) + + (disableProfileComments == null ? 0 : disableProfileComments!.hashCode) + + (disableProfileDirectMessages == null ? 0 : disableProfileDirectMessages!.hashCode) + + (disableProfiles == null ? 0 : disableProfiles!.hashCode) + + (disableSuccessMessage == null ? 0 : disableSuccessMessage!.hashCode) + + (disableToolbar == null ? 0 : disableToolbar!.hashCode) + + (disableUnverifiedLabel == null ? 0 : disableUnverifiedLabel!.hashCode) + + (disableVoting == null ? 0 : disableVoting!.hashCode) + + (enableCommenterLinks == null ? 0 : enableCommenterLinks!.hashCode) + + (enableSearch == null ? 0 : enableSearch!.hashCode) + + (enableSpoilers == null ? 0 : enableSpoilers!.hashCode) + + (enableThirdPartyCookieBypass == null ? 0 : enableThirdPartyCookieBypass!.hashCode) + + (enableViewCounts == null ? 0 : enableViewCounts!.hashCode) + + (enableVoteList == null ? 0 : enableVoteList!.hashCode) + + (enableWYSIWYG == null ? 0 : enableWYSIWYG!.hashCode) + + (gifRating == null ? 0 : gifRating!.hashCode) + + (hasDarkBackground == null ? 0 : hasDarkBackground!.hashCode) + + (headerHTML == null ? 0 : headerHTML!.hashCode) + + (hideAvatars == null ? 0 : hideAvatars!.hashCode) + + (hideCommentsUnderCountTextFormat == null ? 0 : hideCommentsUnderCountTextFormat!.hashCode) + + (imageContentProfanityLevel == null ? 0 : imageContentProfanityLevel!.hashCode) + + (inputAfterComments == null ? 0 : inputAfterComments!.hashCode) + + (limitCommentsByGroups == null ? 0 : limitCommentsByGroups!.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (maxCommentCharacterLength == null ? 0 : maxCommentCharacterLength!.hashCode) + + (maxCommentCreatedCountPUPM == null ? 0 : maxCommentCreatedCountPUPM!.hashCode) + + (noCustomConfig == null ? 0 : noCustomConfig!.hashCode) + + (mentionAutoCompleteMode == null ? 0 : mentionAutoCompleteMode!.hashCode) + + (noImageUploads == null ? 0 : noImageUploads!.hashCode) + + (allowEmbeds == null ? 0 : allowEmbeds!.hashCode) + + (allowedEmbedDomains == null ? 0 : allowedEmbedDomains!.hashCode) + + (noStyles == null ? 0 : noStyles!.hashCode) + + (pageSize == null ? 0 : pageSize!.hashCode) + + (readonly == null ? 0 : readonly!.hashCode) + + (noNewRootComments == null ? 0 : noNewRootComments!.hashCode) + + (requireSSO == null ? 0 : requireSSO!.hashCode) + + (enableFChat == null ? 0 : enableFChat!.hashCode) + + (enableResizeHandle == null ? 0 : enableResizeHandle!.hashCode) + + (restrictedLinkDomains == null ? 0 : restrictedLinkDomains!.hashCode) + + (showBadgesInTopBar == null ? 0 : showBadgesInTopBar!.hashCode) + + (showCommentSaveSuccess == null ? 0 : showCommentSaveSuccess!.hashCode) + + (showLiveRightAway == null ? 0 : showLiveRightAway!.hashCode) + + (showQuestion == null ? 0 : showQuestion!.hashCode) + + (spamRules.hashCode) + + (ssoSecLvl == null ? 0 : ssoSecLvl!.hashCode) + + (translations == null ? 0 : translations!.hashCode) + + (useShowCommentsToggle == null ? 0 : useShowCommentsToggle!.hashCode) + + (useSingleLineCommentInput == null ? 0 : useSingleLineCommentInput!.hashCode) + + (voteStyle == null ? 0 : voteStyle!.hashCode) + + (widgetQuestionId == null ? 0 : widgetQuestionId!.hashCode) + + (widgetQuestionResultsStyle == null ? 0 : widgetQuestionResultsStyle!.hashCode) + + (widgetQuestionShowBreakdown == null ? 0 : widgetQuestionShowBreakdown!.hashCode) + + (widgetQuestionStyle == null ? 0 : widgetQuestionStyle!.hashCode) + + (widgetQuestionWhenToSave == null ? 0 : widgetQuestionWhenToSave!.hashCode) + + (widgetQuestionsRequired == null ? 0 : widgetQuestionsRequired!.hashCode) + + (widgetSubQuestionVisibility == null ? 0 : widgetSubQuestionVisibility!.hashCode) + + (wrap == null ? 0 : wrap!.hashCode) + + (usersListLocation == null ? 0 : usersListLocation!.hashCode) + + (usersListIncludeOffline == null ? 0 : usersListIncludeOffline!.hashCode) + + (ticketBaseUrl == null ? 0 : ticketBaseUrl!.hashCode) + + (ticketKBSearchEndpoint == null ? 0 : ticketKBSearchEndpoint!.hashCode) + + (ticketFileUploadsEnabled == null ? 0 : ticketFileUploadsEnabled!.hashCode) + + (ticketMaxFileSize == null ? 0 : ticketMaxFileSize!.hashCode) + + (ticketAutoAssignUserIds.hashCode) + + (tos == null ? 0 : tos!.hashCode); + @override - String toString() => 'CustomConfigParameters[absoluteAndRelativeDates=$absoluteAndRelativeDates, absoluteDates=$absoluteDates, allowAnon=$allowAnon, allowAnonFlag=$allowAnonFlag, allowAnonVotes=$allowAnonVotes, allowedLanguages=$allowedLanguages, collapseReplies=$collapseReplies, commentCountFormat=$commentCountFormat, commentHTMLRenderingMode=$commentHTMLRenderingMode, commentThreadDeleteMode=$commentThreadDeleteMode, commenterNameFormat=$commenterNameFormat, countAboveToggle=$countAboveToggle, customCSS=$customCSS, defaultAvatarSrc=$defaultAvatarSrc, defaultSortDirection=$defaultSortDirection, defaultUsername=$defaultUsername, disableAutoAdminMigration=$disableAutoAdminMigration, disableAutoHashTagCreation=$disableAutoHashTagCreation, disableBlocking=$disableBlocking, disableCommenterCommentDelete=$disableCommenterCommentDelete, disableCommenterCommentEdit=$disableCommenterCommentEdit, disableEmailInputs=$disableEmailInputs, disableLiveCommenting=$disableLiveCommenting, disableNotificationBell=$disableNotificationBell, disableProfileComments=$disableProfileComments, disableProfileDirectMessages=$disableProfileDirectMessages, disableProfiles=$disableProfiles, disableSuccessMessage=$disableSuccessMessage, disableToolbar=$disableToolbar, disableUnverifiedLabel=$disableUnverifiedLabel, disableVoting=$disableVoting, enableCommenterLinks=$enableCommenterLinks, enableSearch=$enableSearch, enableSpoilers=$enableSpoilers, enableThirdPartyCookieBypass=$enableThirdPartyCookieBypass, enableViewCounts=$enableViewCounts, enableVoteList=$enableVoteList, enableWYSIWYG=$enableWYSIWYG, gifRating=$gifRating, hasDarkBackground=$hasDarkBackground, headerHTML=$headerHTML, hideAvatars=$hideAvatars, hideCommentsUnderCountTextFormat=$hideCommentsUnderCountTextFormat, imageContentProfanityLevel=$imageContentProfanityLevel, inputAfterComments=$inputAfterComments, limitCommentsByGroups=$limitCommentsByGroups, locale=$locale, maxCommentCharacterLength=$maxCommentCharacterLength, maxCommentCreatedCountPUPM=$maxCommentCreatedCountPUPM, noCustomConfig=$noCustomConfig, mentionAutoCompleteMode=$mentionAutoCompleteMode, noImageUploads=$noImageUploads, noStyles=$noStyles, pageSize=$pageSize, readonly=$readonly, noNewRootComments=$noNewRootComments, requireSSO=$requireSSO, enableResizeHandle=$enableResizeHandle, restrictedLinkDomains=$restrictedLinkDomains, showBadgesInTopBar=$showBadgesInTopBar, showCommentSaveSuccess=$showCommentSaveSuccess, showLiveRightAway=$showLiveRightAway, showQuestion=$showQuestion, spamRules=$spamRules, ssoSecLvl=$ssoSecLvl, translations=$translations, useShowCommentsToggle=$useShowCommentsToggle, useSingleLineCommentInput=$useSingleLineCommentInput, voteStyle=$voteStyle, widgetQuestionId=$widgetQuestionId, widgetQuestionResultsStyle=$widgetQuestionResultsStyle, widgetQuestionShowBreakdown=$widgetQuestionShowBreakdown, widgetQuestionStyle=$widgetQuestionStyle, widgetQuestionWhenToSave=$widgetQuestionWhenToSave, widgetQuestionsRequired=$widgetQuestionsRequired, widgetSubQuestionVisibility=$widgetSubQuestionVisibility, wrap=$wrap, ticketBaseUrl=$ticketBaseUrl, ticketKBSearchEndpoint=$ticketKBSearchEndpoint, ticketFileUploadsEnabled=$ticketFileUploadsEnabled, ticketMaxFileSize=$ticketMaxFileSize, ticketAutoAssignUserIds=$ticketAutoAssignUserIds, tos=$tos]'; + String toString() => 'CustomConfigParameters[absoluteAndRelativeDates=$absoluteAndRelativeDates, absoluteDates=$absoluteDates, allowAnon=$allowAnon, allowAnonFlag=$allowAnonFlag, allowAnonVotes=$allowAnonVotes, allowedLanguages=$allowedLanguages, collapseReplies=$collapseReplies, commentCountFormat=$commentCountFormat, commentHTMLRenderingMode=$commentHTMLRenderingMode, commentThreadDeleteMode=$commentThreadDeleteMode, commenterNameFormat=$commenterNameFormat, countAboveToggle=$countAboveToggle, customCSS=$customCSS, defaultAvatarSrc=$defaultAvatarSrc, defaultSortDirection=$defaultSortDirection, defaultUsername=$defaultUsername, disableAutoAdminMigration=$disableAutoAdminMigration, disableAutoHashTagCreation=$disableAutoHashTagCreation, disableBlocking=$disableBlocking, disableCommenterCommentDelete=$disableCommenterCommentDelete, disableCommenterCommentEdit=$disableCommenterCommentEdit, disableEmailInputs=$disableEmailInputs, disableLiveCommenting=$disableLiveCommenting, disableNotificationBell=$disableNotificationBell, disableProfileComments=$disableProfileComments, disableProfileDirectMessages=$disableProfileDirectMessages, disableProfiles=$disableProfiles, disableSuccessMessage=$disableSuccessMessage, disableToolbar=$disableToolbar, disableUnverifiedLabel=$disableUnverifiedLabel, disableVoting=$disableVoting, enableCommenterLinks=$enableCommenterLinks, enableSearch=$enableSearch, enableSpoilers=$enableSpoilers, enableThirdPartyCookieBypass=$enableThirdPartyCookieBypass, enableViewCounts=$enableViewCounts, enableVoteList=$enableVoteList, enableWYSIWYG=$enableWYSIWYG, gifRating=$gifRating, hasDarkBackground=$hasDarkBackground, headerHTML=$headerHTML, hideAvatars=$hideAvatars, hideCommentsUnderCountTextFormat=$hideCommentsUnderCountTextFormat, imageContentProfanityLevel=$imageContentProfanityLevel, inputAfterComments=$inputAfterComments, limitCommentsByGroups=$limitCommentsByGroups, locale=$locale, maxCommentCharacterLength=$maxCommentCharacterLength, maxCommentCreatedCountPUPM=$maxCommentCreatedCountPUPM, noCustomConfig=$noCustomConfig, mentionAutoCompleteMode=$mentionAutoCompleteMode, noImageUploads=$noImageUploads, allowEmbeds=$allowEmbeds, allowedEmbedDomains=$allowedEmbedDomains, noStyles=$noStyles, pageSize=$pageSize, readonly=$readonly, noNewRootComments=$noNewRootComments, requireSSO=$requireSSO, enableFChat=$enableFChat, enableResizeHandle=$enableResizeHandle, restrictedLinkDomains=$restrictedLinkDomains, showBadgesInTopBar=$showBadgesInTopBar, showCommentSaveSuccess=$showCommentSaveSuccess, showLiveRightAway=$showLiveRightAway, showQuestion=$showQuestion, spamRules=$spamRules, ssoSecLvl=$ssoSecLvl, translations=$translations, useShowCommentsToggle=$useShowCommentsToggle, useSingleLineCommentInput=$useSingleLineCommentInput, voteStyle=$voteStyle, widgetQuestionId=$widgetQuestionId, widgetQuestionResultsStyle=$widgetQuestionResultsStyle, widgetQuestionShowBreakdown=$widgetQuestionShowBreakdown, widgetQuestionStyle=$widgetQuestionStyle, widgetQuestionWhenToSave=$widgetQuestionWhenToSave, widgetQuestionsRequired=$widgetQuestionsRequired, widgetSubQuestionVisibility=$widgetSubQuestionVisibility, wrap=$wrap, usersListLocation=$usersListLocation, usersListIncludeOffline=$usersListIncludeOffline, ticketBaseUrl=$ticketBaseUrl, ticketKBSearchEndpoint=$ticketKBSearchEndpoint, ticketFileUploadsEnabled=$ticketFileUploadsEnabled, ticketMaxFileSize=$ticketMaxFileSize, ticketAutoAssignUserIds=$ticketAutoAssignUserIds, tos=$tos]'; Map toJson() { final json = {}; @@ -1087,6 +1138,16 @@ class CustomConfigParameters { } else { json[r'noImageUploads'] = null; } + if (this.allowEmbeds != null) { + json[r'allowEmbeds'] = this.allowEmbeds; + } else { + json[r'allowEmbeds'] = null; + } + if (this.allowedEmbedDomains != null) { + json[r'allowedEmbedDomains'] = this.allowedEmbedDomains; + } else { + json[r'allowedEmbedDomains'] = null; + } if (this.noStyles != null) { json[r'noStyles'] = this.noStyles; } else { @@ -1112,6 +1173,11 @@ class CustomConfigParameters { } else { json[r'requireSSO'] = null; } + if (this.enableFChat != null) { + json[r'enableFChat'] = this.enableFChat; + } else { + json[r'enableFChat'] = null; + } if (this.enableResizeHandle != null) { json[r'enableResizeHandle'] = this.enableResizeHandle; } else { @@ -1208,6 +1274,16 @@ class CustomConfigParameters { } else { json[r'wrap'] = null; } + if (this.usersListLocation != null) { + json[r'usersListLocation'] = this.usersListLocation; + } else { + json[r'usersListLocation'] = null; + } + if (this.usersListIncludeOffline != null) { + json[r'usersListIncludeOffline'] = this.usersListIncludeOffline; + } else { + json[r'usersListIncludeOffline'] = null; + } if (this.ticketBaseUrl != null) { json[r'ticketBaseUrl'] = this.ticketBaseUrl; } else { @@ -1306,11 +1382,16 @@ class CustomConfigParameters { noCustomConfig: mapValueOfType(json, r'noCustomConfig'), mentionAutoCompleteMode: MentionAutoCompleteMode.fromJson(json[r'mentionAutoCompleteMode']), noImageUploads: mapValueOfType(json, r'noImageUploads'), + allowEmbeds: mapValueOfType(json, r'allowEmbeds'), + allowedEmbedDomains: json[r'allowedEmbedDomains'] is Iterable + ? (json[r'allowedEmbedDomains'] as Iterable).cast().toList(growable: false) + : const [], noStyles: mapValueOfType(json, r'noStyles'), pageSize: mapValueOfType(json, r'pageSize'), readonly: mapValueOfType(json, r'readonly'), noNewRootComments: mapValueOfType(json, r'noNewRootComments'), requireSSO: mapValueOfType(json, r'requireSSO'), + enableFChat: mapValueOfType(json, r'enableFChat'), enableResizeHandle: mapValueOfType(json, r'enableResizeHandle'), restrictedLinkDomains: json[r'restrictedLinkDomains'] is Iterable ? (json[r'restrictedLinkDomains'] as Iterable).cast().toList(growable: false) @@ -1333,6 +1414,8 @@ class CustomConfigParameters { widgetQuestionsRequired: CommentQuestionsRequired.fromJson(json[r'widgetQuestionsRequired']), widgetSubQuestionVisibility: QuestionSubQuestionVisibility.fromJson(json[r'widgetSubQuestionVisibility']), wrap: mapValueOfType(json, r'wrap'), + usersListLocation: UsersListLocation.fromJson(json[r'usersListLocation']), + usersListIncludeOffline: mapValueOfType(json, r'usersListIncludeOffline'), ticketBaseUrl: mapValueOfType(json, r'ticketBaseUrl'), ticketKBSearchEndpoint: mapValueOfType(json, r'ticketKBSearchEndpoint'), ticketFileUploadsEnabled: mapValueOfType(json, r'ticketFileUploadsEnabled'), diff --git a/client/lib/model/custom_email_template.dart b/client/lib/model/custom_email_template.dart index fa5f067..399f234 100644 --- a/client/lib/model/custom_email_template.dart +++ b/client/lib/model/custom_email_template.dart @@ -52,31 +52,33 @@ class CustomEmailTemplate { @override bool operator ==(Object other) => identical(this, other) || other is CustomEmailTemplate && other.id == id && - other.tenantId == tenantId && - other.emailTemplateId == emailTemplateId && - other.displayName == displayName && - other.createdAt == createdAt && - other.updatedAt == updatedAt && - other.updatedByUserId == updatedByUserId && - other.domain == domain && - other.ejs == ejs && - _deepEquality.equals(other.translationOverridesByLocale, translationOverridesByLocale) && - other.testData == testData; + other.tenantId == tenantId && + other.emailTemplateId == emailTemplateId && + other.displayName == displayName && + other.createdAt == createdAt && + other.updatedAt == updatedAt && + other.updatedByUserId == updatedByUserId && + other.domain == domain && + other.ejs == ejs && + _deepEquality.equals(other.translationOverridesByLocale, translationOverridesByLocale) && + other.testData == testData; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (emailTemplateId.hashCode) + - (displayName.hashCode) + - (createdAt.hashCode) + - (updatedAt == null ? 0 : updatedAt!.hashCode) + - (updatedByUserId == null ? 0 : updatedByUserId!.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (ejs.hashCode) + - (translationOverridesByLocale.hashCode) + - (testData == null ? 0 : testData!.hashCode); + (tenantId.hashCode) + + (emailTemplateId.hashCode) + + (displayName.hashCode) + + (createdAt.hashCode) + + (updatedAt == null ? 0 : updatedAt!.hashCode) + + (updatedByUserId == null ? 0 : updatedByUserId!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (ejs.hashCode) + + (translationOverridesByLocale.hashCode) + + (testData == null ? 0 : testData!.hashCode); + @override String toString() => 'CustomEmailTemplate[id=$id, tenantId=$tenantId, emailTemplateId=$emailTemplateId, displayName=$displayName, createdAt=$createdAt, updatedAt=$updatedAt, updatedByUserId=$updatedByUserId, domain=$domain, ejs=$ejs, translationOverridesByLocale=$translationOverridesByLocale, testData=$testData]'; @@ -154,7 +156,7 @@ class CustomEmailTemplate { updatedByUserId: mapValueOfType(json, r'updatedByUserId'), domain: mapValueOfType(json, r'domain'), ejs: mapValueOfType(json, r'ejs')!, - translationOverridesByLocale: mapCastOfType(json, r'translationOverridesByLocale')!, + translationOverridesByLocale: ((json[r'translationOverridesByLocale'] as Map?)?.map((k, v) => MapEntry(k as String, (v as Map).cast())))!, testData: mapValueOfType(json, r'testData'), ); } diff --git a/client/lib/model/delete_comment200_response.dart b/client/lib/model/delete_comment200_response.dart deleted file mode 100644 index ee3d494..0000000 --- a/client/lib/model/delete_comment200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DeleteComment200Response { - /// Returns a new [DeleteComment200Response] instance. - DeleteComment200Response({ - required this.action, - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - DeleteCommentAction action; - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeleteComment200Response && - other.action == action && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (action.hashCode) + - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'DeleteComment200Response[action=$action, status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'action'] = this.action; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [DeleteComment200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeleteComment200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'action'), 'Required key "DeleteComment200Response[action]" is missing from JSON.'); - assert(json[r'action'] != null, 'Required key "DeleteComment200Response[action]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "DeleteComment200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeleteComment200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "DeleteComment200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "DeleteComment200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "DeleteComment200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "DeleteComment200Response[code]" has a null value in JSON.'); - return true; - }()); - - return DeleteComment200Response( - action: DeleteCommentAction.fromJson(json[r'action'])!, - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeleteComment200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeleteComment200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeleteComment200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeleteComment200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'action', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/delete_comment_public200_response.dart b/client/lib/model/delete_comment_public200_response.dart deleted file mode 100644 index 5ff17fa..0000000 --- a/client/lib/model/delete_comment_public200_response.dart +++ /dev/null @@ -1,239 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DeleteCommentPublic200Response { - /// Returns a new [DeleteCommentPublic200Response] instance. - DeleteCommentPublic200Response({ - this.comment, - required this.hardRemoved, - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DeletedCommentResultComment? comment; - - bool hardRemoved; - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeleteCommentPublic200Response && - other.comment == comment && - other.hardRemoved == hardRemoved && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (comment == null ? 0 : comment!.hashCode) + - (hardRemoved.hashCode) + - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'DeleteCommentPublic200Response[comment=$comment, hardRemoved=$hardRemoved, status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - if (this.comment != null) { - json[r'comment'] = this.comment; - } else { - json[r'comment'] = null; - } - json[r'hardRemoved'] = this.hardRemoved; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [DeleteCommentPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeleteCommentPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'hardRemoved'), 'Required key "DeleteCommentPublic200Response[hardRemoved]" is missing from JSON.'); - assert(json[r'hardRemoved'] != null, 'Required key "DeleteCommentPublic200Response[hardRemoved]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "DeleteCommentPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeleteCommentPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "DeleteCommentPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "DeleteCommentPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "DeleteCommentPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "DeleteCommentPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return DeleteCommentPublic200Response( - comment: DeletedCommentResultComment.fromJson(json[r'comment']), - hardRemoved: mapValueOfType(json, r'hardRemoved')!, - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeleteCommentPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeleteCommentPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeleteCommentPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeleteCommentPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'hardRemoved', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/delete_comment_result.dart b/client/lib/model/delete_comment_result.dart index e97e159..f6e6edc 100644 --- a/client/lib/model/delete_comment_result.dart +++ b/client/lib/model/delete_comment_result.dart @@ -24,13 +24,15 @@ class DeleteCommentResult { @override bool operator ==(Object other) => identical(this, other) || other is DeleteCommentResult && other.action == action && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (action.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'DeleteCommentResult[action=$action, status=$status]'; diff --git a/client/lib/model/delete_comment_vote200_response.dart b/client/lib/model/delete_comment_vote200_response.dart deleted file mode 100644 index 3ac3cd2..0000000 --- a/client/lib/model/delete_comment_vote200_response.dart +++ /dev/null @@ -1,229 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DeleteCommentVote200Response { - /// Returns a new [DeleteCommentVote200Response] instance. - DeleteCommentVote200Response({ - required this.status, - this.wasPendingVote, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? wasPendingVote; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeleteCommentVote200Response && - other.status == status && - other.wasPendingVote == wasPendingVote && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (wasPendingVote == null ? 0 : wasPendingVote!.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'DeleteCommentVote200Response[status=$status, wasPendingVote=$wasPendingVote, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - if (this.wasPendingVote != null) { - json[r'wasPendingVote'] = this.wasPendingVote; - } else { - json[r'wasPendingVote'] = null; - } - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [DeleteCommentVote200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeleteCommentVote200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "DeleteCommentVote200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeleteCommentVote200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "DeleteCommentVote200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "DeleteCommentVote200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "DeleteCommentVote200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "DeleteCommentVote200Response[code]" has a null value in JSON.'); - return true; - }()); - - return DeleteCommentVote200Response( - status: APIStatus.fromJson(json[r'status'])!, - wasPendingVote: mapValueOfType(json, r'wasPendingVote'), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeleteCommentVote200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeleteCommentVote200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeleteCommentVote200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeleteCommentVote200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/delete_domain_config200_response.dart b/client/lib/model/delete_domain_config_response.dart similarity index 62% rename from client/lib/model/delete_domain_config200_response.dart rename to client/lib/model/delete_domain_config_response.dart index dd654e0..6d12ec2 100644 --- a/client/lib/model/delete_domain_config200_response.dart +++ b/client/lib/model/delete_domain_config_response.dart @@ -10,25 +10,27 @@ part of openapi.api; -class DeleteDomainConfig200Response { - /// Returns a new [DeleteDomainConfig200Response] instance. - DeleteDomainConfig200Response({ +class DeleteDomainConfigResponse { + /// Returns a new [DeleteDomainConfigResponse] instance. + DeleteDomainConfigResponse({ required this.status, }); Object? status; @override - bool operator ==(Object other) => identical(this, other) || other is DeleteDomainConfig200Response && + bool operator ==(Object other) => identical(this, other) || other is DeleteDomainConfigResponse && other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (status == null ? 0 : status!.hashCode); + @override - String toString() => 'DeleteDomainConfig200Response[status=$status]'; + String toString() => 'DeleteDomainConfigResponse[status=$status]'; Map toJson() { final json = {}; @@ -40,10 +42,10 @@ class DeleteDomainConfig200Response { return json; } - /// Returns a new [DeleteDomainConfig200Response] instance and imports its values from + /// Returns a new [DeleteDomainConfigResponse] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static DeleteDomainConfig200Response? fromJson(dynamic value) { + static DeleteDomainConfigResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -51,22 +53,22 @@ class DeleteDomainConfig200Response { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'status'), 'Required key "DeleteDomainConfig200Response[status]" is missing from JSON.'); + assert(json.containsKey(r'status'), 'Required key "DeleteDomainConfigResponse[status]" is missing from JSON.'); return true; }()); - return DeleteDomainConfig200Response( + return DeleteDomainConfigResponse( status: mapValueOfType(json, r'status'), ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = DeleteDomainConfig200Response.fromJson(row); + final value = DeleteDomainConfigResponse.fromJson(row); if (value != null) { result.add(value); } @@ -75,12 +77,12 @@ class DeleteDomainConfig200Response { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = DeleteDomainConfig200Response.fromJson(entry.value); + final value = DeleteDomainConfigResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -89,14 +91,14 @@ class DeleteDomainConfig200Response { return map; } - // maps a json object with a list of DeleteDomainConfig200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of DeleteDomainConfigResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = DeleteDomainConfig200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = DeleteDomainConfigResponse.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/delete_feed_post_public200_response.dart b/client/lib/model/delete_feed_post_public200_response.dart deleted file mode 100644 index 56f527e..0000000 --- a/client/lib/model/delete_feed_post_public200_response.dart +++ /dev/null @@ -1,212 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DeleteFeedPostPublic200Response { - /// Returns a new [DeleteFeedPostPublic200Response] instance. - DeleteFeedPostPublic200Response({ - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeleteFeedPostPublic200Response && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'DeleteFeedPostPublic200Response[status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [DeleteFeedPostPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeleteFeedPostPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "DeleteFeedPostPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeleteFeedPostPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "DeleteFeedPostPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "DeleteFeedPostPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "DeleteFeedPostPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "DeleteFeedPostPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return DeleteFeedPostPublic200Response( - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeleteFeedPostPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeleteFeedPostPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeleteFeedPostPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeleteFeedPostPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/delete_feed_post_public200_response_any_of.dart b/client/lib/model/delete_feed_post_public_response.dart similarity index 58% rename from client/lib/model/delete_feed_post_public200_response_any_of.dart rename to client/lib/model/delete_feed_post_public_response.dart index 6c8907c..410950a 100644 --- a/client/lib/model/delete_feed_post_public200_response_any_of.dart +++ b/client/lib/model/delete_feed_post_public_response.dart @@ -10,25 +10,27 @@ part of openapi.api; -class DeleteFeedPostPublic200ResponseAnyOf { - /// Returns a new [DeleteFeedPostPublic200ResponseAnyOf] instance. - DeleteFeedPostPublic200ResponseAnyOf({ +class DeleteFeedPostPublicResponse { + /// Returns a new [DeleteFeedPostPublicResponse] instance. + DeleteFeedPostPublicResponse({ required this.status, }); APIStatus status; @override - bool operator ==(Object other) => identical(this, other) || other is DeleteFeedPostPublic200ResponseAnyOf && + bool operator ==(Object other) => identical(this, other) || other is DeleteFeedPostPublicResponse && other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode); + @override - String toString() => 'DeleteFeedPostPublic200ResponseAnyOf[status=$status]'; + String toString() => 'DeleteFeedPostPublicResponse[status=$status]'; Map toJson() { final json = {}; @@ -36,10 +38,10 @@ class DeleteFeedPostPublic200ResponseAnyOf { return json; } - /// Returns a new [DeleteFeedPostPublic200ResponseAnyOf] instance and imports its values from + /// Returns a new [DeleteFeedPostPublicResponse] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static DeleteFeedPostPublic200ResponseAnyOf? fromJson(dynamic value) { + static DeleteFeedPostPublicResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -47,23 +49,23 @@ class DeleteFeedPostPublic200ResponseAnyOf { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'status'), 'Required key "DeleteFeedPostPublic200ResponseAnyOf[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeleteFeedPostPublic200ResponseAnyOf[status]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "DeleteFeedPostPublicResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "DeleteFeedPostPublicResponse[status]" has a null value in JSON.'); return true; }()); - return DeleteFeedPostPublic200ResponseAnyOf( + return DeleteFeedPostPublicResponse( status: APIStatus.fromJson(json[r'status'])!, ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = DeleteFeedPostPublic200ResponseAnyOf.fromJson(row); + final value = DeleteFeedPostPublicResponse.fromJson(row); if (value != null) { result.add(value); } @@ -72,12 +74,12 @@ class DeleteFeedPostPublic200ResponseAnyOf { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = DeleteFeedPostPublic200ResponseAnyOf.fromJson(entry.value); + final value = DeleteFeedPostPublicResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -86,14 +88,14 @@ class DeleteFeedPostPublic200ResponseAnyOf { return map; } - // maps a json object with a list of DeleteFeedPostPublic200ResponseAnyOf-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of DeleteFeedPostPublicResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = DeleteFeedPostPublic200ResponseAnyOf.listFromJson(entry.value, growable: growable,); + map[entry.key] = DeleteFeedPostPublicResponse.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/delete_hash_tag_request.dart b/client/lib/model/delete_hash_tag_request_body.dart similarity index 67% rename from client/lib/model/delete_hash_tag_request.dart rename to client/lib/model/delete_hash_tag_request_body.dart index 3677022..28ccc6d 100644 --- a/client/lib/model/delete_hash_tag_request.dart +++ b/client/lib/model/delete_hash_tag_request_body.dart @@ -10,9 +10,9 @@ part of openapi.api; -class DeleteHashTagRequest { - /// Returns a new [DeleteHashTagRequest] instance. - DeleteHashTagRequest({ +class DeleteHashTagRequestBody { + /// Returns a new [DeleteHashTagRequestBody] instance. + DeleteHashTagRequestBody({ this.tenantId, }); @@ -25,16 +25,18 @@ class DeleteHashTagRequest { String? tenantId; @override - bool operator ==(Object other) => identical(this, other) || other is DeleteHashTagRequest && + bool operator ==(Object other) => identical(this, other) || other is DeleteHashTagRequestBody && other.tenantId == tenantId; + @override int get hashCode => // ignore: unnecessary_parenthesis (tenantId == null ? 0 : tenantId!.hashCode); + @override - String toString() => 'DeleteHashTagRequest[tenantId=$tenantId]'; + String toString() => 'DeleteHashTagRequestBody[tenantId=$tenantId]'; Map toJson() { final json = {}; @@ -46,10 +48,10 @@ class DeleteHashTagRequest { return json; } - /// Returns a new [DeleteHashTagRequest] instance and imports its values from + /// Returns a new [DeleteHashTagRequestBody] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static DeleteHashTagRequest? fromJson(dynamic value) { + static DeleteHashTagRequestBody? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -60,18 +62,18 @@ class DeleteHashTagRequest { return true; }()); - return DeleteHashTagRequest( + return DeleteHashTagRequestBody( tenantId: mapValueOfType(json, r'tenantId'), ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = DeleteHashTagRequest.fromJson(row); + final value = DeleteHashTagRequestBody.fromJson(row); if (value != null) { result.add(value); } @@ -80,12 +82,12 @@ class DeleteHashTagRequest { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = DeleteHashTagRequest.fromJson(entry.value); + final value = DeleteHashTagRequestBody.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -94,14 +96,14 @@ class DeleteHashTagRequest { return map; } - // maps a json object with a list of DeleteHashTagRequest-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of DeleteHashTagRequestBody-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = DeleteHashTagRequest.listFromJson(entry.value, growable: growable,); + map[entry.key] = DeleteHashTagRequestBody.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/delete_page_api_response.dart b/client/lib/model/delete_page_api_response.dart index 7426423..b51b32f 100644 --- a/client/lib/model/delete_page_api_response.dart +++ b/client/lib/model/delete_page_api_response.dart @@ -39,15 +39,17 @@ class DeletePageAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is DeletePageAPIResponse && other.reason == reason && - other.code == code && - other.status == status; + other.code == code && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (status.hashCode); + @override String toString() => 'DeletePageAPIResponse[reason=$reason, code=$code, status=$status]'; diff --git a/client/lib/model/delete_sso_user_api_response.dart b/client/lib/model/delete_sso_user_api_response.dart index 89f4367..47236bc 100644 --- a/client/lib/model/delete_sso_user_api_response.dart +++ b/client/lib/model/delete_sso_user_api_response.dart @@ -48,17 +48,19 @@ class DeleteSSOUserAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is DeleteSSOUserAPIResponse && other.reason == reason && - other.code == code && - other.user == user && - other.status == status; + other.code == code && + other.user == user && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (user == null ? 0 : user!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (user == null ? 0 : user!.hashCode) + + (status.hashCode); + @override String toString() => 'DeleteSSOUserAPIResponse[reason=$reason, code=$code, user=$user, status=$status]'; diff --git a/client/lib/model/delete_subscription_api_response.dart b/client/lib/model/delete_subscription_api_response.dart index 71b4e4f..e127ed2 100644 --- a/client/lib/model/delete_subscription_api_response.dart +++ b/client/lib/model/delete_subscription_api_response.dart @@ -39,15 +39,17 @@ class DeleteSubscriptionAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is DeleteSubscriptionAPIResponse && other.reason == reason && - other.code == code && - other.status == status; + other.code == code && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (status.hashCode); + @override String toString() => 'DeleteSubscriptionAPIResponse[reason=$reason, code=$code, status=$status]'; diff --git a/client/lib/model/deleted_comment_result_comment.dart b/client/lib/model/deleted_comment_result_comment.dart index 9c28495..334727e 100644 --- a/client/lib/model/deleted_comment_result_comment.dart +++ b/client/lib/model/deleted_comment_result_comment.dart @@ -36,17 +36,19 @@ class DeletedCommentResultComment { @override bool operator ==(Object other) => identical(this, other) || other is DeletedCommentResultComment && other.isDeleted == isDeleted && - other.commentHTML == commentHTML && - other.commenterName == commenterName && - other.userId == userId; + other.commentHTML == commentHTML && + other.commenterName == commenterName && + other.userId == userId; + @override int get hashCode => // ignore: unnecessary_parenthesis (isDeleted == null ? 0 : isDeleted!.hashCode) + - (commentHTML.hashCode) + - (commenterName.hashCode) + - (userId == null ? 0 : userId!.hashCode); + (commentHTML.hashCode) + + (commenterName.hashCode) + + (userId == null ? 0 : userId!.hashCode); + @override String toString() => 'DeletedCommentResultComment[isDeleted=$isDeleted, commentHTML=$commentHTML, commenterName=$commenterName, userId=$userId]'; diff --git a/client/lib/model/email_template_definition.dart b/client/lib/model/email_template_definition.dart index 24efa3b..d1b5e7e 100644 --- a/client/lib/model/email_template_definition.dart +++ b/client/lib/model/email_template_definition.dart @@ -32,17 +32,19 @@ class EmailTemplateDefinition { @override bool operator ==(Object other) => identical(this, other) || other is EmailTemplateDefinition && other.emailTemplateId == emailTemplateId && - _deepEquality.equals(other.defaultTestData, defaultTestData) && - _deepEquality.equals(other.defaultTranslationsByLocale, defaultTranslationsByLocale) && - other.defaultEJS == defaultEJS; + _deepEquality.equals(other.defaultTestData, defaultTestData) && + _deepEquality.equals(other.defaultTranslationsByLocale, defaultTranslationsByLocale) && + other.defaultEJS == defaultEJS; + @override int get hashCode => // ignore: unnecessary_parenthesis (emailTemplateId.hashCode) + - (defaultTestData.hashCode) + - (defaultTranslationsByLocale.hashCode) + - (defaultEJS.hashCode); + (defaultTestData.hashCode) + + (defaultTranslationsByLocale.hashCode) + + (defaultEJS.hashCode); + @override String toString() => 'EmailTemplateDefinition[emailTemplateId=$emailTemplateId, defaultTestData=$defaultTestData, defaultTranslationsByLocale=$defaultTranslationsByLocale, defaultEJS=$defaultEJS]'; @@ -81,7 +83,7 @@ class EmailTemplateDefinition { return EmailTemplateDefinition( emailTemplateId: mapValueOfType(json, r'emailTemplateId')!, defaultTestData: mapCastOfType(json, r'defaultTestData')!, - defaultTranslationsByLocale: mapCastOfType(json, r'defaultTranslationsByLocale')!, + defaultTranslationsByLocale: ((json[r'defaultTranslationsByLocale'] as Map?)?.map((k, v) => MapEntry(k as String, (v as Map).cast())))!, defaultEJS: mapValueOfType(json, r'defaultEJS')!, ); } diff --git a/client/lib/model/email_template_render_error_response.dart b/client/lib/model/email_template_render_error_response.dart index d89d739..b5ecdb8 100644 --- a/client/lib/model/email_template_render_error_response.dart +++ b/client/lib/model/email_template_render_error_response.dart @@ -39,23 +39,25 @@ class EmailTemplateRenderErrorResponse { @override bool operator ==(Object other) => identical(this, other) || other is EmailTemplateRenderErrorResponse && other.id == id && - other.tenantId == tenantId && - other.customTemplateId == customTemplateId && - other.error == error && - other.count == count && - other.createdAt == createdAt && - other.lastOccurredAt == lastOccurredAt; + other.tenantId == tenantId && + other.customTemplateId == customTemplateId && + other.error == error && + other.count == count && + other.createdAt == createdAt && + other.lastOccurredAt == lastOccurredAt; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (customTemplateId.hashCode) + - (error.hashCode) + - (count.hashCode) + - (createdAt.hashCode) + - (lastOccurredAt.hashCode); + (tenantId.hashCode) + + (customTemplateId.hashCode) + + (error.hashCode) + + (count.hashCode) + + (createdAt.hashCode) + + (lastOccurredAt.hashCode); + @override String toString() => 'EmailTemplateRenderErrorResponse[id=$id, tenantId=$tenantId, customTemplateId=$customTemplateId, error=$error, count=$count, createdAt=$createdAt, lastOccurredAt=$lastOccurredAt]'; diff --git a/client/lib/model/event_log_entry.dart b/client/lib/model/event_log_entry.dart index 18c558c..7b91485 100644 --- a/client/lib/model/event_log_entry.dart +++ b/client/lib/model/event_log_entry.dart @@ -36,21 +36,23 @@ class EventLogEntry { @override bool operator ==(Object other) => identical(this, other) || other is EventLogEntry && other.id == id && - other.createdAt == createdAt && - other.tenantId == tenantId && - other.urlId == urlId && - other.broadcastId == broadcastId && - other.data == data; + other.createdAt == createdAt && + other.tenantId == tenantId && + other.urlId == urlId && + other.broadcastId == broadcastId && + other.data == data; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (createdAt.hashCode) + - (tenantId.hashCode) + - (urlId.hashCode) + - (broadcastId.hashCode) + - (data.hashCode); + (createdAt.hashCode) + + (tenantId.hashCode) + + (urlId.hashCode) + + (broadcastId.hashCode) + + (data.hashCode); + @override String toString() => 'EventLogEntry[id=$id, createdAt=$createdAt, tenantId=$tenantId, urlId=$urlId, broadcastId=$broadcastId, data=$data]'; diff --git a/client/lib/model/f_comment.dart b/client/lib/model/f_comment.dart index 89b9a58..646d8b0 100644 --- a/client/lib/model/f_comment.dart +++ b/client/lib/model/f_comment.dart @@ -405,155 +405,157 @@ class FComment { @override bool operator ==(Object other) => identical(this, other) || other is FComment && other.id == id && - other.tenantId == tenantId && - other.urlId == urlId && - other.urlIdRaw == urlIdRaw && - other.url == url && - other.pageTitle == pageTitle && - other.userId == userId && - other.anonUserId == anonUserId && - other.commenterEmail == commenterEmail && - other.commenterName == commenterName && - other.commenterLink == commenterLink && - other.comment == comment && - other.commentHTML == commentHTML && - other.parentId == parentId && - other.date == date && - other.localDateString == localDateString && - other.localDateHours == localDateHours && - other.votes == votes && - other.votesUp == votesUp && - other.votesDown == votesDown && - other.expireAt == expireAt && - other.verified == verified && - other.verifiedDate == verifiedDate && - other.verificationId == verificationId && - other.notificationSentForParent == notificationSentForParent && - other.notificationSentForParentTenant == notificationSentForParentTenant && - other.reviewed == reviewed && - other.imported == imported && - other.externalId == externalId && - other.externalParentId == externalParentId && - other.avatarSrc == avatarSrc && - other.isSpam == isSpam && - other.permNotSpam == permNotSpam && - other.aiDeterminedSpam == aiDeterminedSpam && - other.hasImages == hasImages && - other.pageNumber == pageNumber && - other.pageNumberOF == pageNumberOF && - other.pageNumberNF == pageNumberNF && - other.hasLinks == hasLinks && - other.hasCode == hasCode && - other.approved == approved && - other.locale == locale && - other.isDeleted == isDeleted && - other.isDeletedUser == isDeletedUser && - other.isBannedUser == isBannedUser && - other.isByAdmin == isByAdmin && - other.isByModerator == isByModerator && - other.isPinned == isPinned && - other.isLocked == isLocked && - other.flagCount == flagCount && - other.rating == rating && - other.displayLabel == displayLabel && - other.fromProductId == fromProductId && - other.meta == meta && - other.ipHash == ipHash && - _deepEquality.equals(other.mentions, mentions) && - _deepEquality.equals(other.hashTags, hashTags) && - _deepEquality.equals(other.badges, badges) && - other.domain == domain && - other.veteranBadgeProcessed == veteranBadgeProcessed && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && - other.didProcessBadges == didProcessBadges && - other.fromOfflineRestore == fromOfflineRestore && - other.autoplayJobId == autoplayJobId && - other.autoplayDelayMS == autoplayDelayMS && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - _deepEquality.equals(other.logs, logs) && - _deepEquality.equals(other.groupIds, groupIds) && - other.viewCount == viewCount && - other.requiresVerification == requiresVerification && - other.editKey == editKey && - other.tosAcceptedAt == tosAcceptedAt && - other.botId == botId; + other.tenantId == tenantId && + other.urlId == urlId && + other.urlIdRaw == urlIdRaw && + other.url == url && + other.pageTitle == pageTitle && + other.userId == userId && + other.anonUserId == anonUserId && + other.commenterEmail == commenterEmail && + other.commenterName == commenterName && + other.commenterLink == commenterLink && + other.comment == comment && + other.commentHTML == commentHTML && + other.parentId == parentId && + other.date == date && + other.localDateString == localDateString && + other.localDateHours == localDateHours && + other.votes == votes && + other.votesUp == votesUp && + other.votesDown == votesDown && + other.expireAt == expireAt && + other.verified == verified && + other.verifiedDate == verifiedDate && + other.verificationId == verificationId && + other.notificationSentForParent == notificationSentForParent && + other.notificationSentForParentTenant == notificationSentForParentTenant && + other.reviewed == reviewed && + other.imported == imported && + other.externalId == externalId && + other.externalParentId == externalParentId && + other.avatarSrc == avatarSrc && + other.isSpam == isSpam && + other.permNotSpam == permNotSpam && + other.aiDeterminedSpam == aiDeterminedSpam && + other.hasImages == hasImages && + other.pageNumber == pageNumber && + other.pageNumberOF == pageNumberOF && + other.pageNumberNF == pageNumberNF && + other.hasLinks == hasLinks && + other.hasCode == hasCode && + other.approved == approved && + other.locale == locale && + other.isDeleted == isDeleted && + other.isDeletedUser == isDeletedUser && + other.isBannedUser == isBannedUser && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.flagCount == flagCount && + other.rating == rating && + other.displayLabel == displayLabel && + other.fromProductId == fromProductId && + other.meta == meta && + other.ipHash == ipHash && + _deepEquality.equals(other.mentions, mentions) && + _deepEquality.equals(other.hashTags, hashTags) && + _deepEquality.equals(other.badges, badges) && + other.domain == domain && + other.veteranBadgeProcessed == veteranBadgeProcessed && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && + other.didProcessBadges == didProcessBadges && + other.fromOfflineRestore == fromOfflineRestore && + other.autoplayJobId == autoplayJobId && + other.autoplayDelayMS == autoplayDelayMS && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + _deepEquality.equals(other.logs, logs) && + _deepEquality.equals(other.groupIds, groupIds) && + other.viewCount == viewCount && + other.requiresVerification == requiresVerification && + other.editKey == editKey && + other.tosAcceptedAt == tosAcceptedAt && + other.botId == botId; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (urlId.hashCode) + - (urlIdRaw == null ? 0 : urlIdRaw!.hashCode) + - (url.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (commenterEmail == null ? 0 : commenterEmail!.hashCode) + - (commenterName.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (comment.hashCode) + - (commentHTML.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (date == null ? 0 : date!.hashCode) + - (localDateString == null ? 0 : localDateString!.hashCode) + - (localDateHours == null ? 0 : localDateHours!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (expireAt == null ? 0 : expireAt!.hashCode) + - (verified.hashCode) + - (verifiedDate == null ? 0 : verifiedDate!.hashCode) + - (verificationId == null ? 0 : verificationId!.hashCode) + - (notificationSentForParent == null ? 0 : notificationSentForParent!.hashCode) + - (notificationSentForParentTenant == null ? 0 : notificationSentForParentTenant!.hashCode) + - (reviewed == null ? 0 : reviewed!.hashCode) + - (imported == null ? 0 : imported!.hashCode) + - (externalId == null ? 0 : externalId!.hashCode) + - (externalParentId == null ? 0 : externalParentId!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (isSpam == null ? 0 : isSpam!.hashCode) + - (permNotSpam == null ? 0 : permNotSpam!.hashCode) + - (aiDeterminedSpam == null ? 0 : aiDeterminedSpam!.hashCode) + - (hasImages == null ? 0 : hasImages!.hashCode) + - (pageNumber == null ? 0 : pageNumber!.hashCode) + - (pageNumberOF == null ? 0 : pageNumberOF!.hashCode) + - (pageNumberNF == null ? 0 : pageNumberNF!.hashCode) + - (hasLinks == null ? 0 : hasLinks!.hashCode) + - (hasCode == null ? 0 : hasCode!.hashCode) + - (approved.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (isBannedUser == null ? 0 : isBannedUser!.hashCode) + - (isByAdmin == null ? 0 : isByAdmin!.hashCode) + - (isByModerator == null ? 0 : isByModerator!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (isLocked == null ? 0 : isLocked!.hashCode) + - (flagCount == null ? 0 : flagCount!.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (fromProductId == null ? 0 : fromProductId!.hashCode) + - (meta == null ? 0 : meta!.hashCode) + - (ipHash == null ? 0 : ipHash!.hashCode) + - (mentions.hashCode) + - (hashTags.hashCode) + - (badges == null ? 0 : badges!.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (veteranBadgeProcessed == null ? 0 : veteranBadgeProcessed!.hashCode) + - (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + - (didProcessBadges == null ? 0 : didProcessBadges!.hashCode) + - (fromOfflineRestore == null ? 0 : fromOfflineRestore!.hashCode) + - (autoplayJobId == null ? 0 : autoplayJobId!.hashCode) + - (autoplayDelayMS == null ? 0 : autoplayDelayMS!.hashCode) + - (feedbackIds.hashCode) + - (logs == null ? 0 : logs!.hashCode) + - (groupIds == null ? 0 : groupIds!.hashCode) + - (viewCount == null ? 0 : viewCount!.hashCode) + - (requiresVerification == null ? 0 : requiresVerification!.hashCode) + - (editKey == null ? 0 : editKey!.hashCode) + - (tosAcceptedAt == null ? 0 : tosAcceptedAt!.hashCode) + - (botId == null ? 0 : botId!.hashCode); + (tenantId.hashCode) + + (urlId.hashCode) + + (urlIdRaw == null ? 0 : urlIdRaw!.hashCode) + + (url.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (commenterEmail == null ? 0 : commenterEmail!.hashCode) + + (commenterName.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (comment.hashCode) + + (commentHTML.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (date == null ? 0 : date!.hashCode) + + (localDateString == null ? 0 : localDateString!.hashCode) + + (localDateHours == null ? 0 : localDateHours!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (expireAt == null ? 0 : expireAt!.hashCode) + + (verified.hashCode) + + (verifiedDate == null ? 0 : verifiedDate!.hashCode) + + (verificationId == null ? 0 : verificationId!.hashCode) + + (notificationSentForParent == null ? 0 : notificationSentForParent!.hashCode) + + (notificationSentForParentTenant == null ? 0 : notificationSentForParentTenant!.hashCode) + + (reviewed == null ? 0 : reviewed!.hashCode) + + (imported == null ? 0 : imported!.hashCode) + + (externalId == null ? 0 : externalId!.hashCode) + + (externalParentId == null ? 0 : externalParentId!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (permNotSpam == null ? 0 : permNotSpam!.hashCode) + + (aiDeterminedSpam == null ? 0 : aiDeterminedSpam!.hashCode) + + (hasImages == null ? 0 : hasImages!.hashCode) + + (pageNumber == null ? 0 : pageNumber!.hashCode) + + (pageNumberOF == null ? 0 : pageNumberOF!.hashCode) + + (pageNumberNF == null ? 0 : pageNumberNF!.hashCode) + + (hasLinks == null ? 0 : hasLinks!.hashCode) + + (hasCode == null ? 0 : hasCode!.hashCode) + + (approved.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode) + + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (isBannedUser == null ? 0 : isBannedUser!.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (flagCount == null ? 0 : flagCount!.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (fromProductId == null ? 0 : fromProductId!.hashCode) + + (meta == null ? 0 : meta!.hashCode) + + (ipHash == null ? 0 : ipHash!.hashCode) + + (mentions.hashCode) + + (hashTags.hashCode) + + (badges == null ? 0 : badges!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (veteranBadgeProcessed == null ? 0 : veteranBadgeProcessed!.hashCode) + + (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + + (didProcessBadges == null ? 0 : didProcessBadges!.hashCode) + + (fromOfflineRestore == null ? 0 : fromOfflineRestore!.hashCode) + + (autoplayJobId == null ? 0 : autoplayJobId!.hashCode) + + (autoplayDelayMS == null ? 0 : autoplayDelayMS!.hashCode) + + (feedbackIds.hashCode) + + (logs == null ? 0 : logs!.hashCode) + + (groupIds == null ? 0 : groupIds!.hashCode) + + (viewCount == null ? 0 : viewCount!.hashCode) + + (requiresVerification == null ? 0 : requiresVerification!.hashCode) + + (editKey == null ? 0 : editKey!.hashCode) + + (tosAcceptedAt == null ? 0 : tosAcceptedAt!.hashCode) + + (botId == null ? 0 : botId!.hashCode); + @override String toString() => 'FComment[id=$id, tenantId=$tenantId, urlId=$urlId, urlIdRaw=$urlIdRaw, url=$url, pageTitle=$pageTitle, userId=$userId, anonUserId=$anonUserId, commenterEmail=$commenterEmail, commenterName=$commenterName, commenterLink=$commenterLink, comment=$comment, commentHTML=$commentHTML, parentId=$parentId, date=$date, localDateString=$localDateString, localDateHours=$localDateHours, votes=$votes, votesUp=$votesUp, votesDown=$votesDown, expireAt=$expireAt, verified=$verified, verifiedDate=$verifiedDate, verificationId=$verificationId, notificationSentForParent=$notificationSentForParent, notificationSentForParentTenant=$notificationSentForParentTenant, reviewed=$reviewed, imported=$imported, externalId=$externalId, externalParentId=$externalParentId, avatarSrc=$avatarSrc, isSpam=$isSpam, permNotSpam=$permNotSpam, aiDeterminedSpam=$aiDeterminedSpam, hasImages=$hasImages, pageNumber=$pageNumber, pageNumberOF=$pageNumberOF, pageNumberNF=$pageNumberNF, hasLinks=$hasLinks, hasCode=$hasCode, approved=$approved, locale=$locale, isDeleted=$isDeleted, isDeletedUser=$isDeletedUser, isBannedUser=$isBannedUser, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isPinned=$isPinned, isLocked=$isLocked, flagCount=$flagCount, rating=$rating, displayLabel=$displayLabel, fromProductId=$fromProductId, meta=$meta, ipHash=$ipHash, mentions=$mentions, hashTags=$hashTags, badges=$badges, domain=$domain, veteranBadgeProcessed=$veteranBadgeProcessed, moderationGroupIds=$moderationGroupIds, didProcessBadges=$didProcessBadges, fromOfflineRestore=$fromOfflineRestore, autoplayJobId=$autoplayJobId, autoplayDelayMS=$autoplayDelayMS, feedbackIds=$feedbackIds, logs=$logs, groupIds=$groupIds, viewCount=$viewCount, requiresVerification=$requiresVerification, editKey=$editKey, tosAcceptedAt=$tosAcceptedAt, botId=$botId]'; diff --git a/client/lib/model/f_comment_meta.dart b/client/lib/model/f_comment_meta.dart index 074e6cf..d9c27a5 100644 --- a/client/lib/model/f_comment_meta.dart +++ b/client/lib/model/f_comment_meta.dart @@ -45,15 +45,17 @@ class FCommentMeta { @override bool operator ==(Object other) => identical(this, other) || other is FCommentMeta && other.wpId == wpId && - other.wpUserId == wpUserId && - other.wpPostId == wpPostId; + other.wpUserId == wpUserId && + other.wpPostId == wpPostId; + @override int get hashCode => // ignore: unnecessary_parenthesis (wpId == null ? 0 : wpId!.hashCode) + - (wpUserId == null ? 0 : wpUserId!.hashCode) + - (wpPostId == null ? 0 : wpPostId!.hashCode); + (wpUserId == null ? 0 : wpUserId!.hashCode) + + (wpPostId == null ? 0 : wpPostId!.hashCode); + @override String toString() => 'FCommentMeta[wpId=$wpId, wpUserId=$wpUserId, wpPostId=$wpPostId]'; diff --git a/client/lib/model/feed_post.dart b/client/lib/model/feed_post.dart index f323a43..7723040 100644 --- a/client/lib/model/feed_post.dart +++ b/client/lib/model/feed_post.dart @@ -97,41 +97,43 @@ class FeedPost { @override bool operator ==(Object other) => identical(this, other) || other is FeedPost && other.id == id && - other.tenantId == tenantId && - other.title == title && - other.fromUserId == fromUserId && - other.fromUserDisplayName == fromUserDisplayName && - other.fromUserAvatar == fromUserAvatar && - other.fromIpHash == fromIpHash && - _deepEquality.equals(other.tags, tags) && - other.weight == weight && - _deepEquality.equals(other.meta, meta) && - other.contentHTML == contentHTML && - _deepEquality.equals(other.media, media) && - _deepEquality.equals(other.links, links) && - other.createdAt == createdAt && - _deepEquality.equals(other.reacts, reacts) && - other.commentCount == commentCount; + other.tenantId == tenantId && + other.title == title && + other.fromUserId == fromUserId && + other.fromUserDisplayName == fromUserDisplayName && + other.fromUserAvatar == fromUserAvatar && + other.fromIpHash == fromIpHash && + _deepEquality.equals(other.tags, tags) && + other.weight == weight && + _deepEquality.equals(other.meta, meta) && + other.contentHTML == contentHTML && + _deepEquality.equals(other.media, media) && + _deepEquality.equals(other.links, links) && + other.createdAt == createdAt && + _deepEquality.equals(other.reacts, reacts) && + other.commentCount == commentCount; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (title == null ? 0 : title!.hashCode) + - (fromUserId == null ? 0 : fromUserId!.hashCode) + - (fromUserDisplayName == null ? 0 : fromUserDisplayName!.hashCode) + - (fromUserAvatar == null ? 0 : fromUserAvatar!.hashCode) + - (fromIpHash == null ? 0 : fromIpHash!.hashCode) + - (tags.hashCode) + - (weight == null ? 0 : weight!.hashCode) + - (meta.hashCode) + - (contentHTML == null ? 0 : contentHTML!.hashCode) + - (media.hashCode) + - (links.hashCode) + - (createdAt.hashCode) + - (reacts.hashCode) + - (commentCount == null ? 0 : commentCount!.hashCode); + (tenantId.hashCode) + + (title == null ? 0 : title!.hashCode) + + (fromUserId == null ? 0 : fromUserId!.hashCode) + + (fromUserDisplayName == null ? 0 : fromUserDisplayName!.hashCode) + + (fromUserAvatar == null ? 0 : fromUserAvatar!.hashCode) + + (fromIpHash == null ? 0 : fromIpHash!.hashCode) + + (tags.hashCode) + + (weight == null ? 0 : weight!.hashCode) + + (meta.hashCode) + + (contentHTML == null ? 0 : contentHTML!.hashCode) + + (media.hashCode) + + (links.hashCode) + + (createdAt.hashCode) + + (reacts.hashCode) + + (commentCount == null ? 0 : commentCount!.hashCode); + @override String toString() => 'FeedPost[id=$id, tenantId=$tenantId, title=$title, fromUserId=$fromUserId, fromUserDisplayName=$fromUserDisplayName, fromUserAvatar=$fromUserAvatar, fromIpHash=$fromIpHash, tags=$tags, weight=$weight, meta=$meta, contentHTML=$contentHTML, media=$media, links=$links, createdAt=$createdAt, reacts=$reacts, commentCount=$commentCount]'; diff --git a/client/lib/model/feed_post_link.dart b/client/lib/model/feed_post_link.dart index 1c04498..5781301 100644 --- a/client/lib/model/feed_post_link.dart +++ b/client/lib/model/feed_post_link.dart @@ -54,17 +54,19 @@ class FeedPostLink { @override bool operator ==(Object other) => identical(this, other) || other is FeedPostLink && other.text == text && - other.title == title && - other.description == description && - other.url == url; + other.title == title && + other.description == description && + other.url == url; + @override int get hashCode => // ignore: unnecessary_parenthesis (text == null ? 0 : text!.hashCode) + - (title == null ? 0 : title!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (url == null ? 0 : url!.hashCode); + (title == null ? 0 : title!.hashCode) + + (description == null ? 0 : description!.hashCode) + + (url == null ? 0 : url!.hashCode); + @override String toString() => 'FeedPostLink[text=$text, title=$title, description=$description, url=$url]'; diff --git a/client/lib/model/feed_post_media_item.dart b/client/lib/model/feed_post_media_item.dart index 2e8be19..2d29234 100644 --- a/client/lib/model/feed_post_media_item.dart +++ b/client/lib/model/feed_post_media_item.dart @@ -39,15 +39,17 @@ class FeedPostMediaItem { @override bool operator ==(Object other) => identical(this, other) || other is FeedPostMediaItem && other.title == title && - other.linkUrl == linkUrl && - _deepEquality.equals(other.sizes, sizes); + other.linkUrl == linkUrl && + _deepEquality.equals(other.sizes, sizes); + @override int get hashCode => // ignore: unnecessary_parenthesis (title == null ? 0 : title!.hashCode) + - (linkUrl == null ? 0 : linkUrl!.hashCode) + - (sizes.hashCode); + (linkUrl == null ? 0 : linkUrl!.hashCode) + + (sizes.hashCode); + @override String toString() => 'FeedPostMediaItem[title=$title, linkUrl=$linkUrl, sizes=$sizes]'; diff --git a/client/lib/model/feed_post_media_item_asset.dart b/client/lib/model/feed_post_media_item_asset.dart index ada1922..0e192ee 100644 --- a/client/lib/model/feed_post_media_item_asset.dart +++ b/client/lib/model/feed_post_media_item_asset.dart @@ -27,15 +27,17 @@ class FeedPostMediaItemAsset { @override bool operator ==(Object other) => identical(this, other) || other is FeedPostMediaItemAsset && other.w == w && - other.h == h && - other.src == src; + other.h == h && + other.src == src; + @override int get hashCode => // ignore: unnecessary_parenthesis (w.hashCode) + - (h.hashCode) + - (src.hashCode); + (h.hashCode) + + (src.hashCode); + @override String toString() => 'FeedPostMediaItemAsset[w=$w, h=$h, src=$src]'; diff --git a/client/lib/model/feed_post_stats.dart b/client/lib/model/feed_post_stats.dart index 3e541ad..4a8db26 100644 --- a/client/lib/model/feed_post_stats.dart +++ b/client/lib/model/feed_post_stats.dart @@ -30,13 +30,15 @@ class FeedPostStats { @override bool operator ==(Object other) => identical(this, other) || other is FeedPostStats && _deepEquality.equals(other.reacts, reacts) && - other.commentCount == commentCount; + other.commentCount == commentCount; + @override int get hashCode => // ignore: unnecessary_parenthesis (reacts.hashCode) + - (commentCount == null ? 0 : commentCount!.hashCode); + (commentCount == null ? 0 : commentCount!.hashCode); + @override String toString() => 'FeedPostStats[reacts=$reacts, commentCount=$commentCount]'; diff --git a/client/lib/model/feed_posts_stats_response.dart b/client/lib/model/feed_posts_stats_response.dart index 196f075..2c445f6 100644 --- a/client/lib/model/feed_posts_stats_response.dart +++ b/client/lib/model/feed_posts_stats_response.dart @@ -24,13 +24,15 @@ class FeedPostsStatsResponse { @override bool operator ==(Object other) => identical(this, other) || other is FeedPostsStatsResponse && other.status == status && - _deepEquality.equals(other.stats, stats); + _deepEquality.equals(other.stats, stats); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (stats.hashCode); + (stats.hashCode); + @override String toString() => 'FeedPostsStatsResponse[status=$status, stats=$stats]'; diff --git a/client/lib/model/find_comments_by_range_item.dart b/client/lib/model/find_comments_by_range_item.dart index 487aed4..eb2c1b0 100644 --- a/client/lib/model/find_comments_by_range_item.dart +++ b/client/lib/model/find_comments_by_range_item.dart @@ -24,13 +24,15 @@ class FindCommentsByRangeItem { @override bool operator ==(Object other) => identical(this, other) || other is FindCommentsByRangeItem && other.comment == comment && - other.result == result; + other.result == result; + @override int get hashCode => // ignore: unnecessary_parenthesis (comment == null ? 0 : comment!.hashCode) + - (result.hashCode); + (result.hashCode); + @override String toString() => 'FindCommentsByRangeItem[comment=$comment, result=$result]'; diff --git a/client/lib/model/find_comments_by_range_response.dart b/client/lib/model/find_comments_by_range_response.dart index 97f9ecf..1ac8e9f 100644 --- a/client/lib/model/find_comments_by_range_response.dart +++ b/client/lib/model/find_comments_by_range_response.dart @@ -24,13 +24,15 @@ class FindCommentsByRangeResponse { @override bool operator ==(Object other) => identical(this, other) || other is FindCommentsByRangeResponse && _deepEquality.equals(other.results, results) && - other.createdAt == createdAt; + other.createdAt == createdAt; + @override int get hashCode => // ignore: unnecessary_parenthesis (results.hashCode) + - (createdAt.hashCode); + (createdAt.hashCode); + @override String toString() => 'FindCommentsByRangeResponse[results=$results, createdAt=$createdAt]'; diff --git a/client/lib/model/flag_comment_public200_response.dart b/client/lib/model/flag_comment_public200_response.dart deleted file mode 100644 index f8979d3..0000000 --- a/client/lib/model/flag_comment_public200_response.dart +++ /dev/null @@ -1,212 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class FlagCommentPublic200Response { - /// Returns a new [FlagCommentPublic200Response] instance. - FlagCommentPublic200Response({ - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is FlagCommentPublic200Response && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'FlagCommentPublic200Response[status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [FlagCommentPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static FlagCommentPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "FlagCommentPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "FlagCommentPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "FlagCommentPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "FlagCommentPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "FlagCommentPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "FlagCommentPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return FlagCommentPublic200Response( - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = FlagCommentPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = FlagCommentPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of FlagCommentPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = FlagCommentPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/flag_comment_response.dart b/client/lib/model/flag_comment_response.dart index a3b09d7..328ba9b 100644 --- a/client/lib/model/flag_comment_response.dart +++ b/client/lib/model/flag_comment_response.dart @@ -57,19 +57,21 @@ class FlagCommentResponse { @override bool operator ==(Object other) => identical(this, other) || other is FlagCommentResponse && other.statusCode == statusCode && - other.status == status && - other.code == code && - other.reason == reason && - other.wasUnapproved == wasUnapproved; + other.status == status && + other.code == code && + other.reason == reason && + other.wasUnapproved == wasUnapproved; + @override int get hashCode => // ignore: unnecessary_parenthesis (statusCode == null ? 0 : statusCode!.hashCode) + - (status.hashCode) + - (code == null ? 0 : code!.hashCode) + - (reason == null ? 0 : reason!.hashCode) + - (wasUnapproved == null ? 0 : wasUnapproved!.hashCode); + (status.hashCode) + + (code == null ? 0 : code!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (wasUnapproved == null ? 0 : wasUnapproved!.hashCode); + @override String toString() => 'FlagCommentResponse[statusCode=$statusCode, status=$status, code=$code, reason=$reason, wasUnapproved=$wasUnapproved]'; diff --git a/client/lib/model/get_audit_logs200_response.dart b/client/lib/model/get_audit_logs200_response.dart deleted file mode 100644 index 88313c2..0000000 --- a/client/lib/model/get_audit_logs200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetAuditLogs200Response { - /// Returns a new [GetAuditLogs200Response] instance. - GetAuditLogs200Response({ - required this.status, - this.auditLogs = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List auditLogs; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetAuditLogs200Response && - other.status == status && - _deepEquality.equals(other.auditLogs, auditLogs) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (auditLogs.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetAuditLogs200Response[status=$status, auditLogs=$auditLogs, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'auditLogs'] = this.auditLogs; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetAuditLogs200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetAuditLogs200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetAuditLogs200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetAuditLogs200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'auditLogs'), 'Required key "GetAuditLogs200Response[auditLogs]" is missing from JSON.'); - assert(json[r'auditLogs'] != null, 'Required key "GetAuditLogs200Response[auditLogs]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetAuditLogs200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetAuditLogs200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetAuditLogs200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetAuditLogs200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetAuditLogs200Response( - status: APIStatus.fromJson(json[r'status'])!, - auditLogs: APIAuditLog.listFromJson(json[r'auditLogs']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetAuditLogs200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetAuditLogs200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetAuditLogs200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetAuditLogs200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'auditLogs', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_audit_logs_response.dart b/client/lib/model/get_audit_logs_response.dart index 69d5863..0fa59ad 100644 --- a/client/lib/model/get_audit_logs_response.dart +++ b/client/lib/model/get_audit_logs_response.dart @@ -24,13 +24,15 @@ class GetAuditLogsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetAuditLogsResponse && other.status == status && - _deepEquality.equals(other.auditLogs, auditLogs); + _deepEquality.equals(other.auditLogs, auditLogs); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (auditLogs.hashCode); + (auditLogs.hashCode); + @override String toString() => 'GetAuditLogsResponse[status=$status, auditLogs=$auditLogs]'; diff --git a/client/lib/model/get_banned_users_count_response.dart b/client/lib/model/get_banned_users_count_response.dart new file mode 100644 index 0000000..5d23ccd --- /dev/null +++ b/client/lib/model/get_banned_users_count_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetBannedUsersCountResponse { + /// Returns a new [GetBannedUsersCountResponse] instance. + GetBannedUsersCountResponse({ + required this.totalCount, + required this.status, + }); + + double totalCount; + + String status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetBannedUsersCountResponse && + other.totalCount == totalCount && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (totalCount.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetBannedUsersCountResponse[totalCount=$totalCount, status=$status]'; + + Map toJson() { + final json = {}; + json[r'totalCount'] = this.totalCount; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetBannedUsersCountResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetBannedUsersCountResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'totalCount'), 'Required key "GetBannedUsersCountResponse[totalCount]" is missing from JSON.'); + assert(json[r'totalCount'] != null, 'Required key "GetBannedUsersCountResponse[totalCount]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetBannedUsersCountResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetBannedUsersCountResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetBannedUsersCountResponse( + totalCount: mapValueOfType(json, r'totalCount')!, + status: mapValueOfType(json, r'status')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetBannedUsersCountResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetBannedUsersCountResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetBannedUsersCountResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetBannedUsersCountResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'totalCount', + 'status', + }; +} + diff --git a/client/lib/model/get_banned_users_from_comment_response.dart b/client/lib/model/get_banned_users_from_comment_response.dart new file mode 100644 index 0000000..ec34a9d --- /dev/null +++ b/client/lib/model/get_banned_users_from_comment_response.dart @@ -0,0 +1,204 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetBannedUsersFromCommentResponse { + /// Returns a new [GetBannedUsersFromCommentResponse] instance. + GetBannedUsersFromCommentResponse({ + this.bannedUsers = const [], + this.code, + required this.status, + }); + + List bannedUsers; + + GetBannedUsersFromCommentResponseCodeEnum? code; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetBannedUsersFromCommentResponse && + _deepEquality.equals(other.bannedUsers, bannedUsers) && + other.code == code && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (bannedUsers.hashCode) + + (code == null ? 0 : code!.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetBannedUsersFromCommentResponse[bannedUsers=$bannedUsers, code=$code, status=$status]'; + + Map toJson() { + final json = {}; + json[r'bannedUsers'] = this.bannedUsers; + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetBannedUsersFromCommentResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetBannedUsersFromCommentResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'bannedUsers'), 'Required key "GetBannedUsersFromCommentResponse[bannedUsers]" is missing from JSON.'); + assert(json[r'bannedUsers'] != null, 'Required key "GetBannedUsersFromCommentResponse[bannedUsers]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetBannedUsersFromCommentResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetBannedUsersFromCommentResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetBannedUsersFromCommentResponse( + bannedUsers: APIBannedUserWithMultiMatchInfo.listFromJson(json[r'bannedUsers']), + code: GetBannedUsersFromCommentResponseCodeEnum.fromJson(json[r'code']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetBannedUsersFromCommentResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetBannedUsersFromCommentResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetBannedUsersFromCommentResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetBannedUsersFromCommentResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'bannedUsers', + 'status', + }; +} + + +class GetBannedUsersFromCommentResponseCodeEnum { + /// Instantiate a new enum with the provided [value]. + const GetBannedUsersFromCommentResponseCodeEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const notFound = GetBannedUsersFromCommentResponseCodeEnum._(r'not-found'); + static const notLoggedIn = GetBannedUsersFromCommentResponseCodeEnum._(r'not-logged-in'); + + /// List of all possible values in this [enum][GetBannedUsersFromCommentResponseCodeEnum]. + static const values = [ + notFound, + notLoggedIn, + ]; + + static GetBannedUsersFromCommentResponseCodeEnum? fromJson(dynamic value) => GetBannedUsersFromCommentResponseCodeEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetBannedUsersFromCommentResponseCodeEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [GetBannedUsersFromCommentResponseCodeEnum] to String, +/// and [decode] dynamic data back to [GetBannedUsersFromCommentResponseCodeEnum]. +class GetBannedUsersFromCommentResponseCodeEnumTypeTransformer { + factory GetBannedUsersFromCommentResponseCodeEnumTypeTransformer() => _instance ??= const GetBannedUsersFromCommentResponseCodeEnumTypeTransformer._(); + + const GetBannedUsersFromCommentResponseCodeEnumTypeTransformer._(); + + String encode(GetBannedUsersFromCommentResponseCodeEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a GetBannedUsersFromCommentResponseCodeEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + GetBannedUsersFromCommentResponseCodeEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'not-found': return GetBannedUsersFromCommentResponseCodeEnum.notFound; + case r'not-logged-in': return GetBannedUsersFromCommentResponseCodeEnum.notLoggedIn; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [GetBannedUsersFromCommentResponseCodeEnumTypeTransformer] instance. + static GetBannedUsersFromCommentResponseCodeEnumTypeTransformer? _instance; +} + + diff --git a/client/lib/model/get_cached_notification_count200_response.dart b/client/lib/model/get_cached_notification_count200_response.dart deleted file mode 100644 index 1b813a0..0000000 --- a/client/lib/model/get_cached_notification_count200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetCachedNotificationCount200Response { - /// Returns a new [GetCachedNotificationCount200Response] instance. - GetCachedNotificationCount200Response({ - required this.status, - required this.data, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - UserNotificationCount data; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetCachedNotificationCount200Response && - other.status == status && - other.data == data && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (data.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetCachedNotificationCount200Response[status=$status, data=$data, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'data'] = this.data; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetCachedNotificationCount200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetCachedNotificationCount200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetCachedNotificationCount200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetCachedNotificationCount200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "GetCachedNotificationCount200Response[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "GetCachedNotificationCount200Response[data]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetCachedNotificationCount200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetCachedNotificationCount200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetCachedNotificationCount200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetCachedNotificationCount200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetCachedNotificationCount200Response( - status: APIStatus.fromJson(json[r'status'])!, - data: UserNotificationCount.fromJson(json[r'data'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetCachedNotificationCount200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetCachedNotificationCount200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetCachedNotificationCount200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetCachedNotificationCount200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'data', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_cached_notification_count_response.dart b/client/lib/model/get_cached_notification_count_response.dart index 4960846..c131e39 100644 --- a/client/lib/model/get_cached_notification_count_response.dart +++ b/client/lib/model/get_cached_notification_count_response.dart @@ -24,13 +24,15 @@ class GetCachedNotificationCountResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetCachedNotificationCountResponse && other.status == status && - other.data == data; + other.data == data; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (data.hashCode); + (data.hashCode); + @override String toString() => 'GetCachedNotificationCountResponse[status=$status, data=$data]'; diff --git a/client/lib/model/get_comment200_response.dart b/client/lib/model/get_comment200_response.dart deleted file mode 100644 index f229a12..0000000 --- a/client/lib/model/get_comment200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetComment200Response { - /// Returns a new [GetComment200Response] instance. - GetComment200Response({ - required this.status, - required this.comment, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - APIComment comment; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetComment200Response && - other.status == status && - other.comment == comment && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (comment.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetComment200Response[status=$status, comment=$comment, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'comment'] = this.comment; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetComment200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetComment200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetComment200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetComment200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "GetComment200Response[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "GetComment200Response[comment]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetComment200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetComment200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetComment200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetComment200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetComment200Response( - status: APIStatus.fromJson(json[r'status'])!, - comment: APIComment.fromJson(json[r'comment'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetComment200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetComment200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetComment200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetComment200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'comment', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_comment_ban_status_response.dart b/client/lib/model/get_comment_ban_status_response.dart new file mode 100644 index 0000000..a68e29f --- /dev/null +++ b/client/lib/model/get_comment_ban_status_response.dart @@ -0,0 +1,135 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetCommentBanStatusResponse { + /// Returns a new [GetCommentBanStatusResponse] instance. + GetCommentBanStatusResponse({ + required this.status, + required this.emailDomain, + required this.canIPBan, + }); + + String status; + + String? emailDomain; + + bool? canIPBan; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetCommentBanStatusResponse && + other.status == status && + other.emailDomain == emailDomain && + other.canIPBan == canIPBan; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (emailDomain == null ? 0 : emailDomain!.hashCode) + + (canIPBan == null ? 0 : canIPBan!.hashCode); + + + @override + String toString() => 'GetCommentBanStatusResponse[status=$status, emailDomain=$emailDomain, canIPBan=$canIPBan]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + if (this.emailDomain != null) { + json[r'emailDomain'] = this.emailDomain; + } else { + json[r'emailDomain'] = null; + } + if (this.canIPBan != null) { + json[r'canIPBan'] = this.canIPBan; + } else { + json[r'canIPBan'] = null; + } + return json; + } + + /// Returns a new [GetCommentBanStatusResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetCommentBanStatusResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "GetCommentBanStatusResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetCommentBanStatusResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'emailDomain'), 'Required key "GetCommentBanStatusResponse[emailDomain]" is missing from JSON.'); + assert(json.containsKey(r'canIPBan'), 'Required key "GetCommentBanStatusResponse[canIPBan]" is missing from JSON.'); + return true; + }()); + + return GetCommentBanStatusResponse( + status: mapValueOfType(json, r'status')!, + emailDomain: mapValueOfType(json, r'emailDomain'), + canIPBan: mapValueOfType(json, r'canIPBan'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetCommentBanStatusResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetCommentBanStatusResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetCommentBanStatusResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetCommentBanStatusResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'emailDomain', + 'canIPBan', + }; +} + diff --git a/client/lib/model/get_comment_text200_response.dart b/client/lib/model/get_comment_text200_response.dart deleted file mode 100644 index b78a890..0000000 --- a/client/lib/model/get_comment_text200_response.dart +++ /dev/null @@ -1,232 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetCommentText200Response { - /// Returns a new [GetCommentText200Response] instance. - GetCommentText200Response({ - required this.status, - required this.commentText, - required this.sanitizedCommentText, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - String commentText; - - String sanitizedCommentText; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetCommentText200Response && - other.status == status && - other.commentText == commentText && - other.sanitizedCommentText == sanitizedCommentText && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (commentText.hashCode) + - (sanitizedCommentText.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetCommentText200Response[status=$status, commentText=$commentText, sanitizedCommentText=$sanitizedCommentText, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'commentText'] = this.commentText; - json[r'sanitizedCommentText'] = this.sanitizedCommentText; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetCommentText200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetCommentText200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetCommentText200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetCommentText200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'commentText'), 'Required key "GetCommentText200Response[commentText]" is missing from JSON.'); - assert(json[r'commentText'] != null, 'Required key "GetCommentText200Response[commentText]" has a null value in JSON.'); - assert(json.containsKey(r'sanitizedCommentText'), 'Required key "GetCommentText200Response[sanitizedCommentText]" is missing from JSON.'); - assert(json[r'sanitizedCommentText'] != null, 'Required key "GetCommentText200Response[sanitizedCommentText]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetCommentText200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetCommentText200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetCommentText200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetCommentText200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetCommentText200Response( - status: APIStatus.fromJson(json[r'status'])!, - commentText: mapValueOfType(json, r'commentText')!, - sanitizedCommentText: mapValueOfType(json, r'sanitizedCommentText')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetCommentText200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetCommentText200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetCommentText200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetCommentText200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'commentText', - 'sanitizedCommentText', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_comment_text_response.dart b/client/lib/model/get_comment_text_response.dart new file mode 100644 index 0000000..f25ffab --- /dev/null +++ b/client/lib/model/get_comment_text_response.dart @@ -0,0 +1,120 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetCommentTextResponse { + /// Returns a new [GetCommentTextResponse] instance. + GetCommentTextResponse({ + this.comment, + required this.status, + }); + + String? comment; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetCommentTextResponse && + other.comment == comment && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (comment == null ? 0 : comment!.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetCommentTextResponse[comment=$comment, status=$status]'; + + Map toJson() { + final json = {}; + if (this.comment != null) { + json[r'comment'] = this.comment; + } else { + json[r'comment'] = null; + } + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetCommentTextResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetCommentTextResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "GetCommentTextResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetCommentTextResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetCommentTextResponse( + comment: mapValueOfType(json, r'comment'), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetCommentTextResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetCommentTextResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetCommentTextResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetCommentTextResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/get_comment_vote_user_names200_response.dart b/client/lib/model/get_comment_vote_user_names200_response.dart deleted file mode 100644 index d224758..0000000 --- a/client/lib/model/get_comment_vote_user_names200_response.dart +++ /dev/null @@ -1,234 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetCommentVoteUserNames200Response { - /// Returns a new [GetCommentVoteUserNames200Response] instance. - GetCommentVoteUserNames200Response({ - required this.status, - this.voteUserNames = const [], - required this.hasMore, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List voteUserNames; - - bool hasMore; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetCommentVoteUserNames200Response && - other.status == status && - _deepEquality.equals(other.voteUserNames, voteUserNames) && - other.hasMore == hasMore && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (voteUserNames.hashCode) + - (hasMore.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetCommentVoteUserNames200Response[status=$status, voteUserNames=$voteUserNames, hasMore=$hasMore, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'voteUserNames'] = this.voteUserNames; - json[r'hasMore'] = this.hasMore; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetCommentVoteUserNames200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetCommentVoteUserNames200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetCommentVoteUserNames200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetCommentVoteUserNames200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'voteUserNames'), 'Required key "GetCommentVoteUserNames200Response[voteUserNames]" is missing from JSON.'); - assert(json[r'voteUserNames'] != null, 'Required key "GetCommentVoteUserNames200Response[voteUserNames]" has a null value in JSON.'); - assert(json.containsKey(r'hasMore'), 'Required key "GetCommentVoteUserNames200Response[hasMore]" is missing from JSON.'); - assert(json[r'hasMore'] != null, 'Required key "GetCommentVoteUserNames200Response[hasMore]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetCommentVoteUserNames200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetCommentVoteUserNames200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetCommentVoteUserNames200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetCommentVoteUserNames200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetCommentVoteUserNames200Response( - status: APIStatus.fromJson(json[r'status'])!, - voteUserNames: json[r'voteUserNames'] is Iterable - ? (json[r'voteUserNames'] as Iterable).cast().toList(growable: false) - : const [], - hasMore: mapValueOfType(json, r'hasMore')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetCommentVoteUserNames200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetCommentVoteUserNames200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetCommentVoteUserNames200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetCommentVoteUserNames200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'voteUserNames', - 'hasMore', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_comment_vote_user_names_success_response.dart b/client/lib/model/get_comment_vote_user_names_success_response.dart index c369f42..9e53eae 100644 --- a/client/lib/model/get_comment_vote_user_names_success_response.dart +++ b/client/lib/model/get_comment_vote_user_names_success_response.dart @@ -27,15 +27,17 @@ class GetCommentVoteUserNamesSuccessResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetCommentVoteUserNamesSuccessResponse && other.status == status && - _deepEquality.equals(other.voteUserNames, voteUserNames) && - other.hasMore == hasMore; + _deepEquality.equals(other.voteUserNames, voteUserNames) && + other.hasMore == hasMore; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (voteUserNames.hashCode) + - (hasMore.hashCode); + (voteUserNames.hashCode) + + (hasMore.hashCode); + @override String toString() => 'GetCommentVoteUserNamesSuccessResponse[status=$status, voteUserNames=$voteUserNames, hasMore=$hasMore]'; diff --git a/client/lib/model/get_comments200_response.dart b/client/lib/model/get_comments200_response.dart deleted file mode 100644 index ef64bce..0000000 --- a/client/lib/model/get_comments200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetComments200Response { - /// Returns a new [GetComments200Response] instance. - GetComments200Response({ - required this.status, - this.comments = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List comments; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetComments200Response && - other.status == status && - _deepEquality.equals(other.comments, comments) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (comments.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetComments200Response[status=$status, comments=$comments, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'comments'] = this.comments; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetComments200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetComments200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetComments200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetComments200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'comments'), 'Required key "GetComments200Response[comments]" is missing from JSON.'); - assert(json[r'comments'] != null, 'Required key "GetComments200Response[comments]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetComments200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetComments200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetComments200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetComments200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetComments200Response( - status: APIStatus.fromJson(json[r'status'])!, - comments: APIComment.listFromJson(json[r'comments']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetComments200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetComments200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetComments200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetComments200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'comments', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_comments_for_user_response.dart b/client/lib/model/get_comments_for_user_response.dart new file mode 100644 index 0000000..f447708 --- /dev/null +++ b/client/lib/model/get_comments_for_user_response.dart @@ -0,0 +1,108 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetCommentsForUserResponse { + /// Returns a new [GetCommentsForUserResponse] instance. + GetCommentsForUserResponse({ + this.moderatingTenantIds = const [], + }); + + List moderatingTenantIds; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetCommentsForUserResponse && + _deepEquality.equals(other.moderatingTenantIds, moderatingTenantIds); + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (moderatingTenantIds.hashCode); + + + @override + String toString() => 'GetCommentsForUserResponse[moderatingTenantIds=$moderatingTenantIds]'; + + Map toJson() { + final json = {}; + json[r'moderatingTenantIds'] = this.moderatingTenantIds; + return json; + } + + /// Returns a new [GetCommentsForUserResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetCommentsForUserResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + return true; + }()); + + return GetCommentsForUserResponse( + moderatingTenantIds: json[r'moderatingTenantIds'] is Iterable + ? (json[r'moderatingTenantIds'] as Iterable).cast().toList(growable: false) + : const [], + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetCommentsForUserResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetCommentsForUserResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetCommentsForUserResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetCommentsForUserResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/client/lib/model/get_comments_public200_response.dart b/client/lib/model/get_comments_public200_response.dart deleted file mode 100644 index f87dddb..0000000 --- a/client/lib/model/get_comments_public200_response.dart +++ /dev/null @@ -1,570 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetCommentsPublic200Response { - /// Returns a new [GetCommentsPublic200Response] instance. - GetCommentsPublic200Response({ - this.statusCode, - required this.status, - required this.code, - required this.reason, - this.translatedWarning, - this.comments = const [], - required this.user, - this.urlIdClean, - this.lastGenDate, - this.includesPastPages, - this.isDemo, - this.commentCount, - this.isSiteAdmin, - this.hasBillingIssue, - this.moduleData = const {}, - required this.pageNumber, - this.isWhiteLabeled, - this.isProd, - this.isCrawler, - this.notificationCount, - this.hasMore, - this.isClosed, - this.presencePollState, - this.customConfig, - this.urlIdWS, - this.userIdWS, - this.tenantIdWS, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - }); - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? statusCode; - - APIStatus status; - - String code; - - String reason; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedWarning; - - List comments; - - UserSessionInfo? user; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? urlIdClean; - - int? lastGenDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? includesPastPages; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isDemo; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? commentCount; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSiteAdmin; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? hasBillingIssue; - - /// Construct a type with a set of properties K of type T - Map moduleData; - - int pageNumber; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isWhiteLabeled; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isProd; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isCrawler; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? notificationCount; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? hasMore; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isClosed; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? presencePollState; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? urlIdWS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? userIdWS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? tenantIdWS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetCommentsPublic200Response && - other.statusCode == statusCode && - other.status == status && - other.code == code && - other.reason == reason && - other.translatedWarning == translatedWarning && - _deepEquality.equals(other.comments, comments) && - other.user == user && - other.urlIdClean == urlIdClean && - other.lastGenDate == lastGenDate && - other.includesPastPages == includesPastPages && - other.isDemo == isDemo && - other.commentCount == commentCount && - other.isSiteAdmin == isSiteAdmin && - other.hasBillingIssue == hasBillingIssue && - _deepEquality.equals(other.moduleData, moduleData) && - other.pageNumber == pageNumber && - other.isWhiteLabeled == isWhiteLabeled && - other.isProd == isProd && - other.isCrawler == isCrawler && - other.notificationCount == notificationCount && - other.hasMore == hasMore && - other.isClosed == isClosed && - other.presencePollState == presencePollState && - other.customConfig == customConfig && - other.urlIdWS == urlIdWS && - other.userIdWS == userIdWS && - other.tenantIdWS == tenantIdWS && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (statusCode == null ? 0 : statusCode!.hashCode) + - (status.hashCode) + - (code.hashCode) + - (reason.hashCode) + - (translatedWarning == null ? 0 : translatedWarning!.hashCode) + - (comments.hashCode) + - (user == null ? 0 : user!.hashCode) + - (urlIdClean == null ? 0 : urlIdClean!.hashCode) + - (lastGenDate == null ? 0 : lastGenDate!.hashCode) + - (includesPastPages == null ? 0 : includesPastPages!.hashCode) + - (isDemo == null ? 0 : isDemo!.hashCode) + - (commentCount == null ? 0 : commentCount!.hashCode) + - (isSiteAdmin == null ? 0 : isSiteAdmin!.hashCode) + - (hasBillingIssue == null ? 0 : hasBillingIssue!.hashCode) + - (moduleData.hashCode) + - (pageNumber.hashCode) + - (isWhiteLabeled == null ? 0 : isWhiteLabeled!.hashCode) + - (isProd == null ? 0 : isProd!.hashCode) + - (isCrawler == null ? 0 : isCrawler!.hashCode) + - (notificationCount == null ? 0 : notificationCount!.hashCode) + - (hasMore == null ? 0 : hasMore!.hashCode) + - (isClosed == null ? 0 : isClosed!.hashCode) + - (presencePollState == null ? 0 : presencePollState!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode) + - (urlIdWS == null ? 0 : urlIdWS!.hashCode) + - (userIdWS == null ? 0 : userIdWS!.hashCode) + - (tenantIdWS == null ? 0 : tenantIdWS!.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode); - - @override - String toString() => 'GetCommentsPublic200Response[statusCode=$statusCode, status=$status, code=$code, reason=$reason, translatedWarning=$translatedWarning, comments=$comments, user=$user, urlIdClean=$urlIdClean, lastGenDate=$lastGenDate, includesPastPages=$includesPastPages, isDemo=$isDemo, commentCount=$commentCount, isSiteAdmin=$isSiteAdmin, hasBillingIssue=$hasBillingIssue, moduleData=$moduleData, pageNumber=$pageNumber, isWhiteLabeled=$isWhiteLabeled, isProd=$isProd, isCrawler=$isCrawler, notificationCount=$notificationCount, hasMore=$hasMore, isClosed=$isClosed, presencePollState=$presencePollState, customConfig=$customConfig, urlIdWS=$urlIdWS, userIdWS=$userIdWS, tenantIdWS=$tenantIdWS, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError]'; - - Map toJson() { - final json = {}; - if (this.statusCode != null) { - json[r'statusCode'] = this.statusCode; - } else { - json[r'statusCode'] = null; - } - json[r'status'] = this.status; - json[r'code'] = this.code; - json[r'reason'] = this.reason; - if (this.translatedWarning != null) { - json[r'translatedWarning'] = this.translatedWarning; - } else { - json[r'translatedWarning'] = null; - } - json[r'comments'] = this.comments; - if (this.user != null) { - json[r'user'] = this.user; - } else { - json[r'user'] = null; - } - if (this.urlIdClean != null) { - json[r'urlIdClean'] = this.urlIdClean; - } else { - json[r'urlIdClean'] = null; - } - if (this.lastGenDate != null) { - json[r'lastGenDate'] = this.lastGenDate; - } else { - json[r'lastGenDate'] = null; - } - if (this.includesPastPages != null) { - json[r'includesPastPages'] = this.includesPastPages; - } else { - json[r'includesPastPages'] = null; - } - if (this.isDemo != null) { - json[r'isDemo'] = this.isDemo; - } else { - json[r'isDemo'] = null; - } - if (this.commentCount != null) { - json[r'commentCount'] = this.commentCount; - } else { - json[r'commentCount'] = null; - } - if (this.isSiteAdmin != null) { - json[r'isSiteAdmin'] = this.isSiteAdmin; - } else { - json[r'isSiteAdmin'] = null; - } - if (this.hasBillingIssue != null) { - json[r'hasBillingIssue'] = this.hasBillingIssue; - } else { - json[r'hasBillingIssue'] = null; - } - json[r'moduleData'] = this.moduleData; - json[r'pageNumber'] = this.pageNumber; - if (this.isWhiteLabeled != null) { - json[r'isWhiteLabeled'] = this.isWhiteLabeled; - } else { - json[r'isWhiteLabeled'] = null; - } - if (this.isProd != null) { - json[r'isProd'] = this.isProd; - } else { - json[r'isProd'] = null; - } - if (this.isCrawler != null) { - json[r'isCrawler'] = this.isCrawler; - } else { - json[r'isCrawler'] = null; - } - if (this.notificationCount != null) { - json[r'notificationCount'] = this.notificationCount; - } else { - json[r'notificationCount'] = null; - } - if (this.hasMore != null) { - json[r'hasMore'] = this.hasMore; - } else { - json[r'hasMore'] = null; - } - if (this.isClosed != null) { - json[r'isClosed'] = this.isClosed; - } else { - json[r'isClosed'] = null; - } - if (this.presencePollState != null) { - json[r'presencePollState'] = this.presencePollState; - } else { - json[r'presencePollState'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - if (this.urlIdWS != null) { - json[r'urlIdWS'] = this.urlIdWS; - } else { - json[r'urlIdWS'] = null; - } - if (this.userIdWS != null) { - json[r'userIdWS'] = this.userIdWS; - } else { - json[r'userIdWS'] = null; - } - if (this.tenantIdWS != null) { - json[r'tenantIdWS'] = this.tenantIdWS; - } else { - json[r'tenantIdWS'] = null; - } - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - return json; - } - - /// Returns a new [GetCommentsPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetCommentsPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetCommentsPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetCommentsPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetCommentsPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetCommentsPublic200Response[code]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetCommentsPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetCommentsPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'comments'), 'Required key "GetCommentsPublic200Response[comments]" is missing from JSON.'); - assert(json[r'comments'] != null, 'Required key "GetCommentsPublic200Response[comments]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "GetCommentsPublic200Response[user]" is missing from JSON.'); - assert(json.containsKey(r'pageNumber'), 'Required key "GetCommentsPublic200Response[pageNumber]" is missing from JSON.'); - assert(json[r'pageNumber'] != null, 'Required key "GetCommentsPublic200Response[pageNumber]" has a null value in JSON.'); - return true; - }()); - - return GetCommentsPublic200Response( - statusCode: mapValueOfType(json, r'statusCode'), - status: APIStatus.fromJson(json[r'status'])!, - code: mapValueOfType(json, r'code')!, - reason: mapValueOfType(json, r'reason')!, - translatedWarning: mapValueOfType(json, r'translatedWarning'), - comments: PublicComment.listFromJson(json[r'comments']), - user: UserSessionInfo.fromJson(json[r'user']), - urlIdClean: mapValueOfType(json, r'urlIdClean'), - lastGenDate: mapValueOfType(json, r'lastGenDate'), - includesPastPages: mapValueOfType(json, r'includesPastPages'), - isDemo: mapValueOfType(json, r'isDemo'), - commentCount: mapValueOfType(json, r'commentCount'), - isSiteAdmin: mapValueOfType(json, r'isSiteAdmin'), - hasBillingIssue: mapValueOfType(json, r'hasBillingIssue'), - moduleData: mapCastOfType(json, r'moduleData') ?? const {}, - pageNumber: mapValueOfType(json, r'pageNumber')!, - isWhiteLabeled: mapValueOfType(json, r'isWhiteLabeled'), - isProd: mapValueOfType(json, r'isProd'), - isCrawler: mapValueOfType(json, r'isCrawler'), - notificationCount: mapValueOfType(json, r'notificationCount'), - hasMore: mapValueOfType(json, r'hasMore'), - isClosed: mapValueOfType(json, r'isClosed'), - presencePollState: mapValueOfType(json, r'presencePollState'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - urlIdWS: mapValueOfType(json, r'urlIdWS'), - userIdWS: mapValueOfType(json, r'userIdWS'), - tenantIdWS: mapValueOfType(json, r'tenantIdWS'), - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetCommentsPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetCommentsPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetCommentsPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetCommentsPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'code', - 'reason', - 'comments', - 'user', - 'pageNumber', - }; -} - diff --git a/client/lib/model/get_comments_response_public_comment.dart b/client/lib/model/get_comments_response_public_comment.dart index 635d8f4..50e1658 100644 --- a/client/lib/model/get_comments_response_public_comment.dart +++ b/client/lib/model/get_comments_response_public_comment.dart @@ -199,57 +199,59 @@ class GetCommentsResponsePublicComment { @override bool operator ==(Object other) => identical(this, other) || other is GetCommentsResponsePublicComment && other.statusCode == statusCode && - other.status == status && - other.code == code && - other.reason == reason && - other.translatedWarning == translatedWarning && - _deepEquality.equals(other.comments, comments) && - other.user == user && - other.urlIdClean == urlIdClean && - other.lastGenDate == lastGenDate && - other.includesPastPages == includesPastPages && - other.isDemo == isDemo && - other.commentCount == commentCount && - other.isSiteAdmin == isSiteAdmin && - other.hasBillingIssue == hasBillingIssue && - _deepEquality.equals(other.moduleData, moduleData) && - other.pageNumber == pageNumber && - other.isWhiteLabeled == isWhiteLabeled && - other.isProd == isProd && - other.isCrawler == isCrawler && - other.notificationCount == notificationCount && - other.hasMore == hasMore && - other.isClosed == isClosed && - other.presencePollState == presencePollState && - other.customConfig == customConfig; + other.status == status && + other.code == code && + other.reason == reason && + other.translatedWarning == translatedWarning && + _deepEquality.equals(other.comments, comments) && + other.user == user && + other.urlIdClean == urlIdClean && + other.lastGenDate == lastGenDate && + other.includesPastPages == includesPastPages && + other.isDemo == isDemo && + other.commentCount == commentCount && + other.isSiteAdmin == isSiteAdmin && + other.hasBillingIssue == hasBillingIssue && + _deepEquality.equals(other.moduleData, moduleData) && + other.pageNumber == pageNumber && + other.isWhiteLabeled == isWhiteLabeled && + other.isProd == isProd && + other.isCrawler == isCrawler && + other.notificationCount == notificationCount && + other.hasMore == hasMore && + other.isClosed == isClosed && + other.presencePollState == presencePollState && + other.customConfig == customConfig; + @override int get hashCode => // ignore: unnecessary_parenthesis (statusCode == null ? 0 : statusCode!.hashCode) + - (status.hashCode) + - (code == null ? 0 : code!.hashCode) + - (reason == null ? 0 : reason!.hashCode) + - (translatedWarning == null ? 0 : translatedWarning!.hashCode) + - (comments.hashCode) + - (user == null ? 0 : user!.hashCode) + - (urlIdClean == null ? 0 : urlIdClean!.hashCode) + - (lastGenDate == null ? 0 : lastGenDate!.hashCode) + - (includesPastPages == null ? 0 : includesPastPages!.hashCode) + - (isDemo == null ? 0 : isDemo!.hashCode) + - (commentCount == null ? 0 : commentCount!.hashCode) + - (isSiteAdmin == null ? 0 : isSiteAdmin!.hashCode) + - (hasBillingIssue == null ? 0 : hasBillingIssue!.hashCode) + - (moduleData.hashCode) + - (pageNumber.hashCode) + - (isWhiteLabeled == null ? 0 : isWhiteLabeled!.hashCode) + - (isProd == null ? 0 : isProd!.hashCode) + - (isCrawler == null ? 0 : isCrawler!.hashCode) + - (notificationCount == null ? 0 : notificationCount!.hashCode) + - (hasMore == null ? 0 : hasMore!.hashCode) + - (isClosed == null ? 0 : isClosed!.hashCode) + - (presencePollState == null ? 0 : presencePollState!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); + (status.hashCode) + + (code == null ? 0 : code!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (translatedWarning == null ? 0 : translatedWarning!.hashCode) + + (comments.hashCode) + + (user == null ? 0 : user!.hashCode) + + (urlIdClean == null ? 0 : urlIdClean!.hashCode) + + (lastGenDate == null ? 0 : lastGenDate!.hashCode) + + (includesPastPages == null ? 0 : includesPastPages!.hashCode) + + (isDemo == null ? 0 : isDemo!.hashCode) + + (commentCount == null ? 0 : commentCount!.hashCode) + + (isSiteAdmin == null ? 0 : isSiteAdmin!.hashCode) + + (hasBillingIssue == null ? 0 : hasBillingIssue!.hashCode) + + (moduleData.hashCode) + + (pageNumber.hashCode) + + (isWhiteLabeled == null ? 0 : isWhiteLabeled!.hashCode) + + (isProd == null ? 0 : isProd!.hashCode) + + (isCrawler == null ? 0 : isCrawler!.hashCode) + + (notificationCount == null ? 0 : notificationCount!.hashCode) + + (hasMore == null ? 0 : hasMore!.hashCode) + + (isClosed == null ? 0 : isClosed!.hashCode) + + (presencePollState == null ? 0 : presencePollState!.hashCode) + + (customConfig == null ? 0 : customConfig!.hashCode); + @override String toString() => 'GetCommentsResponsePublicComment[statusCode=$statusCode, status=$status, code=$code, reason=$reason, translatedWarning=$translatedWarning, comments=$comments, user=$user, urlIdClean=$urlIdClean, lastGenDate=$lastGenDate, includesPastPages=$includesPastPages, isDemo=$isDemo, commentCount=$commentCount, isSiteAdmin=$isSiteAdmin, hasBillingIssue=$hasBillingIssue, moduleData=$moduleData, pageNumber=$pageNumber, isWhiteLabeled=$isWhiteLabeled, isProd=$isProd, isCrawler=$isCrawler, notificationCount=$notificationCount, hasMore=$hasMore, isClosed=$isClosed, presencePollState=$presencePollState, customConfig=$customConfig]'; diff --git a/client/lib/model/get_comments_response_with_presence_public_comment.dart b/client/lib/model/get_comments_response_with_presence_public_comment.dart index 0e63602..2910587 100644 --- a/client/lib/model/get_comments_response_with_presence_public_comment.dart +++ b/client/lib/model/get_comments_response_with_presence_public_comment.dart @@ -226,63 +226,65 @@ class GetCommentsResponseWithPresencePublicComment { @override bool operator ==(Object other) => identical(this, other) || other is GetCommentsResponseWithPresencePublicComment && other.statusCode == statusCode && - other.status == status && - other.code == code && - other.reason == reason && - other.translatedWarning == translatedWarning && - _deepEquality.equals(other.comments, comments) && - other.user == user && - other.urlIdClean == urlIdClean && - other.lastGenDate == lastGenDate && - other.includesPastPages == includesPastPages && - other.isDemo == isDemo && - other.commentCount == commentCount && - other.isSiteAdmin == isSiteAdmin && - other.hasBillingIssue == hasBillingIssue && - _deepEquality.equals(other.moduleData, moduleData) && - other.pageNumber == pageNumber && - other.isWhiteLabeled == isWhiteLabeled && - other.isProd == isProd && - other.isCrawler == isCrawler && - other.notificationCount == notificationCount && - other.hasMore == hasMore && - other.isClosed == isClosed && - other.presencePollState == presencePollState && - other.customConfig == customConfig && - other.urlIdWS == urlIdWS && - other.userIdWS == userIdWS && - other.tenantIdWS == tenantIdWS; + other.status == status && + other.code == code && + other.reason == reason && + other.translatedWarning == translatedWarning && + _deepEquality.equals(other.comments, comments) && + other.user == user && + other.urlIdClean == urlIdClean && + other.lastGenDate == lastGenDate && + other.includesPastPages == includesPastPages && + other.isDemo == isDemo && + other.commentCount == commentCount && + other.isSiteAdmin == isSiteAdmin && + other.hasBillingIssue == hasBillingIssue && + _deepEquality.equals(other.moduleData, moduleData) && + other.pageNumber == pageNumber && + other.isWhiteLabeled == isWhiteLabeled && + other.isProd == isProd && + other.isCrawler == isCrawler && + other.notificationCount == notificationCount && + other.hasMore == hasMore && + other.isClosed == isClosed && + other.presencePollState == presencePollState && + other.customConfig == customConfig && + other.urlIdWS == urlIdWS && + other.userIdWS == userIdWS && + other.tenantIdWS == tenantIdWS; + @override int get hashCode => // ignore: unnecessary_parenthesis (statusCode == null ? 0 : statusCode!.hashCode) + - (status.hashCode) + - (code == null ? 0 : code!.hashCode) + - (reason == null ? 0 : reason!.hashCode) + - (translatedWarning == null ? 0 : translatedWarning!.hashCode) + - (comments.hashCode) + - (user == null ? 0 : user!.hashCode) + - (urlIdClean == null ? 0 : urlIdClean!.hashCode) + - (lastGenDate == null ? 0 : lastGenDate!.hashCode) + - (includesPastPages == null ? 0 : includesPastPages!.hashCode) + - (isDemo == null ? 0 : isDemo!.hashCode) + - (commentCount == null ? 0 : commentCount!.hashCode) + - (isSiteAdmin == null ? 0 : isSiteAdmin!.hashCode) + - (hasBillingIssue == null ? 0 : hasBillingIssue!.hashCode) + - (moduleData.hashCode) + - (pageNumber.hashCode) + - (isWhiteLabeled == null ? 0 : isWhiteLabeled!.hashCode) + - (isProd == null ? 0 : isProd!.hashCode) + - (isCrawler == null ? 0 : isCrawler!.hashCode) + - (notificationCount == null ? 0 : notificationCount!.hashCode) + - (hasMore == null ? 0 : hasMore!.hashCode) + - (isClosed == null ? 0 : isClosed!.hashCode) + - (presencePollState == null ? 0 : presencePollState!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode) + - (urlIdWS == null ? 0 : urlIdWS!.hashCode) + - (userIdWS == null ? 0 : userIdWS!.hashCode) + - (tenantIdWS == null ? 0 : tenantIdWS!.hashCode); + (status.hashCode) + + (code == null ? 0 : code!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (translatedWarning == null ? 0 : translatedWarning!.hashCode) + + (comments.hashCode) + + (user == null ? 0 : user!.hashCode) + + (urlIdClean == null ? 0 : urlIdClean!.hashCode) + + (lastGenDate == null ? 0 : lastGenDate!.hashCode) + + (includesPastPages == null ? 0 : includesPastPages!.hashCode) + + (isDemo == null ? 0 : isDemo!.hashCode) + + (commentCount == null ? 0 : commentCount!.hashCode) + + (isSiteAdmin == null ? 0 : isSiteAdmin!.hashCode) + + (hasBillingIssue == null ? 0 : hasBillingIssue!.hashCode) + + (moduleData.hashCode) + + (pageNumber.hashCode) + + (isWhiteLabeled == null ? 0 : isWhiteLabeled!.hashCode) + + (isProd == null ? 0 : isProd!.hashCode) + + (isCrawler == null ? 0 : isCrawler!.hashCode) + + (notificationCount == null ? 0 : notificationCount!.hashCode) + + (hasMore == null ? 0 : hasMore!.hashCode) + + (isClosed == null ? 0 : isClosed!.hashCode) + + (presencePollState == null ? 0 : presencePollState!.hashCode) + + (customConfig == null ? 0 : customConfig!.hashCode) + + (urlIdWS == null ? 0 : urlIdWS!.hashCode) + + (userIdWS == null ? 0 : userIdWS!.hashCode) + + (tenantIdWS == null ? 0 : tenantIdWS!.hashCode); + @override String toString() => 'GetCommentsResponseWithPresencePublicComment[statusCode=$statusCode, status=$status, code=$code, reason=$reason, translatedWarning=$translatedWarning, comments=$comments, user=$user, urlIdClean=$urlIdClean, lastGenDate=$lastGenDate, includesPastPages=$includesPastPages, isDemo=$isDemo, commentCount=$commentCount, isSiteAdmin=$isSiteAdmin, hasBillingIssue=$hasBillingIssue, moduleData=$moduleData, pageNumber=$pageNumber, isWhiteLabeled=$isWhiteLabeled, isProd=$isProd, isCrawler=$isCrawler, notificationCount=$notificationCount, hasMore=$hasMore, isClosed=$isClosed, presencePollState=$presencePollState, customConfig=$customConfig, urlIdWS=$urlIdWS, userIdWS=$userIdWS, tenantIdWS=$tenantIdWS]'; diff --git a/client/lib/model/get_domain_config200_response.dart b/client/lib/model/get_domain_config200_response.dart deleted file mode 100644 index d9c714d..0000000 --- a/client/lib/model/get_domain_config200_response.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetDomainConfig200Response { - /// Returns a new [GetDomainConfig200Response] instance. - GetDomainConfig200Response({ - required this.configuration, - required this.status, - required this.reason, - required this.code, - }); - - Object? configuration; - - Object? status; - - String reason; - - String code; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetDomainConfig200Response && - other.configuration == configuration && - other.status == status && - other.reason == reason && - other.code == code; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (configuration == null ? 0 : configuration!.hashCode) + - (status == null ? 0 : status!.hashCode) + - (reason.hashCode) + - (code.hashCode); - - @override - String toString() => 'GetDomainConfig200Response[configuration=$configuration, status=$status, reason=$reason, code=$code]'; - - Map toJson() { - final json = {}; - if (this.configuration != null) { - json[r'configuration'] = this.configuration; - } else { - json[r'configuration'] = null; - } - if (this.status != null) { - json[r'status'] = this.status; - } else { - json[r'status'] = null; - } - json[r'reason'] = this.reason; - json[r'code'] = this.code; - return json; - } - - /// Returns a new [GetDomainConfig200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetDomainConfig200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'configuration'), 'Required key "GetDomainConfig200Response[configuration]" is missing from JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetDomainConfig200Response[status]" is missing from JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetDomainConfig200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetDomainConfig200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetDomainConfig200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetDomainConfig200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetDomainConfig200Response( - configuration: mapValueOfType(json, r'configuration'), - status: mapValueOfType(json, r'status'), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetDomainConfig200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetDomainConfig200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetDomainConfig200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetDomainConfig200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'configuration', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_domain_config_response.dart b/client/lib/model/get_domain_config_response.dart new file mode 100644 index 0000000..6ce93c0 --- /dev/null +++ b/client/lib/model/get_domain_config_response.dart @@ -0,0 +1,157 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetDomainConfigResponse { + /// Returns a new [GetDomainConfigResponse] instance. + GetDomainConfigResponse({ + this.configuration, + required this.status, + this.reason, + this.code, + }); + + Object? configuration; + + Object? status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? reason; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigResponse && + other.configuration == configuration && + other.status == status && + other.reason == reason && + other.code == code; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (configuration == null ? 0 : configuration!.hashCode) + + (status == null ? 0 : status!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode); + + + @override + String toString() => 'GetDomainConfigResponse[configuration=$configuration, status=$status, reason=$reason, code=$code]'; + + Map toJson() { + final json = {}; + if (this.configuration != null) { + json[r'configuration'] = this.configuration; + } else { + json[r'configuration'] = null; + } + if (this.status != null) { + json[r'status'] = this.status; + } else { + json[r'status'] = null; + } + if (this.reason != null) { + json[r'reason'] = this.reason; + } else { + json[r'reason'] = null; + } + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + return json; + } + + /// Returns a new [GetDomainConfigResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetDomainConfigResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "GetDomainConfigResponse[status]" is missing from JSON.'); + return true; + }()); + + return GetDomainConfigResponse( + configuration: mapValueOfType(json, r'configuration'), + status: mapValueOfType(json, r'status'), + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetDomainConfigResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetDomainConfigResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetDomainConfigResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetDomainConfigResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/get_domain_configs200_response.dart b/client/lib/model/get_domain_configs200_response.dart deleted file mode 100644 index c699a68..0000000 --- a/client/lib/model/get_domain_configs200_response.dart +++ /dev/null @@ -1,143 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetDomainConfigs200Response { - /// Returns a new [GetDomainConfigs200Response] instance. - GetDomainConfigs200Response({ - required this.configurations, - required this.status, - required this.reason, - required this.code, - }); - - Object? configurations; - - Object? status; - - String reason; - - String code; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigs200Response && - other.configurations == configurations && - other.status == status && - other.reason == reason && - other.code == code; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (configurations == null ? 0 : configurations!.hashCode) + - (status == null ? 0 : status!.hashCode) + - (reason.hashCode) + - (code.hashCode); - - @override - String toString() => 'GetDomainConfigs200Response[configurations=$configurations, status=$status, reason=$reason, code=$code]'; - - Map toJson() { - final json = {}; - if (this.configurations != null) { - json[r'configurations'] = this.configurations; - } else { - json[r'configurations'] = null; - } - if (this.status != null) { - json[r'status'] = this.status; - } else { - json[r'status'] = null; - } - json[r'reason'] = this.reason; - json[r'code'] = this.code; - return json; - } - - /// Returns a new [GetDomainConfigs200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetDomainConfigs200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'configurations'), 'Required key "GetDomainConfigs200Response[configurations]" is missing from JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetDomainConfigs200Response[status]" is missing from JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetDomainConfigs200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetDomainConfigs200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetDomainConfigs200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetDomainConfigs200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetDomainConfigs200Response( - configurations: mapValueOfType(json, r'configurations'), - status: mapValueOfType(json, r'status'), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetDomainConfigs200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetDomainConfigs200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetDomainConfigs200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetDomainConfigs200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'configurations', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_domain_configs_response.dart b/client/lib/model/get_domain_configs_response.dart new file mode 100644 index 0000000..a30e36a --- /dev/null +++ b/client/lib/model/get_domain_configs_response.dart @@ -0,0 +1,157 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetDomainConfigsResponse { + /// Returns a new [GetDomainConfigsResponse] instance. + GetDomainConfigsResponse({ + this.configurations, + required this.status, + this.reason, + this.code, + }); + + Object? configurations; + + Object? status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? reason; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigsResponse && + other.configurations == configurations && + other.status == status && + other.reason == reason && + other.code == code; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (configurations == null ? 0 : configurations!.hashCode) + + (status == null ? 0 : status!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode); + + + @override + String toString() => 'GetDomainConfigsResponse[configurations=$configurations, status=$status, reason=$reason, code=$code]'; + + Map toJson() { + final json = {}; + if (this.configurations != null) { + json[r'configurations'] = this.configurations; + } else { + json[r'configurations'] = null; + } + if (this.status != null) { + json[r'status'] = this.status; + } else { + json[r'status'] = null; + } + if (this.reason != null) { + json[r'reason'] = this.reason; + } else { + json[r'reason'] = null; + } + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + return json; + } + + /// Returns a new [GetDomainConfigsResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetDomainConfigsResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "GetDomainConfigsResponse[status]" is missing from JSON.'); + return true; + }()); + + return GetDomainConfigsResponse( + configurations: mapValueOfType(json, r'configurations'), + status: mapValueOfType(json, r'status'), + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetDomainConfigsResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetDomainConfigsResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetDomainConfigsResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetDomainConfigsResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/get_domain_configs200_response_any_of.dart b/client/lib/model/get_domain_configs_response_any_of.dart similarity index 62% rename from client/lib/model/get_domain_configs200_response_any_of.dart rename to client/lib/model/get_domain_configs_response_any_of.dart index 52f1d5e..8ffec82 100644 --- a/client/lib/model/get_domain_configs200_response_any_of.dart +++ b/client/lib/model/get_domain_configs_response_any_of.dart @@ -10,9 +10,9 @@ part of openapi.api; -class GetDomainConfigs200ResponseAnyOf { - /// Returns a new [GetDomainConfigs200ResponseAnyOf] instance. - GetDomainConfigs200ResponseAnyOf({ +class GetDomainConfigsResponseAnyOf { + /// Returns a new [GetDomainConfigsResponseAnyOf] instance. + GetDomainConfigsResponseAnyOf({ required this.configurations, required this.status, }); @@ -22,18 +22,20 @@ class GetDomainConfigs200ResponseAnyOf { Object? status; @override - bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigs200ResponseAnyOf && + bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigsResponseAnyOf && other.configurations == configurations && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (configurations == null ? 0 : configurations!.hashCode) + - (status == null ? 0 : status!.hashCode); + (status == null ? 0 : status!.hashCode); + @override - String toString() => 'GetDomainConfigs200ResponseAnyOf[configurations=$configurations, status=$status]'; + String toString() => 'GetDomainConfigsResponseAnyOf[configurations=$configurations, status=$status]'; Map toJson() { final json = {}; @@ -50,10 +52,10 @@ class GetDomainConfigs200ResponseAnyOf { return json; } - /// Returns a new [GetDomainConfigs200ResponseAnyOf] instance and imports its values from + /// Returns a new [GetDomainConfigsResponseAnyOf] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static GetDomainConfigs200ResponseAnyOf? fromJson(dynamic value) { + static GetDomainConfigsResponseAnyOf? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -61,12 +63,12 @@ class GetDomainConfigs200ResponseAnyOf { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'configurations'), 'Required key "GetDomainConfigs200ResponseAnyOf[configurations]" is missing from JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetDomainConfigs200ResponseAnyOf[status]" is missing from JSON.'); + assert(json.containsKey(r'configurations'), 'Required key "GetDomainConfigsResponseAnyOf[configurations]" is missing from JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetDomainConfigsResponseAnyOf[status]" is missing from JSON.'); return true; }()); - return GetDomainConfigs200ResponseAnyOf( + return GetDomainConfigsResponseAnyOf( configurations: mapValueOfType(json, r'configurations'), status: mapValueOfType(json, r'status'), ); @@ -74,11 +76,11 @@ class GetDomainConfigs200ResponseAnyOf { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = GetDomainConfigs200ResponseAnyOf.fromJson(row); + final value = GetDomainConfigsResponseAnyOf.fromJson(row); if (value != null) { result.add(value); } @@ -87,12 +89,12 @@ class GetDomainConfigs200ResponseAnyOf { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = GetDomainConfigs200ResponseAnyOf.fromJson(entry.value); + final value = GetDomainConfigsResponseAnyOf.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -101,14 +103,14 @@ class GetDomainConfigs200ResponseAnyOf { return map; } - // maps a json object with a list of GetDomainConfigs200ResponseAnyOf-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of GetDomainConfigsResponseAnyOf-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = GetDomainConfigs200ResponseAnyOf.listFromJson(entry.value, growable: growable,); + map[entry.key] = GetDomainConfigsResponseAnyOf.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/get_domain_configs200_response_any_of1.dart b/client/lib/model/get_domain_configs_response_any_of1.dart similarity index 60% rename from client/lib/model/get_domain_configs200_response_any_of1.dart rename to client/lib/model/get_domain_configs_response_any_of1.dart index e60e2f2..8a3bf2c 100644 --- a/client/lib/model/get_domain_configs200_response_any_of1.dart +++ b/client/lib/model/get_domain_configs_response_any_of1.dart @@ -10,9 +10,9 @@ part of openapi.api; -class GetDomainConfigs200ResponseAnyOf1 { - /// Returns a new [GetDomainConfigs200ResponseAnyOf1] instance. - GetDomainConfigs200ResponseAnyOf1({ +class GetDomainConfigsResponseAnyOf1 { + /// Returns a new [GetDomainConfigsResponseAnyOf1] instance. + GetDomainConfigsResponseAnyOf1({ required this.reason, required this.code, required this.status, @@ -25,20 +25,22 @@ class GetDomainConfigs200ResponseAnyOf1 { Object? status; @override - bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigs200ResponseAnyOf1 && + bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigsResponseAnyOf1 && other.reason == reason && - other.code == code && - other.status == status; + other.code == code && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason.hashCode) + - (code.hashCode) + - (status == null ? 0 : status!.hashCode); + (code.hashCode) + + (status == null ? 0 : status!.hashCode); + @override - String toString() => 'GetDomainConfigs200ResponseAnyOf1[reason=$reason, code=$code, status=$status]'; + String toString() => 'GetDomainConfigsResponseAnyOf1[reason=$reason, code=$code, status=$status]'; Map toJson() { final json = {}; @@ -52,10 +54,10 @@ class GetDomainConfigs200ResponseAnyOf1 { return json; } - /// Returns a new [GetDomainConfigs200ResponseAnyOf1] instance and imports its values from + /// Returns a new [GetDomainConfigsResponseAnyOf1] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static GetDomainConfigs200ResponseAnyOf1? fromJson(dynamic value) { + static GetDomainConfigsResponseAnyOf1? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -63,15 +65,15 @@ class GetDomainConfigs200ResponseAnyOf1 { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'reason'), 'Required key "GetDomainConfigs200ResponseAnyOf1[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetDomainConfigs200ResponseAnyOf1[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetDomainConfigs200ResponseAnyOf1[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetDomainConfigs200ResponseAnyOf1[code]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetDomainConfigs200ResponseAnyOf1[status]" is missing from JSON.'); + assert(json.containsKey(r'reason'), 'Required key "GetDomainConfigsResponseAnyOf1[reason]" is missing from JSON.'); + assert(json[r'reason'] != null, 'Required key "GetDomainConfigsResponseAnyOf1[reason]" has a null value in JSON.'); + assert(json.containsKey(r'code'), 'Required key "GetDomainConfigsResponseAnyOf1[code]" is missing from JSON.'); + assert(json[r'code'] != null, 'Required key "GetDomainConfigsResponseAnyOf1[code]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetDomainConfigsResponseAnyOf1[status]" is missing from JSON.'); return true; }()); - return GetDomainConfigs200ResponseAnyOf1( + return GetDomainConfigsResponseAnyOf1( reason: mapValueOfType(json, r'reason')!, code: mapValueOfType(json, r'code')!, status: mapValueOfType(json, r'status'), @@ -80,11 +82,11 @@ class GetDomainConfigs200ResponseAnyOf1 { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = GetDomainConfigs200ResponseAnyOf1.fromJson(row); + final value = GetDomainConfigsResponseAnyOf1.fromJson(row); if (value != null) { result.add(value); } @@ -93,12 +95,12 @@ class GetDomainConfigs200ResponseAnyOf1 { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = GetDomainConfigs200ResponseAnyOf1.fromJson(entry.value); + final value = GetDomainConfigsResponseAnyOf1.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -107,14 +109,14 @@ class GetDomainConfigs200ResponseAnyOf1 { return map; } - // maps a json object with a list of GetDomainConfigs200ResponseAnyOf1-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of GetDomainConfigsResponseAnyOf1-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = GetDomainConfigs200ResponseAnyOf1.listFromJson(entry.value, growable: growable,); + map[entry.key] = GetDomainConfigsResponseAnyOf1.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/get_email_template200_response.dart b/client/lib/model/get_email_template200_response.dart deleted file mode 100644 index 9dc35b4..0000000 --- a/client/lib/model/get_email_template200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetEmailTemplate200Response { - /// Returns a new [GetEmailTemplate200Response] instance. - GetEmailTemplate200Response({ - required this.status, - required this.emailTemplate, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - CustomEmailTemplate emailTemplate; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetEmailTemplate200Response && - other.status == status && - other.emailTemplate == emailTemplate && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (emailTemplate.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetEmailTemplate200Response[status=$status, emailTemplate=$emailTemplate, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'emailTemplate'] = this.emailTemplate; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetEmailTemplate200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetEmailTemplate200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetEmailTemplate200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEmailTemplate200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'emailTemplate'), 'Required key "GetEmailTemplate200Response[emailTemplate]" is missing from JSON.'); - assert(json[r'emailTemplate'] != null, 'Required key "GetEmailTemplate200Response[emailTemplate]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetEmailTemplate200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetEmailTemplate200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetEmailTemplate200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetEmailTemplate200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetEmailTemplate200Response( - status: APIStatus.fromJson(json[r'status'])!, - emailTemplate: CustomEmailTemplate.fromJson(json[r'emailTemplate'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetEmailTemplate200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetEmailTemplate200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetEmailTemplate200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetEmailTemplate200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'emailTemplate', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_email_template_definitions200_response.dart b/client/lib/model/get_email_template_definitions200_response.dart deleted file mode 100644 index db34e0b..0000000 --- a/client/lib/model/get_email_template_definitions200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetEmailTemplateDefinitions200Response { - /// Returns a new [GetEmailTemplateDefinitions200Response] instance. - GetEmailTemplateDefinitions200Response({ - required this.status, - this.definitions = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List definitions; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetEmailTemplateDefinitions200Response && - other.status == status && - _deepEquality.equals(other.definitions, definitions) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (definitions.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetEmailTemplateDefinitions200Response[status=$status, definitions=$definitions, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'definitions'] = this.definitions; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetEmailTemplateDefinitions200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetEmailTemplateDefinitions200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetEmailTemplateDefinitions200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEmailTemplateDefinitions200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'definitions'), 'Required key "GetEmailTemplateDefinitions200Response[definitions]" is missing from JSON.'); - assert(json[r'definitions'] != null, 'Required key "GetEmailTemplateDefinitions200Response[definitions]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetEmailTemplateDefinitions200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetEmailTemplateDefinitions200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetEmailTemplateDefinitions200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetEmailTemplateDefinitions200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetEmailTemplateDefinitions200Response( - status: APIStatus.fromJson(json[r'status'])!, - definitions: EmailTemplateDefinition.listFromJson(json[r'definitions']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetEmailTemplateDefinitions200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetEmailTemplateDefinitions200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetEmailTemplateDefinitions200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetEmailTemplateDefinitions200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'definitions', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_email_template_definitions_response.dart b/client/lib/model/get_email_template_definitions_response.dart index 41117e0..0ecf97e 100644 --- a/client/lib/model/get_email_template_definitions_response.dart +++ b/client/lib/model/get_email_template_definitions_response.dart @@ -24,13 +24,15 @@ class GetEmailTemplateDefinitionsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetEmailTemplateDefinitionsResponse && other.status == status && - _deepEquality.equals(other.definitions, definitions); + _deepEquality.equals(other.definitions, definitions); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (definitions.hashCode); + (definitions.hashCode); + @override String toString() => 'GetEmailTemplateDefinitionsResponse[status=$status, definitions=$definitions]'; diff --git a/client/lib/model/get_email_template_render_errors200_response.dart b/client/lib/model/get_email_template_render_errors200_response.dart deleted file mode 100644 index 71c0028..0000000 --- a/client/lib/model/get_email_template_render_errors200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetEmailTemplateRenderErrors200Response { - /// Returns a new [GetEmailTemplateRenderErrors200Response] instance. - GetEmailTemplateRenderErrors200Response({ - required this.status, - this.renderErrors = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List renderErrors; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetEmailTemplateRenderErrors200Response && - other.status == status && - _deepEquality.equals(other.renderErrors, renderErrors) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (renderErrors.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetEmailTemplateRenderErrors200Response[status=$status, renderErrors=$renderErrors, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'renderErrors'] = this.renderErrors; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetEmailTemplateRenderErrors200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetEmailTemplateRenderErrors200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetEmailTemplateRenderErrors200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEmailTemplateRenderErrors200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'renderErrors'), 'Required key "GetEmailTemplateRenderErrors200Response[renderErrors]" is missing from JSON.'); - assert(json[r'renderErrors'] != null, 'Required key "GetEmailTemplateRenderErrors200Response[renderErrors]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetEmailTemplateRenderErrors200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetEmailTemplateRenderErrors200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetEmailTemplateRenderErrors200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetEmailTemplateRenderErrors200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetEmailTemplateRenderErrors200Response( - status: APIStatus.fromJson(json[r'status'])!, - renderErrors: EmailTemplateRenderErrorResponse.listFromJson(json[r'renderErrors']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetEmailTemplateRenderErrors200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetEmailTemplateRenderErrors200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetEmailTemplateRenderErrors200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetEmailTemplateRenderErrors200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'renderErrors', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_email_template_render_errors_response.dart b/client/lib/model/get_email_template_render_errors_response.dart index ea82ec4..6860da3 100644 --- a/client/lib/model/get_email_template_render_errors_response.dart +++ b/client/lib/model/get_email_template_render_errors_response.dart @@ -24,13 +24,15 @@ class GetEmailTemplateRenderErrorsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetEmailTemplateRenderErrorsResponse && other.status == status && - _deepEquality.equals(other.renderErrors, renderErrors); + _deepEquality.equals(other.renderErrors, renderErrors); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (renderErrors.hashCode); + (renderErrors.hashCode); + @override String toString() => 'GetEmailTemplateRenderErrorsResponse[status=$status, renderErrors=$renderErrors]'; diff --git a/client/lib/model/get_email_template_response.dart b/client/lib/model/get_email_template_response.dart index 76e6020..eed0540 100644 --- a/client/lib/model/get_email_template_response.dart +++ b/client/lib/model/get_email_template_response.dart @@ -24,13 +24,15 @@ class GetEmailTemplateResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetEmailTemplateResponse && other.status == status && - other.emailTemplate == emailTemplate; + other.emailTemplate == emailTemplate; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (emailTemplate.hashCode); + (emailTemplate.hashCode); + @override String toString() => 'GetEmailTemplateResponse[status=$status, emailTemplate=$emailTemplate]'; diff --git a/client/lib/model/get_email_templates200_response.dart b/client/lib/model/get_email_templates200_response.dart deleted file mode 100644 index a7a5c7f..0000000 --- a/client/lib/model/get_email_templates200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetEmailTemplates200Response { - /// Returns a new [GetEmailTemplates200Response] instance. - GetEmailTemplates200Response({ - required this.status, - this.emailTemplates = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List emailTemplates; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetEmailTemplates200Response && - other.status == status && - _deepEquality.equals(other.emailTemplates, emailTemplates) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (emailTemplates.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetEmailTemplates200Response[status=$status, emailTemplates=$emailTemplates, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'emailTemplates'] = this.emailTemplates; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetEmailTemplates200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetEmailTemplates200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetEmailTemplates200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEmailTemplates200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'emailTemplates'), 'Required key "GetEmailTemplates200Response[emailTemplates]" is missing from JSON.'); - assert(json[r'emailTemplates'] != null, 'Required key "GetEmailTemplates200Response[emailTemplates]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetEmailTemplates200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetEmailTemplates200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetEmailTemplates200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetEmailTemplates200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetEmailTemplates200Response( - status: APIStatus.fromJson(json[r'status'])!, - emailTemplates: CustomEmailTemplate.listFromJson(json[r'emailTemplates']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetEmailTemplates200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetEmailTemplates200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetEmailTemplates200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetEmailTemplates200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'emailTemplates', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_email_templates_response.dart b/client/lib/model/get_email_templates_response.dart index 05d2798..f048e29 100644 --- a/client/lib/model/get_email_templates_response.dart +++ b/client/lib/model/get_email_templates_response.dart @@ -24,13 +24,15 @@ class GetEmailTemplatesResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetEmailTemplatesResponse && other.status == status && - _deepEquality.equals(other.emailTemplates, emailTemplates); + _deepEquality.equals(other.emailTemplates, emailTemplates); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (emailTemplates.hashCode); + (emailTemplates.hashCode); + @override String toString() => 'GetEmailTemplatesResponse[status=$status, emailTemplates=$emailTemplates]'; diff --git a/client/lib/model/get_event_log200_response.dart b/client/lib/model/get_event_log200_response.dart deleted file mode 100644 index 28b1318..0000000 --- a/client/lib/model/get_event_log200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetEventLog200Response { - /// Returns a new [GetEventLog200Response] instance. - GetEventLog200Response({ - this.events = const [], - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - List events; - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetEventLog200Response && - _deepEquality.equals(other.events, events) && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (events.hashCode) + - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetEventLog200Response[events=$events, status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'events'] = this.events; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetEventLog200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetEventLog200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'events'), 'Required key "GetEventLog200Response[events]" is missing from JSON.'); - assert(json[r'events'] != null, 'Required key "GetEventLog200Response[events]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetEventLog200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEventLog200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetEventLog200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetEventLog200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetEventLog200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetEventLog200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetEventLog200Response( - events: EventLogEntry.listFromJson(json[r'events']), - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetEventLog200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetEventLog200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetEventLog200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetEventLog200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'events', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_event_log_response.dart b/client/lib/model/get_event_log_response.dart index 524280b..2b32153 100644 --- a/client/lib/model/get_event_log_response.dart +++ b/client/lib/model/get_event_log_response.dart @@ -24,13 +24,15 @@ class GetEventLogResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetEventLogResponse && _deepEquality.equals(other.events, events) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (events.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GetEventLogResponse[events=$events, status=$status]'; diff --git a/client/lib/model/get_feed_posts200_response.dart b/client/lib/model/get_feed_posts200_response.dart deleted file mode 100644 index baabf22..0000000 --- a/client/lib/model/get_feed_posts200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetFeedPosts200Response { - /// Returns a new [GetFeedPosts200Response] instance. - GetFeedPosts200Response({ - required this.status, - this.feedPosts = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List feedPosts; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetFeedPosts200Response && - other.status == status && - _deepEquality.equals(other.feedPosts, feedPosts) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (feedPosts.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetFeedPosts200Response[status=$status, feedPosts=$feedPosts, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'feedPosts'] = this.feedPosts; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetFeedPosts200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetFeedPosts200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetFeedPosts200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetFeedPosts200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPosts'), 'Required key "GetFeedPosts200Response[feedPosts]" is missing from JSON.'); - assert(json[r'feedPosts'] != null, 'Required key "GetFeedPosts200Response[feedPosts]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetFeedPosts200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetFeedPosts200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetFeedPosts200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetFeedPosts200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetFeedPosts200Response( - status: APIStatus.fromJson(json[r'status'])!, - feedPosts: FeedPost.listFromJson(json[r'feedPosts']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetFeedPosts200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetFeedPosts200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetFeedPosts200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetFeedPosts200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'feedPosts', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_feed_posts_public200_response.dart b/client/lib/model/get_feed_posts_public200_response.dart deleted file mode 100644 index b4b3125..0000000 --- a/client/lib/model/get_feed_posts_public200_response.dart +++ /dev/null @@ -1,291 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetFeedPostsPublic200Response { - /// Returns a new [GetFeedPostsPublic200Response] instance. - GetFeedPostsPublic200Response({ - this.myReacts = const {}, - required this.status, - this.feedPosts = const [], - this.user, - this.urlIdWS, - this.userIdWS, - this.tenantIdWS, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - Map> myReacts; - - APIStatus status; - - List feedPosts; - - UserSessionInfo? user; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? urlIdWS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? userIdWS; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? tenantIdWS; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetFeedPostsPublic200Response && - _deepEquality.equals(other.myReacts, myReacts) && - other.status == status && - _deepEquality.equals(other.feedPosts, feedPosts) && - other.user == user && - other.urlIdWS == urlIdWS && - other.userIdWS == userIdWS && - other.tenantIdWS == tenantIdWS && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (myReacts.hashCode) + - (status.hashCode) + - (feedPosts.hashCode) + - (user == null ? 0 : user!.hashCode) + - (urlIdWS == null ? 0 : urlIdWS!.hashCode) + - (userIdWS == null ? 0 : userIdWS!.hashCode) + - (tenantIdWS == null ? 0 : tenantIdWS!.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetFeedPostsPublic200Response[myReacts=$myReacts, status=$status, feedPosts=$feedPosts, user=$user, urlIdWS=$urlIdWS, userIdWS=$userIdWS, tenantIdWS=$tenantIdWS, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'myReacts'] = this.myReacts; - json[r'status'] = this.status; - json[r'feedPosts'] = this.feedPosts; - if (this.user != null) { - json[r'user'] = this.user; - } else { - json[r'user'] = null; - } - if (this.urlIdWS != null) { - json[r'urlIdWS'] = this.urlIdWS; - } else { - json[r'urlIdWS'] = null; - } - if (this.userIdWS != null) { - json[r'userIdWS'] = this.userIdWS; - } else { - json[r'userIdWS'] = null; - } - if (this.tenantIdWS != null) { - json[r'tenantIdWS'] = this.tenantIdWS; - } else { - json[r'tenantIdWS'] = null; - } - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetFeedPostsPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetFeedPostsPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetFeedPostsPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetFeedPostsPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPosts'), 'Required key "GetFeedPostsPublic200Response[feedPosts]" is missing from JSON.'); - assert(json[r'feedPosts'] != null, 'Required key "GetFeedPostsPublic200Response[feedPosts]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetFeedPostsPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetFeedPostsPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetFeedPostsPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetFeedPostsPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetFeedPostsPublic200Response( - myReacts: mapCastOfType(json, r'myReacts') ?? const {}, - status: APIStatus.fromJson(json[r'status'])!, - feedPosts: FeedPost.listFromJson(json[r'feedPosts']), - user: UserSessionInfo.fromJson(json[r'user']), - urlIdWS: mapValueOfType(json, r'urlIdWS'), - userIdWS: mapValueOfType(json, r'userIdWS'), - tenantIdWS: mapValueOfType(json, r'tenantIdWS'), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetFeedPostsPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetFeedPostsPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetFeedPostsPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetFeedPostsPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'feedPosts', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_feed_posts_response.dart b/client/lib/model/get_feed_posts_response.dart index 11123f8..c16c7ec 100644 --- a/client/lib/model/get_feed_posts_response.dart +++ b/client/lib/model/get_feed_posts_response.dart @@ -24,13 +24,15 @@ class GetFeedPostsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetFeedPostsResponse && other.status == status && - _deepEquality.equals(other.feedPosts, feedPosts); + _deepEquality.equals(other.feedPosts, feedPosts); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (feedPosts.hashCode); + (feedPosts.hashCode); + @override String toString() => 'GetFeedPostsResponse[status=$status, feedPosts=$feedPosts]'; diff --git a/client/lib/model/get_feed_posts_stats200_response.dart b/client/lib/model/get_feed_posts_stats200_response.dart deleted file mode 100644 index 8179b1c..0000000 --- a/client/lib/model/get_feed_posts_stats200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetFeedPostsStats200Response { - /// Returns a new [GetFeedPostsStats200Response] instance. - GetFeedPostsStats200Response({ - required this.status, - this.stats = const {}, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - Map stats; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetFeedPostsStats200Response && - other.status == status && - _deepEquality.equals(other.stats, stats) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (stats.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetFeedPostsStats200Response[status=$status, stats=$stats, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'stats'] = this.stats; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetFeedPostsStats200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetFeedPostsStats200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetFeedPostsStats200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetFeedPostsStats200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'stats'), 'Required key "GetFeedPostsStats200Response[stats]" is missing from JSON.'); - assert(json[r'stats'] != null, 'Required key "GetFeedPostsStats200Response[stats]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetFeedPostsStats200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetFeedPostsStats200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetFeedPostsStats200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetFeedPostsStats200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetFeedPostsStats200Response( - status: APIStatus.fromJson(json[r'status'])!, - stats: FeedPostStats.mapFromJson(json[r'stats']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetFeedPostsStats200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetFeedPostsStats200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetFeedPostsStats200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetFeedPostsStats200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'stats', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_gifs_search_response.dart b/client/lib/model/get_gifs_search_response.dart new file mode 100644 index 0000000..ba09490 --- /dev/null +++ b/client/lib/model/get_gifs_search_response.dart @@ -0,0 +1,137 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetGifsSearchResponse { + /// Returns a new [GetGifsSearchResponse] instance. + GetGifsSearchResponse({ + this.images = const [], + required this.status, + this.code, + }); + + List> images; + + APIStatus status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetGifsSearchResponse && + _deepEquality.equals(other.images, images) && + other.status == status && + other.code == code; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (images.hashCode) + + (status.hashCode) + + (code == null ? 0 : code!.hashCode); + + + @override + String toString() => 'GetGifsSearchResponse[images=$images, status=$status, code=$code]'; + + Map toJson() { + final json = {}; + json[r'images'] = this.images; + json[r'status'] = this.status; + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + return json; + } + + /// Returns a new [GetGifsSearchResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetGifsSearchResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "GetGifsSearchResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetGifsSearchResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetGifsSearchResponse( + images: json[r'images'] is List + ? (json[r'images'] as List).map((e) => + GifSearchResponseImagesInnerInner.listFromJson(json[r'images']) + ).toList() + : const [], + status: APIStatus.fromJson(json[r'status'])!, + code: mapValueOfType(json, r'code'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetGifsSearchResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetGifsSearchResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetGifsSearchResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetGifsSearchResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/get_gifs_trending_response.dart b/client/lib/model/get_gifs_trending_response.dart new file mode 100644 index 0000000..90fd228 --- /dev/null +++ b/client/lib/model/get_gifs_trending_response.dart @@ -0,0 +1,137 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetGifsTrendingResponse { + /// Returns a new [GetGifsTrendingResponse] instance. + GetGifsTrendingResponse({ + this.images = const [], + required this.status, + this.code, + }); + + List> images; + + APIStatus status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetGifsTrendingResponse && + _deepEquality.equals(other.images, images) && + other.status == status && + other.code == code; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (images.hashCode) + + (status.hashCode) + + (code == null ? 0 : code!.hashCode); + + + @override + String toString() => 'GetGifsTrendingResponse[images=$images, status=$status, code=$code]'; + + Map toJson() { + final json = {}; + json[r'images'] = this.images; + json[r'status'] = this.status; + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + return json; + } + + /// Returns a new [GetGifsTrendingResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetGifsTrendingResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "GetGifsTrendingResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetGifsTrendingResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetGifsTrendingResponse( + images: json[r'images'] is List + ? (json[r'images'] as List).map((e) => + GifSearchResponseImagesInnerInner.listFromJson(json[r'images']) + ).toList() + : const [], + status: APIStatus.fromJson(json[r'status'])!, + code: mapValueOfType(json, r'code'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetGifsTrendingResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetGifsTrendingResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetGifsTrendingResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetGifsTrendingResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/get_hash_tags200_response.dart b/client/lib/model/get_hash_tags200_response.dart deleted file mode 100644 index 576274f..0000000 --- a/client/lib/model/get_hash_tags200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetHashTags200Response { - /// Returns a new [GetHashTags200Response] instance. - GetHashTags200Response({ - required this.status, - this.hashTags = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List hashTags; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetHashTags200Response && - other.status == status && - _deepEquality.equals(other.hashTags, hashTags) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (hashTags.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetHashTags200Response[status=$status, hashTags=$hashTags, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'hashTags'] = this.hashTags; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetHashTags200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetHashTags200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetHashTags200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetHashTags200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'hashTags'), 'Required key "GetHashTags200Response[hashTags]" is missing from JSON.'); - assert(json[r'hashTags'] != null, 'Required key "GetHashTags200Response[hashTags]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetHashTags200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetHashTags200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetHashTags200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetHashTags200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetHashTags200Response( - status: APIStatus.fromJson(json[r'status'])!, - hashTags: TenantHashTag.listFromJson(json[r'hashTags']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetHashTags200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetHashTags200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetHashTags200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetHashTags200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'hashTags', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_hash_tags_response.dart b/client/lib/model/get_hash_tags_response.dart index cbadb49..c708d76 100644 --- a/client/lib/model/get_hash_tags_response.dart +++ b/client/lib/model/get_hash_tags_response.dart @@ -24,13 +24,15 @@ class GetHashTagsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetHashTagsResponse && other.status == status && - _deepEquality.equals(other.hashTags, hashTags); + _deepEquality.equals(other.hashTags, hashTags); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (hashTags.hashCode); + (hashTags.hashCode); + @override String toString() => 'GetHashTagsResponse[status=$status, hashTags=$hashTags]'; diff --git a/client/lib/model/get_moderator200_response.dart b/client/lib/model/get_moderator200_response.dart deleted file mode 100644 index ba9d0fa..0000000 --- a/client/lib/model/get_moderator200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetModerator200Response { - /// Returns a new [GetModerator200Response] instance. - GetModerator200Response({ - required this.status, - required this.moderator, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - Moderator moderator; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetModerator200Response && - other.status == status && - other.moderator == moderator && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (moderator.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetModerator200Response[status=$status, moderator=$moderator, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'moderator'] = this.moderator; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetModerator200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetModerator200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetModerator200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetModerator200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'moderator'), 'Required key "GetModerator200Response[moderator]" is missing from JSON.'); - assert(json[r'moderator'] != null, 'Required key "GetModerator200Response[moderator]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetModerator200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetModerator200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetModerator200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetModerator200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetModerator200Response( - status: APIStatus.fromJson(json[r'status'])!, - moderator: Moderator.fromJson(json[r'moderator'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetModerator200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetModerator200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetModerator200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetModerator200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'moderator', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_moderator_response.dart b/client/lib/model/get_moderator_response.dart index 8f96802..b5467ec 100644 --- a/client/lib/model/get_moderator_response.dart +++ b/client/lib/model/get_moderator_response.dart @@ -24,13 +24,15 @@ class GetModeratorResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetModeratorResponse && other.status == status && - other.moderator == moderator; + other.moderator == moderator; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (moderator.hashCode); + (moderator.hashCode); + @override String toString() => 'GetModeratorResponse[status=$status, moderator=$moderator]'; diff --git a/client/lib/model/get_moderators200_response.dart b/client/lib/model/get_moderators200_response.dart deleted file mode 100644 index bf9c2f7..0000000 --- a/client/lib/model/get_moderators200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetModerators200Response { - /// Returns a new [GetModerators200Response] instance. - GetModerators200Response({ - required this.status, - this.moderators = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List moderators; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetModerators200Response && - other.status == status && - _deepEquality.equals(other.moderators, moderators) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (moderators.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetModerators200Response[status=$status, moderators=$moderators, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'moderators'] = this.moderators; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetModerators200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetModerators200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetModerators200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetModerators200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'moderators'), 'Required key "GetModerators200Response[moderators]" is missing from JSON.'); - assert(json[r'moderators'] != null, 'Required key "GetModerators200Response[moderators]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetModerators200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetModerators200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetModerators200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetModerators200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetModerators200Response( - status: APIStatus.fromJson(json[r'status'])!, - moderators: Moderator.listFromJson(json[r'moderators']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetModerators200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetModerators200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetModerators200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetModerators200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'moderators', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_moderators_response.dart b/client/lib/model/get_moderators_response.dart index d13c39b..c228369 100644 --- a/client/lib/model/get_moderators_response.dart +++ b/client/lib/model/get_moderators_response.dart @@ -24,13 +24,15 @@ class GetModeratorsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetModeratorsResponse && other.status == status && - _deepEquality.equals(other.moderators, moderators); + _deepEquality.equals(other.moderators, moderators); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (moderators.hashCode); + (moderators.hashCode); + @override String toString() => 'GetModeratorsResponse[status=$status, moderators=$moderators]'; diff --git a/client/lib/model/get_my_notifications_response.dart b/client/lib/model/get_my_notifications_response.dart index 9f5ac31..4e13207 100644 --- a/client/lib/model/get_my_notifications_response.dart +++ b/client/lib/model/get_my_notifications_response.dart @@ -34,19 +34,21 @@ class GetMyNotificationsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetMyNotificationsResponse && _deepEquality.equals(other.translations, translations) && - other.isSubscribed == isSubscribed && - other.hasMore == hasMore && - _deepEquality.equals(other.notifications, notifications) && - other.status == status; + other.isSubscribed == isSubscribed && + other.hasMore == hasMore && + _deepEquality.equals(other.notifications, notifications) && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (translations.hashCode) + - (isSubscribed.hashCode) + - (hasMore.hashCode) + - (notifications.hashCode) + - (status.hashCode); + (isSubscribed.hashCode) + + (hasMore.hashCode) + + (notifications.hashCode) + + (status.hashCode); + @override String toString() => 'GetMyNotificationsResponse[translations=$translations, isSubscribed=$isSubscribed, hasMore=$hasMore, notifications=$notifications, status=$status]'; diff --git a/client/lib/model/get_notification_count200_response.dart b/client/lib/model/get_notification_count200_response.dart deleted file mode 100644 index aa977f0..0000000 --- a/client/lib/model/get_notification_count200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetNotificationCount200Response { - /// Returns a new [GetNotificationCount200Response] instance. - GetNotificationCount200Response({ - required this.status, - required this.count, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - double count; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetNotificationCount200Response && - other.status == status && - other.count == count && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (count.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetNotificationCount200Response[status=$status, count=$count, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'count'] = this.count; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetNotificationCount200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetNotificationCount200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetNotificationCount200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetNotificationCount200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "GetNotificationCount200Response[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "GetNotificationCount200Response[count]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetNotificationCount200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetNotificationCount200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetNotificationCount200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetNotificationCount200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetNotificationCount200Response( - status: APIStatus.fromJson(json[r'status'])!, - count: mapValueOfType(json, r'count')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetNotificationCount200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetNotificationCount200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetNotificationCount200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetNotificationCount200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'count', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_notification_count_response.dart b/client/lib/model/get_notification_count_response.dart index f3d0a88..0cd0a9a 100644 --- a/client/lib/model/get_notification_count_response.dart +++ b/client/lib/model/get_notification_count_response.dart @@ -24,13 +24,15 @@ class GetNotificationCountResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetNotificationCountResponse && other.status == status && - other.count == count; + other.count == count; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (count.hashCode); + (count.hashCode); + @override String toString() => 'GetNotificationCountResponse[status=$status, count=$count]'; diff --git a/client/lib/model/get_notifications200_response.dart b/client/lib/model/get_notifications200_response.dart deleted file mode 100644 index bed3b65..0000000 --- a/client/lib/model/get_notifications200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetNotifications200Response { - /// Returns a new [GetNotifications200Response] instance. - GetNotifications200Response({ - required this.status, - this.notifications = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List notifications; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetNotifications200Response && - other.status == status && - _deepEquality.equals(other.notifications, notifications) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (notifications.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetNotifications200Response[status=$status, notifications=$notifications, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'notifications'] = this.notifications; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetNotifications200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetNotifications200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetNotifications200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetNotifications200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'notifications'), 'Required key "GetNotifications200Response[notifications]" is missing from JSON.'); - assert(json[r'notifications'] != null, 'Required key "GetNotifications200Response[notifications]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetNotifications200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetNotifications200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetNotifications200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetNotifications200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetNotifications200Response( - status: APIStatus.fromJson(json[r'status'])!, - notifications: UserNotification.listFromJson(json[r'notifications']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetNotifications200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetNotifications200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetNotifications200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetNotifications200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'notifications', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_notifications_response.dart b/client/lib/model/get_notifications_response.dart index 3d6091d..ef695ce 100644 --- a/client/lib/model/get_notifications_response.dart +++ b/client/lib/model/get_notifications_response.dart @@ -24,13 +24,15 @@ class GetNotificationsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetNotificationsResponse && other.status == status && - _deepEquality.equals(other.notifications, notifications); + _deepEquality.equals(other.notifications, notifications); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (notifications.hashCode); + (notifications.hashCode); + @override String toString() => 'GetNotificationsResponse[status=$status, notifications=$notifications]'; diff --git a/client/lib/model/get_page_by_urlid_api_response.dart b/client/lib/model/get_page_by_urlid_api_response.dart index d057a83..e2fd0cc 100644 --- a/client/lib/model/get_page_by_urlid_api_response.dart +++ b/client/lib/model/get_page_by_urlid_api_response.dart @@ -48,17 +48,19 @@ class GetPageByURLIdAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetPageByURLIdAPIResponse && other.reason == reason && - other.code == code && - other.page == page && - other.status == status; + other.code == code && + other.page == page && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (page == null ? 0 : page!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (page == null ? 0 : page!.hashCode) + + (status.hashCode); + @override String toString() => 'GetPageByURLIdAPIResponse[reason=$reason, code=$code, page=$page, status=$status]'; diff --git a/client/lib/model/get_pages_api_response.dart b/client/lib/model/get_pages_api_response.dart index 38c5fef..aa85b6a 100644 --- a/client/lib/model/get_pages_api_response.dart +++ b/client/lib/model/get_pages_api_response.dart @@ -42,17 +42,19 @@ class GetPagesAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetPagesAPIResponse && other.reason == reason && - other.code == code && - _deepEquality.equals(other.pages, pages) && - other.status == status; + other.code == code && + _deepEquality.equals(other.pages, pages) && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (pages.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (pages.hashCode) + + (status.hashCode); + @override String toString() => 'GetPagesAPIResponse[reason=$reason, code=$code, pages=$pages, status=$status]'; diff --git a/client/lib/model/get_pending_webhook_event_count200_response.dart b/client/lib/model/get_pending_webhook_event_count200_response.dart deleted file mode 100644 index ab545a3..0000000 --- a/client/lib/model/get_pending_webhook_event_count200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetPendingWebhookEventCount200Response { - /// Returns a new [GetPendingWebhookEventCount200Response] instance. - GetPendingWebhookEventCount200Response({ - required this.status, - required this.count, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - double count; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetPendingWebhookEventCount200Response && - other.status == status && - other.count == count && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (count.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetPendingWebhookEventCount200Response[status=$status, count=$count, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'count'] = this.count; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetPendingWebhookEventCount200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetPendingWebhookEventCount200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetPendingWebhookEventCount200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetPendingWebhookEventCount200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "GetPendingWebhookEventCount200Response[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "GetPendingWebhookEventCount200Response[count]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetPendingWebhookEventCount200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetPendingWebhookEventCount200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetPendingWebhookEventCount200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetPendingWebhookEventCount200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetPendingWebhookEventCount200Response( - status: APIStatus.fromJson(json[r'status'])!, - count: mapValueOfType(json, r'count')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetPendingWebhookEventCount200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetPendingWebhookEventCount200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetPendingWebhookEventCount200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetPendingWebhookEventCount200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'count', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_pending_webhook_event_count_response.dart b/client/lib/model/get_pending_webhook_event_count_response.dart index b3653a4..ccefa33 100644 --- a/client/lib/model/get_pending_webhook_event_count_response.dart +++ b/client/lib/model/get_pending_webhook_event_count_response.dart @@ -24,13 +24,15 @@ class GetPendingWebhookEventCountResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetPendingWebhookEventCountResponse && other.status == status && - other.count == count; + other.count == count; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (count.hashCode); + (count.hashCode); + @override String toString() => 'GetPendingWebhookEventCountResponse[status=$status, count=$count]'; diff --git a/client/lib/model/get_pending_webhook_events200_response.dart b/client/lib/model/get_pending_webhook_events200_response.dart deleted file mode 100644 index 6824467..0000000 --- a/client/lib/model/get_pending_webhook_events200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetPendingWebhookEvents200Response { - /// Returns a new [GetPendingWebhookEvents200Response] instance. - GetPendingWebhookEvents200Response({ - required this.status, - this.pendingWebhookEvents = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List pendingWebhookEvents; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetPendingWebhookEvents200Response && - other.status == status && - _deepEquality.equals(other.pendingWebhookEvents, pendingWebhookEvents) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (pendingWebhookEvents.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetPendingWebhookEvents200Response[status=$status, pendingWebhookEvents=$pendingWebhookEvents, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'pendingWebhookEvents'] = this.pendingWebhookEvents; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetPendingWebhookEvents200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetPendingWebhookEvents200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetPendingWebhookEvents200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetPendingWebhookEvents200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'pendingWebhookEvents'), 'Required key "GetPendingWebhookEvents200Response[pendingWebhookEvents]" is missing from JSON.'); - assert(json[r'pendingWebhookEvents'] != null, 'Required key "GetPendingWebhookEvents200Response[pendingWebhookEvents]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetPendingWebhookEvents200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetPendingWebhookEvents200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetPendingWebhookEvents200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetPendingWebhookEvents200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetPendingWebhookEvents200Response( - status: APIStatus.fromJson(json[r'status'])!, - pendingWebhookEvents: PendingCommentToSyncOutbound.listFromJson(json[r'pendingWebhookEvents']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetPendingWebhookEvents200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetPendingWebhookEvents200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetPendingWebhookEvents200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetPendingWebhookEvents200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'pendingWebhookEvents', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_pending_webhook_events_response.dart b/client/lib/model/get_pending_webhook_events_response.dart index 14715b3..aef2b5a 100644 --- a/client/lib/model/get_pending_webhook_events_response.dart +++ b/client/lib/model/get_pending_webhook_events_response.dart @@ -24,13 +24,15 @@ class GetPendingWebhookEventsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetPendingWebhookEventsResponse && other.status == status && - _deepEquality.equals(other.pendingWebhookEvents, pendingWebhookEvents); + _deepEquality.equals(other.pendingWebhookEvents, pendingWebhookEvents); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (pendingWebhookEvents.hashCode); + (pendingWebhookEvents.hashCode); + @override String toString() => 'GetPendingWebhookEventsResponse[status=$status, pendingWebhookEvents=$pendingWebhookEvents]'; diff --git a/client/lib/model/get_public_feed_posts_response.dart b/client/lib/model/get_public_feed_posts_response.dart index e0f4d64..38ca870 100644 --- a/client/lib/model/get_public_feed_posts_response.dart +++ b/client/lib/model/get_public_feed_posts_response.dart @@ -27,15 +27,17 @@ class GetPublicFeedPostsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetPublicFeedPostsResponse && other.status == status && - _deepEquality.equals(other.feedPosts, feedPosts) && - other.user == user; + _deepEquality.equals(other.feedPosts, feedPosts) && + other.user == user; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (feedPosts.hashCode) + - (user == null ? 0 : user!.hashCode); + (feedPosts.hashCode) + + (user == null ? 0 : user!.hashCode); + @override String toString() => 'GetPublicFeedPostsResponse[status=$status, feedPosts=$feedPosts, user=$user]'; diff --git a/client/lib/model/get_public_pages_response.dart b/client/lib/model/get_public_pages_response.dart new file mode 100644 index 0000000..ab07ea0 --- /dev/null +++ b/client/lib/model/get_public_pages_response.dart @@ -0,0 +1,132 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetPublicPagesResponse { + /// Returns a new [GetPublicPagesResponse] instance. + GetPublicPagesResponse({ + required this.nextCursor, + this.pages = const [], + required this.status, + }); + + String? nextCursor; + + List pages; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetPublicPagesResponse && + other.nextCursor == nextCursor && + _deepEquality.equals(other.pages, pages) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (nextCursor == null ? 0 : nextCursor!.hashCode) + + (pages.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetPublicPagesResponse[nextCursor=$nextCursor, pages=$pages, status=$status]'; + + Map toJson() { + final json = {}; + if (this.nextCursor != null) { + json[r'nextCursor'] = this.nextCursor; + } else { + json[r'nextCursor'] = null; + } + json[r'pages'] = this.pages; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetPublicPagesResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetPublicPagesResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'nextCursor'), 'Required key "GetPublicPagesResponse[nextCursor]" is missing from JSON.'); + assert(json.containsKey(r'pages'), 'Required key "GetPublicPagesResponse[pages]" is missing from JSON.'); + assert(json[r'pages'] != null, 'Required key "GetPublicPagesResponse[pages]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetPublicPagesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetPublicPagesResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetPublicPagesResponse( + nextCursor: mapValueOfType(json, r'nextCursor'), + pages: PublicPage.listFromJson(json[r'pages']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetPublicPagesResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetPublicPagesResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetPublicPagesResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetPublicPagesResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'nextCursor', + 'pages', + 'status', + }; +} + diff --git a/client/lib/model/get_question_config200_response.dart b/client/lib/model/get_question_config200_response.dart deleted file mode 100644 index 8237750..0000000 --- a/client/lib/model/get_question_config200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetQuestionConfig200Response { - /// Returns a new [GetQuestionConfig200Response] instance. - GetQuestionConfig200Response({ - required this.status, - required this.questionConfig, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - QuestionConfig questionConfig; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetQuestionConfig200Response && - other.status == status && - other.questionConfig == questionConfig && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (questionConfig.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetQuestionConfig200Response[status=$status, questionConfig=$questionConfig, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'questionConfig'] = this.questionConfig; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetQuestionConfig200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetQuestionConfig200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetQuestionConfig200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetQuestionConfig200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionConfig'), 'Required key "GetQuestionConfig200Response[questionConfig]" is missing from JSON.'); - assert(json[r'questionConfig'] != null, 'Required key "GetQuestionConfig200Response[questionConfig]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetQuestionConfig200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetQuestionConfig200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetQuestionConfig200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetQuestionConfig200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetQuestionConfig200Response( - status: APIStatus.fromJson(json[r'status'])!, - questionConfig: QuestionConfig.fromJson(json[r'questionConfig'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetQuestionConfig200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetQuestionConfig200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetQuestionConfig200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetQuestionConfig200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'questionConfig', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_question_config_response.dart b/client/lib/model/get_question_config_response.dart index 899c3c8..b82948c 100644 --- a/client/lib/model/get_question_config_response.dart +++ b/client/lib/model/get_question_config_response.dart @@ -24,13 +24,15 @@ class GetQuestionConfigResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetQuestionConfigResponse && other.status == status && - other.questionConfig == questionConfig; + other.questionConfig == questionConfig; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (questionConfig.hashCode); + (questionConfig.hashCode); + @override String toString() => 'GetQuestionConfigResponse[status=$status, questionConfig=$questionConfig]'; diff --git a/client/lib/model/get_question_configs200_response.dart b/client/lib/model/get_question_configs200_response.dart deleted file mode 100644 index ad20327..0000000 --- a/client/lib/model/get_question_configs200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetQuestionConfigs200Response { - /// Returns a new [GetQuestionConfigs200Response] instance. - GetQuestionConfigs200Response({ - required this.status, - this.questionConfigs = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List questionConfigs; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetQuestionConfigs200Response && - other.status == status && - _deepEquality.equals(other.questionConfigs, questionConfigs) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (questionConfigs.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetQuestionConfigs200Response[status=$status, questionConfigs=$questionConfigs, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'questionConfigs'] = this.questionConfigs; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetQuestionConfigs200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetQuestionConfigs200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetQuestionConfigs200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetQuestionConfigs200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionConfigs'), 'Required key "GetQuestionConfigs200Response[questionConfigs]" is missing from JSON.'); - assert(json[r'questionConfigs'] != null, 'Required key "GetQuestionConfigs200Response[questionConfigs]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetQuestionConfigs200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetQuestionConfigs200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetQuestionConfigs200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetQuestionConfigs200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetQuestionConfigs200Response( - status: APIStatus.fromJson(json[r'status'])!, - questionConfigs: QuestionConfig.listFromJson(json[r'questionConfigs']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetQuestionConfigs200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetQuestionConfigs200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetQuestionConfigs200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetQuestionConfigs200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'questionConfigs', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_question_configs_response.dart b/client/lib/model/get_question_configs_response.dart index 18bb2b0..ab261c5 100644 --- a/client/lib/model/get_question_configs_response.dart +++ b/client/lib/model/get_question_configs_response.dart @@ -24,13 +24,15 @@ class GetQuestionConfigsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetQuestionConfigsResponse && other.status == status && - _deepEquality.equals(other.questionConfigs, questionConfigs); + _deepEquality.equals(other.questionConfigs, questionConfigs); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (questionConfigs.hashCode); + (questionConfigs.hashCode); + @override String toString() => 'GetQuestionConfigsResponse[status=$status, questionConfigs=$questionConfigs]'; diff --git a/client/lib/model/get_question_result200_response.dart b/client/lib/model/get_question_result200_response.dart deleted file mode 100644 index 17c846c..0000000 --- a/client/lib/model/get_question_result200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetQuestionResult200Response { - /// Returns a new [GetQuestionResult200Response] instance. - GetQuestionResult200Response({ - required this.status, - required this.questionResult, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - QuestionResult questionResult; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetQuestionResult200Response && - other.status == status && - other.questionResult == questionResult && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (questionResult.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetQuestionResult200Response[status=$status, questionResult=$questionResult, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'questionResult'] = this.questionResult; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetQuestionResult200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetQuestionResult200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetQuestionResult200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetQuestionResult200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionResult'), 'Required key "GetQuestionResult200Response[questionResult]" is missing from JSON.'); - assert(json[r'questionResult'] != null, 'Required key "GetQuestionResult200Response[questionResult]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetQuestionResult200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetQuestionResult200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetQuestionResult200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetQuestionResult200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetQuestionResult200Response( - status: APIStatus.fromJson(json[r'status'])!, - questionResult: QuestionResult.fromJson(json[r'questionResult'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetQuestionResult200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetQuestionResult200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetQuestionResult200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetQuestionResult200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'questionResult', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_question_result_response.dart b/client/lib/model/get_question_result_response.dart index b85178b..654c978 100644 --- a/client/lib/model/get_question_result_response.dart +++ b/client/lib/model/get_question_result_response.dart @@ -24,13 +24,15 @@ class GetQuestionResultResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetQuestionResultResponse && other.status == status && - other.questionResult == questionResult; + other.questionResult == questionResult; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (questionResult.hashCode); + (questionResult.hashCode); + @override String toString() => 'GetQuestionResultResponse[status=$status, questionResult=$questionResult]'; diff --git a/client/lib/model/get_question_results200_response.dart b/client/lib/model/get_question_results200_response.dart deleted file mode 100644 index 42a7b18..0000000 --- a/client/lib/model/get_question_results200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetQuestionResults200Response { - /// Returns a new [GetQuestionResults200Response] instance. - GetQuestionResults200Response({ - required this.status, - this.questionResults = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List questionResults; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetQuestionResults200Response && - other.status == status && - _deepEquality.equals(other.questionResults, questionResults) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (questionResults.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetQuestionResults200Response[status=$status, questionResults=$questionResults, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'questionResults'] = this.questionResults; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetQuestionResults200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetQuestionResults200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetQuestionResults200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetQuestionResults200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionResults'), 'Required key "GetQuestionResults200Response[questionResults]" is missing from JSON.'); - assert(json[r'questionResults'] != null, 'Required key "GetQuestionResults200Response[questionResults]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetQuestionResults200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetQuestionResults200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetQuestionResults200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetQuestionResults200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetQuestionResults200Response( - status: APIStatus.fromJson(json[r'status'])!, - questionResults: QuestionResult.listFromJson(json[r'questionResults']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetQuestionResults200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetQuestionResults200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetQuestionResults200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetQuestionResults200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'questionResults', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_question_results_response.dart b/client/lib/model/get_question_results_response.dart index 336aee7..ce41bce 100644 --- a/client/lib/model/get_question_results_response.dart +++ b/client/lib/model/get_question_results_response.dart @@ -24,13 +24,15 @@ class GetQuestionResultsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetQuestionResultsResponse && other.status == status && - _deepEquality.equals(other.questionResults, questionResults); + _deepEquality.equals(other.questionResults, questionResults); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (questionResults.hashCode); + (questionResults.hashCode); + @override String toString() => 'GetQuestionResultsResponse[status=$status, questionResults=$questionResults]'; diff --git a/client/lib/model/get_sso_user_by_email_api_response.dart b/client/lib/model/get_sso_user_by_email_api_response.dart index a25a5c1..e890694 100644 --- a/client/lib/model/get_sso_user_by_email_api_response.dart +++ b/client/lib/model/get_sso_user_by_email_api_response.dart @@ -48,17 +48,19 @@ class GetSSOUserByEmailAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetSSOUserByEmailAPIResponse && other.reason == reason && - other.code == code && - other.user == user && - other.status == status; + other.code == code && + other.user == user && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (user == null ? 0 : user!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (user == null ? 0 : user!.hashCode) + + (status.hashCode); + @override String toString() => 'GetSSOUserByEmailAPIResponse[reason=$reason, code=$code, user=$user, status=$status]'; diff --git a/client/lib/model/get_sso_user_by_id_api_response.dart b/client/lib/model/get_sso_user_by_id_api_response.dart index 1654348..cb30ddf 100644 --- a/client/lib/model/get_sso_user_by_id_api_response.dart +++ b/client/lib/model/get_sso_user_by_id_api_response.dart @@ -48,17 +48,19 @@ class GetSSOUserByIdAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetSSOUserByIdAPIResponse && other.reason == reason && - other.code == code && - other.user == user && - other.status == status; + other.code == code && + other.user == user && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (user == null ? 0 : user!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (user == null ? 0 : user!.hashCode) + + (status.hashCode); + @override String toString() => 'GetSSOUserByIdAPIResponse[reason=$reason, code=$code, user=$user, status=$status]'; diff --git a/client/lib/model/get_sso_users200_response.dart b/client/lib/model/get_sso_users_response.dart similarity index 63% rename from client/lib/model/get_sso_users200_response.dart rename to client/lib/model/get_sso_users_response.dart index 0071411..02f0d48 100644 --- a/client/lib/model/get_sso_users200_response.dart +++ b/client/lib/model/get_sso_users_response.dart @@ -10,9 +10,9 @@ part of openapi.api; -class GetSSOUsers200Response { - /// Returns a new [GetSSOUsers200Response] instance. - GetSSOUsers200Response({ +class GetSSOUsersResponse { + /// Returns a new [GetSSOUsersResponse] instance. + GetSSOUsersResponse({ this.users = const [], required this.status, }); @@ -22,18 +22,20 @@ class GetSSOUsers200Response { String status; @override - bool operator ==(Object other) => identical(this, other) || other is GetSSOUsers200Response && + bool operator ==(Object other) => identical(this, other) || other is GetSSOUsersResponse && _deepEquality.equals(other.users, users) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (users.hashCode) + - (status.hashCode); + (status.hashCode); + @override - String toString() => 'GetSSOUsers200Response[users=$users, status=$status]'; + String toString() => 'GetSSOUsersResponse[users=$users, status=$status]'; Map toJson() { final json = {}; @@ -42,10 +44,10 @@ class GetSSOUsers200Response { return json; } - /// Returns a new [GetSSOUsers200Response] instance and imports its values from + /// Returns a new [GetSSOUsersResponse] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static GetSSOUsers200Response? fromJson(dynamic value) { + static GetSSOUsersResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -53,14 +55,14 @@ class GetSSOUsers200Response { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'users'), 'Required key "GetSSOUsers200Response[users]" is missing from JSON.'); - assert(json[r'users'] != null, 'Required key "GetSSOUsers200Response[users]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetSSOUsers200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetSSOUsers200Response[status]" has a null value in JSON.'); + assert(json.containsKey(r'users'), 'Required key "GetSSOUsersResponse[users]" is missing from JSON.'); + assert(json[r'users'] != null, 'Required key "GetSSOUsersResponse[users]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetSSOUsersResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetSSOUsersResponse[status]" has a null value in JSON.'); return true; }()); - return GetSSOUsers200Response( + return GetSSOUsersResponse( users: APISSOUser.listFromJson(json[r'users']), status: mapValueOfType(json, r'status')!, ); @@ -68,11 +70,11 @@ class GetSSOUsers200Response { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = GetSSOUsers200Response.fromJson(row); + final value = GetSSOUsersResponse.fromJson(row); if (value != null) { result.add(value); } @@ -81,12 +83,12 @@ class GetSSOUsers200Response { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = GetSSOUsers200Response.fromJson(entry.value); + final value = GetSSOUsersResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -95,14 +97,14 @@ class GetSSOUsers200Response { return map; } - // maps a json object with a list of GetSSOUsers200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of GetSSOUsersResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = GetSSOUsers200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = GetSSOUsersResponse.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/get_subscriptions_api_response.dart b/client/lib/model/get_subscriptions_api_response.dart index 775cf27..640f1bf 100644 --- a/client/lib/model/get_subscriptions_api_response.dart +++ b/client/lib/model/get_subscriptions_api_response.dart @@ -42,17 +42,19 @@ class GetSubscriptionsAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetSubscriptionsAPIResponse && other.reason == reason && - other.code == code && - _deepEquality.equals(other.subscriptions, subscriptions) && - other.status == status; + other.code == code && + _deepEquality.equals(other.subscriptions, subscriptions) && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (subscriptions.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (subscriptions.hashCode) + + (status.hashCode); + @override String toString() => 'GetSubscriptionsAPIResponse[reason=$reason, code=$code, subscriptions=$subscriptions, status=$status]'; diff --git a/client/lib/model/get_tenant200_response.dart b/client/lib/model/get_tenant200_response.dart deleted file mode 100644 index d23e127..0000000 --- a/client/lib/model/get_tenant200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTenant200Response { - /// Returns a new [GetTenant200Response] instance. - GetTenant200Response({ - required this.status, - required this.tenant, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - APITenant tenant; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTenant200Response && - other.status == status && - other.tenant == tenant && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenant.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTenant200Response[status=$status, tenant=$tenant, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenant'] = this.tenant; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTenant200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTenant200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTenant200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenant200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenant'), 'Required key "GetTenant200Response[tenant]" is missing from JSON.'); - assert(json[r'tenant'] != null, 'Required key "GetTenant200Response[tenant]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTenant200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTenant200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTenant200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTenant200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTenant200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenant: APITenant.fromJson(json[r'tenant'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTenant200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTenant200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTenant200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTenant200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenant', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_tenant_daily_usages200_response.dart b/client/lib/model/get_tenant_daily_usages200_response.dart deleted file mode 100644 index e077c42..0000000 --- a/client/lib/model/get_tenant_daily_usages200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTenantDailyUsages200Response { - /// Returns a new [GetTenantDailyUsages200Response] instance. - GetTenantDailyUsages200Response({ - required this.status, - this.tenantDailyUsages = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List tenantDailyUsages; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTenantDailyUsages200Response && - other.status == status && - _deepEquality.equals(other.tenantDailyUsages, tenantDailyUsages) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenantDailyUsages.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTenantDailyUsages200Response[status=$status, tenantDailyUsages=$tenantDailyUsages, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenantDailyUsages'] = this.tenantDailyUsages; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTenantDailyUsages200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTenantDailyUsages200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTenantDailyUsages200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantDailyUsages200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantDailyUsages'), 'Required key "GetTenantDailyUsages200Response[tenantDailyUsages]" is missing from JSON.'); - assert(json[r'tenantDailyUsages'] != null, 'Required key "GetTenantDailyUsages200Response[tenantDailyUsages]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTenantDailyUsages200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTenantDailyUsages200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTenantDailyUsages200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTenantDailyUsages200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTenantDailyUsages200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenantDailyUsages: APITenantDailyUsage.listFromJson(json[r'tenantDailyUsages']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTenantDailyUsages200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTenantDailyUsages200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTenantDailyUsages200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTenantDailyUsages200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenantDailyUsages', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_tenant_daily_usages_response.dart b/client/lib/model/get_tenant_daily_usages_response.dart index d245598..f817d46 100644 --- a/client/lib/model/get_tenant_daily_usages_response.dart +++ b/client/lib/model/get_tenant_daily_usages_response.dart @@ -24,13 +24,15 @@ class GetTenantDailyUsagesResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTenantDailyUsagesResponse && other.status == status && - _deepEquality.equals(other.tenantDailyUsages, tenantDailyUsages); + _deepEquality.equals(other.tenantDailyUsages, tenantDailyUsages); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenantDailyUsages.hashCode); + (tenantDailyUsages.hashCode); + @override String toString() => 'GetTenantDailyUsagesResponse[status=$status, tenantDailyUsages=$tenantDailyUsages]'; diff --git a/client/lib/model/get_tenant_manual_badges_response.dart b/client/lib/model/get_tenant_manual_badges_response.dart new file mode 100644 index 0000000..2590609 --- /dev/null +++ b/client/lib/model/get_tenant_manual_badges_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetTenantManualBadgesResponse { + /// Returns a new [GetTenantManualBadgesResponse] instance. + GetTenantManualBadgesResponse({ + this.badges = const [], + required this.status, + }); + + List badges; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetTenantManualBadgesResponse && + _deepEquality.equals(other.badges, badges) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (badges.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetTenantManualBadgesResponse[badges=$badges, status=$status]'; + + Map toJson() { + final json = {}; + json[r'badges'] = this.badges; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetTenantManualBadgesResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetTenantManualBadgesResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'badges'), 'Required key "GetTenantManualBadgesResponse[badges]" is missing from JSON.'); + assert(json[r'badges'] != null, 'Required key "GetTenantManualBadgesResponse[badges]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetTenantManualBadgesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTenantManualBadgesResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetTenantManualBadgesResponse( + badges: TenantBadge.listFromJson(json[r'badges']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetTenantManualBadgesResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetTenantManualBadgesResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetTenantManualBadgesResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetTenantManualBadgesResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'badges', + 'status', + }; +} + diff --git a/client/lib/model/get_tenant_package200_response.dart b/client/lib/model/get_tenant_package200_response.dart deleted file mode 100644 index 1020ea7..0000000 --- a/client/lib/model/get_tenant_package200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTenantPackage200Response { - /// Returns a new [GetTenantPackage200Response] instance. - GetTenantPackage200Response({ - required this.status, - required this.tenantPackage, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - TenantPackage tenantPackage; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTenantPackage200Response && - other.status == status && - other.tenantPackage == tenantPackage && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenantPackage.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTenantPackage200Response[status=$status, tenantPackage=$tenantPackage, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenantPackage'] = this.tenantPackage; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTenantPackage200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTenantPackage200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTenantPackage200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantPackage200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantPackage'), 'Required key "GetTenantPackage200Response[tenantPackage]" is missing from JSON.'); - assert(json[r'tenantPackage'] != null, 'Required key "GetTenantPackage200Response[tenantPackage]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTenantPackage200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTenantPackage200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTenantPackage200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTenantPackage200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTenantPackage200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenantPackage: TenantPackage.fromJson(json[r'tenantPackage'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTenantPackage200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTenantPackage200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTenantPackage200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTenantPackage200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenantPackage', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_tenant_package_response.dart b/client/lib/model/get_tenant_package_response.dart index e2089ff..e8a606e 100644 --- a/client/lib/model/get_tenant_package_response.dart +++ b/client/lib/model/get_tenant_package_response.dart @@ -24,13 +24,15 @@ class GetTenantPackageResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTenantPackageResponse && other.status == status && - other.tenantPackage == tenantPackage; + other.tenantPackage == tenantPackage; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenantPackage.hashCode); + (tenantPackage.hashCode); + @override String toString() => 'GetTenantPackageResponse[status=$status, tenantPackage=$tenantPackage]'; diff --git a/client/lib/model/get_tenant_packages200_response.dart b/client/lib/model/get_tenant_packages200_response.dart deleted file mode 100644 index f653853..0000000 --- a/client/lib/model/get_tenant_packages200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTenantPackages200Response { - /// Returns a new [GetTenantPackages200Response] instance. - GetTenantPackages200Response({ - required this.status, - this.tenantPackages = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List tenantPackages; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTenantPackages200Response && - other.status == status && - _deepEquality.equals(other.tenantPackages, tenantPackages) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenantPackages.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTenantPackages200Response[status=$status, tenantPackages=$tenantPackages, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenantPackages'] = this.tenantPackages; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTenantPackages200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTenantPackages200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTenantPackages200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantPackages200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantPackages'), 'Required key "GetTenantPackages200Response[tenantPackages]" is missing from JSON.'); - assert(json[r'tenantPackages'] != null, 'Required key "GetTenantPackages200Response[tenantPackages]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTenantPackages200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTenantPackages200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTenantPackages200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTenantPackages200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTenantPackages200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenantPackages: TenantPackage.listFromJson(json[r'tenantPackages']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTenantPackages200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTenantPackages200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTenantPackages200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTenantPackages200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenantPackages', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_tenant_packages_response.dart b/client/lib/model/get_tenant_packages_response.dart index 472c7da..dc83a5e 100644 --- a/client/lib/model/get_tenant_packages_response.dart +++ b/client/lib/model/get_tenant_packages_response.dart @@ -24,13 +24,15 @@ class GetTenantPackagesResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTenantPackagesResponse && other.status == status && - _deepEquality.equals(other.tenantPackages, tenantPackages); + _deepEquality.equals(other.tenantPackages, tenantPackages); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenantPackages.hashCode); + (tenantPackages.hashCode); + @override String toString() => 'GetTenantPackagesResponse[status=$status, tenantPackages=$tenantPackages]'; diff --git a/client/lib/model/get_tenant_response.dart b/client/lib/model/get_tenant_response.dart index a8438cd..38132f5 100644 --- a/client/lib/model/get_tenant_response.dart +++ b/client/lib/model/get_tenant_response.dart @@ -24,13 +24,15 @@ class GetTenantResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTenantResponse && other.status == status && - other.tenant == tenant; + other.tenant == tenant; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenant.hashCode); + (tenant.hashCode); + @override String toString() => 'GetTenantResponse[status=$status, tenant=$tenant]'; diff --git a/client/lib/model/get_tenant_user200_response.dart b/client/lib/model/get_tenant_user200_response.dart deleted file mode 100644 index 0574c1e..0000000 --- a/client/lib/model/get_tenant_user200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTenantUser200Response { - /// Returns a new [GetTenantUser200Response] instance. - GetTenantUser200Response({ - required this.status, - required this.tenantUser, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - User tenantUser; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTenantUser200Response && - other.status == status && - other.tenantUser == tenantUser && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenantUser.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTenantUser200Response[status=$status, tenantUser=$tenantUser, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenantUser'] = this.tenantUser; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTenantUser200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTenantUser200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTenantUser200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantUser200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantUser'), 'Required key "GetTenantUser200Response[tenantUser]" is missing from JSON.'); - assert(json[r'tenantUser'] != null, 'Required key "GetTenantUser200Response[tenantUser]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTenantUser200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTenantUser200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTenantUser200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTenantUser200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTenantUser200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenantUser: User.fromJson(json[r'tenantUser'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTenantUser200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTenantUser200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTenantUser200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTenantUser200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenantUser', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_tenant_user_response.dart b/client/lib/model/get_tenant_user_response.dart index fc14398..738f38a 100644 --- a/client/lib/model/get_tenant_user_response.dart +++ b/client/lib/model/get_tenant_user_response.dart @@ -24,13 +24,15 @@ class GetTenantUserResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTenantUserResponse && other.status == status && - other.tenantUser == tenantUser; + other.tenantUser == tenantUser; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenantUser.hashCode); + (tenantUser.hashCode); + @override String toString() => 'GetTenantUserResponse[status=$status, tenantUser=$tenantUser]'; diff --git a/client/lib/model/get_tenant_users200_response.dart b/client/lib/model/get_tenant_users200_response.dart deleted file mode 100644 index d2d97de..0000000 --- a/client/lib/model/get_tenant_users200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTenantUsers200Response { - /// Returns a new [GetTenantUsers200Response] instance. - GetTenantUsers200Response({ - required this.status, - this.tenantUsers = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List tenantUsers; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTenantUsers200Response && - other.status == status && - _deepEquality.equals(other.tenantUsers, tenantUsers) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenantUsers.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTenantUsers200Response[status=$status, tenantUsers=$tenantUsers, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenantUsers'] = this.tenantUsers; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTenantUsers200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTenantUsers200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTenantUsers200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantUsers200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantUsers'), 'Required key "GetTenantUsers200Response[tenantUsers]" is missing from JSON.'); - assert(json[r'tenantUsers'] != null, 'Required key "GetTenantUsers200Response[tenantUsers]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTenantUsers200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTenantUsers200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTenantUsers200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTenantUsers200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTenantUsers200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenantUsers: User.listFromJson(json[r'tenantUsers']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTenantUsers200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTenantUsers200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTenantUsers200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTenantUsers200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenantUsers', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_tenant_users_response.dart b/client/lib/model/get_tenant_users_response.dart index dabc562..fc4e4a2 100644 --- a/client/lib/model/get_tenant_users_response.dart +++ b/client/lib/model/get_tenant_users_response.dart @@ -24,13 +24,15 @@ class GetTenantUsersResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTenantUsersResponse && other.status == status && - _deepEquality.equals(other.tenantUsers, tenantUsers); + _deepEquality.equals(other.tenantUsers, tenantUsers); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenantUsers.hashCode); + (tenantUsers.hashCode); + @override String toString() => 'GetTenantUsersResponse[status=$status, tenantUsers=$tenantUsers]'; diff --git a/client/lib/model/get_tenants200_response.dart b/client/lib/model/get_tenants200_response.dart deleted file mode 100644 index 1f42609..0000000 --- a/client/lib/model/get_tenants200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTenants200Response { - /// Returns a new [GetTenants200Response] instance. - GetTenants200Response({ - required this.status, - this.tenants = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List tenants; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTenants200Response && - other.status == status && - _deepEquality.equals(other.tenants, tenants) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tenants.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTenants200Response[status=$status, tenants=$tenants, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tenants'] = this.tenants; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTenants200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTenants200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTenants200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenants200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenants'), 'Required key "GetTenants200Response[tenants]" is missing from JSON.'); - assert(json[r'tenants'] != null, 'Required key "GetTenants200Response[tenants]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTenants200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTenants200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTenants200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTenants200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTenants200Response( - status: APIStatus.fromJson(json[r'status'])!, - tenants: APITenant.listFromJson(json[r'tenants']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTenants200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTenants200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTenants200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTenants200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tenants', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_tenants_response.dart b/client/lib/model/get_tenants_response.dart index 6547fec..d782af0 100644 --- a/client/lib/model/get_tenants_response.dart +++ b/client/lib/model/get_tenants_response.dart @@ -24,13 +24,15 @@ class GetTenantsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTenantsResponse && other.status == status && - _deepEquality.equals(other.tenants, tenants); + _deepEquality.equals(other.tenants, tenants); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tenants.hashCode); + (tenants.hashCode); + @override String toString() => 'GetTenantsResponse[status=$status, tenants=$tenants]'; diff --git a/client/lib/model/get_ticket200_response.dart b/client/lib/model/get_ticket200_response.dart deleted file mode 100644 index 9121dbb..0000000 --- a/client/lib/model/get_ticket200_response.dart +++ /dev/null @@ -1,234 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTicket200Response { - /// Returns a new [GetTicket200Response] instance. - GetTicket200Response({ - required this.status, - required this.ticket, - this.availableStates = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - APITicketDetail ticket; - - List availableStates; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTicket200Response && - other.status == status && - other.ticket == ticket && - _deepEquality.equals(other.availableStates, availableStates) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (ticket.hashCode) + - (availableStates.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTicket200Response[status=$status, ticket=$ticket, availableStates=$availableStates, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'ticket'] = this.ticket; - json[r'availableStates'] = this.availableStates; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTicket200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTicket200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTicket200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTicket200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'ticket'), 'Required key "GetTicket200Response[ticket]" is missing from JSON.'); - assert(json[r'ticket'] != null, 'Required key "GetTicket200Response[ticket]" has a null value in JSON.'); - assert(json.containsKey(r'availableStates'), 'Required key "GetTicket200Response[availableStates]" is missing from JSON.'); - assert(json[r'availableStates'] != null, 'Required key "GetTicket200Response[availableStates]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTicket200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTicket200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTicket200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTicket200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTicket200Response( - status: APIStatus.fromJson(json[r'status'])!, - ticket: APITicketDetail.fromJson(json[r'ticket'])!, - availableStates: json[r'availableStates'] is Iterable - ? (json[r'availableStates'] as Iterable).cast().toList(growable: false) - : const [], - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTicket200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTicket200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTicket200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTicket200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'ticket', - 'availableStates', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_ticket_response.dart b/client/lib/model/get_ticket_response.dart index a319ec8..d886c95 100644 --- a/client/lib/model/get_ticket_response.dart +++ b/client/lib/model/get_ticket_response.dart @@ -27,15 +27,17 @@ class GetTicketResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTicketResponse && other.status == status && - other.ticket == ticket && - _deepEquality.equals(other.availableStates, availableStates); + other.ticket == ticket && + _deepEquality.equals(other.availableStates, availableStates); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (ticket.hashCode) + - (availableStates.hashCode); + (ticket.hashCode) + + (availableStates.hashCode); + @override String toString() => 'GetTicketResponse[status=$status, ticket=$ticket, availableStates=$availableStates]'; diff --git a/client/lib/model/get_tickets200_response.dart b/client/lib/model/get_tickets200_response.dart deleted file mode 100644 index e25c622..0000000 --- a/client/lib/model/get_tickets200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetTickets200Response { - /// Returns a new [GetTickets200Response] instance. - GetTickets200Response({ - required this.status, - this.tickets = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List tickets; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetTickets200Response && - other.status == status && - _deepEquality.equals(other.tickets, tickets) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (tickets.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetTickets200Response[status=$status, tickets=$tickets, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'tickets'] = this.tickets; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetTickets200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetTickets200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetTickets200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTickets200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'tickets'), 'Required key "GetTickets200Response[tickets]" is missing from JSON.'); - assert(json[r'tickets'] != null, 'Required key "GetTickets200Response[tickets]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetTickets200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetTickets200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetTickets200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetTickets200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetTickets200Response( - status: APIStatus.fromJson(json[r'status'])!, - tickets: APITicket.listFromJson(json[r'tickets']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetTickets200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetTickets200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetTickets200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetTickets200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'tickets', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_tickets_response.dart b/client/lib/model/get_tickets_response.dart index cf3119e..2908e15 100644 --- a/client/lib/model/get_tickets_response.dart +++ b/client/lib/model/get_tickets_response.dart @@ -24,13 +24,15 @@ class GetTicketsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTicketsResponse && other.status == status && - _deepEquality.equals(other.tickets, tickets); + _deepEquality.equals(other.tickets, tickets); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (tickets.hashCode); + (tickets.hashCode); + @override String toString() => 'GetTicketsResponse[status=$status, tickets=$tickets]'; diff --git a/client/lib/model/get_translations_response.dart b/client/lib/model/get_translations_response.dart new file mode 100644 index 0000000..a990948 --- /dev/null +++ b/client/lib/model/get_translations_response.dart @@ -0,0 +1,120 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetTranslationsResponse { + /// Returns a new [GetTranslationsResponse] instance. + GetTranslationsResponse({ + this.translations = const {}, + required this.status, + }); + + /// Construct a type with a set of properties K of type T + Map translations; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetTranslationsResponse && + _deepEquality.equals(other.translations, translations) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (translations.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetTranslationsResponse[translations=$translations, status=$status]'; + + Map toJson() { + final json = {}; + json[r'translations'] = this.translations; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetTranslationsResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetTranslationsResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'translations'), 'Required key "GetTranslationsResponse[translations]" is missing from JSON.'); + assert(json[r'translations'] != null, 'Required key "GetTranslationsResponse[translations]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetTranslationsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTranslationsResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetTranslationsResponse( + translations: mapCastOfType(json, r'translations')!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetTranslationsResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetTranslationsResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetTranslationsResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetTranslationsResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'translations', + 'status', + }; +} + diff --git a/client/lib/model/get_user200_response.dart b/client/lib/model/get_user200_response.dart deleted file mode 100644 index d974777..0000000 --- a/client/lib/model/get_user200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUser200Response { - /// Returns a new [GetUser200Response] instance. - GetUser200Response({ - required this.status, - required this.user, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - User user; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUser200Response && - other.status == status && - other.user == user && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (user.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUser200Response[status=$status, user=$user, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'user'] = this.user; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUser200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUser200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetUser200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUser200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "GetUser200Response[user]" is missing from JSON.'); - assert(json[r'user'] != null, 'Required key "GetUser200Response[user]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUser200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUser200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUser200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUser200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUser200Response( - status: APIStatus.fromJson(json[r'status'])!, - user: User.fromJson(json[r'user'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUser200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUser200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUser200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUser200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'user', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_badge200_response.dart b/client/lib/model/get_user_badge200_response.dart deleted file mode 100644 index 5d84c14..0000000 --- a/client/lib/model/get_user_badge200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUserBadge200Response { - /// Returns a new [GetUserBadge200Response] instance. - GetUserBadge200Response({ - required this.status, - required this.userBadge, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - UserBadge userBadge; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUserBadge200Response && - other.status == status && - other.userBadge == userBadge && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (userBadge.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUserBadge200Response[status=$status, userBadge=$userBadge, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'userBadge'] = this.userBadge; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUserBadge200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUserBadge200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetUserBadge200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserBadge200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadge'), 'Required key "GetUserBadge200Response[userBadge]" is missing from JSON.'); - assert(json[r'userBadge'] != null, 'Required key "GetUserBadge200Response[userBadge]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUserBadge200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUserBadge200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUserBadge200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUserBadge200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUserBadge200Response( - status: APIStatus.fromJson(json[r'status'])!, - userBadge: UserBadge.fromJson(json[r'userBadge'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUserBadge200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUserBadge200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUserBadge200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUserBadge200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'userBadge', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_badge_progress_by_id200_response.dart b/client/lib/model/get_user_badge_progress_by_id200_response.dart deleted file mode 100644 index ff78edc..0000000 --- a/client/lib/model/get_user_badge_progress_by_id200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUserBadgeProgressById200Response { - /// Returns a new [GetUserBadgeProgressById200Response] instance. - GetUserBadgeProgressById200Response({ - required this.status, - required this.userBadgeProgress, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - UserBadgeProgress userBadgeProgress; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUserBadgeProgressById200Response && - other.status == status && - other.userBadgeProgress == userBadgeProgress && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (userBadgeProgress.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUserBadgeProgressById200Response[status=$status, userBadgeProgress=$userBadgeProgress, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'userBadgeProgress'] = this.userBadgeProgress; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUserBadgeProgressById200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUserBadgeProgressById200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetUserBadgeProgressById200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserBadgeProgressById200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadgeProgress'), 'Required key "GetUserBadgeProgressById200Response[userBadgeProgress]" is missing from JSON.'); - assert(json[r'userBadgeProgress'] != null, 'Required key "GetUserBadgeProgressById200Response[userBadgeProgress]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUserBadgeProgressById200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUserBadgeProgressById200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUserBadgeProgressById200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUserBadgeProgressById200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUserBadgeProgressById200Response( - status: APIStatus.fromJson(json[r'status'])!, - userBadgeProgress: UserBadgeProgress.fromJson(json[r'userBadgeProgress'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUserBadgeProgressById200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUserBadgeProgressById200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUserBadgeProgressById200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUserBadgeProgressById200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'userBadgeProgress', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_badge_progress_list200_response.dart b/client/lib/model/get_user_badge_progress_list200_response.dart deleted file mode 100644 index 5fa90ca..0000000 --- a/client/lib/model/get_user_badge_progress_list200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUserBadgeProgressList200Response { - /// Returns a new [GetUserBadgeProgressList200Response] instance. - GetUserBadgeProgressList200Response({ - required this.status, - this.userBadgeProgresses = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List userBadgeProgresses; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUserBadgeProgressList200Response && - other.status == status && - _deepEquality.equals(other.userBadgeProgresses, userBadgeProgresses) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (userBadgeProgresses.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUserBadgeProgressList200Response[status=$status, userBadgeProgresses=$userBadgeProgresses, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'userBadgeProgresses'] = this.userBadgeProgresses; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUserBadgeProgressList200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUserBadgeProgressList200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetUserBadgeProgressList200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserBadgeProgressList200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadgeProgresses'), 'Required key "GetUserBadgeProgressList200Response[userBadgeProgresses]" is missing from JSON.'); - assert(json[r'userBadgeProgresses'] != null, 'Required key "GetUserBadgeProgressList200Response[userBadgeProgresses]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUserBadgeProgressList200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUserBadgeProgressList200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUserBadgeProgressList200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUserBadgeProgressList200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUserBadgeProgressList200Response( - status: APIStatus.fromJson(json[r'status'])!, - userBadgeProgresses: UserBadgeProgress.listFromJson(json[r'userBadgeProgresses']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUserBadgeProgressList200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUserBadgeProgressList200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUserBadgeProgressList200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUserBadgeProgressList200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'userBadgeProgresses', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_badges200_response.dart b/client/lib/model/get_user_badges200_response.dart deleted file mode 100644 index 13e2b4c..0000000 --- a/client/lib/model/get_user_badges200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUserBadges200Response { - /// Returns a new [GetUserBadges200Response] instance. - GetUserBadges200Response({ - required this.status, - this.userBadges = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List userBadges; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUserBadges200Response && - other.status == status && - _deepEquality.equals(other.userBadges, userBadges) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (userBadges.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUserBadges200Response[status=$status, userBadges=$userBadges, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'userBadges'] = this.userBadges; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUserBadges200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUserBadges200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetUserBadges200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserBadges200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadges'), 'Required key "GetUserBadges200Response[userBadges]" is missing from JSON.'); - assert(json[r'userBadges'] != null, 'Required key "GetUserBadges200Response[userBadges]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUserBadges200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUserBadges200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUserBadges200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUserBadges200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUserBadges200Response( - status: APIStatus.fromJson(json[r'status'])!, - userBadges: UserBadge.listFromJson(json[r'userBadges']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUserBadges200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUserBadges200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUserBadges200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUserBadges200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'userBadges', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_internal_profile_response.dart b/client/lib/model/get_user_internal_profile_response.dart new file mode 100644 index 0000000..c8636c8 --- /dev/null +++ b/client/lib/model/get_user_internal_profile_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetUserInternalProfileResponse { + /// Returns a new [GetUserInternalProfileResponse] instance. + GetUserInternalProfileResponse({ + required this.profile, + required this.status, + }); + + GetUserInternalProfileResponseProfile profile; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetUserInternalProfileResponse && + other.profile == profile && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (profile.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetUserInternalProfileResponse[profile=$profile, status=$status]'; + + Map toJson() { + final json = {}; + json[r'profile'] = this.profile; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetUserInternalProfileResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetUserInternalProfileResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'profile'), 'Required key "GetUserInternalProfileResponse[profile]" is missing from JSON.'); + assert(json[r'profile'] != null, 'Required key "GetUserInternalProfileResponse[profile]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetUserInternalProfileResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetUserInternalProfileResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetUserInternalProfileResponse( + profile: GetUserInternalProfileResponseProfile.fromJson(json[r'profile'])!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetUserInternalProfileResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetUserInternalProfileResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetUserInternalProfileResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetUserInternalProfileResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'profile', + 'status', + }; +} + diff --git a/client/lib/model/get_user_internal_profile_response_profile.dart b/client/lib/model/get_user_internal_profile_response_profile.dart new file mode 100644 index 0000000..6567284 --- /dev/null +++ b/client/lib/model/get_user_internal_profile_response_profile.dart @@ -0,0 +1,346 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetUserInternalProfileResponseProfile { + /// Returns a new [GetUserInternalProfileResponseProfile] instance. + GetUserInternalProfileResponseProfile({ + this.commenterName, + this.firstCommentDate, + this.ipHash, + this.countryFlag, + this.countryCode, + this.websiteUrl, + this.bio, + this.karma, + this.locale, + this.verified, + this.avatarSrc, + this.displayName, + this.username, + this.commenterEmail, + this.email, + this.anonUserId, + this.userId, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? commenterName; + + DateTime? firstCommentDate; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? ipHash; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? countryFlag; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? countryCode; + + String? websiteUrl; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? bio; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + double? karma; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? locale; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? verified; + + String? avatarSrc; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? displayName; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? username; + + String? commenterEmail; + + String? email; + + String? anonUserId; + + String? userId; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetUserInternalProfileResponseProfile && + other.commenterName == commenterName && + other.firstCommentDate == firstCommentDate && + other.ipHash == ipHash && + other.countryFlag == countryFlag && + other.countryCode == countryCode && + other.websiteUrl == websiteUrl && + other.bio == bio && + other.karma == karma && + other.locale == locale && + other.verified == verified && + other.avatarSrc == avatarSrc && + other.displayName == displayName && + other.username == username && + other.commenterEmail == commenterEmail && + other.email == email && + other.anonUserId == anonUserId && + other.userId == userId; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (commenterName == null ? 0 : commenterName!.hashCode) + + (firstCommentDate == null ? 0 : firstCommentDate!.hashCode) + + (ipHash == null ? 0 : ipHash!.hashCode) + + (countryFlag == null ? 0 : countryFlag!.hashCode) + + (countryCode == null ? 0 : countryCode!.hashCode) + + (websiteUrl == null ? 0 : websiteUrl!.hashCode) + + (bio == null ? 0 : bio!.hashCode) + + (karma == null ? 0 : karma!.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (verified == null ? 0 : verified!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (username == null ? 0 : username!.hashCode) + + (commenterEmail == null ? 0 : commenterEmail!.hashCode) + + (email == null ? 0 : email!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (userId == null ? 0 : userId!.hashCode); + + + @override + String toString() => 'GetUserInternalProfileResponseProfile[commenterName=$commenterName, firstCommentDate=$firstCommentDate, ipHash=$ipHash, countryFlag=$countryFlag, countryCode=$countryCode, websiteUrl=$websiteUrl, bio=$bio, karma=$karma, locale=$locale, verified=$verified, avatarSrc=$avatarSrc, displayName=$displayName, username=$username, commenterEmail=$commenterEmail, email=$email, anonUserId=$anonUserId, userId=$userId]'; + + Map toJson() { + final json = {}; + if (this.commenterName != null) { + json[r'commenterName'] = this.commenterName; + } else { + json[r'commenterName'] = null; + } + if (this.firstCommentDate != null) { + json[r'firstCommentDate'] = this.firstCommentDate!.toUtc().toIso8601String(); + } else { + json[r'firstCommentDate'] = null; + } + if (this.ipHash != null) { + json[r'ipHash'] = this.ipHash; + } else { + json[r'ipHash'] = null; + } + if (this.countryFlag != null) { + json[r'countryFlag'] = this.countryFlag; + } else { + json[r'countryFlag'] = null; + } + if (this.countryCode != null) { + json[r'countryCode'] = this.countryCode; + } else { + json[r'countryCode'] = null; + } + if (this.websiteUrl != null) { + json[r'websiteUrl'] = this.websiteUrl; + } else { + json[r'websiteUrl'] = null; + } + if (this.bio != null) { + json[r'bio'] = this.bio; + } else { + json[r'bio'] = null; + } + if (this.karma != null) { + json[r'karma'] = this.karma; + } else { + json[r'karma'] = null; + } + if (this.locale != null) { + json[r'locale'] = this.locale; + } else { + json[r'locale'] = null; + } + if (this.verified != null) { + json[r'verified'] = this.verified; + } else { + json[r'verified'] = null; + } + if (this.avatarSrc != null) { + json[r'avatarSrc'] = this.avatarSrc; + } else { + json[r'avatarSrc'] = null; + } + if (this.displayName != null) { + json[r'displayName'] = this.displayName; + } else { + json[r'displayName'] = null; + } + if (this.username != null) { + json[r'username'] = this.username; + } else { + json[r'username'] = null; + } + if (this.commenterEmail != null) { + json[r'commenterEmail'] = this.commenterEmail; + } else { + json[r'commenterEmail'] = null; + } + if (this.email != null) { + json[r'email'] = this.email; + } else { + json[r'email'] = null; + } + if (this.anonUserId != null) { + json[r'anonUserId'] = this.anonUserId; + } else { + json[r'anonUserId'] = null; + } + if (this.userId != null) { + json[r'userId'] = this.userId; + } else { + json[r'userId'] = null; + } + return json; + } + + /// Returns a new [GetUserInternalProfileResponseProfile] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetUserInternalProfileResponseProfile? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + return true; + }()); + + return GetUserInternalProfileResponseProfile( + commenterName: mapValueOfType(json, r'commenterName'), + firstCommentDate: mapDateTime(json, r'firstCommentDate', r''), + ipHash: mapValueOfType(json, r'ipHash'), + countryFlag: mapValueOfType(json, r'countryFlag'), + countryCode: mapValueOfType(json, r'countryCode'), + websiteUrl: mapValueOfType(json, r'websiteUrl'), + bio: mapValueOfType(json, r'bio'), + karma: mapValueOfType(json, r'karma'), + locale: mapValueOfType(json, r'locale'), + verified: mapValueOfType(json, r'verified'), + avatarSrc: mapValueOfType(json, r'avatarSrc'), + displayName: mapValueOfType(json, r'displayName'), + username: mapValueOfType(json, r'username'), + commenterEmail: mapValueOfType(json, r'commenterEmail'), + email: mapValueOfType(json, r'email'), + anonUserId: mapValueOfType(json, r'anonUserId'), + userId: mapValueOfType(json, r'userId'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetUserInternalProfileResponseProfile.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetUserInternalProfileResponseProfile.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetUserInternalProfileResponseProfile-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetUserInternalProfileResponseProfile.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/client/lib/model/get_user_manual_badges_response.dart b/client/lib/model/get_user_manual_badges_response.dart new file mode 100644 index 0000000..89880b3 --- /dev/null +++ b/client/lib/model/get_user_manual_badges_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetUserManualBadgesResponse { + /// Returns a new [GetUserManualBadgesResponse] instance. + GetUserManualBadgesResponse({ + this.badges = const [], + required this.status, + }); + + List badges; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetUserManualBadgesResponse && + _deepEquality.equals(other.badges, badges) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (badges.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetUserManualBadgesResponse[badges=$badges, status=$status]'; + + Map toJson() { + final json = {}; + json[r'badges'] = this.badges; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetUserManualBadgesResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetUserManualBadgesResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'badges'), 'Required key "GetUserManualBadgesResponse[badges]" is missing from JSON.'); + assert(json[r'badges'] != null, 'Required key "GetUserManualBadgesResponse[badges]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetUserManualBadgesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetUserManualBadgesResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetUserManualBadgesResponse( + badges: UserBadge.listFromJson(json[r'badges']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetUserManualBadgesResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetUserManualBadgesResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetUserManualBadgesResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetUserManualBadgesResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'badges', + 'status', + }; +} + diff --git a/client/lib/model/get_user_notification_count200_response.dart b/client/lib/model/get_user_notification_count200_response.dart deleted file mode 100644 index 1b7af2b..0000000 --- a/client/lib/model/get_user_notification_count200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUserNotificationCount200Response { - /// Returns a new [GetUserNotificationCount200Response] instance. - GetUserNotificationCount200Response({ - required this.status, - required this.count, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - int count; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUserNotificationCount200Response && - other.status == status && - other.count == count && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (count.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUserNotificationCount200Response[status=$status, count=$count, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'count'] = this.count; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUserNotificationCount200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUserNotificationCount200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetUserNotificationCount200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserNotificationCount200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "GetUserNotificationCount200Response[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "GetUserNotificationCount200Response[count]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUserNotificationCount200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUserNotificationCount200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUserNotificationCount200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUserNotificationCount200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUserNotificationCount200Response( - status: APIStatus.fromJson(json[r'status'])!, - count: mapValueOfType(json, r'count')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUserNotificationCount200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUserNotificationCount200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUserNotificationCount200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUserNotificationCount200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'count', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_notification_count_response.dart b/client/lib/model/get_user_notification_count_response.dart index a5ebb4c..2477c69 100644 --- a/client/lib/model/get_user_notification_count_response.dart +++ b/client/lib/model/get_user_notification_count_response.dart @@ -24,13 +24,15 @@ class GetUserNotificationCountResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetUserNotificationCountResponse && other.status == status && - other.count == count; + other.count == count; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (count.hashCode); + (count.hashCode); + @override String toString() => 'GetUserNotificationCountResponse[status=$status, count=$count]'; diff --git a/client/lib/model/get_user_notifications200_response.dart b/client/lib/model/get_user_notifications200_response.dart deleted file mode 100644 index 5c38529..0000000 --- a/client/lib/model/get_user_notifications200_response.dart +++ /dev/null @@ -1,250 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUserNotifications200Response { - /// Returns a new [GetUserNotifications200Response] instance. - GetUserNotifications200Response({ - this.translations = const {}, - required this.isSubscribed, - required this.hasMore, - this.notifications = const [], - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - /// Construct a type with a set of properties K of type T - Map translations; - - bool isSubscribed; - - bool hasMore; - - List notifications; - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUserNotifications200Response && - _deepEquality.equals(other.translations, translations) && - other.isSubscribed == isSubscribed && - other.hasMore == hasMore && - _deepEquality.equals(other.notifications, notifications) && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (translations.hashCode) + - (isSubscribed.hashCode) + - (hasMore.hashCode) + - (notifications.hashCode) + - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUserNotifications200Response[translations=$translations, isSubscribed=$isSubscribed, hasMore=$hasMore, notifications=$notifications, status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'translations'] = this.translations; - json[r'isSubscribed'] = this.isSubscribed; - json[r'hasMore'] = this.hasMore; - json[r'notifications'] = this.notifications; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUserNotifications200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUserNotifications200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'isSubscribed'), 'Required key "GetUserNotifications200Response[isSubscribed]" is missing from JSON.'); - assert(json[r'isSubscribed'] != null, 'Required key "GetUserNotifications200Response[isSubscribed]" has a null value in JSON.'); - assert(json.containsKey(r'hasMore'), 'Required key "GetUserNotifications200Response[hasMore]" is missing from JSON.'); - assert(json[r'hasMore'] != null, 'Required key "GetUserNotifications200Response[hasMore]" has a null value in JSON.'); - assert(json.containsKey(r'notifications'), 'Required key "GetUserNotifications200Response[notifications]" is missing from JSON.'); - assert(json[r'notifications'] != null, 'Required key "GetUserNotifications200Response[notifications]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetUserNotifications200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserNotifications200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUserNotifications200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUserNotifications200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUserNotifications200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUserNotifications200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUserNotifications200Response( - translations: mapCastOfType(json, r'translations') ?? const {}, - isSubscribed: mapValueOfType(json, r'isSubscribed')!, - hasMore: mapValueOfType(json, r'hasMore')!, - notifications: RenderableUserNotification.listFromJson(json[r'notifications']), - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUserNotifications200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUserNotifications200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUserNotifications200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUserNotifications200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'isSubscribed', - 'hasMore', - 'notifications', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_presence_statuses200_response.dart b/client/lib/model/get_user_presence_statuses200_response.dart deleted file mode 100644 index 88711c8..0000000 --- a/client/lib/model/get_user_presence_statuses200_response.dart +++ /dev/null @@ -1,223 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUserPresenceStatuses200Response { - /// Returns a new [GetUserPresenceStatuses200Response] instance. - GetUserPresenceStatuses200Response({ - required this.status, - this.userIdsOnline = const {}, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - /// Construct a type with a set of properties K of type T - Map userIdsOnline; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUserPresenceStatuses200Response && - other.status == status && - _deepEquality.equals(other.userIdsOnline, userIdsOnline) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (userIdsOnline.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUserPresenceStatuses200Response[status=$status, userIdsOnline=$userIdsOnline, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'userIdsOnline'] = this.userIdsOnline; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUserPresenceStatuses200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUserPresenceStatuses200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetUserPresenceStatuses200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserPresenceStatuses200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'userIdsOnline'), 'Required key "GetUserPresenceStatuses200Response[userIdsOnline]" is missing from JSON.'); - assert(json[r'userIdsOnline'] != null, 'Required key "GetUserPresenceStatuses200Response[userIdsOnline]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUserPresenceStatuses200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUserPresenceStatuses200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUserPresenceStatuses200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUserPresenceStatuses200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUserPresenceStatuses200Response( - status: APIStatus.fromJson(json[r'status'])!, - userIdsOnline: mapCastOfType(json, r'userIdsOnline')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUserPresenceStatuses200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUserPresenceStatuses200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUserPresenceStatuses200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUserPresenceStatuses200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'userIdsOnline', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_presence_statuses_response.dart b/client/lib/model/get_user_presence_statuses_response.dart index fbeef53..749ddd7 100644 --- a/client/lib/model/get_user_presence_statuses_response.dart +++ b/client/lib/model/get_user_presence_statuses_response.dart @@ -25,13 +25,15 @@ class GetUserPresenceStatusesResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetUserPresenceStatusesResponse && other.status == status && - _deepEquality.equals(other.userIdsOnline, userIdsOnline); + _deepEquality.equals(other.userIdsOnline, userIdsOnline); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (userIdsOnline.hashCode); + (userIdsOnline.hashCode); + @override String toString() => 'GetUserPresenceStatusesResponse[status=$status, userIdsOnline=$userIdsOnline]'; diff --git a/client/lib/model/get_user_reacts_public200_response.dart b/client/lib/model/get_user_reacts_public200_response.dart deleted file mode 100644 index bd908f9..0000000 --- a/client/lib/model/get_user_reacts_public200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetUserReactsPublic200Response { - /// Returns a new [GetUserReactsPublic200Response] instance. - GetUserReactsPublic200Response({ - required this.status, - this.reacts = const {}, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - Map> reacts; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetUserReactsPublic200Response && - other.status == status && - _deepEquality.equals(other.reacts, reacts) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (reacts.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetUserReactsPublic200Response[status=$status, reacts=$reacts, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'reacts'] = this.reacts; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetUserReactsPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetUserReactsPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetUserReactsPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserReactsPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reacts'), 'Required key "GetUserReactsPublic200Response[reacts]" is missing from JSON.'); - assert(json[r'reacts'] != null, 'Required key "GetUserReactsPublic200Response[reacts]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetUserReactsPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetUserReactsPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetUserReactsPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetUserReactsPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetUserReactsPublic200Response( - status: APIStatus.fromJson(json[r'status'])!, - reacts: mapCastOfType(json, r'reacts')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetUserReactsPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetUserReactsPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetUserReactsPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetUserReactsPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'reacts', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_user_response.dart b/client/lib/model/get_user_response.dart index 44f78d2..d9cbb80 100644 --- a/client/lib/model/get_user_response.dart +++ b/client/lib/model/get_user_response.dart @@ -24,13 +24,15 @@ class GetUserResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetUserResponse && other.status == status && - other.user == user; + other.user == user; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (user.hashCode); + (user.hashCode); + @override String toString() => 'GetUserResponse[status=$status, user=$user]'; diff --git a/client/lib/model/get_user_trust_factor_response.dart b/client/lib/model/get_user_trust_factor_response.dart new file mode 100644 index 0000000..c03fe18 --- /dev/null +++ b/client/lib/model/get_user_trust_factor_response.dart @@ -0,0 +1,143 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetUserTrustFactorResponse { + /// Returns a new [GetUserTrustFactorResponse] instance. + GetUserTrustFactorResponse({ + this.manualTrustFactor, + this.autoTrustFactor, + required this.status, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + double? manualTrustFactor; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + double? autoTrustFactor; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetUserTrustFactorResponse && + other.manualTrustFactor == manualTrustFactor && + other.autoTrustFactor == autoTrustFactor && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (manualTrustFactor == null ? 0 : manualTrustFactor!.hashCode) + + (autoTrustFactor == null ? 0 : autoTrustFactor!.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetUserTrustFactorResponse[manualTrustFactor=$manualTrustFactor, autoTrustFactor=$autoTrustFactor, status=$status]'; + + Map toJson() { + final json = {}; + if (this.manualTrustFactor != null) { + json[r'manualTrustFactor'] = this.manualTrustFactor; + } else { + json[r'manualTrustFactor'] = null; + } + if (this.autoTrustFactor != null) { + json[r'autoTrustFactor'] = this.autoTrustFactor; + } else { + json[r'autoTrustFactor'] = null; + } + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetUserTrustFactorResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetUserTrustFactorResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "GetUserTrustFactorResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetUserTrustFactorResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetUserTrustFactorResponse( + manualTrustFactor: mapValueOfType(json, r'manualTrustFactor'), + autoTrustFactor: mapValueOfType(json, r'autoTrustFactor'), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetUserTrustFactorResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetUserTrustFactorResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetUserTrustFactorResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetUserTrustFactorResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/get_v1_page_likes.dart b/client/lib/model/get_v1_page_likes.dart new file mode 100644 index 0000000..221bf4a --- /dev/null +++ b/client/lib/model/get_v1_page_likes.dart @@ -0,0 +1,149 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetV1PageLikes { + /// Returns a new [GetV1PageLikes] instance. + GetV1PageLikes({ + required this.urlIdWS, + required this.didLike, + required this.commentCount, + required this.likeCount, + required this.status, + }); + + String urlIdWS; + + bool didLike; + + int commentCount; + + int likeCount; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetV1PageLikes && + other.urlIdWS == urlIdWS && + other.didLike == didLike && + other.commentCount == commentCount && + other.likeCount == likeCount && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (urlIdWS.hashCode) + + (didLike.hashCode) + + (commentCount.hashCode) + + (likeCount.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetV1PageLikes[urlIdWS=$urlIdWS, didLike=$didLike, commentCount=$commentCount, likeCount=$likeCount, status=$status]'; + + Map toJson() { + final json = {}; + json[r'urlIdWS'] = this.urlIdWS; + json[r'didLike'] = this.didLike; + json[r'commentCount'] = this.commentCount; + json[r'likeCount'] = this.likeCount; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetV1PageLikes] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetV1PageLikes? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'urlIdWS'), 'Required key "GetV1PageLikes[urlIdWS]" is missing from JSON.'); + assert(json[r'urlIdWS'] != null, 'Required key "GetV1PageLikes[urlIdWS]" has a null value in JSON.'); + assert(json.containsKey(r'didLike'), 'Required key "GetV1PageLikes[didLike]" is missing from JSON.'); + assert(json[r'didLike'] != null, 'Required key "GetV1PageLikes[didLike]" has a null value in JSON.'); + assert(json.containsKey(r'commentCount'), 'Required key "GetV1PageLikes[commentCount]" is missing from JSON.'); + assert(json[r'commentCount'] != null, 'Required key "GetV1PageLikes[commentCount]" has a null value in JSON.'); + assert(json.containsKey(r'likeCount'), 'Required key "GetV1PageLikes[likeCount]" is missing from JSON.'); + assert(json[r'likeCount'] != null, 'Required key "GetV1PageLikes[likeCount]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetV1PageLikes[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetV1PageLikes[status]" has a null value in JSON.'); + return true; + }()); + + return GetV1PageLikes( + urlIdWS: mapValueOfType(json, r'urlIdWS')!, + didLike: mapValueOfType(json, r'didLike')!, + commentCount: mapValueOfType(json, r'commentCount')!, + likeCount: mapValueOfType(json, r'likeCount')!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetV1PageLikes.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetV1PageLikes.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetV1PageLikes-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetV1PageLikes.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'urlIdWS', + 'didLike', + 'commentCount', + 'likeCount', + 'status', + }; +} + diff --git a/client/lib/model/get_v2_page_react_users_response.dart b/client/lib/model/get_v2_page_react_users_response.dart new file mode 100644 index 0000000..effe557 --- /dev/null +++ b/client/lib/model/get_v2_page_react_users_response.dart @@ -0,0 +1,121 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetV2PageReactUsersResponse { + /// Returns a new [GetV2PageReactUsersResponse] instance. + GetV2PageReactUsersResponse({ + this.userNames = const [], + required this.status, + }); + + List userNames; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetV2PageReactUsersResponse && + _deepEquality.equals(other.userNames, userNames) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (userNames.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetV2PageReactUsersResponse[userNames=$userNames, status=$status]'; + + Map toJson() { + final json = {}; + json[r'userNames'] = this.userNames; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetV2PageReactUsersResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetV2PageReactUsersResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'userNames'), 'Required key "GetV2PageReactUsersResponse[userNames]" is missing from JSON.'); + assert(json[r'userNames'] != null, 'Required key "GetV2PageReactUsersResponse[userNames]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetV2PageReactUsersResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetV2PageReactUsersResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GetV2PageReactUsersResponse( + userNames: json[r'userNames'] is Iterable + ? (json[r'userNames'] as Iterable).cast().toList(growable: false) + : const [], + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetV2PageReactUsersResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetV2PageReactUsersResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetV2PageReactUsersResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetV2PageReactUsersResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'userNames', + 'status', + }; +} + diff --git a/client/lib/model/get_v2_page_reacts.dart b/client/lib/model/get_v2_page_reacts.dart new file mode 100644 index 0000000..6e959a1 --- /dev/null +++ b/client/lib/model/get_v2_page_reacts.dart @@ -0,0 +1,126 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GetV2PageReacts { + /// Returns a new [GetV2PageReacts] instance. + GetV2PageReacts({ + this.reactedIds = const [], + this.counts = const {}, + required this.status, + }); + + List reactedIds; + + /// Construct a type with a set of properties K of type T + Map counts; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GetV2PageReacts && + _deepEquality.equals(other.reactedIds, reactedIds) && + _deepEquality.equals(other.counts, counts) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (reactedIds.hashCode) + + (counts.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GetV2PageReacts[reactedIds=$reactedIds, counts=$counts, status=$status]'; + + Map toJson() { + final json = {}; + json[r'reactedIds'] = this.reactedIds; + json[r'counts'] = this.counts; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GetV2PageReacts] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GetV2PageReacts? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "GetV2PageReacts[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetV2PageReacts[status]" has a null value in JSON.'); + return true; + }()); + + return GetV2PageReacts( + reactedIds: json[r'reactedIds'] is Iterable + ? (json[r'reactedIds'] as Iterable).cast().toList(growable: false) + : const [], + counts: mapCastOfType(json, r'counts') ?? const {}, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GetV2PageReacts.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GetV2PageReacts.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GetV2PageReacts-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GetV2PageReacts.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/get_votes200_response.dart b/client/lib/model/get_votes200_response.dart deleted file mode 100644 index 59c5643..0000000 --- a/client/lib/model/get_votes200_response.dart +++ /dev/null @@ -1,242 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetVotes200Response { - /// Returns a new [GetVotes200Response] instance. - GetVotes200Response({ - required this.status, - this.appliedAuthorizedVotes = const [], - this.appliedAnonymousVotes = const [], - this.pendingVotes = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List appliedAuthorizedVotes; - - List appliedAnonymousVotes; - - List pendingVotes; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetVotes200Response && - other.status == status && - _deepEquality.equals(other.appliedAuthorizedVotes, appliedAuthorizedVotes) && - _deepEquality.equals(other.appliedAnonymousVotes, appliedAnonymousVotes) && - _deepEquality.equals(other.pendingVotes, pendingVotes) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (appliedAuthorizedVotes.hashCode) + - (appliedAnonymousVotes.hashCode) + - (pendingVotes.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetVotes200Response[status=$status, appliedAuthorizedVotes=$appliedAuthorizedVotes, appliedAnonymousVotes=$appliedAnonymousVotes, pendingVotes=$pendingVotes, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'appliedAuthorizedVotes'] = this.appliedAuthorizedVotes; - json[r'appliedAnonymousVotes'] = this.appliedAnonymousVotes; - json[r'pendingVotes'] = this.pendingVotes; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetVotes200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetVotes200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetVotes200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetVotes200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'appliedAuthorizedVotes'), 'Required key "GetVotes200Response[appliedAuthorizedVotes]" is missing from JSON.'); - assert(json[r'appliedAuthorizedVotes'] != null, 'Required key "GetVotes200Response[appliedAuthorizedVotes]" has a null value in JSON.'); - assert(json.containsKey(r'appliedAnonymousVotes'), 'Required key "GetVotes200Response[appliedAnonymousVotes]" is missing from JSON.'); - assert(json[r'appliedAnonymousVotes'] != null, 'Required key "GetVotes200Response[appliedAnonymousVotes]" has a null value in JSON.'); - assert(json.containsKey(r'pendingVotes'), 'Required key "GetVotes200Response[pendingVotes]" is missing from JSON.'); - assert(json[r'pendingVotes'] != null, 'Required key "GetVotes200Response[pendingVotes]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetVotes200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetVotes200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetVotes200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetVotes200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetVotes200Response( - status: APIStatus.fromJson(json[r'status'])!, - appliedAuthorizedVotes: PublicVote.listFromJson(json[r'appliedAuthorizedVotes']), - appliedAnonymousVotes: PublicVote.listFromJson(json[r'appliedAnonymousVotes']), - pendingVotes: PublicVote.listFromJson(json[r'pendingVotes']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetVotes200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetVotes200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetVotes200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetVotes200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'appliedAuthorizedVotes', - 'appliedAnonymousVotes', - 'pendingVotes', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_votes_for_user200_response.dart b/client/lib/model/get_votes_for_user200_response.dart deleted file mode 100644 index ef2bd44..0000000 --- a/client/lib/model/get_votes_for_user200_response.dart +++ /dev/null @@ -1,242 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GetVotesForUser200Response { - /// Returns a new [GetVotesForUser200Response] instance. - GetVotesForUser200Response({ - required this.status, - this.appliedAuthorizedVotes = const [], - this.appliedAnonymousVotes = const [], - this.pendingVotes = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List appliedAuthorizedVotes; - - List appliedAnonymousVotes; - - List pendingVotes; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetVotesForUser200Response && - other.status == status && - _deepEquality.equals(other.appliedAuthorizedVotes, appliedAuthorizedVotes) && - _deepEquality.equals(other.appliedAnonymousVotes, appliedAnonymousVotes) && - _deepEquality.equals(other.pendingVotes, pendingVotes) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (appliedAuthorizedVotes.hashCode) + - (appliedAnonymousVotes.hashCode) + - (pendingVotes.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'GetVotesForUser200Response[status=$status, appliedAuthorizedVotes=$appliedAuthorizedVotes, appliedAnonymousVotes=$appliedAnonymousVotes, pendingVotes=$pendingVotes, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'appliedAuthorizedVotes'] = this.appliedAuthorizedVotes; - json[r'appliedAnonymousVotes'] = this.appliedAnonymousVotes; - json[r'pendingVotes'] = this.pendingVotes; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [GetVotesForUser200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetVotesForUser200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "GetVotesForUser200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetVotesForUser200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'appliedAuthorizedVotes'), 'Required key "GetVotesForUser200Response[appliedAuthorizedVotes]" is missing from JSON.'); - assert(json[r'appliedAuthorizedVotes'] != null, 'Required key "GetVotesForUser200Response[appliedAuthorizedVotes]" has a null value in JSON.'); - assert(json.containsKey(r'appliedAnonymousVotes'), 'Required key "GetVotesForUser200Response[appliedAnonymousVotes]" is missing from JSON.'); - assert(json[r'appliedAnonymousVotes'] != null, 'Required key "GetVotesForUser200Response[appliedAnonymousVotes]" has a null value in JSON.'); - assert(json.containsKey(r'pendingVotes'), 'Required key "GetVotesForUser200Response[pendingVotes]" is missing from JSON.'); - assert(json[r'pendingVotes'] != null, 'Required key "GetVotesForUser200Response[pendingVotes]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "GetVotesForUser200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "GetVotesForUser200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "GetVotesForUser200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "GetVotesForUser200Response[code]" has a null value in JSON.'); - return true; - }()); - - return GetVotesForUser200Response( - status: APIStatus.fromJson(json[r'status'])!, - appliedAuthorizedVotes: PublicVote.listFromJson(json[r'appliedAuthorizedVotes']), - appliedAnonymousVotes: PublicVote.listFromJson(json[r'appliedAnonymousVotes']), - pendingVotes: PublicVote.listFromJson(json[r'pendingVotes']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetVotesForUser200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetVotesForUser200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetVotesForUser200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetVotesForUser200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'appliedAuthorizedVotes', - 'appliedAnonymousVotes', - 'pendingVotes', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/get_votes_for_user_response.dart b/client/lib/model/get_votes_for_user_response.dart index eecc36f..325a65a 100644 --- a/client/lib/model/get_votes_for_user_response.dart +++ b/client/lib/model/get_votes_for_user_response.dart @@ -30,17 +30,19 @@ class GetVotesForUserResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetVotesForUserResponse && other.status == status && - _deepEquality.equals(other.appliedAuthorizedVotes, appliedAuthorizedVotes) && - _deepEquality.equals(other.appliedAnonymousVotes, appliedAnonymousVotes) && - _deepEquality.equals(other.pendingVotes, pendingVotes); + _deepEquality.equals(other.appliedAuthorizedVotes, appliedAuthorizedVotes) && + _deepEquality.equals(other.appliedAnonymousVotes, appliedAnonymousVotes) && + _deepEquality.equals(other.pendingVotes, pendingVotes); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (appliedAuthorizedVotes.hashCode) + - (appliedAnonymousVotes.hashCode) + - (pendingVotes.hashCode); + (appliedAuthorizedVotes.hashCode) + + (appliedAnonymousVotes.hashCode) + + (pendingVotes.hashCode); + @override String toString() => 'GetVotesForUserResponse[status=$status, appliedAuthorizedVotes=$appliedAuthorizedVotes, appliedAnonymousVotes=$appliedAnonymousVotes, pendingVotes=$pendingVotes]'; diff --git a/client/lib/model/get_votes_response.dart b/client/lib/model/get_votes_response.dart index 19e793e..5576e32 100644 --- a/client/lib/model/get_votes_response.dart +++ b/client/lib/model/get_votes_response.dart @@ -30,17 +30,19 @@ class GetVotesResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetVotesResponse && other.status == status && - _deepEquality.equals(other.appliedAuthorizedVotes, appliedAuthorizedVotes) && - _deepEquality.equals(other.appliedAnonymousVotes, appliedAnonymousVotes) && - _deepEquality.equals(other.pendingVotes, pendingVotes); + _deepEquality.equals(other.appliedAuthorizedVotes, appliedAuthorizedVotes) && + _deepEquality.equals(other.appliedAnonymousVotes, appliedAnonymousVotes) && + _deepEquality.equals(other.pendingVotes, pendingVotes); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (appliedAuthorizedVotes.hashCode) + - (appliedAnonymousVotes.hashCode) + - (pendingVotes.hashCode); + (appliedAuthorizedVotes.hashCode) + + (appliedAnonymousVotes.hashCode) + + (pendingVotes.hashCode); + @override String toString() => 'GetVotesResponse[status=$status, appliedAuthorizedVotes=$appliedAuthorizedVotes, appliedAnonymousVotes=$appliedAnonymousVotes, pendingVotes=$pendingVotes]'; diff --git a/client/lib/model/gif_get_large_response.dart b/client/lib/model/gif_get_large_response.dart new file mode 100644 index 0000000..9165dac --- /dev/null +++ b/client/lib/model/gif_get_large_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GifGetLargeResponse { + /// Returns a new [GifGetLargeResponse] instance. + GifGetLargeResponse({ + required this.src, + required this.status, + }); + + String src; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GifGetLargeResponse && + other.src == src && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (src.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GifGetLargeResponse[src=$src, status=$status]'; + + Map toJson() { + final json = {}; + json[r'src'] = this.src; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GifGetLargeResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GifGetLargeResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'src'), 'Required key "GifGetLargeResponse[src]" is missing from JSON.'); + assert(json[r'src'] != null, 'Required key "GifGetLargeResponse[src]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GifGetLargeResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GifGetLargeResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GifGetLargeResponse( + src: mapValueOfType(json, r'src')!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GifGetLargeResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GifGetLargeResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GifGetLargeResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GifGetLargeResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'src', + 'status', + }; +} + diff --git a/client/lib/model/gif_search_internal_error.dart b/client/lib/model/gif_search_internal_error.dart new file mode 100644 index 0000000..31b1b64 --- /dev/null +++ b/client/lib/model/gif_search_internal_error.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GifSearchInternalError { + /// Returns a new [GifSearchInternalError] instance. + GifSearchInternalError({ + required this.code, + required this.status, + }); + + String code; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GifSearchInternalError && + other.code == code && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (code.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GifSearchInternalError[code=$code, status=$status]'; + + Map toJson() { + final json = {}; + json[r'code'] = this.code; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GifSearchInternalError] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GifSearchInternalError? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'code'), 'Required key "GifSearchInternalError[code]" is missing from JSON.'); + assert(json[r'code'] != null, 'Required key "GifSearchInternalError[code]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GifSearchInternalError[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GifSearchInternalError[status]" has a null value in JSON.'); + return true; + }()); + + return GifSearchInternalError( + code: mapValueOfType(json, r'code')!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GifSearchInternalError.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GifSearchInternalError.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GifSearchInternalError-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GifSearchInternalError.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'code', + 'status', + }; +} + diff --git a/client/lib/model/gif_search_response.dart b/client/lib/model/gif_search_response.dart new file mode 100644 index 0000000..c919127 --- /dev/null +++ b/client/lib/model/gif_search_response.dart @@ -0,0 +1,123 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GifSearchResponse { + /// Returns a new [GifSearchResponse] instance. + GifSearchResponse({ + this.images = const [], + required this.status, + }); + + List> images; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is GifSearchResponse && + _deepEquality.equals(other.images, images) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (images.hashCode) + + (status.hashCode); + + + @override + String toString() => 'GifSearchResponse[images=$images, status=$status]'; + + Map toJson() { + final json = {}; + json[r'images'] = this.images; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [GifSearchResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GifSearchResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'images'), 'Required key "GifSearchResponse[images]" is missing from JSON.'); + assert(json[r'images'] != null, 'Required key "GifSearchResponse[images]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GifSearchResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GifSearchResponse[status]" has a null value in JSON.'); + return true; + }()); + + return GifSearchResponse( + images: json[r'images'] is List + ? (json[r'images'] as List).map((e) => + GifSearchResponseImagesInnerInner.listFromJson(json[r'images']) + ).toList() + : const [], + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GifSearchResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GifSearchResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GifSearchResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GifSearchResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'images', + 'status', + }; +} + diff --git a/client/lib/model/gif_search_response_images_inner_inner.dart b/client/lib/model/gif_search_response_images_inner_inner.dart new file mode 100644 index 0000000..85cf0e9 --- /dev/null +++ b/client/lib/model/gif_search_response_images_inner_inner.dart @@ -0,0 +1,97 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class GifSearchResponseImagesInnerInner { + /// Returns a new [GifSearchResponseImagesInnerInner] instance. + GifSearchResponseImagesInnerInner(); + + @override + bool operator ==(Object other) => identical(this, other) || other is GifSearchResponseImagesInnerInner; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + 0; + + @override + String toString() => 'GifSearchResponseImagesInnerInner[]'; + + Map toJson() { + final json = {}; + return json; + } + + /// Returns a new [GifSearchResponseImagesInnerInner] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static GifSearchResponseImagesInnerInner? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + return true; + }()); + + return GifSearchResponseImagesInnerInner( + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = GifSearchResponseImagesInnerInner.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = GifSearchResponseImagesInnerInner.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of GifSearchResponseImagesInnerInner-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = GifSearchResponseImagesInnerInner.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/client/lib/model/header_account_notification.dart b/client/lib/model/header_account_notification.dart index ce20997..b37b8a0 100644 --- a/client/lib/model/header_account_notification.dart +++ b/client/lib/model/header_account_notification.dart @@ -22,6 +22,7 @@ class HeaderAccountNotification { required this.linkUrl, required this.linkText, required this.createdAt, + this.type, }); String id; @@ -44,33 +45,40 @@ class HeaderAccountNotification { DateTime createdAt; + /// Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). + String? type; + @override bool operator ==(Object other) => identical(this, other) || other is HeaderAccountNotification && other.id == id && - other.title == title && - other.message == message && - _deepEquality.equals(other.messagesByLocale, messagesByLocale) && - _deepEquality.equals(other.dates, dates) && - other.severity == severity && - other.linkUrl == linkUrl && - other.linkText == linkText && - other.createdAt == createdAt; + other.title == title && + other.message == message && + _deepEquality.equals(other.messagesByLocale, messagesByLocale) && + _deepEquality.equals(other.dates, dates) && + other.severity == severity && + other.linkUrl == linkUrl && + other.linkText == linkText && + other.createdAt == createdAt && + other.type == type; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (title.hashCode) + - (message.hashCode) + - (messagesByLocale == null ? 0 : messagesByLocale!.hashCode) + - (dates == null ? 0 : dates!.hashCode) + - (severity.hashCode) + - (linkUrl == null ? 0 : linkUrl!.hashCode) + - (linkText == null ? 0 : linkText!.hashCode) + - (createdAt.hashCode); + (title.hashCode) + + (message.hashCode) + + (messagesByLocale == null ? 0 : messagesByLocale!.hashCode) + + (dates == null ? 0 : dates!.hashCode) + + (severity.hashCode) + + (linkUrl == null ? 0 : linkUrl!.hashCode) + + (linkText == null ? 0 : linkText!.hashCode) + + (createdAt.hashCode) + + (type == null ? 0 : type!.hashCode); + @override - String toString() => 'HeaderAccountNotification[id=$id, title=$title, message=$message, messagesByLocale=$messagesByLocale, dates=$dates, severity=$severity, linkUrl=$linkUrl, linkText=$linkText, createdAt=$createdAt]'; + String toString() => 'HeaderAccountNotification[id=$id, title=$title, message=$message, messagesByLocale=$messagesByLocale, dates=$dates, severity=$severity, linkUrl=$linkUrl, linkText=$linkText, createdAt=$createdAt, type=$type]'; Map toJson() { final json = {}; @@ -99,6 +107,11 @@ class HeaderAccountNotification { json[r'linkText'] = null; } json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); + if (this.type != null) { + json[r'type'] = this.type; + } else { + json[r'type'] = null; + } return json; } @@ -140,6 +153,7 @@ class HeaderAccountNotification { linkUrl: mapValueOfType(json, r'linkUrl'), linkText: mapValueOfType(json, r'linkText'), createdAt: mapDateTime(json, r'createdAt', r'')!, + type: mapValueOfType(json, r'type'), ); } return null; diff --git a/client/lib/model/header_state.dart b/client/lib/model/header_state.dart index 023bdaa..a601559 100644 --- a/client/lib/model/header_state.dart +++ b/client/lib/model/header_state.dart @@ -36,21 +36,23 @@ class HeaderState { @override bool operator ==(Object other) => identical(this, other) || other is HeaderState && other.status == status && - other.notificationType == notificationType && - other.userId == userId && - other.userIdWS == userIdWS && - _deepEquality.equals(other.notificationCounts, notificationCounts) && - _deepEquality.equals(other.accountNotifications, accountNotifications); + other.notificationType == notificationType && + other.userId == userId && + other.userIdWS == userIdWS && + _deepEquality.equals(other.notificationCounts, notificationCounts) && + _deepEquality.equals(other.accountNotifications, accountNotifications); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (notificationType.hashCode) + - (userId.hashCode) + - (userIdWS.hashCode) + - (notificationCounts.hashCode) + - (accountNotifications.hashCode); + (notificationType.hashCode) + + (userId.hashCode) + + (userIdWS.hashCode) + + (notificationCounts.hashCode) + + (accountNotifications.hashCode); + @override String toString() => 'HeaderState[status=$status, notificationType=$notificationType, userId=$userId, userIdWS=$userIdWS, notificationCounts=$notificationCounts, accountNotifications=$accountNotifications]'; diff --git a/client/lib/model/ignored_response.dart b/client/lib/model/ignored_response.dart index a60ed10..2f36414 100644 --- a/client/lib/model/ignored_response.dart +++ b/client/lib/model/ignored_response.dart @@ -24,13 +24,15 @@ class IgnoredResponse { @override bool operator ==(Object other) => identical(this, other) || other is IgnoredResponse && other.status == status && - other.note == note; + other.note == note; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (note.hashCode); + (note.hashCode); + @override String toString() => 'IgnoredResponse[status=$status, note=$note]'; diff --git a/client/lib/model/live_event.dart b/client/lib/model/live_event.dart index 7ad1124..30dd1a8 100644 --- a/client/lib/model/live_event.dart +++ b/client/lib/model/live_event.dart @@ -141,43 +141,45 @@ class LiveEvent { @override bool operator ==(Object other) => identical(this, other) || other is LiveEvent && other.type == type && - other.timestamp == timestamp && - other.ts == ts && - other.broadcastId == broadcastId && - other.userId == userId && - _deepEquality.equals(other.badges, badges) && - other.notification == notification && - other.vote == vote && - other.comment == comment && - other.feedPost == feedPost && - other.extraInfo == extraInfo && - other.config == config && - other.isClosed == isClosed && - _deepEquality.equals(other.uj, uj) && - _deepEquality.equals(other.ul, ul) && - other.sc == sc && - _deepEquality.equals(other.changes, changes); + other.timestamp == timestamp && + other.ts == ts && + other.broadcastId == broadcastId && + other.userId == userId && + _deepEquality.equals(other.badges, badges) && + other.notification == notification && + other.vote == vote && + other.comment == comment && + other.feedPost == feedPost && + other.extraInfo == extraInfo && + other.config == config && + other.isClosed == isClosed && + _deepEquality.equals(other.uj, uj) && + _deepEquality.equals(other.ul, ul) && + other.sc == sc && + _deepEquality.equals(other.changes, changes); + @override int get hashCode => // ignore: unnecessary_parenthesis (type.hashCode) + - (timestamp == null ? 0 : timestamp!.hashCode) + - (ts == null ? 0 : ts!.hashCode) + - (broadcastId == null ? 0 : broadcastId!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (badges.hashCode) + - (notification == null ? 0 : notification!.hashCode) + - (vote == null ? 0 : vote!.hashCode) + - (comment == null ? 0 : comment!.hashCode) + - (feedPost == null ? 0 : feedPost!.hashCode) + - (extraInfo == null ? 0 : extraInfo!.hashCode) + - (config == null ? 0 : config!.hashCode) + - (isClosed == null ? 0 : isClosed!.hashCode) + - (uj.hashCode) + - (ul.hashCode) + - (sc == null ? 0 : sc!.hashCode) + - (changes.hashCode); + (timestamp == null ? 0 : timestamp!.hashCode) + + (ts == null ? 0 : ts!.hashCode) + + (broadcastId == null ? 0 : broadcastId!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (badges.hashCode) + + (notification == null ? 0 : notification!.hashCode) + + (vote == null ? 0 : vote!.hashCode) + + (comment == null ? 0 : comment!.hashCode) + + (feedPost == null ? 0 : feedPost!.hashCode) + + (extraInfo == null ? 0 : extraInfo!.hashCode) + + (config == null ? 0 : config!.hashCode) + + (isClosed == null ? 0 : isClosed!.hashCode) + + (uj.hashCode) + + (ul.hashCode) + + (sc == null ? 0 : sc!.hashCode) + + (changes.hashCode); + @override String toString() => 'LiveEvent[type=$type, timestamp=$timestamp, ts=$ts, broadcastId=$broadcastId, userId=$userId, badges=$badges, notification=$notification, vote=$vote, comment=$comment, feedPost=$feedPost, extraInfo=$extraInfo, config=$config, isClosed=$isClosed, uj=$uj, ul=$ul, sc=$sc, changes=$changes]'; diff --git a/client/lib/model/live_event_extra_info.dart b/client/lib/model/live_event_extra_info.dart index 2ba5a5c..1afcf12 100644 --- a/client/lib/model/live_event_extra_info.dart +++ b/client/lib/model/live_event_extra_info.dart @@ -22,11 +22,13 @@ class LiveEventExtraInfo { @override bool operator ==(Object other) => identical(this, other) || other is LiveEventExtraInfo && _deepEquality.equals(other.commentPositions, commentPositions); + @override int get hashCode => // ignore: unnecessary_parenthesis (commentPositions.hashCode); + @override String toString() => 'LiveEventExtraInfo[commentPositions=$commentPositions]'; diff --git a/client/lib/model/live_event_type.dart b/client/lib/model/live_event_type.dart index 7fe37fc..f56f5c7 100644 --- a/client/lib/model/live_event_type.dart +++ b/client/lib/model/live_event_type.dart @@ -44,6 +44,8 @@ class LiveEventType { static const updatedTicketState = LiveEventType._(r'updated-ticket-state'); static const updatedTicketAssignment = LiveEventType._(r'updated-ticket-assignment'); static const deletedTicket = LiveEventType._(r'deleted-ticket'); + static const pageReact = LiveEventType._(r'page-react'); + static const questionResult = LiveEventType._(r'question-result'); /// List of all possible values in this [enum][LiveEventType]. static const values = [ @@ -68,6 +70,8 @@ class LiveEventType { updatedTicketState, updatedTicketAssignment, deletedTicket, + pageReact, + questionResult, ]; static LiveEventType? fromJson(dynamic value) => LiveEventTypeTypeTransformer().decode(value); @@ -127,6 +131,8 @@ class LiveEventTypeTypeTransformer { case r'updated-ticket-state': return LiveEventType.updatedTicketState; case r'updated-ticket-assignment': return LiveEventType.updatedTicketAssignment; case r'deleted-ticket': return LiveEventType.deletedTicket; + case r'page-react': return LiveEventType.pageReact; + case r'question-result': return LiveEventType.questionResult; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/client/lib/model/lock_comment200_response.dart b/client/lib/model/lock_comment200_response.dart deleted file mode 100644 index e5b2a72..0000000 --- a/client/lib/model/lock_comment200_response.dart +++ /dev/null @@ -1,212 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class LockComment200Response { - /// Returns a new [LockComment200Response] instance. - LockComment200Response({ - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is LockComment200Response && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'LockComment200Response[status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [LockComment200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static LockComment200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "LockComment200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "LockComment200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "LockComment200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "LockComment200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "LockComment200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "LockComment200Response[code]" has a null value in JSON.'); - return true; - }()); - - return LockComment200Response( - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = LockComment200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = LockComment200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of LockComment200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = LockComment200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/media_asset.dart b/client/lib/model/media_asset.dart index b58176c..c0c10bf 100644 --- a/client/lib/model/media_asset.dart +++ b/client/lib/model/media_asset.dart @@ -27,15 +27,17 @@ class MediaAsset { @override bool operator ==(Object other) => identical(this, other) || other is MediaAsset && other.w == w && - other.h == h && - other.src == src; + other.h == h && + other.src == src; + @override int get hashCode => // ignore: unnecessary_parenthesis (w.hashCode) + - (h.hashCode) + - (src.hashCode); + (h.hashCode) + + (src.hashCode); + @override String toString() => 'MediaAsset[w=$w, h=$h, src=$src]'; diff --git a/client/lib/model/meta_item.dart b/client/lib/model/meta_item.dart index 295b38c..9d69188 100644 --- a/client/lib/model/meta_item.dart +++ b/client/lib/model/meta_item.dart @@ -24,13 +24,15 @@ class MetaItem { @override bool operator ==(Object other) => identical(this, other) || other is MetaItem && other.name == name && - _deepEquality.equals(other.values, values); + _deepEquality.equals(other.values, values); + @override int get hashCode => // ignore: unnecessary_parenthesis (name.hashCode) + - (values.hashCode); + (values.hashCode); + @override String toString() => 'MetaItem[name=$name, values=$values]'; diff --git a/client/lib/model/moderation_api_child_comments_response.dart b/client/lib/model/moderation_api_child_comments_response.dart new file mode 100644 index 0000000..7dd4df0 --- /dev/null +++ b/client/lib/model/moderation_api_child_comments_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationAPIChildCommentsResponse { + /// Returns a new [ModerationAPIChildCommentsResponse] instance. + ModerationAPIChildCommentsResponse({ + this.comments = const [], + required this.status, + }); + + List comments; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationAPIChildCommentsResponse && + _deepEquality.equals(other.comments, comments) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (comments.hashCode) + + (status.hashCode); + + + @override + String toString() => 'ModerationAPIChildCommentsResponse[comments=$comments, status=$status]'; + + Map toJson() { + final json = {}; + json[r'comments'] = this.comments; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [ModerationAPIChildCommentsResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationAPIChildCommentsResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'comments'), 'Required key "ModerationAPIChildCommentsResponse[comments]" is missing from JSON.'); + assert(json[r'comments'] != null, 'Required key "ModerationAPIChildCommentsResponse[comments]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ModerationAPIChildCommentsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationAPIChildCommentsResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationAPIChildCommentsResponse( + comments: ModerationAPIComment.listFromJson(json[r'comments']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationAPIChildCommentsResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationAPIChildCommentsResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationAPIChildCommentsResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationAPIChildCommentsResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'comments', + 'status', + }; +} + diff --git a/client/lib/model/moderation_api_comment.dart b/client/lib/model/moderation_api_comment.dart new file mode 100644 index 0000000..2fcb687 --- /dev/null +++ b/client/lib/model/moderation_api_comment.dart @@ -0,0 +1,637 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationAPIComment { + /// Returns a new [ModerationAPIComment] instance. + ModerationAPIComment({ + this.isLocalDeleted, + this.replyCount, + this.feedbackResults = const [], + this.isVotedUp, + this.isVotedDown, + this.myVoteId, + required this.id, + required this.tenantId, + required this.urlId, + required this.url, + this.pageTitle, + this.userId, + this.anonUserId, + required this.commenterName, + this.commenterLink, + required this.commentHTML, + this.parentId, + required this.date, + this.localDateString, + this.votes, + this.votesUp, + this.votesDown, + this.expireAt, + this.reviewed, + this.avatarSrc, + this.isSpam, + this.permNotSpam, + this.hasLinks, + this.hasCode, + required this.approved, + required this.locale, + this.isBannedUser, + this.isByAdmin, + this.isByModerator, + this.isPinned, + this.isLocked, + this.flagCount, + this.displayLabel, + this.badges = const [], + required this.verified, + this.feedbackIds = const [], + this.isDeleted, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isLocalDeleted; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + double? replyCount; + + List feedbackResults; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isVotedUp; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isVotedDown; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? myVoteId; + + String id; + + String tenantId; + + String urlId; + + String url; + + String? pageTitle; + + String? userId; + + String? anonUserId; + + String commenterName; + + String? commenterLink; + + String commentHTML; + + String? parentId; + + DateTime? date; + + String? localDateString; + + double? votes; + + double? votesUp; + + double? votesDown; + + DateTime? expireAt; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? reviewed; + + String? avatarSrc; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isSpam; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? permNotSpam; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? hasLinks; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? hasCode; + + bool approved; + + String? locale; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isBannedUser; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isByAdmin; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isByModerator; + + bool? isPinned; + + bool? isLocked; + + double? flagCount; + + String? displayLabel; + + List? badges; + + bool verified; + + List feedbackIds; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isDeleted; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationAPIComment && + other.isLocalDeleted == isLocalDeleted && + other.replyCount == replyCount && + _deepEquality.equals(other.feedbackResults, feedbackResults) && + other.isVotedUp == isVotedUp && + other.isVotedDown == isVotedDown && + other.myVoteId == myVoteId && + other.id == id && + other.tenantId == tenantId && + other.urlId == urlId && + other.url == url && + other.pageTitle == pageTitle && + other.userId == userId && + other.anonUserId == anonUserId && + other.commenterName == commenterName && + other.commenterLink == commenterLink && + other.commentHTML == commentHTML && + other.parentId == parentId && + other.date == date && + other.localDateString == localDateString && + other.votes == votes && + other.votesUp == votesUp && + other.votesDown == votesDown && + other.expireAt == expireAt && + other.reviewed == reviewed && + other.avatarSrc == avatarSrc && + other.isSpam == isSpam && + other.permNotSpam == permNotSpam && + other.hasLinks == hasLinks && + other.hasCode == hasCode && + other.approved == approved && + other.locale == locale && + other.isBannedUser == isBannedUser && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.flagCount == flagCount && + other.displayLabel == displayLabel && + _deepEquality.equals(other.badges, badges) && + other.verified == verified && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + other.isDeleted == isDeleted; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (isLocalDeleted == null ? 0 : isLocalDeleted!.hashCode) + + (replyCount == null ? 0 : replyCount!.hashCode) + + (feedbackResults.hashCode) + + (isVotedUp == null ? 0 : isVotedUp!.hashCode) + + (isVotedDown == null ? 0 : isVotedDown!.hashCode) + + (myVoteId == null ? 0 : myVoteId!.hashCode) + + (id.hashCode) + + (tenantId.hashCode) + + (urlId.hashCode) + + (url.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (commenterName.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (commentHTML.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (date == null ? 0 : date!.hashCode) + + (localDateString == null ? 0 : localDateString!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (expireAt == null ? 0 : expireAt!.hashCode) + + (reviewed == null ? 0 : reviewed!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (permNotSpam == null ? 0 : permNotSpam!.hashCode) + + (hasLinks == null ? 0 : hasLinks!.hashCode) + + (hasCode == null ? 0 : hasCode!.hashCode) + + (approved.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (isBannedUser == null ? 0 : isBannedUser!.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (flagCount == null ? 0 : flagCount!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (badges == null ? 0 : badges!.hashCode) + + (verified.hashCode) + + (feedbackIds.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode); + + + @override + String toString() => 'ModerationAPIComment[isLocalDeleted=$isLocalDeleted, replyCount=$replyCount, feedbackResults=$feedbackResults, isVotedUp=$isVotedUp, isVotedDown=$isVotedDown, myVoteId=$myVoteId, id=$id, tenantId=$tenantId, urlId=$urlId, url=$url, pageTitle=$pageTitle, userId=$userId, anonUserId=$anonUserId, commenterName=$commenterName, commenterLink=$commenterLink, commentHTML=$commentHTML, parentId=$parentId, date=$date, localDateString=$localDateString, votes=$votes, votesUp=$votesUp, votesDown=$votesDown, expireAt=$expireAt, reviewed=$reviewed, avatarSrc=$avatarSrc, isSpam=$isSpam, permNotSpam=$permNotSpam, hasLinks=$hasLinks, hasCode=$hasCode, approved=$approved, locale=$locale, isBannedUser=$isBannedUser, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isPinned=$isPinned, isLocked=$isLocked, flagCount=$flagCount, displayLabel=$displayLabel, badges=$badges, verified=$verified, feedbackIds=$feedbackIds, isDeleted=$isDeleted]'; + + Map toJson() { + final json = {}; + if (this.isLocalDeleted != null) { + json[r'isLocalDeleted'] = this.isLocalDeleted; + } else { + json[r'isLocalDeleted'] = null; + } + if (this.replyCount != null) { + json[r'replyCount'] = this.replyCount; + } else { + json[r'replyCount'] = null; + } + json[r'feedbackResults'] = this.feedbackResults; + if (this.isVotedUp != null) { + json[r'isVotedUp'] = this.isVotedUp; + } else { + json[r'isVotedUp'] = null; + } + if (this.isVotedDown != null) { + json[r'isVotedDown'] = this.isVotedDown; + } else { + json[r'isVotedDown'] = null; + } + if (this.myVoteId != null) { + json[r'myVoteId'] = this.myVoteId; + } else { + json[r'myVoteId'] = null; + } + json[r'_id'] = this.id; + json[r'tenantId'] = this.tenantId; + json[r'urlId'] = this.urlId; + json[r'url'] = this.url; + if (this.pageTitle != null) { + json[r'pageTitle'] = this.pageTitle; + } else { + json[r'pageTitle'] = null; + } + if (this.userId != null) { + json[r'userId'] = this.userId; + } else { + json[r'userId'] = null; + } + if (this.anonUserId != null) { + json[r'anonUserId'] = this.anonUserId; + } else { + json[r'anonUserId'] = null; + } + json[r'commenterName'] = this.commenterName; + if (this.commenterLink != null) { + json[r'commenterLink'] = this.commenterLink; + } else { + json[r'commenterLink'] = null; + } + json[r'commentHTML'] = this.commentHTML; + if (this.parentId != null) { + json[r'parentId'] = this.parentId; + } else { + json[r'parentId'] = null; + } + if (this.date != null) { + json[r'date'] = this.date!.toUtc().toIso8601String(); + } else { + json[r'date'] = null; + } + if (this.localDateString != null) { + json[r'localDateString'] = this.localDateString; + } else { + json[r'localDateString'] = null; + } + if (this.votes != null) { + json[r'votes'] = this.votes; + } else { + json[r'votes'] = null; + } + if (this.votesUp != null) { + json[r'votesUp'] = this.votesUp; + } else { + json[r'votesUp'] = null; + } + if (this.votesDown != null) { + json[r'votesDown'] = this.votesDown; + } else { + json[r'votesDown'] = null; + } + if (this.expireAt != null) { + json[r'expireAt'] = this.expireAt!.toUtc().toIso8601String(); + } else { + json[r'expireAt'] = null; + } + if (this.reviewed != null) { + json[r'reviewed'] = this.reviewed; + } else { + json[r'reviewed'] = null; + } + if (this.avatarSrc != null) { + json[r'avatarSrc'] = this.avatarSrc; + } else { + json[r'avatarSrc'] = null; + } + if (this.isSpam != null) { + json[r'isSpam'] = this.isSpam; + } else { + json[r'isSpam'] = null; + } + if (this.permNotSpam != null) { + json[r'permNotSpam'] = this.permNotSpam; + } else { + json[r'permNotSpam'] = null; + } + if (this.hasLinks != null) { + json[r'hasLinks'] = this.hasLinks; + } else { + json[r'hasLinks'] = null; + } + if (this.hasCode != null) { + json[r'hasCode'] = this.hasCode; + } else { + json[r'hasCode'] = null; + } + json[r'approved'] = this.approved; + if (this.locale != null) { + json[r'locale'] = this.locale; + } else { + json[r'locale'] = null; + } + if (this.isBannedUser != null) { + json[r'isBannedUser'] = this.isBannedUser; + } else { + json[r'isBannedUser'] = null; + } + if (this.isByAdmin != null) { + json[r'isByAdmin'] = this.isByAdmin; + } else { + json[r'isByAdmin'] = null; + } + if (this.isByModerator != null) { + json[r'isByModerator'] = this.isByModerator; + } else { + json[r'isByModerator'] = null; + } + if (this.isPinned != null) { + json[r'isPinned'] = this.isPinned; + } else { + json[r'isPinned'] = null; + } + if (this.isLocked != null) { + json[r'isLocked'] = this.isLocked; + } else { + json[r'isLocked'] = null; + } + if (this.flagCount != null) { + json[r'flagCount'] = this.flagCount; + } else { + json[r'flagCount'] = null; + } + if (this.displayLabel != null) { + json[r'displayLabel'] = this.displayLabel; + } else { + json[r'displayLabel'] = null; + } + if (this.badges != null) { + json[r'badges'] = this.badges; + } else { + json[r'badges'] = null; + } + json[r'verified'] = this.verified; + json[r'feedbackIds'] = this.feedbackIds; + if (this.isDeleted != null) { + json[r'isDeleted'] = this.isDeleted; + } else { + json[r'isDeleted'] = null; + } + return json; + } + + /// Returns a new [ModerationAPIComment] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationAPIComment? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'_id'), 'Required key "ModerationAPIComment[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "ModerationAPIComment[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "ModerationAPIComment[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "ModerationAPIComment[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "ModerationAPIComment[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "ModerationAPIComment[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "ModerationAPIComment[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "ModerationAPIComment[url]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "ModerationAPIComment[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "ModerationAPIComment[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "ModerationAPIComment[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "ModerationAPIComment[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'date'), 'Required key "ModerationAPIComment[date]" is missing from JSON.'); + assert(json.containsKey(r'approved'), 'Required key "ModerationAPIComment[approved]" is missing from JSON.'); + assert(json[r'approved'] != null, 'Required key "ModerationAPIComment[approved]" has a null value in JSON.'); + assert(json.containsKey(r'locale'), 'Required key "ModerationAPIComment[locale]" is missing from JSON.'); + assert(json.containsKey(r'verified'), 'Required key "ModerationAPIComment[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "ModerationAPIComment[verified]" has a null value in JSON.'); + return true; + }()); + + return ModerationAPIComment( + isLocalDeleted: mapValueOfType(json, r'isLocalDeleted'), + replyCount: mapValueOfType(json, r'replyCount'), + feedbackResults: json[r'feedbackResults'] is Iterable + ? (json[r'feedbackResults'] as Iterable).cast().toList(growable: false) + : const [], + isVotedUp: mapValueOfType(json, r'isVotedUp'), + isVotedDown: mapValueOfType(json, r'isVotedDown'), + myVoteId: mapValueOfType(json, r'myVoteId'), + id: mapValueOfType(json, r'_id')!, + tenantId: mapValueOfType(json, r'tenantId')!, + urlId: mapValueOfType(json, r'urlId')!, + url: mapValueOfType(json, r'url')!, + pageTitle: mapValueOfType(json, r'pageTitle'), + userId: mapValueOfType(json, r'userId'), + anonUserId: mapValueOfType(json, r'anonUserId'), + commenterName: mapValueOfType(json, r'commenterName')!, + commenterLink: mapValueOfType(json, r'commenterLink'), + commentHTML: mapValueOfType(json, r'commentHTML')!, + parentId: mapValueOfType(json, r'parentId'), + date: mapDateTime(json, r'date', r''), + localDateString: mapValueOfType(json, r'localDateString'), + votes: mapValueOfType(json, r'votes'), + votesUp: mapValueOfType(json, r'votesUp'), + votesDown: mapValueOfType(json, r'votesDown'), + expireAt: mapDateTime(json, r'expireAt', r''), + reviewed: mapValueOfType(json, r'reviewed'), + avatarSrc: mapValueOfType(json, r'avatarSrc'), + isSpam: mapValueOfType(json, r'isSpam'), + permNotSpam: mapValueOfType(json, r'permNotSpam'), + hasLinks: mapValueOfType(json, r'hasLinks'), + hasCode: mapValueOfType(json, r'hasCode'), + approved: mapValueOfType(json, r'approved')!, + locale: mapValueOfType(json, r'locale'), + isBannedUser: mapValueOfType(json, r'isBannedUser'), + isByAdmin: mapValueOfType(json, r'isByAdmin'), + isByModerator: mapValueOfType(json, r'isByModerator'), + isPinned: mapValueOfType(json, r'isPinned'), + isLocked: mapValueOfType(json, r'isLocked'), + flagCount: mapValueOfType(json, r'flagCount'), + displayLabel: mapValueOfType(json, r'displayLabel'), + badges: CommentUserBadgeInfo.listFromJson(json[r'badges']), + verified: mapValueOfType(json, r'verified')!, + feedbackIds: json[r'feedbackIds'] is Iterable + ? (json[r'feedbackIds'] as Iterable).cast().toList(growable: false) + : const [], + isDeleted: mapValueOfType(json, r'isDeleted'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationAPIComment.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationAPIComment.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationAPIComment-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationAPIComment.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + '_id', + 'tenantId', + 'urlId', + 'url', + 'commenterName', + 'commentHTML', + 'date', + 'approved', + 'locale', + 'verified', + }; +} + diff --git a/client/lib/model/moderation_api_comment_log.dart b/client/lib/model/moderation_api_comment_log.dart new file mode 100644 index 0000000..8453562 --- /dev/null +++ b/client/lib/model/moderation_api_comment_log.dart @@ -0,0 +1,146 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationAPICommentLog { + /// Returns a new [ModerationAPICommentLog] instance. + ModerationAPICommentLog({ + required this.date, + this.username, + required this.actionName, + required this.messageHTML, + }); + + DateTime date; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? username; + + String actionName; + + String messageHTML; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationAPICommentLog && + other.date == date && + other.username == username && + other.actionName == actionName && + other.messageHTML == messageHTML; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (date.hashCode) + + (username == null ? 0 : username!.hashCode) + + (actionName.hashCode) + + (messageHTML.hashCode); + + + @override + String toString() => 'ModerationAPICommentLog[date=$date, username=$username, actionName=$actionName, messageHTML=$messageHTML]'; + + Map toJson() { + final json = {}; + json[r'date'] = this.date.toUtc().toIso8601String(); + if (this.username != null) { + json[r'username'] = this.username; + } else { + json[r'username'] = null; + } + json[r'actionName'] = this.actionName; + json[r'messageHTML'] = this.messageHTML; + return json; + } + + /// Returns a new [ModerationAPICommentLog] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationAPICommentLog? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'date'), 'Required key "ModerationAPICommentLog[date]" is missing from JSON.'); + assert(json[r'date'] != null, 'Required key "ModerationAPICommentLog[date]" has a null value in JSON.'); + assert(json.containsKey(r'actionName'), 'Required key "ModerationAPICommentLog[actionName]" is missing from JSON.'); + assert(json[r'actionName'] != null, 'Required key "ModerationAPICommentLog[actionName]" has a null value in JSON.'); + assert(json.containsKey(r'messageHTML'), 'Required key "ModerationAPICommentLog[messageHTML]" is missing from JSON.'); + assert(json[r'messageHTML'] != null, 'Required key "ModerationAPICommentLog[messageHTML]" has a null value in JSON.'); + return true; + }()); + + return ModerationAPICommentLog( + date: mapDateTime(json, r'date', r'')!, + username: mapValueOfType(json, r'username'), + actionName: mapValueOfType(json, r'actionName')!, + messageHTML: mapValueOfType(json, r'messageHTML')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationAPICommentLog.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationAPICommentLog.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationAPICommentLog-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationAPICommentLog.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'date', + 'actionName', + 'messageHTML', + }; +} + diff --git a/client/lib/model/moderation_api_comment_response.dart b/client/lib/model/moderation_api_comment_response.dart new file mode 100644 index 0000000..2973fad --- /dev/null +++ b/client/lib/model/moderation_api_comment_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationAPICommentResponse { + /// Returns a new [ModerationAPICommentResponse] instance. + ModerationAPICommentResponse({ + required this.comment, + required this.status, + }); + + ModerationAPIComment comment; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationAPICommentResponse && + other.comment == comment && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (comment.hashCode) + + (status.hashCode); + + + @override + String toString() => 'ModerationAPICommentResponse[comment=$comment, status=$status]'; + + Map toJson() { + final json = {}; + json[r'comment'] = this.comment; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [ModerationAPICommentResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationAPICommentResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'comment'), 'Required key "ModerationAPICommentResponse[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "ModerationAPICommentResponse[comment]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ModerationAPICommentResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationAPICommentResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationAPICommentResponse( + comment: ModerationAPIComment.fromJson(json[r'comment'])!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationAPICommentResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationAPICommentResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationAPICommentResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationAPICommentResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'comment', + 'status', + }; +} + diff --git a/client/lib/model/moderation_api_count_comments_response.dart b/client/lib/model/moderation_api_count_comments_response.dart new file mode 100644 index 0000000..ddd96b7 --- /dev/null +++ b/client/lib/model/moderation_api_count_comments_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationAPICountCommentsResponse { + /// Returns a new [ModerationAPICountCommentsResponse] instance. + ModerationAPICountCommentsResponse({ + required this.status, + required this.count, + }); + + APIStatus status; + + double count; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationAPICountCommentsResponse && + other.status == status && + other.count == count; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (count.hashCode); + + + @override + String toString() => 'ModerationAPICountCommentsResponse[status=$status, count=$count]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'count'] = this.count; + return json; + } + + /// Returns a new [ModerationAPICountCommentsResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationAPICountCommentsResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "ModerationAPICountCommentsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationAPICountCommentsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'count'), 'Required key "ModerationAPICountCommentsResponse[count]" is missing from JSON.'); + assert(json[r'count'] != null, 'Required key "ModerationAPICountCommentsResponse[count]" has a null value in JSON.'); + return true; + }()); + + return ModerationAPICountCommentsResponse( + status: APIStatus.fromJson(json[r'status'])!, + count: mapValueOfType(json, r'count')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationAPICountCommentsResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationAPICountCommentsResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationAPICountCommentsResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationAPICountCommentsResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'count', + }; +} + diff --git a/client/lib/model/moderation_api_get_comment_ids_response.dart b/client/lib/model/moderation_api_get_comment_ids_response.dart new file mode 100644 index 0000000..88845b5 --- /dev/null +++ b/client/lib/model/moderation_api_get_comment_ids_response.dart @@ -0,0 +1,131 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationAPIGetCommentIdsResponse { + /// Returns a new [ModerationAPIGetCommentIdsResponse] instance. + ModerationAPIGetCommentIdsResponse({ + this.ids = const [], + required this.hasMore, + required this.status, + }); + + List ids; + + bool hasMore; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationAPIGetCommentIdsResponse && + _deepEquality.equals(other.ids, ids) && + other.hasMore == hasMore && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (ids.hashCode) + + (hasMore.hashCode) + + (status.hashCode); + + + @override + String toString() => 'ModerationAPIGetCommentIdsResponse[ids=$ids, hasMore=$hasMore, status=$status]'; + + Map toJson() { + final json = {}; + json[r'ids'] = this.ids; + json[r'hasMore'] = this.hasMore; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [ModerationAPIGetCommentIdsResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationAPIGetCommentIdsResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'ids'), 'Required key "ModerationAPIGetCommentIdsResponse[ids]" is missing from JSON.'); + assert(json[r'ids'] != null, 'Required key "ModerationAPIGetCommentIdsResponse[ids]" has a null value in JSON.'); + assert(json.containsKey(r'hasMore'), 'Required key "ModerationAPIGetCommentIdsResponse[hasMore]" is missing from JSON.'); + assert(json[r'hasMore'] != null, 'Required key "ModerationAPIGetCommentIdsResponse[hasMore]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ModerationAPIGetCommentIdsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationAPIGetCommentIdsResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationAPIGetCommentIdsResponse( + ids: json[r'ids'] is Iterable + ? (json[r'ids'] as Iterable).cast().toList(growable: false) + : const [], + hasMore: mapValueOfType(json, r'hasMore')!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationAPIGetCommentIdsResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationAPIGetCommentIdsResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationAPIGetCommentIdsResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationAPIGetCommentIdsResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'ids', + 'hasMore', + 'status', + }; +} + diff --git a/client/lib/model/moderation_api_get_comments_response.dart b/client/lib/model/moderation_api_get_comments_response.dart new file mode 100644 index 0000000..4e737ad --- /dev/null +++ b/client/lib/model/moderation_api_get_comments_response.dart @@ -0,0 +1,146 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationAPIGetCommentsResponse { + /// Returns a new [ModerationAPIGetCommentsResponse] instance. + ModerationAPIGetCommentsResponse({ + required this.status, + required this.translations, + this.comments = const [], + this.moderationFilter, + }); + + APIStatus status; + + Object translations; + + List comments; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + ModerationFilter? moderationFilter; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationAPIGetCommentsResponse && + other.status == status && + other.translations == translations && + _deepEquality.equals(other.comments, comments) && + other.moderationFilter == moderationFilter; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (translations.hashCode) + + (comments.hashCode) + + (moderationFilter == null ? 0 : moderationFilter!.hashCode); + + + @override + String toString() => 'ModerationAPIGetCommentsResponse[status=$status, translations=$translations, comments=$comments, moderationFilter=$moderationFilter]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'translations'] = this.translations; + json[r'comments'] = this.comments; + if (this.moderationFilter != null) { + json[r'moderationFilter'] = this.moderationFilter; + } else { + json[r'moderationFilter'] = null; + } + return json; + } + + /// Returns a new [ModerationAPIGetCommentsResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationAPIGetCommentsResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "ModerationAPIGetCommentsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationAPIGetCommentsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'translations'), 'Required key "ModerationAPIGetCommentsResponse[translations]" is missing from JSON.'); + assert(json[r'translations'] != null, 'Required key "ModerationAPIGetCommentsResponse[translations]" has a null value in JSON.'); + assert(json.containsKey(r'comments'), 'Required key "ModerationAPIGetCommentsResponse[comments]" is missing from JSON.'); + assert(json[r'comments'] != null, 'Required key "ModerationAPIGetCommentsResponse[comments]" has a null value in JSON.'); + return true; + }()); + + return ModerationAPIGetCommentsResponse( + status: APIStatus.fromJson(json[r'status'])!, + translations: mapValueOfType(json, r'translations')!, + comments: ModerationAPIComment.listFromJson(json[r'comments']), + moderationFilter: ModerationFilter.fromJson(json[r'moderationFilter']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationAPIGetCommentsResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationAPIGetCommentsResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationAPIGetCommentsResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationAPIGetCommentsResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'translations', + 'comments', + }; +} + diff --git a/client/lib/model/moderation_api_get_logs_response.dart b/client/lib/model/moderation_api_get_logs_response.dart new file mode 100644 index 0000000..be89b2c --- /dev/null +++ b/client/lib/model/moderation_api_get_logs_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationAPIGetLogsResponse { + /// Returns a new [ModerationAPIGetLogsResponse] instance. + ModerationAPIGetLogsResponse({ + this.logs = const [], + required this.status, + }); + + List logs; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationAPIGetLogsResponse && + _deepEquality.equals(other.logs, logs) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (logs.hashCode) + + (status.hashCode); + + + @override + String toString() => 'ModerationAPIGetLogsResponse[logs=$logs, status=$status]'; + + Map toJson() { + final json = {}; + json[r'logs'] = this.logs; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [ModerationAPIGetLogsResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationAPIGetLogsResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'logs'), 'Required key "ModerationAPIGetLogsResponse[logs]" is missing from JSON.'); + assert(json[r'logs'] != null, 'Required key "ModerationAPIGetLogsResponse[logs]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ModerationAPIGetLogsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationAPIGetLogsResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationAPIGetLogsResponse( + logs: ModerationAPICommentLog.listFromJson(json[r'logs']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationAPIGetLogsResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationAPIGetLogsResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationAPIGetLogsResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationAPIGetLogsResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'logs', + 'status', + }; +} + diff --git a/client/lib/model/moderation_comment_search_response.dart b/client/lib/model/moderation_comment_search_response.dart new file mode 100644 index 0000000..f062e82 --- /dev/null +++ b/client/lib/model/moderation_comment_search_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationCommentSearchResponse { + /// Returns a new [ModerationCommentSearchResponse] instance. + ModerationCommentSearchResponse({ + required this.commentCount, + required this.status, + }); + + int commentCount; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationCommentSearchResponse && + other.commentCount == commentCount && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (commentCount.hashCode) + + (status.hashCode); + + + @override + String toString() => 'ModerationCommentSearchResponse[commentCount=$commentCount, status=$status]'; + + Map toJson() { + final json = {}; + json[r'commentCount'] = this.commentCount; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [ModerationCommentSearchResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationCommentSearchResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'commentCount'), 'Required key "ModerationCommentSearchResponse[commentCount]" is missing from JSON.'); + assert(json[r'commentCount'] != null, 'Required key "ModerationCommentSearchResponse[commentCount]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ModerationCommentSearchResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationCommentSearchResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationCommentSearchResponse( + commentCount: mapValueOfType(json, r'commentCount')!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationCommentSearchResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationCommentSearchResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationCommentSearchResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationCommentSearchResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'commentCount', + 'status', + }; +} + diff --git a/client/lib/model/moderation_export_response.dart b/client/lib/model/moderation_export_response.dart new file mode 100644 index 0000000..3013590 --- /dev/null +++ b/client/lib/model/moderation_export_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationExportResponse { + /// Returns a new [ModerationExportResponse] instance. + ModerationExportResponse({ + required this.status, + required this.batchJobId, + }); + + String status; + + String batchJobId; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationExportResponse && + other.status == status && + other.batchJobId == batchJobId; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (batchJobId.hashCode); + + + @override + String toString() => 'ModerationExportResponse[status=$status, batchJobId=$batchJobId]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'batchJobId'] = this.batchJobId; + return json; + } + + /// Returns a new [ModerationExportResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationExportResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "ModerationExportResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationExportResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'batchJobId'), 'Required key "ModerationExportResponse[batchJobId]" is missing from JSON.'); + assert(json[r'batchJobId'] != null, 'Required key "ModerationExportResponse[batchJobId]" has a null value in JSON.'); + return true; + }()); + + return ModerationExportResponse( + status: mapValueOfType(json, r'status')!, + batchJobId: mapValueOfType(json, r'batchJobId')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationExportResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationExportResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationExportResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationExportResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'batchJobId', + }; +} + diff --git a/client/lib/model/moderation_export_status_response.dart b/client/lib/model/moderation_export_status_response.dart new file mode 100644 index 0000000..63635c7 --- /dev/null +++ b/client/lib/model/moderation_export_status_response.dart @@ -0,0 +1,146 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationExportStatusResponse { + /// Returns a new [ModerationExportStatusResponse] instance. + ModerationExportStatusResponse({ + required this.status, + required this.jobStatus, + required this.recordCount, + this.downloadUrl, + }); + + String status; + + String jobStatus; + + int recordCount; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? downloadUrl; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationExportStatusResponse && + other.status == status && + other.jobStatus == jobStatus && + other.recordCount == recordCount && + other.downloadUrl == downloadUrl; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (jobStatus.hashCode) + + (recordCount.hashCode) + + (downloadUrl == null ? 0 : downloadUrl!.hashCode); + + + @override + String toString() => 'ModerationExportStatusResponse[status=$status, jobStatus=$jobStatus, recordCount=$recordCount, downloadUrl=$downloadUrl]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'jobStatus'] = this.jobStatus; + json[r'recordCount'] = this.recordCount; + if (this.downloadUrl != null) { + json[r'downloadUrl'] = this.downloadUrl; + } else { + json[r'downloadUrl'] = null; + } + return json; + } + + /// Returns a new [ModerationExportStatusResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationExportStatusResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "ModerationExportStatusResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationExportStatusResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'jobStatus'), 'Required key "ModerationExportStatusResponse[jobStatus]" is missing from JSON.'); + assert(json[r'jobStatus'] != null, 'Required key "ModerationExportStatusResponse[jobStatus]" has a null value in JSON.'); + assert(json.containsKey(r'recordCount'), 'Required key "ModerationExportStatusResponse[recordCount]" is missing from JSON.'); + assert(json[r'recordCount'] != null, 'Required key "ModerationExportStatusResponse[recordCount]" has a null value in JSON.'); + return true; + }()); + + return ModerationExportStatusResponse( + status: mapValueOfType(json, r'status')!, + jobStatus: mapValueOfType(json, r'jobStatus')!, + recordCount: mapValueOfType(json, r'recordCount')!, + downloadUrl: mapValueOfType(json, r'downloadUrl'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationExportStatusResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationExportStatusResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationExportStatusResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationExportStatusResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'jobStatus', + 'recordCount', + }; +} + diff --git a/client/lib/model/moderation_filter.dart b/client/lib/model/moderation_filter.dart new file mode 100644 index 0000000..e198b40 --- /dev/null +++ b/client/lib/model/moderation_filter.dart @@ -0,0 +1,289 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationFilter { + /// Returns a new [ModerationFilter] instance. + ModerationFilter({ + this.reviewed, + this.approved, + this.isSpam, + this.isBannedUser, + this.isLocked, + this.flagCountGt, + this.userId, + this.urlId, + this.domain, + this.moderationGroupIds = const [], + this.commentTextSearch = const [], + this.exactCommentText, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? reviewed; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? approved; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isSpam; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isBannedUser; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isLocked; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + double? flagCountGt; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? userId; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? urlId; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? domain; + + List moderationGroupIds; + + /// Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. + List commentTextSearch; + + /// Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? exactCommentText; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationFilter && + other.reviewed == reviewed && + other.approved == approved && + other.isSpam == isSpam && + other.isBannedUser == isBannedUser && + other.isLocked == isLocked && + other.flagCountGt == flagCountGt && + other.userId == userId && + other.urlId == urlId && + other.domain == domain && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && + _deepEquality.equals(other.commentTextSearch, commentTextSearch) && + other.exactCommentText == exactCommentText; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (reviewed == null ? 0 : reviewed!.hashCode) + + (approved == null ? 0 : approved!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (isBannedUser == null ? 0 : isBannedUser!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (flagCountGt == null ? 0 : flagCountGt!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (urlId == null ? 0 : urlId!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (moderationGroupIds.hashCode) + + (commentTextSearch.hashCode) + + (exactCommentText == null ? 0 : exactCommentText!.hashCode); + + + @override + String toString() => 'ModerationFilter[reviewed=$reviewed, approved=$approved, isSpam=$isSpam, isBannedUser=$isBannedUser, isLocked=$isLocked, flagCountGt=$flagCountGt, userId=$userId, urlId=$urlId, domain=$domain, moderationGroupIds=$moderationGroupIds, commentTextSearch=$commentTextSearch, exactCommentText=$exactCommentText]'; + + Map toJson() { + final json = {}; + if (this.reviewed != null) { + json[r'reviewed'] = this.reviewed; + } else { + json[r'reviewed'] = null; + } + if (this.approved != null) { + json[r'approved'] = this.approved; + } else { + json[r'approved'] = null; + } + if (this.isSpam != null) { + json[r'isSpam'] = this.isSpam; + } else { + json[r'isSpam'] = null; + } + if (this.isBannedUser != null) { + json[r'isBannedUser'] = this.isBannedUser; + } else { + json[r'isBannedUser'] = null; + } + if (this.isLocked != null) { + json[r'isLocked'] = this.isLocked; + } else { + json[r'isLocked'] = null; + } + if (this.flagCountGt != null) { + json[r'flagCountGt'] = this.flagCountGt; + } else { + json[r'flagCountGt'] = null; + } + if (this.userId != null) { + json[r'userId'] = this.userId; + } else { + json[r'userId'] = null; + } + if (this.urlId != null) { + json[r'urlId'] = this.urlId; + } else { + json[r'urlId'] = null; + } + if (this.domain != null) { + json[r'domain'] = this.domain; + } else { + json[r'domain'] = null; + } + json[r'moderationGroupIds'] = this.moderationGroupIds; + json[r'commentTextSearch'] = this.commentTextSearch; + if (this.exactCommentText != null) { + json[r'exactCommentText'] = this.exactCommentText; + } else { + json[r'exactCommentText'] = null; + } + return json; + } + + /// Returns a new [ModerationFilter] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationFilter? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + return true; + }()); + + return ModerationFilter( + reviewed: mapValueOfType(json, r'reviewed'), + approved: mapValueOfType(json, r'approved'), + isSpam: mapValueOfType(json, r'isSpam'), + isBannedUser: mapValueOfType(json, r'isBannedUser'), + isLocked: mapValueOfType(json, r'isLocked'), + flagCountGt: mapValueOfType(json, r'flagCountGt'), + userId: mapValueOfType(json, r'userId'), + urlId: mapValueOfType(json, r'urlId'), + domain: mapValueOfType(json, r'domain'), + moderationGroupIds: json[r'moderationGroupIds'] is Iterable + ? (json[r'moderationGroupIds'] as Iterable).cast().toList(growable: false) + : const [], + commentTextSearch: json[r'commentTextSearch'] is Iterable + ? (json[r'commentTextSearch'] as Iterable).cast().toList(growable: false) + : const [], + exactCommentText: mapValueOfType(json, r'exactCommentText'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationFilter.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationFilter.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationFilter-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationFilter.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/client/lib/model/moderation_page_search_projected.dart b/client/lib/model/moderation_page_search_projected.dart new file mode 100644 index 0000000..d947eb8 --- /dev/null +++ b/client/lib/model/moderation_page_search_projected.dart @@ -0,0 +1,139 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationPageSearchProjected { + /// Returns a new [ModerationPageSearchProjected] instance. + ModerationPageSearchProjected({ + required this.urlId, + required this.url, + required this.title, + required this.commentCount, + }); + + String urlId; + + String url; + + String title; + + double commentCount; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationPageSearchProjected && + other.urlId == urlId && + other.url == url && + other.title == title && + other.commentCount == commentCount; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (urlId.hashCode) + + (url.hashCode) + + (title.hashCode) + + (commentCount.hashCode); + + + @override + String toString() => 'ModerationPageSearchProjected[urlId=$urlId, url=$url, title=$title, commentCount=$commentCount]'; + + Map toJson() { + final json = {}; + json[r'urlId'] = this.urlId; + json[r'url'] = this.url; + json[r'title'] = this.title; + json[r'commentCount'] = this.commentCount; + return json; + } + + /// Returns a new [ModerationPageSearchProjected] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationPageSearchProjected? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'urlId'), 'Required key "ModerationPageSearchProjected[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "ModerationPageSearchProjected[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "ModerationPageSearchProjected[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "ModerationPageSearchProjected[url]" has a null value in JSON.'); + assert(json.containsKey(r'title'), 'Required key "ModerationPageSearchProjected[title]" is missing from JSON.'); + assert(json[r'title'] != null, 'Required key "ModerationPageSearchProjected[title]" has a null value in JSON.'); + assert(json.containsKey(r'commentCount'), 'Required key "ModerationPageSearchProjected[commentCount]" is missing from JSON.'); + assert(json[r'commentCount'] != null, 'Required key "ModerationPageSearchProjected[commentCount]" has a null value in JSON.'); + return true; + }()); + + return ModerationPageSearchProjected( + urlId: mapValueOfType(json, r'urlId')!, + url: mapValueOfType(json, r'url')!, + title: mapValueOfType(json, r'title')!, + commentCount: mapValueOfType(json, r'commentCount')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationPageSearchProjected.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationPageSearchProjected.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationPageSearchProjected-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationPageSearchProjected.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'urlId', + 'url', + 'title', + 'commentCount', + }; +} + diff --git a/client/lib/model/moderation_page_search_response.dart b/client/lib/model/moderation_page_search_response.dart new file mode 100644 index 0000000..3efe27e --- /dev/null +++ b/client/lib/model/moderation_page_search_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationPageSearchResponse { + /// Returns a new [ModerationPageSearchResponse] instance. + ModerationPageSearchResponse({ + this.pages = const [], + required this.status, + }); + + List pages; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationPageSearchResponse && + _deepEquality.equals(other.pages, pages) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (pages.hashCode) + + (status.hashCode); + + + @override + String toString() => 'ModerationPageSearchResponse[pages=$pages, status=$status]'; + + Map toJson() { + final json = {}; + json[r'pages'] = this.pages; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [ModerationPageSearchResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationPageSearchResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'pages'), 'Required key "ModerationPageSearchResponse[pages]" is missing from JSON.'); + assert(json[r'pages'] != null, 'Required key "ModerationPageSearchResponse[pages]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ModerationPageSearchResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationPageSearchResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationPageSearchResponse( + pages: ModerationPageSearchProjected.listFromJson(json[r'pages']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationPageSearchResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationPageSearchResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationPageSearchResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationPageSearchResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'pages', + 'status', + }; +} + diff --git a/client/lib/model/moderation_site_search_projected.dart b/client/lib/model/moderation_site_search_projected.dart new file mode 100644 index 0000000..4c51a7d --- /dev/null +++ b/client/lib/model/moderation_site_search_projected.dart @@ -0,0 +1,120 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationSiteSearchProjected { + /// Returns a new [ModerationSiteSearchProjected] instance. + ModerationSiteSearchProjected({ + required this.domain, + this.logoSrc100px, + }); + + String domain; + + String? logoSrc100px; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationSiteSearchProjected && + other.domain == domain && + other.logoSrc100px == logoSrc100px; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (domain.hashCode) + + (logoSrc100px == null ? 0 : logoSrc100px!.hashCode); + + + @override + String toString() => 'ModerationSiteSearchProjected[domain=$domain, logoSrc100px=$logoSrc100px]'; + + Map toJson() { + final json = {}; + json[r'domain'] = this.domain; + if (this.logoSrc100px != null) { + json[r'logoSrc100px'] = this.logoSrc100px; + } else { + json[r'logoSrc100px'] = null; + } + return json; + } + + /// Returns a new [ModerationSiteSearchProjected] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationSiteSearchProjected? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'domain'), 'Required key "ModerationSiteSearchProjected[domain]" is missing from JSON.'); + assert(json[r'domain'] != null, 'Required key "ModerationSiteSearchProjected[domain]" has a null value in JSON.'); + return true; + }()); + + return ModerationSiteSearchProjected( + domain: mapValueOfType(json, r'domain')!, + logoSrc100px: mapValueOfType(json, r'logoSrc100px'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationSiteSearchProjected.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationSiteSearchProjected.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationSiteSearchProjected-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationSiteSearchProjected.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'domain', + }; +} + diff --git a/client/lib/model/moderation_site_search_response.dart b/client/lib/model/moderation_site_search_response.dart new file mode 100644 index 0000000..63b4dd6 --- /dev/null +++ b/client/lib/model/moderation_site_search_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationSiteSearchResponse { + /// Returns a new [ModerationSiteSearchResponse] instance. + ModerationSiteSearchResponse({ + this.sites = const [], + required this.status, + }); + + List sites; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationSiteSearchResponse && + _deepEquality.equals(other.sites, sites) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (sites.hashCode) + + (status.hashCode); + + + @override + String toString() => 'ModerationSiteSearchResponse[sites=$sites, status=$status]'; + + Map toJson() { + final json = {}; + json[r'sites'] = this.sites; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [ModerationSiteSearchResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationSiteSearchResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'sites'), 'Required key "ModerationSiteSearchResponse[sites]" is missing from JSON.'); + assert(json[r'sites'] != null, 'Required key "ModerationSiteSearchResponse[sites]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ModerationSiteSearchResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationSiteSearchResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationSiteSearchResponse( + sites: ModerationSiteSearchProjected.listFromJson(json[r'sites']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationSiteSearchResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationSiteSearchResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationSiteSearchResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationSiteSearchResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'sites', + 'status', + }; +} + diff --git a/client/lib/model/moderation_suggest_response.dart b/client/lib/model/moderation_suggest_response.dart new file mode 100644 index 0000000..3647516 --- /dev/null +++ b/client/lib/model/moderation_suggest_response.dart @@ -0,0 +1,140 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationSuggestResponse { + /// Returns a new [ModerationSuggestResponse] instance. + ModerationSuggestResponse({ + required this.status, + this.pages = const [], + this.users = const [], + this.code, + }); + + String status; + + List pages; + + List users; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationSuggestResponse && + other.status == status && + _deepEquality.equals(other.pages, pages) && + _deepEquality.equals(other.users, users) && + other.code == code; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (pages.hashCode) + + (users.hashCode) + + (code == null ? 0 : code!.hashCode); + + + @override + String toString() => 'ModerationSuggestResponse[status=$status, pages=$pages, users=$users, code=$code]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'pages'] = this.pages; + json[r'users'] = this.users; + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + return json; + } + + /// Returns a new [ModerationSuggestResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationSuggestResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "ModerationSuggestResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationSuggestResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationSuggestResponse( + status: mapValueOfType(json, r'status')!, + pages: ModerationPageSearchProjected.listFromJson(json[r'pages']), + users: ModerationUserSearchProjected.listFromJson(json[r'users']), + code: mapValueOfType(json, r'code'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationSuggestResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationSuggestResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationSuggestResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationSuggestResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/moderation_user_search_projected.dart b/client/lib/model/moderation_user_search_projected.dart new file mode 100644 index 0000000..4cfd942 --- /dev/null +++ b/client/lib/model/moderation_user_search_projected.dart @@ -0,0 +1,141 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationUserSearchProjected { + /// Returns a new [ModerationUserSearchProjected] instance. + ModerationUserSearchProjected({ + required this.id, + required this.username, + this.displayName, + this.avatarSrc, + }); + + String id; + + String username; + + String? displayName; + + String? avatarSrc; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationUserSearchProjected && + other.id == id && + other.username == username && + other.displayName == displayName && + other.avatarSrc == avatarSrc; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (id.hashCode) + + (username.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode); + + + @override + String toString() => 'ModerationUserSearchProjected[id=$id, username=$username, displayName=$displayName, avatarSrc=$avatarSrc]'; + + Map toJson() { + final json = {}; + json[r'_id'] = this.id; + json[r'username'] = this.username; + if (this.displayName != null) { + json[r'displayName'] = this.displayName; + } else { + json[r'displayName'] = null; + } + if (this.avatarSrc != null) { + json[r'avatarSrc'] = this.avatarSrc; + } else { + json[r'avatarSrc'] = null; + } + return json; + } + + /// Returns a new [ModerationUserSearchProjected] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationUserSearchProjected? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'_id'), 'Required key "ModerationUserSearchProjected[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "ModerationUserSearchProjected[_id]" has a null value in JSON.'); + assert(json.containsKey(r'username'), 'Required key "ModerationUserSearchProjected[username]" is missing from JSON.'); + assert(json[r'username'] != null, 'Required key "ModerationUserSearchProjected[username]" has a null value in JSON.'); + return true; + }()); + + return ModerationUserSearchProjected( + id: mapValueOfType(json, r'_id')!, + username: mapValueOfType(json, r'username')!, + displayName: mapValueOfType(json, r'displayName'), + avatarSrc: mapValueOfType(json, r'avatarSrc'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationUserSearchProjected.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationUserSearchProjected.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationUserSearchProjected-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationUserSearchProjected.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + '_id', + 'username', + }; +} + diff --git a/client/lib/model/moderation_user_search_response.dart b/client/lib/model/moderation_user_search_response.dart new file mode 100644 index 0000000..3b1c89f --- /dev/null +++ b/client/lib/model/moderation_user_search_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class ModerationUserSearchResponse { + /// Returns a new [ModerationUserSearchResponse] instance. + ModerationUserSearchResponse({ + this.users = const [], + required this.status, + }); + + List users; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is ModerationUserSearchResponse && + _deepEquality.equals(other.users, users) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (users.hashCode) + + (status.hashCode); + + + @override + String toString() => 'ModerationUserSearchResponse[users=$users, status=$status]'; + + Map toJson() { + final json = {}; + json[r'users'] = this.users; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [ModerationUserSearchResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static ModerationUserSearchResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'users'), 'Required key "ModerationUserSearchResponse[users]" is missing from JSON.'); + assert(json[r'users'] != null, 'Required key "ModerationUserSearchResponse[users]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ModerationUserSearchResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ModerationUserSearchResponse[status]" has a null value in JSON.'); + return true; + }()); + + return ModerationUserSearchResponse( + users: ModerationUserSearchProjected.listFromJson(json[r'users']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = ModerationUserSearchResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = ModerationUserSearchResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of ModerationUserSearchResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = ModerationUserSearchResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'users', + 'status', + }; +} + diff --git a/client/lib/model/moderator.dart b/client/lib/model/moderator.dart index 087475d..24689b3 100644 --- a/client/lib/model/moderator.dart +++ b/client/lib/model/moderator.dart @@ -81,47 +81,49 @@ class Moderator { @override bool operator ==(Object other) => identical(this, other) || other is Moderator && other.id == id && - other.tenantId == tenantId && - other.name == name && - other.userId == userId && - other.acceptedInvite == acceptedInvite && - other.email == email && - other.markReviewedCount == markReviewedCount && - other.deletedCount == deletedCount && - other.markedSpamCount == markedSpamCount && - other.markedNotSpamCount == markedNotSpamCount && - other.approvedCount == approvedCount && - other.unApprovedCount == unApprovedCount && - other.editedCount == editedCount && - other.bannedCount == bannedCount && - other.unFlaggedCount == unFlaggedCount && - other.verificationId == verificationId && - other.createdAt == createdAt && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && - other.isEmailSuppressed == isEmailSuppressed; + other.tenantId == tenantId && + other.name == name && + other.userId == userId && + other.acceptedInvite == acceptedInvite && + other.email == email && + other.markReviewedCount == markReviewedCount && + other.deletedCount == deletedCount && + other.markedSpamCount == markedSpamCount && + other.markedNotSpamCount == markedNotSpamCount && + other.approvedCount == approvedCount && + other.unApprovedCount == unApprovedCount && + other.editedCount == editedCount && + other.bannedCount == bannedCount && + other.unFlaggedCount == unFlaggedCount && + other.verificationId == verificationId && + other.createdAt == createdAt && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && + other.isEmailSuppressed == isEmailSuppressed; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (name == null ? 0 : name!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (acceptedInvite.hashCode) + - (email == null ? 0 : email!.hashCode) + - (markReviewedCount.hashCode) + - (deletedCount.hashCode) + - (markedSpamCount.hashCode) + - (markedNotSpamCount.hashCode) + - (approvedCount.hashCode) + - (unApprovedCount.hashCode) + - (editedCount.hashCode) + - (bannedCount.hashCode) + - (unFlaggedCount.hashCode) + - (verificationId == null ? 0 : verificationId!.hashCode) + - (createdAt.hashCode) + - (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + - (isEmailSuppressed == null ? 0 : isEmailSuppressed!.hashCode); + (tenantId.hashCode) + + (name == null ? 0 : name!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (acceptedInvite.hashCode) + + (email == null ? 0 : email!.hashCode) + + (markReviewedCount.hashCode) + + (deletedCount.hashCode) + + (markedSpamCount.hashCode) + + (markedNotSpamCount.hashCode) + + (approvedCount.hashCode) + + (unApprovedCount.hashCode) + + (editedCount.hashCode) + + (bannedCount.hashCode) + + (unFlaggedCount.hashCode) + + (verificationId == null ? 0 : verificationId!.hashCode) + + (createdAt.hashCode) + + (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + + (isEmailSuppressed == null ? 0 : isEmailSuppressed!.hashCode); + @override String toString() => 'Moderator[id=$id, tenantId=$tenantId, name=$name, userId=$userId, acceptedInvite=$acceptedInvite, email=$email, markReviewedCount=$markReviewedCount, deletedCount=$deletedCount, markedSpamCount=$markedSpamCount, markedNotSpamCount=$markedNotSpamCount, approvedCount=$approvedCount, unApprovedCount=$unApprovedCount, editedCount=$editedCount, bannedCount=$bannedCount, unFlaggedCount=$unFlaggedCount, verificationId=$verificationId, createdAt=$createdAt, moderationGroupIds=$moderationGroupIds, isEmailSuppressed=$isEmailSuppressed]'; diff --git a/client/lib/model/notification_and_count.dart b/client/lib/model/notification_and_count.dart index bf07e41..ce2ab11 100644 --- a/client/lib/model/notification_and_count.dart +++ b/client/lib/model/notification_and_count.dart @@ -24,13 +24,15 @@ class NotificationAndCount { @override bool operator ==(Object other) => identical(this, other) || other is NotificationAndCount && other.type == type && - other.count == count; + other.count == count; + @override int get hashCode => // ignore: unnecessary_parenthesis (type.hashCode) + - (count.hashCode); + (count.hashCode); + @override String toString() => 'NotificationAndCount[type=$type, count=$count]'; diff --git a/client/lib/model/page_user_entry.dart b/client/lib/model/page_user_entry.dart new file mode 100644 index 0000000..02e20ae --- /dev/null +++ b/client/lib/model/page_user_entry.dart @@ -0,0 +1,153 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PageUserEntry { + /// Returns a new [PageUserEntry] instance. + PageUserEntry({ + this.isPrivate, + this.avatarSrc, + required this.displayName, + required this.id, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? isPrivate; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? avatarSrc; + + String displayName; + + String id; + + @override + bool operator ==(Object other) => identical(this, other) || other is PageUserEntry && + other.isPrivate == isPrivate && + other.avatarSrc == avatarSrc && + other.displayName == displayName && + other.id == id; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (isPrivate == null ? 0 : isPrivate!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (displayName.hashCode) + + (id.hashCode); + + + @override + String toString() => 'PageUserEntry[isPrivate=$isPrivate, avatarSrc=$avatarSrc, displayName=$displayName, id=$id]'; + + Map toJson() { + final json = {}; + if (this.isPrivate != null) { + json[r'isPrivate'] = this.isPrivate; + } else { + json[r'isPrivate'] = null; + } + if (this.avatarSrc != null) { + json[r'avatarSrc'] = this.avatarSrc; + } else { + json[r'avatarSrc'] = null; + } + json[r'displayName'] = this.displayName; + json[r'id'] = this.id; + return json; + } + + /// Returns a new [PageUserEntry] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PageUserEntry? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'displayName'), 'Required key "PageUserEntry[displayName]" is missing from JSON.'); + assert(json[r'displayName'] != null, 'Required key "PageUserEntry[displayName]" has a null value in JSON.'); + assert(json.containsKey(r'id'), 'Required key "PageUserEntry[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "PageUserEntry[id]" has a null value in JSON.'); + return true; + }()); + + return PageUserEntry( + isPrivate: mapValueOfType(json, r'isPrivate'), + avatarSrc: mapValueOfType(json, r'avatarSrc'), + displayName: mapValueOfType(json, r'displayName')!, + id: mapValueOfType(json, r'id')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PageUserEntry.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PageUserEntry.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PageUserEntry-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PageUserEntry.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'displayName', + 'id', + }; +} + diff --git a/client/lib/model/page_users_info_response.dart b/client/lib/model/page_users_info_response.dart new file mode 100644 index 0000000..d33cc9e --- /dev/null +++ b/client/lib/model/page_users_info_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PageUsersInfoResponse { + /// Returns a new [PageUsersInfoResponse] instance. + PageUsersInfoResponse({ + this.users = const [], + required this.status, + }); + + List users; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is PageUsersInfoResponse && + _deepEquality.equals(other.users, users) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (users.hashCode) + + (status.hashCode); + + + @override + String toString() => 'PageUsersInfoResponse[users=$users, status=$status]'; + + Map toJson() { + final json = {}; + json[r'users'] = this.users; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [PageUsersInfoResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PageUsersInfoResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'users'), 'Required key "PageUsersInfoResponse[users]" is missing from JSON.'); + assert(json[r'users'] != null, 'Required key "PageUsersInfoResponse[users]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "PageUsersInfoResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PageUsersInfoResponse[status]" has a null value in JSON.'); + return true; + }()); + + return PageUsersInfoResponse( + users: PageUserEntry.listFromJson(json[r'users']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PageUsersInfoResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PageUsersInfoResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PageUsersInfoResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PageUsersInfoResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'users', + 'status', + }; +} + diff --git a/client/lib/model/page_users_offline_response.dart b/client/lib/model/page_users_offline_response.dart new file mode 100644 index 0000000..6732f90 --- /dev/null +++ b/client/lib/model/page_users_offline_response.dart @@ -0,0 +1,145 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PageUsersOfflineResponse { + /// Returns a new [PageUsersOfflineResponse] instance. + PageUsersOfflineResponse({ + required this.nextAfterUserId, + required this.nextAfterName, + this.users = const [], + required this.status, + }); + + String? nextAfterUserId; + + String? nextAfterName; + + List users; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is PageUsersOfflineResponse && + other.nextAfterUserId == nextAfterUserId && + other.nextAfterName == nextAfterName && + _deepEquality.equals(other.users, users) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (nextAfterUserId == null ? 0 : nextAfterUserId!.hashCode) + + (nextAfterName == null ? 0 : nextAfterName!.hashCode) + + (users.hashCode) + + (status.hashCode); + + + @override + String toString() => 'PageUsersOfflineResponse[nextAfterUserId=$nextAfterUserId, nextAfterName=$nextAfterName, users=$users, status=$status]'; + + Map toJson() { + final json = {}; + if (this.nextAfterUserId != null) { + json[r'nextAfterUserId'] = this.nextAfterUserId; + } else { + json[r'nextAfterUserId'] = null; + } + if (this.nextAfterName != null) { + json[r'nextAfterName'] = this.nextAfterName; + } else { + json[r'nextAfterName'] = null; + } + json[r'users'] = this.users; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [PageUsersOfflineResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PageUsersOfflineResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'nextAfterUserId'), 'Required key "PageUsersOfflineResponse[nextAfterUserId]" is missing from JSON.'); + assert(json.containsKey(r'nextAfterName'), 'Required key "PageUsersOfflineResponse[nextAfterName]" is missing from JSON.'); + assert(json.containsKey(r'users'), 'Required key "PageUsersOfflineResponse[users]" is missing from JSON.'); + assert(json[r'users'] != null, 'Required key "PageUsersOfflineResponse[users]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "PageUsersOfflineResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PageUsersOfflineResponse[status]" has a null value in JSON.'); + return true; + }()); + + return PageUsersOfflineResponse( + nextAfterUserId: mapValueOfType(json, r'nextAfterUserId'), + nextAfterName: mapValueOfType(json, r'nextAfterName'), + users: PageUserEntry.listFromJson(json[r'users']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PageUsersOfflineResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PageUsersOfflineResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PageUsersOfflineResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PageUsersOfflineResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'nextAfterUserId', + 'nextAfterName', + 'users', + 'status', + }; +} + diff --git a/client/lib/model/page_users_online_response.dart b/client/lib/model/page_users_online_response.dart new file mode 100644 index 0000000..e008eb4 --- /dev/null +++ b/client/lib/model/page_users_online_response.dart @@ -0,0 +1,165 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PageUsersOnlineResponse { + /// Returns a new [PageUsersOnlineResponse] instance. + PageUsersOnlineResponse({ + required this.nextAfterUserId, + required this.nextAfterName, + required this.totalCount, + required this.anonCount, + this.users = const [], + required this.status, + }); + + String? nextAfterUserId; + + String? nextAfterName; + + double totalCount; + + double anonCount; + + List users; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is PageUsersOnlineResponse && + other.nextAfterUserId == nextAfterUserId && + other.nextAfterName == nextAfterName && + other.totalCount == totalCount && + other.anonCount == anonCount && + _deepEquality.equals(other.users, users) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (nextAfterUserId == null ? 0 : nextAfterUserId!.hashCode) + + (nextAfterName == null ? 0 : nextAfterName!.hashCode) + + (totalCount.hashCode) + + (anonCount.hashCode) + + (users.hashCode) + + (status.hashCode); + + + @override + String toString() => 'PageUsersOnlineResponse[nextAfterUserId=$nextAfterUserId, nextAfterName=$nextAfterName, totalCount=$totalCount, anonCount=$anonCount, users=$users, status=$status]'; + + Map toJson() { + final json = {}; + if (this.nextAfterUserId != null) { + json[r'nextAfterUserId'] = this.nextAfterUserId; + } else { + json[r'nextAfterUserId'] = null; + } + if (this.nextAfterName != null) { + json[r'nextAfterName'] = this.nextAfterName; + } else { + json[r'nextAfterName'] = null; + } + json[r'totalCount'] = this.totalCount; + json[r'anonCount'] = this.anonCount; + json[r'users'] = this.users; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [PageUsersOnlineResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PageUsersOnlineResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'nextAfterUserId'), 'Required key "PageUsersOnlineResponse[nextAfterUserId]" is missing from JSON.'); + assert(json.containsKey(r'nextAfterName'), 'Required key "PageUsersOnlineResponse[nextAfterName]" is missing from JSON.'); + assert(json.containsKey(r'totalCount'), 'Required key "PageUsersOnlineResponse[totalCount]" is missing from JSON.'); + assert(json[r'totalCount'] != null, 'Required key "PageUsersOnlineResponse[totalCount]" has a null value in JSON.'); + assert(json.containsKey(r'anonCount'), 'Required key "PageUsersOnlineResponse[anonCount]" is missing from JSON.'); + assert(json[r'anonCount'] != null, 'Required key "PageUsersOnlineResponse[anonCount]" has a null value in JSON.'); + assert(json.containsKey(r'users'), 'Required key "PageUsersOnlineResponse[users]" is missing from JSON.'); + assert(json[r'users'] != null, 'Required key "PageUsersOnlineResponse[users]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "PageUsersOnlineResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PageUsersOnlineResponse[status]" has a null value in JSON.'); + return true; + }()); + + return PageUsersOnlineResponse( + nextAfterUserId: mapValueOfType(json, r'nextAfterUserId'), + nextAfterName: mapValueOfType(json, r'nextAfterName'), + totalCount: mapValueOfType(json, r'totalCount')!, + anonCount: mapValueOfType(json, r'anonCount')!, + users: PageUserEntry.listFromJson(json[r'users']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PageUsersOnlineResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PageUsersOnlineResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PageUsersOnlineResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PageUsersOnlineResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'nextAfterUserId', + 'nextAfterName', + 'totalCount', + 'anonCount', + 'users', + 'status', + }; +} + diff --git a/client/lib/model/pages_sort_by.dart b/client/lib/model/pages_sort_by.dart new file mode 100644 index 0000000..e2047b9 --- /dev/null +++ b/client/lib/model/pages_sort_by.dart @@ -0,0 +1,88 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class PagesSortBy { + /// Instantiate a new enum with the provided [value]. + const PagesSortBy._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const updatedAt = PagesSortBy._(r'updatedAt'); + static const commentCount = PagesSortBy._(r'commentCount'); + static const title = PagesSortBy._(r'title'); + + /// List of all possible values in this [enum][PagesSortBy]. + static const values = [ + updatedAt, + commentCount, + title, + ]; + + static PagesSortBy? fromJson(dynamic value) => PagesSortByTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PagesSortBy.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [PagesSortBy] to String, +/// and [decode] dynamic data back to [PagesSortBy]. +class PagesSortByTypeTransformer { + factory PagesSortByTypeTransformer() => _instance ??= const PagesSortByTypeTransformer._(); + + const PagesSortByTypeTransformer._(); + + String encode(PagesSortBy data) => data.value; + + /// Decodes a [dynamic value][data] to a PagesSortBy. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + PagesSortBy? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'updatedAt': return PagesSortBy.updatedAt; + case r'commentCount': return PagesSortBy.commentCount; + case r'title': return PagesSortBy.title; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [PagesSortByTypeTransformer] instance. + static PagesSortByTypeTransformer? _instance; +} + diff --git a/client/lib/model/patch_domain_config_params.dart b/client/lib/model/patch_domain_config_params.dart index 8e4946f..661252d 100644 --- a/client/lib/model/patch_domain_config_params.dart +++ b/client/lib/model/patch_domain_config_params.dart @@ -76,23 +76,25 @@ class PatchDomainConfigParams { @override bool operator ==(Object other) => identical(this, other) || other is PatchDomainConfigParams && other.domain == domain && - other.emailFromName == emailFromName && - other.emailFromEmail == emailFromEmail && - other.logoSrc == logoSrc && - other.logoSrc100px == logoSrc100px && - other.footerUnsubscribeURL == footerUnsubscribeURL && - _deepEquality.equals(other.emailHeaders, emailHeaders); + other.emailFromName == emailFromName && + other.emailFromEmail == emailFromEmail && + other.logoSrc == logoSrc && + other.logoSrc100px == logoSrc100px && + other.footerUnsubscribeURL == footerUnsubscribeURL && + _deepEquality.equals(other.emailHeaders, emailHeaders); + @override int get hashCode => // ignore: unnecessary_parenthesis (domain == null ? 0 : domain!.hashCode) + - (emailFromName == null ? 0 : emailFromName!.hashCode) + - (emailFromEmail == null ? 0 : emailFromEmail!.hashCode) + - (logoSrc == null ? 0 : logoSrc!.hashCode) + - (logoSrc100px == null ? 0 : logoSrc100px!.hashCode) + - (footerUnsubscribeURL == null ? 0 : footerUnsubscribeURL!.hashCode) + - (emailHeaders.hashCode); + (emailFromName == null ? 0 : emailFromName!.hashCode) + + (emailFromEmail == null ? 0 : emailFromEmail!.hashCode) + + (logoSrc == null ? 0 : logoSrc!.hashCode) + + (logoSrc100px == null ? 0 : logoSrc100px!.hashCode) + + (footerUnsubscribeURL == null ? 0 : footerUnsubscribeURL!.hashCode) + + (emailHeaders.hashCode); + @override String toString() => 'PatchDomainConfigParams[domain=$domain, emailFromName=$emailFromName, emailFromEmail=$emailFromEmail, logoSrc=$logoSrc, logoSrc100px=$logoSrc100px, footerUnsubscribeURL=$footerUnsubscribeURL, emailHeaders=$emailHeaders]'; diff --git a/client/lib/model/patch_domain_config_response.dart b/client/lib/model/patch_domain_config_response.dart new file mode 100644 index 0000000..e53e4c6 --- /dev/null +++ b/client/lib/model/patch_domain_config_response.dart @@ -0,0 +1,157 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PatchDomainConfigResponse { + /// Returns a new [PatchDomainConfigResponse] instance. + PatchDomainConfigResponse({ + this.configuration, + required this.status, + this.reason, + this.code, + }); + + Object? configuration; + + Object? status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? reason; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + @override + bool operator ==(Object other) => identical(this, other) || other is PatchDomainConfigResponse && + other.configuration == configuration && + other.status == status && + other.reason == reason && + other.code == code; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (configuration == null ? 0 : configuration!.hashCode) + + (status == null ? 0 : status!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode); + + + @override + String toString() => 'PatchDomainConfigResponse[configuration=$configuration, status=$status, reason=$reason, code=$code]'; + + Map toJson() { + final json = {}; + if (this.configuration != null) { + json[r'configuration'] = this.configuration; + } else { + json[r'configuration'] = null; + } + if (this.status != null) { + json[r'status'] = this.status; + } else { + json[r'status'] = null; + } + if (this.reason != null) { + json[r'reason'] = this.reason; + } else { + json[r'reason'] = null; + } + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + return json; + } + + /// Returns a new [PatchDomainConfigResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PatchDomainConfigResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "PatchDomainConfigResponse[status]" is missing from JSON.'); + return true; + }()); + + return PatchDomainConfigResponse( + configuration: mapValueOfType(json, r'configuration'), + status: mapValueOfType(json, r'status'), + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PatchDomainConfigResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PatchDomainConfigResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PatchDomainConfigResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PatchDomainConfigResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/patch_hash_tag200_response.dart b/client/lib/model/patch_hash_tag200_response.dart deleted file mode 100644 index 6f79ee7..0000000 --- a/client/lib/model/patch_hash_tag200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PatchHashTag200Response { - /// Returns a new [PatchHashTag200Response] instance. - PatchHashTag200Response({ - required this.status, - required this.hashTag, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - TenantHashTag hashTag; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is PatchHashTag200Response && - other.status == status && - other.hashTag == hashTag && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (hashTag.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'PatchHashTag200Response[status=$status, hashTag=$hashTag, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'hashTag'] = this.hashTag; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [PatchHashTag200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PatchHashTag200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "PatchHashTag200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PatchHashTag200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'hashTag'), 'Required key "PatchHashTag200Response[hashTag]" is missing from JSON.'); - assert(json[r'hashTag'] != null, 'Required key "PatchHashTag200Response[hashTag]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "PatchHashTag200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "PatchHashTag200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "PatchHashTag200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "PatchHashTag200Response[code]" has a null value in JSON.'); - return true; - }()); - - return PatchHashTag200Response( - status: APIStatus.fromJson(json[r'status'])!, - hashTag: TenantHashTag.fromJson(json[r'hashTag'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PatchHashTag200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PatchHashTag200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PatchHashTag200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PatchHashTag200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'hashTag', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/patch_page_api_response.dart b/client/lib/model/patch_page_api_response.dart index 1509377..a20fb75 100644 --- a/client/lib/model/patch_page_api_response.dart +++ b/client/lib/model/patch_page_api_response.dart @@ -57,19 +57,21 @@ class PatchPageAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is PatchPageAPIResponse && other.reason == reason && - other.code == code && - other.commentsUpdated == commentsUpdated && - other.page == page && - other.status == status; + other.code == code && + other.commentsUpdated == commentsUpdated && + other.page == page && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (commentsUpdated == null ? 0 : commentsUpdated!.hashCode) + - (page == null ? 0 : page!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (commentsUpdated == null ? 0 : commentsUpdated!.hashCode) + + (page == null ? 0 : page!.hashCode) + + (status.hashCode); + @override String toString() => 'PatchPageAPIResponse[reason=$reason, code=$code, commentsUpdated=$commentsUpdated, page=$page, status=$status]'; diff --git a/client/lib/model/patch_sso_user_api_response.dart b/client/lib/model/patch_sso_user_api_response.dart index 10923d0..25e38bb 100644 --- a/client/lib/model/patch_sso_user_api_response.dart +++ b/client/lib/model/patch_sso_user_api_response.dart @@ -48,17 +48,19 @@ class PatchSSOUserAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is PatchSSOUserAPIResponse && other.reason == reason && - other.code == code && - other.user == user && - other.status == status; + other.code == code && + other.user == user && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (user == null ? 0 : user!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (user == null ? 0 : user!.hashCode) + + (status.hashCode); + @override String toString() => 'PatchSSOUserAPIResponse[reason=$reason, code=$code, user=$user, status=$status]'; diff --git a/client/lib/model/pending_comment_to_sync_outbound.dart b/client/lib/model/pending_comment_to_sync_outbound.dart index 74a2c82..5a35b74 100644 --- a/client/lib/model/pending_comment_to_sync_outbound.dart +++ b/client/lib/model/pending_comment_to_sync_outbound.dart @@ -69,35 +69,37 @@ class PendingCommentToSyncOutbound { @override bool operator ==(Object other) => identical(this, other) || other is PendingCommentToSyncOutbound && other.id == id && - other.commentId == commentId && - other.comment == comment && - other.externalId == externalId && - other.createdAt == createdAt && - other.tenantId == tenantId && - other.attemptCount == attemptCount && - other.nextAttemptAt == nextAttemptAt && - other.eventType == eventType && - other.type == type && - other.domain == domain && - other.lastError == lastError && - other.webhookId == webhookId; + other.commentId == commentId && + other.comment == comment && + other.externalId == externalId && + other.createdAt == createdAt && + other.tenantId == tenantId && + other.attemptCount == attemptCount && + other.nextAttemptAt == nextAttemptAt && + other.eventType == eventType && + other.type == type && + other.domain == domain && + other.lastError == lastError && + other.webhookId == webhookId; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (commentId.hashCode) + - (comment == null ? 0 : comment!.hashCode) + - (externalId == null ? 0 : externalId!.hashCode) + - (createdAt.hashCode) + - (tenantId.hashCode) + - (attemptCount.hashCode) + - (nextAttemptAt.hashCode) + - (eventType.hashCode) + - (type.hashCode) + - (domain.hashCode) + - (lastError.hashCode) + - (webhookId == null ? 0 : webhookId!.hashCode); + (commentId.hashCode) + + (comment == null ? 0 : comment!.hashCode) + + (externalId == null ? 0 : externalId!.hashCode) + + (createdAt.hashCode) + + (tenantId.hashCode) + + (attemptCount.hashCode) + + (nextAttemptAt.hashCode) + + (eventType.hashCode) + + (type.hashCode) + + (domain.hashCode) + + (lastError.hashCode) + + (webhookId == null ? 0 : webhookId!.hashCode); + @override String toString() => 'PendingCommentToSyncOutbound[id=$id, commentId=$commentId, comment=$comment, externalId=$externalId, createdAt=$createdAt, tenantId=$tenantId, attemptCount=$attemptCount, nextAttemptAt=$nextAttemptAt, eventType=$eventType, type=$type, domain=$domain, lastError=$lastError, webhookId=$webhookId]'; diff --git a/client/lib/model/pin_comment200_response.dart b/client/lib/model/pin_comment200_response.dart deleted file mode 100644 index c59e97c..0000000 --- a/client/lib/model/pin_comment200_response.dart +++ /dev/null @@ -1,223 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PinComment200Response { - /// Returns a new [PinComment200Response] instance. - PinComment200Response({ - this.commentPositions = const {}, - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - /// Construct a type with a set of properties K of type T - Map commentPositions; - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is PinComment200Response && - _deepEquality.equals(other.commentPositions, commentPositions) && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (commentPositions.hashCode) + - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'PinComment200Response[commentPositions=$commentPositions, status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'commentPositions'] = this.commentPositions; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [PinComment200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PinComment200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'commentPositions'), 'Required key "PinComment200Response[commentPositions]" is missing from JSON.'); - assert(json[r'commentPositions'] != null, 'Required key "PinComment200Response[commentPositions]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "PinComment200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PinComment200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "PinComment200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "PinComment200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "PinComment200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "PinComment200Response[code]" has a null value in JSON.'); - return true; - }()); - - return PinComment200Response( - commentPositions: RecordStringBeforeStringOrNullAfterStringOrNullValue.mapFromJson(json[r'commentPositions']), - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PinComment200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PinComment200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PinComment200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PinComment200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'commentPositions', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/post_remove_comment_response.dart b/client/lib/model/post_remove_comment_response.dart new file mode 100644 index 0000000..428bc31 --- /dev/null +++ b/client/lib/model/post_remove_comment_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PostRemoveCommentResponse { + /// Returns a new [PostRemoveCommentResponse] instance. + PostRemoveCommentResponse({ + required this.action, + required this.status, + }); + + String action; + + String status; + + @override + bool operator ==(Object other) => identical(this, other) || other is PostRemoveCommentResponse && + other.action == action && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (action.hashCode) + + (status.hashCode); + + + @override + String toString() => 'PostRemoveCommentResponse[action=$action, status=$status]'; + + Map toJson() { + final json = {}; + json[r'action'] = this.action; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [PostRemoveCommentResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PostRemoveCommentResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'action'), 'Required key "PostRemoveCommentResponse[action]" is missing from JSON.'); + assert(json[r'action'] != null, 'Required key "PostRemoveCommentResponse[action]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "PostRemoveCommentResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PostRemoveCommentResponse[status]" has a null value in JSON.'); + return true; + }()); + + return PostRemoveCommentResponse( + action: mapValueOfType(json, r'action')!, + status: mapValueOfType(json, r'status')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PostRemoveCommentResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PostRemoveCommentResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PostRemoveCommentResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PostRemoveCommentResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'action', + 'status', + }; +} + diff --git a/client/lib/model/pre_ban_summary.dart b/client/lib/model/pre_ban_summary.dart new file mode 100644 index 0000000..f044ea6 --- /dev/null +++ b/client/lib/model/pre_ban_summary.dart @@ -0,0 +1,131 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PreBanSummary { + /// Returns a new [PreBanSummary] instance. + PreBanSummary({ + required this.status, + this.usernames = const [], + required this.count, + }); + + APIStatus status; + + List usernames; + + double count; + + @override + bool operator ==(Object other) => identical(this, other) || other is PreBanSummary && + other.status == status && + _deepEquality.equals(other.usernames, usernames) && + other.count == count; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (usernames.hashCode) + + (count.hashCode); + + + @override + String toString() => 'PreBanSummary[status=$status, usernames=$usernames, count=$count]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'usernames'] = this.usernames; + json[r'count'] = this.count; + return json; + } + + /// Returns a new [PreBanSummary] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PreBanSummary? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "PreBanSummary[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PreBanSummary[status]" has a null value in JSON.'); + assert(json.containsKey(r'usernames'), 'Required key "PreBanSummary[usernames]" is missing from JSON.'); + assert(json[r'usernames'] != null, 'Required key "PreBanSummary[usernames]" has a null value in JSON.'); + assert(json.containsKey(r'count'), 'Required key "PreBanSummary[count]" is missing from JSON.'); + assert(json[r'count'] != null, 'Required key "PreBanSummary[count]" has a null value in JSON.'); + return true; + }()); + + return PreBanSummary( + status: APIStatus.fromJson(json[r'status'])!, + usernames: json[r'usernames'] is Iterable + ? (json[r'usernames'] as Iterable).cast().toList(growable: false) + : const [], + count: mapValueOfType(json, r'count')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PreBanSummary.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PreBanSummary.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PreBanSummary-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PreBanSummary.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'usernames', + 'count', + }; +} + diff --git a/client/lib/model/pub_sub_comment.dart b/client/lib/model/pub_sub_comment.dart index a79b053..26ddf86 100644 --- a/client/lib/model/pub_sub_comment.dart +++ b/client/lib/model/pub_sub_comment.dart @@ -219,95 +219,97 @@ class PubSubComment { @override bool operator ==(Object other) => identical(this, other) || other is PubSubComment && other.id == id && - other.tenantId == tenantId && - other.userId == userId && - other.urlId == urlId && - other.commenterName == commenterName && - other.commenterLink == commenterLink && - other.commentHTML == commentHTML && - other.comment == comment && - other.parentId == parentId && - other.votes == votes && - other.votesUp == votesUp && - other.votesDown == votesDown && - other.verified == verified && - other.avatarSrc == avatarSrc && - other.hasImages == hasImages && - other.hasLinks == hasLinks && - other.isByAdmin == isByAdmin && - other.isByModerator == isByModerator && - other.isPinned == isPinned && - other.isLocked == isLocked && - other.displayLabel == displayLabel && - other.rating == rating && - _deepEquality.equals(other.badges, badges) && - other.viewCount == viewCount && - other.isDeleted == isDeleted && - other.isDeletedUser == isDeletedUser && - other.isSpam == isSpam && - other.anonUserId == anonUserId && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - other.flagCount == flagCount && - other.domain == domain && - other.url == url && - other.pageTitle == pageTitle && - other.expireAt == expireAt && - other.reviewed == reviewed && - other.hasCode == hasCode && - other.approved == approved && - other.locale == locale && - other.isBannedUser == isBannedUser && - _deepEquality.equals(other.groupIds, groupIds) && - other.isLive == isLive && - other.hidden == hidden && - other.date == date; + other.tenantId == tenantId && + other.userId == userId && + other.urlId == urlId && + other.commenterName == commenterName && + other.commenterLink == commenterLink && + other.commentHTML == commentHTML && + other.comment == comment && + other.parentId == parentId && + other.votes == votes && + other.votesUp == votesUp && + other.votesDown == votesDown && + other.verified == verified && + other.avatarSrc == avatarSrc && + other.hasImages == hasImages && + other.hasLinks == hasLinks && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.displayLabel == displayLabel && + other.rating == rating && + _deepEquality.equals(other.badges, badges) && + other.viewCount == viewCount && + other.isDeleted == isDeleted && + other.isDeletedUser == isDeletedUser && + other.isSpam == isSpam && + other.anonUserId == anonUserId && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + other.flagCount == flagCount && + other.domain == domain && + other.url == url && + other.pageTitle == pageTitle && + other.expireAt == expireAt && + other.reviewed == reviewed && + other.hasCode == hasCode && + other.approved == approved && + other.locale == locale && + other.isBannedUser == isBannedUser && + _deepEquality.equals(other.groupIds, groupIds) && + other.isLive == isLive && + other.hidden == hidden && + other.date == date; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (urlId.hashCode) + - (commenterName.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (commentHTML.hashCode) + - (comment.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (verified.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (hasImages == null ? 0 : hasImages!.hashCode) + - (hasLinks == null ? 0 : hasLinks!.hashCode) + - (isByAdmin == null ? 0 : isByAdmin!.hashCode) + - (isByModerator == null ? 0 : isByModerator!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (isLocked == null ? 0 : isLocked!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (badges == null ? 0 : badges!.hashCode) + - (viewCount == null ? 0 : viewCount!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (isSpam == null ? 0 : isSpam!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (feedbackIds.hashCode) + - (flagCount == null ? 0 : flagCount!.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (url.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (expireAt == null ? 0 : expireAt!.hashCode) + - (reviewed == null ? 0 : reviewed!.hashCode) + - (hasCode == null ? 0 : hasCode!.hashCode) + - (approved.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (isBannedUser == null ? 0 : isBannedUser!.hashCode) + - (groupIds == null ? 0 : groupIds!.hashCode) + - (isLive == null ? 0 : isLive!.hashCode) + - (hidden == null ? 0 : hidden!.hashCode) + - (date.hashCode); + (tenantId.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (urlId.hashCode) + + (commenterName.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (commentHTML.hashCode) + + (comment.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (verified.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (hasImages == null ? 0 : hasImages!.hashCode) + + (hasLinks == null ? 0 : hasLinks!.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (badges == null ? 0 : badges!.hashCode) + + (viewCount == null ? 0 : viewCount!.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode) + + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (feedbackIds.hashCode) + + (flagCount == null ? 0 : flagCount!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (url.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (expireAt == null ? 0 : expireAt!.hashCode) + + (reviewed == null ? 0 : reviewed!.hashCode) + + (hasCode == null ? 0 : hasCode!.hashCode) + + (approved.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (isBannedUser == null ? 0 : isBannedUser!.hashCode) + + (groupIds == null ? 0 : groupIds!.hashCode) + + (isLive == null ? 0 : isLive!.hashCode) + + (hidden == null ? 0 : hidden!.hashCode) + + (date.hashCode); + @override String toString() => 'PubSubComment[id=$id, tenantId=$tenantId, userId=$userId, urlId=$urlId, commenterName=$commenterName, commenterLink=$commenterLink, commentHTML=$commentHTML, comment=$comment, parentId=$parentId, votes=$votes, votesUp=$votesUp, votesDown=$votesDown, verified=$verified, avatarSrc=$avatarSrc, hasImages=$hasImages, hasLinks=$hasLinks, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isPinned=$isPinned, isLocked=$isLocked, displayLabel=$displayLabel, rating=$rating, badges=$badges, viewCount=$viewCount, isDeleted=$isDeleted, isDeletedUser=$isDeletedUser, isSpam=$isSpam, anonUserId=$anonUserId, feedbackIds=$feedbackIds, flagCount=$flagCount, domain=$domain, url=$url, pageTitle=$pageTitle, expireAt=$expireAt, reviewed=$reviewed, hasCode=$hasCode, approved=$approved, locale=$locale, isBannedUser=$isBannedUser, groupIds=$groupIds, isLive=$isLive, hidden=$hidden, date=$date]'; diff --git a/client/lib/model/pub_sub_comment_base.dart b/client/lib/model/pub_sub_comment_base.dart index b9bb926..ee042f2 100644 --- a/client/lib/model/pub_sub_comment_base.dart +++ b/client/lib/model/pub_sub_comment_base.dart @@ -198,89 +198,91 @@ class PubSubCommentBase { @override bool operator ==(Object other) => identical(this, other) || other is PubSubCommentBase && other.id == id && - other.tenantId == tenantId && - other.userId == userId && - other.urlId == urlId && - other.commenterName == commenterName && - other.commenterLink == commenterLink && - other.commentHTML == commentHTML && - other.comment == comment && - other.parentId == parentId && - other.votes == votes && - other.votesUp == votesUp && - other.votesDown == votesDown && - other.verified == verified && - other.avatarSrc == avatarSrc && - other.hasImages == hasImages && - other.hasLinks == hasLinks && - other.isByAdmin == isByAdmin && - other.isByModerator == isByModerator && - other.isPinned == isPinned && - other.isLocked == isLocked && - other.displayLabel == displayLabel && - other.rating == rating && - _deepEquality.equals(other.badges, badges) && - other.viewCount == viewCount && - other.isDeleted == isDeleted && - other.isDeletedUser == isDeletedUser && - other.isSpam == isSpam && - other.anonUserId == anonUserId && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - other.flagCount == flagCount && - other.domain == domain && - other.url == url && - other.pageTitle == pageTitle && - other.expireAt == expireAt && - other.reviewed == reviewed && - other.hasCode == hasCode && - other.approved == approved && - other.locale == locale && - other.isBannedUser == isBannedUser && - _deepEquality.equals(other.groupIds, groupIds); + other.tenantId == tenantId && + other.userId == userId && + other.urlId == urlId && + other.commenterName == commenterName && + other.commenterLink == commenterLink && + other.commentHTML == commentHTML && + other.comment == comment && + other.parentId == parentId && + other.votes == votes && + other.votesUp == votesUp && + other.votesDown == votesDown && + other.verified == verified && + other.avatarSrc == avatarSrc && + other.hasImages == hasImages && + other.hasLinks == hasLinks && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.displayLabel == displayLabel && + other.rating == rating && + _deepEquality.equals(other.badges, badges) && + other.viewCount == viewCount && + other.isDeleted == isDeleted && + other.isDeletedUser == isDeletedUser && + other.isSpam == isSpam && + other.anonUserId == anonUserId && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + other.flagCount == flagCount && + other.domain == domain && + other.url == url && + other.pageTitle == pageTitle && + other.expireAt == expireAt && + other.reviewed == reviewed && + other.hasCode == hasCode && + other.approved == approved && + other.locale == locale && + other.isBannedUser == isBannedUser && + _deepEquality.equals(other.groupIds, groupIds); + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (urlId.hashCode) + - (commenterName.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (commentHTML.hashCode) + - (comment.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (verified.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (hasImages == null ? 0 : hasImages!.hashCode) + - (hasLinks == null ? 0 : hasLinks!.hashCode) + - (isByAdmin == null ? 0 : isByAdmin!.hashCode) + - (isByModerator == null ? 0 : isByModerator!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (isLocked == null ? 0 : isLocked!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (badges == null ? 0 : badges!.hashCode) + - (viewCount == null ? 0 : viewCount!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (isSpam == null ? 0 : isSpam!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (feedbackIds.hashCode) + - (flagCount == null ? 0 : flagCount!.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (url.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (expireAt == null ? 0 : expireAt!.hashCode) + - (reviewed == null ? 0 : reviewed!.hashCode) + - (hasCode == null ? 0 : hasCode!.hashCode) + - (approved.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (isBannedUser == null ? 0 : isBannedUser!.hashCode) + - (groupIds == null ? 0 : groupIds!.hashCode); + (tenantId.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (urlId.hashCode) + + (commenterName.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (commentHTML.hashCode) + + (comment.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (verified.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (hasImages == null ? 0 : hasImages!.hashCode) + + (hasLinks == null ? 0 : hasLinks!.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (badges == null ? 0 : badges!.hashCode) + + (viewCount == null ? 0 : viewCount!.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode) + + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (feedbackIds.hashCode) + + (flagCount == null ? 0 : flagCount!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (url.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (expireAt == null ? 0 : expireAt!.hashCode) + + (reviewed == null ? 0 : reviewed!.hashCode) + + (hasCode == null ? 0 : hasCode!.hashCode) + + (approved.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (isBannedUser == null ? 0 : isBannedUser!.hashCode) + + (groupIds == null ? 0 : groupIds!.hashCode); + @override String toString() => 'PubSubCommentBase[id=$id, tenantId=$tenantId, userId=$userId, urlId=$urlId, commenterName=$commenterName, commenterLink=$commenterLink, commentHTML=$commentHTML, comment=$comment, parentId=$parentId, votes=$votes, votesUp=$votesUp, votesDown=$votesDown, verified=$verified, avatarSrc=$avatarSrc, hasImages=$hasImages, hasLinks=$hasLinks, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isPinned=$isPinned, isLocked=$isLocked, displayLabel=$displayLabel, rating=$rating, badges=$badges, viewCount=$viewCount, isDeleted=$isDeleted, isDeletedUser=$isDeletedUser, isSpam=$isSpam, anonUserId=$anonUserId, feedbackIds=$feedbackIds, flagCount=$flagCount, domain=$domain, url=$url, pageTitle=$pageTitle, expireAt=$expireAt, reviewed=$reviewed, hasCode=$hasCode, approved=$approved, locale=$locale, isBannedUser=$isBannedUser, groupIds=$groupIds]'; diff --git a/client/lib/model/pub_sub_vote.dart b/client/lib/model/pub_sub_vote.dart index b3d438f..f8a3fc8 100644 --- a/client/lib/model/pub_sub_vote.dart +++ b/client/lib/model/pub_sub_vote.dart @@ -45,27 +45,29 @@ class PubSubVote { @override bool operator ==(Object other) => identical(this, other) || other is PubSubVote && other.id == id && - other.tenantId == tenantId && - other.urlId == urlId && - other.urlIdRaw == urlIdRaw && - other.commentId == commentId && - other.userId == userId && - other.direction == direction && - other.createdAt == createdAt && - other.verificationId == verificationId; + other.tenantId == tenantId && + other.urlId == urlId && + other.urlIdRaw == urlIdRaw && + other.commentId == commentId && + other.userId == userId && + other.direction == direction && + other.createdAt == createdAt && + other.verificationId == verificationId; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (urlId.hashCode) + - (urlIdRaw.hashCode) + - (commentId.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (direction.hashCode) + - (createdAt.hashCode) + - (verificationId == null ? 0 : verificationId!.hashCode); + (tenantId.hashCode) + + (urlId.hashCode) + + (urlIdRaw.hashCode) + + (commentId.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (direction.hashCode) + + (createdAt.hashCode) + + (verificationId == null ? 0 : verificationId!.hashCode); + @override String toString() => 'PubSubVote[id=$id, tenantId=$tenantId, urlId=$urlId, urlIdRaw=$urlIdRaw, commentId=$commentId, userId=$userId, direction=$direction, createdAt=$createdAt, verificationId=$verificationId]'; diff --git a/client/lib/model/public_api_delete_comment_response.dart b/client/lib/model/public_api_delete_comment_response.dart index d64b182..b7fe713 100644 --- a/client/lib/model/public_api_delete_comment_response.dart +++ b/client/lib/model/public_api_delete_comment_response.dart @@ -33,15 +33,17 @@ class PublicAPIDeleteCommentResponse { @override bool operator ==(Object other) => identical(this, other) || other is PublicAPIDeleteCommentResponse && other.comment == comment && - other.hardRemoved == hardRemoved && - other.status == status; + other.hardRemoved == hardRemoved && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (comment == null ? 0 : comment!.hashCode) + - (hardRemoved.hashCode) + - (status.hashCode); + (hardRemoved.hashCode) + + (status.hashCode); + @override String toString() => 'PublicAPIDeleteCommentResponse[comment=$comment, hardRemoved=$hardRemoved, status=$status]'; diff --git a/client/lib/model/public_api_get_comment_text_response.dart b/client/lib/model/public_api_get_comment_text_response.dart index a6c9934..7876785 100644 --- a/client/lib/model/public_api_get_comment_text_response.dart +++ b/client/lib/model/public_api_get_comment_text_response.dart @@ -27,15 +27,17 @@ class PublicAPIGetCommentTextResponse { @override bool operator ==(Object other) => identical(this, other) || other is PublicAPIGetCommentTextResponse && other.status == status && - other.commentText == commentText && - other.sanitizedCommentText == sanitizedCommentText; + other.commentText == commentText && + other.sanitizedCommentText == sanitizedCommentText; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (commentText.hashCode) + - (sanitizedCommentText.hashCode); + (commentText.hashCode) + + (sanitizedCommentText.hashCode); + @override String toString() => 'PublicAPIGetCommentTextResponse[status=$status, commentText=$commentText, sanitizedCommentText=$sanitizedCommentText]'; diff --git a/client/lib/model/public_api_set_comment_text_response.dart b/client/lib/model/public_api_set_comment_text_response.dart index cc157aa..370f7fd 100644 --- a/client/lib/model/public_api_set_comment_text_response.dart +++ b/client/lib/model/public_api_set_comment_text_response.dart @@ -24,13 +24,15 @@ class PublicAPISetCommentTextResponse { @override bool operator ==(Object other) => identical(this, other) || other is PublicAPISetCommentTextResponse && other.comment == comment && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (comment.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'PublicAPISetCommentTextResponse[comment=$comment, status=$status]'; diff --git a/client/lib/model/public_block_from_comment_params.dart b/client/lib/model/public_block_from_comment_params.dart index c66cd1a..5c5392c 100644 --- a/client/lib/model/public_block_from_comment_params.dart +++ b/client/lib/model/public_block_from_comment_params.dart @@ -22,11 +22,13 @@ class PublicBlockFromCommentParams { @override bool operator ==(Object other) => identical(this, other) || other is PublicBlockFromCommentParams && _deepEquality.equals(other.commentIds, commentIds); + @override int get hashCode => // ignore: unnecessary_parenthesis (commentIds == null ? 0 : commentIds!.hashCode); + @override String toString() => 'PublicBlockFromCommentParams[commentIds=$commentIds]'; diff --git a/client/lib/model/public_comment.dart b/client/lib/model/public_comment.dart index d54fafb..e710da8 100644 --- a/client/lib/model/public_comment.dart +++ b/client/lib/model/public_comment.dart @@ -246,87 +246,89 @@ class PublicComment { @override bool operator ==(Object other) => identical(this, other) || other is PublicComment && other.id == id && - other.userId == userId && - other.commenterName == commenterName && - other.commenterLink == commenterLink && - other.commentHTML == commentHTML && - other.parentId == parentId && - other.date == date && - other.votes == votes && - other.votesUp == votesUp && - other.votesDown == votesDown && - other.verified == verified && - other.avatarSrc == avatarSrc && - other.hasImages == hasImages && - other.isByAdmin == isByAdmin && - other.isByModerator == isByModerator && - other.isPinned == isPinned && - other.isLocked == isLocked && - other.displayLabel == displayLabel && - other.rating == rating && - _deepEquality.equals(other.badges, badges) && - other.viewCount == viewCount && - other.isDeleted == isDeleted && - other.isDeletedUser == isDeletedUser && - other.isSpam == isSpam && - other.anonUserId == anonUserId && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - other.requiresVerification == requiresVerification && - other.editKey == editKey && - other.approved == approved && - other.isUnread == isUnread && - other.myVoteId == myVoteId && - other.isVotedDown == isVotedDown && - other.isVotedUp == isVotedUp && - other.hasChildren == hasChildren && - other.nestedChildrenCount == nestedChildrenCount && - other.childCount == childCount && - _deepEquality.equals(other.children, children) && - other.isFlagged == isFlagged && - other.isBlocked == isBlocked; + other.userId == userId && + other.commenterName == commenterName && + other.commenterLink == commenterLink && + other.commentHTML == commentHTML && + other.parentId == parentId && + other.date == date && + other.votes == votes && + other.votesUp == votesUp && + other.votesDown == votesDown && + other.verified == verified && + other.avatarSrc == avatarSrc && + other.hasImages == hasImages && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.displayLabel == displayLabel && + other.rating == rating && + _deepEquality.equals(other.badges, badges) && + other.viewCount == viewCount && + other.isDeleted == isDeleted && + other.isDeletedUser == isDeletedUser && + other.isSpam == isSpam && + other.anonUserId == anonUserId && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + other.requiresVerification == requiresVerification && + other.editKey == editKey && + other.approved == approved && + other.isUnread == isUnread && + other.myVoteId == myVoteId && + other.isVotedDown == isVotedDown && + other.isVotedUp == isVotedUp && + other.hasChildren == hasChildren && + other.nestedChildrenCount == nestedChildrenCount && + other.childCount == childCount && + _deepEquality.equals(other.children, children) && + other.isFlagged == isFlagged && + other.isBlocked == isBlocked; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (commenterName.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (commentHTML.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (date == null ? 0 : date!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (verified.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (hasImages == null ? 0 : hasImages!.hashCode) + - (isByAdmin == null ? 0 : isByAdmin!.hashCode) + - (isByModerator == null ? 0 : isByModerator!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (isLocked == null ? 0 : isLocked!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (badges == null ? 0 : badges!.hashCode) + - (viewCount == null ? 0 : viewCount!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (isSpam == null ? 0 : isSpam!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (feedbackIds.hashCode) + - (requiresVerification == null ? 0 : requiresVerification!.hashCode) + - (editKey == null ? 0 : editKey!.hashCode) + - (approved == null ? 0 : approved!.hashCode) + - (isUnread == null ? 0 : isUnread!.hashCode) + - (myVoteId == null ? 0 : myVoteId!.hashCode) + - (isVotedDown == null ? 0 : isVotedDown!.hashCode) + - (isVotedUp == null ? 0 : isVotedUp!.hashCode) + - (hasChildren == null ? 0 : hasChildren!.hashCode) + - (nestedChildrenCount == null ? 0 : nestedChildrenCount!.hashCode) + - (childCount == null ? 0 : childCount!.hashCode) + - (children.hashCode) + - (isFlagged == null ? 0 : isFlagged!.hashCode) + - (isBlocked == null ? 0 : isBlocked!.hashCode); + (userId == null ? 0 : userId!.hashCode) + + (commenterName.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (commentHTML.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (date == null ? 0 : date!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (verified.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (hasImages == null ? 0 : hasImages!.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (badges == null ? 0 : badges!.hashCode) + + (viewCount == null ? 0 : viewCount!.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode) + + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (feedbackIds.hashCode) + + (requiresVerification == null ? 0 : requiresVerification!.hashCode) + + (editKey == null ? 0 : editKey!.hashCode) + + (approved == null ? 0 : approved!.hashCode) + + (isUnread == null ? 0 : isUnread!.hashCode) + + (myVoteId == null ? 0 : myVoteId!.hashCode) + + (isVotedDown == null ? 0 : isVotedDown!.hashCode) + + (isVotedUp == null ? 0 : isVotedUp!.hashCode) + + (hasChildren == null ? 0 : hasChildren!.hashCode) + + (nestedChildrenCount == null ? 0 : nestedChildrenCount!.hashCode) + + (childCount == null ? 0 : childCount!.hashCode) + + (children.hashCode) + + (isFlagged == null ? 0 : isFlagged!.hashCode) + + (isBlocked == null ? 0 : isBlocked!.hashCode); + @override String toString() => 'PublicComment[id=$id, userId=$userId, commenterName=$commenterName, commenterLink=$commenterLink, commentHTML=$commentHTML, parentId=$parentId, date=$date, votes=$votes, votesUp=$votesUp, votesDown=$votesDown, verified=$verified, avatarSrc=$avatarSrc, hasImages=$hasImages, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isPinned=$isPinned, isLocked=$isLocked, displayLabel=$displayLabel, rating=$rating, badges=$badges, viewCount=$viewCount, isDeleted=$isDeleted, isDeletedUser=$isDeletedUser, isSpam=$isSpam, anonUserId=$anonUserId, feedbackIds=$feedbackIds, requiresVerification=$requiresVerification, editKey=$editKey, approved=$approved, isUnread=$isUnread, myVoteId=$myVoteId, isVotedDown=$isVotedDown, isVotedUp=$isVotedUp, hasChildren=$hasChildren, nestedChildrenCount=$nestedChildrenCount, childCount=$childCount, children=$children, isFlagged=$isFlagged, isBlocked=$isBlocked]'; diff --git a/client/lib/model/public_comment_base.dart b/client/lib/model/public_comment_base.dart index df48225..98dded9 100644 --- a/client/lib/model/public_comment_base.dart +++ b/client/lib/model/public_comment_base.dart @@ -159,67 +159,69 @@ class PublicCommentBase { @override bool operator ==(Object other) => identical(this, other) || other is PublicCommentBase && other.id == id && - other.userId == userId && - other.commenterName == commenterName && - other.commenterLink == commenterLink && - other.commentHTML == commentHTML && - other.parentId == parentId && - other.date == date && - other.votes == votes && - other.votesUp == votesUp && - other.votesDown == votesDown && - other.verified == verified && - other.avatarSrc == avatarSrc && - other.hasImages == hasImages && - other.isByAdmin == isByAdmin && - other.isByModerator == isByModerator && - other.isPinned == isPinned && - other.isLocked == isLocked && - other.displayLabel == displayLabel && - other.rating == rating && - _deepEquality.equals(other.badges, badges) && - other.viewCount == viewCount && - other.isDeleted == isDeleted && - other.isDeletedUser == isDeletedUser && - other.isSpam == isSpam && - other.anonUserId == anonUserId && - _deepEquality.equals(other.feedbackIds, feedbackIds) && - other.requiresVerification == requiresVerification && - other.editKey == editKey && - other.approved == approved; + other.userId == userId && + other.commenterName == commenterName && + other.commenterLink == commenterLink && + other.commentHTML == commentHTML && + other.parentId == parentId && + other.date == date && + other.votes == votes && + other.votesUp == votesUp && + other.votesDown == votesDown && + other.verified == verified && + other.avatarSrc == avatarSrc && + other.hasImages == hasImages && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.displayLabel == displayLabel && + other.rating == rating && + _deepEquality.equals(other.badges, badges) && + other.viewCount == viewCount && + other.isDeleted == isDeleted && + other.isDeletedUser == isDeletedUser && + other.isSpam == isSpam && + other.anonUserId == anonUserId && + _deepEquality.equals(other.feedbackIds, feedbackIds) && + other.requiresVerification == requiresVerification && + other.editKey == editKey && + other.approved == approved; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (commenterName.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (commentHTML.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (date == null ? 0 : date!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (verified.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (hasImages == null ? 0 : hasImages!.hashCode) + - (isByAdmin == null ? 0 : isByAdmin!.hashCode) + - (isByModerator == null ? 0 : isByModerator!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (isLocked == null ? 0 : isLocked!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (rating == null ? 0 : rating!.hashCode) + - (badges == null ? 0 : badges!.hashCode) + - (viewCount == null ? 0 : viewCount!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (isSpam == null ? 0 : isSpam!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (feedbackIds.hashCode) + - (requiresVerification == null ? 0 : requiresVerification!.hashCode) + - (editKey == null ? 0 : editKey!.hashCode) + - (approved == null ? 0 : approved!.hashCode); + (userId == null ? 0 : userId!.hashCode) + + (commenterName.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (commentHTML.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (date == null ? 0 : date!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (verified.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (hasImages == null ? 0 : hasImages!.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (rating == null ? 0 : rating!.hashCode) + + (badges == null ? 0 : badges!.hashCode) + + (viewCount == null ? 0 : viewCount!.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode) + + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (feedbackIds.hashCode) + + (requiresVerification == null ? 0 : requiresVerification!.hashCode) + + (editKey == null ? 0 : editKey!.hashCode) + + (approved == null ? 0 : approved!.hashCode); + @override String toString() => 'PublicCommentBase[id=$id, userId=$userId, commenterName=$commenterName, commenterLink=$commenterLink, commentHTML=$commentHTML, parentId=$parentId, date=$date, votes=$votes, votesUp=$votesUp, votesDown=$votesDown, verified=$verified, avatarSrc=$avatarSrc, hasImages=$hasImages, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isPinned=$isPinned, isLocked=$isLocked, displayLabel=$displayLabel, rating=$rating, badges=$badges, viewCount=$viewCount, isDeleted=$isDeleted, isDeletedUser=$isDeletedUser, isSpam=$isSpam, anonUserId=$anonUserId, feedbackIds=$feedbackIds, requiresVerification=$requiresVerification, editKey=$editKey, approved=$approved]'; diff --git a/client/lib/model/public_feed_posts_response.dart b/client/lib/model/public_feed_posts_response.dart index fec16dd..7ce0842 100644 --- a/client/lib/model/public_feed_posts_response.dart +++ b/client/lib/model/public_feed_posts_response.dart @@ -57,23 +57,25 @@ class PublicFeedPostsResponse { @override bool operator ==(Object other) => identical(this, other) || other is PublicFeedPostsResponse && other.status == status && - _deepEquality.equals(other.feedPosts, feedPosts) && - other.user == user && - other.urlIdWS == urlIdWS && - other.userIdWS == userIdWS && - other.tenantIdWS == tenantIdWS && - _deepEquality.equals(other.myReacts, myReacts); + _deepEquality.equals(other.feedPosts, feedPosts) && + other.user == user && + other.urlIdWS == urlIdWS && + other.userIdWS == userIdWS && + other.tenantIdWS == tenantIdWS && + _deepEquality.equals(other.myReacts, myReacts); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (feedPosts.hashCode) + - (user == null ? 0 : user!.hashCode) + - (urlIdWS == null ? 0 : urlIdWS!.hashCode) + - (userIdWS == null ? 0 : userIdWS!.hashCode) + - (tenantIdWS == null ? 0 : tenantIdWS!.hashCode) + - (myReacts.hashCode); + (feedPosts.hashCode) + + (user == null ? 0 : user!.hashCode) + + (urlIdWS == null ? 0 : urlIdWS!.hashCode) + + (userIdWS == null ? 0 : userIdWS!.hashCode) + + (tenantIdWS == null ? 0 : tenantIdWS!.hashCode) + + (myReacts.hashCode); + @override String toString() => 'PublicFeedPostsResponse[status=$status, feedPosts=$feedPosts, user=$user, urlIdWS=$urlIdWS, userIdWS=$userIdWS, tenantIdWS=$tenantIdWS, myReacts=$myReacts]'; @@ -131,7 +133,7 @@ class PublicFeedPostsResponse { urlIdWS: mapValueOfType(json, r'urlIdWS'), userIdWS: mapValueOfType(json, r'userIdWS'), tenantIdWS: mapValueOfType(json, r'tenantIdWS'), - myReacts: mapCastOfType(json, r'myReacts') ?? const {}, + myReacts: (json[r'myReacts'] as Map?)?.map((k, v) => MapEntry(k as String, (v as Map).cast())) ?? const {}, ); } return null; diff --git a/client/lib/model/public_page.dart b/client/lib/model/public_page.dart new file mode 100644 index 0000000..78034e3 --- /dev/null +++ b/client/lib/model/public_page.dart @@ -0,0 +1,149 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PublicPage { + /// Returns a new [PublicPage] instance. + PublicPage({ + required this.updatedAt, + required this.commentCount, + required this.title, + required this.url, + required this.urlId, + }); + + int updatedAt; + + int commentCount; + + String title; + + String url; + + String urlId; + + @override + bool operator ==(Object other) => identical(this, other) || other is PublicPage && + other.updatedAt == updatedAt && + other.commentCount == commentCount && + other.title == title && + other.url == url && + other.urlId == urlId; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (updatedAt.hashCode) + + (commentCount.hashCode) + + (title.hashCode) + + (url.hashCode) + + (urlId.hashCode); + + + @override + String toString() => 'PublicPage[updatedAt=$updatedAt, commentCount=$commentCount, title=$title, url=$url, urlId=$urlId]'; + + Map toJson() { + final json = {}; + json[r'updatedAt'] = this.updatedAt; + json[r'commentCount'] = this.commentCount; + json[r'title'] = this.title; + json[r'url'] = this.url; + json[r'urlId'] = this.urlId; + return json; + } + + /// Returns a new [PublicPage] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PublicPage? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'updatedAt'), 'Required key "PublicPage[updatedAt]" is missing from JSON.'); + assert(json[r'updatedAt'] != null, 'Required key "PublicPage[updatedAt]" has a null value in JSON.'); + assert(json.containsKey(r'commentCount'), 'Required key "PublicPage[commentCount]" is missing from JSON.'); + assert(json[r'commentCount'] != null, 'Required key "PublicPage[commentCount]" has a null value in JSON.'); + assert(json.containsKey(r'title'), 'Required key "PublicPage[title]" is missing from JSON.'); + assert(json[r'title'] != null, 'Required key "PublicPage[title]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "PublicPage[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "PublicPage[url]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "PublicPage[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "PublicPage[urlId]" has a null value in JSON.'); + return true; + }()); + + return PublicPage( + updatedAt: mapValueOfType(json, r'updatedAt')!, + commentCount: mapValueOfType(json, r'commentCount')!, + title: mapValueOfType(json, r'title')!, + url: mapValueOfType(json, r'url')!, + urlId: mapValueOfType(json, r'urlId')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PublicPage.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PublicPage.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PublicPage-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PublicPage.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'updatedAt', + 'commentCount', + 'title', + 'url', + 'urlId', + }; +} + diff --git a/client/lib/model/public_vote.dart b/client/lib/model/public_vote.dart index 499d49a..d3a6dd8 100644 --- a/client/lib/model/public_vote.dart +++ b/client/lib/model/public_vote.dart @@ -36,21 +36,23 @@ class PublicVote { @override bool operator ==(Object other) => identical(this, other) || other is PublicVote && other.id == id && - other.urlId == urlId && - other.commentId == commentId && - other.userId == userId && - other.direction == direction && - other.createdAt == createdAt; + other.urlId == urlId && + other.commentId == commentId && + other.userId == userId && + other.direction == direction && + other.createdAt == createdAt; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (urlId.hashCode) + - (commentId.hashCode) + - (userId.hashCode) + - (direction.hashCode) + - (createdAt.hashCode); + (urlId.hashCode) + + (commentId.hashCode) + + (userId.hashCode) + + (direction.hashCode) + + (createdAt.hashCode); + @override String toString() => 'PublicVote[id=$id, urlId=$urlId, commentId=$commentId, userId=$userId, direction=$direction, createdAt=$createdAt]'; diff --git a/client/lib/model/put_domain_config_response.dart b/client/lib/model/put_domain_config_response.dart new file mode 100644 index 0000000..35d7cd2 --- /dev/null +++ b/client/lib/model/put_domain_config_response.dart @@ -0,0 +1,157 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PutDomainConfigResponse { + /// Returns a new [PutDomainConfigResponse] instance. + PutDomainConfigResponse({ + this.configuration, + required this.status, + this.reason, + this.code, + }); + + Object? configuration; + + Object? status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? reason; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? code; + + @override + bool operator ==(Object other) => identical(this, other) || other is PutDomainConfigResponse && + other.configuration == configuration && + other.status == status && + other.reason == reason && + other.code == code; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (configuration == null ? 0 : configuration!.hashCode) + + (status == null ? 0 : status!.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode); + + + @override + String toString() => 'PutDomainConfigResponse[configuration=$configuration, status=$status, reason=$reason, code=$code]'; + + Map toJson() { + final json = {}; + if (this.configuration != null) { + json[r'configuration'] = this.configuration; + } else { + json[r'configuration'] = null; + } + if (this.status != null) { + json[r'status'] = this.status; + } else { + json[r'status'] = null; + } + if (this.reason != null) { + json[r'reason'] = this.reason; + } else { + json[r'reason'] = null; + } + if (this.code != null) { + json[r'code'] = this.code; + } else { + json[r'code'] = null; + } + return json; + } + + /// Returns a new [PutDomainConfigResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PutDomainConfigResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "PutDomainConfigResponse[status]" is missing from JSON.'); + return true; + }()); + + return PutDomainConfigResponse( + configuration: mapValueOfType(json, r'configuration'), + status: mapValueOfType(json, r'status'), + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PutDomainConfigResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PutDomainConfigResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PutDomainConfigResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PutDomainConfigResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/put_sso_user_api_response.dart b/client/lib/model/put_sso_user_api_response.dart index 15f4112..fb8f8d7 100644 --- a/client/lib/model/put_sso_user_api_response.dart +++ b/client/lib/model/put_sso_user_api_response.dart @@ -42,17 +42,19 @@ class PutSSOUserAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is PutSSOUserAPIResponse && other.reason == reason && - other.code == code && - other.user == user && - other.status == status; + other.code == code && + other.user == user && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (user == null ? 0 : user!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (user == null ? 0 : user!.hashCode) + + (status.hashCode); + @override String toString() => 'PutSSOUserAPIResponse[reason=$reason, code=$code, user=$user, status=$status]'; diff --git a/client/lib/model/query_predicate.dart b/client/lib/model/query_predicate.dart index 194da81..6bc99f7 100644 --- a/client/lib/model/query_predicate.dart +++ b/client/lib/model/query_predicate.dart @@ -27,15 +27,17 @@ class QueryPredicate { @override bool operator ==(Object other) => identical(this, other) || other is QueryPredicate && other.key == key && - other.value == value && - other.operator_ == operator_; + other.value == value && + other.operator_ == operator_; + @override int get hashCode => // ignore: unnecessary_parenthesis (key.hashCode) + - (value.hashCode) + - (operator_.hashCode); + (value.hashCode) + + (operator_.hashCode); + @override String toString() => 'QueryPredicate[key=$key, value=$value, operator_=$operator_]'; diff --git a/client/lib/model/query_predicate_value.dart b/client/lib/model/query_predicate_value.dart index 01f1ac4..d990873 100644 --- a/client/lib/model/query_predicate_value.dart +++ b/client/lib/model/query_predicate_value.dart @@ -12,15 +12,15 @@ part of openapi.api; class QueryPredicateValue { /// Returns a new [QueryPredicateValue] instance. - QueryPredicateValue({ - }); + QueryPredicateValue(); @override - bool operator ==(Object other) => identical(this, other) || other is QueryPredicateValue && + bool operator ==(Object other) => identical(this, other) || other is QueryPredicateValue; @override int get hashCode => // ignore: unnecessary_parenthesis + 0; @override String toString() => 'QueryPredicateValue[]'; diff --git a/client/lib/model/question_config.dart b/client/lib/model/question_config.dart index 1b715ad..c6b0913 100644 --- a/client/lib/model/question_config.dart +++ b/client/lib/model/question_config.dart @@ -87,51 +87,53 @@ class QuestionConfig { @override bool operator ==(Object other) => identical(this, other) || other is QuestionConfig && other.id == id && - other.tenantId == tenantId && - other.name == name && - other.question == question && - other.summaryLabel == summaryLabel && - other.helpText == helpText && - other.createdAt == createdAt && - other.createdBy == createdBy && - other.usedCount == usedCount && - other.lastUsed == lastUsed && - other.type == type && - other.numStars == numStars && - other.min == min && - other.max == max && - other.defaultValue == defaultValue && - other.labelNegative == labelNegative && - other.labelPositive == labelPositive && - _deepEquality.equals(other.customOptions, customOptions) && - _deepEquality.equals(other.subQuestionIds, subQuestionIds) && - other.alwaysShowSubQuestions == alwaysShowSubQuestions && - other.reportingOrder == reportingOrder; + other.tenantId == tenantId && + other.name == name && + other.question == question && + other.summaryLabel == summaryLabel && + other.helpText == helpText && + other.createdAt == createdAt && + other.createdBy == createdBy && + other.usedCount == usedCount && + other.lastUsed == lastUsed && + other.type == type && + other.numStars == numStars && + other.min == min && + other.max == max && + other.defaultValue == defaultValue && + other.labelNegative == labelNegative && + other.labelPositive == labelPositive && + _deepEquality.equals(other.customOptions, customOptions) && + _deepEquality.equals(other.subQuestionIds, subQuestionIds) && + other.alwaysShowSubQuestions == alwaysShowSubQuestions && + other.reportingOrder == reportingOrder; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (name.hashCode) + - (question.hashCode) + - (summaryLabel == null ? 0 : summaryLabel!.hashCode) + - (helpText.hashCode) + - (createdAt.hashCode) + - (createdBy.hashCode) + - (usedCount.hashCode) + - (lastUsed.hashCode) + - (type.hashCode) + - (numStars.hashCode) + - (min.hashCode) + - (max.hashCode) + - (defaultValue.hashCode) + - (labelNegative.hashCode) + - (labelPositive.hashCode) + - (customOptions.hashCode) + - (subQuestionIds.hashCode) + - (alwaysShowSubQuestions.hashCode) + - (reportingOrder.hashCode); + (tenantId.hashCode) + + (name.hashCode) + + (question.hashCode) + + (summaryLabel == null ? 0 : summaryLabel!.hashCode) + + (helpText.hashCode) + + (createdAt.hashCode) + + (createdBy.hashCode) + + (usedCount.hashCode) + + (lastUsed.hashCode) + + (type.hashCode) + + (numStars.hashCode) + + (min.hashCode) + + (max.hashCode) + + (defaultValue.hashCode) + + (labelNegative.hashCode) + + (labelPositive.hashCode) + + (customOptions.hashCode) + + (subQuestionIds.hashCode) + + (alwaysShowSubQuestions.hashCode) + + (reportingOrder.hashCode); + @override String toString() => 'QuestionConfig[id=$id, tenantId=$tenantId, name=$name, question=$question, summaryLabel=$summaryLabel, helpText=$helpText, createdAt=$createdAt, createdBy=$createdBy, usedCount=$usedCount, lastUsed=$lastUsed, type=$type, numStars=$numStars, min=$min, max=$max, defaultValue=$defaultValue, labelNegative=$labelNegative, labelPositive=$labelPositive, customOptions=$customOptions, subQuestionIds=$subQuestionIds, alwaysShowSubQuestions=$alwaysShowSubQuestions, reportingOrder=$reportingOrder]'; diff --git a/client/lib/model/question_config_custom_options_inner.dart b/client/lib/model/question_config_custom_options_inner.dart index 8a751c2..4655c1a 100644 --- a/client/lib/model/question_config_custom_options_inner.dart +++ b/client/lib/model/question_config_custom_options_inner.dart @@ -24,13 +24,15 @@ class QuestionConfigCustomOptionsInner { @override bool operator ==(Object other) => identical(this, other) || other is QuestionConfigCustomOptionsInner && other.imageSrc == imageSrc && - other.name == name; + other.name == name; + @override int get hashCode => // ignore: unnecessary_parenthesis (imageSrc.hashCode) + - (name.hashCode); + (name.hashCode); + @override String toString() => 'QuestionConfigCustomOptionsInner[imageSrc=$imageSrc, name=$name]'; diff --git a/client/lib/model/question_datum.dart b/client/lib/model/question_datum.dart index 6659433..a618d37 100644 --- a/client/lib/model/question_datum.dart +++ b/client/lib/model/question_datum.dart @@ -25,13 +25,15 @@ class QuestionDatum { @override bool operator ==(Object other) => identical(this, other) || other is QuestionDatum && _deepEquality.equals(other.v, v) && - other.total == total; + other.total == total; + @override int get hashCode => // ignore: unnecessary_parenthesis (v.hashCode) + - (total.hashCode); + (total.hashCode); + @override String toString() => 'QuestionDatum[v=$v, total=$total]'; diff --git a/client/lib/model/question_result.dart b/client/lib/model/question_result.dart index 23bc860..60316cf 100644 --- a/client/lib/model/question_result.dart +++ b/client/lib/model/question_result.dart @@ -51,31 +51,33 @@ class QuestionResult { @override bool operator ==(Object other) => identical(this, other) || other is QuestionResult && other.id == id && - other.tenantId == tenantId && - other.urlId == urlId && - other.anonUserId == anonUserId && - other.userId == userId && - other.createdAt == createdAt && - other.value == value && - other.commentId == commentId && - other.questionId == questionId && - _deepEquality.equals(other.meta, meta) && - other.ipHash == ipHash; + other.tenantId == tenantId && + other.urlId == urlId && + other.anonUserId == anonUserId && + other.userId == userId && + other.createdAt == createdAt && + other.value == value && + other.commentId == commentId && + other.questionId == questionId && + _deepEquality.equals(other.meta, meta) && + other.ipHash == ipHash; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (urlId.hashCode) + - (anonUserId.hashCode) + - (userId.hashCode) + - (createdAt.hashCode) + - (value.hashCode) + - (commentId == null ? 0 : commentId!.hashCode) + - (questionId.hashCode) + - (meta == null ? 0 : meta!.hashCode) + - (ipHash.hashCode); + (tenantId.hashCode) + + (urlId.hashCode) + + (anonUserId.hashCode) + + (userId.hashCode) + + (createdAt.hashCode) + + (value.hashCode) + + (commentId == null ? 0 : commentId!.hashCode) + + (questionId.hashCode) + + (meta == null ? 0 : meta!.hashCode) + + (ipHash.hashCode); + @override String toString() => 'QuestionResult[id=$id, tenantId=$tenantId, urlId=$urlId, anonUserId=$anonUserId, userId=$userId, createdAt=$createdAt, value=$value, commentId=$commentId, questionId=$questionId, meta=$meta, ipHash=$ipHash]'; diff --git a/client/lib/model/question_result_aggregation_overall.dart b/client/lib/model/question_result_aggregation_overall.dart index 86d928f..57987ab 100644 --- a/client/lib/model/question_result_aggregation_overall.dart +++ b/client/lib/model/question_result_aggregation_overall.dart @@ -44,21 +44,23 @@ class QuestionResultAggregationOverall { @override bool operator ==(Object other) => identical(this, other) || other is QuestionResultAggregationOverall && _deepEquality.equals(other.dataByDateBucket, dataByDateBucket) && - _deepEquality.equals(other.dataByUrlId, dataByUrlId) && - _deepEquality.equals(other.countsByValue, countsByValue) && - other.total == total && - other.average == average && - other.createdAt == createdAt; + _deepEquality.equals(other.dataByUrlId, dataByUrlId) && + _deepEquality.equals(other.countsByValue, countsByValue) && + other.total == total && + other.average == average && + other.createdAt == createdAt; + @override int get hashCode => // ignore: unnecessary_parenthesis (dataByDateBucket.hashCode) + - (dataByUrlId.hashCode) + - (countsByValue.hashCode) + - (total.hashCode) + - (average == null ? 0 : average!.hashCode) + - (createdAt.hashCode); + (dataByUrlId.hashCode) + + (countsByValue.hashCode) + + (total.hashCode) + + (average == null ? 0 : average!.hashCode) + + (createdAt.hashCode); + @override String toString() => 'QuestionResultAggregationOverall[dataByDateBucket=$dataByDateBucket, dataByUrlId=$dataByUrlId, countsByValue=$countsByValue, total=$total, average=$average, createdAt=$createdAt]'; diff --git a/client/lib/model/react_body_params.dart b/client/lib/model/react_body_params.dart index ae8a626..7f54a1e 100644 --- a/client/lib/model/react_body_params.dart +++ b/client/lib/model/react_body_params.dart @@ -27,11 +27,13 @@ class ReactBodyParams { @override bool operator ==(Object other) => identical(this, other) || other is ReactBodyParams && other.reactType == reactType; + @override int get hashCode => // ignore: unnecessary_parenthesis (reactType == null ? 0 : reactType!.hashCode); + @override String toString() => 'ReactBodyParams[reactType=$reactType]'; diff --git a/client/lib/model/react_feed_post_public200_response.dart b/client/lib/model/react_feed_post_public200_response.dart deleted file mode 100644 index ca17fc9..0000000 --- a/client/lib/model/react_feed_post_public200_response.dart +++ /dev/null @@ -1,232 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ReactFeedPostPublic200Response { - /// Returns a new [ReactFeedPostPublic200Response] instance. - ReactFeedPostPublic200Response({ - required this.status, - required this.reactType, - required this.isUndo, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - String reactType; - - bool isUndo; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is ReactFeedPostPublic200Response && - other.status == status && - other.reactType == reactType && - other.isUndo == isUndo && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (reactType.hashCode) + - (isUndo.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'ReactFeedPostPublic200Response[status=$status, reactType=$reactType, isUndo=$isUndo, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'reactType'] = this.reactType; - json[r'isUndo'] = this.isUndo; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [ReactFeedPostPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ReactFeedPostPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "ReactFeedPostPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "ReactFeedPostPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reactType'), 'Required key "ReactFeedPostPublic200Response[reactType]" is missing from JSON.'); - assert(json[r'reactType'] != null, 'Required key "ReactFeedPostPublic200Response[reactType]" has a null value in JSON.'); - assert(json.containsKey(r'isUndo'), 'Required key "ReactFeedPostPublic200Response[isUndo]" is missing from JSON.'); - assert(json[r'isUndo'] != null, 'Required key "ReactFeedPostPublic200Response[isUndo]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "ReactFeedPostPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "ReactFeedPostPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "ReactFeedPostPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "ReactFeedPostPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return ReactFeedPostPublic200Response( - status: APIStatus.fromJson(json[r'status'])!, - reactType: mapValueOfType(json, r'reactType')!, - isUndo: mapValueOfType(json, r'isUndo')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ReactFeedPostPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ReactFeedPostPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ReactFeedPostPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ReactFeedPostPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'reactType', - 'isUndo', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/react_feed_post_response.dart b/client/lib/model/react_feed_post_response.dart index 14cf331..c76eed1 100644 --- a/client/lib/model/react_feed_post_response.dart +++ b/client/lib/model/react_feed_post_response.dart @@ -27,15 +27,17 @@ class ReactFeedPostResponse { @override bool operator ==(Object other) => identical(this, other) || other is ReactFeedPostResponse && other.status == status && - other.reactType == reactType && - other.isUndo == isUndo; + other.reactType == reactType && + other.isUndo == isUndo; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (reactType.hashCode) + - (isUndo.hashCode); + (reactType.hashCode) + + (isUndo.hashCode); + @override String toString() => 'ReactFeedPostResponse[status=$status, reactType=$reactType, isUndo=$isUndo]'; diff --git a/client/lib/model/record_string_before_string_or_null_after_string_or_null_value.dart b/client/lib/model/record_string_before_string_or_null_after_string_or_null_value.dart index 3d3b6cb..4719496 100644 --- a/client/lib/model/record_string_before_string_or_null_after_string_or_null_value.dart +++ b/client/lib/model/record_string_before_string_or_null_after_string_or_null_value.dart @@ -24,13 +24,15 @@ class RecordStringBeforeStringOrNullAfterStringOrNullValue { @override bool operator ==(Object other) => identical(this, other) || other is RecordStringBeforeStringOrNullAfterStringOrNullValue && other.after == after && - other.before == before; + other.before == before; + @override int get hashCode => // ignore: unnecessary_parenthesis (after == null ? 0 : after!.hashCode) + - (before == null ? 0 : before!.hashCode); + (before == null ? 0 : before!.hashCode); + @override String toString() => 'RecordStringBeforeStringOrNullAfterStringOrNullValue[after=$after, before=$before]'; diff --git a/client/lib/model/remove_comment_action_response.dart b/client/lib/model/remove_comment_action_response.dart new file mode 100644 index 0000000..e23c360 --- /dev/null +++ b/client/lib/model/remove_comment_action_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class RemoveCommentActionResponse { + /// Returns a new [RemoveCommentActionResponse] instance. + RemoveCommentActionResponse({ + required this.status, + required this.action, + }); + + String status; + + String action; + + @override + bool operator ==(Object other) => identical(this, other) || other is RemoveCommentActionResponse && + other.status == status && + other.action == action; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (action.hashCode); + + + @override + String toString() => 'RemoveCommentActionResponse[status=$status, action=$action]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'action'] = this.action; + return json; + } + + /// Returns a new [RemoveCommentActionResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static RemoveCommentActionResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "RemoveCommentActionResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "RemoveCommentActionResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'action'), 'Required key "RemoveCommentActionResponse[action]" is missing from JSON.'); + assert(json[r'action'] != null, 'Required key "RemoveCommentActionResponse[action]" has a null value in JSON.'); + return true; + }()); + + return RemoveCommentActionResponse( + status: mapValueOfType(json, r'status')!, + action: mapValueOfType(json, r'action')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = RemoveCommentActionResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = RemoveCommentActionResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of RemoveCommentActionResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = RemoveCommentActionResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + 'action', + }; +} + diff --git a/client/lib/model/remove_user_badge_response.dart b/client/lib/model/remove_user_badge_response.dart new file mode 100644 index 0000000..cd33051 --- /dev/null +++ b/client/lib/model/remove_user_badge_response.dart @@ -0,0 +1,116 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class RemoveUserBadgeResponse { + /// Returns a new [RemoveUserBadgeResponse] instance. + RemoveUserBadgeResponse({ + this.badges = const [], + required this.status, + }); + + List badges; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is RemoveUserBadgeResponse && + _deepEquality.equals(other.badges, badges) && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (badges.hashCode) + + (status.hashCode); + + + @override + String toString() => 'RemoveUserBadgeResponse[badges=$badges, status=$status]'; + + Map toJson() { + final json = {}; + json[r'badges'] = this.badges; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [RemoveUserBadgeResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static RemoveUserBadgeResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "RemoveUserBadgeResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "RemoveUserBadgeResponse[status]" has a null value in JSON.'); + return true; + }()); + + return RemoveUserBadgeResponse( + badges: CommentUserBadgeInfo.listFromJson(json[r'badges']), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = RemoveUserBadgeResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = RemoveUserBadgeResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of RemoveUserBadgeResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = RemoveUserBadgeResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/render_email_template200_response.dart b/client/lib/model/render_email_template200_response.dart deleted file mode 100644 index 88822ef..0000000 --- a/client/lib/model/render_email_template200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class RenderEmailTemplate200Response { - /// Returns a new [RenderEmailTemplate200Response] instance. - RenderEmailTemplate200Response({ - required this.status, - required this.html, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - String html; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is RenderEmailTemplate200Response && - other.status == status && - other.html == html && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (html.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'RenderEmailTemplate200Response[status=$status, html=$html, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'html'] = this.html; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [RenderEmailTemplate200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static RenderEmailTemplate200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "RenderEmailTemplate200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "RenderEmailTemplate200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'html'), 'Required key "RenderEmailTemplate200Response[html]" is missing from JSON.'); - assert(json[r'html'] != null, 'Required key "RenderEmailTemplate200Response[html]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "RenderEmailTemplate200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "RenderEmailTemplate200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "RenderEmailTemplate200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "RenderEmailTemplate200Response[code]" has a null value in JSON.'); - return true; - }()); - - return RenderEmailTemplate200Response( - status: APIStatus.fromJson(json[r'status'])!, - html: mapValueOfType(json, r'html')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = RenderEmailTemplate200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = RenderEmailTemplate200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of RenderEmailTemplate200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = RenderEmailTemplate200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'html', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/render_email_template_body.dart b/client/lib/model/render_email_template_body.dart index c72284d..704d939 100644 --- a/client/lib/model/render_email_template_body.dart +++ b/client/lib/model/render_email_template_body.dart @@ -32,17 +32,19 @@ class RenderEmailTemplateBody { @override bool operator ==(Object other) => identical(this, other) || other is RenderEmailTemplateBody && other.emailTemplateId == emailTemplateId && - other.ejs == ejs && - _deepEquality.equals(other.testData, testData) && - _deepEquality.equals(other.translationOverridesByLocale, translationOverridesByLocale); + other.ejs == ejs && + _deepEquality.equals(other.testData, testData) && + _deepEquality.equals(other.translationOverridesByLocale, translationOverridesByLocale); + @override int get hashCode => // ignore: unnecessary_parenthesis (emailTemplateId.hashCode) + - (ejs.hashCode) + - (testData.hashCode) + - (translationOverridesByLocale.hashCode); + (ejs.hashCode) + + (testData.hashCode) + + (translationOverridesByLocale.hashCode); + @override String toString() => 'RenderEmailTemplateBody[emailTemplateId=$emailTemplateId, ejs=$ejs, testData=$testData, translationOverridesByLocale=$translationOverridesByLocale]'; @@ -78,7 +80,7 @@ class RenderEmailTemplateBody { emailTemplateId: mapValueOfType(json, r'emailTemplateId')!, ejs: mapValueOfType(json, r'ejs')!, testData: mapCastOfType(json, r'testData') ?? const {}, - translationOverridesByLocale: mapCastOfType(json, r'translationOverridesByLocale') ?? const {}, + translationOverridesByLocale: (json[r'translationOverridesByLocale'] as Map?)?.map((k, v) => MapEntry(k as String, (v as Map).cast())) ?? const {}, ); } return null; diff --git a/client/lib/model/render_email_template_response.dart b/client/lib/model/render_email_template_response.dart index 895c808..6fe366c 100644 --- a/client/lib/model/render_email_template_response.dart +++ b/client/lib/model/render_email_template_response.dart @@ -24,13 +24,15 @@ class RenderEmailTemplateResponse { @override bool operator ==(Object other) => identical(this, other) || other is RenderEmailTemplateResponse && other.status == status && - other.html == html; + other.html == html; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (html.hashCode); + (html.hashCode); + @override String toString() => 'RenderEmailTemplateResponse[status=$status, html=$html]'; diff --git a/client/lib/model/renderable_user_notification.dart b/client/lib/model/renderable_user_notification.dart index 00079f5..3f5f696 100644 --- a/client/lib/model/renderable_user_notification.dart +++ b/client/lib/model/renderable_user_notification.dart @@ -99,51 +99,53 @@ class RenderableUserNotification { @override bool operator ==(Object other) => identical(this, other) || other is RenderableUserNotification && other.conversationId == conversationId && - other.contextHTML == contextHTML && - _deepEquality.equals(other.fromUserNames, fromUserNames) && - _deepEquality.equals(other.fromUserIds, fromUserIds) && - _deepEquality.equals(other.relatedIds, relatedIds) && - other.count == count && - other.optedOut == optedOut && - other.fromUserAvatarSrc == fromUserAvatarSrc && - other.fromUserId == fromUserId && - other.fromUserName == fromUserName && - other.fromCommentId == fromCommentId && - other.type == type && - other.createdAt == createdAt && - other.sent == sent && - other.viewed == viewed && - other.relatedObjectId == relatedObjectId && - other.relatedObjectType == relatedObjectType && - other.pageTitle == pageTitle && - other.url == url && - other.urlId == urlId && - other.id == id; + other.contextHTML == contextHTML && + _deepEquality.equals(other.fromUserNames, fromUserNames) && + _deepEquality.equals(other.fromUserIds, fromUserIds) && + _deepEquality.equals(other.relatedIds, relatedIds) && + other.count == count && + other.optedOut == optedOut && + other.fromUserAvatarSrc == fromUserAvatarSrc && + other.fromUserId == fromUserId && + other.fromUserName == fromUserName && + other.fromCommentId == fromCommentId && + other.type == type && + other.createdAt == createdAt && + other.sent == sent && + other.viewed == viewed && + other.relatedObjectId == relatedObjectId && + other.relatedObjectType == relatedObjectType && + other.pageTitle == pageTitle && + other.url == url && + other.urlId == urlId && + other.id == id; + @override int get hashCode => // ignore: unnecessary_parenthesis (conversationId == null ? 0 : conversationId!.hashCode) + - (contextHTML == null ? 0 : contextHTML!.hashCode) + - (fromUserNames.hashCode) + - (fromUserIds.hashCode) + - (relatedIds.hashCode) + - (count == null ? 0 : count!.hashCode) + - (optedOut.hashCode) + - (fromUserAvatarSrc == null ? 0 : fromUserAvatarSrc!.hashCode) + - (fromUserId == null ? 0 : fromUserId!.hashCode) + - (fromUserName == null ? 0 : fromUserName!.hashCode) + - (fromCommentId == null ? 0 : fromCommentId!.hashCode) + - (type.hashCode) + - (createdAt.hashCode) + - (sent.hashCode) + - (viewed.hashCode) + - (relatedObjectId.hashCode) + - (relatedObjectType.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (url.hashCode) + - (urlId.hashCode) + - (id.hashCode); + (contextHTML == null ? 0 : contextHTML!.hashCode) + + (fromUserNames.hashCode) + + (fromUserIds.hashCode) + + (relatedIds.hashCode) + + (count == null ? 0 : count!.hashCode) + + (optedOut.hashCode) + + (fromUserAvatarSrc == null ? 0 : fromUserAvatarSrc!.hashCode) + + (fromUserId == null ? 0 : fromUserId!.hashCode) + + (fromUserName == null ? 0 : fromUserName!.hashCode) + + (fromCommentId == null ? 0 : fromCommentId!.hashCode) + + (type.hashCode) + + (createdAt.hashCode) + + (sent.hashCode) + + (viewed.hashCode) + + (relatedObjectId.hashCode) + + (relatedObjectType.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (url.hashCode) + + (urlId.hashCode) + + (id.hashCode); + @override String toString() => 'RenderableUserNotification[conversationId=$conversationId, contextHTML=$contextHTML, fromUserNames=$fromUserNames, fromUserIds=$fromUserIds, relatedIds=$relatedIds, count=$count, optedOut=$optedOut, fromUserAvatarSrc=$fromUserAvatarSrc, fromUserId=$fromUserId, fromUserName=$fromUserName, fromCommentId=$fromCommentId, type=$type, createdAt=$createdAt, sent=$sent, viewed=$viewed, relatedObjectId=$relatedObjectId, relatedObjectType=$relatedObjectType, pageTitle=$pageTitle, url=$url, urlId=$urlId, id=$id]'; diff --git a/client/lib/model/replace_tenant_package_body.dart b/client/lib/model/replace_tenant_package_body.dart index 074af0d..681703c 100644 --- a/client/lib/model/replace_tenant_package_body.dart +++ b/client/lib/model/replace_tenant_package_body.dart @@ -207,71 +207,73 @@ class ReplaceTenantPackageBody { @override bool operator ==(Object other) => identical(this, other) || other is ReplaceTenantPackageBody && other.name == name && - other.monthlyCostUSD == monthlyCostUSD && - other.yearlyCostUSD == yearlyCostUSD && - other.maxMonthlyPageLoads == maxMonthlyPageLoads && - other.maxMonthlyAPICredits == maxMonthlyAPICredits && - other.maxMonthlyComments == maxMonthlyComments && - other.maxConcurrentUsers == maxConcurrentUsers && - other.maxTenantUsers == maxTenantUsers && - other.maxSSOUsers == maxSSOUsers && - other.maxModerators == maxModerators && - other.maxDomains == maxDomains && - other.maxCustomCollectionSize == maxCustomCollectionSize && - other.hasDebranding == hasDebranding && - other.forWhoText == forWhoText && - _deepEquality.equals(other.featureTaglines, featureTaglines) && - other.hasFlexPricing == hasFlexPricing && - other.flexPageLoadCostCents == flexPageLoadCostCents && - other.flexPageLoadUnit == flexPageLoadUnit && - other.flexCommentCostCents == flexCommentCostCents && - other.flexCommentUnit == flexCommentUnit && - other.flexSSOUserCostCents == flexSSOUserCostCents && - other.flexSSOUserUnit == flexSSOUserUnit && - other.flexAPICreditCostCents == flexAPICreditCostCents && - other.flexAPICreditUnit == flexAPICreditUnit && - other.flexModeratorCostCents == flexModeratorCostCents && - other.flexModeratorUnit == flexModeratorUnit && - other.flexAdminCostCents == flexAdminCostCents && - other.flexAdminUnit == flexAdminUnit && - other.flexDomainCostCents == flexDomainCostCents && - other.flexDomainUnit == flexDomainUnit && - other.flexMinimumCostCents == flexMinimumCostCents; + other.monthlyCostUSD == monthlyCostUSD && + other.yearlyCostUSD == yearlyCostUSD && + other.maxMonthlyPageLoads == maxMonthlyPageLoads && + other.maxMonthlyAPICredits == maxMonthlyAPICredits && + other.maxMonthlyComments == maxMonthlyComments && + other.maxConcurrentUsers == maxConcurrentUsers && + other.maxTenantUsers == maxTenantUsers && + other.maxSSOUsers == maxSSOUsers && + other.maxModerators == maxModerators && + other.maxDomains == maxDomains && + other.maxCustomCollectionSize == maxCustomCollectionSize && + other.hasDebranding == hasDebranding && + other.forWhoText == forWhoText && + _deepEquality.equals(other.featureTaglines, featureTaglines) && + other.hasFlexPricing == hasFlexPricing && + other.flexPageLoadCostCents == flexPageLoadCostCents && + other.flexPageLoadUnit == flexPageLoadUnit && + other.flexCommentCostCents == flexCommentCostCents && + other.flexCommentUnit == flexCommentUnit && + other.flexSSOUserCostCents == flexSSOUserCostCents && + other.flexSSOUserUnit == flexSSOUserUnit && + other.flexAPICreditCostCents == flexAPICreditCostCents && + other.flexAPICreditUnit == flexAPICreditUnit && + other.flexModeratorCostCents == flexModeratorCostCents && + other.flexModeratorUnit == flexModeratorUnit && + other.flexAdminCostCents == flexAdminCostCents && + other.flexAdminUnit == flexAdminUnit && + other.flexDomainCostCents == flexDomainCostCents && + other.flexDomainUnit == flexDomainUnit && + other.flexMinimumCostCents == flexMinimumCostCents; + @override int get hashCode => // ignore: unnecessary_parenthesis (name.hashCode) + - (monthlyCostUSD.hashCode) + - (yearlyCostUSD.hashCode) + - (maxMonthlyPageLoads.hashCode) + - (maxMonthlyAPICredits.hashCode) + - (maxMonthlyComments.hashCode) + - (maxConcurrentUsers.hashCode) + - (maxTenantUsers.hashCode) + - (maxSSOUsers.hashCode) + - (maxModerators.hashCode) + - (maxDomains.hashCode) + - (maxCustomCollectionSize == null ? 0 : maxCustomCollectionSize!.hashCode) + - (hasDebranding.hashCode) + - (forWhoText.hashCode) + - (featureTaglines.hashCode) + - (hasFlexPricing.hashCode) + - (flexPageLoadCostCents == null ? 0 : flexPageLoadCostCents!.hashCode) + - (flexPageLoadUnit == null ? 0 : flexPageLoadUnit!.hashCode) + - (flexCommentCostCents == null ? 0 : flexCommentCostCents!.hashCode) + - (flexCommentUnit == null ? 0 : flexCommentUnit!.hashCode) + - (flexSSOUserCostCents == null ? 0 : flexSSOUserCostCents!.hashCode) + - (flexSSOUserUnit == null ? 0 : flexSSOUserUnit!.hashCode) + - (flexAPICreditCostCents == null ? 0 : flexAPICreditCostCents!.hashCode) + - (flexAPICreditUnit == null ? 0 : flexAPICreditUnit!.hashCode) + - (flexModeratorCostCents == null ? 0 : flexModeratorCostCents!.hashCode) + - (flexModeratorUnit == null ? 0 : flexModeratorUnit!.hashCode) + - (flexAdminCostCents == null ? 0 : flexAdminCostCents!.hashCode) + - (flexAdminUnit == null ? 0 : flexAdminUnit!.hashCode) + - (flexDomainCostCents == null ? 0 : flexDomainCostCents!.hashCode) + - (flexDomainUnit == null ? 0 : flexDomainUnit!.hashCode) + - (flexMinimumCostCents == null ? 0 : flexMinimumCostCents!.hashCode); + (monthlyCostUSD.hashCode) + + (yearlyCostUSD.hashCode) + + (maxMonthlyPageLoads.hashCode) + + (maxMonthlyAPICredits.hashCode) + + (maxMonthlyComments.hashCode) + + (maxConcurrentUsers.hashCode) + + (maxTenantUsers.hashCode) + + (maxSSOUsers.hashCode) + + (maxModerators.hashCode) + + (maxDomains.hashCode) + + (maxCustomCollectionSize == null ? 0 : maxCustomCollectionSize!.hashCode) + + (hasDebranding.hashCode) + + (forWhoText.hashCode) + + (featureTaglines.hashCode) + + (hasFlexPricing.hashCode) + + (flexPageLoadCostCents == null ? 0 : flexPageLoadCostCents!.hashCode) + + (flexPageLoadUnit == null ? 0 : flexPageLoadUnit!.hashCode) + + (flexCommentCostCents == null ? 0 : flexCommentCostCents!.hashCode) + + (flexCommentUnit == null ? 0 : flexCommentUnit!.hashCode) + + (flexSSOUserCostCents == null ? 0 : flexSSOUserCostCents!.hashCode) + + (flexSSOUserUnit == null ? 0 : flexSSOUserUnit!.hashCode) + + (flexAPICreditCostCents == null ? 0 : flexAPICreditCostCents!.hashCode) + + (flexAPICreditUnit == null ? 0 : flexAPICreditUnit!.hashCode) + + (flexModeratorCostCents == null ? 0 : flexModeratorCostCents!.hashCode) + + (flexModeratorUnit == null ? 0 : flexModeratorUnit!.hashCode) + + (flexAdminCostCents == null ? 0 : flexAdminCostCents!.hashCode) + + (flexAdminUnit == null ? 0 : flexAdminUnit!.hashCode) + + (flexDomainCostCents == null ? 0 : flexDomainCostCents!.hashCode) + + (flexDomainUnit == null ? 0 : flexDomainUnit!.hashCode) + + (flexMinimumCostCents == null ? 0 : flexMinimumCostCents!.hashCode); + @override String toString() => 'ReplaceTenantPackageBody[name=$name, monthlyCostUSD=$monthlyCostUSD, yearlyCostUSD=$yearlyCostUSD, maxMonthlyPageLoads=$maxMonthlyPageLoads, maxMonthlyAPICredits=$maxMonthlyAPICredits, maxMonthlyComments=$maxMonthlyComments, maxConcurrentUsers=$maxConcurrentUsers, maxTenantUsers=$maxTenantUsers, maxSSOUsers=$maxSSOUsers, maxModerators=$maxModerators, maxDomains=$maxDomains, maxCustomCollectionSize=$maxCustomCollectionSize, hasDebranding=$hasDebranding, forWhoText=$forWhoText, featureTaglines=$featureTaglines, hasFlexPricing=$hasFlexPricing, flexPageLoadCostCents=$flexPageLoadCostCents, flexPageLoadUnit=$flexPageLoadUnit, flexCommentCostCents=$flexCommentCostCents, flexCommentUnit=$flexCommentUnit, flexSSOUserCostCents=$flexSSOUserCostCents, flexSSOUserUnit=$flexSSOUserUnit, flexAPICreditCostCents=$flexAPICreditCostCents, flexAPICreditUnit=$flexAPICreditUnit, flexModeratorCostCents=$flexModeratorCostCents, flexModeratorUnit=$flexModeratorUnit, flexAdminCostCents=$flexAdminCostCents, flexAdminUnit=$flexAdminUnit, flexDomainCostCents=$flexDomainCostCents, flexDomainUnit=$flexDomainUnit, flexMinimumCostCents=$flexMinimumCostCents]'; diff --git a/client/lib/model/replace_tenant_user_body.dart b/client/lib/model/replace_tenant_user_body.dart index 0ffa8cb..1fc5294 100644 --- a/client/lib/model/replace_tenant_user_body.dart +++ b/client/lib/model/replace_tenant_user_body.dart @@ -252,65 +252,67 @@ class ReplaceTenantUserBody { @override bool operator ==(Object other) => identical(this, other) || other is ReplaceTenantUserBody && other.username == username && - other.email == email && - other.displayName == displayName && - other.websiteUrl == websiteUrl && - other.signUpDate == signUpDate && - other.locale == locale && - other.verified == verified && - other.loginCount == loginCount && - other.optedInNotifications == optedInNotifications && - other.optedInTenantNotifications == optedInTenantNotifications && - other.hideAccountCode == hideAccountCode && - other.avatarSrc == avatarSrc && - other.isHelpRequestAdmin == isHelpRequestAdmin && - other.isAccountOwner == isAccountOwner && - other.isAdminAdmin == isAdminAdmin && - other.isBillingAdmin == isBillingAdmin && - other.isAnalyticsAdmin == isAnalyticsAdmin && - other.isCustomizationAdmin == isCustomizationAdmin && - other.isManageDataAdmin == isManageDataAdmin && - other.isCommentModeratorAdmin == isCommentModeratorAdmin && - other.isAPIAdmin == isAPIAdmin && - _deepEquality.equals(other.moderatorIds, moderatorIds) && - other.digestEmailFrequency == digestEmailFrequency && - other.displayLabel == displayLabel && - other.createdFromUrlId == createdFromUrlId && - other.createdFromTenantId == createdFromTenantId && - other.lastLoginDate == lastLoginDate && - other.karma == karma; + other.email == email && + other.displayName == displayName && + other.websiteUrl == websiteUrl && + other.signUpDate == signUpDate && + other.locale == locale && + other.verified == verified && + other.loginCount == loginCount && + other.optedInNotifications == optedInNotifications && + other.optedInTenantNotifications == optedInTenantNotifications && + other.hideAccountCode == hideAccountCode && + other.avatarSrc == avatarSrc && + other.isHelpRequestAdmin == isHelpRequestAdmin && + other.isAccountOwner == isAccountOwner && + other.isAdminAdmin == isAdminAdmin && + other.isBillingAdmin == isBillingAdmin && + other.isAnalyticsAdmin == isAnalyticsAdmin && + other.isCustomizationAdmin == isCustomizationAdmin && + other.isManageDataAdmin == isManageDataAdmin && + other.isCommentModeratorAdmin == isCommentModeratorAdmin && + other.isAPIAdmin == isAPIAdmin && + _deepEquality.equals(other.moderatorIds, moderatorIds) && + other.digestEmailFrequency == digestEmailFrequency && + other.displayLabel == displayLabel && + other.createdFromUrlId == createdFromUrlId && + other.createdFromTenantId == createdFromTenantId && + other.lastLoginDate == lastLoginDate && + other.karma == karma; + @override int get hashCode => // ignore: unnecessary_parenthesis (username.hashCode) + - (email.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (websiteUrl == null ? 0 : websiteUrl!.hashCode) + - (signUpDate == null ? 0 : signUpDate!.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (verified == null ? 0 : verified!.hashCode) + - (loginCount == null ? 0 : loginCount!.hashCode) + - (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + - (optedInTenantNotifications == null ? 0 : optedInTenantNotifications!.hashCode) + - (hideAccountCode == null ? 0 : hideAccountCode!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (isHelpRequestAdmin == null ? 0 : isHelpRequestAdmin!.hashCode) + - (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + - (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + - (isBillingAdmin == null ? 0 : isBillingAdmin!.hashCode) + - (isAnalyticsAdmin == null ? 0 : isAnalyticsAdmin!.hashCode) + - (isCustomizationAdmin == null ? 0 : isCustomizationAdmin!.hashCode) + - (isManageDataAdmin == null ? 0 : isManageDataAdmin!.hashCode) + - (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + - (isAPIAdmin == null ? 0 : isAPIAdmin!.hashCode) + - (moderatorIds.hashCode) + - (digestEmailFrequency == null ? 0 : digestEmailFrequency!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (createdFromUrlId == null ? 0 : createdFromUrlId!.hashCode) + - (createdFromTenantId == null ? 0 : createdFromTenantId!.hashCode) + - (lastLoginDate == null ? 0 : lastLoginDate!.hashCode) + - (karma == null ? 0 : karma!.hashCode); + (email.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (websiteUrl == null ? 0 : websiteUrl!.hashCode) + + (signUpDate == null ? 0 : signUpDate!.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (verified == null ? 0 : verified!.hashCode) + + (loginCount == null ? 0 : loginCount!.hashCode) + + (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + + (optedInTenantNotifications == null ? 0 : optedInTenantNotifications!.hashCode) + + (hideAccountCode == null ? 0 : hideAccountCode!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (isHelpRequestAdmin == null ? 0 : isHelpRequestAdmin!.hashCode) + + (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + + (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + + (isBillingAdmin == null ? 0 : isBillingAdmin!.hashCode) + + (isAnalyticsAdmin == null ? 0 : isAnalyticsAdmin!.hashCode) + + (isCustomizationAdmin == null ? 0 : isCustomizationAdmin!.hashCode) + + (isManageDataAdmin == null ? 0 : isManageDataAdmin!.hashCode) + + (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + + (isAPIAdmin == null ? 0 : isAPIAdmin!.hashCode) + + (moderatorIds.hashCode) + + (digestEmailFrequency == null ? 0 : digestEmailFrequency!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (createdFromUrlId == null ? 0 : createdFromUrlId!.hashCode) + + (createdFromTenantId == null ? 0 : createdFromTenantId!.hashCode) + + (lastLoginDate == null ? 0 : lastLoginDate!.hashCode) + + (karma == null ? 0 : karma!.hashCode); + @override String toString() => 'ReplaceTenantUserBody[username=$username, email=$email, displayName=$displayName, websiteUrl=$websiteUrl, signUpDate=$signUpDate, locale=$locale, verified=$verified, loginCount=$loginCount, optedInNotifications=$optedInNotifications, optedInTenantNotifications=$optedInTenantNotifications, hideAccountCode=$hideAccountCode, avatarSrc=$avatarSrc, isHelpRequestAdmin=$isHelpRequestAdmin, isAccountOwner=$isAccountOwner, isAdminAdmin=$isAdminAdmin, isBillingAdmin=$isBillingAdmin, isAnalyticsAdmin=$isAnalyticsAdmin, isCustomizationAdmin=$isCustomizationAdmin, isManageDataAdmin=$isManageDataAdmin, isCommentModeratorAdmin=$isCommentModeratorAdmin, isAPIAdmin=$isAPIAdmin, moderatorIds=$moderatorIds, digestEmailFrequency=$digestEmailFrequency, displayLabel=$displayLabel, createdFromUrlId=$createdFromUrlId, createdFromTenantId=$createdFromTenantId, lastLoginDate=$lastLoginDate, karma=$karma]'; diff --git a/client/lib/model/reset_user_notifications200_response.dart b/client/lib/model/reset_user_notifications200_response.dart deleted file mode 100644 index 8d14eb8..0000000 --- a/client/lib/model/reset_user_notifications200_response.dart +++ /dev/null @@ -1,212 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ResetUserNotifications200Response { - /// Returns a new [ResetUserNotifications200Response] instance. - ResetUserNotifications200Response({ - required this.status, - required this.code, - required this.reason, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - String code; - - String reason; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is ResetUserNotifications200Response && - other.status == status && - other.code == code && - other.reason == reason && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (code.hashCode) + - (reason.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'ResetUserNotifications200Response[status=$status, code=$code, reason=$reason, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'code'] = this.code; - json[r'reason'] = this.reason; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [ResetUserNotifications200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ResetUserNotifications200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "ResetUserNotifications200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "ResetUserNotifications200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "ResetUserNotifications200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "ResetUserNotifications200Response[code]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "ResetUserNotifications200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "ResetUserNotifications200Response[reason]" has a null value in JSON.'); - return true; - }()); - - return ResetUserNotifications200Response( - status: APIStatus.fromJson(json[r'status'])!, - code: mapValueOfType(json, r'code')!, - reason: mapValueOfType(json, r'reason')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ResetUserNotifications200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ResetUserNotifications200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ResetUserNotifications200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ResetUserNotifications200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'code', - 'reason', - }; -} - diff --git a/client/lib/model/reset_user_notifications_response.dart b/client/lib/model/reset_user_notifications_response.dart index 8a045c5..aaa134c 100644 --- a/client/lib/model/reset_user_notifications_response.dart +++ b/client/lib/model/reset_user_notifications_response.dart @@ -24,13 +24,15 @@ class ResetUserNotificationsResponse { @override bool operator ==(Object other) => identical(this, other) || other is ResetUserNotificationsResponse && other.status == status && - other.code == code; + other.code == code; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (code == null ? 0 : code!.hashCode); + (code == null ? 0 : code!.hashCode); + @override String toString() => 'ResetUserNotificationsResponse[status=$status, code=$code]'; diff --git a/client/lib/model/save_comment200_response.dart b/client/lib/model/save_comment200_response.dart deleted file mode 100644 index bdc3510..0000000 --- a/client/lib/model/save_comment200_response.dart +++ /dev/null @@ -1,243 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SaveComment200Response { - /// Returns a new [SaveComment200Response] instance. - SaveComment200Response({ - required this.status, - required this.comment, - required this.user, - this.moduleData = const {}, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - APIComment comment; - - UserSessionInfo? user; - - /// Construct a type with a set of properties K of type T - Map moduleData; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is SaveComment200Response && - other.status == status && - other.comment == comment && - other.user == user && - _deepEquality.equals(other.moduleData, moduleData) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (comment.hashCode) + - (user == null ? 0 : user!.hashCode) + - (moduleData.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'SaveComment200Response[status=$status, comment=$comment, user=$user, moduleData=$moduleData, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'comment'] = this.comment; - if (this.user != null) { - json[r'user'] = this.user; - } else { - json[r'user'] = null; - } - json[r'moduleData'] = this.moduleData; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [SaveComment200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SaveComment200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "SaveComment200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "SaveComment200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "SaveComment200Response[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "SaveComment200Response[comment]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "SaveComment200Response[user]" is missing from JSON.'); - assert(json.containsKey(r'reason'), 'Required key "SaveComment200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "SaveComment200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "SaveComment200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "SaveComment200Response[code]" has a null value in JSON.'); - return true; - }()); - - return SaveComment200Response( - status: APIStatus.fromJson(json[r'status'])!, - comment: APIComment.fromJson(json[r'comment'])!, - user: UserSessionInfo.fromJson(json[r'user']), - moduleData: mapCastOfType(json, r'moduleData') ?? const {}, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SaveComment200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SaveComment200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SaveComment200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SaveComment200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'comment', - 'user', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/save_comment_response_optimized.dart b/client/lib/model/save_comment_response_optimized.dart index df2b85f..b32e6b8 100644 --- a/client/lib/model/save_comment_response_optimized.dart +++ b/client/lib/model/save_comment_response_optimized.dart @@ -31,17 +31,19 @@ class SaveCommentResponseOptimized { @override bool operator ==(Object other) => identical(this, other) || other is SaveCommentResponseOptimized && other.status == status && - other.comment == comment && - other.user == user && - _deepEquality.equals(other.moduleData, moduleData); + other.comment == comment && + other.user == user && + _deepEquality.equals(other.moduleData, moduleData); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (comment.hashCode) + - (user == null ? 0 : user!.hashCode) + - (moduleData.hashCode); + (comment.hashCode) + + (user == null ? 0 : user!.hashCode) + + (moduleData.hashCode); + @override String toString() => 'SaveCommentResponseOptimized[status=$status, comment=$comment, user=$user, moduleData=$moduleData]'; diff --git a/client/lib/model/vote_comment200_response.dart b/client/lib/model/save_comments_bulk_response.dart similarity index 59% rename from client/lib/model/vote_comment200_response.dart rename to client/lib/model/save_comments_bulk_response.dart index d893247..696af98 100644 --- a/client/lib/model/vote_comment200_response.dart +++ b/client/lib/model/save_comments_bulk_response.dart @@ -10,16 +10,15 @@ part of openapi.api; -class VoteComment200Response { - /// Returns a new [VoteComment200Response] instance. - VoteComment200Response({ +class SaveCommentsBulkResponse { + /// Returns a new [SaveCommentsBulkResponse] instance. + SaveCommentsBulkResponse({ required this.status, - this.voteId, - this.isVerified, + this.comment, this.user, - this.editKey, - required this.reason, - required this.code, + this.moduleData = const {}, + this.reason, + this.code, this.secondaryCode, this.bannedUntil, this.maxCharacterLength, @@ -35,15 +34,12 @@ class VoteComment200Response { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? voteId; + APIComment? comment; - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isVerified; + UserSessionInfo? user; + + /// Construct a type with a set of properties K of type T + Map moduleData; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -51,7 +47,7 @@ class VoteComment200Response { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - VoteResponseUser? user; + String? reason; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -59,11 +55,7 @@ class VoteComment200Response { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? editKey; - - String reason; - - String code; + String? code; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -106,64 +98,63 @@ class VoteComment200Response { CustomConfigParameters? customConfig; @override - bool operator ==(Object other) => identical(this, other) || other is VoteComment200Response && + bool operator ==(Object other) => identical(this, other) || other is SaveCommentsBulkResponse && other.status == status && - other.voteId == voteId && - other.isVerified == isVerified && - other.user == user && - other.editKey == editKey && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; + other.comment == comment && + other.user == user && + _deepEquality.equals(other.moduleData, moduleData) && + other.reason == reason && + other.code == code && + other.secondaryCode == secondaryCode && + other.bannedUntil == bannedUntil && + other.maxCharacterLength == maxCharacterLength && + other.translatedError == translatedError && + other.customConfig == customConfig; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (voteId == null ? 0 : voteId!.hashCode) + - (isVerified == null ? 0 : isVerified!.hashCode) + - (user == null ? 0 : user!.hashCode) + - (editKey == null ? 0 : editKey!.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); + (comment == null ? 0 : comment!.hashCode) + + (user == null ? 0 : user!.hashCode) + + (moduleData.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode) + + (secondaryCode == null ? 0 : secondaryCode!.hashCode) + + (bannedUntil == null ? 0 : bannedUntil!.hashCode) + + (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + + (translatedError == null ? 0 : translatedError!.hashCode) + + (customConfig == null ? 0 : customConfig!.hashCode); + @override - String toString() => 'VoteComment200Response[status=$status, voteId=$voteId, isVerified=$isVerified, user=$user, editKey=$editKey, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; + String toString() => 'SaveCommentsBulkResponse[status=$status, comment=$comment, user=$user, moduleData=$moduleData, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; Map toJson() { final json = {}; json[r'status'] = this.status; - if (this.voteId != null) { - json[r'voteId'] = this.voteId; - } else { - json[r'voteId'] = null; - } - if (this.isVerified != null) { - json[r'isVerified'] = this.isVerified; + if (this.comment != null) { + json[r'comment'] = this.comment; } else { - json[r'isVerified'] = null; + json[r'comment'] = null; } if (this.user != null) { json[r'user'] = this.user; } else { json[r'user'] = null; } - if (this.editKey != null) { - json[r'editKey'] = this.editKey; + json[r'moduleData'] = this.moduleData; + if (this.reason != null) { + json[r'reason'] = this.reason; } else { - json[r'editKey'] = null; + json[r'reason'] = null; } - json[r'reason'] = this.reason; + if (this.code != null) { json[r'code'] = this.code; + } else { + json[r'code'] = null; + } if (this.secondaryCode != null) { json[r'secondaryCode'] = this.secondaryCode; } else { @@ -192,10 +183,10 @@ class VoteComment200Response { return json; } - /// Returns a new [VoteComment200Response] instance and imports its values from + /// Returns a new [SaveCommentsBulkResponse] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static VoteComment200Response? fromJson(dynamic value) { + static SaveCommentsBulkResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -203,23 +194,18 @@ class VoteComment200Response { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'status'), 'Required key "VoteComment200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "VoteComment200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "VoteComment200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "VoteComment200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "VoteComment200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "VoteComment200Response[code]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "SaveCommentsBulkResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SaveCommentsBulkResponse[status]" has a null value in JSON.'); return true; }()); - return VoteComment200Response( + return SaveCommentsBulkResponse( status: APIStatus.fromJson(json[r'status'])!, - voteId: mapValueOfType(json, r'voteId'), - isVerified: mapValueOfType(json, r'isVerified'), - user: VoteResponseUser.fromJson(json[r'user']), - editKey: mapValueOfType(json, r'editKey'), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, + comment: APIComment.fromJson(json[r'comment']), + user: UserSessionInfo.fromJson(json[r'user']), + moduleData: mapCastOfType(json, r'moduleData') ?? const {}, + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), secondaryCode: mapValueOfType(json, r'secondaryCode'), bannedUntil: mapValueOfType(json, r'bannedUntil'), maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), @@ -230,11 +216,11 @@ class VoteComment200Response { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = VoteComment200Response.fromJson(row); + final value = SaveCommentsBulkResponse.fromJson(row); if (value != null) { result.add(value); } @@ -243,12 +229,12 @@ class VoteComment200Response { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = VoteComment200Response.fromJson(entry.value); + final value = SaveCommentsBulkResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -257,14 +243,14 @@ class VoteComment200Response { return map; } - // maps a json object with a list of VoteComment200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of SaveCommentsBulkResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = VoteComment200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = SaveCommentsBulkResponse.listFromJson(entry.value, growable: growable,); } } return map; @@ -273,8 +259,6 @@ class VoteComment200Response { /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'status', - 'reason', - 'code', }; } diff --git a/client/lib/model/save_comments_response_with_presence.dart b/client/lib/model/save_comments_response_with_presence.dart index 7efd043..a916010 100644 --- a/client/lib/model/save_comments_response_with_presence.dart +++ b/client/lib/model/save_comments_response_with_presence.dart @@ -40,19 +40,21 @@ class SaveCommentsResponseWithPresence { @override bool operator ==(Object other) => identical(this, other) || other is SaveCommentsResponseWithPresence && other.status == status && - other.comment == comment && - other.user == user && - _deepEquality.equals(other.moduleData, moduleData) && - other.userIdWS == userIdWS; + other.comment == comment && + other.user == user && + _deepEquality.equals(other.moduleData, moduleData) && + other.userIdWS == userIdWS; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (comment.hashCode) + - (user == null ? 0 : user!.hashCode) + - (moduleData.hashCode) + - (userIdWS == null ? 0 : userIdWS!.hashCode); + (comment.hashCode) + + (user == null ? 0 : user!.hashCode) + + (moduleData.hashCode) + + (userIdWS == null ? 0 : userIdWS!.hashCode); + @override String toString() => 'SaveCommentsResponseWithPresence[status=$status, comment=$comment, user=$user, moduleData=$moduleData, userIdWS=$userIdWS]'; diff --git a/client/lib/model/search_users200_response.dart b/client/lib/model/search_users200_response.dart deleted file mode 100644 index bd742bc..0000000 --- a/client/lib/model/search_users200_response.dart +++ /dev/null @@ -1,232 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SearchUsers200Response { - /// Returns a new [SearchUsers200Response] instance. - SearchUsers200Response({ - required this.status, - this.sections = const [], - this.users = const [], - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - List sections; - - List users; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchUsers200Response && - other.status == status && - _deepEquality.equals(other.sections, sections) && - _deepEquality.equals(other.users, users) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (sections.hashCode) + - (users.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'SearchUsers200Response[status=$status, sections=$sections, users=$users, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'sections'] = this.sections; - json[r'users'] = this.users; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [SearchUsers200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchUsers200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "SearchUsers200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "SearchUsers200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'sections'), 'Required key "SearchUsers200Response[sections]" is missing from JSON.'); - assert(json[r'sections'] != null, 'Required key "SearchUsers200Response[sections]" has a null value in JSON.'); - assert(json.containsKey(r'users'), 'Required key "SearchUsers200Response[users]" is missing from JSON.'); - assert(json[r'users'] != null, 'Required key "SearchUsers200Response[users]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "SearchUsers200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "SearchUsers200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "SearchUsers200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "SearchUsers200Response[code]" has a null value in JSON.'); - return true; - }()); - - return SearchUsers200Response( - status: APIStatus.fromJson(json[r'status'])!, - sections: UserSearchSectionResult.listFromJson(json[r'sections']), - users: UserSearchResult.listFromJson(json[r'users']), - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchUsers200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchUsers200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchUsers200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchUsers200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'sections', - 'users', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/search_users_response.dart b/client/lib/model/search_users_response.dart index 4eeb779..4f7da85 100644 --- a/client/lib/model/search_users_response.dart +++ b/client/lib/model/search_users_response.dart @@ -24,13 +24,15 @@ class SearchUsersResponse { @override bool operator ==(Object other) => identical(this, other) || other is SearchUsersResponse && other.status == status && - _deepEquality.equals(other.users, users); + _deepEquality.equals(other.users, users); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (users.hashCode); + (users.hashCode); + @override String toString() => 'SearchUsersResponse[status=$status, users=$users]'; diff --git a/client/lib/model/search_users_result.dart b/client/lib/model/search_users_result.dart new file mode 100644 index 0000000..6a9cd03 --- /dev/null +++ b/client/lib/model/search_users_result.dart @@ -0,0 +1,123 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SearchUsersResult { + /// Returns a new [SearchUsersResult] instance. + SearchUsersResult({ + required this.status, + this.sections = const [], + this.users = const [], + }); + + APIStatus status; + + List sections; + + List users; + + @override + bool operator ==(Object other) => identical(this, other) || other is SearchUsersResult && + other.status == status && + _deepEquality.equals(other.sections, sections) && + _deepEquality.equals(other.users, users); + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (sections.hashCode) + + (users.hashCode); + + + @override + String toString() => 'SearchUsersResult[status=$status, sections=$sections, users=$users]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'sections'] = this.sections; + json[r'users'] = this.users; + return json; + } + + /// Returns a new [SearchUsersResult] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SearchUsersResult? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "SearchUsersResult[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SearchUsersResult[status]" has a null value in JSON.'); + return true; + }()); + + return SearchUsersResult( + status: APIStatus.fromJson(json[r'status'])!, + sections: UserSearchSectionResult.listFromJson(json[r'sections']), + users: UserSearchResult.listFromJson(json[r'users']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SearchUsersResult.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SearchUsersResult.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SearchUsersResult-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SearchUsersResult.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/search_users_sectioned_response.dart b/client/lib/model/search_users_sectioned_response.dart index 633597d..32f8b25 100644 --- a/client/lib/model/search_users_sectioned_response.dart +++ b/client/lib/model/search_users_sectioned_response.dart @@ -24,13 +24,15 @@ class SearchUsersSectionedResponse { @override bool operator ==(Object other) => identical(this, other) || other is SearchUsersSectionedResponse && other.status == status && - _deepEquality.equals(other.sections, sections); + _deepEquality.equals(other.sections, sections); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (sections.hashCode); + (sections.hashCode); + @override String toString() => 'SearchUsersSectionedResponse[status=$status, sections=$sections]'; diff --git a/client/lib/model/set_comment_approved_response.dart b/client/lib/model/set_comment_approved_response.dart new file mode 100644 index 0000000..56a8765 --- /dev/null +++ b/client/lib/model/set_comment_approved_response.dart @@ -0,0 +1,126 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SetCommentApprovedResponse { + /// Returns a new [SetCommentApprovedResponse] instance. + SetCommentApprovedResponse({ + this.didResetFlaggedCount, + required this.status, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? didResetFlaggedCount; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is SetCommentApprovedResponse && + other.didResetFlaggedCount == didResetFlaggedCount && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (didResetFlaggedCount == null ? 0 : didResetFlaggedCount!.hashCode) + + (status.hashCode); + + + @override + String toString() => 'SetCommentApprovedResponse[didResetFlaggedCount=$didResetFlaggedCount, status=$status]'; + + Map toJson() { + final json = {}; + if (this.didResetFlaggedCount != null) { + json[r'didResetFlaggedCount'] = this.didResetFlaggedCount; + } else { + json[r'didResetFlaggedCount'] = null; + } + json[r'status'] = this.status; + return json; + } + + /// Returns a new [SetCommentApprovedResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SetCommentApprovedResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "SetCommentApprovedResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SetCommentApprovedResponse[status]" has a null value in JSON.'); + return true; + }()); + + return SetCommentApprovedResponse( + didResetFlaggedCount: mapValueOfType(json, r'didResetFlaggedCount'), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SetCommentApprovedResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SetCommentApprovedResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SetCommentApprovedResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SetCommentApprovedResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/set_comment_text200_response.dart b/client/lib/model/set_comment_text200_response.dart deleted file mode 100644 index 3956758..0000000 --- a/client/lib/model/set_comment_text200_response.dart +++ /dev/null @@ -1,222 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SetCommentText200Response { - /// Returns a new [SetCommentText200Response] instance. - SetCommentText200Response({ - required this.comment, - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - SetCommentTextResult comment; - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is SetCommentText200Response && - other.comment == comment && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (comment.hashCode) + - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'SetCommentText200Response[comment=$comment, status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'comment'] = this.comment; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [SetCommentText200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SetCommentText200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'comment'), 'Required key "SetCommentText200Response[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "SetCommentText200Response[comment]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "SetCommentText200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "SetCommentText200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "SetCommentText200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "SetCommentText200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "SetCommentText200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "SetCommentText200Response[code]" has a null value in JSON.'); - return true; - }()); - - return SetCommentText200Response( - comment: SetCommentTextResult.fromJson(json[r'comment'])!, - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SetCommentText200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SetCommentText200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SetCommentText200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SetCommentText200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'comment', - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/set_comment_text_params.dart b/client/lib/model/set_comment_text_params.dart new file mode 100644 index 0000000..f9f83e4 --- /dev/null +++ b/client/lib/model/set_comment_text_params.dart @@ -0,0 +1,109 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SetCommentTextParams { + /// Returns a new [SetCommentTextParams] instance. + SetCommentTextParams({ + required this.comment, + }); + + String comment; + + @override + bool operator ==(Object other) => identical(this, other) || other is SetCommentTextParams && + other.comment == comment; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (comment.hashCode); + + + @override + String toString() => 'SetCommentTextParams[comment=$comment]'; + + Map toJson() { + final json = {}; + json[r'comment'] = this.comment; + return json; + } + + /// Returns a new [SetCommentTextParams] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SetCommentTextParams? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'comment'), 'Required key "SetCommentTextParams[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "SetCommentTextParams[comment]" has a null value in JSON.'); + return true; + }()); + + return SetCommentTextParams( + comment: mapValueOfType(json, r'comment')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SetCommentTextParams.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SetCommentTextParams.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SetCommentTextParams-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SetCommentTextParams.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'comment', + }; +} + diff --git a/client/lib/model/set_comment_text_response.dart b/client/lib/model/set_comment_text_response.dart new file mode 100644 index 0000000..e4d798a --- /dev/null +++ b/client/lib/model/set_comment_text_response.dart @@ -0,0 +1,119 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SetCommentTextResponse { + /// Returns a new [SetCommentTextResponse] instance. + SetCommentTextResponse({ + required this.newCommentTextHTML, + required this.status, + }); + + String newCommentTextHTML; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is SetCommentTextResponse && + other.newCommentTextHTML == newCommentTextHTML && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (newCommentTextHTML.hashCode) + + (status.hashCode); + + + @override + String toString() => 'SetCommentTextResponse[newCommentTextHTML=$newCommentTextHTML, status=$status]'; + + Map toJson() { + final json = {}; + json[r'newCommentTextHTML'] = this.newCommentTextHTML; + json[r'status'] = this.status; + return json; + } + + /// Returns a new [SetCommentTextResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SetCommentTextResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'newCommentTextHTML'), 'Required key "SetCommentTextResponse[newCommentTextHTML]" is missing from JSON.'); + assert(json[r'newCommentTextHTML'] != null, 'Required key "SetCommentTextResponse[newCommentTextHTML]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "SetCommentTextResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SetCommentTextResponse[status]" has a null value in JSON.'); + return true; + }()); + + return SetCommentTextResponse( + newCommentTextHTML: mapValueOfType(json, r'newCommentTextHTML')!, + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SetCommentTextResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SetCommentTextResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SetCommentTextResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SetCommentTextResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'newCommentTextHTML', + 'status', + }; +} + diff --git a/client/lib/model/set_comment_text_result.dart b/client/lib/model/set_comment_text_result.dart index 75e09d6..6559b54 100644 --- a/client/lib/model/set_comment_text_result.dart +++ b/client/lib/model/set_comment_text_result.dart @@ -24,13 +24,15 @@ class SetCommentTextResult { @override bool operator ==(Object other) => identical(this, other) || other is SetCommentTextResult && other.approved == approved && - other.commentHTML == commentHTML; + other.commentHTML == commentHTML; + @override int get hashCode => // ignore: unnecessary_parenthesis (approved.hashCode) + - (commentHTML.hashCode); + (commentHTML.hashCode); + @override String toString() => 'SetCommentTextResult[approved=$approved, commentHTML=$commentHTML]'; diff --git a/client/lib/model/set_user_trust_factor_response.dart b/client/lib/model/set_user_trust_factor_response.dart new file mode 100644 index 0000000..352afc6 --- /dev/null +++ b/client/lib/model/set_user_trust_factor_response.dart @@ -0,0 +1,126 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SetUserTrustFactorResponse { + /// Returns a new [SetUserTrustFactorResponse] instance. + SetUserTrustFactorResponse({ + this.previousManualTrustFactor, + required this.status, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + double? previousManualTrustFactor; + + APIStatus status; + + @override + bool operator ==(Object other) => identical(this, other) || other is SetUserTrustFactorResponse && + other.previousManualTrustFactor == previousManualTrustFactor && + other.status == status; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (previousManualTrustFactor == null ? 0 : previousManualTrustFactor!.hashCode) + + (status.hashCode); + + + @override + String toString() => 'SetUserTrustFactorResponse[previousManualTrustFactor=$previousManualTrustFactor, status=$status]'; + + Map toJson() { + final json = {}; + if (this.previousManualTrustFactor != null) { + json[r'previousManualTrustFactor'] = this.previousManualTrustFactor; + } else { + json[r'previousManualTrustFactor'] = null; + } + json[r'status'] = this.status; + return json; + } + + /// Returns a new [SetUserTrustFactorResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SetUserTrustFactorResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "SetUserTrustFactorResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SetUserTrustFactorResponse[status]" has a null value in JSON.'); + return true; + }()); + + return SetUserTrustFactorResponse( + previousManualTrustFactor: mapValueOfType(json, r'previousManualTrustFactor'), + status: APIStatus.fromJson(json[r'status'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SetUserTrustFactorResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SetUserTrustFactorResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SetUserTrustFactorResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SetUserTrustFactorResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + diff --git a/client/lib/model/spam_rule.dart b/client/lib/model/spam_rule.dart index e91e630..104315d 100644 --- a/client/lib/model/spam_rule.dart +++ b/client/lib/model/spam_rule.dart @@ -30,13 +30,15 @@ class SpamRule { @override bool operator ==(Object other) => identical(this, other) || other is SpamRule && _deepEquality.equals(other.actions, actions) && - other.commentContains == commentContains; + other.commentContains == commentContains; + @override int get hashCode => // ignore: unnecessary_parenthesis (actions.hashCode) + - (commentContains == null ? 0 : commentContains!.hashCode); + (commentContains == null ? 0 : commentContains!.hashCode); + @override String toString() => 'SpamRule[actions=$actions, commentContains=$commentContains]'; diff --git a/client/lib/model/tenant_badge.dart b/client/lib/model/tenant_badge.dart new file mode 100644 index 0000000..c9f1b96 --- /dev/null +++ b/client/lib/model/tenant_badge.dart @@ -0,0 +1,325 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class TenantBadge { + /// Returns a new [TenantBadge] instance. + TenantBadge({ + required this.id, + required this.tenantId, + required this.createdByUserId, + required this.createdAt, + required this.enabled, + this.urlId, + required this.type, + required this.threshold, + required this.uses, + required this.name, + required this.description, + required this.displayLabel, + required this.displaySrc, + required this.backgroundColor, + required this.borderColor, + required this.textColor, + this.cssClass, + this.veteranUserThresholdMillis, + required this.isAwaitingReprocess, + required this.isAwaitingDeletion, + this.replacesBadgeId, + }); + + String id; + + String tenantId; + + String createdByUserId; + + DateTime createdAt; + + bool enabled; + + String? urlId; + + double type; + + double threshold; + + double uses; + + String name; + + String description; + + String displayLabel; + + String? displaySrc; + + String? backgroundColor; + + String? borderColor; + + String? textColor; + + String? cssClass; + + double? veteranUserThresholdMillis; + + bool isAwaitingReprocess; + + bool isAwaitingDeletion; + + String? replacesBadgeId; + + @override + bool operator ==(Object other) => identical(this, other) || other is TenantBadge && + other.id == id && + other.tenantId == tenantId && + other.createdByUserId == createdByUserId && + other.createdAt == createdAt && + other.enabled == enabled && + other.urlId == urlId && + other.type == type && + other.threshold == threshold && + other.uses == uses && + other.name == name && + other.description == description && + other.displayLabel == displayLabel && + other.displaySrc == displaySrc && + other.backgroundColor == backgroundColor && + other.borderColor == borderColor && + other.textColor == textColor && + other.cssClass == cssClass && + other.veteranUserThresholdMillis == veteranUserThresholdMillis && + other.isAwaitingReprocess == isAwaitingReprocess && + other.isAwaitingDeletion == isAwaitingDeletion && + other.replacesBadgeId == replacesBadgeId; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (id.hashCode) + + (tenantId.hashCode) + + (createdByUserId.hashCode) + + (createdAt.hashCode) + + (enabled.hashCode) + + (urlId == null ? 0 : urlId!.hashCode) + + (type.hashCode) + + (threshold.hashCode) + + (uses.hashCode) + + (name.hashCode) + + (description.hashCode) + + (displayLabel.hashCode) + + (displaySrc == null ? 0 : displaySrc!.hashCode) + + (backgroundColor == null ? 0 : backgroundColor!.hashCode) + + (borderColor == null ? 0 : borderColor!.hashCode) + + (textColor == null ? 0 : textColor!.hashCode) + + (cssClass == null ? 0 : cssClass!.hashCode) + + (veteranUserThresholdMillis == null ? 0 : veteranUserThresholdMillis!.hashCode) + + (isAwaitingReprocess.hashCode) + + (isAwaitingDeletion.hashCode) + + (replacesBadgeId == null ? 0 : replacesBadgeId!.hashCode); + + + @override + String toString() => 'TenantBadge[id=$id, tenantId=$tenantId, createdByUserId=$createdByUserId, createdAt=$createdAt, enabled=$enabled, urlId=$urlId, type=$type, threshold=$threshold, uses=$uses, name=$name, description=$description, displayLabel=$displayLabel, displaySrc=$displaySrc, backgroundColor=$backgroundColor, borderColor=$borderColor, textColor=$textColor, cssClass=$cssClass, veteranUserThresholdMillis=$veteranUserThresholdMillis, isAwaitingReprocess=$isAwaitingReprocess, isAwaitingDeletion=$isAwaitingDeletion, replacesBadgeId=$replacesBadgeId]'; + + Map toJson() { + final json = {}; + json[r'_id'] = this.id; + json[r'tenantId'] = this.tenantId; + json[r'createdByUserId'] = this.createdByUserId; + json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); + json[r'enabled'] = this.enabled; + if (this.urlId != null) { + json[r'urlId'] = this.urlId; + } else { + json[r'urlId'] = null; + } + json[r'type'] = this.type; + json[r'threshold'] = this.threshold; + json[r'uses'] = this.uses; + json[r'name'] = this.name; + json[r'description'] = this.description; + json[r'displayLabel'] = this.displayLabel; + if (this.displaySrc != null) { + json[r'displaySrc'] = this.displaySrc; + } else { + json[r'displaySrc'] = null; + } + if (this.backgroundColor != null) { + json[r'backgroundColor'] = this.backgroundColor; + } else { + json[r'backgroundColor'] = null; + } + if (this.borderColor != null) { + json[r'borderColor'] = this.borderColor; + } else { + json[r'borderColor'] = null; + } + if (this.textColor != null) { + json[r'textColor'] = this.textColor; + } else { + json[r'textColor'] = null; + } + if (this.cssClass != null) { + json[r'cssClass'] = this.cssClass; + } else { + json[r'cssClass'] = null; + } + if (this.veteranUserThresholdMillis != null) { + json[r'veteranUserThresholdMillis'] = this.veteranUserThresholdMillis; + } else { + json[r'veteranUserThresholdMillis'] = null; + } + json[r'isAwaitingReprocess'] = this.isAwaitingReprocess; + json[r'isAwaitingDeletion'] = this.isAwaitingDeletion; + if (this.replacesBadgeId != null) { + json[r'replacesBadgeId'] = this.replacesBadgeId; + } else { + json[r'replacesBadgeId'] = null; + } + return json; + } + + /// Returns a new [TenantBadge] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static TenantBadge? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'_id'), 'Required key "TenantBadge[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "TenantBadge[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "TenantBadge[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "TenantBadge[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'createdByUserId'), 'Required key "TenantBadge[createdByUserId]" is missing from JSON.'); + assert(json[r'createdByUserId'] != null, 'Required key "TenantBadge[createdByUserId]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "TenantBadge[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "TenantBadge[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'enabled'), 'Required key "TenantBadge[enabled]" is missing from JSON.'); + assert(json[r'enabled'] != null, 'Required key "TenantBadge[enabled]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "TenantBadge[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "TenantBadge[type]" has a null value in JSON.'); + assert(json.containsKey(r'threshold'), 'Required key "TenantBadge[threshold]" is missing from JSON.'); + assert(json[r'threshold'] != null, 'Required key "TenantBadge[threshold]" has a null value in JSON.'); + assert(json.containsKey(r'uses'), 'Required key "TenantBadge[uses]" is missing from JSON.'); + assert(json[r'uses'] != null, 'Required key "TenantBadge[uses]" has a null value in JSON.'); + assert(json.containsKey(r'name'), 'Required key "TenantBadge[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "TenantBadge[name]" has a null value in JSON.'); + assert(json.containsKey(r'description'), 'Required key "TenantBadge[description]" is missing from JSON.'); + assert(json[r'description'] != null, 'Required key "TenantBadge[description]" has a null value in JSON.'); + assert(json.containsKey(r'displayLabel'), 'Required key "TenantBadge[displayLabel]" is missing from JSON.'); + assert(json[r'displayLabel'] != null, 'Required key "TenantBadge[displayLabel]" has a null value in JSON.'); + assert(json.containsKey(r'displaySrc'), 'Required key "TenantBadge[displaySrc]" is missing from JSON.'); + assert(json.containsKey(r'backgroundColor'), 'Required key "TenantBadge[backgroundColor]" is missing from JSON.'); + assert(json.containsKey(r'borderColor'), 'Required key "TenantBadge[borderColor]" is missing from JSON.'); + assert(json.containsKey(r'textColor'), 'Required key "TenantBadge[textColor]" is missing from JSON.'); + assert(json.containsKey(r'isAwaitingReprocess'), 'Required key "TenantBadge[isAwaitingReprocess]" is missing from JSON.'); + assert(json[r'isAwaitingReprocess'] != null, 'Required key "TenantBadge[isAwaitingReprocess]" has a null value in JSON.'); + assert(json.containsKey(r'isAwaitingDeletion'), 'Required key "TenantBadge[isAwaitingDeletion]" is missing from JSON.'); + assert(json[r'isAwaitingDeletion'] != null, 'Required key "TenantBadge[isAwaitingDeletion]" has a null value in JSON.'); + return true; + }()); + + return TenantBadge( + id: mapValueOfType(json, r'_id')!, + tenantId: mapValueOfType(json, r'tenantId')!, + createdByUserId: mapValueOfType(json, r'createdByUserId')!, + createdAt: mapDateTime(json, r'createdAt', r'')!, + enabled: mapValueOfType(json, r'enabled')!, + urlId: mapValueOfType(json, r'urlId'), + type: mapValueOfType(json, r'type')!, + threshold: mapValueOfType(json, r'threshold')!, + uses: mapValueOfType(json, r'uses')!, + name: mapValueOfType(json, r'name')!, + description: mapValueOfType(json, r'description')!, + displayLabel: mapValueOfType(json, r'displayLabel')!, + displaySrc: mapValueOfType(json, r'displaySrc'), + backgroundColor: mapValueOfType(json, r'backgroundColor'), + borderColor: mapValueOfType(json, r'borderColor'), + textColor: mapValueOfType(json, r'textColor'), + cssClass: mapValueOfType(json, r'cssClass'), + veteranUserThresholdMillis: mapValueOfType(json, r'veteranUserThresholdMillis'), + isAwaitingReprocess: mapValueOfType(json, r'isAwaitingReprocess')!, + isAwaitingDeletion: mapValueOfType(json, r'isAwaitingDeletion')!, + replacesBadgeId: mapValueOfType(json, r'replacesBadgeId'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = TenantBadge.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = TenantBadge.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of TenantBadge-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = TenantBadge.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + '_id', + 'tenantId', + 'createdByUserId', + 'createdAt', + 'enabled', + 'type', + 'threshold', + 'uses', + 'name', + 'description', + 'displayLabel', + 'displaySrc', + 'backgroundColor', + 'borderColor', + 'textColor', + 'isAwaitingReprocess', + 'isAwaitingDeletion', + }; +} + diff --git a/client/lib/model/tenant_hash_tag.dart b/client/lib/model/tenant_hash_tag.dart index 9c0def9..1c2c55a 100644 --- a/client/lib/model/tenant_hash_tag.dart +++ b/client/lib/model/tenant_hash_tag.dart @@ -39,19 +39,21 @@ class TenantHashTag { @override bool operator ==(Object other) => identical(this, other) || other is TenantHashTag && other.id == id && - other.createdAt == createdAt && - other.tenantId == tenantId && - other.tag == tag && - other.url == url; + other.createdAt == createdAt && + other.tenantId == tenantId && + other.tag == tag && + other.url == url; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (createdAt.hashCode) + - (tenantId.hashCode) + - (tag.hashCode) + - (url == null ? 0 : url!.hashCode); + (createdAt.hashCode) + + (tenantId.hashCode) + + (tag.hashCode) + + (url == null ? 0 : url!.hashCode); + @override String toString() => 'TenantHashTag[id=$id, createdAt=$createdAt, tenantId=$tenantId, tag=$tag, url=$url]'; diff --git a/client/lib/model/tenant_package.dart b/client/lib/model/tenant_package.dart index 537c759..d98da1c 100644 --- a/client/lib/model/tenant_package.dart +++ b/client/lib/model/tenant_package.dart @@ -17,6 +17,7 @@ class TenantPackage { required this.name, required this.tenantId, required this.createdAt, + this.templateId, required this.monthlyCostUSD, required this.yearlyCostUSD, required this.monthlyStripePlanId, @@ -83,6 +84,14 @@ class TenantPackage { DateTime createdAt; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? templateId; + double? monthlyCostUSD; double? yearlyCostUSD; @@ -396,132 +405,136 @@ class TenantPackage { @override bool operator ==(Object other) => identical(this, other) || other is TenantPackage && other.id == id && - other.name == name && - other.tenantId == tenantId && - other.createdAt == createdAt && - other.monthlyCostUSD == monthlyCostUSD && - other.yearlyCostUSD == yearlyCostUSD && - other.monthlyStripePlanId == monthlyStripePlanId && - other.yearlyStripePlanId == yearlyStripePlanId && - other.maxMonthlyPageLoads == maxMonthlyPageLoads && - other.maxMonthlyAPICredits == maxMonthlyAPICredits && - other.maxMonthlySmallWidgetsCredits == maxMonthlySmallWidgetsCredits && - other.maxMonthlyComments == maxMonthlyComments && - other.maxConcurrentUsers == maxConcurrentUsers && - other.maxTenantUsers == maxTenantUsers && - other.maxSSOUsers == maxSSOUsers && - other.maxModerators == maxModerators && - other.maxDomains == maxDomains && - other.maxWhiteLabeledTenants == maxWhiteLabeledTenants && - other.maxMonthlyEventLogRequests == maxMonthlyEventLogRequests && - other.maxCustomCollectionSize == maxCustomCollectionSize && - other.hasWhiteLabeling == hasWhiteLabeling && - other.hasDebranding == hasDebranding && - other.hasLLMSpamDetection == hasLLMSpamDetection && - other.forWhoText == forWhoText && - _deepEquality.equals(other.featureTaglines, featureTaglines) && - other.hasAuditing == hasAuditing && - other.hasFlexPricing == hasFlexPricing && - other.enableSAML == enableSAML && - other.enableCanvasLTI == enableCanvasLTI && - other.flexPageLoadCostCents == flexPageLoadCostCents && - other.flexPageLoadUnit == flexPageLoadUnit && - other.flexCommentCostCents == flexCommentCostCents && - other.flexCommentUnit == flexCommentUnit && - other.flexSSOUserCostCents == flexSSOUserCostCents && - other.flexSSOUserUnit == flexSSOUserUnit && - other.flexAPICreditCostCents == flexAPICreditCostCents && - other.flexAPICreditUnit == flexAPICreditUnit && - other.flexSmallWidgetsCreditCostCents == flexSmallWidgetsCreditCostCents && - other.flexSmallWidgetsCreditUnit == flexSmallWidgetsCreditUnit && - other.flexModeratorCostCents == flexModeratorCostCents && - other.flexModeratorUnit == flexModeratorUnit && - other.flexAdminCostCents == flexAdminCostCents && - other.flexAdminUnit == flexAdminUnit && - other.flexDomainCostCents == flexDomainCostCents && - other.flexDomainUnit == flexDomainUnit && - other.flexChatGPTCostCents == flexChatGPTCostCents && - other.flexChatGPTUnit == flexChatGPTUnit && - other.flexLLMCostCents == flexLLMCostCents && - other.flexLLMUnit == flexLLMUnit && - other.flexMinimumCostCents == flexMinimumCostCents && - other.flexManagedTenantCostCents == flexManagedTenantCostCents && - other.flexSSOAdminCostCents == flexSSOAdminCostCents && - other.flexSSOAdminUnit == flexSSOAdminUnit && - other.flexSSOModeratorCostCents == flexSSOModeratorCostCents && - other.flexSSOModeratorUnit == flexSSOModeratorUnit && - other.isSSOBillingMonthlyActiveUsers == isSSOBillingMonthlyActiveUsers && - other.hasAIAgents == hasAIAgents && - other.maxAIAgents == maxAIAgents && - other.aiAgentDailyBudgetCents == aiAgentDailyBudgetCents && - other.aiAgentMonthlyBudgetCents == aiAgentMonthlyBudgetCents; + other.name == name && + other.tenantId == tenantId && + other.createdAt == createdAt && + other.templateId == templateId && + other.monthlyCostUSD == monthlyCostUSD && + other.yearlyCostUSD == yearlyCostUSD && + other.monthlyStripePlanId == monthlyStripePlanId && + other.yearlyStripePlanId == yearlyStripePlanId && + other.maxMonthlyPageLoads == maxMonthlyPageLoads && + other.maxMonthlyAPICredits == maxMonthlyAPICredits && + other.maxMonthlySmallWidgetsCredits == maxMonthlySmallWidgetsCredits && + other.maxMonthlyComments == maxMonthlyComments && + other.maxConcurrentUsers == maxConcurrentUsers && + other.maxTenantUsers == maxTenantUsers && + other.maxSSOUsers == maxSSOUsers && + other.maxModerators == maxModerators && + other.maxDomains == maxDomains && + other.maxWhiteLabeledTenants == maxWhiteLabeledTenants && + other.maxMonthlyEventLogRequests == maxMonthlyEventLogRequests && + other.maxCustomCollectionSize == maxCustomCollectionSize && + other.hasWhiteLabeling == hasWhiteLabeling && + other.hasDebranding == hasDebranding && + other.hasLLMSpamDetection == hasLLMSpamDetection && + other.forWhoText == forWhoText && + _deepEquality.equals(other.featureTaglines, featureTaglines) && + other.hasAuditing == hasAuditing && + other.hasFlexPricing == hasFlexPricing && + other.enableSAML == enableSAML && + other.enableCanvasLTI == enableCanvasLTI && + other.flexPageLoadCostCents == flexPageLoadCostCents && + other.flexPageLoadUnit == flexPageLoadUnit && + other.flexCommentCostCents == flexCommentCostCents && + other.flexCommentUnit == flexCommentUnit && + other.flexSSOUserCostCents == flexSSOUserCostCents && + other.flexSSOUserUnit == flexSSOUserUnit && + other.flexAPICreditCostCents == flexAPICreditCostCents && + other.flexAPICreditUnit == flexAPICreditUnit && + other.flexSmallWidgetsCreditCostCents == flexSmallWidgetsCreditCostCents && + other.flexSmallWidgetsCreditUnit == flexSmallWidgetsCreditUnit && + other.flexModeratorCostCents == flexModeratorCostCents && + other.flexModeratorUnit == flexModeratorUnit && + other.flexAdminCostCents == flexAdminCostCents && + other.flexAdminUnit == flexAdminUnit && + other.flexDomainCostCents == flexDomainCostCents && + other.flexDomainUnit == flexDomainUnit && + other.flexChatGPTCostCents == flexChatGPTCostCents && + other.flexChatGPTUnit == flexChatGPTUnit && + other.flexLLMCostCents == flexLLMCostCents && + other.flexLLMUnit == flexLLMUnit && + other.flexMinimumCostCents == flexMinimumCostCents && + other.flexManagedTenantCostCents == flexManagedTenantCostCents && + other.flexSSOAdminCostCents == flexSSOAdminCostCents && + other.flexSSOAdminUnit == flexSSOAdminUnit && + other.flexSSOModeratorCostCents == flexSSOModeratorCostCents && + other.flexSSOModeratorUnit == flexSSOModeratorUnit && + other.isSSOBillingMonthlyActiveUsers == isSSOBillingMonthlyActiveUsers && + other.hasAIAgents == hasAIAgents && + other.maxAIAgents == maxAIAgents && + other.aiAgentDailyBudgetCents == aiAgentDailyBudgetCents && + other.aiAgentMonthlyBudgetCents == aiAgentMonthlyBudgetCents; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (name.hashCode) + - (tenantId.hashCode) + - (createdAt.hashCode) + - (monthlyCostUSD == null ? 0 : monthlyCostUSD!.hashCode) + - (yearlyCostUSD == null ? 0 : yearlyCostUSD!.hashCode) + - (monthlyStripePlanId == null ? 0 : monthlyStripePlanId!.hashCode) + - (yearlyStripePlanId == null ? 0 : yearlyStripePlanId!.hashCode) + - (maxMonthlyPageLoads.hashCode) + - (maxMonthlyAPICredits.hashCode) + - (maxMonthlySmallWidgetsCredits.hashCode) + - (maxMonthlyComments.hashCode) + - (maxConcurrentUsers.hashCode) + - (maxTenantUsers.hashCode) + - (maxSSOUsers.hashCode) + - (maxModerators.hashCode) + - (maxDomains.hashCode) + - (maxWhiteLabeledTenants.hashCode) + - (maxMonthlyEventLogRequests.hashCode) + - (maxCustomCollectionSize.hashCode) + - (hasWhiteLabeling.hashCode) + - (hasDebranding.hashCode) + - (hasLLMSpamDetection.hashCode) + - (forWhoText.hashCode) + - (featureTaglines.hashCode) + - (hasAuditing.hashCode) + - (hasFlexPricing.hashCode) + - (enableSAML == null ? 0 : enableSAML!.hashCode) + - (enableCanvasLTI == null ? 0 : enableCanvasLTI!.hashCode) + - (flexPageLoadCostCents == null ? 0 : flexPageLoadCostCents!.hashCode) + - (flexPageLoadUnit == null ? 0 : flexPageLoadUnit!.hashCode) + - (flexCommentCostCents == null ? 0 : flexCommentCostCents!.hashCode) + - (flexCommentUnit == null ? 0 : flexCommentUnit!.hashCode) + - (flexSSOUserCostCents == null ? 0 : flexSSOUserCostCents!.hashCode) + - (flexSSOUserUnit == null ? 0 : flexSSOUserUnit!.hashCode) + - (flexAPICreditCostCents == null ? 0 : flexAPICreditCostCents!.hashCode) + - (flexAPICreditUnit == null ? 0 : flexAPICreditUnit!.hashCode) + - (flexSmallWidgetsCreditCostCents == null ? 0 : flexSmallWidgetsCreditCostCents!.hashCode) + - (flexSmallWidgetsCreditUnit == null ? 0 : flexSmallWidgetsCreditUnit!.hashCode) + - (flexModeratorCostCents == null ? 0 : flexModeratorCostCents!.hashCode) + - (flexModeratorUnit == null ? 0 : flexModeratorUnit!.hashCode) + - (flexAdminCostCents == null ? 0 : flexAdminCostCents!.hashCode) + - (flexAdminUnit == null ? 0 : flexAdminUnit!.hashCode) + - (flexDomainCostCents == null ? 0 : flexDomainCostCents!.hashCode) + - (flexDomainUnit == null ? 0 : flexDomainUnit!.hashCode) + - (flexChatGPTCostCents == null ? 0 : flexChatGPTCostCents!.hashCode) + - (flexChatGPTUnit == null ? 0 : flexChatGPTUnit!.hashCode) + - (flexLLMCostCents == null ? 0 : flexLLMCostCents!.hashCode) + - (flexLLMUnit == null ? 0 : flexLLMUnit!.hashCode) + - (flexMinimumCostCents == null ? 0 : flexMinimumCostCents!.hashCode) + - (flexManagedTenantCostCents == null ? 0 : flexManagedTenantCostCents!.hashCode) + - (flexSSOAdminCostCents == null ? 0 : flexSSOAdminCostCents!.hashCode) + - (flexSSOAdminUnit == null ? 0 : flexSSOAdminUnit!.hashCode) + - (flexSSOModeratorCostCents == null ? 0 : flexSSOModeratorCostCents!.hashCode) + - (flexSSOModeratorUnit == null ? 0 : flexSSOModeratorUnit!.hashCode) + - (isSSOBillingMonthlyActiveUsers == null ? 0 : isSSOBillingMonthlyActiveUsers!.hashCode) + - (hasAIAgents == null ? 0 : hasAIAgents!.hashCode) + - (maxAIAgents == null ? 0 : maxAIAgents!.hashCode) + - (aiAgentDailyBudgetCents == null ? 0 : aiAgentDailyBudgetCents!.hashCode) + - (aiAgentMonthlyBudgetCents == null ? 0 : aiAgentMonthlyBudgetCents!.hashCode); + (name.hashCode) + + (tenantId.hashCode) + + (createdAt.hashCode) + + (templateId == null ? 0 : templateId!.hashCode) + + (monthlyCostUSD == null ? 0 : monthlyCostUSD!.hashCode) + + (yearlyCostUSD == null ? 0 : yearlyCostUSD!.hashCode) + + (monthlyStripePlanId == null ? 0 : monthlyStripePlanId!.hashCode) + + (yearlyStripePlanId == null ? 0 : yearlyStripePlanId!.hashCode) + + (maxMonthlyPageLoads.hashCode) + + (maxMonthlyAPICredits.hashCode) + + (maxMonthlySmallWidgetsCredits.hashCode) + + (maxMonthlyComments.hashCode) + + (maxConcurrentUsers.hashCode) + + (maxTenantUsers.hashCode) + + (maxSSOUsers.hashCode) + + (maxModerators.hashCode) + + (maxDomains.hashCode) + + (maxWhiteLabeledTenants.hashCode) + + (maxMonthlyEventLogRequests.hashCode) + + (maxCustomCollectionSize.hashCode) + + (hasWhiteLabeling.hashCode) + + (hasDebranding.hashCode) + + (hasLLMSpamDetection.hashCode) + + (forWhoText.hashCode) + + (featureTaglines.hashCode) + + (hasAuditing.hashCode) + + (hasFlexPricing.hashCode) + + (enableSAML == null ? 0 : enableSAML!.hashCode) + + (enableCanvasLTI == null ? 0 : enableCanvasLTI!.hashCode) + + (flexPageLoadCostCents == null ? 0 : flexPageLoadCostCents!.hashCode) + + (flexPageLoadUnit == null ? 0 : flexPageLoadUnit!.hashCode) + + (flexCommentCostCents == null ? 0 : flexCommentCostCents!.hashCode) + + (flexCommentUnit == null ? 0 : flexCommentUnit!.hashCode) + + (flexSSOUserCostCents == null ? 0 : flexSSOUserCostCents!.hashCode) + + (flexSSOUserUnit == null ? 0 : flexSSOUserUnit!.hashCode) + + (flexAPICreditCostCents == null ? 0 : flexAPICreditCostCents!.hashCode) + + (flexAPICreditUnit == null ? 0 : flexAPICreditUnit!.hashCode) + + (flexSmallWidgetsCreditCostCents == null ? 0 : flexSmallWidgetsCreditCostCents!.hashCode) + + (flexSmallWidgetsCreditUnit == null ? 0 : flexSmallWidgetsCreditUnit!.hashCode) + + (flexModeratorCostCents == null ? 0 : flexModeratorCostCents!.hashCode) + + (flexModeratorUnit == null ? 0 : flexModeratorUnit!.hashCode) + + (flexAdminCostCents == null ? 0 : flexAdminCostCents!.hashCode) + + (flexAdminUnit == null ? 0 : flexAdminUnit!.hashCode) + + (flexDomainCostCents == null ? 0 : flexDomainCostCents!.hashCode) + + (flexDomainUnit == null ? 0 : flexDomainUnit!.hashCode) + + (flexChatGPTCostCents == null ? 0 : flexChatGPTCostCents!.hashCode) + + (flexChatGPTUnit == null ? 0 : flexChatGPTUnit!.hashCode) + + (flexLLMCostCents == null ? 0 : flexLLMCostCents!.hashCode) + + (flexLLMUnit == null ? 0 : flexLLMUnit!.hashCode) + + (flexMinimumCostCents == null ? 0 : flexMinimumCostCents!.hashCode) + + (flexManagedTenantCostCents == null ? 0 : flexManagedTenantCostCents!.hashCode) + + (flexSSOAdminCostCents == null ? 0 : flexSSOAdminCostCents!.hashCode) + + (flexSSOAdminUnit == null ? 0 : flexSSOAdminUnit!.hashCode) + + (flexSSOModeratorCostCents == null ? 0 : flexSSOModeratorCostCents!.hashCode) + + (flexSSOModeratorUnit == null ? 0 : flexSSOModeratorUnit!.hashCode) + + (isSSOBillingMonthlyActiveUsers == null ? 0 : isSSOBillingMonthlyActiveUsers!.hashCode) + + (hasAIAgents == null ? 0 : hasAIAgents!.hashCode) + + (maxAIAgents == null ? 0 : maxAIAgents!.hashCode) + + (aiAgentDailyBudgetCents == null ? 0 : aiAgentDailyBudgetCents!.hashCode) + + (aiAgentMonthlyBudgetCents == null ? 0 : aiAgentMonthlyBudgetCents!.hashCode); + @override - String toString() => 'TenantPackage[id=$id, name=$name, tenantId=$tenantId, createdAt=$createdAt, monthlyCostUSD=$monthlyCostUSD, yearlyCostUSD=$yearlyCostUSD, monthlyStripePlanId=$monthlyStripePlanId, yearlyStripePlanId=$yearlyStripePlanId, maxMonthlyPageLoads=$maxMonthlyPageLoads, maxMonthlyAPICredits=$maxMonthlyAPICredits, maxMonthlySmallWidgetsCredits=$maxMonthlySmallWidgetsCredits, maxMonthlyComments=$maxMonthlyComments, maxConcurrentUsers=$maxConcurrentUsers, maxTenantUsers=$maxTenantUsers, maxSSOUsers=$maxSSOUsers, maxModerators=$maxModerators, maxDomains=$maxDomains, maxWhiteLabeledTenants=$maxWhiteLabeledTenants, maxMonthlyEventLogRequests=$maxMonthlyEventLogRequests, maxCustomCollectionSize=$maxCustomCollectionSize, hasWhiteLabeling=$hasWhiteLabeling, hasDebranding=$hasDebranding, hasLLMSpamDetection=$hasLLMSpamDetection, forWhoText=$forWhoText, featureTaglines=$featureTaglines, hasAuditing=$hasAuditing, hasFlexPricing=$hasFlexPricing, enableSAML=$enableSAML, enableCanvasLTI=$enableCanvasLTI, flexPageLoadCostCents=$flexPageLoadCostCents, flexPageLoadUnit=$flexPageLoadUnit, flexCommentCostCents=$flexCommentCostCents, flexCommentUnit=$flexCommentUnit, flexSSOUserCostCents=$flexSSOUserCostCents, flexSSOUserUnit=$flexSSOUserUnit, flexAPICreditCostCents=$flexAPICreditCostCents, flexAPICreditUnit=$flexAPICreditUnit, flexSmallWidgetsCreditCostCents=$flexSmallWidgetsCreditCostCents, flexSmallWidgetsCreditUnit=$flexSmallWidgetsCreditUnit, flexModeratorCostCents=$flexModeratorCostCents, flexModeratorUnit=$flexModeratorUnit, flexAdminCostCents=$flexAdminCostCents, flexAdminUnit=$flexAdminUnit, flexDomainCostCents=$flexDomainCostCents, flexDomainUnit=$flexDomainUnit, flexChatGPTCostCents=$flexChatGPTCostCents, flexChatGPTUnit=$flexChatGPTUnit, flexLLMCostCents=$flexLLMCostCents, flexLLMUnit=$flexLLMUnit, flexMinimumCostCents=$flexMinimumCostCents, flexManagedTenantCostCents=$flexManagedTenantCostCents, flexSSOAdminCostCents=$flexSSOAdminCostCents, flexSSOAdminUnit=$flexSSOAdminUnit, flexSSOModeratorCostCents=$flexSSOModeratorCostCents, flexSSOModeratorUnit=$flexSSOModeratorUnit, isSSOBillingMonthlyActiveUsers=$isSSOBillingMonthlyActiveUsers, hasAIAgents=$hasAIAgents, maxAIAgents=$maxAIAgents, aiAgentDailyBudgetCents=$aiAgentDailyBudgetCents, aiAgentMonthlyBudgetCents=$aiAgentMonthlyBudgetCents]'; + String toString() => 'TenantPackage[id=$id, name=$name, tenantId=$tenantId, createdAt=$createdAt, templateId=$templateId, monthlyCostUSD=$monthlyCostUSD, yearlyCostUSD=$yearlyCostUSD, monthlyStripePlanId=$monthlyStripePlanId, yearlyStripePlanId=$yearlyStripePlanId, maxMonthlyPageLoads=$maxMonthlyPageLoads, maxMonthlyAPICredits=$maxMonthlyAPICredits, maxMonthlySmallWidgetsCredits=$maxMonthlySmallWidgetsCredits, maxMonthlyComments=$maxMonthlyComments, maxConcurrentUsers=$maxConcurrentUsers, maxTenantUsers=$maxTenantUsers, maxSSOUsers=$maxSSOUsers, maxModerators=$maxModerators, maxDomains=$maxDomains, maxWhiteLabeledTenants=$maxWhiteLabeledTenants, maxMonthlyEventLogRequests=$maxMonthlyEventLogRequests, maxCustomCollectionSize=$maxCustomCollectionSize, hasWhiteLabeling=$hasWhiteLabeling, hasDebranding=$hasDebranding, hasLLMSpamDetection=$hasLLMSpamDetection, forWhoText=$forWhoText, featureTaglines=$featureTaglines, hasAuditing=$hasAuditing, hasFlexPricing=$hasFlexPricing, enableSAML=$enableSAML, enableCanvasLTI=$enableCanvasLTI, flexPageLoadCostCents=$flexPageLoadCostCents, flexPageLoadUnit=$flexPageLoadUnit, flexCommentCostCents=$flexCommentCostCents, flexCommentUnit=$flexCommentUnit, flexSSOUserCostCents=$flexSSOUserCostCents, flexSSOUserUnit=$flexSSOUserUnit, flexAPICreditCostCents=$flexAPICreditCostCents, flexAPICreditUnit=$flexAPICreditUnit, flexSmallWidgetsCreditCostCents=$flexSmallWidgetsCreditCostCents, flexSmallWidgetsCreditUnit=$flexSmallWidgetsCreditUnit, flexModeratorCostCents=$flexModeratorCostCents, flexModeratorUnit=$flexModeratorUnit, flexAdminCostCents=$flexAdminCostCents, flexAdminUnit=$flexAdminUnit, flexDomainCostCents=$flexDomainCostCents, flexDomainUnit=$flexDomainUnit, flexChatGPTCostCents=$flexChatGPTCostCents, flexChatGPTUnit=$flexChatGPTUnit, flexLLMCostCents=$flexLLMCostCents, flexLLMUnit=$flexLLMUnit, flexMinimumCostCents=$flexMinimumCostCents, flexManagedTenantCostCents=$flexManagedTenantCostCents, flexSSOAdminCostCents=$flexSSOAdminCostCents, flexSSOAdminUnit=$flexSSOAdminUnit, flexSSOModeratorCostCents=$flexSSOModeratorCostCents, flexSSOModeratorUnit=$flexSSOModeratorUnit, isSSOBillingMonthlyActiveUsers=$isSSOBillingMonthlyActiveUsers, hasAIAgents=$hasAIAgents, maxAIAgents=$maxAIAgents, aiAgentDailyBudgetCents=$aiAgentDailyBudgetCents, aiAgentMonthlyBudgetCents=$aiAgentMonthlyBudgetCents]'; Map toJson() { final json = {}; @@ -529,6 +542,11 @@ class TenantPackage { json[r'name'] = this.name; json[r'tenantId'] = this.tenantId; json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); + if (this.templateId != null) { + json[r'templateId'] = this.templateId; + } else { + json[r'templateId'] = null; + } if (this.monthlyCostUSD != null) { json[r'monthlyCostUSD'] = this.monthlyCostUSD; } else { @@ -805,6 +823,7 @@ class TenantPackage { name: mapValueOfType(json, r'name')!, tenantId: mapValueOfType(json, r'tenantId')!, createdAt: mapDateTime(json, r'createdAt', r'')!, + templateId: mapValueOfType(json, r'templateId'), monthlyCostUSD: mapValueOfType(json, r'monthlyCostUSD'), yearlyCostUSD: mapValueOfType(json, r'yearlyCostUSD'), monthlyStripePlanId: mapValueOfType(json, r'monthlyStripePlanId'), diff --git a/client/lib/model/tos_config.dart b/client/lib/model/tos_config.dart index 746c4f4..f8375f0 100644 --- a/client/lib/model/tos_config.dart +++ b/client/lib/model/tos_config.dart @@ -40,15 +40,17 @@ class TOSConfig { @override bool operator ==(Object other) => identical(this, other) || other is TOSConfig && other.enabled == enabled && - _deepEquality.equals(other.textByLocale, textByLocale) && - other.lastUpdated == lastUpdated; + _deepEquality.equals(other.textByLocale, textByLocale) && + other.lastUpdated == lastUpdated; + @override int get hashCode => // ignore: unnecessary_parenthesis (enabled == null ? 0 : enabled!.hashCode) + - (textByLocale.hashCode) + - (lastUpdated == null ? 0 : lastUpdated!.hashCode); + (textByLocale.hashCode) + + (lastUpdated == null ? 0 : lastUpdated!.hashCode); + @override String toString() => 'TOSConfig[enabled=$enabled, textByLocale=$textByLocale, lastUpdated=$lastUpdated]'; diff --git a/client/lib/model/un_block_comment_public200_response.dart b/client/lib/model/un_block_comment_public200_response.dart deleted file mode 100644 index 7ecddda..0000000 --- a/client/lib/model/un_block_comment_public200_response.dart +++ /dev/null @@ -1,223 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class UnBlockCommentPublic200Response { - /// Returns a new [UnBlockCommentPublic200Response] instance. - UnBlockCommentPublic200Response({ - required this.status, - this.commentStatuses = const {}, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - /// Construct a type with a set of properties K of type T - Map commentStatuses; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is UnBlockCommentPublic200Response && - other.status == status && - _deepEquality.equals(other.commentStatuses, commentStatuses) && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (commentStatuses.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'UnBlockCommentPublic200Response[status=$status, commentStatuses=$commentStatuses, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'commentStatuses'] = this.commentStatuses; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [UnBlockCommentPublic200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UnBlockCommentPublic200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "UnBlockCommentPublic200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UnBlockCommentPublic200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'commentStatuses'), 'Required key "UnBlockCommentPublic200Response[commentStatuses]" is missing from JSON.'); - assert(json[r'commentStatuses'] != null, 'Required key "UnBlockCommentPublic200Response[commentStatuses]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "UnBlockCommentPublic200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "UnBlockCommentPublic200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "UnBlockCommentPublic200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "UnBlockCommentPublic200Response[code]" has a null value in JSON.'); - return true; - }()); - - return UnBlockCommentPublic200Response( - status: APIStatus.fromJson(json[r'status'])!, - commentStatuses: mapCastOfType(json, r'commentStatuses')!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UnBlockCommentPublic200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UnBlockCommentPublic200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UnBlockCommentPublic200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UnBlockCommentPublic200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'commentStatuses', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/un_block_from_comment_params.dart b/client/lib/model/un_block_from_comment_params.dart index f3c4342..108bcce 100644 --- a/client/lib/model/un_block_from_comment_params.dart +++ b/client/lib/model/un_block_from_comment_params.dart @@ -21,11 +21,13 @@ class UnBlockFromCommentParams { @override bool operator ==(Object other) => identical(this, other) || other is UnBlockFromCommentParams && _deepEquality.equals(other.commentIdsToCheck, commentIdsToCheck); + @override int get hashCode => // ignore: unnecessary_parenthesis (commentIdsToCheck.hashCode); + @override String toString() => 'UnBlockFromCommentParams[commentIdsToCheck=$commentIdsToCheck]'; diff --git a/client/lib/model/unblock_success.dart b/client/lib/model/unblock_success.dart index 932e8e6..fee6d1f 100644 --- a/client/lib/model/unblock_success.dart +++ b/client/lib/model/unblock_success.dart @@ -25,13 +25,15 @@ class UnblockSuccess { @override bool operator ==(Object other) => identical(this, other) || other is UnblockSuccess && other.status == status && - _deepEquality.equals(other.commentStatuses, commentStatuses); + _deepEquality.equals(other.commentStatuses, commentStatuses); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (commentStatuses.hashCode); + (commentStatuses.hashCode); + @override String toString() => 'UnblockSuccess[status=$status, commentStatuses=$commentStatuses]'; diff --git a/client/lib/model/updatable_comment_params.dart b/client/lib/model/updatable_comment_params.dart index d896ea8..325de06 100644 --- a/client/lib/model/updatable_comment_params.dart +++ b/client/lib/model/updatable_comment_params.dart @@ -237,87 +237,89 @@ class UpdatableCommentParams { @override bool operator ==(Object other) => identical(this, other) || other is UpdatableCommentParams && other.urlId == urlId && - other.urlIdRaw == urlIdRaw && - other.url == url && - other.pageTitle == pageTitle && - other.userId == userId && - other.commenterEmail == commenterEmail && - other.commenterName == commenterName && - other.commenterLink == commenterLink && - other.comment == comment && - other.commentHTML == commentHTML && - other.parentId == parentId && - other.date == date && - other.localDateString == localDateString && - other.localDateHours == localDateHours && - other.votes == votes && - other.votesUp == votesUp && - other.votesDown == votesDown && - other.expireAt == expireAt && - other.verified == verified && - other.verifiedDate == verifiedDate && - other.notificationSentForParent == notificationSentForParent && - other.notificationSentForParentTenant == notificationSentForParentTenant && - other.reviewed == reviewed && - other.externalId == externalId && - other.externalParentId == externalParentId && - other.avatarSrc == avatarSrc && - other.isSpam == isSpam && - other.approved == approved && - other.isDeleted == isDeleted && - other.isDeletedUser == isDeletedUser && - other.isByAdmin == isByAdmin && - other.isByModerator == isByModerator && - other.isPinned == isPinned && - other.isLocked == isLocked && - other.flagCount == flagCount && - other.displayLabel == displayLabel && - other.meta == meta && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && - _deepEquality.equals(other.feedbackIds, feedbackIds); + other.urlIdRaw == urlIdRaw && + other.url == url && + other.pageTitle == pageTitle && + other.userId == userId && + other.commenterEmail == commenterEmail && + other.commenterName == commenterName && + other.commenterLink == commenterLink && + other.comment == comment && + other.commentHTML == commentHTML && + other.parentId == parentId && + other.date == date && + other.localDateString == localDateString && + other.localDateHours == localDateHours && + other.votes == votes && + other.votesUp == votesUp && + other.votesDown == votesDown && + other.expireAt == expireAt && + other.verified == verified && + other.verifiedDate == verifiedDate && + other.notificationSentForParent == notificationSentForParent && + other.notificationSentForParentTenant == notificationSentForParentTenant && + other.reviewed == reviewed && + other.externalId == externalId && + other.externalParentId == externalParentId && + other.avatarSrc == avatarSrc && + other.isSpam == isSpam && + other.approved == approved && + other.isDeleted == isDeleted && + other.isDeletedUser == isDeletedUser && + other.isByAdmin == isByAdmin && + other.isByModerator == isByModerator && + other.isPinned == isPinned && + other.isLocked == isLocked && + other.flagCount == flagCount && + other.displayLabel == displayLabel && + other.meta == meta && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds) && + _deepEquality.equals(other.feedbackIds, feedbackIds); + @override int get hashCode => // ignore: unnecessary_parenthesis (urlId == null ? 0 : urlId!.hashCode) + - (urlIdRaw == null ? 0 : urlIdRaw!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (commenterEmail == null ? 0 : commenterEmail!.hashCode) + - (commenterName == null ? 0 : commenterName!.hashCode) + - (commenterLink == null ? 0 : commenterLink!.hashCode) + - (comment == null ? 0 : comment!.hashCode) + - (commentHTML == null ? 0 : commentHTML!.hashCode) + - (parentId == null ? 0 : parentId!.hashCode) + - (date == null ? 0 : date!.hashCode) + - (localDateString == null ? 0 : localDateString!.hashCode) + - (localDateHours == null ? 0 : localDateHours!.hashCode) + - (votes == null ? 0 : votes!.hashCode) + - (votesUp == null ? 0 : votesUp!.hashCode) + - (votesDown == null ? 0 : votesDown!.hashCode) + - (expireAt == null ? 0 : expireAt!.hashCode) + - (verified == null ? 0 : verified!.hashCode) + - (verifiedDate == null ? 0 : verifiedDate!.hashCode) + - (notificationSentForParent == null ? 0 : notificationSentForParent!.hashCode) + - (notificationSentForParentTenant == null ? 0 : notificationSentForParentTenant!.hashCode) + - (reviewed == null ? 0 : reviewed!.hashCode) + - (externalId == null ? 0 : externalId!.hashCode) + - (externalParentId == null ? 0 : externalParentId!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (isSpam == null ? 0 : isSpam!.hashCode) + - (approved == null ? 0 : approved!.hashCode) + - (isDeleted == null ? 0 : isDeleted!.hashCode) + - (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + - (isByAdmin == null ? 0 : isByAdmin!.hashCode) + - (isByModerator == null ? 0 : isByModerator!.hashCode) + - (isPinned == null ? 0 : isPinned!.hashCode) + - (isLocked == null ? 0 : isLocked!.hashCode) + - (flagCount == null ? 0 : flagCount!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (meta == null ? 0 : meta!.hashCode) + - (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + - (feedbackIds.hashCode); + (urlIdRaw == null ? 0 : urlIdRaw!.hashCode) + + (url == null ? 0 : url!.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (commenterEmail == null ? 0 : commenterEmail!.hashCode) + + (commenterName == null ? 0 : commenterName!.hashCode) + + (commenterLink == null ? 0 : commenterLink!.hashCode) + + (comment == null ? 0 : comment!.hashCode) + + (commentHTML == null ? 0 : commentHTML!.hashCode) + + (parentId == null ? 0 : parentId!.hashCode) + + (date == null ? 0 : date!.hashCode) + + (localDateString == null ? 0 : localDateString!.hashCode) + + (localDateHours == null ? 0 : localDateHours!.hashCode) + + (votes == null ? 0 : votes!.hashCode) + + (votesUp == null ? 0 : votesUp!.hashCode) + + (votesDown == null ? 0 : votesDown!.hashCode) + + (expireAt == null ? 0 : expireAt!.hashCode) + + (verified == null ? 0 : verified!.hashCode) + + (verifiedDate == null ? 0 : verifiedDate!.hashCode) + + (notificationSentForParent == null ? 0 : notificationSentForParent!.hashCode) + + (notificationSentForParentTenant == null ? 0 : notificationSentForParentTenant!.hashCode) + + (reviewed == null ? 0 : reviewed!.hashCode) + + (externalId == null ? 0 : externalId!.hashCode) + + (externalParentId == null ? 0 : externalParentId!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (isSpam == null ? 0 : isSpam!.hashCode) + + (approved == null ? 0 : approved!.hashCode) + + (isDeleted == null ? 0 : isDeleted!.hashCode) + + (isDeletedUser == null ? 0 : isDeletedUser!.hashCode) + + (isByAdmin == null ? 0 : isByAdmin!.hashCode) + + (isByModerator == null ? 0 : isByModerator!.hashCode) + + (isPinned == null ? 0 : isPinned!.hashCode) + + (isLocked == null ? 0 : isLocked!.hashCode) + + (flagCount == null ? 0 : flagCount!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (meta == null ? 0 : meta!.hashCode) + + (moderationGroupIds == null ? 0 : moderationGroupIds!.hashCode) + + (feedbackIds.hashCode); + @override String toString() => 'UpdatableCommentParams[urlId=$urlId, urlIdRaw=$urlIdRaw, url=$url, pageTitle=$pageTitle, userId=$userId, commenterEmail=$commenterEmail, commenterName=$commenterName, commenterLink=$commenterLink, comment=$comment, commentHTML=$commentHTML, parentId=$parentId, date=$date, localDateString=$localDateString, localDateHours=$localDateHours, votes=$votes, votesUp=$votesUp, votesDown=$votesDown, expireAt=$expireAt, verified=$verified, verifiedDate=$verifiedDate, notificationSentForParent=$notificationSentForParent, notificationSentForParentTenant=$notificationSentForParentTenant, reviewed=$reviewed, externalId=$externalId, externalParentId=$externalParentId, avatarSrc=$avatarSrc, isSpam=$isSpam, approved=$approved, isDeleted=$isDeleted, isDeletedUser=$isDeletedUser, isByAdmin=$isByAdmin, isByModerator=$isByModerator, isPinned=$isPinned, isLocked=$isLocked, flagCount=$flagCount, displayLabel=$displayLabel, meta=$meta, moderationGroupIds=$moderationGroupIds, feedbackIds=$feedbackIds]'; diff --git a/client/lib/model/update_api_page_data.dart b/client/lib/model/update_api_page_data.dart index b987dd2..aa87911 100644 --- a/client/lib/model/update_api_page_data.dart +++ b/client/lib/model/update_api_page_data.dart @@ -57,19 +57,21 @@ class UpdateAPIPageData { @override bool operator ==(Object other) => identical(this, other) || other is UpdateAPIPageData && other.isClosed == isClosed && - _deepEquality.equals(other.accessibleByGroupIds, accessibleByGroupIds) && - other.title == title && - other.url == url && - other.urlId == urlId; + _deepEquality.equals(other.accessibleByGroupIds, accessibleByGroupIds) && + other.title == title && + other.url == url && + other.urlId == urlId; + @override int get hashCode => // ignore: unnecessary_parenthesis (isClosed == null ? 0 : isClosed!.hashCode) + - (accessibleByGroupIds.hashCode) + - (title == null ? 0 : title!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (urlId == null ? 0 : urlId!.hashCode); + (accessibleByGroupIds.hashCode) + + (title == null ? 0 : title!.hashCode) + + (url == null ? 0 : url!.hashCode) + + (urlId == null ? 0 : urlId!.hashCode); + @override String toString() => 'UpdateAPIPageData[isClosed=$isClosed, accessibleByGroupIds=$accessibleByGroupIds, title=$title, url=$url, urlId=$urlId]'; diff --git a/client/lib/model/update_api_user_subscription_data.dart b/client/lib/model/update_api_user_subscription_data.dart index 2b71c8e..2a589ad 100644 --- a/client/lib/model/update_api_user_subscription_data.dart +++ b/client/lib/model/update_api_user_subscription_data.dart @@ -27,11 +27,13 @@ class UpdateAPIUserSubscriptionData { @override bool operator ==(Object other) => identical(this, other) || other is UpdateAPIUserSubscriptionData && other.notificationFrequency == notificationFrequency; + @override int get hashCode => // ignore: unnecessary_parenthesis (notificationFrequency == null ? 0 : notificationFrequency!.hashCode); + @override String toString() => 'UpdateAPIUserSubscriptionData[notificationFrequency=$notificationFrequency]'; diff --git a/client/lib/model/update_apisso_user_data.dart b/client/lib/model/update_apisso_user_data.dart index 038ab1b..7c3b539 100644 --- a/client/lib/model/update_apisso_user_data.dart +++ b/client/lib/model/update_apisso_user_data.dart @@ -192,49 +192,51 @@ class UpdateAPISSOUserData { @override bool operator ==(Object other) => identical(this, other) || other is UpdateAPISSOUserData && _deepEquality.equals(other.groupIds, groupIds) && - other.hasBlockedUsers == hasBlockedUsers && - other.isProfileDMDisabled == isProfileDMDisabled && - other.isProfileCommentsPrivate == isProfileCommentsPrivate && - other.isProfileActivityPrivate == isProfileActivityPrivate && - other.isCommentModeratorAdmin == isCommentModeratorAdmin && - other.isAdminAdmin == isAdminAdmin && - other.isAccountOwner == isAccountOwner && - other.displayName == displayName && - other.displayLabel == displayLabel && - other.optedInSubscriptionNotifications == optedInSubscriptionNotifications && - other.optedInNotifications == optedInNotifications && - other.avatarSrc == avatarSrc && - other.loginCount == loginCount && - other.createdFromUrlId == createdFromUrlId && - other.signUpDate == signUpDate && - other.email == email && - other.websiteUrl == websiteUrl && - other.username == username && - other.id == id; + other.hasBlockedUsers == hasBlockedUsers && + other.isProfileDMDisabled == isProfileDMDisabled && + other.isProfileCommentsPrivate == isProfileCommentsPrivate && + other.isProfileActivityPrivate == isProfileActivityPrivate && + other.isCommentModeratorAdmin == isCommentModeratorAdmin && + other.isAdminAdmin == isAdminAdmin && + other.isAccountOwner == isAccountOwner && + other.displayName == displayName && + other.displayLabel == displayLabel && + other.optedInSubscriptionNotifications == optedInSubscriptionNotifications && + other.optedInNotifications == optedInNotifications && + other.avatarSrc == avatarSrc && + other.loginCount == loginCount && + other.createdFromUrlId == createdFromUrlId && + other.signUpDate == signUpDate && + other.email == email && + other.websiteUrl == websiteUrl && + other.username == username && + other.id == id; + @override int get hashCode => // ignore: unnecessary_parenthesis (groupIds.hashCode) + - (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + - (isProfileDMDisabled == null ? 0 : isProfileDMDisabled!.hashCode) + - (isProfileCommentsPrivate == null ? 0 : isProfileCommentsPrivate!.hashCode) + - (isProfileActivityPrivate == null ? 0 : isProfileActivityPrivate!.hashCode) + - (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + - (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + - (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (optedInSubscriptionNotifications == null ? 0 : optedInSubscriptionNotifications!.hashCode) + - (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (loginCount == null ? 0 : loginCount!.hashCode) + - (createdFromUrlId == null ? 0 : createdFromUrlId!.hashCode) + - (signUpDate == null ? 0 : signUpDate!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (websiteUrl == null ? 0 : websiteUrl!.hashCode) + - (username == null ? 0 : username!.hashCode) + - (id == null ? 0 : id!.hashCode); + (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + + (isProfileDMDisabled == null ? 0 : isProfileDMDisabled!.hashCode) + + (isProfileCommentsPrivate == null ? 0 : isProfileCommentsPrivate!.hashCode) + + (isProfileActivityPrivate == null ? 0 : isProfileActivityPrivate!.hashCode) + + (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + + (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + + (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (optedInSubscriptionNotifications == null ? 0 : optedInSubscriptionNotifications!.hashCode) + + (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (loginCount == null ? 0 : loginCount!.hashCode) + + (createdFromUrlId == null ? 0 : createdFromUrlId!.hashCode) + + (signUpDate == null ? 0 : signUpDate!.hashCode) + + (email == null ? 0 : email!.hashCode) + + (websiteUrl == null ? 0 : websiteUrl!.hashCode) + + (username == null ? 0 : username!.hashCode) + + (id == null ? 0 : id!.hashCode); + @override String toString() => 'UpdateAPISSOUserData[groupIds=$groupIds, hasBlockedUsers=$hasBlockedUsers, isProfileDMDisabled=$isProfileDMDisabled, isProfileCommentsPrivate=$isProfileCommentsPrivate, isProfileActivityPrivate=$isProfileActivityPrivate, isCommentModeratorAdmin=$isCommentModeratorAdmin, isAdminAdmin=$isAdminAdmin, isAccountOwner=$isAccountOwner, displayName=$displayName, displayLabel=$displayLabel, optedInSubscriptionNotifications=$optedInSubscriptionNotifications, optedInNotifications=$optedInNotifications, avatarSrc=$avatarSrc, loginCount=$loginCount, createdFromUrlId=$createdFromUrlId, signUpDate=$signUpDate, email=$email, websiteUrl=$websiteUrl, username=$username, id=$id]'; diff --git a/client/lib/model/update_domain_config_params.dart b/client/lib/model/update_domain_config_params.dart index 3f48b6f..57a9d30 100644 --- a/client/lib/model/update_domain_config_params.dart +++ b/client/lib/model/update_domain_config_params.dart @@ -70,23 +70,25 @@ class UpdateDomainConfigParams { @override bool operator ==(Object other) => identical(this, other) || other is UpdateDomainConfigParams && other.domain == domain && - other.emailFromName == emailFromName && - other.emailFromEmail == emailFromEmail && - other.logoSrc == logoSrc && - other.logoSrc100px == logoSrc100px && - other.footerUnsubscribeURL == footerUnsubscribeURL && - _deepEquality.equals(other.emailHeaders, emailHeaders); + other.emailFromName == emailFromName && + other.emailFromEmail == emailFromEmail && + other.logoSrc == logoSrc && + other.logoSrc100px == logoSrc100px && + other.footerUnsubscribeURL == footerUnsubscribeURL && + _deepEquality.equals(other.emailHeaders, emailHeaders); + @override int get hashCode => // ignore: unnecessary_parenthesis (domain.hashCode) + - (emailFromName == null ? 0 : emailFromName!.hashCode) + - (emailFromEmail == null ? 0 : emailFromEmail!.hashCode) + - (logoSrc == null ? 0 : logoSrc!.hashCode) + - (logoSrc100px == null ? 0 : logoSrc100px!.hashCode) + - (footerUnsubscribeURL == null ? 0 : footerUnsubscribeURL!.hashCode) + - (emailHeaders.hashCode); + (emailFromName == null ? 0 : emailFromName!.hashCode) + + (emailFromEmail == null ? 0 : emailFromEmail!.hashCode) + + (logoSrc == null ? 0 : logoSrc!.hashCode) + + (logoSrc100px == null ? 0 : logoSrc100px!.hashCode) + + (footerUnsubscribeURL == null ? 0 : footerUnsubscribeURL!.hashCode) + + (emailHeaders.hashCode); + @override String toString() => 'UpdateDomainConfigParams[domain=$domain, emailFromName=$emailFromName, emailFromEmail=$emailFromEmail, logoSrc=$logoSrc, logoSrc100px=$logoSrc100px, footerUnsubscribeURL=$footerUnsubscribeURL, emailHeaders=$emailHeaders]'; diff --git a/client/lib/model/update_email_template_body.dart b/client/lib/model/update_email_template_body.dart index 5a68d9a..9f18fe4 100644 --- a/client/lib/model/update_email_template_body.dart +++ b/client/lib/model/update_email_template_body.dart @@ -62,21 +62,23 @@ class UpdateEmailTemplateBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateEmailTemplateBody && other.emailTemplateId == emailTemplateId && - other.displayName == displayName && - other.ejs == ejs && - other.domain == domain && - _deepEquality.equals(other.translationOverridesByLocale, translationOverridesByLocale) && - _deepEquality.equals(other.testData, testData); + other.displayName == displayName && + other.ejs == ejs && + other.domain == domain && + _deepEquality.equals(other.translationOverridesByLocale, translationOverridesByLocale) && + _deepEquality.equals(other.testData, testData); + @override int get hashCode => // ignore: unnecessary_parenthesis (emailTemplateId == null ? 0 : emailTemplateId!.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (ejs == null ? 0 : ejs!.hashCode) + - (domain == null ? 0 : domain!.hashCode) + - (translationOverridesByLocale.hashCode) + - (testData.hashCode); + (displayName == null ? 0 : displayName!.hashCode) + + (ejs == null ? 0 : ejs!.hashCode) + + (domain == null ? 0 : domain!.hashCode) + + (translationOverridesByLocale.hashCode) + + (testData.hashCode); + @override String toString() => 'UpdateEmailTemplateBody[emailTemplateId=$emailTemplateId, displayName=$displayName, ejs=$ejs, domain=$domain, translationOverridesByLocale=$translationOverridesByLocale, testData=$testData]'; @@ -127,7 +129,7 @@ class UpdateEmailTemplateBody { displayName: mapValueOfType(json, r'displayName'), ejs: mapValueOfType(json, r'ejs'), domain: mapValueOfType(json, r'domain'), - translationOverridesByLocale: mapCastOfType(json, r'translationOverridesByLocale') ?? const {}, + translationOverridesByLocale: (json[r'translationOverridesByLocale'] as Map?)?.map((k, v) => MapEntry(k as String, (v as Map).cast())) ?? const {}, testData: mapCastOfType(json, r'testData') ?? const {}, ); } diff --git a/client/lib/model/update_feed_post_params.dart b/client/lib/model/update_feed_post_params.dart index a850770..0b9c4b6 100644 --- a/client/lib/model/update_feed_post_params.dart +++ b/client/lib/model/update_feed_post_params.dart @@ -49,21 +49,23 @@ class UpdateFeedPostParams { @override bool operator ==(Object other) => identical(this, other) || other is UpdateFeedPostParams && other.title == title && - other.contentHTML == contentHTML && - _deepEquality.equals(other.media, media) && - _deepEquality.equals(other.links, links) && - _deepEquality.equals(other.tags, tags) && - _deepEquality.equals(other.meta, meta); + other.contentHTML == contentHTML && + _deepEquality.equals(other.media, media) && + _deepEquality.equals(other.links, links) && + _deepEquality.equals(other.tags, tags) && + _deepEquality.equals(other.meta, meta); + @override int get hashCode => // ignore: unnecessary_parenthesis (title == null ? 0 : title!.hashCode) + - (contentHTML == null ? 0 : contentHTML!.hashCode) + - (media.hashCode) + - (links.hashCode) + - (tags.hashCode) + - (meta.hashCode); + (contentHTML == null ? 0 : contentHTML!.hashCode) + + (media.hashCode) + + (links.hashCode) + + (tags.hashCode) + + (meta.hashCode); + @override String toString() => 'UpdateFeedPostParams[title=$title, contentHTML=$contentHTML, media=$media, links=$links, tags=$tags, meta=$meta]'; diff --git a/client/lib/model/update_hash_tag_body.dart b/client/lib/model/update_hash_tag_body.dart index 87283f2..6e7b5e3 100644 --- a/client/lib/model/update_hash_tag_body.dart +++ b/client/lib/model/update_hash_tag_body.dart @@ -45,15 +45,17 @@ class UpdateHashTagBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateHashTagBody && other.tenantId == tenantId && - other.url == url && - other.tag == tag; + other.url == url && + other.tag == tag; + @override int get hashCode => // ignore: unnecessary_parenthesis (tenantId == null ? 0 : tenantId!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (tag == null ? 0 : tag!.hashCode); + (url == null ? 0 : url!.hashCode) + + (tag == null ? 0 : tag!.hashCode); + @override String toString() => 'UpdateHashTagBody[tenantId=$tenantId, url=$url, tag=$tag]'; diff --git a/client/lib/model/update_hash_tag_response.dart b/client/lib/model/update_hash_tag_response.dart index f027e86..02d1cb1 100644 --- a/client/lib/model/update_hash_tag_response.dart +++ b/client/lib/model/update_hash_tag_response.dart @@ -24,13 +24,15 @@ class UpdateHashTagResponse { @override bool operator ==(Object other) => identical(this, other) || other is UpdateHashTagResponse && other.status == status && - other.hashTag == hashTag; + other.hashTag == hashTag; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (hashTag.hashCode); + (hashTag.hashCode); + @override String toString() => 'UpdateHashTagResponse[status=$status, hashTag=$hashTag]'; diff --git a/client/lib/model/update_moderator_body.dart b/client/lib/model/update_moderator_body.dart index a31720d..7372d5b 100644 --- a/client/lib/model/update_moderator_body.dart +++ b/client/lib/model/update_moderator_body.dart @@ -48,17 +48,19 @@ class UpdateModeratorBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateModeratorBody && other.name == name && - other.email == email && - other.userId == userId && - _deepEquality.equals(other.moderationGroupIds, moderationGroupIds); + other.email == email && + other.userId == userId && + _deepEquality.equals(other.moderationGroupIds, moderationGroupIds); + @override int get hashCode => // ignore: unnecessary_parenthesis (name == null ? 0 : name!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (moderationGroupIds.hashCode); + (email == null ? 0 : email!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (moderationGroupIds.hashCode); + @override String toString() => 'UpdateModeratorBody[name=$name, email=$email, userId=$userId, moderationGroupIds=$moderationGroupIds]'; diff --git a/client/lib/model/update_notification_body.dart b/client/lib/model/update_notification_body.dart index be5aa28..b4c030b 100644 --- a/client/lib/model/update_notification_body.dart +++ b/client/lib/model/update_notification_body.dart @@ -36,13 +36,15 @@ class UpdateNotificationBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateNotificationBody && other.viewed == viewed && - other.optedOut == optedOut; + other.optedOut == optedOut; + @override int get hashCode => // ignore: unnecessary_parenthesis (viewed == null ? 0 : viewed!.hashCode) + - (optedOut == null ? 0 : optedOut!.hashCode); + (optedOut == null ? 0 : optedOut!.hashCode); + @override String toString() => 'UpdateNotificationBody[viewed=$viewed, optedOut=$optedOut]'; diff --git a/client/lib/model/update_question_config_body.dart b/client/lib/model/update_question_config_body.dart index 0c88878..e5434ed 100644 --- a/client/lib/model/update_question_config_body.dart +++ b/client/lib/model/update_question_config_body.dart @@ -132,37 +132,39 @@ class UpdateQuestionConfigBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateQuestionConfigBody && other.name == name && - other.question == question && - other.helpText == helpText && - other.type == type && - other.numStars == numStars && - other.min == min && - other.max == max && - other.defaultValue == defaultValue && - other.labelNegative == labelNegative && - other.labelPositive == labelPositive && - _deepEquality.equals(other.customOptions, customOptions) && - _deepEquality.equals(other.subQuestionIds, subQuestionIds) && - other.alwaysShowSubQuestions == alwaysShowSubQuestions && - other.reportingOrder == reportingOrder; + other.question == question && + other.helpText == helpText && + other.type == type && + other.numStars == numStars && + other.min == min && + other.max == max && + other.defaultValue == defaultValue && + other.labelNegative == labelNegative && + other.labelPositive == labelPositive && + _deepEquality.equals(other.customOptions, customOptions) && + _deepEquality.equals(other.subQuestionIds, subQuestionIds) && + other.alwaysShowSubQuestions == alwaysShowSubQuestions && + other.reportingOrder == reportingOrder; + @override int get hashCode => // ignore: unnecessary_parenthesis (name == null ? 0 : name!.hashCode) + - (question == null ? 0 : question!.hashCode) + - (helpText == null ? 0 : helpText!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (numStars == null ? 0 : numStars!.hashCode) + - (min == null ? 0 : min!.hashCode) + - (max == null ? 0 : max!.hashCode) + - (defaultValue == null ? 0 : defaultValue!.hashCode) + - (labelNegative == null ? 0 : labelNegative!.hashCode) + - (labelPositive == null ? 0 : labelPositive!.hashCode) + - (customOptions.hashCode) + - (subQuestionIds.hashCode) + - (alwaysShowSubQuestions == null ? 0 : alwaysShowSubQuestions!.hashCode) + - (reportingOrder == null ? 0 : reportingOrder!.hashCode); + (question == null ? 0 : question!.hashCode) + + (helpText == null ? 0 : helpText!.hashCode) + + (type == null ? 0 : type!.hashCode) + + (numStars == null ? 0 : numStars!.hashCode) + + (min == null ? 0 : min!.hashCode) + + (max == null ? 0 : max!.hashCode) + + (defaultValue == null ? 0 : defaultValue!.hashCode) + + (labelNegative == null ? 0 : labelNegative!.hashCode) + + (labelPositive == null ? 0 : labelPositive!.hashCode) + + (customOptions.hashCode) + + (subQuestionIds.hashCode) + + (alwaysShowSubQuestions == null ? 0 : alwaysShowSubQuestions!.hashCode) + + (reportingOrder == null ? 0 : reportingOrder!.hashCode); + @override String toString() => 'UpdateQuestionConfigBody[name=$name, question=$question, helpText=$helpText, type=$type, numStars=$numStars, min=$min, max=$max, defaultValue=$defaultValue, labelNegative=$labelNegative, labelPositive=$labelPositive, customOptions=$customOptions, subQuestionIds=$subQuestionIds, alwaysShowSubQuestions=$alwaysShowSubQuestions, reportingOrder=$reportingOrder]'; diff --git a/client/lib/model/update_question_result_body.dart b/client/lib/model/update_question_result_body.dart index 2ef5b8c..d69390f 100644 --- a/client/lib/model/update_question_result_body.dart +++ b/client/lib/model/update_question_result_body.dart @@ -75,23 +75,25 @@ class UpdateQuestionResultBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateQuestionResultBody && other.urlId == urlId && - other.anonUserId == anonUserId && - other.userId == userId && - other.value == value && - other.commentId == commentId && - other.questionId == questionId && - _deepEquality.equals(other.meta, meta); + other.anonUserId == anonUserId && + other.userId == userId && + other.value == value && + other.commentId == commentId && + other.questionId == questionId && + _deepEquality.equals(other.meta, meta); + @override int get hashCode => // ignore: unnecessary_parenthesis (urlId == null ? 0 : urlId!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (value == null ? 0 : value!.hashCode) + - (commentId == null ? 0 : commentId!.hashCode) + - (questionId == null ? 0 : questionId!.hashCode) + - (meta == null ? 0 : meta!.hashCode); + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (value == null ? 0 : value!.hashCode) + + (commentId == null ? 0 : commentId!.hashCode) + + (questionId == null ? 0 : questionId!.hashCode) + + (meta == null ? 0 : meta!.hashCode); + @override String toString() => 'UpdateQuestionResultBody[urlId=$urlId, anonUserId=$anonUserId, userId=$userId, value=$value, commentId=$commentId, questionId=$questionId, meta=$meta]'; diff --git a/client/lib/model/update_subscription_api_response.dart b/client/lib/model/update_subscription_api_response.dart index e4bff33..182afbd 100644 --- a/client/lib/model/update_subscription_api_response.dart +++ b/client/lib/model/update_subscription_api_response.dart @@ -48,17 +48,19 @@ class UpdateSubscriptionAPIResponse { @override bool operator ==(Object other) => identical(this, other) || other is UpdateSubscriptionAPIResponse && other.reason == reason && - other.code == code && - other.subscription == subscription && - other.status == status; + other.code == code && + other.subscription == subscription && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode) + - (subscription == null ? 0 : subscription!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (subscription == null ? 0 : subscription!.hashCode) + + (status.hashCode); + @override String toString() => 'UpdateSubscriptionAPIResponse[reason=$reason, code=$code, subscription=$subscription, status=$status]'; diff --git a/client/lib/model/update_tenant_body.dart b/client/lib/model/update_tenant_body.dart index 5e4a30a..06de21d 100644 --- a/client/lib/model/update_tenant_body.dart +++ b/client/lib/model/update_tenant_body.dart @@ -223,57 +223,59 @@ class UpdateTenantBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateTenantBody && other.name == name && - other.email == email && - other.signUpDate == signUpDate && - other.packageId == packageId && - other.paymentFrequency == paymentFrequency && - other.billingInfoValid == billingInfoValid && - other.billingHandledExternally == billingHandledExternally && - other.createdBy == createdBy && - other.isSetup == isSetup && - _deepEquality.equals(other.domainConfiguration, domainConfiguration) && - other.billingInfo == billingInfo && - other.stripeCustomerId == stripeCustomerId && - other.stripeSubscriptionId == stripeSubscriptionId && - other.stripePlanId == stripePlanId && - other.enableProfanityFilter == enableProfanityFilter && - other.enableSpamFilter == enableSpamFilter && - other.removeUnverifiedComments == removeUnverifiedComments && - other.unverifiedCommentsTTLms == unverifiedCommentsTTLms && - other.commentsRequireApproval == commentsRequireApproval && - other.autoApproveCommentOnVerification == autoApproveCommentOnVerification && - other.sendProfaneToSpam == sendProfaneToSpam && - other.deAnonIpAddr == deAnonIpAddr && - _deepEquality.equals(other.meta, meta) && - other.managedByTenantId == managedByTenantId; + other.email == email && + other.signUpDate == signUpDate && + other.packageId == packageId && + other.paymentFrequency == paymentFrequency && + other.billingInfoValid == billingInfoValid && + other.billingHandledExternally == billingHandledExternally && + other.createdBy == createdBy && + other.isSetup == isSetup && + _deepEquality.equals(other.domainConfiguration, domainConfiguration) && + other.billingInfo == billingInfo && + other.stripeCustomerId == stripeCustomerId && + other.stripeSubscriptionId == stripeSubscriptionId && + other.stripePlanId == stripePlanId && + other.enableProfanityFilter == enableProfanityFilter && + other.enableSpamFilter == enableSpamFilter && + other.removeUnverifiedComments == removeUnverifiedComments && + other.unverifiedCommentsTTLms == unverifiedCommentsTTLms && + other.commentsRequireApproval == commentsRequireApproval && + other.autoApproveCommentOnVerification == autoApproveCommentOnVerification && + other.sendProfaneToSpam == sendProfaneToSpam && + other.deAnonIpAddr == deAnonIpAddr && + _deepEquality.equals(other.meta, meta) && + other.managedByTenantId == managedByTenantId; + @override int get hashCode => // ignore: unnecessary_parenthesis (name == null ? 0 : name!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (signUpDate == null ? 0 : signUpDate!.hashCode) + - (packageId == null ? 0 : packageId!.hashCode) + - (paymentFrequency == null ? 0 : paymentFrequency!.hashCode) + - (billingInfoValid == null ? 0 : billingInfoValid!.hashCode) + - (billingHandledExternally == null ? 0 : billingHandledExternally!.hashCode) + - (createdBy == null ? 0 : createdBy!.hashCode) + - (isSetup == null ? 0 : isSetup!.hashCode) + - (domainConfiguration.hashCode) + - (billingInfo == null ? 0 : billingInfo!.hashCode) + - (stripeCustomerId == null ? 0 : stripeCustomerId!.hashCode) + - (stripeSubscriptionId == null ? 0 : stripeSubscriptionId!.hashCode) + - (stripePlanId == null ? 0 : stripePlanId!.hashCode) + - (enableProfanityFilter == null ? 0 : enableProfanityFilter!.hashCode) + - (enableSpamFilter == null ? 0 : enableSpamFilter!.hashCode) + - (removeUnverifiedComments == null ? 0 : removeUnverifiedComments!.hashCode) + - (unverifiedCommentsTTLms == null ? 0 : unverifiedCommentsTTLms!.hashCode) + - (commentsRequireApproval == null ? 0 : commentsRequireApproval!.hashCode) + - (autoApproveCommentOnVerification == null ? 0 : autoApproveCommentOnVerification!.hashCode) + - (sendProfaneToSpam == null ? 0 : sendProfaneToSpam!.hashCode) + - (deAnonIpAddr == null ? 0 : deAnonIpAddr!.hashCode) + - (meta.hashCode) + - (managedByTenantId == null ? 0 : managedByTenantId!.hashCode); + (email == null ? 0 : email!.hashCode) + + (signUpDate == null ? 0 : signUpDate!.hashCode) + + (packageId == null ? 0 : packageId!.hashCode) + + (paymentFrequency == null ? 0 : paymentFrequency!.hashCode) + + (billingInfoValid == null ? 0 : billingInfoValid!.hashCode) + + (billingHandledExternally == null ? 0 : billingHandledExternally!.hashCode) + + (createdBy == null ? 0 : createdBy!.hashCode) + + (isSetup == null ? 0 : isSetup!.hashCode) + + (domainConfiguration.hashCode) + + (billingInfo == null ? 0 : billingInfo!.hashCode) + + (stripeCustomerId == null ? 0 : stripeCustomerId!.hashCode) + + (stripeSubscriptionId == null ? 0 : stripeSubscriptionId!.hashCode) + + (stripePlanId == null ? 0 : stripePlanId!.hashCode) + + (enableProfanityFilter == null ? 0 : enableProfanityFilter!.hashCode) + + (enableSpamFilter == null ? 0 : enableSpamFilter!.hashCode) + + (removeUnverifiedComments == null ? 0 : removeUnverifiedComments!.hashCode) + + (unverifiedCommentsTTLms == null ? 0 : unverifiedCommentsTTLms!.hashCode) + + (commentsRequireApproval == null ? 0 : commentsRequireApproval!.hashCode) + + (autoApproveCommentOnVerification == null ? 0 : autoApproveCommentOnVerification!.hashCode) + + (sendProfaneToSpam == null ? 0 : sendProfaneToSpam!.hashCode) + + (deAnonIpAddr == null ? 0 : deAnonIpAddr!.hashCode) + + (meta.hashCode) + + (managedByTenantId == null ? 0 : managedByTenantId!.hashCode); + @override String toString() => 'UpdateTenantBody[name=$name, email=$email, signUpDate=$signUpDate, packageId=$packageId, paymentFrequency=$paymentFrequency, billingInfoValid=$billingInfoValid, billingHandledExternally=$billingHandledExternally, createdBy=$createdBy, isSetup=$isSetup, domainConfiguration=$domainConfiguration, billingInfo=$billingInfo, stripeCustomerId=$stripeCustomerId, stripeSubscriptionId=$stripeSubscriptionId, stripePlanId=$stripePlanId, enableProfanityFilter=$enableProfanityFilter, enableSpamFilter=$enableSpamFilter, removeUnverifiedComments=$removeUnverifiedComments, unverifiedCommentsTTLms=$unverifiedCommentsTTLms, commentsRequireApproval=$commentsRequireApproval, autoApproveCommentOnVerification=$autoApproveCommentOnVerification, sendProfaneToSpam=$sendProfaneToSpam, deAnonIpAddr=$deAnonIpAddr, meta=$meta, managedByTenantId=$managedByTenantId]'; diff --git a/client/lib/model/update_tenant_package_body.dart b/client/lib/model/update_tenant_package_body.dart index 5f230d2..feb460b 100644 --- a/client/lib/model/update_tenant_package_body.dart +++ b/client/lib/model/update_tenant_package_body.dart @@ -300,73 +300,75 @@ class UpdateTenantPackageBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateTenantPackageBody && other.name == name && - other.monthlyCostUSD == monthlyCostUSD && - other.yearlyCostUSD == yearlyCostUSD && - other.maxMonthlyPageLoads == maxMonthlyPageLoads && - other.maxMonthlyAPICredits == maxMonthlyAPICredits && - other.maxMonthlyComments == maxMonthlyComments && - other.maxConcurrentUsers == maxConcurrentUsers && - other.maxTenantUsers == maxTenantUsers && - other.maxSSOUsers == maxSSOUsers && - other.maxModerators == maxModerators && - other.maxDomains == maxDomains && - other.maxCustomCollectionSize == maxCustomCollectionSize && - other.hasDebranding == hasDebranding && - other.hasWhiteLabeling == hasWhiteLabeling && - other.forWhoText == forWhoText && - _deepEquality.equals(other.featureTaglines, featureTaglines) && - other.hasFlexPricing == hasFlexPricing && - other.flexPageLoadCostCents == flexPageLoadCostCents && - other.flexPageLoadUnit == flexPageLoadUnit && - other.flexCommentCostCents == flexCommentCostCents && - other.flexCommentUnit == flexCommentUnit && - other.flexSSOUserCostCents == flexSSOUserCostCents && - other.flexSSOUserUnit == flexSSOUserUnit && - other.flexAPICreditCostCents == flexAPICreditCostCents && - other.flexAPICreditUnit == flexAPICreditUnit && - other.flexModeratorCostCents == flexModeratorCostCents && - other.flexModeratorUnit == flexModeratorUnit && - other.flexAdminCostCents == flexAdminCostCents && - other.flexAdminUnit == flexAdminUnit && - other.flexDomainCostCents == flexDomainCostCents && - other.flexDomainUnit == flexDomainUnit && - other.flexMinimumCostCents == flexMinimumCostCents; + other.monthlyCostUSD == monthlyCostUSD && + other.yearlyCostUSD == yearlyCostUSD && + other.maxMonthlyPageLoads == maxMonthlyPageLoads && + other.maxMonthlyAPICredits == maxMonthlyAPICredits && + other.maxMonthlyComments == maxMonthlyComments && + other.maxConcurrentUsers == maxConcurrentUsers && + other.maxTenantUsers == maxTenantUsers && + other.maxSSOUsers == maxSSOUsers && + other.maxModerators == maxModerators && + other.maxDomains == maxDomains && + other.maxCustomCollectionSize == maxCustomCollectionSize && + other.hasDebranding == hasDebranding && + other.hasWhiteLabeling == hasWhiteLabeling && + other.forWhoText == forWhoText && + _deepEquality.equals(other.featureTaglines, featureTaglines) && + other.hasFlexPricing == hasFlexPricing && + other.flexPageLoadCostCents == flexPageLoadCostCents && + other.flexPageLoadUnit == flexPageLoadUnit && + other.flexCommentCostCents == flexCommentCostCents && + other.flexCommentUnit == flexCommentUnit && + other.flexSSOUserCostCents == flexSSOUserCostCents && + other.flexSSOUserUnit == flexSSOUserUnit && + other.flexAPICreditCostCents == flexAPICreditCostCents && + other.flexAPICreditUnit == flexAPICreditUnit && + other.flexModeratorCostCents == flexModeratorCostCents && + other.flexModeratorUnit == flexModeratorUnit && + other.flexAdminCostCents == flexAdminCostCents && + other.flexAdminUnit == flexAdminUnit && + other.flexDomainCostCents == flexDomainCostCents && + other.flexDomainUnit == flexDomainUnit && + other.flexMinimumCostCents == flexMinimumCostCents; + @override int get hashCode => // ignore: unnecessary_parenthesis (name == null ? 0 : name!.hashCode) + - (monthlyCostUSD == null ? 0 : monthlyCostUSD!.hashCode) + - (yearlyCostUSD == null ? 0 : yearlyCostUSD!.hashCode) + - (maxMonthlyPageLoads == null ? 0 : maxMonthlyPageLoads!.hashCode) + - (maxMonthlyAPICredits == null ? 0 : maxMonthlyAPICredits!.hashCode) + - (maxMonthlyComments == null ? 0 : maxMonthlyComments!.hashCode) + - (maxConcurrentUsers == null ? 0 : maxConcurrentUsers!.hashCode) + - (maxTenantUsers == null ? 0 : maxTenantUsers!.hashCode) + - (maxSSOUsers == null ? 0 : maxSSOUsers!.hashCode) + - (maxModerators == null ? 0 : maxModerators!.hashCode) + - (maxDomains == null ? 0 : maxDomains!.hashCode) + - (maxCustomCollectionSize == null ? 0 : maxCustomCollectionSize!.hashCode) + - (hasDebranding == null ? 0 : hasDebranding!.hashCode) + - (hasWhiteLabeling == null ? 0 : hasWhiteLabeling!.hashCode) + - (forWhoText == null ? 0 : forWhoText!.hashCode) + - (featureTaglines.hashCode) + - (hasFlexPricing == null ? 0 : hasFlexPricing!.hashCode) + - (flexPageLoadCostCents == null ? 0 : flexPageLoadCostCents!.hashCode) + - (flexPageLoadUnit == null ? 0 : flexPageLoadUnit!.hashCode) + - (flexCommentCostCents == null ? 0 : flexCommentCostCents!.hashCode) + - (flexCommentUnit == null ? 0 : flexCommentUnit!.hashCode) + - (flexSSOUserCostCents == null ? 0 : flexSSOUserCostCents!.hashCode) + - (flexSSOUserUnit == null ? 0 : flexSSOUserUnit!.hashCode) + - (flexAPICreditCostCents == null ? 0 : flexAPICreditCostCents!.hashCode) + - (flexAPICreditUnit == null ? 0 : flexAPICreditUnit!.hashCode) + - (flexModeratorCostCents == null ? 0 : flexModeratorCostCents!.hashCode) + - (flexModeratorUnit == null ? 0 : flexModeratorUnit!.hashCode) + - (flexAdminCostCents == null ? 0 : flexAdminCostCents!.hashCode) + - (flexAdminUnit == null ? 0 : flexAdminUnit!.hashCode) + - (flexDomainCostCents == null ? 0 : flexDomainCostCents!.hashCode) + - (flexDomainUnit == null ? 0 : flexDomainUnit!.hashCode) + - (flexMinimumCostCents == null ? 0 : flexMinimumCostCents!.hashCode); + (monthlyCostUSD == null ? 0 : monthlyCostUSD!.hashCode) + + (yearlyCostUSD == null ? 0 : yearlyCostUSD!.hashCode) + + (maxMonthlyPageLoads == null ? 0 : maxMonthlyPageLoads!.hashCode) + + (maxMonthlyAPICredits == null ? 0 : maxMonthlyAPICredits!.hashCode) + + (maxMonthlyComments == null ? 0 : maxMonthlyComments!.hashCode) + + (maxConcurrentUsers == null ? 0 : maxConcurrentUsers!.hashCode) + + (maxTenantUsers == null ? 0 : maxTenantUsers!.hashCode) + + (maxSSOUsers == null ? 0 : maxSSOUsers!.hashCode) + + (maxModerators == null ? 0 : maxModerators!.hashCode) + + (maxDomains == null ? 0 : maxDomains!.hashCode) + + (maxCustomCollectionSize == null ? 0 : maxCustomCollectionSize!.hashCode) + + (hasDebranding == null ? 0 : hasDebranding!.hashCode) + + (hasWhiteLabeling == null ? 0 : hasWhiteLabeling!.hashCode) + + (forWhoText == null ? 0 : forWhoText!.hashCode) + + (featureTaglines.hashCode) + + (hasFlexPricing == null ? 0 : hasFlexPricing!.hashCode) + + (flexPageLoadCostCents == null ? 0 : flexPageLoadCostCents!.hashCode) + + (flexPageLoadUnit == null ? 0 : flexPageLoadUnit!.hashCode) + + (flexCommentCostCents == null ? 0 : flexCommentCostCents!.hashCode) + + (flexCommentUnit == null ? 0 : flexCommentUnit!.hashCode) + + (flexSSOUserCostCents == null ? 0 : flexSSOUserCostCents!.hashCode) + + (flexSSOUserUnit == null ? 0 : flexSSOUserUnit!.hashCode) + + (flexAPICreditCostCents == null ? 0 : flexAPICreditCostCents!.hashCode) + + (flexAPICreditUnit == null ? 0 : flexAPICreditUnit!.hashCode) + + (flexModeratorCostCents == null ? 0 : flexModeratorCostCents!.hashCode) + + (flexModeratorUnit == null ? 0 : flexModeratorUnit!.hashCode) + + (flexAdminCostCents == null ? 0 : flexAdminCostCents!.hashCode) + + (flexAdminUnit == null ? 0 : flexAdminUnit!.hashCode) + + (flexDomainCostCents == null ? 0 : flexDomainCostCents!.hashCode) + + (flexDomainUnit == null ? 0 : flexDomainUnit!.hashCode) + + (flexMinimumCostCents == null ? 0 : flexMinimumCostCents!.hashCode); + @override String toString() => 'UpdateTenantPackageBody[name=$name, monthlyCostUSD=$monthlyCostUSD, yearlyCostUSD=$yearlyCostUSD, maxMonthlyPageLoads=$maxMonthlyPageLoads, maxMonthlyAPICredits=$maxMonthlyAPICredits, maxMonthlyComments=$maxMonthlyComments, maxConcurrentUsers=$maxConcurrentUsers, maxTenantUsers=$maxTenantUsers, maxSSOUsers=$maxSSOUsers, maxModerators=$maxModerators, maxDomains=$maxDomains, maxCustomCollectionSize=$maxCustomCollectionSize, hasDebranding=$hasDebranding, hasWhiteLabeling=$hasWhiteLabeling, forWhoText=$forWhoText, featureTaglines=$featureTaglines, hasFlexPricing=$hasFlexPricing, flexPageLoadCostCents=$flexPageLoadCostCents, flexPageLoadUnit=$flexPageLoadUnit, flexCommentCostCents=$flexCommentCostCents, flexCommentUnit=$flexCommentUnit, flexSSOUserCostCents=$flexSSOUserCostCents, flexSSOUserUnit=$flexSSOUserUnit, flexAPICreditCostCents=$flexAPICreditCostCents, flexAPICreditUnit=$flexAPICreditUnit, flexModeratorCostCents=$flexModeratorCostCents, flexModeratorUnit=$flexModeratorUnit, flexAdminCostCents=$flexAdminCostCents, flexAdminUnit=$flexAdminUnit, flexDomainCostCents=$flexDomainCostCents, flexDomainUnit=$flexDomainUnit, flexMinimumCostCents=$flexMinimumCostCents]'; diff --git a/client/lib/model/update_tenant_user_body.dart b/client/lib/model/update_tenant_user_body.dart index 5ff865f..ad44f85 100644 --- a/client/lib/model/update_tenant_user_body.dart +++ b/client/lib/model/update_tenant_user_body.dart @@ -228,57 +228,59 @@ class UpdateTenantUserBody { @override bool operator ==(Object other) => identical(this, other) || other is UpdateTenantUserBody && other.username == username && - other.displayName == displayName && - other.websiteUrl == websiteUrl && - other.email == email && - other.signUpDate == signUpDate && - other.verified == verified && - other.loginCount == loginCount && - other.optedInNotifications == optedInNotifications && - other.optedInTenantNotifications == optedInTenantNotifications && - other.hideAccountCode == hideAccountCode && - other.avatarSrc == avatarSrc && - other.isHelpRequestAdmin == isHelpRequestAdmin && - other.isAccountOwner == isAccountOwner && - other.isAdminAdmin == isAdminAdmin && - other.isBillingAdmin == isBillingAdmin && - other.isAnalyticsAdmin == isAnalyticsAdmin && - other.isCustomizationAdmin == isCustomizationAdmin && - other.isManageDataAdmin == isManageDataAdmin && - other.isCommentModeratorAdmin == isCommentModeratorAdmin && - other.isAPIAdmin == isAPIAdmin && - _deepEquality.equals(other.moderatorIds, moderatorIds) && - other.locale == locale && - other.digestEmailFrequency == digestEmailFrequency && - other.displayLabel == displayLabel; + other.displayName == displayName && + other.websiteUrl == websiteUrl && + other.email == email && + other.signUpDate == signUpDate && + other.verified == verified && + other.loginCount == loginCount && + other.optedInNotifications == optedInNotifications && + other.optedInTenantNotifications == optedInTenantNotifications && + other.hideAccountCode == hideAccountCode && + other.avatarSrc == avatarSrc && + other.isHelpRequestAdmin == isHelpRequestAdmin && + other.isAccountOwner == isAccountOwner && + other.isAdminAdmin == isAdminAdmin && + other.isBillingAdmin == isBillingAdmin && + other.isAnalyticsAdmin == isAnalyticsAdmin && + other.isCustomizationAdmin == isCustomizationAdmin && + other.isManageDataAdmin == isManageDataAdmin && + other.isCommentModeratorAdmin == isCommentModeratorAdmin && + other.isAPIAdmin == isAPIAdmin && + _deepEquality.equals(other.moderatorIds, moderatorIds) && + other.locale == locale && + other.digestEmailFrequency == digestEmailFrequency && + other.displayLabel == displayLabel; + @override int get hashCode => // ignore: unnecessary_parenthesis (username == null ? 0 : username!.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (websiteUrl == null ? 0 : websiteUrl!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (signUpDate == null ? 0 : signUpDate!.hashCode) + - (verified == null ? 0 : verified!.hashCode) + - (loginCount == null ? 0 : loginCount!.hashCode) + - (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + - (optedInTenantNotifications == null ? 0 : optedInTenantNotifications!.hashCode) + - (hideAccountCode == null ? 0 : hideAccountCode!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (isHelpRequestAdmin == null ? 0 : isHelpRequestAdmin!.hashCode) + - (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + - (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + - (isBillingAdmin == null ? 0 : isBillingAdmin!.hashCode) + - (isAnalyticsAdmin == null ? 0 : isAnalyticsAdmin!.hashCode) + - (isCustomizationAdmin == null ? 0 : isCustomizationAdmin!.hashCode) + - (isManageDataAdmin == null ? 0 : isManageDataAdmin!.hashCode) + - (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + - (isAPIAdmin == null ? 0 : isAPIAdmin!.hashCode) + - (moderatorIds.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (digestEmailFrequency == null ? 0 : digestEmailFrequency!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode); + (displayName == null ? 0 : displayName!.hashCode) + + (websiteUrl == null ? 0 : websiteUrl!.hashCode) + + (email == null ? 0 : email!.hashCode) + + (signUpDate == null ? 0 : signUpDate!.hashCode) + + (verified == null ? 0 : verified!.hashCode) + + (loginCount == null ? 0 : loginCount!.hashCode) + + (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + + (optedInTenantNotifications == null ? 0 : optedInTenantNotifications!.hashCode) + + (hideAccountCode == null ? 0 : hideAccountCode!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (isHelpRequestAdmin == null ? 0 : isHelpRequestAdmin!.hashCode) + + (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + + (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + + (isBillingAdmin == null ? 0 : isBillingAdmin!.hashCode) + + (isAnalyticsAdmin == null ? 0 : isAnalyticsAdmin!.hashCode) + + (isCustomizationAdmin == null ? 0 : isCustomizationAdmin!.hashCode) + + (isManageDataAdmin == null ? 0 : isManageDataAdmin!.hashCode) + + (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + + (isAPIAdmin == null ? 0 : isAPIAdmin!.hashCode) + + (moderatorIds.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (digestEmailFrequency == null ? 0 : digestEmailFrequency!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode); + @override String toString() => 'UpdateTenantUserBody[username=$username, displayName=$displayName, websiteUrl=$websiteUrl, email=$email, signUpDate=$signUpDate, verified=$verified, loginCount=$loginCount, optedInNotifications=$optedInNotifications, optedInTenantNotifications=$optedInTenantNotifications, hideAccountCode=$hideAccountCode, avatarSrc=$avatarSrc, isHelpRequestAdmin=$isHelpRequestAdmin, isAccountOwner=$isAccountOwner, isAdminAdmin=$isAdminAdmin, isBillingAdmin=$isBillingAdmin, isAnalyticsAdmin=$isAnalyticsAdmin, isCustomizationAdmin=$isCustomizationAdmin, isManageDataAdmin=$isManageDataAdmin, isCommentModeratorAdmin=$isCommentModeratorAdmin, isAPIAdmin=$isAPIAdmin, moderatorIds=$moderatorIds, locale=$locale, digestEmailFrequency=$digestEmailFrequency, displayLabel=$displayLabel]'; diff --git a/client/lib/model/update_user_badge200_response.dart b/client/lib/model/update_user_badge200_response.dart deleted file mode 100644 index 24b458f..0000000 --- a/client/lib/model/update_user_badge200_response.dart +++ /dev/null @@ -1,212 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class UpdateUserBadge200Response { - /// Returns a new [UpdateUserBadge200Response] instance. - UpdateUserBadge200Response({ - required this.status, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is UpdateUserBadge200Response && - other.status == status && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'UpdateUserBadge200Response[status=$status, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [UpdateUserBadge200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UpdateUserBadge200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "UpdateUserBadge200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UpdateUserBadge200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "UpdateUserBadge200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "UpdateUserBadge200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "UpdateUserBadge200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "UpdateUserBadge200Response[code]" has a null value in JSON.'); - return true; - }()); - - return UpdateUserBadge200Response( - status: APIStatus.fromJson(json[r'status'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UpdateUserBadge200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UpdateUserBadge200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UpdateUserBadge200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UpdateUserBadge200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'reason', - 'code', - }; -} - diff --git a/client/lib/model/update_user_badge_params.dart b/client/lib/model/update_user_badge_params.dart index 96d51a8..53b5cc4 100644 --- a/client/lib/model/update_user_badge_params.dart +++ b/client/lib/model/update_user_badge_params.dart @@ -27,11 +27,13 @@ class UpdateUserBadgeParams { @override bool operator ==(Object other) => identical(this, other) || other is UpdateUserBadgeParams && other.displayedOnComments == displayedOnComments; + @override int get hashCode => // ignore: unnecessary_parenthesis (displayedOnComments == null ? 0 : displayedOnComments!.hashCode); + @override String toString() => 'UpdateUserBadgeParams[displayedOnComments=$displayedOnComments]'; diff --git a/client/lib/model/update_user_notification_comment_subscription_status_response.dart b/client/lib/model/update_user_notification_comment_subscription_status_response.dart new file mode 100644 index 0000000..c52cacc --- /dev/null +++ b/client/lib/model/update_user_notification_comment_subscription_status_response.dart @@ -0,0 +1,228 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class UpdateUserNotificationCommentSubscriptionStatusResponse { + /// Returns a new [UpdateUserNotificationCommentSubscriptionStatusResponse] instance. + UpdateUserNotificationCommentSubscriptionStatusResponse({ + required this.status, + this.matchedCount, + this.modifiedCount, + this.note, + }); + + APIStatus status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + int? matchedCount; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + int? modifiedCount; + + UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum? note; + + @override + bool operator ==(Object other) => identical(this, other) || other is UpdateUserNotificationCommentSubscriptionStatusResponse && + other.status == status && + other.matchedCount == matchedCount && + other.modifiedCount == modifiedCount && + other.note == note; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (matchedCount == null ? 0 : matchedCount!.hashCode) + + (modifiedCount == null ? 0 : modifiedCount!.hashCode) + + (note == null ? 0 : note!.hashCode); + + + @override + String toString() => 'UpdateUserNotificationCommentSubscriptionStatusResponse[status=$status, matchedCount=$matchedCount, modifiedCount=$modifiedCount, note=$note]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + if (this.matchedCount != null) { + json[r'matchedCount'] = this.matchedCount; + } else { + json[r'matchedCount'] = null; + } + if (this.modifiedCount != null) { + json[r'modifiedCount'] = this.modifiedCount; + } else { + json[r'modifiedCount'] = null; + } + if (this.note != null) { + json[r'note'] = this.note; + } else { + json[r'note'] = null; + } + return json; + } + + /// Returns a new [UpdateUserNotificationCommentSubscriptionStatusResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static UpdateUserNotificationCommentSubscriptionStatusResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "UpdateUserNotificationCommentSubscriptionStatusResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UpdateUserNotificationCommentSubscriptionStatusResponse[status]" has a null value in JSON.'); + return true; + }()); + + return UpdateUserNotificationCommentSubscriptionStatusResponse( + status: APIStatus.fromJson(json[r'status'])!, + matchedCount: mapValueOfType(json, r'matchedCount'), + modifiedCount: mapValueOfType(json, r'modifiedCount'), + note: UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum.fromJson(json[r'note']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = UpdateUserNotificationCommentSubscriptionStatusResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = UpdateUserNotificationCommentSubscriptionStatusResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of UpdateUserNotificationCommentSubscriptionStatusResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = UpdateUserNotificationCommentSubscriptionStatusResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + + +class UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum { + /// Instantiate a new enum with the provided [value]. + const UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const ignoredSinceImpersonated = UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum._(r'ignored-since-impersonated'); + static const demoNoop = UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum._(r'demo-noop'); + + /// List of all possible values in this [enum][UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum]. + static const values = [ + ignoredSinceImpersonated, + demoNoop, + ]; + + static UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum? fromJson(dynamic value) => UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum] to String, +/// and [decode] dynamic data back to [UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum]. +class UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnumTypeTransformer { + factory UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnumTypeTransformer() => _instance ??= const UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnumTypeTransformer._(); + + const UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnumTypeTransformer._(); + + String encode(UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'ignored-since-impersonated': return UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum.ignoredSinceImpersonated; + case r'demo-noop': return UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum.demoNoop; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnumTypeTransformer] instance. + static UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnumTypeTransformer? _instance; +} + + diff --git a/client/lib/model/update_user_notification_page_subscription_status_response.dart b/client/lib/model/update_user_notification_page_subscription_status_response.dart new file mode 100644 index 0000000..9d92910 --- /dev/null +++ b/client/lib/model/update_user_notification_page_subscription_status_response.dart @@ -0,0 +1,228 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class UpdateUserNotificationPageSubscriptionStatusResponse { + /// Returns a new [UpdateUserNotificationPageSubscriptionStatusResponse] instance. + UpdateUserNotificationPageSubscriptionStatusResponse({ + required this.status, + this.matchedCount, + this.modifiedCount, + this.note, + }); + + APIStatus status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + int? matchedCount; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + int? modifiedCount; + + UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum? note; + + @override + bool operator ==(Object other) => identical(this, other) || other is UpdateUserNotificationPageSubscriptionStatusResponse && + other.status == status && + other.matchedCount == matchedCount && + other.modifiedCount == modifiedCount && + other.note == note; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (matchedCount == null ? 0 : matchedCount!.hashCode) + + (modifiedCount == null ? 0 : modifiedCount!.hashCode) + + (note == null ? 0 : note!.hashCode); + + + @override + String toString() => 'UpdateUserNotificationPageSubscriptionStatusResponse[status=$status, matchedCount=$matchedCount, modifiedCount=$modifiedCount, note=$note]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + if (this.matchedCount != null) { + json[r'matchedCount'] = this.matchedCount; + } else { + json[r'matchedCount'] = null; + } + if (this.modifiedCount != null) { + json[r'modifiedCount'] = this.modifiedCount; + } else { + json[r'modifiedCount'] = null; + } + if (this.note != null) { + json[r'note'] = this.note; + } else { + json[r'note'] = null; + } + return json; + } + + /// Returns a new [UpdateUserNotificationPageSubscriptionStatusResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static UpdateUserNotificationPageSubscriptionStatusResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "UpdateUserNotificationPageSubscriptionStatusResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UpdateUserNotificationPageSubscriptionStatusResponse[status]" has a null value in JSON.'); + return true; + }()); + + return UpdateUserNotificationPageSubscriptionStatusResponse( + status: APIStatus.fromJson(json[r'status'])!, + matchedCount: mapValueOfType(json, r'matchedCount'), + modifiedCount: mapValueOfType(json, r'modifiedCount'), + note: UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum.fromJson(json[r'note']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = UpdateUserNotificationPageSubscriptionStatusResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = UpdateUserNotificationPageSubscriptionStatusResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of UpdateUserNotificationPageSubscriptionStatusResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = UpdateUserNotificationPageSubscriptionStatusResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + + +class UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum { + /// Instantiate a new enum with the provided [value]. + const UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const ignoredSinceImpersonated = UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum._(r'ignored-since-impersonated'); + static const demoNoop = UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum._(r'demo-noop'); + + /// List of all possible values in this [enum][UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum]. + static const values = [ + ignoredSinceImpersonated, + demoNoop, + ]; + + static UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum? fromJson(dynamic value) => UpdateUserNotificationPageSubscriptionStatusResponseNoteEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum] to String, +/// and [decode] dynamic data back to [UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum]. +class UpdateUserNotificationPageSubscriptionStatusResponseNoteEnumTypeTransformer { + factory UpdateUserNotificationPageSubscriptionStatusResponseNoteEnumTypeTransformer() => _instance ??= const UpdateUserNotificationPageSubscriptionStatusResponseNoteEnumTypeTransformer._(); + + const UpdateUserNotificationPageSubscriptionStatusResponseNoteEnumTypeTransformer._(); + + String encode(UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'ignored-since-impersonated': return UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum.ignoredSinceImpersonated; + case r'demo-noop': return UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum.demoNoop; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [UpdateUserNotificationPageSubscriptionStatusResponseNoteEnumTypeTransformer] instance. + static UpdateUserNotificationPageSubscriptionStatusResponseNoteEnumTypeTransformer? _instance; +} + + diff --git a/client/lib/model/update_user_notification_status200_response.dart b/client/lib/model/update_user_notification_status200_response.dart deleted file mode 100644 index 6632eab..0000000 --- a/client/lib/model/update_user_notification_status200_response.dart +++ /dev/null @@ -1,316 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class UpdateUserNotificationStatus200Response { - /// Returns a new [UpdateUserNotificationStatus200Response] instance. - UpdateUserNotificationStatus200Response({ - required this.status, - required this.matchedCount, - required this.modifiedCount, - required this.note, - required this.reason, - required this.code, - this.secondaryCode, - this.bannedUntil, - this.maxCharacterLength, - this.translatedError, - this.customConfig, - }); - - APIStatus status; - - int matchedCount; - - int modifiedCount; - - UpdateUserNotificationStatus200ResponseNoteEnum note; - - String reason; - - String code; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? secondaryCode; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? bannedUntil; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? maxCharacterLength; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - String? translatedError; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - CustomConfigParameters? customConfig; - - @override - bool operator ==(Object other) => identical(this, other) || other is UpdateUserNotificationStatus200Response && - other.status == status && - other.matchedCount == matchedCount && - other.modifiedCount == modifiedCount && - other.note == note && - other.reason == reason && - other.code == code && - other.secondaryCode == secondaryCode && - other.bannedUntil == bannedUntil && - other.maxCharacterLength == maxCharacterLength && - other.translatedError == translatedError && - other.customConfig == customConfig; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (matchedCount.hashCode) + - (modifiedCount.hashCode) + - (note.hashCode) + - (reason.hashCode) + - (code.hashCode) + - (secondaryCode == null ? 0 : secondaryCode!.hashCode) + - (bannedUntil == null ? 0 : bannedUntil!.hashCode) + - (maxCharacterLength == null ? 0 : maxCharacterLength!.hashCode) + - (translatedError == null ? 0 : translatedError!.hashCode) + - (customConfig == null ? 0 : customConfig!.hashCode); - - @override - String toString() => 'UpdateUserNotificationStatus200Response[status=$status, matchedCount=$matchedCount, modifiedCount=$modifiedCount, note=$note, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'matchedCount'] = this.matchedCount; - json[r'modifiedCount'] = this.modifiedCount; - json[r'note'] = this.note; - json[r'reason'] = this.reason; - json[r'code'] = this.code; - if (this.secondaryCode != null) { - json[r'secondaryCode'] = this.secondaryCode; - } else { - json[r'secondaryCode'] = null; - } - if (this.bannedUntil != null) { - json[r'bannedUntil'] = this.bannedUntil; - } else { - json[r'bannedUntil'] = null; - } - if (this.maxCharacterLength != null) { - json[r'maxCharacterLength'] = this.maxCharacterLength; - } else { - json[r'maxCharacterLength'] = null; - } - if (this.translatedError != null) { - json[r'translatedError'] = this.translatedError; - } else { - json[r'translatedError'] = null; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [UpdateUserNotificationStatus200Response] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UpdateUserNotificationStatus200Response? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - assert(json.containsKey(r'status'), 'Required key "UpdateUserNotificationStatus200Response[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UpdateUserNotificationStatus200Response[status]" has a null value in JSON.'); - assert(json.containsKey(r'matchedCount'), 'Required key "UpdateUserNotificationStatus200Response[matchedCount]" is missing from JSON.'); - assert(json[r'matchedCount'] != null, 'Required key "UpdateUserNotificationStatus200Response[matchedCount]" has a null value in JSON.'); - assert(json.containsKey(r'modifiedCount'), 'Required key "UpdateUserNotificationStatus200Response[modifiedCount]" is missing from JSON.'); - assert(json[r'modifiedCount'] != null, 'Required key "UpdateUserNotificationStatus200Response[modifiedCount]" has a null value in JSON.'); - assert(json.containsKey(r'note'), 'Required key "UpdateUserNotificationStatus200Response[note]" is missing from JSON.'); - assert(json[r'note'] != null, 'Required key "UpdateUserNotificationStatus200Response[note]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "UpdateUserNotificationStatus200Response[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "UpdateUserNotificationStatus200Response[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "UpdateUserNotificationStatus200Response[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "UpdateUserNotificationStatus200Response[code]" has a null value in JSON.'); - return true; - }()); - - return UpdateUserNotificationStatus200Response( - status: APIStatus.fromJson(json[r'status'])!, - matchedCount: mapValueOfType(json, r'matchedCount')!, - modifiedCount: mapValueOfType(json, r'modifiedCount')!, - note: UpdateUserNotificationStatus200ResponseNoteEnum.fromJson(json[r'note'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, - secondaryCode: mapValueOfType(json, r'secondaryCode'), - bannedUntil: mapValueOfType(json, r'bannedUntil'), - maxCharacterLength: mapValueOfType(json, r'maxCharacterLength'), - translatedError: mapValueOfType(json, r'translatedError'), - customConfig: CustomConfigParameters.fromJson(json[r'customConfig']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UpdateUserNotificationStatus200Response.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UpdateUserNotificationStatus200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UpdateUserNotificationStatus200Response-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UpdateUserNotificationStatus200Response.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'matchedCount', - 'modifiedCount', - 'note', - 'reason', - 'code', - }; -} - - -class UpdateUserNotificationStatus200ResponseNoteEnum { - /// Instantiate a new enum with the provided [value]. - const UpdateUserNotificationStatus200ResponseNoteEnum._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const ignoredSinceImpersonated = UpdateUserNotificationStatus200ResponseNoteEnum._(r'ignored-since-impersonated'); - static const demoNoop = UpdateUserNotificationStatus200ResponseNoteEnum._(r'demo-noop'); - - /// List of all possible values in this [enum][UpdateUserNotificationStatus200ResponseNoteEnum]. - static const values = [ - ignoredSinceImpersonated, - demoNoop, - ]; - - static UpdateUserNotificationStatus200ResponseNoteEnum? fromJson(dynamic value) => UpdateUserNotificationStatus200ResponseNoteEnumTypeTransformer().decode(value); - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UpdateUserNotificationStatus200ResponseNoteEnum.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [UpdateUserNotificationStatus200ResponseNoteEnum] to String, -/// and [decode] dynamic data back to [UpdateUserNotificationStatus200ResponseNoteEnum]. -class UpdateUserNotificationStatus200ResponseNoteEnumTypeTransformer { - factory UpdateUserNotificationStatus200ResponseNoteEnumTypeTransformer() => _instance ??= const UpdateUserNotificationStatus200ResponseNoteEnumTypeTransformer._(); - - const UpdateUserNotificationStatus200ResponseNoteEnumTypeTransformer._(); - - String encode(UpdateUserNotificationStatus200ResponseNoteEnum data) => data.value; - - /// Decodes a [dynamic value][data] to a UpdateUserNotificationStatus200ResponseNoteEnum. - /// - /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, - /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] - /// cannot be decoded successfully, then an [UnimplementedError] is thrown. - /// - /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, - /// and users are still using an old app with the old code. - UpdateUserNotificationStatus200ResponseNoteEnum? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'ignored-since-impersonated': return UpdateUserNotificationStatus200ResponseNoteEnum.ignoredSinceImpersonated; - case r'demo-noop': return UpdateUserNotificationStatus200ResponseNoteEnum.demoNoop; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [UpdateUserNotificationStatus200ResponseNoteEnumTypeTransformer] instance. - static UpdateUserNotificationStatus200ResponseNoteEnumTypeTransformer? _instance; -} - - diff --git a/client/lib/model/update_user_notification_status_response.dart b/client/lib/model/update_user_notification_status_response.dart new file mode 100644 index 0000000..ebc7e61 --- /dev/null +++ b/client/lib/model/update_user_notification_status_response.dart @@ -0,0 +1,228 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class UpdateUserNotificationStatusResponse { + /// Returns a new [UpdateUserNotificationStatusResponse] instance. + UpdateUserNotificationStatusResponse({ + required this.status, + this.matchedCount, + this.modifiedCount, + this.note, + }); + + APIStatus status; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + int? matchedCount; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + int? modifiedCount; + + UpdateUserNotificationStatusResponseNoteEnum? note; + + @override + bool operator ==(Object other) => identical(this, other) || other is UpdateUserNotificationStatusResponse && + other.status == status && + other.matchedCount == matchedCount && + other.modifiedCount == modifiedCount && + other.note == note; + + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (status.hashCode) + + (matchedCount == null ? 0 : matchedCount!.hashCode) + + (modifiedCount == null ? 0 : modifiedCount!.hashCode) + + (note == null ? 0 : note!.hashCode); + + + @override + String toString() => 'UpdateUserNotificationStatusResponse[status=$status, matchedCount=$matchedCount, modifiedCount=$modifiedCount, note=$note]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + if (this.matchedCount != null) { + json[r'matchedCount'] = this.matchedCount; + } else { + json[r'matchedCount'] = null; + } + if (this.modifiedCount != null) { + json[r'modifiedCount'] = this.modifiedCount; + } else { + json[r'modifiedCount'] = null; + } + if (this.note != null) { + json[r'note'] = this.note; + } else { + json[r'note'] = null; + } + return json; + } + + /// Returns a new [UpdateUserNotificationStatusResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static UpdateUserNotificationStatusResponse? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + assert(json.containsKey(r'status'), 'Required key "UpdateUserNotificationStatusResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UpdateUserNotificationStatusResponse[status]" has a null value in JSON.'); + return true; + }()); + + return UpdateUserNotificationStatusResponse( + status: APIStatus.fromJson(json[r'status'])!, + matchedCount: mapValueOfType(json, r'matchedCount'), + modifiedCount: mapValueOfType(json, r'modifiedCount'), + note: UpdateUserNotificationStatusResponseNoteEnum.fromJson(json[r'note']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = UpdateUserNotificationStatusResponse.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = UpdateUserNotificationStatusResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of UpdateUserNotificationStatusResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = UpdateUserNotificationStatusResponse.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'status', + }; +} + + +class UpdateUserNotificationStatusResponseNoteEnum { + /// Instantiate a new enum with the provided [value]. + const UpdateUserNotificationStatusResponseNoteEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const ignoredSinceImpersonated = UpdateUserNotificationStatusResponseNoteEnum._(r'ignored-since-impersonated'); + static const demoNoop = UpdateUserNotificationStatusResponseNoteEnum._(r'demo-noop'); + + /// List of all possible values in this [enum][UpdateUserNotificationStatusResponseNoteEnum]. + static const values = [ + ignoredSinceImpersonated, + demoNoop, + ]; + + static UpdateUserNotificationStatusResponseNoteEnum? fromJson(dynamic value) => UpdateUserNotificationStatusResponseNoteEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = UpdateUserNotificationStatusResponseNoteEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [UpdateUserNotificationStatusResponseNoteEnum] to String, +/// and [decode] dynamic data back to [UpdateUserNotificationStatusResponseNoteEnum]. +class UpdateUserNotificationStatusResponseNoteEnumTypeTransformer { + factory UpdateUserNotificationStatusResponseNoteEnumTypeTransformer() => _instance ??= const UpdateUserNotificationStatusResponseNoteEnumTypeTransformer._(); + + const UpdateUserNotificationStatusResponseNoteEnumTypeTransformer._(); + + String encode(UpdateUserNotificationStatusResponseNoteEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a UpdateUserNotificationStatusResponseNoteEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + UpdateUserNotificationStatusResponseNoteEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'ignored-since-impersonated': return UpdateUserNotificationStatusResponseNoteEnum.ignoredSinceImpersonated; + case r'demo-noop': return UpdateUserNotificationStatusResponseNoteEnum.demoNoop; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [UpdateUserNotificationStatusResponseNoteEnumTypeTransformer] instance. + static UpdateUserNotificationStatusResponseNoteEnumTypeTransformer? _instance; +} + + diff --git a/client/lib/model/upload_image_response.dart b/client/lib/model/upload_image_response.dart index 6365543..ae4b5ca 100644 --- a/client/lib/model/upload_image_response.dart +++ b/client/lib/model/upload_image_response.dart @@ -51,19 +51,21 @@ class UploadImageResponse { @override bool operator ==(Object other) => identical(this, other) || other is UploadImageResponse && other.status == status && - other.url == url && - _deepEquality.equals(other.media, media) && - other.reason == reason && - other.code == code; + other.url == url && + _deepEquality.equals(other.media, media) && + other.reason == reason && + other.code == code; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (url == null ? 0 : url!.hashCode) + - (media.hashCode) + - (reason == null ? 0 : reason!.hashCode) + - (code == null ? 0 : code!.hashCode); + (url == null ? 0 : url!.hashCode) + + (media.hashCode) + + (reason == null ? 0 : reason!.hashCode) + + (code == null ? 0 : code!.hashCode); + @override String toString() => 'UploadImageResponse[status=$status, url=$url, media=$media, reason=$reason, code=$code]'; diff --git a/client/lib/model/user.dart b/client/lib/model/user.dart index a30f03e..132d599 100644 --- a/client/lib/model/user.dart +++ b/client/lib/model/user.dart @@ -462,129 +462,131 @@ class User { @override bool operator ==(Object other) => identical(this, other) || other is User && other.id == id && - other.tenantId == tenantId && - other.username == username && - other.displayName == displayName && - other.websiteUrl == websiteUrl && - other.email == email && - other.pendingEmail == pendingEmail && - other.backupEmail == backupEmail && - other.pendingBackupEmail == pendingBackupEmail && - other.signUpDate == signUpDate && - other.createdFromUrlId == createdFromUrlId && - other.createdFromTenantId == createdFromTenantId && - other.createdFromIpHashed == createdFromIpHashed && - other.verified == verified && - other.loginId == loginId && - other.loginIdDate == loginIdDate && - other.loginCount == loginCount && - other.optedInNotifications == optedInNotifications && - other.optedInTenantNotifications == optedInTenantNotifications && - other.hideAccountCode == hideAccountCode && - other.avatarSrc == avatarSrc && - other.isFastCommentsHelpRequestAdmin == isFastCommentsHelpRequestAdmin && - other.isHelpRequestAdmin == isHelpRequestAdmin && - other.isAccountOwner == isAccountOwner && - other.isAdminAdmin == isAdminAdmin && - other.isBillingAdmin == isBillingAdmin && - other.isAnalyticsAdmin == isAnalyticsAdmin && - other.isCustomizationAdmin == isCustomizationAdmin && - other.isManageDataAdmin == isManageDataAdmin && - other.isCommentModeratorAdmin == isCommentModeratorAdmin && - other.isAPIAdmin == isAPIAdmin && - other.isSiteAdmin == isSiteAdmin && - _deepEquality.equals(other.moderatorIds, moderatorIds) && - other.isImpersonator == isImpersonator && - other.isCouponManager == isCouponManager && - other.locale == locale && - other.digestEmailFrequency == digestEmailFrequency && - other.notificationFrequency == notificationFrequency && - other.adminNotificationFrequency == adminNotificationFrequency && - other.agentApprovalNotificationFrequency == agentApprovalNotificationFrequency && - other.lastTenantNotificationSentDate == lastTenantNotificationSentDate && - other.lastReplyNotificationSentDate == lastReplyNotificationSentDate && - other.ignoredAddToMySiteMessages == ignoredAddToMySiteMessages && - other.lastLoginDate == lastLoginDate && - other.displayLabel == displayLabel && - other.isProfileActivityPrivate == isProfileActivityPrivate && - other.isProfileCommentsPrivate == isProfileCommentsPrivate && - other.isProfileDMDisabled == isProfileDMDisabled && - other.profileCommentApprovalMode == profileCommentApprovalMode && - other.karma == karma && - other.passwordHash == passwordHash && - other.averageTicketAckTimeMS == averageTicketAckTimeMS && - other.hasBlockedUsers == hasBlockedUsers && - other.bio == bio && - other.headerBackgroundSrc == headerBackgroundSrc && - other.countryCode == countryCode && - other.countryFlag == countryFlag && - _deepEquality.equals(other.socialLinks, socialLinks) && - other.hasTwoFactor == hasTwoFactor && - other.isEmailSuppressed == isEmailSuppressed; + other.tenantId == tenantId && + other.username == username && + other.displayName == displayName && + other.websiteUrl == websiteUrl && + other.email == email && + other.pendingEmail == pendingEmail && + other.backupEmail == backupEmail && + other.pendingBackupEmail == pendingBackupEmail && + other.signUpDate == signUpDate && + other.createdFromUrlId == createdFromUrlId && + other.createdFromTenantId == createdFromTenantId && + other.createdFromIpHashed == createdFromIpHashed && + other.verified == verified && + other.loginId == loginId && + other.loginIdDate == loginIdDate && + other.loginCount == loginCount && + other.optedInNotifications == optedInNotifications && + other.optedInTenantNotifications == optedInTenantNotifications && + other.hideAccountCode == hideAccountCode && + other.avatarSrc == avatarSrc && + other.isFastCommentsHelpRequestAdmin == isFastCommentsHelpRequestAdmin && + other.isHelpRequestAdmin == isHelpRequestAdmin && + other.isAccountOwner == isAccountOwner && + other.isAdminAdmin == isAdminAdmin && + other.isBillingAdmin == isBillingAdmin && + other.isAnalyticsAdmin == isAnalyticsAdmin && + other.isCustomizationAdmin == isCustomizationAdmin && + other.isManageDataAdmin == isManageDataAdmin && + other.isCommentModeratorAdmin == isCommentModeratorAdmin && + other.isAPIAdmin == isAPIAdmin && + other.isSiteAdmin == isSiteAdmin && + _deepEquality.equals(other.moderatorIds, moderatorIds) && + other.isImpersonator == isImpersonator && + other.isCouponManager == isCouponManager && + other.locale == locale && + other.digestEmailFrequency == digestEmailFrequency && + other.notificationFrequency == notificationFrequency && + other.adminNotificationFrequency == adminNotificationFrequency && + other.agentApprovalNotificationFrequency == agentApprovalNotificationFrequency && + other.lastTenantNotificationSentDate == lastTenantNotificationSentDate && + other.lastReplyNotificationSentDate == lastReplyNotificationSentDate && + other.ignoredAddToMySiteMessages == ignoredAddToMySiteMessages && + other.lastLoginDate == lastLoginDate && + other.displayLabel == displayLabel && + other.isProfileActivityPrivate == isProfileActivityPrivate && + other.isProfileCommentsPrivate == isProfileCommentsPrivate && + other.isProfileDMDisabled == isProfileDMDisabled && + other.profileCommentApprovalMode == profileCommentApprovalMode && + other.karma == karma && + other.passwordHash == passwordHash && + other.averageTicketAckTimeMS == averageTicketAckTimeMS && + other.hasBlockedUsers == hasBlockedUsers && + other.bio == bio && + other.headerBackgroundSrc == headerBackgroundSrc && + other.countryCode == countryCode && + other.countryFlag == countryFlag && + _deepEquality.equals(other.socialLinks, socialLinks) && + other.hasTwoFactor == hasTwoFactor && + other.isEmailSuppressed == isEmailSuppressed; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId == null ? 0 : tenantId!.hashCode) + - (username.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (websiteUrl == null ? 0 : websiteUrl!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (pendingEmail == null ? 0 : pendingEmail!.hashCode) + - (backupEmail == null ? 0 : backupEmail!.hashCode) + - (pendingBackupEmail == null ? 0 : pendingBackupEmail!.hashCode) + - (signUpDate.hashCode) + - (createdFromUrlId == null ? 0 : createdFromUrlId!.hashCode) + - (createdFromTenantId == null ? 0 : createdFromTenantId!.hashCode) + - (createdFromIpHashed.hashCode) + - (verified.hashCode) + - (loginId.hashCode) + - (loginIdDate.hashCode) + - (loginCount == null ? 0 : loginCount!.hashCode) + - (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + - (optedInTenantNotifications == null ? 0 : optedInTenantNotifications!.hashCode) + - (hideAccountCode == null ? 0 : hideAccountCode!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (isFastCommentsHelpRequestAdmin == null ? 0 : isFastCommentsHelpRequestAdmin!.hashCode) + - (isHelpRequestAdmin == null ? 0 : isHelpRequestAdmin!.hashCode) + - (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + - (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + - (isBillingAdmin == null ? 0 : isBillingAdmin!.hashCode) + - (isAnalyticsAdmin == null ? 0 : isAnalyticsAdmin!.hashCode) + - (isCustomizationAdmin == null ? 0 : isCustomizationAdmin!.hashCode) + - (isManageDataAdmin == null ? 0 : isManageDataAdmin!.hashCode) + - (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + - (isAPIAdmin == null ? 0 : isAPIAdmin!.hashCode) + - (isSiteAdmin == null ? 0 : isSiteAdmin!.hashCode) + - (moderatorIds.hashCode) + - (isImpersonator == null ? 0 : isImpersonator!.hashCode) + - (isCouponManager == null ? 0 : isCouponManager!.hashCode) + - (locale == null ? 0 : locale!.hashCode) + - (digestEmailFrequency == null ? 0 : digestEmailFrequency!.hashCode) + - (notificationFrequency == null ? 0 : notificationFrequency!.hashCode) + - (adminNotificationFrequency == null ? 0 : adminNotificationFrequency!.hashCode) + - (agentApprovalNotificationFrequency == null ? 0 : agentApprovalNotificationFrequency!.hashCode) + - (lastTenantNotificationSentDate == null ? 0 : lastTenantNotificationSentDate!.hashCode) + - (lastReplyNotificationSentDate == null ? 0 : lastReplyNotificationSentDate!.hashCode) + - (ignoredAddToMySiteMessages == null ? 0 : ignoredAddToMySiteMessages!.hashCode) + - (lastLoginDate == null ? 0 : lastLoginDate!.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (isProfileActivityPrivate == null ? 0 : isProfileActivityPrivate!.hashCode) + - (isProfileCommentsPrivate == null ? 0 : isProfileCommentsPrivate!.hashCode) + - (isProfileDMDisabled == null ? 0 : isProfileDMDisabled!.hashCode) + - (profileCommentApprovalMode == null ? 0 : profileCommentApprovalMode!.hashCode) + - (karma == null ? 0 : karma!.hashCode) + - (passwordHash == null ? 0 : passwordHash!.hashCode) + - (averageTicketAckTimeMS == null ? 0 : averageTicketAckTimeMS!.hashCode) + - (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + - (bio == null ? 0 : bio!.hashCode) + - (headerBackgroundSrc == null ? 0 : headerBackgroundSrc!.hashCode) + - (countryCode == null ? 0 : countryCode!.hashCode) + - (countryFlag == null ? 0 : countryFlag!.hashCode) + - (socialLinks.hashCode) + - (hasTwoFactor == null ? 0 : hasTwoFactor!.hashCode) + - (isEmailSuppressed == null ? 0 : isEmailSuppressed!.hashCode); + (tenantId == null ? 0 : tenantId!.hashCode) + + (username.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (websiteUrl == null ? 0 : websiteUrl!.hashCode) + + (email == null ? 0 : email!.hashCode) + + (pendingEmail == null ? 0 : pendingEmail!.hashCode) + + (backupEmail == null ? 0 : backupEmail!.hashCode) + + (pendingBackupEmail == null ? 0 : pendingBackupEmail!.hashCode) + + (signUpDate.hashCode) + + (createdFromUrlId == null ? 0 : createdFromUrlId!.hashCode) + + (createdFromTenantId == null ? 0 : createdFromTenantId!.hashCode) + + (createdFromIpHashed.hashCode) + + (verified.hashCode) + + (loginId.hashCode) + + (loginIdDate.hashCode) + + (loginCount == null ? 0 : loginCount!.hashCode) + + (optedInNotifications == null ? 0 : optedInNotifications!.hashCode) + + (optedInTenantNotifications == null ? 0 : optedInTenantNotifications!.hashCode) + + (hideAccountCode == null ? 0 : hideAccountCode!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (isFastCommentsHelpRequestAdmin == null ? 0 : isFastCommentsHelpRequestAdmin!.hashCode) + + (isHelpRequestAdmin == null ? 0 : isHelpRequestAdmin!.hashCode) + + (isAccountOwner == null ? 0 : isAccountOwner!.hashCode) + + (isAdminAdmin == null ? 0 : isAdminAdmin!.hashCode) + + (isBillingAdmin == null ? 0 : isBillingAdmin!.hashCode) + + (isAnalyticsAdmin == null ? 0 : isAnalyticsAdmin!.hashCode) + + (isCustomizationAdmin == null ? 0 : isCustomizationAdmin!.hashCode) + + (isManageDataAdmin == null ? 0 : isManageDataAdmin!.hashCode) + + (isCommentModeratorAdmin == null ? 0 : isCommentModeratorAdmin!.hashCode) + + (isAPIAdmin == null ? 0 : isAPIAdmin!.hashCode) + + (isSiteAdmin == null ? 0 : isSiteAdmin!.hashCode) + + (moderatorIds.hashCode) + + (isImpersonator == null ? 0 : isImpersonator!.hashCode) + + (isCouponManager == null ? 0 : isCouponManager!.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (digestEmailFrequency == null ? 0 : digestEmailFrequency!.hashCode) + + (notificationFrequency == null ? 0 : notificationFrequency!.hashCode) + + (adminNotificationFrequency == null ? 0 : adminNotificationFrequency!.hashCode) + + (agentApprovalNotificationFrequency == null ? 0 : agentApprovalNotificationFrequency!.hashCode) + + (lastTenantNotificationSentDate == null ? 0 : lastTenantNotificationSentDate!.hashCode) + + (lastReplyNotificationSentDate == null ? 0 : lastReplyNotificationSentDate!.hashCode) + + (ignoredAddToMySiteMessages == null ? 0 : ignoredAddToMySiteMessages!.hashCode) + + (lastLoginDate == null ? 0 : lastLoginDate!.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (isProfileActivityPrivate == null ? 0 : isProfileActivityPrivate!.hashCode) + + (isProfileCommentsPrivate == null ? 0 : isProfileCommentsPrivate!.hashCode) + + (isProfileDMDisabled == null ? 0 : isProfileDMDisabled!.hashCode) + + (profileCommentApprovalMode == null ? 0 : profileCommentApprovalMode!.hashCode) + + (karma == null ? 0 : karma!.hashCode) + + (passwordHash == null ? 0 : passwordHash!.hashCode) + + (averageTicketAckTimeMS == null ? 0 : averageTicketAckTimeMS!.hashCode) + + (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + + (bio == null ? 0 : bio!.hashCode) + + (headerBackgroundSrc == null ? 0 : headerBackgroundSrc!.hashCode) + + (countryCode == null ? 0 : countryCode!.hashCode) + + (countryFlag == null ? 0 : countryFlag!.hashCode) + + (socialLinks.hashCode) + + (hasTwoFactor == null ? 0 : hasTwoFactor!.hashCode) + + (isEmailSuppressed == null ? 0 : isEmailSuppressed!.hashCode); + @override String toString() => 'User[id=$id, tenantId=$tenantId, username=$username, displayName=$displayName, websiteUrl=$websiteUrl, email=$email, pendingEmail=$pendingEmail, backupEmail=$backupEmail, pendingBackupEmail=$pendingBackupEmail, signUpDate=$signUpDate, createdFromUrlId=$createdFromUrlId, createdFromTenantId=$createdFromTenantId, createdFromIpHashed=$createdFromIpHashed, verified=$verified, loginId=$loginId, loginIdDate=$loginIdDate, loginCount=$loginCount, optedInNotifications=$optedInNotifications, optedInTenantNotifications=$optedInTenantNotifications, hideAccountCode=$hideAccountCode, avatarSrc=$avatarSrc, isFastCommentsHelpRequestAdmin=$isFastCommentsHelpRequestAdmin, isHelpRequestAdmin=$isHelpRequestAdmin, isAccountOwner=$isAccountOwner, isAdminAdmin=$isAdminAdmin, isBillingAdmin=$isBillingAdmin, isAnalyticsAdmin=$isAnalyticsAdmin, isCustomizationAdmin=$isCustomizationAdmin, isManageDataAdmin=$isManageDataAdmin, isCommentModeratorAdmin=$isCommentModeratorAdmin, isAPIAdmin=$isAPIAdmin, isSiteAdmin=$isSiteAdmin, moderatorIds=$moderatorIds, isImpersonator=$isImpersonator, isCouponManager=$isCouponManager, locale=$locale, digestEmailFrequency=$digestEmailFrequency, notificationFrequency=$notificationFrequency, adminNotificationFrequency=$adminNotificationFrequency, agentApprovalNotificationFrequency=$agentApprovalNotificationFrequency, lastTenantNotificationSentDate=$lastTenantNotificationSentDate, lastReplyNotificationSentDate=$lastReplyNotificationSentDate, ignoredAddToMySiteMessages=$ignoredAddToMySiteMessages, lastLoginDate=$lastLoginDate, displayLabel=$displayLabel, isProfileActivityPrivate=$isProfileActivityPrivate, isProfileCommentsPrivate=$isProfileCommentsPrivate, isProfileDMDisabled=$isProfileDMDisabled, profileCommentApprovalMode=$profileCommentApprovalMode, karma=$karma, passwordHash=$passwordHash, averageTicketAckTimeMS=$averageTicketAckTimeMS, hasBlockedUsers=$hasBlockedUsers, bio=$bio, headerBackgroundSrc=$headerBackgroundSrc, countryCode=$countryCode, countryFlag=$countryFlag, socialLinks=$socialLinks, hasTwoFactor=$hasTwoFactor, isEmailSuppressed=$isEmailSuppressed]'; diff --git a/client/lib/model/user_badge.dart b/client/lib/model/user_badge.dart index b21d7d4..633805e 100644 --- a/client/lib/model/user_badge.dart +++ b/client/lib/model/user_badge.dart @@ -81,47 +81,49 @@ class UserBadge { @override bool operator ==(Object other) => identical(this, other) || other is UserBadge && other.id == id && - other.userId == userId && - other.badgeId == badgeId && - other.fromTenantId == fromTenantId && - other.createdAt == createdAt && - other.type == type && - other.threshold == threshold && - other.description == description && - other.displayLabel == displayLabel && - other.displaySrc == displaySrc && - other.backgroundColor == backgroundColor && - other.borderColor == borderColor && - other.textColor == textColor && - other.cssClass == cssClass && - other.veteranUserThresholdMillis == veteranUserThresholdMillis && - other.displayedOnComments == displayedOnComments && - other.receivedAt == receivedAt && - other.order == order && - other.urlId == urlId; + other.userId == userId && + other.badgeId == badgeId && + other.fromTenantId == fromTenantId && + other.createdAt == createdAt && + other.type == type && + other.threshold == threshold && + other.description == description && + other.displayLabel == displayLabel && + other.displaySrc == displaySrc && + other.backgroundColor == backgroundColor && + other.borderColor == borderColor && + other.textColor == textColor && + other.cssClass == cssClass && + other.veteranUserThresholdMillis == veteranUserThresholdMillis && + other.displayedOnComments == displayedOnComments && + other.receivedAt == receivedAt && + other.order == order && + other.urlId == urlId; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (userId.hashCode) + - (badgeId.hashCode) + - (fromTenantId.hashCode) + - (createdAt.hashCode) + - (type.hashCode) + - (threshold.hashCode) + - (description.hashCode) + - (displayLabel.hashCode) + - (displaySrc == null ? 0 : displaySrc!.hashCode) + - (backgroundColor == null ? 0 : backgroundColor!.hashCode) + - (borderColor == null ? 0 : borderColor!.hashCode) + - (textColor == null ? 0 : textColor!.hashCode) + - (cssClass == null ? 0 : cssClass!.hashCode) + - (veteranUserThresholdMillis.hashCode) + - (displayedOnComments.hashCode) + - (receivedAt.hashCode) + - (order == null ? 0 : order!.hashCode) + - (urlId == null ? 0 : urlId!.hashCode); + (userId.hashCode) + + (badgeId.hashCode) + + (fromTenantId.hashCode) + + (createdAt.hashCode) + + (type.hashCode) + + (threshold.hashCode) + + (description.hashCode) + + (displayLabel.hashCode) + + (displaySrc == null ? 0 : displaySrc!.hashCode) + + (backgroundColor == null ? 0 : backgroundColor!.hashCode) + + (borderColor == null ? 0 : borderColor!.hashCode) + + (textColor == null ? 0 : textColor!.hashCode) + + (cssClass == null ? 0 : cssClass!.hashCode) + + (veteranUserThresholdMillis.hashCode) + + (displayedOnComments.hashCode) + + (receivedAt.hashCode) + + (order == null ? 0 : order!.hashCode) + + (urlId == null ? 0 : urlId!.hashCode); + @override String toString() => 'UserBadge[id=$id, userId=$userId, badgeId=$badgeId, fromTenantId=$fromTenantId, createdAt=$createdAt, type=$type, threshold=$threshold, description=$description, displayLabel=$displayLabel, displaySrc=$displaySrc, backgroundColor=$backgroundColor, borderColor=$borderColor, textColor=$textColor, cssClass=$cssClass, veteranUserThresholdMillis=$veteranUserThresholdMillis, displayedOnComments=$displayedOnComments, receivedAt=$receivedAt, order=$order, urlId=$urlId]'; diff --git a/client/lib/model/user_badge_progress.dart b/client/lib/model/user_badge_progress.dart index 0ee1b1f..181a8c0 100644 --- a/client/lib/model/user_badge_progress.dart +++ b/client/lib/model/user_badge_progress.dart @@ -64,27 +64,29 @@ class UserBadgeProgress { @override bool operator ==(Object other) => identical(this, other) || other is UserBadgeProgress && other.id == id && - other.tenantId == tenantId && - other.userId == userId && - other.firstCommentId == firstCommentId && - other.firstCommentDate == firstCommentDate && - other.autoTrustFactor == autoTrustFactor && - other.manualTrustFactor == manualTrustFactor && - _deepEquality.equals(other.progress, progress) && - other.tosAcceptedAt == tosAcceptedAt; + other.tenantId == tenantId && + other.userId == userId && + other.firstCommentId == firstCommentId && + other.firstCommentDate == firstCommentDate && + other.autoTrustFactor == autoTrustFactor && + other.manualTrustFactor == manualTrustFactor && + _deepEquality.equals(other.progress, progress) && + other.tosAcceptedAt == tosAcceptedAt; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (userId.hashCode) + - (firstCommentId.hashCode) + - (firstCommentDate.hashCode) + - (autoTrustFactor == null ? 0 : autoTrustFactor!.hashCode) + - (manualTrustFactor == null ? 0 : manualTrustFactor!.hashCode) + - (progress.hashCode) + - (tosAcceptedAt == null ? 0 : tosAcceptedAt!.hashCode); + (tenantId.hashCode) + + (userId.hashCode) + + (firstCommentId.hashCode) + + (firstCommentDate.hashCode) + + (autoTrustFactor == null ? 0 : autoTrustFactor!.hashCode) + + (manualTrustFactor == null ? 0 : manualTrustFactor!.hashCode) + + (progress.hashCode) + + (tosAcceptedAt == null ? 0 : tosAcceptedAt!.hashCode); + @override String toString() => 'UserBadgeProgress[id=$id, tenantId=$tenantId, userId=$userId, firstCommentId=$firstCommentId, firstCommentDate=$firstCommentDate, autoTrustFactor=$autoTrustFactor, manualTrustFactor=$manualTrustFactor, progress=$progress, tosAcceptedAt=$tosAcceptedAt]'; diff --git a/client/lib/model/user_notification.dart b/client/lib/model/user_notification.dart index 234aff8..a47ac4d 100644 --- a/client/lib/model/user_notification.dart +++ b/client/lib/model/user_notification.dart @@ -96,57 +96,59 @@ class UserNotification { @override bool operator ==(Object other) => identical(this, other) || other is UserNotification && other.id == id && - other.tenantId == tenantId && - other.userId == userId && - other.anonUserId == anonUserId && - other.urlId == urlId && - other.url == url && - other.pageTitle == pageTitle && - other.relatedObjectType == relatedObjectType && - other.relatedObjectId == relatedObjectId && - other.viewed == viewed && - other.isUnreadMessage == isUnreadMessage && - other.sent == sent && - other.createdAt == createdAt && - other.type == type && - other.fromCommentId == fromCommentId && - other.fromVoteId == fromVoteId && - other.fromUserName == fromUserName && - other.fromUserId == fromUserId && - other.fromUserAvatarSrc == fromUserAvatarSrc && - other.optedOut == optedOut && - other.count == count && - _deepEquality.equals(other.relatedIds, relatedIds) && - _deepEquality.equals(other.fromUserIds, fromUserIds) && - _deepEquality.equals(other.fromUserNames, fromUserNames); + other.tenantId == tenantId && + other.userId == userId && + other.anonUserId == anonUserId && + other.urlId == urlId && + other.url == url && + other.pageTitle == pageTitle && + other.relatedObjectType == relatedObjectType && + other.relatedObjectId == relatedObjectId && + other.viewed == viewed && + other.isUnreadMessage == isUnreadMessage && + other.sent == sent && + other.createdAt == createdAt && + other.type == type && + other.fromCommentId == fromCommentId && + other.fromVoteId == fromVoteId && + other.fromUserName == fromUserName && + other.fromUserId == fromUserId && + other.fromUserAvatarSrc == fromUserAvatarSrc && + other.optedOut == optedOut && + other.count == count && + _deepEquality.equals(other.relatedIds, relatedIds) && + _deepEquality.equals(other.fromUserIds, fromUserIds) && + _deepEquality.equals(other.fromUserNames, fromUserNames); + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (tenantId.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (anonUserId == null ? 0 : anonUserId!.hashCode) + - (urlId.hashCode) + - (url.hashCode) + - (pageTitle == null ? 0 : pageTitle!.hashCode) + - (relatedObjectType.hashCode) + - (relatedObjectId.hashCode) + - (viewed.hashCode) + - (isUnreadMessage.hashCode) + - (sent.hashCode) + - (createdAt.hashCode) + - (type.hashCode) + - (fromCommentId == null ? 0 : fromCommentId!.hashCode) + - (fromVoteId == null ? 0 : fromVoteId!.hashCode) + - (fromUserName == null ? 0 : fromUserName!.hashCode) + - (fromUserId == null ? 0 : fromUserId!.hashCode) + - (fromUserAvatarSrc == null ? 0 : fromUserAvatarSrc!.hashCode) + - (optedOut.hashCode) + - (count == null ? 0 : count!.hashCode) + - (relatedIds.hashCode) + - (fromUserIds.hashCode) + - (fromUserNames.hashCode); + (tenantId.hashCode) + + (userId == null ? 0 : userId!.hashCode) + + (anonUserId == null ? 0 : anonUserId!.hashCode) + + (urlId.hashCode) + + (url.hashCode) + + (pageTitle == null ? 0 : pageTitle!.hashCode) + + (relatedObjectType.hashCode) + + (relatedObjectId.hashCode) + + (viewed.hashCode) + + (isUnreadMessage.hashCode) + + (sent.hashCode) + + (createdAt.hashCode) + + (type.hashCode) + + (fromCommentId == null ? 0 : fromCommentId!.hashCode) + + (fromVoteId == null ? 0 : fromVoteId!.hashCode) + + (fromUserName == null ? 0 : fromUserName!.hashCode) + + (fromUserId == null ? 0 : fromUserId!.hashCode) + + (fromUserAvatarSrc == null ? 0 : fromUserAvatarSrc!.hashCode) + + (optedOut.hashCode) + + (count == null ? 0 : count!.hashCode) + + (relatedIds.hashCode) + + (fromUserIds.hashCode) + + (fromUserNames.hashCode); + @override String toString() => 'UserNotification[id=$id, tenantId=$tenantId, userId=$userId, anonUserId=$anonUserId, urlId=$urlId, url=$url, pageTitle=$pageTitle, relatedObjectType=$relatedObjectType, relatedObjectId=$relatedObjectId, viewed=$viewed, isUnreadMessage=$isUnreadMessage, sent=$sent, createdAt=$createdAt, type=$type, fromCommentId=$fromCommentId, fromVoteId=$fromVoteId, fromUserName=$fromUserName, fromUserId=$fromUserId, fromUserAvatarSrc=$fromUserAvatarSrc, optedOut=$optedOut, count=$count, relatedIds=$relatedIds, fromUserIds=$fromUserIds, fromUserNames=$fromUserNames]'; diff --git a/client/lib/model/user_notification_count.dart b/client/lib/model/user_notification_count.dart index f01baa1..33ab793 100644 --- a/client/lib/model/user_notification_count.dart +++ b/client/lib/model/user_notification_count.dart @@ -30,17 +30,19 @@ class UserNotificationCount { @override bool operator ==(Object other) => identical(this, other) || other is UserNotificationCount && other.id == id && - other.count == count && - other.createdAt == createdAt && - other.expireAt == expireAt; + other.count == count && + other.createdAt == createdAt && + other.expireAt == expireAt; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (count.hashCode) + - (createdAt.hashCode) + - (expireAt.hashCode); + (count.hashCode) + + (createdAt.hashCode) + + (expireAt.hashCode); + @override String toString() => 'UserNotificationCount[id=$id, count=$count, createdAt=$createdAt, expireAt=$expireAt]'; diff --git a/client/lib/model/user_notification_write_response.dart b/client/lib/model/user_notification_write_response.dart index 4f763f4..93cda69 100644 --- a/client/lib/model/user_notification_write_response.dart +++ b/client/lib/model/user_notification_write_response.dart @@ -27,15 +27,17 @@ class UserNotificationWriteResponse { @override bool operator ==(Object other) => identical(this, other) || other is UserNotificationWriteResponse && other.status == status && - other.matchedCount == matchedCount && - other.modifiedCount == modifiedCount; + other.matchedCount == matchedCount && + other.modifiedCount == modifiedCount; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (matchedCount.hashCode) + - (modifiedCount.hashCode); + (matchedCount.hashCode) + + (modifiedCount.hashCode); + @override String toString() => 'UserNotificationWriteResponse[status=$status, matchedCount=$matchedCount, modifiedCount=$modifiedCount]'; diff --git a/client/lib/model/user_presence_data.dart b/client/lib/model/user_presence_data.dart index 4abac66..4259a44 100644 --- a/client/lib/model/user_presence_data.dart +++ b/client/lib/model/user_presence_data.dart @@ -45,15 +45,17 @@ class UserPresenceData { @override bool operator ==(Object other) => identical(this, other) || other is UserPresenceData && other.urlIdWS == urlIdWS && - other.userIdWS == userIdWS && - other.tenantIdWS == tenantIdWS; + other.userIdWS == userIdWS && + other.tenantIdWS == tenantIdWS; + @override int get hashCode => // ignore: unnecessary_parenthesis (urlIdWS == null ? 0 : urlIdWS!.hashCode) + - (userIdWS == null ? 0 : userIdWS!.hashCode) + - (tenantIdWS == null ? 0 : tenantIdWS!.hashCode); + (userIdWS == null ? 0 : userIdWS!.hashCode) + + (tenantIdWS == null ? 0 : tenantIdWS!.hashCode); + @override String toString() => 'UserPresenceData[urlIdWS=$urlIdWS, userIdWS=$userIdWS, tenantIdWS=$tenantIdWS]'; diff --git a/client/lib/model/user_reacts_response.dart b/client/lib/model/user_reacts_response.dart index 4199081..4acf217 100644 --- a/client/lib/model/user_reacts_response.dart +++ b/client/lib/model/user_reacts_response.dart @@ -24,13 +24,15 @@ class UserReactsResponse { @override bool operator ==(Object other) => identical(this, other) || other is UserReactsResponse && other.status == status && - _deepEquality.equals(other.reacts, reacts); + _deepEquality.equals(other.reacts, reacts); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (reacts.hashCode); + (reacts.hashCode); + @override String toString() => 'UserReactsResponse[status=$status, reacts=$reacts]'; @@ -62,7 +64,7 @@ class UserReactsResponse { return UserReactsResponse( status: APIStatus.fromJson(json[r'status'])!, - reacts: mapCastOfType(json, r'reacts')!, + reacts: ((json[r'reacts'] as Map?)?.map((k, v) => MapEntry(k as String, (v as Map).cast())))!, ); } return null; diff --git a/client/lib/model/user_search_result.dart b/client/lib/model/user_search_result.dart index 5195d1e..d63555c 100644 --- a/client/lib/model/user_search_result.dart +++ b/client/lib/model/user_search_result.dart @@ -39,19 +39,21 @@ class UserSearchResult { @override bool operator ==(Object other) => identical(this, other) || other is UserSearchResult && other.id == id && - other.name == name && - other.displayName == displayName && - other.avatarSrc == avatarSrc && - other.type == type; + other.name == name && + other.displayName == displayName && + other.avatarSrc == avatarSrc && + other.type == type; + @override int get hashCode => // ignore: unnecessary_parenthesis (id.hashCode) + - (name.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (type.hashCode); + (name.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (type.hashCode); + @override String toString() => 'UserSearchResult[id=$id, name=$name, displayName=$displayName, avatarSrc=$avatarSrc, type=$type]'; diff --git a/client/lib/model/user_search_section_result.dart b/client/lib/model/user_search_section_result.dart index 8b458ae..a905c6f 100644 --- a/client/lib/model/user_search_section_result.dart +++ b/client/lib/model/user_search_section_result.dart @@ -24,13 +24,15 @@ class UserSearchSectionResult { @override bool operator ==(Object other) => identical(this, other) || other is UserSearchSectionResult && other.section == section && - _deepEquality.equals(other.users, users); + _deepEquality.equals(other.users, users); + @override int get hashCode => // ignore: unnecessary_parenthesis (section.hashCode) + - (users.hashCode); + (users.hashCode); + @override String toString() => 'UserSearchSectionResult[section=$section, users=$users]'; diff --git a/client/lib/model/user_session_info.dart b/client/lib/model/user_session_info.dart index e156ec0..3cd9c44 100644 --- a/client/lib/model/user_session_info.dart +++ b/client/lib/model/user_session_info.dart @@ -114,37 +114,39 @@ class UserSessionInfo { @override bool operator ==(Object other) => identical(this, other) || other is UserSessionInfo && other.id == id && - other.authorized == authorized && - other.avatarSrc == avatarSrc && - _deepEquality.equals(other.badges, badges) && - other.displayLabel == displayLabel && - other.displayName == displayName && - other.email == email && - _deepEquality.equals(other.groupIds, groupIds) && - other.hasBlockedUsers == hasBlockedUsers && - other.isAnonSession == isAnonSession && - other.needsTOS == needsTOS && - other.sessionId == sessionId && - other.username == username && - other.websiteUrl == websiteUrl; + other.authorized == authorized && + other.avatarSrc == avatarSrc && + _deepEquality.equals(other.badges, badges) && + other.displayLabel == displayLabel && + other.displayName == displayName && + other.email == email && + _deepEquality.equals(other.groupIds, groupIds) && + other.hasBlockedUsers == hasBlockedUsers && + other.isAnonSession == isAnonSession && + other.needsTOS == needsTOS && + other.sessionId == sessionId && + other.username == username && + other.websiteUrl == websiteUrl; + @override int get hashCode => // ignore: unnecessary_parenthesis (id == null ? 0 : id!.hashCode) + - (authorized == null ? 0 : authorized!.hashCode) + - (avatarSrc == null ? 0 : avatarSrc!.hashCode) + - (badges.hashCode) + - (displayLabel == null ? 0 : displayLabel!.hashCode) + - (displayName == null ? 0 : displayName!.hashCode) + - (email == null ? 0 : email!.hashCode) + - (groupIds.hashCode) + - (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + - (isAnonSession == null ? 0 : isAnonSession!.hashCode) + - (needsTOS == null ? 0 : needsTOS!.hashCode) + - (sessionId == null ? 0 : sessionId!.hashCode) + - (username == null ? 0 : username!.hashCode) + - (websiteUrl == null ? 0 : websiteUrl!.hashCode); + (authorized == null ? 0 : authorized!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (badges.hashCode) + + (displayLabel == null ? 0 : displayLabel!.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (email == null ? 0 : email!.hashCode) + + (groupIds.hashCode) + + (hasBlockedUsers == null ? 0 : hasBlockedUsers!.hashCode) + + (isAnonSession == null ? 0 : isAnonSession!.hashCode) + + (needsTOS == null ? 0 : needsTOS!.hashCode) + + (sessionId == null ? 0 : sessionId!.hashCode) + + (username == null ? 0 : username!.hashCode) + + (websiteUrl == null ? 0 : websiteUrl!.hashCode); + @override String toString() => 'UserSessionInfo[id=$id, authorized=$authorized, avatarSrc=$avatarSrc, badges=$badges, displayLabel=$displayLabel, displayName=$displayName, email=$email, groupIds=$groupIds, hasBlockedUsers=$hasBlockedUsers, isAnonSession=$isAnonSession, needsTOS=$needsTOS, sessionId=$sessionId, username=$username, websiteUrl=$websiteUrl]'; diff --git a/client/lib/model/users_list_location.dart b/client/lib/model/users_list_location.dart new file mode 100644 index 0000000..632403b --- /dev/null +++ b/client/lib/model/users_list_location.dart @@ -0,0 +1,91 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class UsersListLocation { + /// Instantiate a new enum with the provided [value]. + const UsersListLocation._(this.value); + + /// The underlying value of this enum member. + final int value; + + @override + String toString() => value.toString(); + + int toJson() => value; + + static const number0 = UsersListLocation._(0); + static const number1 = UsersListLocation._(1); + static const number2 = UsersListLocation._(2); + static const number3 = UsersListLocation._(3); + + /// List of all possible values in this [enum][UsersListLocation]. + static const values = [ + number0, + number1, + number2, + number3, + ]; + + static UsersListLocation? fromJson(dynamic value) => UsersListLocationTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = UsersListLocation.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [UsersListLocation] to int, +/// and [decode] dynamic data back to [UsersListLocation]. +class UsersListLocationTypeTransformer { + factory UsersListLocationTypeTransformer() => _instance ??= const UsersListLocationTypeTransformer._(); + + const UsersListLocationTypeTransformer._(); + + int encode(UsersListLocation data) => data.value; + + /// Decodes a [dynamic value][data] to a UsersListLocation. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + UsersListLocation? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case 0: return UsersListLocation.number0; + case 1: return UsersListLocation.number1; + case 2: return UsersListLocation.number2; + case 3: return UsersListLocation.number3; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [UsersListLocationTypeTransformer] instance. + static UsersListLocationTypeTransformer? _instance; +} + diff --git a/client/lib/model/vote_body_params.dart b/client/lib/model/vote_body_params.dart index 0018fe0..8af4306 100644 --- a/client/lib/model/vote_body_params.dart +++ b/client/lib/model/vote_body_params.dart @@ -30,17 +30,19 @@ class VoteBodyParams { @override bool operator ==(Object other) => identical(this, other) || other is VoteBodyParams && other.commenterEmail == commenterEmail && - other.commenterName == commenterName && - other.voteDir == voteDir && - other.url == url; + other.commenterName == commenterName && + other.voteDir == voteDir && + other.url == url; + @override int get hashCode => // ignore: unnecessary_parenthesis (commenterEmail == null ? 0 : commenterEmail!.hashCode) + - (commenterName == null ? 0 : commenterName!.hashCode) + - (voteDir.hashCode) + - (url == null ? 0 : url!.hashCode); + (commenterName == null ? 0 : commenterName!.hashCode) + + (voteDir.hashCode) + + (url == null ? 0 : url!.hashCode); + @override String toString() => 'VoteBodyParams[commenterEmail=$commenterEmail, commenterName=$commenterName, voteDir=$voteDir, url=$url]'; diff --git a/client/lib/model/vote_delete_response.dart b/client/lib/model/vote_delete_response.dart index d1af7b6..cec354c 100644 --- a/client/lib/model/vote_delete_response.dart +++ b/client/lib/model/vote_delete_response.dart @@ -30,13 +30,15 @@ class VoteDeleteResponse { @override bool operator ==(Object other) => identical(this, other) || other is VoteDeleteResponse && other.status == status && - other.wasPendingVote == wasPendingVote; + other.wasPendingVote == wasPendingVote; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (wasPendingVote == null ? 0 : wasPendingVote!.hashCode); + (wasPendingVote == null ? 0 : wasPendingVote!.hashCode); + @override String toString() => 'VoteDeleteResponse[status=$status, wasPendingVote=$wasPendingVote]'; diff --git a/client/lib/model/vote_response.dart b/client/lib/model/vote_response.dart index 05b7f7b..fb23df0 100644 --- a/client/lib/model/vote_response.dart +++ b/client/lib/model/vote_response.dart @@ -20,7 +20,7 @@ class VoteResponse { this.editKey, }); - StatusEnum status; + String status; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -57,19 +57,21 @@ class VoteResponse { @override bool operator ==(Object other) => identical(this, other) || other is VoteResponse && other.status == status && - other.voteId == voteId && - other.isVerified == isVerified && - other.user == user && - other.editKey == editKey; + other.voteId == voteId && + other.isVerified == isVerified && + other.user == user && + other.editKey == editKey; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (voteId == null ? 0 : voteId!.hashCode) + - (isVerified == null ? 0 : isVerified!.hashCode) + - (user == null ? 0 : user!.hashCode) + - (editKey == null ? 0 : editKey!.hashCode); + (voteId == null ? 0 : voteId!.hashCode) + + (isVerified == null ? 0 : isVerified!.hashCode) + + (user == null ? 0 : user!.hashCode) + + (editKey == null ? 0 : editKey!.hashCode); + @override String toString() => 'VoteResponse[status=$status, voteId=$voteId, isVerified=$isVerified, user=$user, editKey=$editKey]'; @@ -117,7 +119,7 @@ class VoteResponse { }()); return VoteResponse( - status: StatusEnum.fromJson(json[r'status'])!, + status: mapValueOfType(json, r'status')!, voteId: mapValueOfType(json, r'voteId'), isVerified: mapValueOfType(json, r'isVerified'), user: VoteResponseUser.fromJson(json[r'user']), diff --git a/client/lib/model/vote_response_user.dart b/client/lib/model/vote_response_user.dart index 335b1d6..bb3ab39 100644 --- a/client/lib/model/vote_response_user.dart +++ b/client/lib/model/vote_response_user.dart @@ -21,11 +21,13 @@ class VoteResponseUser { @override bool operator ==(Object other) => identical(this, other) || other is VoteResponseUser && other.sessionId == sessionId; + @override int get hashCode => // ignore: unnecessary_parenthesis (sessionId == null ? 0 : sessionId!.hashCode); + @override String toString() => 'VoteResponseUser[sessionId=$sessionId]'; diff --git a/client/pubspec.yaml b/client/pubspec.yaml index 025ce5f..d97e18b 100644 --- a/client/pubspec.yaml +++ b/client/pubspec.yaml @@ -15,4 +15,4 @@ dependencies: intl: any meta: '>=1.1.8 <2.0.0' dev_dependencies: - test: '>=1.21.6 <1.22.0' + test: '>=1.24.0 <2.0.0' diff --git a/client/test/add_domain_config200_response_any_of_test.dart b/client/test/add_domain_config_response_any_of_test.dart similarity index 78% rename from client/test/add_domain_config200_response_any_of_test.dart rename to client/test/add_domain_config_response_any_of_test.dart index 9fbe4af..bc9faba 100644 --- a/client/test/add_domain_config200_response_any_of_test.dart +++ b/client/test/add_domain_config_response_any_of_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for AddDomainConfig200ResponseAnyOf +// tests for AddDomainConfigResponseAnyOf void main() { - // final instance = AddDomainConfig200ResponseAnyOf(); + // final instance = AddDomainConfigResponseAnyOf(); - group('test AddDomainConfig200ResponseAnyOf', () { + group('test AddDomainConfigResponseAnyOf', () { // Object configuration test('to test the property `configuration`', () async { // TODO diff --git a/client/test/add_domain_config200_response_test.dart b/client/test/add_domain_config_response_test.dart similarity index 84% rename from client/test/add_domain_config200_response_test.dart rename to client/test/add_domain_config_response_test.dart index 43c7990..404b4cd 100644 --- a/client/test/add_domain_config200_response_test.dart +++ b/client/test/add_domain_config_response_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for AddDomainConfig200Response +// tests for AddDomainConfigResponse void main() { - // final instance = AddDomainConfig200Response(); + // final instance = AddDomainConfigResponse(); - group('test AddDomainConfig200Response', () { + group('test AddDomainConfigResponse', () { // String reason test('to test the property `reason`', () async { // TODO diff --git a/client/test/add_hash_tag200_response_test.dart b/client/test/add_hash_tag200_response_test.dart deleted file mode 100644 index 52495fe..0000000 --- a/client/test/add_hash_tag200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for AddHashTag200Response -void main() { - // final instance = AddHashTag200Response(); - - group('test AddHashTag200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // TenantHashTag hashTag - test('to test the property `hashTag`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/add_hash_tags_bulk200_response_test.dart b/client/test/add_hash_tags_bulk200_response_test.dart deleted file mode 100644 index c71305f..0000000 --- a/client/test/add_hash_tags_bulk200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for AddHashTagsBulk200Response -void main() { - // final instance = AddHashTagsBulk200Response(); - - group('test AddHashTagsBulk200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List results (default value: const []) - test('to test the property `results`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/adjust_comment_votes_params_test.dart b/client/test/adjust_comment_votes_params_test.dart new file mode 100644 index 0000000..fe31686 --- /dev/null +++ b/client/test/adjust_comment_votes_params_test.dart @@ -0,0 +1,27 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for AdjustCommentVotesParams +void main() { + // final instance = AdjustCommentVotesParams(); + + group('test AdjustCommentVotesParams', () { + // double adjustVoteAmount + test('to test the property `adjustVoteAmount`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/adjust_votes_response_test.dart b/client/test/adjust_votes_response_test.dart new file mode 100644 index 0000000..a48565d --- /dev/null +++ b/client/test/adjust_votes_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for AdjustVotesResponse +void main() { + // final instance = AdjustVotesResponse(); + + group('test AdjustVotesResponse', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // int newCommentVotes + test('to test the property `newCommentVotes`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/aggregate_question_results200_response_test.dart b/client/test/aggregate_question_results200_response_test.dart deleted file mode 100644 index acf77ef..0000000 --- a/client/test/aggregate_question_results200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for AggregateQuestionResults200Response -void main() { - // final instance = AggregateQuestionResults200Response(); - - group('test AggregateQuestionResults200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // QuestionResultAggregationOverall data - test('to test the property `data`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/aggregate_response_test.dart b/client/test/aggregate_response_test.dart new file mode 100644 index 0000000..d2e5cad --- /dev/null +++ b/client/test/aggregate_response_test.dart @@ -0,0 +1,52 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for AggregateResponse +void main() { + // final instance = AggregateResponse(); + + group('test AggregateResponse', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // List data (default value: const []) + test('to test the property `data`', () async { + // TODO + }); + + // AggregationResponseStats stats + test('to test the property `stats`', () async { + // TODO + }); + + // String reason + test('to test the property `reason`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + // List validResourceNames (default value: const []) + test('to test the property `validResourceNames`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/aggregation_api_error_test.dart b/client/test/aggregation_api_error_test.dart new file mode 100644 index 0000000..19f8994 --- /dev/null +++ b/client/test/aggregation_api_error_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for AggregationAPIError +void main() { + // final instance = AggregationAPIError(); + + group('test AggregationAPIError', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // String reason + test('to test the property `reason`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + // List validResourceNames (default value: const []) + test('to test the property `validResourceNames`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/api_ban_user_change_log_test.dart b/client/test/api_ban_user_change_log_test.dart new file mode 100644 index 0000000..dbf5615 --- /dev/null +++ b/client/test/api_ban_user_change_log_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for APIBanUserChangeLog +void main() { + // final instance = APIBanUserChangeLog(); + + group('test APIBanUserChangeLog', () { + // String createdBannedUserId + test('to test the property `createdBannedUserId`', () async { + // TODO + }); + + // String updatedBannedUserId + test('to test the property `updatedBannedUserId`', () async { + // TODO + }); + + // List deletedBannedUsers (default value: const []) + test('to test the property `deletedBannedUsers`', () async { + // TODO + }); + + // APIBanUserChangedValues changedValuesBefore + test('to test the property `changedValuesBefore`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/api_ban_user_changed_values_test.dart b/client/test/api_ban_user_changed_values_test.dart new file mode 100644 index 0000000..3d02da0 --- /dev/null +++ b/client/test/api_ban_user_changed_values_test.dart @@ -0,0 +1,87 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for APIBanUserChangedValues +void main() { + // final instance = APIBanUserChangedValues(); + + group('test APIBanUserChangedValues', () { + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String tenantId + test('to test the property `tenantId`', () async { + // TODO + }); + + // String userId + test('to test the property `userId`', () async { + // TODO + }); + + // String email + test('to test the property `email`', () async { + // TODO + }); + + // String username + test('to test the property `username`', () async { + // TODO + }); + + // String ipHash + test('to test the property `ipHash`', () async { + // TODO + }); + + // DateTime createdAt + test('to test the property `createdAt`', () async { + // TODO + }); + + // String bannedByUserId + test('to test the property `bannedByUserId`', () async { + // TODO + }); + + // String bannedCommentText + test('to test the property `bannedCommentText`', () async { + // TODO + }); + + // String banType + test('to test the property `banType`', () async { + // TODO + }); + + // DateTime bannedUntil + test('to test the property `bannedUntil`', () async { + // TODO + }); + + // bool hasEmailWildcard + test('to test the property `hasEmailWildcard`', () async { + // TODO + }); + + // String banReason + test('to test the property `banReason`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/api_banned_user_test.dart b/client/test/api_banned_user_test.dart new file mode 100644 index 0000000..874e8e0 --- /dev/null +++ b/client/test/api_banned_user_test.dart @@ -0,0 +1,87 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for APIBannedUser +void main() { + // final instance = APIBannedUser(); + + group('test APIBannedUser', () { + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String tenantId + test('to test the property `tenantId`', () async { + // TODO + }); + + // String userId + test('to test the property `userId`', () async { + // TODO + }); + + // String email + test('to test the property `email`', () async { + // TODO + }); + + // String username + test('to test the property `username`', () async { + // TODO + }); + + // String ipHash + test('to test the property `ipHash`', () async { + // TODO + }); + + // DateTime createdAt + test('to test the property `createdAt`', () async { + // TODO + }); + + // String bannedByUserId + test('to test the property `bannedByUserId`', () async { + // TODO + }); + + // String bannedCommentText + test('to test the property `bannedCommentText`', () async { + // TODO + }); + + // String banType + test('to test the property `banType`', () async { + // TODO + }); + + // DateTime bannedUntil + test('to test the property `bannedUntil`', () async { + // TODO + }); + + // bool hasEmailWildcard + test('to test the property `hasEmailWildcard`', () async { + // TODO + }); + + // String banReason + test('to test the property `banReason`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/api_banned_user_with_multi_match_info_test.dart b/client/test/api_banned_user_with_multi_match_info_test.dart new file mode 100644 index 0000000..75f3b44 --- /dev/null +++ b/client/test/api_banned_user_with_multi_match_info_test.dart @@ -0,0 +1,67 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for APIBannedUserWithMultiMatchInfo +void main() { + // final instance = APIBannedUserWithMultiMatchInfo(); + + group('test APIBannedUserWithMultiMatchInfo', () { + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String userId + test('to test the property `userId`', () async { + // TODO + }); + + // String banType + test('to test the property `banType`', () async { + // TODO + }); + + // String email + test('to test the property `email`', () async { + // TODO + }); + + // String ipHash + test('to test the property `ipHash`', () async { + // TODO + }); + + // DateTime bannedUntil + test('to test the property `bannedUntil`', () async { + // TODO + }); + + // bool hasEmailWildcard + test('to test the property `hasEmailWildcard`', () async { + // TODO + }); + + // String banReason + test('to test the property `banReason`', () async { + // TODO + }); + + // List matches (default value: const []) + test('to test the property `matches`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/api_comment_common_banned_user_test.dart b/client/test/api_comment_common_banned_user_test.dart new file mode 100644 index 0000000..c418b6c --- /dev/null +++ b/client/test/api_comment_common_banned_user_test.dart @@ -0,0 +1,62 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for APICommentCommonBannedUser +void main() { + // final instance = APICommentCommonBannedUser(); + + group('test APICommentCommonBannedUser', () { + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String userId + test('to test the property `userId`', () async { + // TODO + }); + + // String banType + test('to test the property `banType`', () async { + // TODO + }); + + // String email + test('to test the property `email`', () async { + // TODO + }); + + // String ipHash + test('to test the property `ipHash`', () async { + // TODO + }); + + // DateTime bannedUntil + test('to test the property `bannedUntil`', () async { + // TODO + }); + + // bool hasEmailWildcard + test('to test the property `hasEmailWildcard`', () async { + // TODO + }); + + // String banReason + test('to test the property `banReason`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/api_moderate_get_user_ban_preferences_response_test.dart b/client/test/api_moderate_get_user_ban_preferences_response_test.dart new file mode 100644 index 0000000..0a85e59 --- /dev/null +++ b/client/test/api_moderate_get_user_ban_preferences_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for APIModerateGetUserBanPreferencesResponse +void main() { + // final instance = APIModerateGetUserBanPreferencesResponse(); + + group('test APIModerateGetUserBanPreferencesResponse', () { + // APIModerateUserBanPreferences preferences + test('to test the property `preferences`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/api_moderate_user_ban_preferences_test.dart b/client/test/api_moderate_user_ban_preferences_test.dart new file mode 100644 index 0000000..b41f42e --- /dev/null +++ b/client/test/api_moderate_user_ban_preferences_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for APIModerateUserBanPreferences +void main() { + // final instance = APIModerateUserBanPreferences(); + + group('test APIModerateUserBanPreferences', () { + // bool shouldBanEmail + test('to test the property `shouldBanEmail`', () async { + // TODO + }); + + // bool shouldBanByIP + test('to test the property `shouldBanByIP`', () async { + // TODO + }); + + // String lastBanType + test('to test the property `lastBanType`', () async { + // TODO + }); + + // String lastBanDuration + test('to test the property `lastBanDuration`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/award_user_badge_response_test.dart b/client/test/award_user_badge_response_test.dart new file mode 100644 index 0000000..6427bfc --- /dev/null +++ b/client/test/award_user_badge_response_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for AwardUserBadgeResponse +void main() { + // final instance = AwardUserBadgeResponse(); + + group('test AwardUserBadgeResponse', () { + // List notes (default value: const []) + test('to test the property `notes`', () async { + // TODO + }); + + // List badges (default value: const []) + test('to test the property `badges`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/ban_user_from_comment_result_test.dart b/client/test/ban_user_from_comment_result_test.dart new file mode 100644 index 0000000..b6348d4 --- /dev/null +++ b/client/test/ban_user_from_comment_result_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for BanUserFromCommentResult +void main() { + // final instance = BanUserFromCommentResult(); + + group('test BanUserFromCommentResult', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // APIBanUserChangeLog changelog + test('to test the property `changelog`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + // String reason + test('to test the property `reason`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/ban_user_undo_params_test.dart b/client/test/ban_user_undo_params_test.dart new file mode 100644 index 0000000..884e0d5 --- /dev/null +++ b/client/test/ban_user_undo_params_test.dart @@ -0,0 +1,27 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for BanUserUndoParams +void main() { + // final instance = BanUserUndoParams(); + + group('test BanUserUndoParams', () { + // APIBanUserChangeLog changelog + test('to test the property `changelog`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/record_string_string_or_number_value_test.dart b/client/test/banned_user_match_matched_on_value_test.dart similarity index 70% rename from client/test/record_string_string_or_number_value_test.dart rename to client/test/banned_user_match_matched_on_value_test.dart index 0023815..4d97f6f 100644 --- a/client/test/record_string_string_or_number_value_test.dart +++ b/client/test/banned_user_match_matched_on_value_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for RecordStringStringOrNumberValue +// tests for BannedUserMatchMatchedOnValue void main() { - // final instance = RecordStringStringOrNumberValue(); + // final instance = BannedUserMatchMatchedOnValue(); - group('test RecordStringStringOrNumberValue', () { + group('test BannedUserMatchMatchedOnValue', () { }); diff --git a/client/test/banned_user_match_test.dart b/client/test/banned_user_match_test.dart new file mode 100644 index 0000000..2d93d0a --- /dev/null +++ b/client/test/banned_user_match_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for BannedUserMatch +void main() { + // final instance = BannedUserMatch(); + + group('test BannedUserMatch', () { + // BannedUserMatchType matchedOn + test('to test the property `matchedOn`', () async { + // TODO + }); + + // BannedUserMatchMatchedOnValue matchedOnValue + test('to test the property `matchedOnValue`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/banned_user_match_type_test.dart b/client/test/banned_user_match_type_test.dart new file mode 100644 index 0000000..b30799d --- /dev/null +++ b/client/test/banned_user_match_type_test.dart @@ -0,0 +1,21 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for BannedUserMatchType +void main() { + + group('test BannedUserMatchType', () { + + }); + +} diff --git a/client/test/block_from_comment_public200_response_test.dart b/client/test/block_from_comment_public200_response_test.dart deleted file mode 100644 index a48b7f7..0000000 --- a/client/test/block_from_comment_public200_response_test.dart +++ /dev/null @@ -1,68 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for BlockFromCommentPublic200Response -void main() { - // final instance = BlockFromCommentPublic200Response(); - - group('test BlockFromCommentPublic200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // Construct a type with a set of properties K of type T - // Map commentStatuses (default value: const {}) - test('to test the property `commentStatuses`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/build_moderation_filter_params_test.dart b/client/test/build_moderation_filter_params_test.dart new file mode 100644 index 0000000..2a5dc0e --- /dev/null +++ b/client/test/build_moderation_filter_params_test.dart @@ -0,0 +1,47 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for BuildModerationFilterParams +void main() { + // final instance = BuildModerationFilterParams(); + + group('test BuildModerationFilterParams', () { + // String userId + test('to test the property `userId`', () async { + // TODO + }); + + // String tenantId + test('to test the property `tenantId`', () async { + // TODO + }); + + // String filters + test('to test the property `filters`', () async { + // TODO + }); + + // String searchFilters + test('to test the property `searchFilters`', () async { + // TODO + }); + + // String textSearch + test('to test the property `textSearch`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/build_moderation_filter_response_test.dart b/client/test/build_moderation_filter_response_test.dart new file mode 100644 index 0000000..4ddb9ec --- /dev/null +++ b/client/test/build_moderation_filter_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for BuildModerationFilterResponse +void main() { + // final instance = BuildModerationFilterResponse(); + + group('test BuildModerationFilterResponse', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // ModerationFilter moderationFilter + test('to test the property `moderationFilter`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/bulk_aggregate_question_results200_response_test.dart b/client/test/bulk_aggregate_question_results200_response_test.dart deleted file mode 100644 index 216b1a4..0000000 --- a/client/test/bulk_aggregate_question_results200_response_test.dart +++ /dev/null @@ -1,68 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for BulkAggregateQuestionResults200Response -void main() { - // final instance = BulkAggregateQuestionResults200Response(); - - group('test BulkAggregateQuestionResults200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // Construct a type with a set of properties K of type T - // Map data (default value: const {}) - test('to test the property `data`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/patch_hash_tag200_response_test.dart b/client/test/bulk_create_hash_tags_response_results_inner_test.dart similarity index 88% rename from client/test/patch_hash_tag200_response_test.dart rename to client/test/bulk_create_hash_tags_response_results_inner_test.dart index 44bcaad..0c08d6e 100644 --- a/client/test/patch_hash_tag200_response_test.dart +++ b/client/test/bulk_create_hash_tags_response_results_inner_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for PatchHashTag200Response +// tests for BulkCreateHashTagsResponseResultsInner void main() { - // final instance = PatchHashTag200Response(); + // final instance = BulkCreateHashTagsResponseResultsInner(); - group('test PatchHashTag200Response', () { + group('test BulkCreateHashTagsResponseResultsInner', () { // APIStatus status test('to test the property `status`', () async { // TODO diff --git a/client/test/bulk_create_hash_tags_response_test.dart b/client/test/bulk_create_hash_tags_response_test.dart index 962698c..a8439e9 100644 --- a/client/test/bulk_create_hash_tags_response_test.dart +++ b/client/test/bulk_create_hash_tags_response_test.dart @@ -21,7 +21,7 @@ void main() { // TODO }); - // List results (default value: const []) + // List results (default value: const []) test('to test the property `results`', () async { // TODO }); diff --git a/client/test/bulk_pre_ban_params_test.dart b/client/test/bulk_pre_ban_params_test.dart new file mode 100644 index 0000000..f51a4e3 --- /dev/null +++ b/client/test/bulk_pre_ban_params_test.dart @@ -0,0 +1,27 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for BulkPreBanParams +void main() { + // final instance = BulkPreBanParams(); + + group('test BulkPreBanParams', () { + // List commentIds (default value: const []) + test('to test the property `commentIds`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/bulk_pre_ban_summary_test.dart b/client/test/bulk_pre_ban_summary_test.dart new file mode 100644 index 0000000..3944458 --- /dev/null +++ b/client/test/bulk_pre_ban_summary_test.dart @@ -0,0 +1,52 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for BulkPreBanSummary +void main() { + // final instance = BulkPreBanSummary(); + + group('test BulkPreBanSummary', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // int totalRelatedCommentCount + test('to test the property `totalRelatedCommentCount`', () async { + // TODO + }); + + // List emailDomains (default value: const []) + test('to test the property `emailDomains`', () async { + // TODO + }); + + // List emails (default value: const []) + test('to test the property `emails`', () async { + // TODO + }); + + // List userIds (default value: const []) + test('to test the property `userIds`', () async { + // TODO + }); + + // List ipHashes (default value: const []) + test('to test the property `ipHashes`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/change_ticket_state200_response_test.dart b/client/test/change_ticket_state200_response_test.dart deleted file mode 100644 index b3837b0..0000000 --- a/client/test/change_ticket_state200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for ChangeTicketState200Response -void main() { - // final instance = ChangeTicketState200Response(); - - group('test ChangeTicketState200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // APITicket ticket - test('to test the property `ticket`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/checked_comments_for_blocked200_response_test.dart b/client/test/checked_comments_for_blocked200_response_test.dart deleted file mode 100644 index bc8fdc0..0000000 --- a/client/test/checked_comments_for_blocked200_response_test.dart +++ /dev/null @@ -1,68 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CheckedCommentsForBlocked200Response -void main() { - // final instance = CheckedCommentsForBlocked200Response(); - - group('test CheckedCommentsForBlocked200Response', () { - // Construct a type with a set of properties K of type T - // Map commentStatuses (default value: const {}) - test('to test the property `commentStatuses`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/combine_comments_with_question_results200_response_test.dart b/client/test/combine_comments_with_question_results200_response_test.dart deleted file mode 100644 index 119bec9..0000000 --- a/client/test/combine_comments_with_question_results200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CombineCommentsWithQuestionResults200Response -void main() { - // final instance = CombineCommentsWithQuestionResults200Response(); - - group('test CombineCommentsWithQuestionResults200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // FindCommentsByRangeResponse data - test('to test the property `data`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/comment_data_test.dart b/client/test/comment_data_test.dart index 921dd82..fc74a62 100644 --- a/client/test/comment_data_test.dart +++ b/client/test/comment_data_test.dart @@ -132,7 +132,7 @@ void main() { }); // Construct a type with a set of properties K of type T - // Map questionValues (default value: const {}) + // Map questionValues (default value: const {}) test('to test the property `questionValues`', () async { // TODO }); diff --git a/client/test/comment_log_data_test.dart b/client/test/comment_log_data_test.dart index 85e71d4..798fa7a 100644 --- a/client/test/comment_log_data_test.dart +++ b/client/test/comment_log_data_test.dart @@ -91,6 +91,11 @@ void main() { // TODO }); + // String source_ + test('to test the property `source_`', () async { + // TODO + }); + // SpamRule rule test('to test the property `rule`', () async { // TODO diff --git a/client/test/comments_by_ids_params_test.dart b/client/test/comments_by_ids_params_test.dart new file mode 100644 index 0000000..ffa4bb8 --- /dev/null +++ b/client/test/comments_by_ids_params_test.dart @@ -0,0 +1,27 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for CommentsByIdsParams +void main() { + // final instance = CommentsByIdsParams(); + + group('test CommentsByIdsParams', () { + // List ids (default value: const []) + test('to test the property `ids`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/create_comment_params_test.dart b/client/test/create_comment_params_test.dart index d9c0eeb..732e3b4 100644 --- a/client/test/create_comment_params_test.dart +++ b/client/test/create_comment_params_test.dart @@ -132,7 +132,7 @@ void main() { }); // Construct a type with a set of properties K of type T - // Map questionValues (default value: const {}) + // Map questionValues (default value: const {}) test('to test the property `questionValues`', () async { // TODO }); diff --git a/client/test/create_comment_public200_response_test.dart b/client/test/create_comment_public200_response_test.dart deleted file mode 100644 index 74a0d35..0000000 --- a/client/test/create_comment_public200_response_test.dart +++ /dev/null @@ -1,83 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateCommentPublic200Response -void main() { - // final instance = CreateCommentPublic200Response(); - - group('test CreateCommentPublic200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // PublicComment comment - test('to test the property `comment`', () async { - // TODO - }); - - // UserSessionInfo user - test('to test the property `user`', () async { - // TODO - }); - - // Construct a type with a set of properties K of type T - // Map moduleData (default value: const {}) - test('to test the property `moduleData`', () async { - // TODO - }); - - // String userIdWS - test('to test the property `userIdWS`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_email_template200_response_test.dart b/client/test/create_email_template200_response_test.dart deleted file mode 100644 index 6d203ee..0000000 --- a/client/test/create_email_template200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateEmailTemplate200Response -void main() { - // final instance = CreateEmailTemplate200Response(); - - group('test CreateEmailTemplate200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // CustomEmailTemplate emailTemplate - test('to test the property `emailTemplate`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_feed_post200_response_test.dart b/client/test/create_feed_post200_response_test.dart deleted file mode 100644 index 4c94907..0000000 --- a/client/test/create_feed_post200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateFeedPost200Response -void main() { - // final instance = CreateFeedPost200Response(); - - group('test CreateFeedPost200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // FeedPost feedPost - test('to test the property `feedPost`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_feed_post_public200_response_test.dart b/client/test/create_feed_post_public200_response_test.dart deleted file mode 100644 index 683313e..0000000 --- a/client/test/create_feed_post_public200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateFeedPostPublic200Response -void main() { - // final instance = CreateFeedPostPublic200Response(); - - group('test CreateFeedPostPublic200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // FeedPost feedPost - test('to test the property `feedPost`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_moderator200_response_test.dart b/client/test/create_moderator200_response_test.dart deleted file mode 100644 index a6cb10a..0000000 --- a/client/test/create_moderator200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateModerator200Response -void main() { - // final instance = CreateModerator200Response(); - - group('test CreateModerator200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // Moderator moderator - test('to test the property `moderator`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_question_config200_response_test.dart b/client/test/create_question_config200_response_test.dart deleted file mode 100644 index 6fb9096..0000000 --- a/client/test/create_question_config200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateQuestionConfig200Response -void main() { - // final instance = CreateQuestionConfig200Response(); - - group('test CreateQuestionConfig200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // QuestionConfig questionConfig - test('to test the property `questionConfig`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_question_result200_response_test.dart b/client/test/create_question_result200_response_test.dart deleted file mode 100644 index 44fb639..0000000 --- a/client/test/create_question_result200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateQuestionResult200Response -void main() { - // final instance = CreateQuestionResult200Response(); - - group('test CreateQuestionResult200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // QuestionResult questionResult - test('to test the property `questionResult`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_tenant200_response_test.dart b/client/test/create_tenant200_response_test.dart deleted file mode 100644 index 9729256..0000000 --- a/client/test/create_tenant200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateTenant200Response -void main() { - // final instance = CreateTenant200Response(); - - group('test CreateTenant200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // APITenant tenant - test('to test the property `tenant`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_tenant_package200_response_test.dart b/client/test/create_tenant_package200_response_test.dart deleted file mode 100644 index e107560..0000000 --- a/client/test/create_tenant_package200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateTenantPackage200Response -void main() { - // final instance = CreateTenantPackage200Response(); - - group('test CreateTenantPackage200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // TenantPackage tenantPackage - test('to test the property `tenantPackage`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_tenant_user200_response_test.dart b/client/test/create_tenant_user200_response_test.dart deleted file mode 100644 index 727a7d2..0000000 --- a/client/test/create_tenant_user200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateTenantUser200Response -void main() { - // final instance = CreateTenantUser200Response(); - - group('test CreateTenantUser200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // User tenantUser - test('to test the property `tenantUser`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_ticket200_response_test.dart b/client/test/create_ticket200_response_test.dart deleted file mode 100644 index c590659..0000000 --- a/client/test/create_ticket200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateTicket200Response -void main() { - // final instance = CreateTicket200Response(); - - group('test CreateTicket200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // APITicket ticket - test('to test the property `ticket`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_user_badge200_response_test.dart b/client/test/create_user_badge200_response_test.dart deleted file mode 100644 index 3f51a04..0000000 --- a/client/test/create_user_badge200_response_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateUserBadge200Response -void main() { - // final instance = CreateUserBadge200Response(); - - group('test CreateUserBadge200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // UserBadge userBadge - test('to test the property `userBadge`', () async { - // TODO - }); - - // List notes (default value: const []) - test('to test the property `notes`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/create_v1_page_react_test.dart b/client/test/create_v1_page_react_test.dart new file mode 100644 index 0000000..5d2f2d0 --- /dev/null +++ b/client/test/create_v1_page_react_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for CreateV1PageReact +void main() { + // final instance = CreateV1PageReact(); + + group('test CreateV1PageReact', () { + // String code + test('to test the property `code`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/custom_config_parameters_test.dart b/client/test/custom_config_parameters_test.dart index 6fbbaef..71e1d43 100644 --- a/client/test/custom_config_parameters_test.dart +++ b/client/test/custom_config_parameters_test.dart @@ -276,6 +276,16 @@ void main() { // TODO }); + // bool allowEmbeds + test('to test the property `allowEmbeds`', () async { + // TODO + }); + + // List allowedEmbedDomains (default value: const []) + test('to test the property `allowedEmbedDomains`', () async { + // TODO + }); + // bool noStyles test('to test the property `noStyles`', () async { // TODO @@ -301,6 +311,11 @@ void main() { // TODO }); + // bool enableFChat + test('to test the property `enableFChat`', () async { + // TODO + }); + // bool enableResizeHandle test('to test the property `enableResizeHandle`', () async { // TODO @@ -402,6 +417,16 @@ void main() { // TODO }); + // UsersListLocation usersListLocation + test('to test the property `usersListLocation`', () async { + // TODO + }); + + // bool usersListIncludeOffline + test('to test the property `usersListIncludeOffline`', () async { + // TODO + }); + // String ticketBaseUrl test('to test the property `ticketBaseUrl`', () async { // TODO diff --git a/client/test/default_api_test.dart b/client/test/default_api_test.dart index 1c67485..9c735cb 100644 --- a/client/test/default_api_test.dart +++ b/client/test/default_api_test.dart @@ -17,17 +17,17 @@ void main() { // final instance = DefaultApi(); group('tests for DefaultApi', () { - //Future addDomainConfig(String tenantId, AddDomainConfigParams addDomainConfigParams) async + //Future addDomainConfig(String tenantId, AddDomainConfigParams addDomainConfigParams) async test('test addDomainConfig', () async { // TODO }); - //Future addHashTag({ String tenantId, CreateHashTagBody createHashTagBody }) async + //Future addHashTag({ String tenantId, CreateHashTagBody createHashTagBody }) async test('test addHashTag', () async { // TODO }); - //Future addHashTagsBulk({ String tenantId, BulkCreateHashTagsBody bulkCreateHashTagsBody }) async + //Future addHashTagsBulk({ String tenantId, BulkCreateHashTagsBody bulkCreateHashTagsBody }) async test('test addHashTagsBulk', () async { // TODO }); @@ -44,57 +44,57 @@ void main() { // Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. // - //Future aggregate(String tenantId, AggregationRequest aggregationRequest, { String parentTenantId, bool includeStats }) async + //Future aggregate(String tenantId, AggregationRequest aggregationRequest, { String parentTenantId, bool includeStats }) async test('test aggregate', () async { // TODO }); - //Future aggregateQuestionResults(String tenantId, { String questionId, List questionIds, String urlId, AggregateTimeBucket timeBucket, DateTime startDate, bool forceRecalculate }) async + //Future aggregateQuestionResults(String tenantId, { String questionId, List questionIds, String urlId, AggregateTimeBucket timeBucket, DateTime startDate, bool forceRecalculate }) async test('test aggregateQuestionResults', () async { // TODO }); - //Future blockUserFromComment(String tenantId, String id, BlockFromCommentParams blockFromCommentParams, { String userId, String anonUserId }) async + //Future blockUserFromComment(String tenantId, String id, BlockFromCommentParams blockFromCommentParams, { String userId, String anonUserId }) async test('test blockUserFromComment', () async { // TODO }); - //Future bulkAggregateQuestionResults(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, { bool forceRecalculate }) async + //Future bulkAggregateQuestionResults(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, { bool forceRecalculate }) async test('test bulkAggregateQuestionResults', () async { // TODO }); - //Future changeTicketState(String tenantId, String userId, String id, ChangeTicketStateBody changeTicketStateBody) async + //Future changeTicketState(String tenantId, String userId, String id, ChangeTicketStateBody changeTicketStateBody) async test('test changeTicketState', () async { // TODO }); - //Future combineCommentsWithQuestionResults(String tenantId, { String questionId, List questionIds, String urlId, DateTime startDate, bool forceRecalculate, double minValue, double maxValue, double limit }) async + //Future combineCommentsWithQuestionResults(String tenantId, { String questionId, List questionIds, String urlId, DateTime startDate, bool forceRecalculate, double minValue, double maxValue, double limit }) async test('test combineCommentsWithQuestionResults', () async { // TODO }); - //Future createEmailTemplate(String tenantId, CreateEmailTemplateBody createEmailTemplateBody) async + //Future createEmailTemplate(String tenantId, CreateEmailTemplateBody createEmailTemplateBody) async test('test createEmailTemplate', () async { // TODO }); - //Future createFeedPost(String tenantId, CreateFeedPostParams createFeedPostParams, { String broadcastId, bool isLive, bool doSpamCheck, bool skipDupCheck }) async + //Future createFeedPost(String tenantId, CreateFeedPostParams createFeedPostParams, { String broadcastId, bool isLive, bool doSpamCheck, bool skipDupCheck }) async test('test createFeedPost', () async { // TODO }); - //Future createModerator(String tenantId, CreateModeratorBody createModeratorBody) async + //Future createModerator(String tenantId, CreateModeratorBody createModeratorBody) async test('test createModerator', () async { // TODO }); - //Future createQuestionConfig(String tenantId, CreateQuestionConfigBody createQuestionConfigBody) async + //Future createQuestionConfig(String tenantId, CreateQuestionConfigBody createQuestionConfigBody) async test('test createQuestionConfig', () async { // TODO }); - //Future createQuestionResult(String tenantId, CreateQuestionResultBody createQuestionResultBody) async + //Future createQuestionResult(String tenantId, CreateQuestionResultBody createQuestionResultBody) async test('test createQuestionResult', () async { // TODO }); @@ -104,67 +104,67 @@ void main() { // TODO }); - //Future createTenant(String tenantId, CreateTenantBody createTenantBody) async + //Future createTenant(String tenantId, CreateTenantBody createTenantBody) async test('test createTenant', () async { // TODO }); - //Future createTenantPackage(String tenantId, CreateTenantPackageBody createTenantPackageBody) async + //Future createTenantPackage(String tenantId, CreateTenantPackageBody createTenantPackageBody) async test('test createTenantPackage', () async { // TODO }); - //Future createTenantUser(String tenantId, CreateTenantUserBody createTenantUserBody) async + //Future createTenantUser(String tenantId, CreateTenantUserBody createTenantUserBody) async test('test createTenantUser', () async { // TODO }); - //Future createTicket(String tenantId, String userId, CreateTicketBody createTicketBody) async + //Future createTicket(String tenantId, String userId, CreateTicketBody createTicketBody) async test('test createTicket', () async { // TODO }); - //Future createUserBadge(String tenantId, CreateUserBadgeParams createUserBadgeParams) async + //Future createUserBadge(String tenantId, CreateUserBadgeParams createUserBadgeParams) async test('test createUserBadge', () async { // TODO }); - //Future createVote(String tenantId, String commentId, String direction, { String userId, String anonUserId }) async + //Future createVote(String tenantId, String commentId, String direction, { String userId, String anonUserId }) async test('test createVote', () async { // TODO }); - //Future deleteComment(String tenantId, String id, { String contextUserId, bool isLive }) async + //Future deleteComment(String tenantId, String id, { String contextUserId, bool isLive }) async test('test deleteComment', () async { // TODO }); - //Future deleteDomainConfig(String tenantId, String domain) async + //Future deleteDomainConfig(String tenantId, String domain) async test('test deleteDomainConfig', () async { // TODO }); - //Future deleteEmailTemplate(String tenantId, String id) async + //Future deleteEmailTemplate(String tenantId, String id) async test('test deleteEmailTemplate', () async { // TODO }); - //Future deleteEmailTemplateRenderError(String tenantId, String id, String errorId) async + //Future deleteEmailTemplateRenderError(String tenantId, String id, String errorId) async test('test deleteEmailTemplateRenderError', () async { // TODO }); - //Future deleteHashTag(String tag, { String tenantId, DeleteHashTagRequest deleteHashTagRequest }) async + //Future deleteHashTag(String tag, { String tenantId, DeleteHashTagRequestBody deleteHashTagRequestBody }) async test('test deleteHashTag', () async { // TODO }); - //Future deleteModerator(String tenantId, String id, { String sendEmail }) async + //Future deleteModerator(String tenantId, String id, { String sendEmail }) async test('test deleteModerator', () async { // TODO }); - //Future deleteNotificationCount(String tenantId, String id) async + //Future deleteNotificationCount(String tenantId, String id) async test('test deleteNotificationCount', () async { // TODO }); @@ -174,17 +174,17 @@ void main() { // TODO }); - //Future deletePendingWebhookEvent(String tenantId, String id) async + //Future deletePendingWebhookEvent(String tenantId, String id) async test('test deletePendingWebhookEvent', () async { // TODO }); - //Future deleteQuestionConfig(String tenantId, String id) async + //Future deleteQuestionConfig(String tenantId, String id) async test('test deleteQuestionConfig', () async { // TODO }); - //Future deleteQuestionResult(String tenantId, String id) async + //Future deleteQuestionResult(String tenantId, String id) async test('test deleteQuestionResult', () async { // TODO }); @@ -199,114 +199,114 @@ void main() { // TODO }); - //Future deleteTenant(String tenantId, String id, { String sure }) async + //Future deleteTenant(String tenantId, String id, { String sure }) async test('test deleteTenant', () async { // TODO }); - //Future deleteTenantPackage(String tenantId, String id) async + //Future deleteTenantPackage(String tenantId, String id) async test('test deleteTenantPackage', () async { // TODO }); - //Future deleteTenantUser(String tenantId, String id, { String deleteComments, String commentDeleteMode }) async + //Future deleteTenantUser(String tenantId, String id, { String deleteComments, String commentDeleteMode }) async test('test deleteTenantUser', () async { // TODO }); - //Future deleteUserBadge(String tenantId, String id) async + //Future deleteUserBadge(String tenantId, String id) async test('test deleteUserBadge', () async { // TODO }); - //Future deleteVote(String tenantId, String id, { String editKey }) async + //Future deleteVote(String tenantId, String id, { String editKey }) async test('test deleteVote', () async { // TODO }); - //Future flagComment(String tenantId, String id, { String userId, String anonUserId }) async + //Future flagComment(String tenantId, String id, { String userId, String anonUserId }) async test('test flagComment', () async { // TODO }); - //Future getAuditLogs(String tenantId, { double limit, double skip, SORTDIR order, double after, double before }) async + //Future getAuditLogs(String tenantId, { double limit, double skip, SORTDIR order, double after, double before }) async test('test getAuditLogs', () async { // TODO }); - //Future getCachedNotificationCount(String tenantId, String id) async + //Future getCachedNotificationCount(String tenantId, String id) async test('test getCachedNotificationCount', () async { // TODO }); - //Future getComment(String tenantId, String id) async + //Future getComment(String tenantId, String id) async test('test getComment', () async { // TODO }); - //Future getComments(String tenantId, { int page, int limit, int skip, bool asTree, int skipChildren, int limitChildren, int maxTreeDepth, String urlId, String userId, String anonUserId, String contextUserId, String hashTag, String parentId, SortDirections direction }) async + //Future getComments(String tenantId, { int page, int limit, int skip, bool asTree, int skipChildren, int limitChildren, int maxTreeDepth, String urlId, String userId, String anonUserId, String contextUserId, String hashTag, String parentId, SortDirections direction, int fromDate, int toDate }) async test('test getComments', () async { // TODO }); - //Future getDomainConfig(String tenantId, String domain) async + //Future getDomainConfig(String tenantId, String domain) async test('test getDomainConfig', () async { // TODO }); - //Future getDomainConfigs(String tenantId) async + //Future getDomainConfigs(String tenantId) async test('test getDomainConfigs', () async { // TODO }); - //Future getEmailTemplate(String tenantId, String id) async + //Future getEmailTemplate(String tenantId, String id) async test('test getEmailTemplate', () async { // TODO }); - //Future getEmailTemplateDefinitions(String tenantId) async + //Future getEmailTemplateDefinitions(String tenantId) async test('test getEmailTemplateDefinitions', () async { // TODO }); - //Future getEmailTemplateRenderErrors(String tenantId, String id, { double skip }) async + //Future getEmailTemplateRenderErrors(String tenantId, String id, { double skip }) async test('test getEmailTemplateRenderErrors', () async { // TODO }); - //Future getEmailTemplates(String tenantId, { double skip }) async + //Future getEmailTemplates(String tenantId, { double skip }) async test('test getEmailTemplates', () async { // TODO }); // req tenantId afterId // - //Future getFeedPosts(String tenantId, { String afterId, int limit, List tags }) async + //Future getFeedPosts(String tenantId, { String afterId, int limit, List tags }) async test('test getFeedPosts', () async { // TODO }); - //Future getHashTags(String tenantId, { double page }) async + //Future getHashTags(String tenantId, { double page }) async test('test getHashTags', () async { // TODO }); - //Future getModerator(String tenantId, String id) async + //Future getModerator(String tenantId, String id) async test('test getModerator', () async { // TODO }); - //Future getModerators(String tenantId, { double skip }) async + //Future getModerators(String tenantId, { double skip }) async test('test getModerators', () async { // TODO }); - //Future getNotificationCount(String tenantId, { String userId, String urlId, String fromCommentId, bool viewed, String type }) async + //Future getNotificationCount(String tenantId, { String userId, String urlId, String fromCommentId, bool viewed, String type }) async test('test getNotificationCount', () async { // TODO }); - //Future getNotifications(String tenantId, { String userId, String urlId, String fromCommentId, bool viewed, String type, double skip }) async + //Future getNotifications(String tenantId, { String userId, String urlId, String fromCommentId, bool viewed, String type, double skip }) async test('test getNotifications', () async { // TODO }); @@ -321,32 +321,32 @@ void main() { // TODO }); - //Future getPendingWebhookEventCount(String tenantId, { String commentId, String externalId, String eventType, String type, String domain, double attemptCountGT }) async + //Future getPendingWebhookEventCount(String tenantId, { String commentId, String externalId, String eventType, String type, String domain, double attemptCountGT }) async test('test getPendingWebhookEventCount', () async { // TODO }); - //Future getPendingWebhookEvents(String tenantId, { String commentId, String externalId, String eventType, String type, String domain, double attemptCountGT, double skip }) async + //Future getPendingWebhookEvents(String tenantId, { String commentId, String externalId, String eventType, String type, String domain, double attemptCountGT, double skip }) async test('test getPendingWebhookEvents', () async { // TODO }); - //Future getQuestionConfig(String tenantId, String id) async + //Future getQuestionConfig(String tenantId, String id) async test('test getQuestionConfig', () async { // TODO }); - //Future getQuestionConfigs(String tenantId, { double skip }) async + //Future getQuestionConfigs(String tenantId, { double skip }) async test('test getQuestionConfigs', () async { // TODO }); - //Future getQuestionResult(String tenantId, String id) async + //Future getQuestionResult(String tenantId, String id) async test('test getQuestionResult', () async { // TODO }); - //Future getQuestionResults(String tenantId, { String urlId, String userId, String startDate, String questionId, String questionIds, double skip }) async + //Future getQuestionResults(String tenantId, { String urlId, String userId, String startDate, String questionId, String questionIds, double skip }) async test('test getQuestionResults', () async { // TODO }); @@ -361,7 +361,7 @@ void main() { // TODO }); - //Future getSSOUsers(String tenantId, { int skip }) async + //Future getSSOUsers(String tenantId, { int skip }) async test('test getSSOUsers', () async { // TODO }); @@ -371,97 +371,97 @@ void main() { // TODO }); - //Future getTenant(String tenantId, String id) async + //Future getTenant(String tenantId, String id) async test('test getTenant', () async { // TODO }); - //Future getTenantDailyUsages(String tenantId, { double yearNumber, double monthNumber, double dayNumber, double skip }) async + //Future getTenantDailyUsages(String tenantId, { double yearNumber, double monthNumber, double dayNumber, double skip }) async test('test getTenantDailyUsages', () async { // TODO }); - //Future getTenantPackage(String tenantId, String id) async + //Future getTenantPackage(String tenantId, String id) async test('test getTenantPackage', () async { // TODO }); - //Future getTenantPackages(String tenantId, { double skip }) async + //Future getTenantPackages(String tenantId, { double skip }) async test('test getTenantPackages', () async { // TODO }); - //Future getTenantUser(String tenantId, String id) async + //Future getTenantUser(String tenantId, String id) async test('test getTenantUser', () async { // TODO }); - //Future getTenantUsers(String tenantId, { double skip }) async + //Future getTenantUsers(String tenantId, { double skip }) async test('test getTenantUsers', () async { // TODO }); - //Future getTenants(String tenantId, { String meta, double skip }) async + //Future getTenants(String tenantId, { String meta, double skip }) async test('test getTenants', () async { // TODO }); - //Future getTicket(String tenantId, String id, { String userId }) async + //Future getTicket(String tenantId, String id, { String userId }) async test('test getTicket', () async { // TODO }); - //Future getTickets(String tenantId, { String userId, double state, double skip, double limit }) async + //Future getTickets(String tenantId, { String userId, double state, double skip, double limit }) async test('test getTickets', () async { // TODO }); - //Future getUser(String tenantId, String id) async + //Future getUser(String tenantId, String id) async test('test getUser', () async { // TODO }); - //Future getUserBadge(String tenantId, String id) async + //Future getUserBadge(String tenantId, String id) async test('test getUserBadge', () async { // TODO }); - //Future getUserBadgeProgressById(String tenantId, String id) async + //Future getUserBadgeProgressById(String tenantId, String id) async test('test getUserBadgeProgressById', () async { // TODO }); - //Future getUserBadgeProgressByUserId(String tenantId, String userId) async + //Future getUserBadgeProgressByUserId(String tenantId, String userId) async test('test getUserBadgeProgressByUserId', () async { // TODO }); - //Future getUserBadgeProgressList(String tenantId, { String userId, double limit, double skip }) async + //Future getUserBadgeProgressList(String tenantId, { String userId, double limit, double skip }) async test('test getUserBadgeProgressList', () async { // TODO }); - //Future getUserBadges(String tenantId, { String userId, String badgeId, double type, bool displayedOnComments, double limit, double skip }) async + //Future getUserBadges(String tenantId, { String userId, String badgeId, double type, bool displayedOnComments, double limit, double skip }) async test('test getUserBadges', () async { // TODO }); - //Future getVotes(String tenantId, String urlId) async + //Future getVotes(String tenantId, String urlId) async test('test getVotes', () async { // TODO }); - //Future getVotesForUser(String tenantId, String urlId, { String userId, String anonUserId }) async + //Future getVotesForUser(String tenantId, String urlId, { String userId, String anonUserId }) async test('test getVotesForUser', () async { // TODO }); - //Future patchDomainConfig(String tenantId, String domainToUpdate, PatchDomainConfigParams patchDomainConfigParams) async + //Future patchDomainConfig(String tenantId, String domainToUpdate, PatchDomainConfigParams patchDomainConfigParams) async test('test patchDomainConfig', () async { // TODO }); - //Future patchHashTag(String tag, { String tenantId, UpdateHashTagBody updateHashTagBody }) async + //Future patchHashTag(String tag, { String tenantId, UpdateHashTagBody updateHashTagBody }) async test('test patchHashTag', () async { // TODO }); @@ -476,7 +476,7 @@ void main() { // TODO }); - //Future putDomainConfig(String tenantId, String domainToUpdate, UpdateDomainConfigParams updateDomainConfigParams) async + //Future putDomainConfig(String tenantId, String domainToUpdate, UpdateDomainConfigParams updateDomainConfigParams) async test('test putDomainConfig', () async { // TODO }); @@ -486,82 +486,82 @@ void main() { // TODO }); - //Future renderEmailTemplate(String tenantId, RenderEmailTemplateBody renderEmailTemplateBody, { String locale }) async + //Future renderEmailTemplate(String tenantId, RenderEmailTemplateBody renderEmailTemplateBody, { String locale }) async test('test renderEmailTemplate', () async { // TODO }); - //Future replaceTenantPackage(String tenantId, String id, ReplaceTenantPackageBody replaceTenantPackageBody) async + //Future replaceTenantPackage(String tenantId, String id, ReplaceTenantPackageBody replaceTenantPackageBody) async test('test replaceTenantPackage', () async { // TODO }); - //Future replaceTenantUser(String tenantId, String id, ReplaceTenantUserBody replaceTenantUserBody, { String updateComments }) async + //Future replaceTenantUser(String tenantId, String id, ReplaceTenantUserBody replaceTenantUserBody, { String updateComments }) async test('test replaceTenantUser', () async { // TODO }); - //Future saveComment(String tenantId, CreateCommentParams createCommentParams, { bool isLive, bool doSpamCheck, bool sendEmails, bool populateNotifications }) async + //Future saveComment(String tenantId, CreateCommentParams createCommentParams, { bool isLive, bool doSpamCheck, bool sendEmails, bool populateNotifications }) async test('test saveComment', () async { // TODO }); - //Future> saveCommentsBulk(String tenantId, List createCommentParams, { bool isLive, bool doSpamCheck, bool sendEmails, bool populateNotifications }) async + //Future> saveCommentsBulk(String tenantId, List createCommentParams, { bool isLive, bool doSpamCheck, bool sendEmails, bool populateNotifications }) async test('test saveCommentsBulk', () async { // TODO }); - //Future sendInvite(String tenantId, String id, String fromName) async + //Future sendInvite(String tenantId, String id, String fromName) async test('test sendInvite', () async { // TODO }); - //Future sendLoginLink(String tenantId, String id, { String redirectURL }) async + //Future sendLoginLink(String tenantId, String id, { String redirectURL }) async test('test sendLoginLink', () async { // TODO }); - //Future unBlockUserFromComment(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, { String userId, String anonUserId }) async + //Future unBlockUserFromComment(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, { String userId, String anonUserId }) async test('test unBlockUserFromComment', () async { // TODO }); - //Future unFlagComment(String tenantId, String id, { String userId, String anonUserId }) async + //Future unFlagComment(String tenantId, String id, { String userId, String anonUserId }) async test('test unFlagComment', () async { // TODO }); - //Future updateComment(String tenantId, String id, UpdatableCommentParams updatableCommentParams, { String contextUserId, bool doSpamCheck, bool isLive }) async + //Future updateComment(String tenantId, String id, UpdatableCommentParams updatableCommentParams, { String contextUserId, bool doSpamCheck, bool isLive }) async test('test updateComment', () async { // TODO }); - //Future updateEmailTemplate(String tenantId, String id, UpdateEmailTemplateBody updateEmailTemplateBody) async + //Future updateEmailTemplate(String tenantId, String id, UpdateEmailTemplateBody updateEmailTemplateBody) async test('test updateEmailTemplate', () async { // TODO }); - //Future updateFeedPost(String tenantId, String id, FeedPost feedPost) async + //Future updateFeedPost(String tenantId, String id, FeedPost feedPost) async test('test updateFeedPost', () async { // TODO }); - //Future updateModerator(String tenantId, String id, UpdateModeratorBody updateModeratorBody) async + //Future updateModerator(String tenantId, String id, UpdateModeratorBody updateModeratorBody) async test('test updateModerator', () async { // TODO }); - //Future updateNotification(String tenantId, String id, UpdateNotificationBody updateNotificationBody, { String userId }) async + //Future updateNotification(String tenantId, String id, UpdateNotificationBody updateNotificationBody, { String userId }) async test('test updateNotification', () async { // TODO }); - //Future updateQuestionConfig(String tenantId, String id, UpdateQuestionConfigBody updateQuestionConfigBody) async + //Future updateQuestionConfig(String tenantId, String id, UpdateQuestionConfigBody updateQuestionConfigBody) async test('test updateQuestionConfig', () async { // TODO }); - //Future updateQuestionResult(String tenantId, String id, UpdateQuestionResultBody updateQuestionResultBody) async + //Future updateQuestionResult(String tenantId, String id, UpdateQuestionResultBody updateQuestionResultBody) async test('test updateQuestionResult', () async { // TODO }); @@ -571,22 +571,22 @@ void main() { // TODO }); - //Future updateTenant(String tenantId, String id, UpdateTenantBody updateTenantBody) async + //Future updateTenant(String tenantId, String id, UpdateTenantBody updateTenantBody) async test('test updateTenant', () async { // TODO }); - //Future updateTenantPackage(String tenantId, String id, UpdateTenantPackageBody updateTenantPackageBody) async + //Future updateTenantPackage(String tenantId, String id, UpdateTenantPackageBody updateTenantPackageBody) async test('test updateTenantPackage', () async { // TODO }); - //Future updateTenantUser(String tenantId, String id, UpdateTenantUserBody updateTenantUserBody, { String updateComments }) async + //Future updateTenantUser(String tenantId, String id, UpdateTenantUserBody updateTenantUserBody, { String updateComments }) async test('test updateTenantUser', () async { // TODO }); - //Future updateUserBadge(String tenantId, String id, UpdateUserBadgeParams updateUserBadgeParams) async + //Future updateUserBadge(String tenantId, String id, UpdateUserBadgeParams updateUserBadgeParams) async test('test updateUserBadge', () async { // TODO }); diff --git a/client/test/delete_comment200_response_test.dart b/client/test/delete_comment200_response_test.dart deleted file mode 100644 index 702dff4..0000000 --- a/client/test/delete_comment200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for DeleteComment200Response -void main() { - // final instance = DeleteComment200Response(); - - group('test DeleteComment200Response', () { - // DeleteCommentAction action - test('to test the property `action`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/delete_comment_public200_response_test.dart b/client/test/delete_comment_public200_response_test.dart deleted file mode 100644 index 0935fd9..0000000 --- a/client/test/delete_comment_public200_response_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for DeleteCommentPublic200Response -void main() { - // final instance = DeleteCommentPublic200Response(); - - group('test DeleteCommentPublic200Response', () { - // DeletedCommentResultComment comment - test('to test the property `comment`', () async { - // TODO - }); - - // bool hardRemoved - test('to test the property `hardRemoved`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/delete_comment_vote200_response_test.dart b/client/test/delete_comment_vote200_response_test.dart deleted file mode 100644 index 64d2991..0000000 --- a/client/test/delete_comment_vote200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for DeleteCommentVote200Response -void main() { - // final instance = DeleteCommentVote200Response(); - - group('test DeleteCommentVote200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // bool wasPendingVote - test('to test the property `wasPendingVote`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/delete_domain_config200_response_test.dart b/client/test/delete_domain_config_response_test.dart similarity index 75% rename from client/test/delete_domain_config200_response_test.dart rename to client/test/delete_domain_config_response_test.dart index 6df67e9..dfdd642 100644 --- a/client/test/delete_domain_config200_response_test.dart +++ b/client/test/delete_domain_config_response_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for DeleteDomainConfig200Response +// tests for DeleteDomainConfigResponse void main() { - // final instance = DeleteDomainConfig200Response(); + // final instance = DeleteDomainConfigResponse(); - group('test DeleteDomainConfig200Response', () { + group('test DeleteDomainConfigResponse', () { // Object status test('to test the property `status`', () async { // TODO diff --git a/client/test/delete_feed_post_public200_response_test.dart b/client/test/delete_feed_post_public200_response_test.dart deleted file mode 100644 index d5ab091..0000000 --- a/client/test/delete_feed_post_public200_response_test.dart +++ /dev/null @@ -1,62 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for DeleteFeedPostPublic200Response -void main() { - // final instance = DeleteFeedPostPublic200Response(); - - group('test DeleteFeedPostPublic200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/delete_feed_post_public200_response_any_of_test.dart b/client/test/delete_feed_post_public_response_test.dart similarity index 73% rename from client/test/delete_feed_post_public200_response_any_of_test.dart rename to client/test/delete_feed_post_public_response_test.dart index 7dfc939..33814f8 100644 --- a/client/test/delete_feed_post_public200_response_any_of_test.dart +++ b/client/test/delete_feed_post_public_response_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for DeleteFeedPostPublic200ResponseAnyOf +// tests for DeleteFeedPostPublicResponse void main() { - // final instance = DeleteFeedPostPublic200ResponseAnyOf(); + // final instance = DeleteFeedPostPublicResponse(); - group('test DeleteFeedPostPublic200ResponseAnyOf', () { + group('test DeleteFeedPostPublicResponse', () { // APIStatus status test('to test the property `status`', () async { // TODO diff --git a/client/test/delete_hash_tag_request_test.dart b/client/test/delete_hash_tag_request_body_test.dart similarity index 77% rename from client/test/delete_hash_tag_request_test.dart rename to client/test/delete_hash_tag_request_body_test.dart index 4023253..743afee 100644 --- a/client/test/delete_hash_tag_request_test.dart +++ b/client/test/delete_hash_tag_request_body_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for DeleteHashTagRequest +// tests for DeleteHashTagRequestBody void main() { - // final instance = DeleteHashTagRequest(); + // final instance = DeleteHashTagRequestBody(); - group('test DeleteHashTagRequest', () { + group('test DeleteHashTagRequestBody', () { // String tenantId test('to test the property `tenantId`', () async { // TODO diff --git a/client/test/flag_comment200_response_test.dart b/client/test/flag_comment200_response_test.dart deleted file mode 100644 index e773273..0000000 --- a/client/test/flag_comment200_response_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for FlagComment200Response -void main() { - // final instance = FlagComment200Response(); - - group('test FlagComment200Response', () { - // int statusCode - test('to test the property `statusCode`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // bool wasUnapproved - test('to test the property `wasUnapproved`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/flag_comment_public200_response_test.dart b/client/test/flag_comment_public200_response_test.dart deleted file mode 100644 index 4b462b5..0000000 --- a/client/test/flag_comment_public200_response_test.dart +++ /dev/null @@ -1,62 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for FlagCommentPublic200Response -void main() { - // final instance = FlagCommentPublic200Response(); - - group('test FlagCommentPublic200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_audit_logs200_response_test.dart b/client/test/get_audit_logs200_response_test.dart deleted file mode 100644 index 5832dec..0000000 --- a/client/test/get_audit_logs200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetAuditLogs200Response -void main() { - // final instance = GetAuditLogs200Response(); - - group('test GetAuditLogs200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List auditLogs (default value: const []) - test('to test the property `auditLogs`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_banned_users_count_response_test.dart b/client/test/get_banned_users_count_response_test.dart new file mode 100644 index 0000000..ca34923 --- /dev/null +++ b/client/test/get_banned_users_count_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetBannedUsersCountResponse +void main() { + // final instance = GetBannedUsersCountResponse(); + + group('test GetBannedUsersCountResponse', () { + // double totalCount + test('to test the property `totalCount`', () async { + // TODO + }); + + // String status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_banned_users_from_comment_response_test.dart b/client/test/get_banned_users_from_comment_response_test.dart new file mode 100644 index 0000000..0b6339b --- /dev/null +++ b/client/test/get_banned_users_from_comment_response_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetBannedUsersFromCommentResponse +void main() { + // final instance = GetBannedUsersFromCommentResponse(); + + group('test GetBannedUsersFromCommentResponse', () { + // List bannedUsers (default value: const []) + test('to test the property `bannedUsers`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_cached_notification_count200_response_test.dart b/client/test/get_cached_notification_count200_response_test.dart deleted file mode 100644 index f635e72..0000000 --- a/client/test/get_cached_notification_count200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetCachedNotificationCount200Response -void main() { - // final instance = GetCachedNotificationCount200Response(); - - group('test GetCachedNotificationCount200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // UserNotificationCount data - test('to test the property `data`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_comment200_response_test.dart b/client/test/get_comment200_response_test.dart deleted file mode 100644 index 3a56325..0000000 --- a/client/test/get_comment200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetComment200Response -void main() { - // final instance = GetComment200Response(); - - group('test GetComment200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // APIComment comment - test('to test the property `comment`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_comment_ban_status_response_test.dart b/client/test/get_comment_ban_status_response_test.dart new file mode 100644 index 0000000..5d03b04 --- /dev/null +++ b/client/test/get_comment_ban_status_response_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetCommentBanStatusResponse +void main() { + // final instance = GetCommentBanStatusResponse(); + + group('test GetCommentBanStatusResponse', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // String emailDomain + test('to test the property `emailDomain`', () async { + // TODO + }); + + // bool canIPBan + test('to test the property `canIPBan`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_comment_text200_response_test.dart b/client/test/get_comment_text200_response_test.dart deleted file mode 100644 index 73d75e7..0000000 --- a/client/test/get_comment_text200_response_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetCommentText200Response -void main() { - // final instance = GetCommentText200Response(); - - group('test GetCommentText200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String commentText - test('to test the property `commentText`', () async { - // TODO - }); - - // String sanitizedCommentText - test('to test the property `sanitizedCommentText`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_comment_text_response_test.dart b/client/test/get_comment_text_response_test.dart new file mode 100644 index 0000000..c9ebfd0 --- /dev/null +++ b/client/test/get_comment_text_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetCommentTextResponse +void main() { + // final instance = GetCommentTextResponse(); + + group('test GetCommentTextResponse', () { + // String comment + test('to test the property `comment`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_comment_vote_user_names200_response_test.dart b/client/test/get_comment_vote_user_names200_response_test.dart deleted file mode 100644 index e38aeee..0000000 --- a/client/test/get_comment_vote_user_names200_response_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetCommentVoteUserNames200Response -void main() { - // final instance = GetCommentVoteUserNames200Response(); - - group('test GetCommentVoteUserNames200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List voteUserNames (default value: const []) - test('to test the property `voteUserNames`', () async { - // TODO - }); - - // bool hasMore - test('to test the property `hasMore`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_comments200_response_test.dart b/client/test/get_comments200_response_test.dart deleted file mode 100644 index c2946ad..0000000 --- a/client/test/get_comments200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetComments200Response -void main() { - // final instance = GetComments200Response(); - - group('test GetComments200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List comments (default value: const []) - test('to test the property `comments`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_comments_for_user_response_test.dart b/client/test/get_comments_for_user_response_test.dart new file mode 100644 index 0000000..c934f93 --- /dev/null +++ b/client/test/get_comments_for_user_response_test.dart @@ -0,0 +1,27 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetCommentsForUserResponse +void main() { + // final instance = GetCommentsForUserResponse(); + + group('test GetCommentsForUserResponse', () { + // List moderatingTenantIds (default value: const []) + test('to test the property `moderatingTenantIds`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_comments_public200_response_test.dart b/client/test/get_comments_public200_response_test.dart deleted file mode 100644 index f3b0436..0000000 --- a/client/test/get_comments_public200_response_test.dart +++ /dev/null @@ -1,178 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetCommentsPublic200Response -void main() { - // final instance = GetCommentsPublic200Response(); - - group('test GetCommentsPublic200Response', () { - // int statusCode - test('to test the property `statusCode`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String translatedWarning - test('to test the property `translatedWarning`', () async { - // TODO - }); - - // List comments (default value: const []) - test('to test the property `comments`', () async { - // TODO - }); - - // UserSessionInfo user - test('to test the property `user`', () async { - // TODO - }); - - // String urlIdClean - test('to test the property `urlIdClean`', () async { - // TODO - }); - - // int lastGenDate - test('to test the property `lastGenDate`', () async { - // TODO - }); - - // bool includesPastPages - test('to test the property `includesPastPages`', () async { - // TODO - }); - - // bool isDemo - test('to test the property `isDemo`', () async { - // TODO - }); - - // int commentCount - test('to test the property `commentCount`', () async { - // TODO - }); - - // bool isSiteAdmin - test('to test the property `isSiteAdmin`', () async { - // TODO - }); - - // bool hasBillingIssue - test('to test the property `hasBillingIssue`', () async { - // TODO - }); - - // Construct a type with a set of properties K of type T - // Map moduleData (default value: const {}) - test('to test the property `moduleData`', () async { - // TODO - }); - - // int pageNumber - test('to test the property `pageNumber`', () async { - // TODO - }); - - // bool isWhiteLabeled - test('to test the property `isWhiteLabeled`', () async { - // TODO - }); - - // bool isProd - test('to test the property `isProd`', () async { - // TODO - }); - - // bool isCrawler - test('to test the property `isCrawler`', () async { - // TODO - }); - - // int notificationCount - test('to test the property `notificationCount`', () async { - // TODO - }); - - // bool hasMore - test('to test the property `hasMore`', () async { - // TODO - }); - - // bool isClosed - test('to test the property `isClosed`', () async { - // TODO - }); - - // int presencePollState - test('to test the property `presencePollState`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - // String urlIdWS - test('to test the property `urlIdWS`', () async { - // TODO - }); - - // String userIdWS - test('to test the property `userIdWS`', () async { - // TODO - }); - - // String tenantIdWS - test('to test the property `tenantIdWS`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_domain_config200_response_test.dart b/client/test/get_domain_config_response_test.dart similarity index 84% rename from client/test/get_domain_config200_response_test.dart rename to client/test/get_domain_config_response_test.dart index 548da4f..eb8b582 100644 --- a/client/test/get_domain_config200_response_test.dart +++ b/client/test/get_domain_config_response_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for GetDomainConfig200Response +// tests for GetDomainConfigResponse void main() { - // final instance = GetDomainConfig200Response(); + // final instance = GetDomainConfigResponse(); - group('test GetDomainConfig200Response', () { + group('test GetDomainConfigResponse', () { // Object configuration test('to test the property `configuration`', () async { // TODO diff --git a/client/test/get_domain_configs200_response_any_of1_test.dart b/client/test/get_domain_configs_response_any_of1_test.dart similarity index 80% rename from client/test/get_domain_configs200_response_any_of1_test.dart rename to client/test/get_domain_configs_response_any_of1_test.dart index 91186a2..9c5b049 100644 --- a/client/test/get_domain_configs200_response_any_of1_test.dart +++ b/client/test/get_domain_configs_response_any_of1_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for GetDomainConfigs200ResponseAnyOf1 +// tests for GetDomainConfigsResponseAnyOf1 void main() { - // final instance = GetDomainConfigs200ResponseAnyOf1(); + // final instance = GetDomainConfigsResponseAnyOf1(); - group('test GetDomainConfigs200ResponseAnyOf1', () { + group('test GetDomainConfigsResponseAnyOf1', () { // String reason test('to test the property `reason`', () async { // TODO diff --git a/client/test/get_domain_configs200_response_any_of_test.dart b/client/test/get_domain_configs_response_any_of_test.dart similarity index 78% rename from client/test/get_domain_configs200_response_any_of_test.dart rename to client/test/get_domain_configs_response_any_of_test.dart index 5af27c2..27c48b8 100644 --- a/client/test/get_domain_configs200_response_any_of_test.dart +++ b/client/test/get_domain_configs_response_any_of_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for GetDomainConfigs200ResponseAnyOf +// tests for GetDomainConfigsResponseAnyOf void main() { - // final instance = GetDomainConfigs200ResponseAnyOf(); + // final instance = GetDomainConfigsResponseAnyOf(); - group('test GetDomainConfigs200ResponseAnyOf', () { + group('test GetDomainConfigsResponseAnyOf', () { // Object configurations test('to test the property `configurations`', () async { // TODO diff --git a/client/test/get_domain_configs200_response_test.dart b/client/test/get_domain_configs_response_test.dart similarity index 84% rename from client/test/get_domain_configs200_response_test.dart rename to client/test/get_domain_configs_response_test.dart index 940618d..babe0c8 100644 --- a/client/test/get_domain_configs200_response_test.dart +++ b/client/test/get_domain_configs_response_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for GetDomainConfigs200Response +// tests for GetDomainConfigsResponse void main() { - // final instance = GetDomainConfigs200Response(); + // final instance = GetDomainConfigsResponse(); - group('test GetDomainConfigs200Response', () { + group('test GetDomainConfigsResponse', () { // Object configurations test('to test the property `configurations`', () async { // TODO diff --git a/client/test/get_email_template200_response_test.dart b/client/test/get_email_template200_response_test.dart deleted file mode 100644 index 8e9c5b6..0000000 --- a/client/test/get_email_template200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetEmailTemplate200Response -void main() { - // final instance = GetEmailTemplate200Response(); - - group('test GetEmailTemplate200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // CustomEmailTemplate emailTemplate - test('to test the property `emailTemplate`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_email_template_definitions200_response_test.dart b/client/test/get_email_template_definitions200_response_test.dart deleted file mode 100644 index 9513c30..0000000 --- a/client/test/get_email_template_definitions200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetEmailTemplateDefinitions200Response -void main() { - // final instance = GetEmailTemplateDefinitions200Response(); - - group('test GetEmailTemplateDefinitions200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List definitions (default value: const []) - test('to test the property `definitions`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_email_template_render_errors200_response_test.dart b/client/test/get_email_template_render_errors200_response_test.dart deleted file mode 100644 index 114a217..0000000 --- a/client/test/get_email_template_render_errors200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetEmailTemplateRenderErrors200Response -void main() { - // final instance = GetEmailTemplateRenderErrors200Response(); - - group('test GetEmailTemplateRenderErrors200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List renderErrors (default value: const []) - test('to test the property `renderErrors`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_email_templates200_response_test.dart b/client/test/get_email_templates200_response_test.dart deleted file mode 100644 index 0769fb9..0000000 --- a/client/test/get_email_templates200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetEmailTemplates200Response -void main() { - // final instance = GetEmailTemplates200Response(); - - group('test GetEmailTemplates200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List emailTemplates (default value: const []) - test('to test the property `emailTemplates`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_event_log200_response_test.dart b/client/test/get_event_log200_response_test.dart deleted file mode 100644 index e748335..0000000 --- a/client/test/get_event_log200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetEventLog200Response -void main() { - // final instance = GetEventLog200Response(); - - group('test GetEventLog200Response', () { - // List events (default value: const []) - test('to test the property `events`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_feed_posts200_response_test.dart b/client/test/get_feed_posts200_response_test.dart deleted file mode 100644 index ee9e081..0000000 --- a/client/test/get_feed_posts200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetFeedPosts200Response -void main() { - // final instance = GetFeedPosts200Response(); - - group('test GetFeedPosts200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List feedPosts (default value: const []) - test('to test the property `feedPosts`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_feed_posts_public200_response_test.dart b/client/test/get_feed_posts_public200_response_test.dart deleted file mode 100644 index 58cb41a..0000000 --- a/client/test/get_feed_posts_public200_response_test.dart +++ /dev/null @@ -1,92 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetFeedPostsPublic200Response -void main() { - // final instance = GetFeedPostsPublic200Response(); - - group('test GetFeedPostsPublic200Response', () { - // Map> myReacts (default value: const {}) - test('to test the property `myReacts`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List feedPosts (default value: const []) - test('to test the property `feedPosts`', () async { - // TODO - }); - - // UserSessionInfo user - test('to test the property `user`', () async { - // TODO - }); - - // String urlIdWS - test('to test the property `urlIdWS`', () async { - // TODO - }); - - // String userIdWS - test('to test the property `userIdWS`', () async { - // TODO - }); - - // String tenantIdWS - test('to test the property `tenantIdWS`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_feed_posts_stats200_response_test.dart b/client/test/get_feed_posts_stats200_response_test.dart deleted file mode 100644 index 4c01425..0000000 --- a/client/test/get_feed_posts_stats200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetFeedPostsStats200Response -void main() { - // final instance = GetFeedPostsStats200Response(); - - group('test GetFeedPostsStats200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // Map stats (default value: const {}) - test('to test the property `stats`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_gifs_search_response_test.dart b/client/test/get_gifs_search_response_test.dart new file mode 100644 index 0000000..e97b362 --- /dev/null +++ b/client/test/get_gifs_search_response_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetGifsSearchResponse +void main() { + // final instance = GetGifsSearchResponse(); + + group('test GetGifsSearchResponse', () { + // List> images (default value: const []) + test('to test the property `images`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_gifs_trending_response_test.dart b/client/test/get_gifs_trending_response_test.dart new file mode 100644 index 0000000..68b78fc --- /dev/null +++ b/client/test/get_gifs_trending_response_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetGifsTrendingResponse +void main() { + // final instance = GetGifsTrendingResponse(); + + group('test GetGifsTrendingResponse', () { + // List> images (default value: const []) + test('to test the property `images`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_hash_tags200_response_test.dart b/client/test/get_hash_tags200_response_test.dart deleted file mode 100644 index d19b49e..0000000 --- a/client/test/get_hash_tags200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetHashTags200Response -void main() { - // final instance = GetHashTags200Response(); - - group('test GetHashTags200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List hashTags (default value: const []) - test('to test the property `hashTags`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_moderator200_response_test.dart b/client/test/get_moderator200_response_test.dart deleted file mode 100644 index 6a9326f..0000000 --- a/client/test/get_moderator200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetModerator200Response -void main() { - // final instance = GetModerator200Response(); - - group('test GetModerator200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // Moderator moderator - test('to test the property `moderator`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_moderators200_response_test.dart b/client/test/get_moderators200_response_test.dart deleted file mode 100644 index e7acd39..0000000 --- a/client/test/get_moderators200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetModerators200Response -void main() { - // final instance = GetModerators200Response(); - - group('test GetModerators200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List moderators (default value: const []) - test('to test the property `moderators`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_notification_count200_response_test.dart b/client/test/get_notification_count200_response_test.dart deleted file mode 100644 index 10d6cf5..0000000 --- a/client/test/get_notification_count200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetNotificationCount200Response -void main() { - // final instance = GetNotificationCount200Response(); - - group('test GetNotificationCount200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // double count - test('to test the property `count`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_notifications200_response_test.dart b/client/test/get_notifications200_response_test.dart deleted file mode 100644 index 9e75caa..0000000 --- a/client/test/get_notifications200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetNotifications200Response -void main() { - // final instance = GetNotifications200Response(); - - group('test GetNotifications200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List notifications (default value: const []) - test('to test the property `notifications`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_pending_webhook_event_count200_response_test.dart b/client/test/get_pending_webhook_event_count200_response_test.dart deleted file mode 100644 index 6a01d51..0000000 --- a/client/test/get_pending_webhook_event_count200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetPendingWebhookEventCount200Response -void main() { - // final instance = GetPendingWebhookEventCount200Response(); - - group('test GetPendingWebhookEventCount200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // double count - test('to test the property `count`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_pending_webhook_events200_response_test.dart b/client/test/get_pending_webhook_events200_response_test.dart deleted file mode 100644 index 0b34bfb..0000000 --- a/client/test/get_pending_webhook_events200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetPendingWebhookEvents200Response -void main() { - // final instance = GetPendingWebhookEvents200Response(); - - group('test GetPendingWebhookEvents200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List pendingWebhookEvents (default value: const []) - test('to test the property `pendingWebhookEvents`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_public_pages_response_test.dart b/client/test/get_public_pages_response_test.dart new file mode 100644 index 0000000..b1b65e6 --- /dev/null +++ b/client/test/get_public_pages_response_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetPublicPagesResponse +void main() { + // final instance = GetPublicPagesResponse(); + + group('test GetPublicPagesResponse', () { + // String nextCursor + test('to test the property `nextCursor`', () async { + // TODO + }); + + // List pages (default value: const []) + test('to test the property `pages`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_question_config200_response_test.dart b/client/test/get_question_config200_response_test.dart deleted file mode 100644 index 0856856..0000000 --- a/client/test/get_question_config200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetQuestionConfig200Response -void main() { - // final instance = GetQuestionConfig200Response(); - - group('test GetQuestionConfig200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // QuestionConfig questionConfig - test('to test the property `questionConfig`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_question_configs200_response_test.dart b/client/test/get_question_configs200_response_test.dart deleted file mode 100644 index a451d3f..0000000 --- a/client/test/get_question_configs200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetQuestionConfigs200Response -void main() { - // final instance = GetQuestionConfigs200Response(); - - group('test GetQuestionConfigs200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List questionConfigs (default value: const []) - test('to test the property `questionConfigs`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_question_result200_response_test.dart b/client/test/get_question_result200_response_test.dart deleted file mode 100644 index fbdf545..0000000 --- a/client/test/get_question_result200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetQuestionResult200Response -void main() { - // final instance = GetQuestionResult200Response(); - - group('test GetQuestionResult200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // QuestionResult questionResult - test('to test the property `questionResult`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_question_results200_response_test.dart b/client/test/get_question_results200_response_test.dart deleted file mode 100644 index 49de554..0000000 --- a/client/test/get_question_results200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetQuestionResults200Response -void main() { - // final instance = GetQuestionResults200Response(); - - group('test GetQuestionResults200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List questionResults (default value: const []) - test('to test the property `questionResults`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_sso_users200_response_test.dart b/client/test/get_sso_users_response_test.dart similarity index 82% rename from client/test/get_sso_users200_response_test.dart rename to client/test/get_sso_users_response_test.dart index 221a915..731ddb0 100644 --- a/client/test/get_sso_users200_response_test.dart +++ b/client/test/get_sso_users_response_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for GetSSOUsers200Response +// tests for GetSSOUsersResponse void main() { - // final instance = GetSSOUsers200Response(); + // final instance = GetSSOUsersResponse(); - group('test GetSSOUsers200Response', () { + group('test GetSSOUsersResponse', () { // List users (default value: const []) test('to test the property `users`', () async { // TODO diff --git a/client/test/get_tenant200_response_test.dart b/client/test/get_tenant200_response_test.dart deleted file mode 100644 index 511b452..0000000 --- a/client/test/get_tenant200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTenant200Response -void main() { - // final instance = GetTenant200Response(); - - group('test GetTenant200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // APITenant tenant - test('to test the property `tenant`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_tenant_daily_usages200_response_test.dart b/client/test/get_tenant_daily_usages200_response_test.dart deleted file mode 100644 index f3fe6ec..0000000 --- a/client/test/get_tenant_daily_usages200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTenantDailyUsages200Response -void main() { - // final instance = GetTenantDailyUsages200Response(); - - group('test GetTenantDailyUsages200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List tenantDailyUsages (default value: const []) - test('to test the property `tenantDailyUsages`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_tenant_manual_badges_response_test.dart b/client/test/get_tenant_manual_badges_response_test.dart new file mode 100644 index 0000000..c245184 --- /dev/null +++ b/client/test/get_tenant_manual_badges_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetTenantManualBadgesResponse +void main() { + // final instance = GetTenantManualBadgesResponse(); + + group('test GetTenantManualBadgesResponse', () { + // List badges (default value: const []) + test('to test the property `badges`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_tenant_package200_response_test.dart b/client/test/get_tenant_package200_response_test.dart deleted file mode 100644 index ce6c87d..0000000 --- a/client/test/get_tenant_package200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTenantPackage200Response -void main() { - // final instance = GetTenantPackage200Response(); - - group('test GetTenantPackage200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // TenantPackage tenantPackage - test('to test the property `tenantPackage`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_tenant_packages200_response_test.dart b/client/test/get_tenant_packages200_response_test.dart deleted file mode 100644 index d0ba024..0000000 --- a/client/test/get_tenant_packages200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTenantPackages200Response -void main() { - // final instance = GetTenantPackages200Response(); - - group('test GetTenantPackages200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List tenantPackages (default value: const []) - test('to test the property `tenantPackages`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_tenant_user200_response_test.dart b/client/test/get_tenant_user200_response_test.dart deleted file mode 100644 index 6f3e877..0000000 --- a/client/test/get_tenant_user200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTenantUser200Response -void main() { - // final instance = GetTenantUser200Response(); - - group('test GetTenantUser200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // User tenantUser - test('to test the property `tenantUser`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_tenant_users200_response_test.dart b/client/test/get_tenant_users200_response_test.dart deleted file mode 100644 index 5796259..0000000 --- a/client/test/get_tenant_users200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTenantUsers200Response -void main() { - // final instance = GetTenantUsers200Response(); - - group('test GetTenantUsers200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List tenantUsers (default value: const []) - test('to test the property `tenantUsers`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_tenants200_response_test.dart b/client/test/get_tenants200_response_test.dart deleted file mode 100644 index cbde55c..0000000 --- a/client/test/get_tenants200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTenants200Response -void main() { - // final instance = GetTenants200Response(); - - group('test GetTenants200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List tenants (default value: const []) - test('to test the property `tenants`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_ticket200_response_test.dart b/client/test/get_ticket200_response_test.dart deleted file mode 100644 index 588d31b..0000000 --- a/client/test/get_ticket200_response_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTicket200Response -void main() { - // final instance = GetTicket200Response(); - - group('test GetTicket200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // APITicketDetail ticket - test('to test the property `ticket`', () async { - // TODO - }); - - // List availableStates (default value: const []) - test('to test the property `availableStates`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_tickets200_response_test.dart b/client/test/get_tickets200_response_test.dart deleted file mode 100644 index 4af748b..0000000 --- a/client/test/get_tickets200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetTickets200Response -void main() { - // final instance = GetTickets200Response(); - - group('test GetTickets200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List tickets (default value: const []) - test('to test the property `tickets`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_translations_response_test.dart b/client/test/get_translations_response_test.dart new file mode 100644 index 0000000..b05b4b6 --- /dev/null +++ b/client/test/get_translations_response_test.dart @@ -0,0 +1,33 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetTranslationsResponse +void main() { + // final instance = GetTranslationsResponse(); + + group('test GetTranslationsResponse', () { + // Construct a type with a set of properties K of type T + // Map translations (default value: const {}) + test('to test the property `translations`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_user200_response_test.dart b/client/test/get_user200_response_test.dart deleted file mode 100644 index eff4994..0000000 --- a/client/test/get_user200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUser200Response -void main() { - // final instance = GetUser200Response(); - - group('test GetUser200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // User user - test('to test the property `user`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_badge200_response_test.dart b/client/test/get_user_badge200_response_test.dart deleted file mode 100644 index e1b3b5a..0000000 --- a/client/test/get_user_badge200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUserBadge200Response -void main() { - // final instance = GetUserBadge200Response(); - - group('test GetUserBadge200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // UserBadge userBadge - test('to test the property `userBadge`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_badge_progress_by_id200_response_test.dart b/client/test/get_user_badge_progress_by_id200_response_test.dart deleted file mode 100644 index b997edd..0000000 --- a/client/test/get_user_badge_progress_by_id200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUserBadgeProgressById200Response -void main() { - // final instance = GetUserBadgeProgressById200Response(); - - group('test GetUserBadgeProgressById200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // UserBadgeProgress userBadgeProgress - test('to test the property `userBadgeProgress`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_badge_progress_list200_response_test.dart b/client/test/get_user_badge_progress_list200_response_test.dart deleted file mode 100644 index 7b6ba1c..0000000 --- a/client/test/get_user_badge_progress_list200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUserBadgeProgressList200Response -void main() { - // final instance = GetUserBadgeProgressList200Response(); - - group('test GetUserBadgeProgressList200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List userBadgeProgresses (default value: const []) - test('to test the property `userBadgeProgresses`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_badges200_response_test.dart b/client/test/get_user_badges200_response_test.dart deleted file mode 100644 index 1a507b8..0000000 --- a/client/test/get_user_badges200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUserBadges200Response -void main() { - // final instance = GetUserBadges200Response(); - - group('test GetUserBadges200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List userBadges (default value: const []) - test('to test the property `userBadges`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_internal_profile_response_profile_test.dart b/client/test/get_user_internal_profile_response_profile_test.dart new file mode 100644 index 0000000..d77413c --- /dev/null +++ b/client/test/get_user_internal_profile_response_profile_test.dart @@ -0,0 +1,107 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetUserInternalProfileResponseProfile +void main() { + // final instance = GetUserInternalProfileResponseProfile(); + + group('test GetUserInternalProfileResponseProfile', () { + // String commenterName + test('to test the property `commenterName`', () async { + // TODO + }); + + // DateTime firstCommentDate + test('to test the property `firstCommentDate`', () async { + // TODO + }); + + // String ipHash + test('to test the property `ipHash`', () async { + // TODO + }); + + // String countryFlag + test('to test the property `countryFlag`', () async { + // TODO + }); + + // String countryCode + test('to test the property `countryCode`', () async { + // TODO + }); + + // String websiteUrl + test('to test the property `websiteUrl`', () async { + // TODO + }); + + // String bio + test('to test the property `bio`', () async { + // TODO + }); + + // double karma + test('to test the property `karma`', () async { + // TODO + }); + + // String locale + test('to test the property `locale`', () async { + // TODO + }); + + // bool verified + test('to test the property `verified`', () async { + // TODO + }); + + // String avatarSrc + test('to test the property `avatarSrc`', () async { + // TODO + }); + + // String displayName + test('to test the property `displayName`', () async { + // TODO + }); + + // String username + test('to test the property `username`', () async { + // TODO + }); + + // String commenterEmail + test('to test the property `commenterEmail`', () async { + // TODO + }); + + // String email + test('to test the property `email`', () async { + // TODO + }); + + // String anonUserId + test('to test the property `anonUserId`', () async { + // TODO + }); + + // String userId + test('to test the property `userId`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_user_internal_profile_response_test.dart b/client/test/get_user_internal_profile_response_test.dart new file mode 100644 index 0000000..5ccb7b3 --- /dev/null +++ b/client/test/get_user_internal_profile_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetUserInternalProfileResponse +void main() { + // final instance = GetUserInternalProfileResponse(); + + group('test GetUserInternalProfileResponse', () { + // GetUserInternalProfileResponseProfile profile + test('to test the property `profile`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_user_manual_badges_response_test.dart b/client/test/get_user_manual_badges_response_test.dart new file mode 100644 index 0000000..8718557 --- /dev/null +++ b/client/test/get_user_manual_badges_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetUserManualBadgesResponse +void main() { + // final instance = GetUserManualBadgesResponse(); + + group('test GetUserManualBadgesResponse', () { + // List badges (default value: const []) + test('to test the property `badges`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_user_notification_count200_response_test.dart b/client/test/get_user_notification_count200_response_test.dart deleted file mode 100644 index 4cc3d68..0000000 --- a/client/test/get_user_notification_count200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUserNotificationCount200Response -void main() { - // final instance = GetUserNotificationCount200Response(); - - group('test GetUserNotificationCount200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // int count - test('to test the property `count`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_notifications200_response_test.dart b/client/test/get_user_notifications200_response_test.dart deleted file mode 100644 index d7cefbf..0000000 --- a/client/test/get_user_notifications200_response_test.dart +++ /dev/null @@ -1,83 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUserNotifications200Response -void main() { - // final instance = GetUserNotifications200Response(); - - group('test GetUserNotifications200Response', () { - // Construct a type with a set of properties K of type T - // Map translations (default value: const {}) - test('to test the property `translations`', () async { - // TODO - }); - - // bool isSubscribed - test('to test the property `isSubscribed`', () async { - // TODO - }); - - // bool hasMore - test('to test the property `hasMore`', () async { - // TODO - }); - - // List notifications (default value: const []) - test('to test the property `notifications`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_presence_statuses200_response_test.dart b/client/test/get_user_presence_statuses200_response_test.dart deleted file mode 100644 index 08bb9ab..0000000 --- a/client/test/get_user_presence_statuses200_response_test.dart +++ /dev/null @@ -1,68 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUserPresenceStatuses200Response -void main() { - // final instance = GetUserPresenceStatuses200Response(); - - group('test GetUserPresenceStatuses200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // Construct a type with a set of properties K of type T - // Map userIdsOnline (default value: const {}) - test('to test the property `userIdsOnline`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_reacts_public200_response_test.dart b/client/test/get_user_reacts_public200_response_test.dart deleted file mode 100644 index 6f2939e..0000000 --- a/client/test/get_user_reacts_public200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetUserReactsPublic200Response -void main() { - // final instance = GetUserReactsPublic200Response(); - - group('test GetUserReactsPublic200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // Map> reacts (default value: const {}) - test('to test the property `reacts`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_user_trust_factor_response_test.dart b/client/test/get_user_trust_factor_response_test.dart new file mode 100644 index 0000000..8a090ee --- /dev/null +++ b/client/test/get_user_trust_factor_response_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetUserTrustFactorResponse +void main() { + // final instance = GetUserTrustFactorResponse(); + + group('test GetUserTrustFactorResponse', () { + // double manualTrustFactor + test('to test the property `manualTrustFactor`', () async { + // TODO + }); + + // double autoTrustFactor + test('to test the property `autoTrustFactor`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_v1_page_likes_test.dart b/client/test/get_v1_page_likes_test.dart new file mode 100644 index 0000000..5900a55 --- /dev/null +++ b/client/test/get_v1_page_likes_test.dart @@ -0,0 +1,47 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetV1PageLikes +void main() { + // final instance = GetV1PageLikes(); + + group('test GetV1PageLikes', () { + // String urlIdWS + test('to test the property `urlIdWS`', () async { + // TODO + }); + + // bool didLike + test('to test the property `didLike`', () async { + // TODO + }); + + // int commentCount + test('to test the property `commentCount`', () async { + // TODO + }); + + // int likeCount + test('to test the property `likeCount`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_v2_page_react_users_response_test.dart b/client/test/get_v2_page_react_users_response_test.dart new file mode 100644 index 0000000..c31c80e --- /dev/null +++ b/client/test/get_v2_page_react_users_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetV2PageReactUsersResponse +void main() { + // final instance = GetV2PageReactUsersResponse(); + + group('test GetV2PageReactUsersResponse', () { + // List userNames (default value: const []) + test('to test the property `userNames`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_v2_page_reacts_test.dart b/client/test/get_v2_page_reacts_test.dart new file mode 100644 index 0000000..c9ef3f7 --- /dev/null +++ b/client/test/get_v2_page_reacts_test.dart @@ -0,0 +1,38 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GetV2PageReacts +void main() { + // final instance = GetV2PageReacts(); + + group('test GetV2PageReacts', () { + // List reactedIds (default value: const []) + test('to test the property `reactedIds`', () async { + // TODO + }); + + // Construct a type with a set of properties K of type T + // Map counts (default value: const {}) + test('to test the property `counts`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/get_votes200_response_test.dart b/client/test/get_votes200_response_test.dart deleted file mode 100644 index cbe299e..0000000 --- a/client/test/get_votes200_response_test.dart +++ /dev/null @@ -1,77 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetVotes200Response -void main() { - // final instance = GetVotes200Response(); - - group('test GetVotes200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List appliedAuthorizedVotes (default value: const []) - test('to test the property `appliedAuthorizedVotes`', () async { - // TODO - }); - - // List appliedAnonymousVotes (default value: const []) - test('to test the property `appliedAnonymousVotes`', () async { - // TODO - }); - - // List pendingVotes (default value: const []) - test('to test the property `pendingVotes`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/get_votes_for_user200_response_test.dart b/client/test/get_votes_for_user200_response_test.dart deleted file mode 100644 index 329f9b2..0000000 --- a/client/test/get_votes_for_user200_response_test.dart +++ /dev/null @@ -1,77 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for GetVotesForUser200Response -void main() { - // final instance = GetVotesForUser200Response(); - - group('test GetVotesForUser200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List appliedAuthorizedVotes (default value: const []) - test('to test the property `appliedAuthorizedVotes`', () async { - // TODO - }); - - // List appliedAnonymousVotes (default value: const []) - test('to test the property `appliedAnonymousVotes`', () async { - // TODO - }); - - // List pendingVotes (default value: const []) - test('to test the property `pendingVotes`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/gif_get_large_response_test.dart b/client/test/gif_get_large_response_test.dart new file mode 100644 index 0000000..2ea6686 --- /dev/null +++ b/client/test/gif_get_large_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GifGetLargeResponse +void main() { + // final instance = GifGetLargeResponse(); + + group('test GifGetLargeResponse', () { + // String src + test('to test the property `src`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/gif_search_internal_error_test.dart b/client/test/gif_search_internal_error_test.dart new file mode 100644 index 0000000..c095634 --- /dev/null +++ b/client/test/gif_search_internal_error_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GifSearchInternalError +void main() { + // final instance = GifSearchInternalError(); + + group('test GifSearchInternalError', () { + // String code + test('to test the property `code`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/gif_search_response_images_inner_inner_test.dart b/client/test/gif_search_response_images_inner_inner_test.dart new file mode 100644 index 0000000..a9f91dd --- /dev/null +++ b/client/test/gif_search_response_images_inner_inner_test.dart @@ -0,0 +1,22 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GifSearchResponseImagesInnerInner +void main() { + // final instance = GifSearchResponseImagesInnerInner(); + + group('test GifSearchResponseImagesInnerInner', () { + + }); + +} diff --git a/client/test/gif_search_response_test.dart b/client/test/gif_search_response_test.dart new file mode 100644 index 0000000..64d9344 --- /dev/null +++ b/client/test/gif_search_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for GifSearchResponse +void main() { + // final instance = GifSearchResponse(); + + group('test GifSearchResponse', () { + // List> images (default value: const []) + test('to test the property `images`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/header_account_notification_test.dart b/client/test/header_account_notification_test.dart index bec290d..a38c916 100644 --- a/client/test/header_account_notification_test.dart +++ b/client/test/header_account_notification_test.dart @@ -63,6 +63,12 @@ void main() { // TODO }); + // Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). + // String type + test('to test the property `type`', () async { + // TODO + }); + }); diff --git a/client/test/lock_comment200_response_test.dart b/client/test/lock_comment200_response_test.dart deleted file mode 100644 index 0d49286..0000000 --- a/client/test/lock_comment200_response_test.dart +++ /dev/null @@ -1,62 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for LockComment200Response -void main() { - // final instance = LockComment200Response(); - - group('test LockComment200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/moderation_api_child_comments_response_test.dart b/client/test/moderation_api_child_comments_response_test.dart new file mode 100644 index 0000000..3337fe8 --- /dev/null +++ b/client/test/moderation_api_child_comments_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationAPIChildCommentsResponse +void main() { + // final instance = ModerationAPIChildCommentsResponse(); + + group('test ModerationAPIChildCommentsResponse', () { + // List comments (default value: const []) + test('to test the property `comments`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_api_comment_log_test.dart b/client/test/moderation_api_comment_log_test.dart new file mode 100644 index 0000000..568cf88 --- /dev/null +++ b/client/test/moderation_api_comment_log_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationAPICommentLog +void main() { + // final instance = ModerationAPICommentLog(); + + group('test ModerationAPICommentLog', () { + // DateTime date + test('to test the property `date`', () async { + // TODO + }); + + // String username + test('to test the property `username`', () async { + // TODO + }); + + // String actionName + test('to test the property `actionName`', () async { + // TODO + }); + + // String messageHTML + test('to test the property `messageHTML`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_api_comment_response_test.dart b/client/test/moderation_api_comment_response_test.dart new file mode 100644 index 0000000..048ff6c --- /dev/null +++ b/client/test/moderation_api_comment_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationAPICommentResponse +void main() { + // final instance = ModerationAPICommentResponse(); + + group('test ModerationAPICommentResponse', () { + // ModerationAPIComment comment + test('to test the property `comment`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_api_comment_test.dart b/client/test/moderation_api_comment_test.dart new file mode 100644 index 0000000..ced6c58 --- /dev/null +++ b/client/test/moderation_api_comment_test.dart @@ -0,0 +1,232 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationAPIComment +void main() { + // final instance = ModerationAPIComment(); + + group('test ModerationAPIComment', () { + // bool isLocalDeleted + test('to test the property `isLocalDeleted`', () async { + // TODO + }); + + // double replyCount + test('to test the property `replyCount`', () async { + // TODO + }); + + // List feedbackResults (default value: const []) + test('to test the property `feedbackResults`', () async { + // TODO + }); + + // bool isVotedUp + test('to test the property `isVotedUp`', () async { + // TODO + }); + + // bool isVotedDown + test('to test the property `isVotedDown`', () async { + // TODO + }); + + // String myVoteId + test('to test the property `myVoteId`', () async { + // TODO + }); + + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String tenantId + test('to test the property `tenantId`', () async { + // TODO + }); + + // String urlId + test('to test the property `urlId`', () async { + // TODO + }); + + // String url + test('to test the property `url`', () async { + // TODO + }); + + // String pageTitle + test('to test the property `pageTitle`', () async { + // TODO + }); + + // String userId + test('to test the property `userId`', () async { + // TODO + }); + + // String anonUserId + test('to test the property `anonUserId`', () async { + // TODO + }); + + // String commenterName + test('to test the property `commenterName`', () async { + // TODO + }); + + // String commenterLink + test('to test the property `commenterLink`', () async { + // TODO + }); + + // String commentHTML + test('to test the property `commentHTML`', () async { + // TODO + }); + + // String parentId + test('to test the property `parentId`', () async { + // TODO + }); + + // DateTime date + test('to test the property `date`', () async { + // TODO + }); + + // String localDateString + test('to test the property `localDateString`', () async { + // TODO + }); + + // double votes + test('to test the property `votes`', () async { + // TODO + }); + + // double votesUp + test('to test the property `votesUp`', () async { + // TODO + }); + + // double votesDown + test('to test the property `votesDown`', () async { + // TODO + }); + + // DateTime expireAt + test('to test the property `expireAt`', () async { + // TODO + }); + + // bool reviewed + test('to test the property `reviewed`', () async { + // TODO + }); + + // String avatarSrc + test('to test the property `avatarSrc`', () async { + // TODO + }); + + // bool isSpam + test('to test the property `isSpam`', () async { + // TODO + }); + + // bool permNotSpam + test('to test the property `permNotSpam`', () async { + // TODO + }); + + // bool hasLinks + test('to test the property `hasLinks`', () async { + // TODO + }); + + // bool hasCode + test('to test the property `hasCode`', () async { + // TODO + }); + + // bool approved + test('to test the property `approved`', () async { + // TODO + }); + + // String locale + test('to test the property `locale`', () async { + // TODO + }); + + // bool isBannedUser + test('to test the property `isBannedUser`', () async { + // TODO + }); + + // bool isByAdmin + test('to test the property `isByAdmin`', () async { + // TODO + }); + + // bool isByModerator + test('to test the property `isByModerator`', () async { + // TODO + }); + + // bool isPinned + test('to test the property `isPinned`', () async { + // TODO + }); + + // bool isLocked + test('to test the property `isLocked`', () async { + // TODO + }); + + // double flagCount + test('to test the property `flagCount`', () async { + // TODO + }); + + // String displayLabel + test('to test the property `displayLabel`', () async { + // TODO + }); + + // List badges (default value: const []) + test('to test the property `badges`', () async { + // TODO + }); + + // bool verified + test('to test the property `verified`', () async { + // TODO + }); + + // List feedbackIds (default value: const []) + test('to test the property `feedbackIds`', () async { + // TODO + }); + + // bool isDeleted + test('to test the property `isDeleted`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_api_count_comments_response_test.dart b/client/test/moderation_api_count_comments_response_test.dart new file mode 100644 index 0000000..bb3515c --- /dev/null +++ b/client/test/moderation_api_count_comments_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationAPICountCommentsResponse +void main() { + // final instance = ModerationAPICountCommentsResponse(); + + group('test ModerationAPICountCommentsResponse', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // double count + test('to test the property `count`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_api_get_comment_ids_response_test.dart b/client/test/moderation_api_get_comment_ids_response_test.dart new file mode 100644 index 0000000..a96deb5 --- /dev/null +++ b/client/test/moderation_api_get_comment_ids_response_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationAPIGetCommentIdsResponse +void main() { + // final instance = ModerationAPIGetCommentIdsResponse(); + + group('test ModerationAPIGetCommentIdsResponse', () { + // List ids (default value: const []) + test('to test the property `ids`', () async { + // TODO + }); + + // bool hasMore + test('to test the property `hasMore`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_api_get_comments_response_test.dart b/client/test/moderation_api_get_comments_response_test.dart new file mode 100644 index 0000000..a60c57c --- /dev/null +++ b/client/test/moderation_api_get_comments_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationAPIGetCommentsResponse +void main() { + // final instance = ModerationAPIGetCommentsResponse(); + + group('test ModerationAPIGetCommentsResponse', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // Object translations + test('to test the property `translations`', () async { + // TODO + }); + + // List comments (default value: const []) + test('to test the property `comments`', () async { + // TODO + }); + + // ModerationFilter moderationFilter + test('to test the property `moderationFilter`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_api_get_logs_response_test.dart b/client/test/moderation_api_get_logs_response_test.dart new file mode 100644 index 0000000..6268419 --- /dev/null +++ b/client/test/moderation_api_get_logs_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationAPIGetLogsResponse +void main() { + // final instance = ModerationAPIGetLogsResponse(); + + group('test ModerationAPIGetLogsResponse', () { + // List logs (default value: const []) + test('to test the property `logs`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_api_test.dart b/client/test/moderation_api_test.dart new file mode 100644 index 0000000..5eb7548 --- /dev/null +++ b/client/test/moderation_api_test.dart @@ -0,0 +1,236 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + + +/// tests for ModerationApi +void main() { + // final instance = ModerationApi(); + + group('tests for ModerationApi', () { + //Future deleteModerationVote(String commentId, String voteId, { String sso }) async + test('test deleteModerationVote', () async { + // TODO + }); + + //Future getApiComments({ double page, double count, String textSearch, String byIPFromComment, String filters, String searchFilters, String sorts, bool demo, String sso }) async + test('test getApiComments', () async { + // TODO + }); + + //Future getApiExportStatus({ String batchJobId, String sso }) async + test('test getApiExportStatus', () async { + // TODO + }); + + //Future getApiIds({ String textSearch, String byIPFromComment, String filters, String searchFilters, String afterId, bool demo, String sso }) async + test('test getApiIds', () async { + // TODO + }); + + //Future getBanUsersFromComment(String commentId, { String sso }) async + test('test getBanUsersFromComment', () async { + // TODO + }); + + //Future getCommentBanStatus(String commentId, { String sso }) async + test('test getCommentBanStatus', () async { + // TODO + }); + + //Future getCommentChildren(String commentId, { String sso }) async + test('test getCommentChildren', () async { + // TODO + }); + + //Future getCount({ String textSearch, String byIPFromComment, String filter, String searchFilters, bool demo, String sso }) async + test('test getCount', () async { + // TODO + }); + + //Future getCounts({ String sso }) async + test('test getCounts', () async { + // TODO + }); + + //Future getLogs(String commentId, { String sso }) async + test('test getLogs', () async { + // TODO + }); + + //Future getManualBadges({ String sso }) async + test('test getManualBadges', () async { + // TODO + }); + + //Future getManualBadgesForUser({ String badgesUserId, String commentId, String sso }) async + test('test getManualBadgesForUser', () async { + // TODO + }); + + //Future getModerationComment(String commentId, { bool includeEmail, bool includeIP, String sso }) async + test('test getModerationComment', () async { + // TODO + }); + + //Future getModerationCommentText(String commentId, { String sso }) async + test('test getModerationCommentText', () async { + // TODO + }); + + //Future getPreBanSummary(String commentId, { bool includeByUserIdAndEmail, bool includeByIP, bool includeByEmailDomain, String sso }) async + test('test getPreBanSummary', () async { + // TODO + }); + + //Future getSearchCommentsSummary({ String value, String filters, String searchFilters, String sso }) async + test('test getSearchCommentsSummary', () async { + // TODO + }); + + //Future getSearchPages({ String value, String sso }) async + test('test getSearchPages', () async { + // TODO + }); + + //Future getSearchSites({ String value, String sso }) async + test('test getSearchSites', () async { + // TODO + }); + + //Future getSearchSuggest({ String textSearch, String sso }) async + test('test getSearchSuggest', () async { + // TODO + }); + + //Future getSearchUsers({ String value, String sso }) async + test('test getSearchUsers', () async { + // TODO + }); + + //Future getTrustFactor({ String userId, String sso }) async + test('test getTrustFactor', () async { + // TODO + }); + + //Future getUserBanPreference({ String sso }) async + test('test getUserBanPreference', () async { + // TODO + }); + + //Future getUserInternalProfile({ String commentId, String sso }) async + test('test getUserInternalProfile', () async { + // TODO + }); + + //Future postAdjustCommentVotes(String commentId, AdjustCommentVotesParams adjustCommentVotesParams, { String sso }) async + test('test postAdjustCommentVotes', () async { + // TODO + }); + + //Future postApiExport({ String textSearch, String byIPFromComment, String filters, String searchFilters, String sorts, String sso }) async + test('test postApiExport', () async { + // TODO + }); + + //Future postBanUserFromComment(String commentId, { bool banEmail, bool banEmailDomain, bool banIP, bool deleteAllUsersComments, String bannedUntil, bool isShadowBan, String updateId, String banReason, String sso }) async + test('test postBanUserFromComment', () async { + // TODO + }); + + //Future postBanUserUndo(BanUserUndoParams banUserUndoParams, { String sso }) async + test('test postBanUserUndo', () async { + // TODO + }); + + //Future postBulkPreBanSummary(BulkPreBanParams bulkPreBanParams, { bool includeByUserIdAndEmail, bool includeByIP, bool includeByEmailDomain, String sso }) async + test('test postBulkPreBanSummary', () async { + // TODO + }); + + //Future postCommentsByIds(CommentsByIdsParams commentsByIdsParams, { String sso }) async + test('test postCommentsByIds', () async { + // TODO + }); + + //Future postFlagComment(String commentId, { String sso }) async + test('test postFlagComment', () async { + // TODO + }); + + //Future postRemoveComment(String commentId, { String sso }) async + test('test postRemoveComment', () async { + // TODO + }); + + //Future postRestoreDeletedComment(String commentId, { String sso }) async + test('test postRestoreDeletedComment', () async { + // TODO + }); + + //Future postSetCommentApprovalStatus(String commentId, { bool approved, String sso }) async + test('test postSetCommentApprovalStatus', () async { + // TODO + }); + + //Future postSetCommentReviewStatus(String commentId, { bool reviewed, String sso }) async + test('test postSetCommentReviewStatus', () async { + // TODO + }); + + //Future postSetCommentSpamStatus(String commentId, { bool spam, bool permNotSpam, String sso }) async + test('test postSetCommentSpamStatus', () async { + // TODO + }); + + //Future postSetCommentText(String commentId, SetCommentTextParams setCommentTextParams, { String sso }) async + test('test postSetCommentText', () async { + // TODO + }); + + //Future postUnFlagComment(String commentId, { String sso }) async + test('test postUnFlagComment', () async { + // TODO + }); + + //Future postVote(String commentId, { String direction, String sso }) async + test('test postVote', () async { + // TODO + }); + + //Future putAwardBadge(String badgeId, { String userId, String commentId, String broadcastId, String sso }) async + test('test putAwardBadge', () async { + // TODO + }); + + //Future putCloseThread(String urlId, { String sso }) async + test('test putCloseThread', () async { + // TODO + }); + + //Future putRemoveBadge(String badgeId, { String userId, String commentId, String broadcastId, String sso }) async + test('test putRemoveBadge', () async { + // TODO + }); + + //Future putReopenThread(String urlId, { String sso }) async + test('test putReopenThread', () async { + // TODO + }); + + //Future setTrustFactor({ String userId, String trustFactor, String sso }) async + test('test setTrustFactor', () async { + // TODO + }); + + }); +} diff --git a/client/test/moderation_comment_search_response_test.dart b/client/test/moderation_comment_search_response_test.dart new file mode 100644 index 0000000..6d71d5a --- /dev/null +++ b/client/test/moderation_comment_search_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationCommentSearchResponse +void main() { + // final instance = ModerationCommentSearchResponse(); + + group('test ModerationCommentSearchResponse', () { + // int commentCount + test('to test the property `commentCount`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_export_response_test.dart b/client/test/moderation_export_response_test.dart new file mode 100644 index 0000000..8d2b034 --- /dev/null +++ b/client/test/moderation_export_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationExportResponse +void main() { + // final instance = ModerationExportResponse(); + + group('test ModerationExportResponse', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // String batchJobId + test('to test the property `batchJobId`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_export_status_response_test.dart b/client/test/moderation_export_status_response_test.dart new file mode 100644 index 0000000..c9132c2 --- /dev/null +++ b/client/test/moderation_export_status_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationExportStatusResponse +void main() { + // final instance = ModerationExportStatusResponse(); + + group('test ModerationExportStatusResponse', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // String jobStatus + test('to test the property `jobStatus`', () async { + // TODO + }); + + // int recordCount + test('to test the property `recordCount`', () async { + // TODO + }); + + // String downloadUrl + test('to test the property `downloadUrl`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_filter_test.dart b/client/test/moderation_filter_test.dart new file mode 100644 index 0000000..f634a87 --- /dev/null +++ b/client/test/moderation_filter_test.dart @@ -0,0 +1,84 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationFilter +void main() { + // final instance = ModerationFilter(); + + group('test ModerationFilter', () { + // bool reviewed + test('to test the property `reviewed`', () async { + // TODO + }); + + // bool approved + test('to test the property `approved`', () async { + // TODO + }); + + // bool isSpam + test('to test the property `isSpam`', () async { + // TODO + }); + + // bool isBannedUser + test('to test the property `isBannedUser`', () async { + // TODO + }); + + // bool isLocked + test('to test the property `isLocked`', () async { + // TODO + }); + + // double flagCountGt + test('to test the property `flagCountGt`', () async { + // TODO + }); + + // String userId + test('to test the property `userId`', () async { + // TODO + }); + + // String urlId + test('to test the property `urlId`', () async { + // TODO + }); + + // String domain + test('to test the property `domain`', () async { + // TODO + }); + + // List moderationGroupIds (default value: const []) + test('to test the property `moderationGroupIds`', () async { + // TODO + }); + + // Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. + // List commentTextSearch (default value: const []) + test('to test the property `commentTextSearch`', () async { + // TODO + }); + + // Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. + // String exactCommentText + test('to test the property `exactCommentText`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_page_search_projected_test.dart b/client/test/moderation_page_search_projected_test.dart new file mode 100644 index 0000000..4ff0295 --- /dev/null +++ b/client/test/moderation_page_search_projected_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationPageSearchProjected +void main() { + // final instance = ModerationPageSearchProjected(); + + group('test ModerationPageSearchProjected', () { + // String urlId + test('to test the property `urlId`', () async { + // TODO + }); + + // String url + test('to test the property `url`', () async { + // TODO + }); + + // String title + test('to test the property `title`', () async { + // TODO + }); + + // double commentCount + test('to test the property `commentCount`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_page_search_response_test.dart b/client/test/moderation_page_search_response_test.dart new file mode 100644 index 0000000..51b5526 --- /dev/null +++ b/client/test/moderation_page_search_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationPageSearchResponse +void main() { + // final instance = ModerationPageSearchResponse(); + + group('test ModerationPageSearchResponse', () { + // List pages (default value: const []) + test('to test the property `pages`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_site_search_projected_test.dart b/client/test/moderation_site_search_projected_test.dart new file mode 100644 index 0000000..7abf44f --- /dev/null +++ b/client/test/moderation_site_search_projected_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationSiteSearchProjected +void main() { + // final instance = ModerationSiteSearchProjected(); + + group('test ModerationSiteSearchProjected', () { + // String domain + test('to test the property `domain`', () async { + // TODO + }); + + // String logoSrc100px + test('to test the property `logoSrc100px`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_site_search_response_test.dart b/client/test/moderation_site_search_response_test.dart new file mode 100644 index 0000000..ae97212 --- /dev/null +++ b/client/test/moderation_site_search_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationSiteSearchResponse +void main() { + // final instance = ModerationSiteSearchResponse(); + + group('test ModerationSiteSearchResponse', () { + // List sites (default value: const []) + test('to test the property `sites`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_suggest_response_test.dart b/client/test/moderation_suggest_response_test.dart new file mode 100644 index 0000000..627570b --- /dev/null +++ b/client/test/moderation_suggest_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationSuggestResponse +void main() { + // final instance = ModerationSuggestResponse(); + + group('test ModerationSuggestResponse', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // List pages (default value: const []) + test('to test the property `pages`', () async { + // TODO + }); + + // List users (default value: const []) + test('to test the property `users`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_user_search_projected_test.dart b/client/test/moderation_user_search_projected_test.dart new file mode 100644 index 0000000..e66f665 --- /dev/null +++ b/client/test/moderation_user_search_projected_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationUserSearchProjected +void main() { + // final instance = ModerationUserSearchProjected(); + + group('test ModerationUserSearchProjected', () { + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String username + test('to test the property `username`', () async { + // TODO + }); + + // String displayName + test('to test the property `displayName`', () async { + // TODO + }); + + // String avatarSrc + test('to test the property `avatarSrc`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/moderation_user_search_response_test.dart b/client/test/moderation_user_search_response_test.dart new file mode 100644 index 0000000..98d905f --- /dev/null +++ b/client/test/moderation_user_search_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for ModerationUserSearchResponse +void main() { + // final instance = ModerationUserSearchResponse(); + + group('test ModerationUserSearchResponse', () { + // List users (default value: const []) + test('to test the property `users`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/page_user_entry_test.dart b/client/test/page_user_entry_test.dart new file mode 100644 index 0000000..aff3413 --- /dev/null +++ b/client/test/page_user_entry_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PageUserEntry +void main() { + // final instance = PageUserEntry(); + + group('test PageUserEntry', () { + // bool isPrivate + test('to test the property `isPrivate`', () async { + // TODO + }); + + // String avatarSrc + test('to test the property `avatarSrc`', () async { + // TODO + }); + + // String displayName + test('to test the property `displayName`', () async { + // TODO + }); + + // String id + test('to test the property `id`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/page_users_info_response_test.dart b/client/test/page_users_info_response_test.dart new file mode 100644 index 0000000..d932aa0 --- /dev/null +++ b/client/test/page_users_info_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PageUsersInfoResponse +void main() { + // final instance = PageUsersInfoResponse(); + + group('test PageUsersInfoResponse', () { + // List users (default value: const []) + test('to test the property `users`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/page_users_offline_response_test.dart b/client/test/page_users_offline_response_test.dart new file mode 100644 index 0000000..5cf354c --- /dev/null +++ b/client/test/page_users_offline_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PageUsersOfflineResponse +void main() { + // final instance = PageUsersOfflineResponse(); + + group('test PageUsersOfflineResponse', () { + // String nextAfterUserId + test('to test the property `nextAfterUserId`', () async { + // TODO + }); + + // String nextAfterName + test('to test the property `nextAfterName`', () async { + // TODO + }); + + // List users (default value: const []) + test('to test the property `users`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/page_users_online_response_test.dart b/client/test/page_users_online_response_test.dart new file mode 100644 index 0000000..e3ada81 --- /dev/null +++ b/client/test/page_users_online_response_test.dart @@ -0,0 +1,52 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PageUsersOnlineResponse +void main() { + // final instance = PageUsersOnlineResponse(); + + group('test PageUsersOnlineResponse', () { + // String nextAfterUserId + test('to test the property `nextAfterUserId`', () async { + // TODO + }); + + // String nextAfterName + test('to test the property `nextAfterName`', () async { + // TODO + }); + + // double totalCount + test('to test the property `totalCount`', () async { + // TODO + }); + + // double anonCount + test('to test the property `anonCount`', () async { + // TODO + }); + + // List users (default value: const []) + test('to test the property `users`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/pages_sort_by_test.dart b/client/test/pages_sort_by_test.dart new file mode 100644 index 0000000..7d950c3 --- /dev/null +++ b/client/test/pages_sort_by_test.dart @@ -0,0 +1,21 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PagesSortBy +void main() { + + group('test PagesSortBy', () { + + }); + +} diff --git a/client/test/patch_domain_config_response_test.dart b/client/test/patch_domain_config_response_test.dart new file mode 100644 index 0000000..c096418 --- /dev/null +++ b/client/test/patch_domain_config_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PatchDomainConfigResponse +void main() { + // final instance = PatchDomainConfigResponse(); + + group('test PatchDomainConfigResponse', () { + // Object configuration + test('to test the property `configuration`', () async { + // TODO + }); + + // Object status + test('to test the property `status`', () async { + // TODO + }); + + // String reason + test('to test the property `reason`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/pin_comment200_response_test.dart b/client/test/pin_comment200_response_test.dart deleted file mode 100644 index 258978d..0000000 --- a/client/test/pin_comment200_response_test.dart +++ /dev/null @@ -1,68 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for PinComment200Response -void main() { - // final instance = PinComment200Response(); - - group('test PinComment200Response', () { - // Construct a type with a set of properties K of type T - // Map commentPositions (default value: const {}) - test('to test the property `commentPositions`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/post_remove_comment_response_test.dart b/client/test/post_remove_comment_response_test.dart new file mode 100644 index 0000000..fa9700f --- /dev/null +++ b/client/test/post_remove_comment_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PostRemoveCommentResponse +void main() { + // final instance = PostRemoveCommentResponse(); + + group('test PostRemoveCommentResponse', () { + // String action + test('to test the property `action`', () async { + // TODO + }); + + // String status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/pre_ban_summary_test.dart b/client/test/pre_ban_summary_test.dart new file mode 100644 index 0000000..dc6b135 --- /dev/null +++ b/client/test/pre_ban_summary_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PreBanSummary +void main() { + // final instance = PreBanSummary(); + + group('test PreBanSummary', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // List usernames (default value: const []) + test('to test the property `usernames`', () async { + // TODO + }); + + // double count + test('to test the property `count`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/public_api_test.dart b/client/test/public_api_test.dart index c411a40..63dd83f 100644 --- a/client/test/public_api_test.dart +++ b/client/test/public_api_test.dart @@ -17,179 +17,272 @@ void main() { // final instance = PublicApi(); group('tests for PublicApi', () { - //Future blockFromCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String sso }) async + //Future blockFromCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String sso }) async test('test blockFromCommentPublic', () async { // TODO }); - //Future checkedCommentsForBlocked(String tenantId, String commentIds, { String sso }) async + //Future checkedCommentsForBlocked(String tenantId, String commentIds, { String sso }) async test('test checkedCommentsForBlocked', () async { // TODO }); - //Future createCommentPublic(String tenantId, String urlId, String broadcastId, CommentData commentData, { String sessionId, String sso }) async + //Future createCommentPublic(String tenantId, String urlId, String broadcastId, CommentData commentData, { String sessionId, String sso }) async test('test createCommentPublic', () async { // TODO }); - //Future createFeedPostPublic(String tenantId, CreateFeedPostParams createFeedPostParams, { String broadcastId, String sso }) async + //Future createFeedPostPublic(String tenantId, CreateFeedPostParams createFeedPostParams, { String broadcastId, String sso }) async test('test createFeedPostPublic', () async { // TODO }); - //Future deleteCommentPublic(String tenantId, String commentId, String broadcastId, { String editKey, String sso }) async + //Future createV1PageReact(String tenantId, String urlId, { String title }) async + test('test createV1PageReact', () async { + // TODO + }); + + //Future createV2PageReact(String tenantId, String urlId, String id, { String title }) async + test('test createV2PageReact', () async { + // TODO + }); + + //Future deleteCommentPublic(String tenantId, String commentId, String broadcastId, { String editKey, String sso }) async test('test deleteCommentPublic', () async { // TODO }); - //Future deleteCommentVote(String tenantId, String commentId, String voteId, String urlId, String broadcastId, { String editKey, String sso }) async + //Future deleteCommentVote(String tenantId, String commentId, String voteId, String urlId, String broadcastId, { String editKey, String sso }) async test('test deleteCommentVote', () async { // TODO }); - //Future deleteFeedPostPublic(String tenantId, String postId, { String broadcastId, String sso }) async + //Future deleteFeedPostPublic(String tenantId, String postId, { String broadcastId, String sso }) async test('test deleteFeedPostPublic', () async { // TODO }); - //Future flagCommentPublic(String tenantId, String commentId, bool isFlagged, { String sso }) async + //Future deleteV1PageReact(String tenantId, String urlId) async + test('test deleteV1PageReact', () async { + // TODO + }); + + //Future deleteV2PageReact(String tenantId, String urlId, String id) async + test('test deleteV2PageReact', () async { + // TODO + }); + + //Future flagCommentPublic(String tenantId, String commentId, bool isFlagged, { String sso }) async test('test flagCommentPublic', () async { // TODO }); - //Future getCommentText(String tenantId, String commentId, { String editKey, String sso }) async + //Future getCommentText(String tenantId, String commentId, { String editKey, String sso }) async test('test getCommentText', () async { // TODO }); - //Future getCommentVoteUserNames(String tenantId, String commentId, int dir, { String sso }) async + //Future getCommentVoteUserNames(String tenantId, String commentId, int dir, { String sso }) async test('test getCommentVoteUserNames', () async { // TODO }); + //Future getCommentsForUser({ String userId, SortDirections direction, String repliesToUserId, double page, bool includei10n, String locale, bool isCrawler }) async + test('test getCommentsForUser', () async { + // TODO + }); + // req tenantId urlId // - //Future getCommentsPublic(String tenantId, String urlId, { int page, SortDirections direction, String sso, int skip, int skipChildren, int limit, int limitChildren, bool countChildren, String fetchPageForCommentId, bool includeConfig, bool countAll, bool includei10n, String locale, String modules, bool isCrawler, bool includeNotificationCount, bool asTree, int maxTreeDepth, bool useFullTranslationIds, String parentId, String searchText, List hashTags, String userId, String customConfigStr, String afterCommentId, String beforeCommentId }) async + //Future getCommentsPublic(String tenantId, String urlId, { int page, SortDirections direction, String sso, int skip, int skipChildren, int limit, int limitChildren, bool countChildren, String fetchPageForCommentId, bool includeConfig, bool countAll, bool includei10n, String locale, String modules, bool isCrawler, bool includeNotificationCount, bool asTree, int maxTreeDepth, bool useFullTranslationIds, String parentId, String searchText, List hashTags, String userId, String customConfigStr, String afterCommentId, String beforeCommentId }) async test('test getCommentsPublic', () async { // TODO }); // req tenantId urlId userIdWS // - //Future getEventLog(String tenantId, String urlId, String userIdWS, int startTime, int endTime) async + //Future getEventLog(String tenantId, String urlId, String userIdWS, int startTime, { int endTime }) async test('test getEventLog', () async { // TODO }); // req tenantId afterId // - //Future getFeedPostsPublic(String tenantId, { String afterId, int limit, List tags, String sso, bool isCrawler, bool includeUserInfo }) async + //Future getFeedPostsPublic(String tenantId, { String afterId, int limit, List tags, String sso, bool isCrawler, bool includeUserInfo }) async test('test getFeedPostsPublic', () async { // TODO }); - //Future getFeedPostsStats(String tenantId, List postIds, { String sso }) async + //Future getFeedPostsStats(String tenantId, List postIds, { String sso }) async test('test getFeedPostsStats', () async { // TODO }); + //Future getGifLarge(String tenantId, String largeInternalURLSanitized) async + test('test getGifLarge', () async { + // TODO + }); + + //Future getGifsSearch(String tenantId, String search, { String locale, String rating, double page }) async + test('test getGifsSearch', () async { + // TODO + }); + + //Future getGifsTrending(String tenantId, { String locale, String rating, double page }) async + test('test getGifsTrending', () async { + // TODO + }); + // req tenantId urlId userIdWS // - //Future getGlobalEventLog(String tenantId, String urlId, String userIdWS, int startTime, int endTime) async + //Future getGlobalEventLog(String tenantId, String urlId, String userIdWS, int startTime, { int endTime }) async test('test getGlobalEventLog', () async { // TODO }); - //Future getUserNotificationCount(String tenantId, { String sso }) async + // Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. + // + //Future getOfflineUsers(String tenantId, String urlId, { String afterName, String afterUserId }) async + test('test getOfflineUsers', () async { + // TODO + }); + + // Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + // + //Future getOnlineUsers(String tenantId, String urlId, { String afterName, String afterUserId }) async + test('test getOnlineUsers', () async { + // TODO + }); + + // List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. + // + //Future getPagesPublic(String tenantId, { String cursor, int limit, String q, PagesSortBy sortBy, bool hasComments }) async + test('test getPagesPublic', () async { + // TODO + }); + + //Future getTranslations(String namespace, String component, { String locale, bool useFullTranslationIds }) async + test('test getTranslations', () async { + // TODO + }); + + //Future getUserNotificationCount(String tenantId, { String sso }) async test('test getUserNotificationCount', () async { // TODO }); - //Future getUserNotifications(String tenantId, { int pageSize, String afterId, bool includeContext, int afterCreatedAt, bool unreadOnly, bool dmOnly, bool noDm, bool includeTranslations, String sso }) async + //Future getUserNotifications(String tenantId, { String urlId, int pageSize, String afterId, bool includeContext, int afterCreatedAt, bool unreadOnly, bool dmOnly, bool noDm, bool includeTranslations, bool includeTenantNotifications, String sso }) async test('test getUserNotifications', () async { // TODO }); - //Future getUserPresenceStatuses(String tenantId, String urlIdWS, String userIds) async + //Future getUserPresenceStatuses(String tenantId, String urlIdWS, String userIds) async test('test getUserPresenceStatuses', () async { // TODO }); - //Future getUserReactsPublic(String tenantId, { List postIds, String sso }) async + //Future getUserReactsPublic(String tenantId, { List postIds, String sso }) async test('test getUserReactsPublic', () async { // TODO }); - //Future lockComment(String tenantId, String commentId, String broadcastId, { String sso }) async + // Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). + // + //Future getUsersInfo(String tenantId, String ids) async + test('test getUsersInfo', () async { + // TODO + }); + + //Future getV1PageLikes(String tenantId, String urlId) async + test('test getV1PageLikes', () async { + // TODO + }); + + //Future getV2PageReactUsers(String tenantId, String urlId, String id) async + test('test getV2PageReactUsers', () async { + // TODO + }); + + //Future getV2PageReacts(String tenantId, String urlId) async + test('test getV2PageReacts', () async { + // TODO + }); + + //Future lockComment(String tenantId, String commentId, String broadcastId, { String sso }) async test('test lockComment', () async { // TODO }); - //Future pinComment(String tenantId, String commentId, String broadcastId, { String sso }) async + //Future logoutPublic() async + test('test logoutPublic', () async { + // TODO + }); + + //Future pinComment(String tenantId, String commentId, String broadcastId, { String sso }) async test('test pinComment', () async { // TODO }); - //Future reactFeedPostPublic(String tenantId, String postId, ReactBodyParams reactBodyParams, { bool isUndo, String broadcastId, String sso }) async + //Future reactFeedPostPublic(String tenantId, String postId, ReactBodyParams reactBodyParams, { bool isUndo, String broadcastId, String sso }) async test('test reactFeedPostPublic', () async { // TODO }); - //Future resetUserNotificationCount(String tenantId, { String sso }) async + //Future resetUserNotificationCount(String tenantId, { String sso }) async test('test resetUserNotificationCount', () async { // TODO }); - //Future resetUserNotifications(String tenantId, { String afterId, int afterCreatedAt, bool unreadOnly, bool dmOnly, bool noDm, String sso }) async + //Future resetUserNotifications(String tenantId, { String afterId, int afterCreatedAt, bool unreadOnly, bool dmOnly, bool noDm, String sso }) async test('test resetUserNotifications', () async { // TODO }); - //Future searchUsers(String tenantId, String urlId, { String usernameStartsWith, List mentionGroupIds, String sso, String searchSection }) async + //Future searchUsers(String tenantId, String urlId, { String usernameStartsWith, List mentionGroupIds, String sso, String searchSection }) async test('test searchUsers', () async { // TODO }); - //Future setCommentText(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, { String editKey, String sso }) async + //Future setCommentText(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, { String editKey, String sso }) async test('test setCommentText', () async { // TODO }); - //Future unBlockCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String sso }) async + //Future unBlockCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String sso }) async test('test unBlockCommentPublic', () async { // TODO }); - //Future unLockComment(String tenantId, String commentId, String broadcastId, { String sso }) async + //Future unLockComment(String tenantId, String commentId, String broadcastId, { String sso }) async test('test unLockComment', () async { // TODO }); - //Future unPinComment(String tenantId, String commentId, String broadcastId, { String sso }) async + //Future unPinComment(String tenantId, String commentId, String broadcastId, { String sso }) async test('test unPinComment', () async { // TODO }); - //Future updateFeedPostPublic(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, { String broadcastId, String sso }) async + //Future updateFeedPostPublic(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, { String broadcastId, String sso }) async test('test updateFeedPostPublic', () async { // TODO }); // Enable or disable notifications for a specific comment. // - //Future updateUserNotificationCommentSubscriptionStatus(String tenantId, String notificationId, String optedInOrOut, String commentId, { String sso }) async + //Future updateUserNotificationCommentSubscriptionStatus(String tenantId, String notificationId, String optedInOrOut, String commentId, { String sso }) async test('test updateUserNotificationCommentSubscriptionStatus', () async { // TODO }); // Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also // - //Future updateUserNotificationPageSubscriptionStatus(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, { String sso }) async + //Future updateUserNotificationPageSubscriptionStatus(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, { String sso }) async test('test updateUserNotificationPageSubscriptionStatus', () async { // TODO }); - //Future updateUserNotificationStatus(String tenantId, String notificationId, String newStatus, { String sso }) async + //Future updateUserNotificationStatus(String tenantId, String notificationId, String newStatus, { String sso }) async test('test updateUserNotificationStatus', () async { // TODO }); @@ -201,7 +294,7 @@ void main() { // TODO }); - //Future voteComment(String tenantId, String commentId, String urlId, String broadcastId, VoteBodyParams voteBodyParams, { String sessionId, String sso }) async + //Future voteComment(String tenantId, String commentId, String urlId, String broadcastId, VoteBodyParams voteBodyParams, { String sessionId, String sso }) async test('test voteComment', () async { // TODO }); diff --git a/client/test/public_page_test.dart b/client/test/public_page_test.dart new file mode 100644 index 0000000..f29e8ab --- /dev/null +++ b/client/test/public_page_test.dart @@ -0,0 +1,47 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PublicPage +void main() { + // final instance = PublicPage(); + + group('test PublicPage', () { + // int updatedAt + test('to test the property `updatedAt`', () async { + // TODO + }); + + // int commentCount + test('to test the property `commentCount`', () async { + // TODO + }); + + // String title + test('to test the property `title`', () async { + // TODO + }); + + // String url + test('to test the property `url`', () async { + // TODO + }); + + // String urlId + test('to test the property `urlId`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/put_domain_config_response_test.dart b/client/test/put_domain_config_response_test.dart new file mode 100644 index 0000000..ded2fcc --- /dev/null +++ b/client/test/put_domain_config_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for PutDomainConfigResponse +void main() { + // final instance = PutDomainConfigResponse(); + + group('test PutDomainConfigResponse', () { + // Object configuration + test('to test the property `configuration`', () async { + // TODO + }); + + // Object status + test('to test the property `status`', () async { + // TODO + }); + + // String reason + test('to test the property `reason`', () async { + // TODO + }); + + // String code + test('to test the property `code`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/react_feed_post_public200_response_test.dart b/client/test/react_feed_post_public200_response_test.dart deleted file mode 100644 index decf3b1..0000000 --- a/client/test/react_feed_post_public200_response_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for ReactFeedPostPublic200Response -void main() { - // final instance = ReactFeedPostPublic200Response(); - - group('test ReactFeedPostPublic200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reactType - test('to test the property `reactType`', () async { - // TODO - }); - - // bool isUndo - test('to test the property `isUndo`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/remove_comment_action_response_test.dart b/client/test/remove_comment_action_response_test.dart new file mode 100644 index 0000000..c4c3064 --- /dev/null +++ b/client/test/remove_comment_action_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for RemoveCommentActionResponse +void main() { + // final instance = RemoveCommentActionResponse(); + + group('test RemoveCommentActionResponse', () { + // String status + test('to test the property `status`', () async { + // TODO + }); + + // String action + test('to test the property `action`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/remove_user_badge_response_test.dart b/client/test/remove_user_badge_response_test.dart new file mode 100644 index 0000000..169a8af --- /dev/null +++ b/client/test/remove_user_badge_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for RemoveUserBadgeResponse +void main() { + // final instance = RemoveUserBadgeResponse(); + + group('test RemoveUserBadgeResponse', () { + // List badges (default value: const []) + test('to test the property `badges`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/render_email_template200_response_test.dart b/client/test/render_email_template200_response_test.dart deleted file mode 100644 index 2bfb6ac..0000000 --- a/client/test/render_email_template200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for RenderEmailTemplate200Response -void main() { - // final instance = RenderEmailTemplate200Response(); - - group('test RenderEmailTemplate200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String html - test('to test the property `html`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/reset_user_notifications200_response_test.dart b/client/test/reset_user_notifications200_response_test.dart deleted file mode 100644 index 65f024a..0000000 --- a/client/test/reset_user_notifications200_response_test.dart +++ /dev/null @@ -1,62 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for ResetUserNotifications200Response -void main() { - // final instance = ResetUserNotifications200Response(); - - group('test ResetUserNotifications200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/save_comment200_response_test.dart b/client/test/save_comments_bulk_response_test.dart similarity index 92% rename from client/test/save_comment200_response_test.dart rename to client/test/save_comments_bulk_response_test.dart index 9514a08..d921d38 100644 --- a/client/test/save_comment200_response_test.dart +++ b/client/test/save_comments_bulk_response_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for SaveComment200Response +// tests for SaveCommentsBulkResponse void main() { - // final instance = SaveComment200Response(); + // final instance = SaveCommentsBulkResponse(); - group('test SaveComment200Response', () { + group('test SaveCommentsBulkResponse', () { // APIStatus status test('to test the property `status`', () async { // TODO diff --git a/client/test/search_users200_response_test.dart b/client/test/search_users200_response_test.dart deleted file mode 100644 index a0537ae..0000000 --- a/client/test/search_users200_response_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchUsers200Response -void main() { - // final instance = SearchUsers200Response(); - - group('test SearchUsers200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // List sections (default value: const []) - test('to test the property `sections`', () async { - // TODO - }); - - // List users (default value: const []) - test('to test the property `users`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/search_users_result_test.dart b/client/test/search_users_result_test.dart new file mode 100644 index 0000000..f438c09 --- /dev/null +++ b/client/test/search_users_result_test.dart @@ -0,0 +1,37 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for SearchUsersResult +void main() { + // final instance = SearchUsersResult(); + + group('test SearchUsersResult', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // List sections (default value: const []) + test('to test the property `sections`', () async { + // TODO + }); + + // List users (default value: const []) + test('to test the property `users`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/set_comment_approved_response_test.dart b/client/test/set_comment_approved_response_test.dart new file mode 100644 index 0000000..75583c4 --- /dev/null +++ b/client/test/set_comment_approved_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for SetCommentApprovedResponse +void main() { + // final instance = SetCommentApprovedResponse(); + + group('test SetCommentApprovedResponse', () { + // bool didResetFlaggedCount + test('to test the property `didResetFlaggedCount`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/set_comment_text200_response_test.dart b/client/test/set_comment_text200_response_test.dart deleted file mode 100644 index 58aa617..0000000 --- a/client/test/set_comment_text200_response_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for SetCommentText200Response -void main() { - // final instance = SetCommentText200Response(); - - group('test SetCommentText200Response', () { - // SetCommentTextResult comment - test('to test the property `comment`', () async { - // TODO - }); - - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/set_comment_text_params_test.dart b/client/test/set_comment_text_params_test.dart new file mode 100644 index 0000000..88ead98 --- /dev/null +++ b/client/test/set_comment_text_params_test.dart @@ -0,0 +1,27 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for SetCommentTextParams +void main() { + // final instance = SetCommentTextParams(); + + group('test SetCommentTextParams', () { + // String comment + test('to test the property `comment`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/set_comment_text_response_test.dart b/client/test/set_comment_text_response_test.dart new file mode 100644 index 0000000..57b39d6 --- /dev/null +++ b/client/test/set_comment_text_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for SetCommentTextResponse +void main() { + // final instance = SetCommentTextResponse(); + + group('test SetCommentTextResponse', () { + // String newCommentTextHTML + test('to test the property `newCommentTextHTML`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/set_user_trust_factor_response_test.dart b/client/test/set_user_trust_factor_response_test.dart new file mode 100644 index 0000000..e303ad6 --- /dev/null +++ b/client/test/set_user_trust_factor_response_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for SetUserTrustFactorResponse +void main() { + // final instance = SetUserTrustFactorResponse(); + + group('test SetUserTrustFactorResponse', () { + // double previousManualTrustFactor + test('to test the property `previousManualTrustFactor`', () async { + // TODO + }); + + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/tenant_badge_test.dart b/client/test/tenant_badge_test.dart new file mode 100644 index 0000000..9a5e59d --- /dev/null +++ b/client/test/tenant_badge_test.dart @@ -0,0 +1,127 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for TenantBadge +void main() { + // final instance = TenantBadge(); + + group('test TenantBadge', () { + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String tenantId + test('to test the property `tenantId`', () async { + // TODO + }); + + // String createdByUserId + test('to test the property `createdByUserId`', () async { + // TODO + }); + + // DateTime createdAt + test('to test the property `createdAt`', () async { + // TODO + }); + + // bool enabled + test('to test the property `enabled`', () async { + // TODO + }); + + // String urlId + test('to test the property `urlId`', () async { + // TODO + }); + + // double type + test('to test the property `type`', () async { + // TODO + }); + + // double threshold + test('to test the property `threshold`', () async { + // TODO + }); + + // double uses + test('to test the property `uses`', () async { + // TODO + }); + + // String name + test('to test the property `name`', () async { + // TODO + }); + + // String description + test('to test the property `description`', () async { + // TODO + }); + + // String displayLabel + test('to test the property `displayLabel`', () async { + // TODO + }); + + // String displaySrc + test('to test the property `displaySrc`', () async { + // TODO + }); + + // String backgroundColor + test('to test the property `backgroundColor`', () async { + // TODO + }); + + // String borderColor + test('to test the property `borderColor`', () async { + // TODO + }); + + // String textColor + test('to test the property `textColor`', () async { + // TODO + }); + + // String cssClass + test('to test the property `cssClass`', () async { + // TODO + }); + + // double veteranUserThresholdMillis + test('to test the property `veteranUserThresholdMillis`', () async { + // TODO + }); + + // bool isAwaitingReprocess + test('to test the property `isAwaitingReprocess`', () async { + // TODO + }); + + // bool isAwaitingDeletion + test('to test the property `isAwaitingDeletion`', () async { + // TODO + }); + + // String replacesBadgeId + test('to test the property `replacesBadgeId`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/tenant_package_test.dart b/client/test/tenant_package_test.dart index 0d219a7..1214388 100644 --- a/client/test/tenant_package_test.dart +++ b/client/test/tenant_package_test.dart @@ -36,6 +36,11 @@ void main() { // TODO }); + // String templateId + test('to test the property `templateId`', () async { + // TODO + }); + // double monthlyCostUSD test('to test the property `monthlyCostUSD`', () async { // TODO diff --git a/client/test/un_block_comment_public200_response_test.dart b/client/test/un_block_comment_public200_response_test.dart deleted file mode 100644 index 091883b..0000000 --- a/client/test/un_block_comment_public200_response_test.dart +++ /dev/null @@ -1,68 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for UnBlockCommentPublic200Response -void main() { - // final instance = UnBlockCommentPublic200Response(); - - group('test UnBlockCommentPublic200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // Construct a type with a set of properties K of type T - // Map commentStatuses (default value: const {}) - test('to test the property `commentStatuses`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/update_user_badge200_response_test.dart b/client/test/update_user_badge200_response_test.dart deleted file mode 100644 index 400740a..0000000 --- a/client/test/update_user_badge200_response_test.dart +++ /dev/null @@ -1,62 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for UpdateUserBadge200Response -void main() { - // final instance = UpdateUserBadge200Response(); - - group('test UpdateUserBadge200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/update_user_notification_comment_subscription_status_response_test.dart b/client/test/update_user_notification_comment_subscription_status_response_test.dart new file mode 100644 index 0000000..24fbaf3 --- /dev/null +++ b/client/test/update_user_notification_comment_subscription_status_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for UpdateUserNotificationCommentSubscriptionStatusResponse +void main() { + // final instance = UpdateUserNotificationCommentSubscriptionStatusResponse(); + + group('test UpdateUserNotificationCommentSubscriptionStatusResponse', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // int matchedCount + test('to test the property `matchedCount`', () async { + // TODO + }); + + // int modifiedCount + test('to test the property `modifiedCount`', () async { + // TODO + }); + + // String note + test('to test the property `note`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/update_user_notification_page_subscription_status_response_test.dart b/client/test/update_user_notification_page_subscription_status_response_test.dart new file mode 100644 index 0000000..582a596 --- /dev/null +++ b/client/test/update_user_notification_page_subscription_status_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for UpdateUserNotificationPageSubscriptionStatusResponse +void main() { + // final instance = UpdateUserNotificationPageSubscriptionStatusResponse(); + + group('test UpdateUserNotificationPageSubscriptionStatusResponse', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // int matchedCount + test('to test the property `matchedCount`', () async { + // TODO + }); + + // int modifiedCount + test('to test the property `modifiedCount`', () async { + // TODO + }); + + // String note + test('to test the property `note`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/update_user_notification_status200_response_test.dart b/client/test/update_user_notification_status200_response_test.dart deleted file mode 100644 index 000f8be..0000000 --- a/client/test/update_user_notification_status200_response_test.dart +++ /dev/null @@ -1,77 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for UpdateUserNotificationStatus200Response -void main() { - // final instance = UpdateUserNotificationStatus200Response(); - - group('test UpdateUserNotificationStatus200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // int matchedCount - test('to test the property `matchedCount`', () async { - // TODO - }); - - // int modifiedCount - test('to test the property `modifiedCount`', () async { - // TODO - }); - - // String note - test('to test the property `note`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/client/test/update_user_notification_status_response_test.dart b/client/test/update_user_notification_status_response_test.dart new file mode 100644 index 0000000..f878202 --- /dev/null +++ b/client/test/update_user_notification_status_response_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for UpdateUserNotificationStatusResponse +void main() { + // final instance = UpdateUserNotificationStatusResponse(); + + group('test UpdateUserNotificationStatusResponse', () { + // APIStatus status + test('to test the property `status`', () async { + // TODO + }); + + // int matchedCount + test('to test the property `matchedCount`', () async { + // TODO + }); + + // int modifiedCount + test('to test the property `modifiedCount`', () async { + // TODO + }); + + // String note + test('to test the property `note`', () async { + // TODO + }); + + + }); + +} diff --git a/client/test/users_list_location_test.dart b/client/test/users_list_location_test.dart new file mode 100644 index 0000000..3aca387 --- /dev/null +++ b/client/test/users_list_location_test.dart @@ -0,0 +1,21 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +// tests for UsersListLocation +void main() { + + group('test UsersListLocation', () { + + }); + +} diff --git a/client/test/vote_comment200_response_test.dart b/client/test/vote_comment200_response_test.dart deleted file mode 100644 index 664752d..0000000 --- a/client/test/vote_comment200_response_test.dart +++ /dev/null @@ -1,82 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:fastcomments_dart/api.dart'; -import 'package:test/test.dart'; - -// tests for VoteComment200Response -void main() { - // final instance = VoteComment200Response(); - - group('test VoteComment200Response', () { - // APIStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String voteId - test('to test the property `voteId`', () async { - // TODO - }); - - // bool isVerified - test('to test the property `isVerified`', () async { - // TODO - }); - - // VoteResponseUser user - test('to test the property `user`', () async { - // TODO - }); - - // String editKey - test('to test the property `editKey`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String code - test('to test the property `code`', () async { - // TODO - }); - - // String secondaryCode - test('to test the property `secondaryCode`', () async { - // TODO - }); - - // int bannedUntil - test('to test the property `bannedUntil`', () async { - // TODO - }); - - // int maxCharacterLength - test('to test the property `maxCharacterLength`', () async { - // TODO - }); - - // String translatedError - test('to test the property `translatedError`', () async { - // TODO - }); - - // CustomConfigParameters customConfig - test('to test the property `customConfig`', () async { - // TODO - }); - - - }); - -} diff --git a/sso_tests/.gitignore b/sso_tests/.gitignore new file mode 100644 index 0000000..05d0295 --- /dev/null +++ b/sso_tests/.gitignore @@ -0,0 +1,2 @@ +.dart_tool/ +pubspec.lock diff --git a/sso_tests/pubspec.yaml b/sso_tests/pubspec.yaml new file mode 100644 index 0000000..daca677 --- /dev/null +++ b/sso_tests/pubspec.yaml @@ -0,0 +1,17 @@ +name: fastcomments_dart_sso_tests +description: Hand-written SSO unit + integration tests for the FastComments Dart SDK. +publish_to: none +version: 1.0.0 + +environment: + sdk: '>=2.12.0 <4.0.0' + +dependencies: + # The generated client package (provides PublicApi, models, etc.). + fastcomments_dart: + path: ../client + # Required by the hand-written sso/ helpers (Hmac/sha256). + crypto: '>=3.0.0 <4.0.0' + +dev_dependencies: + test: '>=1.24.0 <2.0.0' diff --git a/sso_tests/test/sso_integration_test.dart b/sso_tests/test/sso_integration_test.dart new file mode 100644 index 0000000..8ba5d15 --- /dev/null +++ b/sso_tests/test/sso_integration_test.dart @@ -0,0 +1,54 @@ +import 'dart:io'; + +import 'package:fastcomments_dart/api.dart'; +import 'package:test/test.dart'; + +import '../../sso/fastcomments_sso.dart'; +import '../../sso/secure_sso_user_data.dart'; + +/// Integration tests that hit the live FastComments API. Requires +/// FASTCOMMENTS_API_KEY and FASTCOMMENTS_TENANT_ID; skipped when they are not set. +void main() { + final apiKey = Platform.environment['FASTCOMMENTS_API_KEY']; + final tenantId = Platform.environment['FASTCOMMENTS_TENANT_ID']; + final baseUrl = Platform.environment['FASTCOMMENTS_BASE_URL'] ?? 'https://fastcomments.com'; + + final skipReason = (apiKey == null || apiKey.isEmpty || tenantId == null || tenantId.isEmpty) + ? 'FASTCOMMENTS_API_KEY and FASTCOMMENTS_TENANT_ID are required' + : null; + + test('create and fetch a comment with secure SSO', () async { + final timestamp = DateTime.now().millisecondsSinceEpoch; + final urlId = 'sdk-test-dart-$timestamp'; + final commentText = 'Test from Dart SDK at $timestamp'; + + final user = SecureSSOUserData( + id: 'dart-user-$timestamp', + email: 'dart-$timestamp@example.com', + username: 'darttester$timestamp', + avatar: 'https://example.com/avatar.jpg', + ); + final token = FastCommentsSSO.secure(apiKey: apiKey!, user: user).prepareToSend(); + + final api = PublicApi(ApiClient(basePath: baseUrl)); + final commentData = CommentData( + commenterName: user.username, + comment: commentText, + url: 'https://example.com/dart-test', + urlId: urlId, + ); + + final createResponse = + await api.createCommentPublic(tenantId!, urlId, 'dart-test-$timestamp', commentData, sso: token); + expect(createResponse, isNotNull); + expect(createResponse!.status, APIStatus.success); + expect(createResponse.comment.commenterName, user.username); + expect(createResponse.comment.commentHTML, contains(commentText)); + + final getResponse = await api.getCommentsPublic(tenantId, urlId, sso: token); + expect(getResponse, isNotNull); + expect(getResponse!.status, 'success'); + expect(getResponse.comments, isNotEmpty); + expect(getResponse.comments.first.commenterName, user.username); + }, skip: skipReason); +} diff --git a/sso_tests/test/sso_test.dart b/sso_tests/test/sso_test.dart new file mode 100644 index 0000000..2e43f28 --- /dev/null +++ b/sso_tests/test/sso_test.dart @@ -0,0 +1,58 @@ +import 'dart:convert'; + +import 'package:test/test.dart'; + +import '../../sso/fastcomments_sso.dart'; +import '../../sso/secure_sso_user_data.dart'; +import '../../sso/simple_sso_user_data.dart'; + +/// Unit tests for SSO token generation. No network or credentials required. +void main() { + group('FastCommentsSSO', () { + test('secure SSO produces a signed token', () { + final sso = FastCommentsSSO.secure( + apiKey: 'test-api-key-12345', + user: const SecureSSOUserData( + id: 'user-1', + email: 'user@example.com', + username: 'tester', + avatar: 'https://example.com/avatar.jpg', + ), + ); + + final token = sso.prepareToSend(); + expect(token, isNotEmpty); + + final decoded = jsonDecode(token) as Map; + expect(decoded['userDataJSONBase64'], isNotNull); + expect(decoded['verificationHash'], isNotNull); + expect(decoded['timestamp'], isA()); + }); + + test('secure SSO verification hash is stable for the same payload', () { + final user = const SecureSSOUserData( + id: 'user-1', + email: 'user@example.com', + username: 'tester', + avatar: 'https://example.com/avatar.jpg', + ); + final hashA = (jsonDecode(FastCommentsSSO.secure(apiKey: 'k', user: user).prepareToSend()) + as Map)['verificationHash']; + expect(hashA, isA()); + expect((hashA as String).isNotEmpty, isTrue); + }); + + test('simple SSO produces a token', () { + final sso = FastCommentsSSO.simple(const SimpleSSOUserData( + username: 'tester', + email: 'user@example.com', + )); + + final token = sso.prepareToSend(); + expect(token, isNotEmpty); + + final decoded = jsonDecode(token) as Map; + expect(decoded['simpleSSOUser'], isNotNull); + }); + }); +} diff --git a/update.py b/update.py index c628c1a..5aeb604 100755 --- a/update.py +++ b/update.py @@ -19,6 +19,11 @@ SPEC_FILE = ROOT / "openapi.json" SPEC_URL = "http://localhost:3001/js/swagger.json" +# FastComments openapi-generator build (fixes dart anyOf/nested-map codegen the +# released generator gets wrong). Just a jar; downloaded on demand. +JAR_URL = "https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260619/openapi-generator-cli.jar" +JAR_FILE = ROOT / "openapi-generator-cli.jar" + def try_refresh_spec() -> None: try: @@ -30,14 +35,20 @@ def try_refresh_spec() -> None: print(f"Local server unavailable, using committed {SPEC_FILE.name}") +def ensure_jar() -> None: + if JAR_FILE.exists(): + return + print(f"Downloading generator from {JAR_URL}") + urllib.request.urlretrieve(JAR_URL, JAR_FILE) + + def regen_client() -> None: if CLIENT_DIR.exists(): shutil.rmtree(CLIENT_DIR) cmd = [ - "npx", - "--yes", - "@openapitools/openapi-generator-cli@2.31.1", + "java", + "-jar", str(JAR_FILE), "generate", "-i", str(SPEC_FILE), "-g", "dart", @@ -51,6 +62,7 @@ def regen_client() -> None: def main() -> int: try_refresh_spec() + ensure_jar() regen_client() return 0