From 7db390efa31a5d85f88dccd74b52fbdfb2e2f67c Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 21:55:00 -0700 Subject: [PATCH 1/6] Regenerate SDK: add Moderation API + stable response types Regenerated the Dart client from the updated OpenAPI spec (mirrors fastcomments-sdk@4.0.0). - Adds Moderation API (43 moderator-dashboard endpoints) as a separate ModerationApi class (lib/api/moderation_api.dart). All endpoints accept an 'sso' query param. Covers comment moderation, bans, badges & trust factor, and search. - BREAKING: operations now return their success type directly instead of an 'X | APIError' union; APIError is a 'default' error response. Response shapes are unchanged. The old generated '*200Response' wrapper types are removed in favor of the real success types. --- client/.openapi-generator/FILES | 585 ++-- client/.openapi-generator/VERSION | 2 +- client/README.md | 256 +- client/doc/APIAuditLog.md | 2 +- client/doc/APIBanUserChangeLog.md | 18 + client/doc/APIBanUserChangedValues.md | 27 + client/doc/APIBannedUser.md | 27 + client/doc/APIBannedUserWithMultiMatchInfo.md | 23 + client/doc/APICommentCommonBannedUser.md | 22 + ...PIModerateGetUserBanPreferencesResponse.md | 16 + client/doc/APIModerateUserBanPreferences.md | 18 + client/doc/APISaveCommentResponse.md | 2 +- ...Response.md => AddDomainConfigResponse.md} | 6 +- client/doc/AddDomainConfigResponseAnyOf.md | 16 + client/doc/AddHashTag200Response.md | 23 - client/doc/AddHashTagsBulk200Response.md | 23 - client/doc/AdjustCommentVotesParams.md | 15 + client/doc/AdjustVotesResponse.md | 16 + .../AggregateQuestionResults200Response.md | 23 - ...ent200Response.md => AggregateResponse.md} | 10 +- client/doc/AggregationAPIError.md | 18 + client/doc/AwardUserBadgeResponse.md | 17 + client/doc/BanUserFromCommentResult.md | 18 + client/doc/BanUserUndoParams.md | 15 + client/doc/BannedUserMatch.md | 16 + ...ue.md => BannedUserMatchMatchedOnValue.md} | 2 +- ...g200Response.md => BannedUserMatchType.md} | 3 +- .../doc/BlockFromCommentPublic200Response.md | 23 - client/doc/BuildModerationFilterParams.md | 19 + client/doc/BuildModerationFilterResponse.md | 16 + ...BulkAggregateQuestionResults200Response.md | 23 - client/doc/BulkCreateHashTagsResponse.md | 2 +- ...BulkCreateHashTagsResponseResultsInner.md} | 2 +- client/doc/BulkPreBanParams.md | 15 + client/doc/BulkPreBanSummary.md | 20 + client/doc/ChangeTicketState200Response.md | 23 - .../CheckedCommentsForBlocked200Response.md | 23 - ...eCommentsWithQuestionResults200Response.md | 23 - client/doc/CommentData.md | 4 +- client/doc/CommentLogData.md | 3 +- client/doc/CommentsByIdsParams.md | 15 + client/doc/CreateCommentParams.md | 4 +- client/doc/CreateCommentPublic200Response.md | 26 - client/doc/CreateEmailTemplate200Response.md | 23 - client/doc/CreateEmailTemplateBody.md | 2 +- client/doc/CreateFeedPost200Response.md | 23 - client/doc/CreateFeedPostPublic200Response.md | 23 - client/doc/CreateModerator200Response.md | 23 - client/doc/CreateQuestionConfig200Response.md | 23 - client/doc/CreateQuestionResult200Response.md | 23 - client/doc/CreateTenant200Response.md | 23 - client/doc/CreateTenantPackage200Response.md | 23 - client/doc/CreateTenantUser200Response.md | 23 - client/doc/CreateTicket200Response.md | 23 - client/doc/CreateUserBadge200Response.md | 24 - client/doc/CreateV1PageReact.md | 16 + client/doc/CustomConfigParameters.md | 5 + client/doc/CustomEmailTemplate.md | 2 +- client/doc/DefaultApi.md | 408 +-- client/doc/DeleteComment200Response.md | 23 - client/doc/DeleteCommentPublic200Response.md | 24 - client/doc/DeleteCommentVote200Response.md | 23 - client/doc/DeleteDomainConfigResponse.md | 15 + client/doc/DeleteFeedPostPublic200Response.md | 22 - ...yOf.md => DeleteFeedPostPublicResponse.md} | 2 +- ...Request.md => DeleteHashTagRequestBody.md} | 2 +- client/doc/EmailTemplateDefinition.md | 2 +- client/doc/FlagComment200Response.md | 24 - client/doc/FlagCommentPublic200Response.md | 22 - client/doc/GetAuditLogs200Response.md | 23 - client/doc/GetBannedUsersCountResponse.md | 16 + .../doc/GetBannedUsersFromCommentResponse.md | 17 + .../GetCachedNotificationCount200Response.md | 23 - client/doc/GetComment200Response.md | 23 - client/doc/GetCommentBanStatusResponse.md | 17 + client/doc/GetCommentText200Response.md | 24 - client/doc/GetCommentTextResponse.md | 16 + .../doc/GetCommentVoteUserNames200Response.md | 24 - client/doc/GetComments200Response.md | 23 - client/doc/GetCommentsForUserResponse.md | 15 + client/doc/GetCommentsPublic200Response.md | 45 - .../doc/GetCommentsResponsePublicComment.md | 2 +- ...mmentsResponseWithPresencePublicComment.md | 2 +- ...Response.md => GetDomainConfigResponse.md} | 6 +- .../doc/GetDomainConfigs200ResponseAnyOf.md | 16 - client/doc/GetDomainConfigsResponse.md | 18 + client/doc/GetDomainConfigsResponseAnyOf.md | 16 + ...1.md => GetDomainConfigsResponseAnyOf1.md} | 4 +- client/doc/GetEmailTemplate200Response.md | 23 - .../GetEmailTemplateDefinitions200Response.md | 23 - ...GetEmailTemplateRenderErrors200Response.md | 23 - client/doc/GetEmailTemplates200Response.md | 23 - client/doc/GetEventLog200Response.md | 23 - client/doc/GetFeedPosts200Response.md | 23 - client/doc/GetFeedPostsPublic200Response.md | 28 - client/doc/GetFeedPostsStats200Response.md | 23 - client/doc/GetGifsSearchResponse.md | 17 + client/doc/GetGifsTrendingResponse.md | 17 + client/doc/GetHashTags200Response.md | 23 - client/doc/GetModerator200Response.md | 23 - client/doc/GetModerators200Response.md | 23 - client/doc/GetNotificationCount200Response.md | 23 - client/doc/GetNotifications200Response.md | 23 - .../GetPendingWebhookEventCount200Response.md | 23 - .../doc/GetPendingWebhookEvents200Response.md | 23 - client/doc/GetPublicPagesResponse.md | 17 + client/doc/GetQuestionConfig200Response.md | 23 - client/doc/GetQuestionConfigs200Response.md | 23 - client/doc/GetQuestionResult200Response.md | 23 - client/doc/GetQuestionResults200Response.md | 23 - ...s200Response.md => GetSSOUsersResponse.md} | 2 +- client/doc/GetTenant200Response.md | 23 - client/doc/GetTenantDailyUsages200Response.md | 23 - client/doc/GetTenantManualBadgesResponse.md | 16 + client/doc/GetTenantPackage200Response.md | 23 - client/doc/GetTenantPackages200Response.md | 23 - client/doc/GetTenantUser200Response.md | 23 - client/doc/GetTenantUsers200Response.md | 23 - client/doc/GetTenants200Response.md | 23 - client/doc/GetTicket200Response.md | 24 - client/doc/GetTickets200Response.md | 23 - client/doc/GetTranslationsResponse.md | 16 + client/doc/GetUser200Response.md | 23 - client/doc/GetUserBadge200Response.md | 23 - .../GetUserBadgeProgressById200Response.md | 23 - .../GetUserBadgeProgressList200Response.md | 23 - client/doc/GetUserBadges200Response.md | 23 - client/doc/GetUserInternalProfileResponse.md | 16 + .../GetUserInternalProfileResponseProfile.md | 31 + client/doc/GetUserManualBadgesResponse.md | 16 + .../GetUserNotificationCount200Response.md | 23 - client/doc/GetUserNotifications200Response.md | 26 - .../doc/GetUserPresenceStatuses200Response.md | 23 - client/doc/GetUserReactsPublic200Response.md | 23 - client/doc/GetUserTrustFactorResponse.md | 17 + client/doc/GetV1PageLikes.md | 19 + client/doc/GetV2PageReactUsersResponse.md | 16 + client/doc/GetV2PageReacts.md | 17 + client/doc/GetVotes200Response.md | 25 - client/doc/GetVotesForUser200Response.md | 25 - client/doc/GifGetLargeResponse.md | 16 + ...onseAnyOf.md => GifSearchInternalError.md} | 6 +- client/doc/GifSearchResponse.md | 16 + .../doc/GifSearchResponseImagesInnerInner.md | 14 + client/doc/HeaderAccountNotification.md | 1 + client/doc/HeaderState.md | 2 +- client/doc/LiveEvent.md | 2 +- .../doc/ModerationAPIChildCommentsResponse.md | 16 + client/doc/ModerationAPIComment.md | 56 + client/doc/ModerationAPICommentLog.md | 18 + client/doc/ModerationAPICommentResponse.md | 16 + .../doc/ModerationAPICountCommentsResponse.md | 16 + .../doc/ModerationAPIGetCommentIdsResponse.md | 17 + .../doc/ModerationAPIGetCommentsResponse.md | 18 + client/doc/ModerationAPIGetLogsResponse.md | 16 + client/doc/ModerationApi.md | 2007 ++++++++++++ client/doc/ModerationCommentSearchResponse.md | 16 + client/doc/ModerationExportResponse.md | 16 + client/doc/ModerationExportStatusResponse.md | 18 + client/doc/ModerationFilter.md | 26 + client/doc/ModerationPageSearchProjected.md | 18 + client/doc/ModerationPageSearchResponse.md | 16 + client/doc/ModerationSiteSearchProjected.md | 16 + client/doc/ModerationSiteSearchResponse.md | 16 + client/doc/ModerationSuggestResponse.md | 18 + client/doc/ModerationUserSearchProjected.md | 18 + client/doc/ModerationUserSearchResponse.md | 16 + client/doc/PageUserEntry.md | 18 + client/doc/PageUsersInfoResponse.md | 16 + client/doc/PageUsersOfflineResponse.md | 18 + client/doc/PageUsersOnlineResponse.md | 20 + client/doc/PagesSortBy.md | 14 + client/doc/PatchDomainConfigResponse.md | 18 + client/doc/PendingCommentToSyncOutbound.md | 2 +- client/doc/PinComment200Response.md | 23 - client/doc/PostRemoveCommentResponse.md | 16 + client/doc/PreBanSummary.md | 17 + client/doc/PublicApi.md | 1034 +++++- client/doc/PublicPage.md | 19 + ...Response.md => PutDomainConfigResponse.md} | 6 +- client/doc/ReactFeedPostPublic200Response.md | 24 - client/doc/RemoveCommentActionResponse.md | 16 + client/doc/RemoveUserBadgeResponse.md | 16 + client/doc/RenderEmailTemplate200Response.md | 23 - client/doc/RenderEmailTemplateBody.md | 2 +- .../doc/ResetUserNotifications200Response.md | 22 - client/doc/SaveCommentResponseOptimized.md | 2 +- ...esponse.md => SaveCommentsBulkResponse.md} | 4 +- .../doc/SaveCommentsResponseWithPresence.md | 2 +- ...ers200Response.md => SearchUsersResult.md} | 9 +- client/doc/SetCommentApprovedResponse.md | 16 + client/doc/SetCommentText200Response.md | 23 - client/doc/SetCommentTextParams.md | 15 + client/doc/SetCommentTextResponse.md | 16 + client/doc/SetUserTrustFactorResponse.md | 16 + client/doc/TenantBadge.md | 35 + client/doc/TenantPackage.md | 1 + client/doc/UnBlockCommentPublic200Response.md | 23 - client/doc/UpdateEmailTemplateBody.md | 2 +- client/doc/UpdateUserBadge200Response.md | 22 - ...cationCommentSubscriptionStatusResponse.md | 18 + ...ificationPageSubscriptionStatusResponse.md | 18 + ...UpdateUserNotificationStatus200Response.md | 25 - .../UpdateUserNotificationStatusResponse.md | 18 + client/doc/UsersListLocation.md | 14 + client/doc/VoteComment200Response.md | 26 - client/doc/VoteResponse.md | 2 +- client/doc/VoteResponseStatus.md | 14 + client/lib/api.dart | 195 +- client/lib/api/default_api.dart | 426 +-- client/lib/api/moderation_api.dart | 2806 +++++++++++++++++ client/lib/api/public_api.dart | 1598 ++++++++-- client/lib/api_client.dart | 388 +-- client/lib/api_helper.dart | 9 + .../lib/model/add_domain_config_params.dart | 6 +- ...e.dart => add_domain_config_response.dart} | 46 +- ...=> add_domain_config_response_any_of.dart} | 42 +- .../lib/model/add_hash_tag200_response.dart | 222 -- .../model/add_hash_tags_bulk200_response.dart | 222 -- client/lib/model/add_page_api_response.dart | 6 +- .../lib/model/add_sso_user_api_response.dart | 6 +- .../model/adjust_comment_votes_params.dart | 109 + client/lib/model/adjust_votes_response.dart | 117 + ...ggregate_question_results200_response.dart | 222 -- .../aggregate_question_results_response.dart | 8 +- client/lib/model/aggregate_response.dart | 159 + client/lib/model/aggregation_api_error.dart | 134 + client/lib/model/aggregation_item.dart | 4 + client/lib/model/aggregation_operation.dart | 8 +- client/lib/model/aggregation_request.dart | 8 +- .../lib/model/aggregation_request_sort.dart | 8 +- client/lib/model/aggregation_response.dart | 8 +- .../lib/model/aggregation_response_stats.dart | 8 +- client/lib/model/aggregation_value.dart | 4 + client/lib/model/api_audit_log.dart | 10 +- client/lib/model/api_ban_user_change_log.dart | 159 + .../model/api_ban_user_changed_values.dart | 292 ++ client/lib/model/api_banned_user.dart | 230 ++ ...api_banned_user_with_multi_match_info.dart | 195 ++ client/lib/model/api_comment.dart | 24 +- client/lib/model/api_comment_base.dart | 24 +- client/lib/model/api_comment_base_meta.dart | 4 + .../model/api_comment_common_banned_user.dart | 187 ++ .../model/api_create_user_badge_response.dart | 8 +- .../lib/model/api_domain_configuration.dart | 10 +- client/lib/model/api_empty_response.dart | 6 +- .../lib/model/api_empty_success_response.dart | 6 +- client/lib/model/api_error.dart | 10 +- .../lib/model/api_get_comment_response.dart | 8 +- .../lib/model/api_get_comments_response.dart | 8 +- ...get_user_badge_progress_list_response.dart | 8 +- .../api_get_user_badge_progress_response.dart | 8 +- .../model/api_get_user_badge_response.dart | 8 +- .../model/api_get_user_badges_response.dart | 8 +- ...ate_get_user_ban_preferences_response.dart | 121 + .../api_moderate_user_ban_preferences.dart | 133 + client/lib/model/api_page.dart | 16 +- .../lib/model/api_save_comment_response.dart | 9 +- client/lib/model/api_tenant.dart | 26 +- client/lib/model/api_tenant_daily_usage.dart | 42 +- client/lib/model/api_ticket.dart | 22 +- client/lib/model/api_ticket_detail.dart | 24 +- client/lib/model/api_ticket_file.dart | 22 +- client/lib/model/api_user_subscription.dart | 10 +- client/lib/model/apisso_user.dart | 28 +- .../lib/model/award_user_badge_response.dart | 125 + .../model/ban_user_from_comment_result.dart | 160 + client/lib/model/ban_user_undo_params.dart | 109 + client/lib/model/banned_user_match.dart | 121 + .../banned_user_match_matched_on_value.dart | 101 + client/lib/model/banned_user_match_type.dart | 91 + client/lib/model/billing_info.dart | 16 +- .../lib/model/block_from_comment_params.dart | 4 + ...block_from_comment_public200_response.dart | 223 -- client/lib/model/block_success.dart | 8 +- .../model/build_moderation_filter_params.dart | 168 + .../build_moderation_filter_response.dart | 117 + .../model/bulk_aggregate_question_item.dart | 6 +- ...ggregate_question_results200_response.dart | 223 -- ...lk_aggregate_question_results_request.dart | 6 +- ...k_aggregate_question_results_response.dart | 8 +- .../lib/model/bulk_create_hash_tags_body.dart | 6 +- ...bulk_create_hash_tags_body_tags_inner.dart | 6 +- .../model/bulk_create_hash_tags_response.dart | 12 +- ...ate_hash_tags_response_results_inner.dart} | 54 +- client/lib/model/bulk_pre_ban_params.dart | 111 + client/lib/model/bulk_pre_ban_summary.dart | 157 + .../change_comment_pin_status_response.dart | 8 +- .../change_ticket_state200_response.dart | 222 -- .../lib/model/change_ticket_state_body.dart | 6 +- .../model/change_ticket_state_response.dart | 8 +- .../check_blocked_comments_response.dart | 8 +- ...cked_comments_for_blocked200_response.dart | 223 -- ...nts_with_question_results200_response.dart | 222 -- ...estion_results_with_comments_response.dart | 8 +- client/lib/model/comment_data.dart | 16 +- client/lib/model/comment_log_data.dart | 23 +- client/lib/model/comment_log_entry.dart | 8 +- .../model/comment_text_update_request.dart | 6 +- client/lib/model/comment_user_badge_info.dart | 10 +- .../lib/model/comment_user_hash_tag_info.dart | 9 +- .../lib/model/comment_user_mention_info.dart | 8 +- client/lib/model/comments_by_ids_params.dart | 111 + client/lib/model/create_api_page_data.dart | 10 +- .../create_api_user_subscription_data.dart | 6 +- client/lib/model/create_apisso_user_data.dart | 10 +- client/lib/model/create_comment_params.dart | 18 +- .../create_comment_public200_response.dart | 260 -- .../create_email_template200_response.dart | 222 -- .../lib/model/create_email_template_body.dart | 10 +- .../model/create_email_template_response.dart | 8 +- .../model/create_feed_post200_response.dart | 222 -- client/lib/model/create_feed_post_params.dart | 4 + .../create_feed_post_public200_response.dart | 222 -- .../lib/model/create_feed_post_response.dart | 8 +- .../lib/model/create_feed_posts_response.dart | 8 +- client/lib/model/create_hash_tag_body.dart | 6 +- .../lib/model/create_hash_tag_response.dart | 8 +- .../model/create_moderator200_response.dart | 222 -- client/lib/model/create_moderator_body.dart | 8 +- .../lib/model/create_moderator_response.dart | 8 +- .../create_question_config200_response.dart | 222 -- .../model/create_question_config_body.dart | 12 +- .../create_question_config_response.dart | 8 +- .../create_question_result200_response.dart | 222 -- .../model/create_question_result_body.dart | 10 +- .../create_question_result_response.dart | 8 +- .../create_subscription_api_response.dart | 6 +- .../lib/model/create_tenant200_response.dart | 222 -- client/lib/model/create_tenant_body.dart | 8 +- .../create_tenant_package200_response.dart | 222 -- .../lib/model/create_tenant_package_body.dart | 30 +- .../model/create_tenant_package_response.dart | 8 +- client/lib/model/create_tenant_response.dart | 8 +- .../model/create_tenant_user200_response.dart | 222 -- client/lib/model/create_tenant_user_body.dart | 8 +- .../model/create_tenant_user_response.dart | 8 +- .../lib/model/create_ticket200_response.dart | 222 -- client/lib/model/create_ticket_body.dart | 6 +- client/lib/model/create_ticket_response.dart | 8 +- .../model/create_user_badge200_response.dart | 231 -- .../lib/model/create_user_badge_params.dart | 8 +- client/lib/model/create_v1_page_react.dart | 126 + .../lib/model/custom_config_parameters.dart | 87 +- client/lib/model/custom_email_template.dart | 21 +- .../lib/model/delete_comment200_response.dart | 222 -- .../delete_comment_public200_response.dart | 239 -- client/lib/model/delete_comment_result.dart | 8 +- .../delete_comment_vote200_response.dart | 229 -- ...art => delete_domain_config_response.dart} | 41 +- .../delete_feed_post_public200_response.dart | 212 -- .../delete_feed_post_public_response.dart | 109 + ...dart => delete_hash_tag_request_body.dart} | 40 +- .../lib/model/delete_page_api_response.dart | 6 +- .../model/delete_sso_user_api_response.dart | 6 +- .../delete_subscription_api_response.dart | 6 +- .../model/deleted_comment_result_comment.dart | 8 +- .../lib/model/email_template_definition.dart | 12 +- .../email_template_render_error_response.dart | 18 +- client/lib/model/event_log_entry.dart | 16 +- client/lib/model/f_comment.dart | 24 +- client/lib/model/f_comment_meta.dart | 4 + client/lib/model/feed_post.dart | 10 +- client/lib/model/feed_post_link.dart | 4 + client/lib/model/feed_post_media_item.dart | 6 +- .../lib/model/feed_post_media_item_asset.dart | 10 +- client/lib/model/feed_post_stats.dart | 4 + .../lib/model/feed_posts_stats_response.dart | 8 +- .../model/find_comments_by_range_item.dart | 7 +- .../find_comments_by_range_response.dart | 8 +- .../lib/model/flag_comment200_response.dart | 246 -- .../flag_comment_public200_response.dart | 212 -- client/lib/model/flag_comment_response.dart | 6 +- .../lib/model/get_audit_logs200_response.dart | 222 -- client/lib/model/get_audit_logs_response.dart | 8 +- .../get_banned_users_count_response.dart | 117 + ...et_banned_users_from_comment_response.dart | 202 ++ ...cached_notification_count200_response.dart | 222 -- ...et_cached_notification_count_response.dart | 8 +- client/lib/model/get_comment200_response.dart | 222 -- .../get_comment_ban_status_response.dart | 133 + .../model/get_comment_text200_response.dart | 232 -- .../lib/model/get_comment_text_response.dart | 120 + ...t_comment_vote_user_names200_response.dart | 234 -- ...ment_vote_user_names_success_response.dart | 10 +- .../lib/model/get_comments200_response.dart | 222 -- .../model/get_comments_for_user_response.dart | 110 + .../get_comments_public200_response.dart | 570 ---- .../get_comments_response_public_comment.dart | 11 +- ...response_with_presence_public_comment.dart | 11 +- ...e.dart => get_domain_config_response.dart} | 46 +- ....dart => get_domain_configs_response.dart} | 46 +- ...> get_domain_configs_response_any_of.dart} | 42 +- ... get_domain_configs_response_any_of1.dart} | 45 +- .../model/get_email_template200_response.dart | 222 -- ...mail_template_definitions200_response.dart | 222 -- ...t_email_template_definitions_response.dart | 8 +- ...il_template_render_errors200_response.dart | 222 -- ...email_template_render_errors_response.dart | 8 +- .../model/get_email_template_response.dart | 8 +- .../get_email_templates200_response.dart | 222 -- .../model/get_email_templates_response.dart | 8 +- .../lib/model/get_event_log200_response.dart | 222 -- client/lib/model/get_event_log_response.dart | 8 +- .../lib/model/get_feed_posts200_response.dart | 222 -- .../get_feed_posts_public200_response.dart | 291 -- client/lib/model/get_feed_posts_response.dart | 8 +- .../get_feed_posts_stats200_response.dart | 222 -- .../lib/model/get_gifs_search_response.dart | 129 + .../lib/model/get_gifs_trending_response.dart | 129 + .../lib/model/get_hash_tags200_response.dart | 222 -- client/lib/model/get_hash_tags_response.dart | 8 +- .../lib/model/get_moderator200_response.dart | 222 -- client/lib/model/get_moderator_response.dart | 8 +- .../lib/model/get_moderators200_response.dart | 222 -- client/lib/model/get_moderators_response.dart | 8 +- .../model/get_my_notifications_response.dart | 12 +- .../get_notification_count200_response.dart | 222 -- .../get_notification_count_response.dart | 8 +- .../model/get_notifications200_response.dart | 222 -- .../lib/model/get_notifications_response.dart | 8 +- .../model/get_page_by_urlid_api_response.dart | 6 +- client/lib/model/get_pages_api_response.dart | 6 +- ...nding_webhook_event_count200_response.dart | 222 -- ..._pending_webhook_event_count_response.dart | 8 +- ...et_pending_webhook_events200_response.dart | 222 -- .../get_pending_webhook_events_response.dart | 8 +- .../model/get_public_feed_posts_response.dart | 8 +- .../lib/model/get_public_pages_response.dart | 129 + .../get_question_config200_response.dart | 222 -- .../model/get_question_config_response.dart | 8 +- .../get_question_configs200_response.dart | 222 -- .../model/get_question_configs_response.dart | 8 +- .../get_question_result200_response.dart | 222 -- .../model/get_question_result_response.dart | 8 +- .../get_question_results200_response.dart | 222 -- .../model/get_question_results_response.dart | 8 +- .../get_sso_user_by_email_api_response.dart | 6 +- .../get_sso_user_by_id_api_response.dart | 6 +- ...ponse.dart => get_sso_users_response.dart} | 44 +- .../model/get_subscriptions_api_response.dart | 6 +- client/lib/model/get_tenant200_response.dart | 222 -- .../get_tenant_daily_usages200_response.dart | 222 -- .../get_tenant_daily_usages_response.dart | 8 +- .../get_tenant_manual_badges_response.dart | 117 + .../model/get_tenant_package200_response.dart | 222 -- .../model/get_tenant_package_response.dart | 8 +- .../get_tenant_packages200_response.dart | 222 -- .../model/get_tenant_packages_response.dart | 8 +- client/lib/model/get_tenant_response.dart | 8 +- .../model/get_tenant_user200_response.dart | 222 -- .../lib/model/get_tenant_user_response.dart | 8 +- .../model/get_tenant_users200_response.dart | 222 -- .../lib/model/get_tenant_users_response.dart | 8 +- client/lib/model/get_tenants200_response.dart | 222 -- client/lib/model/get_tenants_response.dart | 8 +- client/lib/model/get_ticket200_response.dart | 234 -- client/lib/model/get_ticket_response.dart | 10 +- client/lib/model/get_tickets200_response.dart | 222 -- client/lib/model/get_tickets_response.dart | 8 +- .../lib/model/get_translations_response.dart | 118 + client/lib/model/get_user200_response.dart | 222 -- .../lib/model/get_user_badge200_response.dart | 222 -- ...user_badge_progress_by_id200_response.dart | 222 -- ..._user_badge_progress_list200_response.dart | 222 -- .../model/get_user_badges200_response.dart | 222 -- .../get_user_internal_profile_response.dart | 117 + ...ser_internal_profile_response_profile.dart | 348 ++ .../get_user_manual_badges_response.dart | 117 + ...t_user_notification_count200_response.dart | 222 -- .../get_user_notification_count_response.dart | 8 +- .../get_user_notifications200_response.dart | 250 -- ...et_user_presence_statuses200_response.dart | 223 -- .../get_user_presence_statuses_response.dart | 8 +- .../get_user_reacts_public200_response.dart | 222 -- client/lib/model/get_user_response.dart | 8 +- .../model/get_user_trust_factor_response.dart | 143 + client/lib/model/get_v1_page_likes.dart | 141 + .../get_v2_page_react_users_response.dart | 119 + client/lib/model/get_v2_page_reacts.dart | 126 + client/lib/model/get_votes200_response.dart | 242 -- .../model/get_votes_for_user200_response.dart | 242 -- .../model/get_votes_for_user_response.dart | 12 +- client/lib/model/get_votes_response.dart | 12 +- client/lib/model/gif_get_large_response.dart | 117 + ...of.dart => gif_search_internal_error.dart} | 50 +- client/lib/model/gif_search_response.dart | 121 + ...if_search_response_images_inner_inner.dart | 101 + .../model/header_account_notification.dart | 36 +- client/lib/model/header_state.dart | 16 +- client/lib/model/ignored_response.dart | 8 +- client/lib/model/live_event.dart | 6 +- client/lib/model/live_event_extra_info.dart | 4 + client/lib/model/live_event_type.dart | 6 + .../lib/model/lock_comment200_response.dart | 212 -- client/lib/model/media_asset.dart | 10 +- client/lib/model/meta_item.dart | 8 +- ...oderation_api_child_comments_response.dart | 117 + client/lib/model/moderation_api_comment.dart | 621 ++++ .../lib/model/moderation_api_comment_log.dart | 142 + .../moderation_api_comment_response.dart | 117 + ...oderation_api_count_comments_response.dart | 117 + ...deration_api_get_comment_ids_response.dart | 127 + .../moderation_api_get_comments_response.dart | 142 + .../moderation_api_get_logs_response.dart | 117 + .../moderation_comment_search_response.dart | 117 + .../lib/model/moderation_export_response.dart | 117 + .../moderation_export_status_response.dart | 142 + client/lib/model/moderation_filter.dart | 291 ++ .../moderation_page_search_projected.dart | 133 + .../moderation_page_search_response.dart | 117 + .../moderation_site_search_projected.dart | 120 + .../moderation_site_search_response.dart | 117 + .../model/moderation_suggest_response.dart | 140 + .../moderation_user_search_projected.dart | 139 + .../moderation_user_search_response.dart | 117 + client/lib/model/moderator.dart | 35 +- client/lib/model/notification_and_count.dart | 8 +- client/lib/model/page_user_entry.dart | 151 + .../lib/model/page_users_info_response.dart | 117 + .../model/page_users_offline_response.dart | 141 + .../lib/model/page_users_online_response.dart | 157 + client/lib/model/pages_sort_by.dart | 88 + .../lib/model/patch_domain_config_params.dart | 4 + .../model/patch_domain_config_response.dart | 141 + .../lib/model/patch_hash_tag200_response.dart | 222 -- client/lib/model/patch_page_api_response.dart | 6 +- .../model/patch_sso_user_api_response.dart | 6 +- .../pending_comment_to_sync_outbound.dart | 25 +- client/lib/model/pin_comment200_response.dart | 223 -- .../model/post_remove_comment_response.dart | 117 + client/lib/model/pre_ban_summary.dart | 127 + client/lib/model/pub_sub_comment.dart | 25 +- client/lib/model/pub_sub_comment_base.dart | 23 +- client/lib/model/pub_sub_vote.dart | 19 +- .../public_api_delete_comment_response.dart | 8 +- .../public_api_get_comment_text_response.dart | 10 +- .../public_api_set_comment_text_response.dart | 8 +- .../public_block_from_comment_params.dart | 5 +- client/lib/model/public_comment.dart | 13 +- client/lib/model/public_comment_base.dart | 13 +- .../lib/model/public_feed_posts_response.dart | 8 +- client/lib/model/public_page.dart | 141 + client/lib/model/public_vote.dart | 16 +- .../lib/model/put_domain_config_response.dart | 141 + .../lib/model/put_sso_user_api_response.dart | 6 +- client/lib/model/query_predicate.dart | 10 +- client/lib/model/query_predicate_value.dart | 4 + client/lib/model/question_config.dart | 44 +- .../question_config_custom_options_inner.dart | 8 +- client/lib/model/question_datum.dart | 8 +- client/lib/model/question_result.dart | 22 +- .../question_result_aggregation_overall.dart | 8 +- client/lib/model/react_body_params.dart | 4 + .../react_feed_post_public200_response.dart | 232 -- .../lib/model/react_feed_post_response.dart | 10 +- ...ng_or_null_after_string_or_null_value.dart | 6 +- .../model/remove_comment_action_response.dart | 117 + .../lib/model/remove_user_badge_response.dart | 116 + .../render_email_template200_response.dart | 222 -- .../lib/model/render_email_template_body.dart | 8 +- .../model/render_email_template_response.dart | 8 +- .../model/renderable_user_notification.dart | 24 +- .../model/replace_tenant_package_body.dart | 34 +- .../lib/model/replace_tenant_user_body.dart | 8 +- .../reset_user_notifications200_response.dart | 212 -- .../reset_user_notifications_response.dart | 6 +- .../save_comment_response_optimized.dart | 9 +- ....dart => save_comments_bulk_response.dart} | 49 +- .../save_comments_response_with_presence.dart | 9 +- .../lib/model/search_users200_response.dart | 232 -- client/lib/model/search_users_response.dart | 8 +- client/lib/model/search_users_result.dart | 125 + .../search_users_sectioned_response.dart | 8 +- .../model/set_comment_approved_response.dart | 126 + .../model/set_comment_text200_response.dart | 222 -- client/lib/model/set_comment_text_params.dart | 109 + .../lib/model/set_comment_text_response.dart | 117 + client/lib/model/set_comment_text_result.dart | 8 +- .../model/set_user_trust_factor_response.dart | 126 + client/lib/model/spam_rule.dart | 6 +- client/lib/model/tenant_badge.dart | 297 ++ client/lib/model/tenant_hash_tag.dart | 12 +- client/lib/model/tenant_package.dart | 73 +- client/lib/model/tos_config.dart | 4 + .../un_block_comment_public200_response.dart | 223 -- .../model/un_block_from_comment_params.dart | 4 + client/lib/model/unblock_success.dart | 8 +- .../lib/model/updatable_comment_params.dart | 4 + client/lib/model/update_api_page_data.dart | 4 + .../update_api_user_subscription_data.dart | 4 + client/lib/model/update_apisso_user_data.dart | 4 + .../model/update_domain_config_params.dart | 6 +- .../lib/model/update_email_template_body.dart | 4 + client/lib/model/update_feed_post_params.dart | 4 + client/lib/model/update_hash_tag_body.dart | 4 + .../lib/model/update_hash_tag_response.dart | 8 +- client/lib/model/update_moderator_body.dart | 4 + .../lib/model/update_notification_body.dart | 4 + .../model/update_question_config_body.dart | 4 + .../model/update_question_result_body.dart | 4 + .../update_subscription_api_response.dart | 6 +- client/lib/model/update_tenant_body.dart | 4 + .../lib/model/update_tenant_package_body.dart | 4 + client/lib/model/update_tenant_user_body.dart | 4 + .../lib/model/update_user_badge_params.dart | 4 + ..._comment_subscription_status_response.dart | 207 ++ ...ion_page_subscription_status_response.dart | 207 ++ ..._user_notification_status200_response.dart | 316 -- ...ate_user_notification_status_response.dart | 207 ++ client/lib/model/upload_image_response.dart | 6 +- client/lib/model/user.dart | 20 +- client/lib/model/user_badge.dart | 28 +- client/lib/model/user_badge_progress.dart | 16 +- client/lib/model/user_notification.dart | 28 +- client/lib/model/user_notification_count.dart | 12 +- .../user_notification_write_response.dart | 10 +- client/lib/model/user_presence_data.dart | 4 + client/lib/model/user_reacts_response.dart | 8 +- client/lib/model/user_search_result.dart | 10 +- .../lib/model/user_search_section_result.dart | 8 +- client/lib/model/user_session_info.dart | 4 + client/lib/model/users_list_location.dart | 91 + client/lib/model/vote_body_params.dart | 9 +- .../lib/model/vote_comment200_response.dart | 280 -- client/lib/model/vote_delete_response.dart | 6 +- client/lib/model/vote_response.dart | 10 +- ...r_value.dart => vote_response_status.dart} | 40 +- client/lib/model/vote_response_user.dart | 4 + ...d_domain_config_response_any_of_test.dart} | 6 +- ...t => add_domain_config_response_test.dart} | 6 +- .../test/add_hash_tag200_response_test.dart | 67 - .../add_hash_tags_bulk200_response_test.dart | 67 - .../adjust_comment_votes_params_test.dart | 27 + client/test/adjust_votes_response_test.dart | 32 + ...ate_question_results200_response_test.dart | 67 - client/test/aggregate_response_test.dart | 52 + client/test/aggregation_api_error_test.dart | 42 + client/test/api_ban_user_change_log_test.dart | 42 + .../api_ban_user_changed_values_test.dart | 87 + client/test/api_banned_user_test.dart | 87 + ...anned_user_with_multi_match_info_test.dart | 67 + .../api_comment_common_banned_user_test.dart | 62 + ...et_user_ban_preferences_response_test.dart | 32 + ...pi_moderate_user_ban_preferences_test.dart | 42 + .../test/award_user_badge_response_test.dart | 37 + .../ban_user_from_comment_result_test.dart | 42 + client/test/ban_user_undo_params_test.dart | 27 + ...ned_user_match_matched_on_value_test.dart} | 6 +- client/test/banned_user_match_test.dart | 32 + client/test/banned_user_match_type_test.dart | 21 + ..._from_comment_public200_response_test.dart | 68 - .../build_moderation_filter_params_test.dart | 47 + ...build_moderation_filter_response_test.dart | 32 + ...ate_question_results200_response_test.dart | 68 - ...ash_tags_response_results_inner_test.dart} | 6 +- .../bulk_create_hash_tags_response_test.dart | 2 +- client/test/bulk_pre_ban_params_test.dart | 27 + client/test/bulk_pre_ban_summary_test.dart | 52 + .../change_ticket_state200_response_test.dart | 67 - ...comments_for_blocked200_response_test.dart | 68 - ...ith_question_results200_response_test.dart | 67 - client/test/comment_data_test.dart | 2 +- client/test/comment_log_data_test.dart | 5 + client/test/comments_by_ids_params_test.dart | 27 + client/test/create_comment_params_test.dart | 2 +- ...reate_comment_public200_response_test.dart | 83 - ...reate_email_template200_response_test.dart | 67 - .../create_feed_post200_response_test.dart | 67 - ...ate_feed_post_public200_response_test.dart | 67 - .../create_moderator200_response_test.dart | 67 - ...eate_question_config200_response_test.dart | 67 - ...eate_question_result200_response_test.dart | 67 - .../test/create_tenant200_response_test.dart | 67 - ...reate_tenant_package200_response_test.dart | 67 - .../create_tenant_user200_response_test.dart | 67 - .../test/create_ticket200_response_test.dart | 67 - .../create_user_badge200_response_test.dart | 72 - client/test/create_v1_page_react_test.dart | 32 + .../test/custom_config_parameters_test.dart | 25 + client/test/default_api_test.dart | 198 +- .../test/delete_comment200_response_test.dart | 67 - ...elete_comment_public200_response_test.dart | 72 - .../delete_comment_vote200_response_test.dart | 67 - ...> delete_domain_config_response_test.dart} | 6 +- ...ete_feed_post_public200_response_test.dart | 62 - ...elete_feed_post_public_response_test.dart} | 6 +- ...=> delete_hash_tag_request_body_test.dart} | 6 +- .../test/flag_comment200_response_test.dart | 72 - .../flag_comment_public200_response_test.dart | 62 - .../test/get_audit_logs200_response_test.dart | 67 - .../get_banned_users_count_response_test.dart | 32 + ...nned_users_from_comment_response_test.dart | 37 + ...d_notification_count200_response_test.dart | 67 - client/test/get_comment200_response_test.dart | 67 - .../get_comment_ban_status_response_test.dart | 37 + .../get_comment_text200_response_test.dart | 72 - .../test/get_comment_text_response_test.dart | 32 + ...ment_vote_user_names200_response_test.dart | 72 - .../test/get_comments200_response_test.dart | 67 - .../get_comments_for_user_response_test.dart | 27 + .../get_comments_public200_response_test.dart | 178 -- ...t => get_domain_config_response_test.dart} | 6 +- ...domain_configs_response_any_of1_test.dart} | 6 +- ..._domain_configs_response_any_of_test.dart} | 6 +- ... => get_domain_configs_response_test.dart} | 6 +- .../get_email_template200_response_test.dart | 67 - ...template_definitions200_response_test.dart | 67 - ...mplate_render_errors200_response_test.dart | 67 - .../get_email_templates200_response_test.dart | 67 - .../test/get_event_log200_response_test.dart | 67 - .../test/get_feed_posts200_response_test.dart | 67 - ...et_feed_posts_public200_response_test.dart | 92 - ...get_feed_posts_stats200_response_test.dart | 67 - .../test/get_gifs_search_response_test.dart | 37 + .../test/get_gifs_trending_response_test.dart | 37 + .../test/get_hash_tags200_response_test.dart | 67 - .../test/get_moderator200_response_test.dart | 67 - .../test/get_moderators200_response_test.dart | 67 - ...t_notification_count200_response_test.dart | 67 - .../get_notifications200_response_test.dart | 67 - ..._webhook_event_count200_response_test.dart | 67 - ...nding_webhook_events200_response_test.dart | 67 - .../test/get_public_pages_response_test.dart | 37 + .../get_question_config200_response_test.dart | 67 - ...get_question_configs200_response_test.dart | 67 - .../get_question_result200_response_test.dart | 67 - ...get_question_results200_response_test.dart | 67 - ....dart => get_sso_users_response_test.dart} | 6 +- client/test/get_tenant200_response_test.dart | 67 - ..._tenant_daily_usages200_response_test.dart | 67 - ...et_tenant_manual_badges_response_test.dart | 32 + .../get_tenant_package200_response_test.dart | 67 - .../get_tenant_packages200_response_test.dart | 67 - .../get_tenant_user200_response_test.dart | 67 - .../get_tenant_users200_response_test.dart | 67 - client/test/get_tenants200_response_test.dart | 67 - client/test/get_ticket200_response_test.dart | 72 - client/test/get_tickets200_response_test.dart | 67 - .../test/get_translations_response_test.dart | 33 + client/test/get_user200_response_test.dart | 67 - .../test/get_user_badge200_response_test.dart | 67 - ...badge_progress_by_id200_response_test.dart | 67 - ..._badge_progress_list200_response_test.dart | 67 - .../get_user_badges200_response_test.dart | 67 - ...nternal_profile_response_profile_test.dart | 107 + ...t_user_internal_profile_response_test.dart | 32 + .../get_user_manual_badges_response_test.dart | 32 + ...r_notification_count200_response_test.dart | 67 - ...t_user_notifications200_response_test.dart | 83 - ...er_presence_statuses200_response_test.dart | 68 - ...t_user_reacts_public200_response_test.dart | 67 - .../get_user_trust_factor_response_test.dart | 37 + client/test/get_v1_page_likes_test.dart | 47 + ...get_v2_page_react_users_response_test.dart | 32 + client/test/get_v2_page_reacts_test.dart | 38 + client/test/get_votes200_response_test.dart | 77 - .../get_votes_for_user200_response_test.dart | 77 - client/test/gif_get_large_response_test.dart | 32 + .../test/gif_search_internal_error_test.dart | 32 + ...arch_response_images_inner_inner_test.dart | 22 + client/test/gif_search_response_test.dart | 32 + .../header_account_notification_test.dart | 6 + .../test/lock_comment200_response_test.dart | 62 - ...tion_api_child_comments_response_test.dart | 32 + .../test/moderation_api_comment_log_test.dart | 42 + .../moderation_api_comment_response_test.dart | 32 + client/test/moderation_api_comment_test.dart | 232 ++ ...tion_api_count_comments_response_test.dart | 32 + ...ion_api_get_comment_ids_response_test.dart | 37 + ...ration_api_get_comments_response_test.dart | 42 + ...moderation_api_get_logs_response_test.dart | 32 + client/test/moderation_api_test.dart | 236 ++ ...deration_comment_search_response_test.dart | 32 + .../test/moderation_export_response_test.dart | 32 + ...oderation_export_status_response_test.dart | 42 + client/test/moderation_filter_test.dart | 84 + ...moderation_page_search_projected_test.dart | 42 + .../moderation_page_search_response_test.dart | 32 + ...moderation_site_search_projected_test.dart | 32 + .../moderation_site_search_response_test.dart | 32 + .../moderation_suggest_response_test.dart | 42 + ...moderation_user_search_projected_test.dart | 42 + .../moderation_user_search_response_test.dart | 32 + client/test/page_user_entry_test.dart | 42 + .../test/page_users_info_response_test.dart | 32 + .../page_users_offline_response_test.dart | 42 + .../test/page_users_online_response_test.dart | 52 + client/test/pages_sort_by_test.dart | 21 + .../patch_domain_config_response_test.dart | 42 + client/test/pin_comment200_response_test.dart | 68 - .../post_remove_comment_response_test.dart | 32 + client/test/pre_ban_summary_test.dart | 37 + client/test/public_api_test.dart | 161 +- client/test/public_page_test.dart | 47 + .../test/put_domain_config_response_test.dart | 42 + ...act_feed_post_public200_response_test.dart | 72 - .../remove_comment_action_response_test.dart | 32 + .../test/remove_user_badge_response_test.dart | 32 + ...ender_email_template200_response_test.dart | 67 - ...t_user_notifications200_response_test.dart | 62 - ... => save_comments_bulk_response_test.dart} | 6 +- .../test/search_users200_response_test.dart | 72 - client/test/search_users_result_test.dart | 37 + .../set_comment_approved_response_test.dart | 32 + .../set_comment_text200_response_test.dart | 67 - client/test/set_comment_text_params_test.dart | 27 + .../test/set_comment_text_response_test.dart | 32 + .../set_user_trust_factor_response_test.dart | 32 + client/test/tenant_badge_test.dart | 127 + client/test/tenant_package_test.dart | 5 + ...block_comment_public200_response_test.dart | 68 - .../update_user_badge200_response_test.dart | 62 - ...ent_subscription_status_response_test.dart | 42 + ...age_subscription_status_response_test.dart | 42 + ..._notification_status200_response_test.dart | 77 - ...ser_notification_status_response_test.dart | 42 + client/test/users_list_location_test.dart | 21 + .../test/vote_comment200_response_test.dart | 82 - client/test/vote_response_status_test.dart | 22 + client/test/vote_response_test.dart | 2 +- 821 files changed, 27761 insertions(+), 30210 deletions(-) create mode 100644 client/doc/APIBanUserChangeLog.md create mode 100644 client/doc/APIBanUserChangedValues.md create mode 100644 client/doc/APIBannedUser.md create mode 100644 client/doc/APIBannedUserWithMultiMatchInfo.md create mode 100644 client/doc/APICommentCommonBannedUser.md create mode 100644 client/doc/APIModerateGetUserBanPreferencesResponse.md create mode 100644 client/doc/APIModerateUserBanPreferences.md rename client/doc/{AddDomainConfig200Response.md => AddDomainConfigResponse.md} (76%) create mode 100644 client/doc/AddDomainConfigResponseAnyOf.md delete mode 100644 client/doc/AddHashTag200Response.md delete mode 100644 client/doc/AddHashTagsBulk200Response.md create mode 100644 client/doc/AdjustCommentVotesParams.md create mode 100644 client/doc/AdjustVotesResponse.md delete mode 100644 client/doc/AggregateQuestionResults200Response.md rename client/doc/{LockComment200Response.md => AggregateResponse.md} (58%) create mode 100644 client/doc/AggregationAPIError.md create mode 100644 client/doc/AwardUserBadgeResponse.md create mode 100644 client/doc/BanUserFromCommentResult.md create mode 100644 client/doc/BanUserUndoParams.md create mode 100644 client/doc/BannedUserMatch.md rename client/doc/{RecordStringStringOrNumberValue.md => BannedUserMatchMatchedOnValue.md} (86%) rename client/doc/{DeleteDomainConfig200Response.md => BannedUserMatchType.md} (80%) delete mode 100644 client/doc/BlockFromCommentPublic200Response.md create mode 100644 client/doc/BuildModerationFilterParams.md create mode 100644 client/doc/BuildModerationFilterResponse.md delete mode 100644 client/doc/BulkAggregateQuestionResults200Response.md rename client/doc/{PatchHashTag200Response.md => BulkCreateHashTagsResponseResultsInner.md} (92%) create mode 100644 client/doc/BulkPreBanParams.md create mode 100644 client/doc/BulkPreBanSummary.md delete mode 100644 client/doc/ChangeTicketState200Response.md delete mode 100644 client/doc/CheckedCommentsForBlocked200Response.md delete mode 100644 client/doc/CombineCommentsWithQuestionResults200Response.md create mode 100644 client/doc/CommentsByIdsParams.md delete mode 100644 client/doc/CreateCommentPublic200Response.md delete mode 100644 client/doc/CreateEmailTemplate200Response.md delete mode 100644 client/doc/CreateFeedPost200Response.md delete mode 100644 client/doc/CreateFeedPostPublic200Response.md delete mode 100644 client/doc/CreateModerator200Response.md delete mode 100644 client/doc/CreateQuestionConfig200Response.md delete mode 100644 client/doc/CreateQuestionResult200Response.md delete mode 100644 client/doc/CreateTenant200Response.md delete mode 100644 client/doc/CreateTenantPackage200Response.md delete mode 100644 client/doc/CreateTenantUser200Response.md delete mode 100644 client/doc/CreateTicket200Response.md delete mode 100644 client/doc/CreateUserBadge200Response.md create mode 100644 client/doc/CreateV1PageReact.md delete mode 100644 client/doc/DeleteComment200Response.md delete mode 100644 client/doc/DeleteCommentPublic200Response.md delete mode 100644 client/doc/DeleteCommentVote200Response.md create mode 100644 client/doc/DeleteDomainConfigResponse.md delete mode 100644 client/doc/DeleteFeedPostPublic200Response.md rename client/doc/{DeleteFeedPostPublic200ResponseAnyOf.md => DeleteFeedPostPublicResponse.md} (86%) rename client/doc/{DeleteHashTagRequest.md => DeleteHashTagRequestBody.md} (88%) delete mode 100644 client/doc/FlagComment200Response.md delete mode 100644 client/doc/FlagCommentPublic200Response.md delete mode 100644 client/doc/GetAuditLogs200Response.md create mode 100644 client/doc/GetBannedUsersCountResponse.md create mode 100644 client/doc/GetBannedUsersFromCommentResponse.md delete mode 100644 client/doc/GetCachedNotificationCount200Response.md delete mode 100644 client/doc/GetComment200Response.md create mode 100644 client/doc/GetCommentBanStatusResponse.md delete mode 100644 client/doc/GetCommentText200Response.md create mode 100644 client/doc/GetCommentTextResponse.md delete mode 100644 client/doc/GetCommentVoteUserNames200Response.md delete mode 100644 client/doc/GetComments200Response.md create mode 100644 client/doc/GetCommentsForUserResponse.md delete mode 100644 client/doc/GetCommentsPublic200Response.md rename client/doc/{GetDomainConfig200Response.md => GetDomainConfigResponse.md} (76%) delete mode 100644 client/doc/GetDomainConfigs200ResponseAnyOf.md create mode 100644 client/doc/GetDomainConfigsResponse.md create mode 100644 client/doc/GetDomainConfigsResponseAnyOf.md rename client/doc/{GetDomainConfigs200ResponseAnyOf1.md => GetDomainConfigsResponseAnyOf1.md} (81%) delete mode 100644 client/doc/GetEmailTemplate200Response.md delete mode 100644 client/doc/GetEmailTemplateDefinitions200Response.md delete mode 100644 client/doc/GetEmailTemplateRenderErrors200Response.md delete mode 100644 client/doc/GetEmailTemplates200Response.md delete mode 100644 client/doc/GetEventLog200Response.md delete mode 100644 client/doc/GetFeedPosts200Response.md delete mode 100644 client/doc/GetFeedPostsPublic200Response.md delete mode 100644 client/doc/GetFeedPostsStats200Response.md create mode 100644 client/doc/GetGifsSearchResponse.md create mode 100644 client/doc/GetGifsTrendingResponse.md delete mode 100644 client/doc/GetHashTags200Response.md delete mode 100644 client/doc/GetModerator200Response.md delete mode 100644 client/doc/GetModerators200Response.md delete mode 100644 client/doc/GetNotificationCount200Response.md delete mode 100644 client/doc/GetNotifications200Response.md delete mode 100644 client/doc/GetPendingWebhookEventCount200Response.md delete mode 100644 client/doc/GetPendingWebhookEvents200Response.md create mode 100644 client/doc/GetPublicPagesResponse.md delete mode 100644 client/doc/GetQuestionConfig200Response.md delete mode 100644 client/doc/GetQuestionConfigs200Response.md delete mode 100644 client/doc/GetQuestionResult200Response.md delete mode 100644 client/doc/GetQuestionResults200Response.md rename client/doc/{GetSSOUsers200Response.md => GetSSOUsersResponse.md} (90%) delete mode 100644 client/doc/GetTenant200Response.md delete mode 100644 client/doc/GetTenantDailyUsages200Response.md create mode 100644 client/doc/GetTenantManualBadgesResponse.md delete mode 100644 client/doc/GetTenantPackage200Response.md delete mode 100644 client/doc/GetTenantPackages200Response.md delete mode 100644 client/doc/GetTenantUser200Response.md delete mode 100644 client/doc/GetTenantUsers200Response.md delete mode 100644 client/doc/GetTenants200Response.md delete mode 100644 client/doc/GetTicket200Response.md delete mode 100644 client/doc/GetTickets200Response.md create mode 100644 client/doc/GetTranslationsResponse.md delete mode 100644 client/doc/GetUser200Response.md delete mode 100644 client/doc/GetUserBadge200Response.md delete mode 100644 client/doc/GetUserBadgeProgressById200Response.md delete mode 100644 client/doc/GetUserBadgeProgressList200Response.md delete mode 100644 client/doc/GetUserBadges200Response.md create mode 100644 client/doc/GetUserInternalProfileResponse.md create mode 100644 client/doc/GetUserInternalProfileResponseProfile.md create mode 100644 client/doc/GetUserManualBadgesResponse.md delete mode 100644 client/doc/GetUserNotificationCount200Response.md delete mode 100644 client/doc/GetUserNotifications200Response.md delete mode 100644 client/doc/GetUserPresenceStatuses200Response.md delete mode 100644 client/doc/GetUserReactsPublic200Response.md create mode 100644 client/doc/GetUserTrustFactorResponse.md create mode 100644 client/doc/GetV1PageLikes.md create mode 100644 client/doc/GetV2PageReactUsersResponse.md create mode 100644 client/doc/GetV2PageReacts.md delete mode 100644 client/doc/GetVotes200Response.md delete mode 100644 client/doc/GetVotesForUser200Response.md create mode 100644 client/doc/GifGetLargeResponse.md rename client/doc/{AddDomainConfig200ResponseAnyOf.md => GifSearchInternalError.md} (74%) create mode 100644 client/doc/GifSearchResponse.md create mode 100644 client/doc/GifSearchResponseImagesInnerInner.md create mode 100644 client/doc/ModerationAPIChildCommentsResponse.md create mode 100644 client/doc/ModerationAPIComment.md create mode 100644 client/doc/ModerationAPICommentLog.md create mode 100644 client/doc/ModerationAPICommentResponse.md create mode 100644 client/doc/ModerationAPICountCommentsResponse.md create mode 100644 client/doc/ModerationAPIGetCommentIdsResponse.md create mode 100644 client/doc/ModerationAPIGetCommentsResponse.md create mode 100644 client/doc/ModerationAPIGetLogsResponse.md create mode 100644 client/doc/ModerationApi.md create mode 100644 client/doc/ModerationCommentSearchResponse.md create mode 100644 client/doc/ModerationExportResponse.md create mode 100644 client/doc/ModerationExportStatusResponse.md create mode 100644 client/doc/ModerationFilter.md create mode 100644 client/doc/ModerationPageSearchProjected.md create mode 100644 client/doc/ModerationPageSearchResponse.md create mode 100644 client/doc/ModerationSiteSearchProjected.md create mode 100644 client/doc/ModerationSiteSearchResponse.md create mode 100644 client/doc/ModerationSuggestResponse.md create mode 100644 client/doc/ModerationUserSearchProjected.md create mode 100644 client/doc/ModerationUserSearchResponse.md create mode 100644 client/doc/PageUserEntry.md create mode 100644 client/doc/PageUsersInfoResponse.md create mode 100644 client/doc/PageUsersOfflineResponse.md create mode 100644 client/doc/PageUsersOnlineResponse.md create mode 100644 client/doc/PagesSortBy.md create mode 100644 client/doc/PatchDomainConfigResponse.md delete mode 100644 client/doc/PinComment200Response.md create mode 100644 client/doc/PostRemoveCommentResponse.md create mode 100644 client/doc/PreBanSummary.md create mode 100644 client/doc/PublicPage.md rename client/doc/{GetDomainConfigs200Response.md => PutDomainConfigResponse.md} (76%) delete mode 100644 client/doc/ReactFeedPostPublic200Response.md create mode 100644 client/doc/RemoveCommentActionResponse.md create mode 100644 client/doc/RemoveUserBadgeResponse.md delete mode 100644 client/doc/RenderEmailTemplate200Response.md delete mode 100644 client/doc/ResetUserNotifications200Response.md rename client/doc/{SaveComment200Response.md => SaveCommentsBulkResponse.md} (81%) rename client/doc/{SearchUsers200Response.md => SearchUsersResult.md} (60%) create mode 100644 client/doc/SetCommentApprovedResponse.md delete mode 100644 client/doc/SetCommentText200Response.md create mode 100644 client/doc/SetCommentTextParams.md create mode 100644 client/doc/SetCommentTextResponse.md create mode 100644 client/doc/SetUserTrustFactorResponse.md create mode 100644 client/doc/TenantBadge.md delete mode 100644 client/doc/UnBlockCommentPublic200Response.md delete mode 100644 client/doc/UpdateUserBadge200Response.md create mode 100644 client/doc/UpdateUserNotificationCommentSubscriptionStatusResponse.md create mode 100644 client/doc/UpdateUserNotificationPageSubscriptionStatusResponse.md delete mode 100644 client/doc/UpdateUserNotificationStatus200Response.md create mode 100644 client/doc/UpdateUserNotificationStatusResponse.md create mode 100644 client/doc/UsersListLocation.md delete mode 100644 client/doc/VoteComment200Response.md create mode 100644 client/doc/VoteResponseStatus.md create mode 100644 client/lib/api/moderation_api.dart rename client/lib/model/{add_domain_config200_response.dart => add_domain_config_response.dart} (59%) rename client/lib/model/{add_domain_config200_response_any_of.dart => add_domain_config_response_any_of.dart} (61%) delete mode 100644 client/lib/model/add_hash_tag200_response.dart delete mode 100644 client/lib/model/add_hash_tags_bulk200_response.dart create mode 100644 client/lib/model/adjust_comment_votes_params.dart create mode 100644 client/lib/model/adjust_votes_response.dart delete mode 100644 client/lib/model/aggregate_question_results200_response.dart create mode 100644 client/lib/model/aggregate_response.dart create mode 100644 client/lib/model/aggregation_api_error.dart create mode 100644 client/lib/model/api_ban_user_change_log.dart create mode 100644 client/lib/model/api_ban_user_changed_values.dart create mode 100644 client/lib/model/api_banned_user.dart create mode 100644 client/lib/model/api_banned_user_with_multi_match_info.dart create mode 100644 client/lib/model/api_comment_common_banned_user.dart create mode 100644 client/lib/model/api_moderate_get_user_ban_preferences_response.dart create mode 100644 client/lib/model/api_moderate_user_ban_preferences.dart create mode 100644 client/lib/model/award_user_badge_response.dart create mode 100644 client/lib/model/ban_user_from_comment_result.dart create mode 100644 client/lib/model/ban_user_undo_params.dart create mode 100644 client/lib/model/banned_user_match.dart create mode 100644 client/lib/model/banned_user_match_matched_on_value.dart create mode 100644 client/lib/model/banned_user_match_type.dart delete mode 100644 client/lib/model/block_from_comment_public200_response.dart create mode 100644 client/lib/model/build_moderation_filter_params.dart create mode 100644 client/lib/model/build_moderation_filter_response.dart delete mode 100644 client/lib/model/bulk_aggregate_question_results200_response.dart rename client/lib/model/{update_user_badge200_response.dart => bulk_create_hash_tags_response_results_inner.dart} (74%) create mode 100644 client/lib/model/bulk_pre_ban_params.dart create mode 100644 client/lib/model/bulk_pre_ban_summary.dart delete mode 100644 client/lib/model/change_ticket_state200_response.dart delete mode 100644 client/lib/model/checked_comments_for_blocked200_response.dart delete mode 100644 client/lib/model/combine_comments_with_question_results200_response.dart create mode 100644 client/lib/model/comments_by_ids_params.dart delete mode 100644 client/lib/model/create_comment_public200_response.dart delete mode 100644 client/lib/model/create_email_template200_response.dart delete mode 100644 client/lib/model/create_feed_post200_response.dart delete mode 100644 client/lib/model/create_feed_post_public200_response.dart delete mode 100644 client/lib/model/create_moderator200_response.dart delete mode 100644 client/lib/model/create_question_config200_response.dart delete mode 100644 client/lib/model/create_question_result200_response.dart delete mode 100644 client/lib/model/create_tenant200_response.dart delete mode 100644 client/lib/model/create_tenant_package200_response.dart delete mode 100644 client/lib/model/create_tenant_user200_response.dart delete mode 100644 client/lib/model/create_ticket200_response.dart delete mode 100644 client/lib/model/create_user_badge200_response.dart create mode 100644 client/lib/model/create_v1_page_react.dart delete mode 100644 client/lib/model/delete_comment200_response.dart delete mode 100644 client/lib/model/delete_comment_public200_response.dart delete mode 100644 client/lib/model/delete_comment_vote200_response.dart rename client/lib/model/{delete_domain_config200_response.dart => delete_domain_config_response.dart} (58%) delete mode 100644 client/lib/model/delete_feed_post_public200_response.dart create mode 100644 client/lib/model/delete_feed_post_public_response.dart rename client/lib/model/{delete_hash_tag_request.dart => delete_hash_tag_request_body.dart} (62%) delete mode 100644 client/lib/model/flag_comment200_response.dart delete mode 100644 client/lib/model/flag_comment_public200_response.dart delete mode 100644 client/lib/model/get_audit_logs200_response.dart create mode 100644 client/lib/model/get_banned_users_count_response.dart create mode 100644 client/lib/model/get_banned_users_from_comment_response.dart delete mode 100644 client/lib/model/get_cached_notification_count200_response.dart delete mode 100644 client/lib/model/get_comment200_response.dart create mode 100644 client/lib/model/get_comment_ban_status_response.dart delete mode 100644 client/lib/model/get_comment_text200_response.dart create mode 100644 client/lib/model/get_comment_text_response.dart delete mode 100644 client/lib/model/get_comment_vote_user_names200_response.dart delete mode 100644 client/lib/model/get_comments200_response.dart create mode 100644 client/lib/model/get_comments_for_user_response.dart delete mode 100644 client/lib/model/get_comments_public200_response.dart rename client/lib/model/{get_domain_config200_response.dart => get_domain_config_response.dart} (59%) rename client/lib/model/{get_domain_configs200_response.dart => get_domain_configs_response.dart} (59%) rename client/lib/model/{get_domain_configs200_response_any_of.dart => get_domain_configs_response_any_of.dart} (60%) rename client/lib/model/{get_domain_configs200_response_any_of1.dart => get_domain_configs_response_any_of1.dart} (55%) delete mode 100644 client/lib/model/get_email_template200_response.dart delete mode 100644 client/lib/model/get_email_template_definitions200_response.dart delete mode 100644 client/lib/model/get_email_template_render_errors200_response.dart delete mode 100644 client/lib/model/get_email_templates200_response.dart delete mode 100644 client/lib/model/get_event_log200_response.dart delete mode 100644 client/lib/model/get_feed_posts200_response.dart delete mode 100644 client/lib/model/get_feed_posts_public200_response.dart delete mode 100644 client/lib/model/get_feed_posts_stats200_response.dart create mode 100644 client/lib/model/get_gifs_search_response.dart create mode 100644 client/lib/model/get_gifs_trending_response.dart delete mode 100644 client/lib/model/get_hash_tags200_response.dart delete mode 100644 client/lib/model/get_moderator200_response.dart delete mode 100644 client/lib/model/get_moderators200_response.dart delete mode 100644 client/lib/model/get_notification_count200_response.dart delete mode 100644 client/lib/model/get_notifications200_response.dart delete mode 100644 client/lib/model/get_pending_webhook_event_count200_response.dart delete mode 100644 client/lib/model/get_pending_webhook_events200_response.dart create mode 100644 client/lib/model/get_public_pages_response.dart delete mode 100644 client/lib/model/get_question_config200_response.dart delete mode 100644 client/lib/model/get_question_configs200_response.dart delete mode 100644 client/lib/model/get_question_result200_response.dart delete mode 100644 client/lib/model/get_question_results200_response.dart rename client/lib/model/{get_sso_users200_response.dart => get_sso_users_response.dart} (58%) delete mode 100644 client/lib/model/get_tenant200_response.dart delete mode 100644 client/lib/model/get_tenant_daily_usages200_response.dart create mode 100644 client/lib/model/get_tenant_manual_badges_response.dart delete mode 100644 client/lib/model/get_tenant_package200_response.dart delete mode 100644 client/lib/model/get_tenant_packages200_response.dart delete mode 100644 client/lib/model/get_tenant_user200_response.dart delete mode 100644 client/lib/model/get_tenant_users200_response.dart delete mode 100644 client/lib/model/get_tenants200_response.dart delete mode 100644 client/lib/model/get_ticket200_response.dart delete mode 100644 client/lib/model/get_tickets200_response.dart create mode 100644 client/lib/model/get_translations_response.dart delete mode 100644 client/lib/model/get_user200_response.dart delete mode 100644 client/lib/model/get_user_badge200_response.dart delete mode 100644 client/lib/model/get_user_badge_progress_by_id200_response.dart delete mode 100644 client/lib/model/get_user_badge_progress_list200_response.dart delete mode 100644 client/lib/model/get_user_badges200_response.dart create mode 100644 client/lib/model/get_user_internal_profile_response.dart create mode 100644 client/lib/model/get_user_internal_profile_response_profile.dart create mode 100644 client/lib/model/get_user_manual_badges_response.dart delete mode 100644 client/lib/model/get_user_notification_count200_response.dart delete mode 100644 client/lib/model/get_user_notifications200_response.dart delete mode 100644 client/lib/model/get_user_presence_statuses200_response.dart delete mode 100644 client/lib/model/get_user_reacts_public200_response.dart create mode 100644 client/lib/model/get_user_trust_factor_response.dart create mode 100644 client/lib/model/get_v1_page_likes.dart create mode 100644 client/lib/model/get_v2_page_react_users_response.dart create mode 100644 client/lib/model/get_v2_page_reacts.dart delete mode 100644 client/lib/model/get_votes200_response.dart delete mode 100644 client/lib/model/get_votes_for_user200_response.dart create mode 100644 client/lib/model/gif_get_large_response.dart rename client/lib/model/{delete_feed_post_public200_response_any_of.dart => gif_search_internal_error.dart} (55%) create mode 100644 client/lib/model/gif_search_response.dart create mode 100644 client/lib/model/gif_search_response_images_inner_inner.dart delete mode 100644 client/lib/model/lock_comment200_response.dart create mode 100644 client/lib/model/moderation_api_child_comments_response.dart create mode 100644 client/lib/model/moderation_api_comment.dart create mode 100644 client/lib/model/moderation_api_comment_log.dart create mode 100644 client/lib/model/moderation_api_comment_response.dart create mode 100644 client/lib/model/moderation_api_count_comments_response.dart create mode 100644 client/lib/model/moderation_api_get_comment_ids_response.dart create mode 100644 client/lib/model/moderation_api_get_comments_response.dart create mode 100644 client/lib/model/moderation_api_get_logs_response.dart create mode 100644 client/lib/model/moderation_comment_search_response.dart create mode 100644 client/lib/model/moderation_export_response.dart create mode 100644 client/lib/model/moderation_export_status_response.dart create mode 100644 client/lib/model/moderation_filter.dart create mode 100644 client/lib/model/moderation_page_search_projected.dart create mode 100644 client/lib/model/moderation_page_search_response.dart create mode 100644 client/lib/model/moderation_site_search_projected.dart create mode 100644 client/lib/model/moderation_site_search_response.dart create mode 100644 client/lib/model/moderation_suggest_response.dart create mode 100644 client/lib/model/moderation_user_search_projected.dart create mode 100644 client/lib/model/moderation_user_search_response.dart create mode 100644 client/lib/model/page_user_entry.dart create mode 100644 client/lib/model/page_users_info_response.dart create mode 100644 client/lib/model/page_users_offline_response.dart create mode 100644 client/lib/model/page_users_online_response.dart create mode 100644 client/lib/model/pages_sort_by.dart create mode 100644 client/lib/model/patch_domain_config_response.dart delete mode 100644 client/lib/model/patch_hash_tag200_response.dart delete mode 100644 client/lib/model/pin_comment200_response.dart create mode 100644 client/lib/model/post_remove_comment_response.dart create mode 100644 client/lib/model/pre_ban_summary.dart create mode 100644 client/lib/model/public_page.dart create mode 100644 client/lib/model/put_domain_config_response.dart delete mode 100644 client/lib/model/react_feed_post_public200_response.dart create mode 100644 client/lib/model/remove_comment_action_response.dart create mode 100644 client/lib/model/remove_user_badge_response.dart delete mode 100644 client/lib/model/render_email_template200_response.dart delete mode 100644 client/lib/model/reset_user_notifications200_response.dart rename client/lib/model/{save_comment200_response.dart => save_comments_bulk_response.dart} (74%) delete mode 100644 client/lib/model/search_users200_response.dart create mode 100644 client/lib/model/search_users_result.dart create mode 100644 client/lib/model/set_comment_approved_response.dart delete mode 100644 client/lib/model/set_comment_text200_response.dart create mode 100644 client/lib/model/set_comment_text_params.dart create mode 100644 client/lib/model/set_comment_text_response.dart create mode 100644 client/lib/model/set_user_trust_factor_response.dart create mode 100644 client/lib/model/tenant_badge.dart delete mode 100644 client/lib/model/un_block_comment_public200_response.dart create mode 100644 client/lib/model/update_user_notification_comment_subscription_status_response.dart create mode 100644 client/lib/model/update_user_notification_page_subscription_status_response.dart delete mode 100644 client/lib/model/update_user_notification_status200_response.dart create mode 100644 client/lib/model/update_user_notification_status_response.dart create mode 100644 client/lib/model/users_list_location.dart delete mode 100644 client/lib/model/vote_comment200_response.dart rename client/lib/model/{record_string_string_or_number_value.dart => vote_response_status.dart} (57%) rename client/test/{add_domain_config200_response_any_of_test.dart => add_domain_config_response_any_of_test.dart} (78%) rename client/test/{add_domain_config200_response_test.dart => add_domain_config_response_test.dart} (84%) delete mode 100644 client/test/add_hash_tag200_response_test.dart delete mode 100644 client/test/add_hash_tags_bulk200_response_test.dart create mode 100644 client/test/adjust_comment_votes_params_test.dart create mode 100644 client/test/adjust_votes_response_test.dart delete mode 100644 client/test/aggregate_question_results200_response_test.dart create mode 100644 client/test/aggregate_response_test.dart create mode 100644 client/test/aggregation_api_error_test.dart create mode 100644 client/test/api_ban_user_change_log_test.dart create mode 100644 client/test/api_ban_user_changed_values_test.dart create mode 100644 client/test/api_banned_user_test.dart create mode 100644 client/test/api_banned_user_with_multi_match_info_test.dart create mode 100644 client/test/api_comment_common_banned_user_test.dart create mode 100644 client/test/api_moderate_get_user_ban_preferences_response_test.dart create mode 100644 client/test/api_moderate_user_ban_preferences_test.dart create mode 100644 client/test/award_user_badge_response_test.dart create mode 100644 client/test/ban_user_from_comment_result_test.dart create mode 100644 client/test/ban_user_undo_params_test.dart rename client/test/{record_string_string_or_number_value_test.dart => banned_user_match_matched_on_value_test.dart} (70%) create mode 100644 client/test/banned_user_match_test.dart create mode 100644 client/test/banned_user_match_type_test.dart delete mode 100644 client/test/block_from_comment_public200_response_test.dart create mode 100644 client/test/build_moderation_filter_params_test.dart create mode 100644 client/test/build_moderation_filter_response_test.dart delete mode 100644 client/test/bulk_aggregate_question_results200_response_test.dart rename client/test/{patch_hash_tag200_response_test.dart => bulk_create_hash_tags_response_results_inner_test.dart} (88%) create mode 100644 client/test/bulk_pre_ban_params_test.dart create mode 100644 client/test/bulk_pre_ban_summary_test.dart delete mode 100644 client/test/change_ticket_state200_response_test.dart delete mode 100644 client/test/checked_comments_for_blocked200_response_test.dart delete mode 100644 client/test/combine_comments_with_question_results200_response_test.dart create mode 100644 client/test/comments_by_ids_params_test.dart delete mode 100644 client/test/create_comment_public200_response_test.dart delete mode 100644 client/test/create_email_template200_response_test.dart delete mode 100644 client/test/create_feed_post200_response_test.dart delete mode 100644 client/test/create_feed_post_public200_response_test.dart delete mode 100644 client/test/create_moderator200_response_test.dart delete mode 100644 client/test/create_question_config200_response_test.dart delete mode 100644 client/test/create_question_result200_response_test.dart delete mode 100644 client/test/create_tenant200_response_test.dart delete mode 100644 client/test/create_tenant_package200_response_test.dart delete mode 100644 client/test/create_tenant_user200_response_test.dart delete mode 100644 client/test/create_ticket200_response_test.dart delete mode 100644 client/test/create_user_badge200_response_test.dart create mode 100644 client/test/create_v1_page_react_test.dart delete mode 100644 client/test/delete_comment200_response_test.dart delete mode 100644 client/test/delete_comment_public200_response_test.dart delete mode 100644 client/test/delete_comment_vote200_response_test.dart rename client/test/{delete_domain_config200_response_test.dart => delete_domain_config_response_test.dart} (75%) delete mode 100644 client/test/delete_feed_post_public200_response_test.dart rename client/test/{delete_feed_post_public200_response_any_of_test.dart => delete_feed_post_public_response_test.dart} (73%) rename client/test/{delete_hash_tag_request_test.dart => delete_hash_tag_request_body_test.dart} (77%) delete mode 100644 client/test/flag_comment200_response_test.dart delete mode 100644 client/test/flag_comment_public200_response_test.dart delete mode 100644 client/test/get_audit_logs200_response_test.dart create mode 100644 client/test/get_banned_users_count_response_test.dart create mode 100644 client/test/get_banned_users_from_comment_response_test.dart delete mode 100644 client/test/get_cached_notification_count200_response_test.dart delete mode 100644 client/test/get_comment200_response_test.dart create mode 100644 client/test/get_comment_ban_status_response_test.dart delete mode 100644 client/test/get_comment_text200_response_test.dart create mode 100644 client/test/get_comment_text_response_test.dart delete mode 100644 client/test/get_comment_vote_user_names200_response_test.dart delete mode 100644 client/test/get_comments200_response_test.dart create mode 100644 client/test/get_comments_for_user_response_test.dart delete mode 100644 client/test/get_comments_public200_response_test.dart rename client/test/{get_domain_config200_response_test.dart => get_domain_config_response_test.dart} (84%) rename client/test/{get_domain_configs200_response_any_of1_test.dart => get_domain_configs_response_any_of1_test.dart} (80%) rename client/test/{get_domain_configs200_response_any_of_test.dart => get_domain_configs_response_any_of_test.dart} (78%) rename client/test/{get_domain_configs200_response_test.dart => get_domain_configs_response_test.dart} (84%) delete mode 100644 client/test/get_email_template200_response_test.dart delete mode 100644 client/test/get_email_template_definitions200_response_test.dart delete mode 100644 client/test/get_email_template_render_errors200_response_test.dart delete mode 100644 client/test/get_email_templates200_response_test.dart delete mode 100644 client/test/get_event_log200_response_test.dart delete mode 100644 client/test/get_feed_posts200_response_test.dart delete mode 100644 client/test/get_feed_posts_public200_response_test.dart delete mode 100644 client/test/get_feed_posts_stats200_response_test.dart create mode 100644 client/test/get_gifs_search_response_test.dart create mode 100644 client/test/get_gifs_trending_response_test.dart delete mode 100644 client/test/get_hash_tags200_response_test.dart delete mode 100644 client/test/get_moderator200_response_test.dart delete mode 100644 client/test/get_moderators200_response_test.dart delete mode 100644 client/test/get_notification_count200_response_test.dart delete mode 100644 client/test/get_notifications200_response_test.dart delete mode 100644 client/test/get_pending_webhook_event_count200_response_test.dart delete mode 100644 client/test/get_pending_webhook_events200_response_test.dart create mode 100644 client/test/get_public_pages_response_test.dart delete mode 100644 client/test/get_question_config200_response_test.dart delete mode 100644 client/test/get_question_configs200_response_test.dart delete mode 100644 client/test/get_question_result200_response_test.dart delete mode 100644 client/test/get_question_results200_response_test.dart rename client/test/{get_sso_users200_response_test.dart => get_sso_users_response_test.dart} (82%) delete mode 100644 client/test/get_tenant200_response_test.dart delete mode 100644 client/test/get_tenant_daily_usages200_response_test.dart create mode 100644 client/test/get_tenant_manual_badges_response_test.dart delete mode 100644 client/test/get_tenant_package200_response_test.dart delete mode 100644 client/test/get_tenant_packages200_response_test.dart delete mode 100644 client/test/get_tenant_user200_response_test.dart delete mode 100644 client/test/get_tenant_users200_response_test.dart delete mode 100644 client/test/get_tenants200_response_test.dart delete mode 100644 client/test/get_ticket200_response_test.dart delete mode 100644 client/test/get_tickets200_response_test.dart create mode 100644 client/test/get_translations_response_test.dart delete mode 100644 client/test/get_user200_response_test.dart delete mode 100644 client/test/get_user_badge200_response_test.dart delete mode 100644 client/test/get_user_badge_progress_by_id200_response_test.dart delete mode 100644 client/test/get_user_badge_progress_list200_response_test.dart delete mode 100644 client/test/get_user_badges200_response_test.dart create mode 100644 client/test/get_user_internal_profile_response_profile_test.dart create mode 100644 client/test/get_user_internal_profile_response_test.dart create mode 100644 client/test/get_user_manual_badges_response_test.dart delete mode 100644 client/test/get_user_notification_count200_response_test.dart delete mode 100644 client/test/get_user_notifications200_response_test.dart delete mode 100644 client/test/get_user_presence_statuses200_response_test.dart delete mode 100644 client/test/get_user_reacts_public200_response_test.dart create mode 100644 client/test/get_user_trust_factor_response_test.dart create mode 100644 client/test/get_v1_page_likes_test.dart create mode 100644 client/test/get_v2_page_react_users_response_test.dart create mode 100644 client/test/get_v2_page_reacts_test.dart delete mode 100644 client/test/get_votes200_response_test.dart delete mode 100644 client/test/get_votes_for_user200_response_test.dart create mode 100644 client/test/gif_get_large_response_test.dart create mode 100644 client/test/gif_search_internal_error_test.dart create mode 100644 client/test/gif_search_response_images_inner_inner_test.dart create mode 100644 client/test/gif_search_response_test.dart delete mode 100644 client/test/lock_comment200_response_test.dart create mode 100644 client/test/moderation_api_child_comments_response_test.dart create mode 100644 client/test/moderation_api_comment_log_test.dart create mode 100644 client/test/moderation_api_comment_response_test.dart create mode 100644 client/test/moderation_api_comment_test.dart create mode 100644 client/test/moderation_api_count_comments_response_test.dart create mode 100644 client/test/moderation_api_get_comment_ids_response_test.dart create mode 100644 client/test/moderation_api_get_comments_response_test.dart create mode 100644 client/test/moderation_api_get_logs_response_test.dart create mode 100644 client/test/moderation_api_test.dart create mode 100644 client/test/moderation_comment_search_response_test.dart create mode 100644 client/test/moderation_export_response_test.dart create mode 100644 client/test/moderation_export_status_response_test.dart create mode 100644 client/test/moderation_filter_test.dart create mode 100644 client/test/moderation_page_search_projected_test.dart create mode 100644 client/test/moderation_page_search_response_test.dart create mode 100644 client/test/moderation_site_search_projected_test.dart create mode 100644 client/test/moderation_site_search_response_test.dart create mode 100644 client/test/moderation_suggest_response_test.dart create mode 100644 client/test/moderation_user_search_projected_test.dart create mode 100644 client/test/moderation_user_search_response_test.dart create mode 100644 client/test/page_user_entry_test.dart create mode 100644 client/test/page_users_info_response_test.dart create mode 100644 client/test/page_users_offline_response_test.dart create mode 100644 client/test/page_users_online_response_test.dart create mode 100644 client/test/pages_sort_by_test.dart create mode 100644 client/test/patch_domain_config_response_test.dart delete mode 100644 client/test/pin_comment200_response_test.dart create mode 100644 client/test/post_remove_comment_response_test.dart create mode 100644 client/test/pre_ban_summary_test.dart create mode 100644 client/test/public_page_test.dart create mode 100644 client/test/put_domain_config_response_test.dart delete mode 100644 client/test/react_feed_post_public200_response_test.dart create mode 100644 client/test/remove_comment_action_response_test.dart create mode 100644 client/test/remove_user_badge_response_test.dart delete mode 100644 client/test/render_email_template200_response_test.dart delete mode 100644 client/test/reset_user_notifications200_response_test.dart rename client/test/{save_comment200_response_test.dart => save_comments_bulk_response_test.dart} (92%) delete mode 100644 client/test/search_users200_response_test.dart create mode 100644 client/test/search_users_result_test.dart create mode 100644 client/test/set_comment_approved_response_test.dart delete mode 100644 client/test/set_comment_text200_response_test.dart create mode 100644 client/test/set_comment_text_params_test.dart create mode 100644 client/test/set_comment_text_response_test.dart create mode 100644 client/test/set_user_trust_factor_response_test.dart create mode 100644 client/test/tenant_badge_test.dart delete mode 100644 client/test/un_block_comment_public200_response_test.dart delete mode 100644 client/test/update_user_badge200_response_test.dart create mode 100644 client/test/update_user_notification_comment_subscription_status_response_test.dart create mode 100644 client/test/update_user_notification_page_subscription_status_response_test.dart delete mode 100644 client/test/update_user_notification_status200_response_test.dart create mode 100644 client/test/update_user_notification_status_response_test.dart create mode 100644 client/test/users_list_location_test.dart delete mode 100644 client/test/vote_comment200_response_test.dart create mode 100644 client/test/vote_response_status_test.dart diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 96e0ac6..b5ddb88 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,15 +360,17 @@ 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/VoteResponseStatus.md doc/VoteResponseUser.md 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 +380,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 +400,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 +419,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 +431,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 +469,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 +523,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 +603,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 +651,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 +666,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 +677,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 +717,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 +734,25 @@ 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_status.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 +762,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 +781,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 +793,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 +831,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 +886,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 +966,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 +1016,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 +1031,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 +1042,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 +1082,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,9 +1099,10 @@ 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_status_test.dart test/vote_response_test.dart test/vote_response_user_test.dart test/vote_style_test.dart diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index a29ba3d..b23eb27 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.21.0 +7.11.0 diff --git a/client/README.md b/client/README.md index c829de1..ac1926c 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.11.0 - 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,10 +631,11 @@ 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) + - [VoteResponseStatus](doc//VoteResponseStatus.md) - [VoteResponseUser](doc//VoteResponseUser.md) - [VoteStyle](doc//VoteStyle.md) diff --git a/client/doc/APIAuditLog.md b/client/doc/APIAuditLog.md index 15798a0..7f3b381 100644 --- a/client/doc/APIAuditLog.md +++ b/client/doc/APIAuditLog.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **when_** | [**DateTime**](DateTime.md) | | [optional] **description** | **String** | | [optional] **serverStartDate** | [**DateTime**](DateTime.md) | | [optional] -**objectDetails** | **Map** | Construct a type with a set of properties K of type T | [optional] +**objectDetails** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [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/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/APISaveCommentResponse.md b/client/doc/APISaveCommentResponse.md index da65e05..5293410 100644 --- a/client/doc/APISaveCommentResponse.md +++ b/client/doc/APISaveCommentResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **status** | [**APIStatus**](APIStatus.md) | | **comment** | [**APIComment**](APIComment.md) | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [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/AddDomainConfigResponse.md similarity index 76% rename from client/doc/AddDomainConfig200Response.md rename to client/doc/AddDomainConfigResponse.md index dd341d1..b5e5c7b 100644 --- a/client/doc/AddDomainConfig200Response.md +++ b/client/doc/AddDomainConfigResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.AddDomainConfig200Response +# fastcomments_dart.model.AddDomainConfigResponse ## Load the model package ```dart @@ -10,8 +10,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reason** | **String** | | **code** | **String** | | -**status** | **Object** | | -**configuration** | **Object** | | +**status** | [**Object**](.md) | | +**configuration** | [**Object**](.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/AddDomainConfigResponseAnyOf.md b/client/doc/AddDomainConfigResponseAnyOf.md new file mode 100644 index 0000000..d296bc0 --- /dev/null +++ b/client/doc/AddDomainConfigResponseAnyOf.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.AddDomainConfigResponseAnyOf + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | [**Object**](.md) | | +**status** | [**Object**](.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/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 58% rename from client/doc/LockComment200Response.md rename to client/doc/AggregateResponse.md index d69b160..a5e451a 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) | | +**data** | [**List**](AggregationItem.md) | | [default to const []] +**stats** | [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] **reason** | **String** | | **code** | **String** | | -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **int** | | [optional] -**maxCharacterLength** | **int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [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/AggregationAPIError.md b/client/doc/AggregationAPIError.md new file mode 100644 index 0000000..9b50520 --- /dev/null +++ b/client/doc/AggregationAPIError.md @@ -0,0 +1,18 @@ +# fastcomments_dart.model.AggregationAPIError + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**reason** | **String** | | +**code** | **String** | | +**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/DeleteDomainConfig200Response.md b/client/doc/BannedUserMatchType.md similarity index 80% rename from client/doc/DeleteDomainConfig200Response.md rename to client/doc/BannedUserMatchType.md index 87b0882..1eff932 100644 --- a/client/doc/DeleteDomainConfig200Response.md +++ b/client/doc/BannedUserMatchType.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.DeleteDomainConfig200Response +# fastcomments_dart.model.BannedUserMatchType ## Load the model package ```dart @@ -8,7 +8,6 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **Object** | | [[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/PatchHashTag200Response.md b/client/doc/BulkCreateHashTagsResponseResultsInner.md similarity index 92% rename from client/doc/PatchHashTag200Response.md rename to client/doc/BulkCreateHashTagsResponseResultsInner.md index cc3fed1..ab00167 100644 --- a/client/doc/PatchHashTag200Response.md +++ b/client/doc/BulkCreateHashTagsResponseResultsInner.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.PatchHashTag200Response +# fastcomments_dart.model.BulkCreateHashTagsResponseResultsInner ## Load the model package ```dart 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..49b84ff 100644 --- a/client/doc/CommentData.md +++ b/client/doc/CommentData.md @@ -25,13 +25,13 @@ Name | Type | Description | Notes **isFromMyAccountPage** | **bool** | | [optional] **url** | **String** | | **urlId** | **String** | | -**meta** | **Object** | | [optional] +**meta** | [**Object**](.md) | | [optional] **moderationGroupIds** | **List** | | [optional] [default to const []] **rating** | **double** | | [optional] **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..0702168 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] @@ -35,7 +36,7 @@ Name | Type | Description | Notes **votesDownAfter** | **double** | | [optional] **repeatAction** | [**RepeatCommentHandlingAction**](RepeatCommentHandlingAction.md) | | [optional] **reason** | [**RepeatCommentCheckIgnoredReason**](RepeatCommentCheckIgnoredReason.md) | | [optional] -**otherData** | **Object** | | [optional] +**otherData** | [**Object**](.md) | | [optional] **spamBefore** | **bool** | | [optional] **spamAfter** | **bool** | | [optional] **permanentFlag** | **String** | | [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..53b47bf 100644 --- a/client/doc/CreateCommentParams.md +++ b/client/doc/CreateCommentParams.md @@ -25,13 +25,13 @@ Name | Type | Description | Notes **isFromMyAccountPage** | **bool** | | [optional] **url** | **String** | | **urlId** | **String** | | -**meta** | **Object** | | [optional] +**meta** | [**Object**](.md) | | [optional] **moderationGroupIds** | **List** | | [optional] [default to const []] **rating** | **double** | | [optional] **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/CreateEmailTemplateBody.md b/client/doc/CreateEmailTemplateBody.md index 41123a9..4d307d1 100644 --- a/client/doc/CreateEmailTemplateBody.md +++ b/client/doc/CreateEmailTemplateBody.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **ejs** | **String** | | **domain** | **String** | | [optional] **translationOverridesByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**testData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**testData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [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/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/CustomEmailTemplate.md b/client/doc/CustomEmailTemplate.md index 27d50b4..b32d655 100644 --- a/client/doc/CustomEmailTemplate.md +++ b/client/doc/CustomEmailTemplate.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **domain** | **String** | | [optional] **ejs** | **String** | | **translationOverridesByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [default to const {}] -**testData** | **Object** | | +**testData** | [**Object**](.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/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/DeleteDomainConfigResponse.md b/client/doc/DeleteDomainConfigResponse.md new file mode 100644 index 0000000..77c20b1 --- /dev/null +++ b/client/doc/DeleteDomainConfigResponse.md @@ -0,0 +1,15 @@ +# fastcomments_dart.model.DeleteDomainConfigResponse + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**Object**](.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/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/EmailTemplateDefinition.md b/client/doc/EmailTemplateDefinition.md index 95e7f18..27fc919 100644 --- a/client/doc/EmailTemplateDefinition.md +++ b/client/doc/EmailTemplateDefinition.md @@ -9,7 +9,7 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **emailTemplateId** | **String** | | -**defaultTestData** | **Map** | Construct a type with a set of properties K of type T | [default to const {}] +**defaultTestData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [default to const {}] **defaultTranslationsByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [default to const {}] **defaultEJS** | **String** | | 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/GetCommentsResponsePublicComment.md b/client/doc/GetCommentsResponsePublicComment.md index c60d08e..58becc7 100644 --- a/client/doc/GetCommentsResponsePublicComment.md +++ b/client/doc/GetCommentsResponsePublicComment.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **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 {}] +**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] **pageNumber** | **int** | | **isWhiteLabeled** | **bool** | | [optional] **isProd** | **bool** | | [optional] diff --git a/client/doc/GetCommentsResponseWithPresencePublicComment.md b/client/doc/GetCommentsResponseWithPresencePublicComment.md index f5553f4..d473c8a 100644 --- a/client/doc/GetCommentsResponseWithPresencePublicComment.md +++ b/client/doc/GetCommentsResponseWithPresencePublicComment.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **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 {}] +**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] **pageNumber** | **int** | | **isWhiteLabeled** | **bool** | | [optional] **isProd** | **bool** | | [optional] diff --git a/client/doc/GetDomainConfig200Response.md b/client/doc/GetDomainConfigResponse.md similarity index 76% rename from client/doc/GetDomainConfig200Response.md rename to client/doc/GetDomainConfigResponse.md index 20597eb..b629cef 100644 --- a/client/doc/GetDomainConfig200Response.md +++ b/client/doc/GetDomainConfigResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.GetDomainConfig200Response +# fastcomments_dart.model.GetDomainConfigResponse ## Load the model package ```dart @@ -8,8 +8,8 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | **Object** | | -**status** | **Object** | | +**configuration** | [**Object**](.md) | | +**status** | [**Object**](.md) | | **reason** | **String** | | **code** | **String** | | diff --git a/client/doc/GetDomainConfigs200ResponseAnyOf.md b/client/doc/GetDomainConfigs200ResponseAnyOf.md deleted file mode 100644 index 9adf85e..0000000 --- a/client/doc/GetDomainConfigs200ResponseAnyOf.md +++ /dev/null @@ -1,16 +0,0 @@ -# fastcomments_dart.model.GetDomainConfigs200ResponseAnyOf - -## Load the model package -```dart -import 'package:fastcomments_dart/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configurations** | **Object** | | -**status** | **Object** | | - -[[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..1bcd7e6 --- /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**](.md) | | +**status** | [**Object**](.md) | | +**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/GetDomainConfigsResponseAnyOf.md b/client/doc/GetDomainConfigsResponseAnyOf.md new file mode 100644 index 0000000..441527f --- /dev/null +++ b/client/doc/GetDomainConfigsResponseAnyOf.md @@ -0,0 +1,16 @@ +# fastcomments_dart.model.GetDomainConfigsResponseAnyOf + +## Load the model package +```dart +import 'package:fastcomments_dart/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configurations** | [**Object**](.md) | | +**status** | [**Object**](.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/GetDomainConfigs200ResponseAnyOf1.md b/client/doc/GetDomainConfigsResponseAnyOf1.md similarity index 81% rename from client/doc/GetDomainConfigs200ResponseAnyOf1.md rename to client/doc/GetDomainConfigsResponseAnyOf1.md index dfda05f..5d1e62c 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 @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reason** | **String** | | **code** | **String** | | -**status** | **Object** | | +**status** | [**Object**](.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/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..922fc66 --- /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) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | +**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/GetGifsTrendingResponse.md b/client/doc/GetGifsTrendingResponse.md new file mode 100644 index 0000000..73fc82b --- /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) | | [default to const []] +**status** | [**APIStatus**](APIStatus.md) | | +**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/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/GetPendingWebhookEventCount200Response.md b/client/doc/GetPendingWebhookEventCount200Response.md deleted file mode 100644 index 0077c04..0000000 --- a/client/doc/GetPendingWebhookEventCount200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# fastcomments_dart.model.GetPendingWebhookEventCount200Response - -## 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/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/AddDomainConfig200ResponseAnyOf.md b/client/doc/GifSearchInternalError.md similarity index 74% rename from client/doc/AddDomainConfig200ResponseAnyOf.md rename to client/doc/GifSearchInternalError.md index a12967f..e0903ca 100644 --- a/client/doc/AddDomainConfig200ResponseAnyOf.md +++ b/client/doc/GifSearchInternalError.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.AddDomainConfig200ResponseAnyOf +# fastcomments_dart.model.GifSearchInternalError ## Load the model package ```dart @@ -8,8 +8,8 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | **Object** | | -**status** | **Object** | | +**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/HeaderState.md b/client/doc/HeaderState.md index 8761899..c3ed104 100644 --- a/client/doc/HeaderState.md +++ b/client/doc/HeaderState.md @@ -9,7 +9,7 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**notificationType** | **Object** | | +**notificationType** | [**Object**](.md) | | **userId** | **String** | | **userIdWS** | **String** | | **notificationCounts** | [**List**](NotificationAndCount.md) | | [default to const []] diff --git a/client/doc/LiveEvent.md b/client/doc/LiveEvent.md index bcb847d..fab25d3 100644 --- a/client/doc/LiveEvent.md +++ b/client/doc/LiveEvent.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **comment** | [**PubSubComment**](PubSubComment.md) | | [optional] **feedPost** | [**FeedPost**](FeedPost.md) | | [optional] **extraInfo** | [**LiveEventExtraInfo**](LiveEventExtraInfo.md) | | [optional] -**config** | **Object** | | [optional] +**config** | [**Object**](.md) | | [optional] **isClosed** | **bool** | | [optional] **uj** | **List** | | [optional] [default to const []] **ul** | **List** | | [optional] [default to const []] 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..08ea656 --- /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**](.md) | | +**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..0241508 --- /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**](.md) | | +**status** | [**Object**](.md) | | +**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/PendingCommentToSyncOutbound.md b/client/doc/PendingCommentToSyncOutbound.md index 9cb7fa8..050ae3d 100644 --- a/client/doc/PendingCommentToSyncOutbound.md +++ b/client/doc/PendingCommentToSyncOutbound.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **eventType** | **double** | | **type** | **double** | | **domain** | **String** | | -**lastError** | **Object** | | +**lastError** | [**Object**](.md) | | **webhookId** | **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/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/GetDomainConfigs200Response.md b/client/doc/PutDomainConfigResponse.md similarity index 76% rename from client/doc/GetDomainConfigs200Response.md rename to client/doc/PutDomainConfigResponse.md index 111ac56..d0fae45 100644 --- a/client/doc/GetDomainConfigs200Response.md +++ b/client/doc/PutDomainConfigResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.GetDomainConfigs200Response +# fastcomments_dart.model.PutDomainConfigResponse ## Load the model package ```dart @@ -8,8 +8,8 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configurations** | **Object** | | -**status** | **Object** | | +**configuration** | [**Object**](.md) | | +**status** | [**Object**](.md) | | **reason** | **String** | | **code** | **String** | | 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/RenderEmailTemplateBody.md b/client/doc/RenderEmailTemplateBody.md index d65d563..6946e91 100644 --- a/client/doc/RenderEmailTemplateBody.md +++ b/client/doc/RenderEmailTemplateBody.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **emailTemplateId** | **String** | | **ejs** | **String** | | -**testData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**testData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] **translationOverridesByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [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/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/SaveCommentResponseOptimized.md b/client/doc/SaveCommentResponseOptimized.md index 9bcd2ac..20ad7c9 100644 --- a/client/doc/SaveCommentResponseOptimized.md +++ b/client/doc/SaveCommentResponseOptimized.md @@ -11,7 +11,7 @@ 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 {}] +**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [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/SaveComment200Response.md b/client/doc/SaveCommentsBulkResponse.md similarity index 81% rename from client/doc/SaveComment200Response.md rename to client/doc/SaveCommentsBulkResponse.md index c0963a1..f3f3006 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 @@ -11,7 +11,7 @@ Name | Type | Description | Notes **status** | [**APIStatus**](APIStatus.md) | | **comment** | [**APIComment**](APIComment.md) | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] **reason** | **String** | | **code** | **String** | | **secondaryCode** | **String** | | [optional] diff --git a/client/doc/SaveCommentsResponseWithPresence.md b/client/doc/SaveCommentsResponseWithPresence.md index 80e0d52..23644e5 100644 --- a/client/doc/SaveCommentsResponseWithPresence.md +++ b/client/doc/SaveCommentsResponseWithPresence.md @@ -11,7 +11,7 @@ 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 {}] +**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] **userIdWS** | **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/SearchUsers200Response.md b/client/doc/SearchUsersResult.md similarity index 60% rename from client/doc/SearchUsers200Response.md rename to client/doc/SearchUsersResult.md index f8a8716..59cebf4 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 @@ -11,13 +11,6 @@ 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] [[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/UpdateEmailTemplateBody.md b/client/doc/UpdateEmailTemplateBody.md index fd1cb3c..25f87ff 100644 --- a/client/doc/UpdateEmailTemplateBody.md +++ b/client/doc/UpdateEmailTemplateBody.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **ejs** | **String** | | [optional] **domain** | **String** | | [optional] **translationOverridesByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**testData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**testData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [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/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..a050d7d --- /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** | | +**modifiedCount** | **int** | | +**note** | **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/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/doc/UpdateUserNotificationPageSubscriptionStatusResponse.md new file mode 100644 index 0000000..7b90dab --- /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** | | +**modifiedCount** | **int** | | +**note** | **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/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..ee41e50 --- /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** | | +**modifiedCount** | **int** | | +**note** | **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/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/doc/VoteResponse.md b/client/doc/VoteResponse.md index 70db342..9e621b7 100644 --- a/client/doc/VoteResponse.md +++ b/client/doc/VoteResponse.md @@ -8,7 +8,7 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **String** | | +**status** | [**VoteResponseStatus**](VoteResponseStatus.md) | | **voteId** | **String** | | [optional] **isVerified** | **bool** | | [optional] **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] diff --git a/client/doc/VoteResponseStatus.md b/client/doc/VoteResponseStatus.md new file mode 100644 index 0000000..88efcf4 --- /dev/null +++ b/client/doc/VoteResponseStatus.md @@ -0,0 +1,14 @@ +# fastcomments_dart.model.VoteResponseStatus + +## 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/lib/api.dart b/client/lib/api.dart index 33140dc..661e5bd 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,10 +386,11 @@ 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_status.dart'; part 'model/vote_response_user.dart'; part 'model/vote_style.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..27c7a4c 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,14 +890,16 @@ 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': return VoteResponse.fromJson(value); + case 'VoteResponseStatus': + return VoteResponseStatus.fromJson(value); case 'VoteResponseUser': return VoteResponseUser.fromJson(value); case 'VoteStyle': 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_config_params.dart b/client/lib/model/add_domain_config_params.dart index b587a8c..c7fd02e 100644 --- a/client/lib/model/add_domain_config_params.dart +++ b/client/lib/model/add_domain_config_params.dart @@ -134,8 +134,10 @@ class AddDomainConfigParams { // 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 "AddDomainConfigParams[domain]" is missing from JSON.'); - assert(json[r'domain'] != null, 'Required key "AddDomainConfigParams[domain]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AddDomainConfigParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AddDomainConfigParams[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/add_domain_config200_response.dart b/client/lib/model/add_domain_config_response.dart similarity index 59% rename from client/lib/model/add_domain_config200_response.dart rename to client/lib/model/add_domain_config_response.dart index 98255f4..ef0be64 100644 --- a/client/lib/model/add_domain_config200_response.dart +++ b/client/lib/model/add_domain_config_response.dart @@ -10,9 +10,9 @@ part of openapi.api; -class AddDomainConfig200Response { - /// Returns a new [AddDomainConfig200Response] instance. - AddDomainConfig200Response({ +class AddDomainConfigResponse { + /// Returns a new [AddDomainConfigResponse] instance. + AddDomainConfigResponse({ required this.reason, required this.code, required this.status, @@ -28,7 +28,7 @@ class AddDomainConfig200Response { Object? configuration; @override - bool operator ==(Object other) => identical(this, other) || other is AddDomainConfig200Response && + bool operator ==(Object other) => identical(this, other) || other is AddDomainConfigResponse && other.reason == reason && other.code == code && other.status == status && @@ -43,7 +43,7 @@ class AddDomainConfig200Response { (configuration == null ? 0 : configuration!.hashCode); @override - String toString() => 'AddDomainConfig200Response[reason=$reason, code=$code, status=$status, configuration=$configuration]'; + String toString() => 'AddDomainConfigResponse[reason=$reason, code=$code, status=$status, configuration=$configuration]'; Map toJson() { final json = {}; @@ -62,10 +62,10 @@ class AddDomainConfig200Response { return json; } - /// Returns a new [AddDomainConfig200Response] instance and imports its values from + /// 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 AddDomainConfig200Response? fromJson(dynamic value) { + static AddDomainConfigResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -73,16 +73,14 @@ class AddDomainConfig200Response { // 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AddDomainConfigResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AddDomainConfigResponse[$key]" has a null value in JSON.'); + }); return true; }()); - return AddDomainConfig200Response( + return AddDomainConfigResponse( reason: mapValueOfType(json, r'reason')!, code: mapValueOfType(json, r'code')!, status: mapValueOfType(json, r'status'), @@ -92,11 +90,11 @@ class AddDomainConfig200Response { 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 = AddDomainConfig200Response.fromJson(row); + final value = AddDomainConfigResponse.fromJson(row); if (value != null) { result.add(value); } @@ -105,12 +103,12 @@ class AddDomainConfig200Response { 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 = AddDomainConfig200Response.fromJson(entry.value); + final value = AddDomainConfigResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -119,14 +117,14 @@ class AddDomainConfig200Response { 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 = >{}; + // 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] = AddDomainConfig200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = AddDomainConfigResponse.listFromJson(entry.value, growable: growable,); } } return map; 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 61% 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..f0cac30 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,7 +22,7 @@ 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; @@ -33,7 +33,7 @@ class AddDomainConfig200ResponseAnyOf { (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 +50,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 +61,14 @@ 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AddDomainConfigResponseAnyOf[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AddDomainConfigResponseAnyOf[$key]" has a null value in 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..a6d4de6 100644 --- a/client/lib/model/add_page_api_response.dart +++ b/client/lib/model/add_page_api_response.dart @@ -95,8 +95,10 @@ class AddPageAPIResponse { // 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 "AddPageAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "AddPageAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AddPageAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AddPageAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/add_sso_user_api_response.dart b/client/lib/model/add_sso_user_api_response.dart index 3632583..d97ad94 100644 --- a/client/lib/model/add_sso_user_api_response.dart +++ b/client/lib/model/add_sso_user_api_response.dart @@ -95,8 +95,10 @@ class AddSSOUserAPIResponse { // 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 "AddSSOUserAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "AddSSOUserAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AddSSOUserAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AddSSOUserAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..d2b8d58 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AdjustCommentVotesParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AdjustCommentVotesParams[$key]" 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..0f30ecd --- /dev/null +++ b/client/lib/model/adjust_votes_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AdjustVotesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AdjustVotesResponse[$key]" 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..4675d19 100644 --- a/client/lib/model/aggregate_question_results_response.dart +++ b/client/lib/model/aggregate_question_results_response.dart @@ -53,10 +53,10 @@ class AggregateQuestionResultsResponse { // 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 "AggregateQuestionResultsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "AggregateQuestionResultsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "AggregateQuestionResultsResponse[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "AggregateQuestionResultsResponse[data]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregateQuestionResultsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregateQuestionResultsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/aggregate_response.dart b/client/lib/model/aggregate_response.dart new file mode 100644 index 0000000..f3bf100 --- /dev/null +++ b/client/lib/model/aggregate_response.dart @@ -0,0 +1,159 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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, + required this.reason, + required 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; + + String reason; + + 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.hashCode) + + (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; + } + json[r'reason'] = this.reason; + json[r'code'] = this.code; + 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregateResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregateResponse[$key]" 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', + 'data', + 'reason', + 'code', + }; +} + diff --git a/client/lib/model/aggregation_api_error.dart b/client/lib/model/aggregation_api_error.dart new file mode 100644 index 0000000..1dc8946 --- /dev/null +++ b/client/lib/model/aggregation_api_error.dart @@ -0,0 +1,134 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregationAPIError[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregationAPIError[$key]" 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..9a43d02 100644 --- a/client/lib/model/aggregation_item.dart +++ b/client/lib/model/aggregation_item.dart @@ -48,6 +48,10 @@ class AggregationItem { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregationItem[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregationItem[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/aggregation_operation.dart b/client/lib/model/aggregation_operation.dart index 25d839b..dd94e18 100644 --- a/client/lib/model/aggregation_operation.dart +++ b/client/lib/model/aggregation_operation.dart @@ -87,10 +87,10 @@ class AggregationOperation { // 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'field'), 'Required key "AggregationOperation[field]" is missing from JSON.'); - assert(json[r'field'] != null, 'Required key "AggregationOperation[field]" has a null value in JSON.'); - assert(json.containsKey(r'op'), 'Required key "AggregationOperation[op]" is missing from JSON.'); - assert(json[r'op'] != null, 'Required key "AggregationOperation[op]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregationOperation[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregationOperation[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/aggregation_request.dart b/client/lib/model/aggregation_request.dart index 6f11dce..619f6fc 100644 --- a/client/lib/model/aggregation_request.dart +++ b/client/lib/model/aggregation_request.dart @@ -81,10 +81,10 @@ class AggregationRequest { // 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'resourceName'), 'Required key "AggregationRequest[resourceName]" is missing from JSON.'); - assert(json[r'resourceName'] != null, 'Required key "AggregationRequest[resourceName]" has a null value in JSON.'); - assert(json.containsKey(r'operations'), 'Required key "AggregationRequest[operations]" is missing from JSON.'); - assert(json[r'operations'] != null, 'Required key "AggregationRequest[operations]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregationRequest[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregationRequest[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/aggregation_request_sort.dart b/client/lib/model/aggregation_request_sort.dart index 3b2a5b4..be93b1b 100644 --- a/client/lib/model/aggregation_request_sort.dart +++ b/client/lib/model/aggregation_request_sort.dart @@ -53,10 +53,10 @@ class AggregationRequestSort { // 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'dir'), 'Required key "AggregationRequestSort[dir]" is missing from JSON.'); - assert(json[r'dir'] != null, 'Required key "AggregationRequestSort[dir]" has a null value in JSON.'); - assert(json.containsKey(r'field'), 'Required key "AggregationRequestSort[field]" is missing from JSON.'); - assert(json[r'field'] != null, 'Required key "AggregationRequestSort[field]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregationRequestSort[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregationRequestSort[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/aggregation_response.dart b/client/lib/model/aggregation_response.dart index a7a5eda..5e95278 100644 --- a/client/lib/model/aggregation_response.dart +++ b/client/lib/model/aggregation_response.dart @@ -69,10 +69,10 @@ class AggregationResponse { // 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 "AggregationResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "AggregationResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "AggregationResponse[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "AggregationResponse[data]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregationResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregationResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/aggregation_response_stats.dart b/client/lib/model/aggregation_response_stats.dart index 8fe645c..154ec85 100644 --- a/client/lib/model/aggregation_response_stats.dart +++ b/client/lib/model/aggregation_response_stats.dart @@ -53,10 +53,10 @@ class AggregationResponseStats { // 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'timeMS'), 'Required key "AggregationResponseStats[timeMS]" is missing from JSON.'); - assert(json[r'timeMS'] != null, 'Required key "AggregationResponseStats[timeMS]" has a null value in JSON.'); - assert(json.containsKey(r'scanned'), 'Required key "AggregationResponseStats[scanned]" is missing from JSON.'); - assert(json[r'scanned'] != null, 'Required key "AggregationResponseStats[scanned]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregationResponseStats[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregationResponseStats[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/aggregation_value.dart b/client/lib/model/aggregation_value.dart index 16c7e54..a9444ac 100644 --- a/client/lib/model/aggregation_value.dart +++ b/client/lib/model/aggregation_value.dart @@ -103,6 +103,10 @@ class AggregationValue { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AggregationValue[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AggregationValue[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_audit_log.dart b/client/lib/model/api_audit_log.dart index cb03e1c..b85a058 100644 --- a/client/lib/model/api_audit_log.dart +++ b/client/lib/model/api_audit_log.dart @@ -180,12 +180,10 @@ class APIAuditLog { // 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 "APIAuditLog[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "APIAuditLog[_id]" has a null value in JSON.'); - assert(json.containsKey(r'resourceName'), 'Required key "APIAuditLog[resourceName]" is missing from JSON.'); - assert(json[r'resourceName'] != null, 'Required key "APIAuditLog[resourceName]" has a null value in JSON.'); - assert(json.containsKey(r'crudType'), 'Required key "APIAuditLog[crudType]" is missing from JSON.'); - assert(json[r'crudType'] != null, 'Required key "APIAuditLog[crudType]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIAuditLog[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIAuditLog[$key]" has a null value in JSON.'); + }); return true; }()); 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..b76bc8e --- /dev/null +++ b/client/lib/model/api_ban_user_change_log.dart @@ -0,0 +1,159 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIBanUserChangeLog[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIBanUserChangeLog[$key]" has a null value in JSON.'); + }); + 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..17e44b0 --- /dev/null +++ b/client/lib/model/api_ban_user_changed_values.dart @@ -0,0 +1,292 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIBanUserChangedValues[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIBanUserChangedValues[$key]" has a null value in JSON.'); + }); + 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..1b8413d --- /dev/null +++ b/client/lib/model/api_banned_user.dart @@ -0,0 +1,230 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIBannedUser[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIBannedUser[$key]" 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..805f945 --- /dev/null +++ b/client/lib/model/api_banned_user_with_multi_match_info.dart @@ -0,0 +1,195 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIBannedUserWithMultiMatchInfo[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIBannedUserWithMultiMatchInfo[$key]" 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..9fb84b9 100644 --- a/client/lib/model/api_comment.dart +++ b/client/lib/model/api_comment.dart @@ -613,26 +613,10 @@ class APIComment { // 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 "APIComment[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APIComment[id]" has a null value in JSON.'); - assert(json.containsKey(r'approved'), 'Required key "APIComment[approved]" is missing from JSON.'); - assert(json[r'approved'] != null, 'Required key "APIComment[approved]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "APIComment[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "APIComment[comment]" has a null value in JSON.'); - assert(json.containsKey(r'commentHTML'), 'Required key "APIComment[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "APIComment[commentHTML]" has a null value in JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "APIComment[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "APIComment[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'date'), 'Required key "APIComment[date]" is missing from JSON.'); - assert(json.containsKey(r'locale'), 'Required key "APIComment[locale]" is missing from JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "APIComment[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "APIComment[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "APIComment[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "APIComment[url]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "APIComment[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "APIComment[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'verified'), 'Required key "APIComment[verified]" is missing from JSON.'); - assert(json[r'verified'] != null, 'Required key "APIComment[verified]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIComment[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIComment[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_comment_base.dart b/client/lib/model/api_comment_base.dart index 43bffdd..9660ab8 100644 --- a/client/lib/model/api_comment_base.dart +++ b/client/lib/model/api_comment_base.dart @@ -613,26 +613,10 @@ class APICommentBase { // 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 "APICommentBase[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APICommentBase[id]" has a null value in JSON.'); - assert(json.containsKey(r'approved'), 'Required key "APICommentBase[approved]" is missing from JSON.'); - assert(json[r'approved'] != null, 'Required key "APICommentBase[approved]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "APICommentBase[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "APICommentBase[comment]" has a null value in JSON.'); - assert(json.containsKey(r'commentHTML'), 'Required key "APICommentBase[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "APICommentBase[commentHTML]" has a null value in JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "APICommentBase[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "APICommentBase[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'date'), 'Required key "APICommentBase[date]" is missing from JSON.'); - assert(json.containsKey(r'locale'), 'Required key "APICommentBase[locale]" is missing from JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "APICommentBase[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "APICommentBase[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "APICommentBase[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "APICommentBase[url]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "APICommentBase[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "APICommentBase[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'verified'), 'Required key "APICommentBase[verified]" is missing from JSON.'); - assert(json[r'verified'] != null, 'Required key "APICommentBase[verified]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APICommentBase[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APICommentBase[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_comment_base_meta.dart b/client/lib/model/api_comment_base_meta.dart index 523a563..0bf2d43 100644 --- a/client/lib/model/api_comment_base_meta.dart +++ b/client/lib/model/api_comment_base_meta.dart @@ -73,6 +73,10 @@ class APICommentBaseMeta { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APICommentBaseMeta[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APICommentBaseMeta[$key]" has a null value in JSON.'); + }); return true; }()); 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..6ec59dc --- /dev/null +++ b/client/lib/model/api_comment_common_banned_user.dart @@ -0,0 +1,187 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APICommentCommonBannedUser[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APICommentCommonBannedUser[$key]" 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..bacdb7a 100644 --- a/client/lib/model/api_create_user_badge_response.dart +++ b/client/lib/model/api_create_user_badge_response.dart @@ -59,10 +59,10 @@ class APICreateUserBadgeResponse { // 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 "APICreateUserBadgeResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APICreateUserBadgeResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadge'), 'Required key "APICreateUserBadgeResponse[userBadge]" is missing from JSON.'); - assert(json[r'userBadge'] != null, 'Required key "APICreateUserBadgeResponse[userBadge]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APICreateUserBadgeResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APICreateUserBadgeResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_domain_configuration.dart b/client/lib/model/api_domain_configuration.dart index f7b8bfd..cb1350c 100644 --- a/client/lib/model/api_domain_configuration.dart +++ b/client/lib/model/api_domain_configuration.dart @@ -206,12 +206,10 @@ class APIDomainConfiguration { // 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 "APIDomainConfiguration[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APIDomainConfiguration[id]" has a null value in JSON.'); - assert(json.containsKey(r'domain'), 'Required key "APIDomainConfiguration[domain]" is missing from JSON.'); - assert(json[r'domain'] != null, 'Required key "APIDomainConfiguration[domain]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "APIDomainConfiguration[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "APIDomainConfiguration[createdAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIDomainConfiguration[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIDomainConfiguration[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_empty_response.dart b/client/lib/model/api_empty_response.dart index 953fb81..9bc087b 100644 --- a/client/lib/model/api_empty_response.dart +++ b/client/lib/model/api_empty_response.dart @@ -47,8 +47,10 @@ class APIEmptyResponse { // 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 "APIEmptyResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIEmptyResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIEmptyResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIEmptyResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_empty_success_response.dart b/client/lib/model/api_empty_success_response.dart index b35f81d..2725b90 100644 --- a/client/lib/model/api_empty_success_response.dart +++ b/client/lib/model/api_empty_success_response.dart @@ -47,8 +47,10 @@ class APIEmptySuccessResponse { // 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 "APIEmptySuccessResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIEmptySuccessResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIEmptySuccessResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIEmptySuccessResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_error.dart b/client/lib/model/api_error.dart index a0493b8..13bf7ee 100644 --- a/client/lib/model/api_error.dart +++ b/client/lib/model/api_error.dart @@ -139,12 +139,10 @@ class APIError { // 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 "APIError[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIError[status]" has a null value in JSON.'); - assert(json.containsKey(r'reason'), 'Required key "APIError[reason]" is missing from JSON.'); - assert(json[r'reason'] != null, 'Required key "APIError[reason]" has a null value in JSON.'); - assert(json.containsKey(r'code'), 'Required key "APIError[code]" is missing from JSON.'); - assert(json[r'code'] != null, 'Required key "APIError[code]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIError[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIError[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_get_comment_response.dart b/client/lib/model/api_get_comment_response.dart index e8c28ab..bbbfbd7 100644 --- a/client/lib/model/api_get_comment_response.dart +++ b/client/lib/model/api_get_comment_response.dart @@ -53,10 +53,10 @@ class APIGetCommentResponse { // 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 "APIGetCommentResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIGetCommentResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "APIGetCommentResponse[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "APIGetCommentResponse[comment]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIGetCommentResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIGetCommentResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_get_comments_response.dart b/client/lib/model/api_get_comments_response.dart index e586006..44ac719 100644 --- a/client/lib/model/api_get_comments_response.dart +++ b/client/lib/model/api_get_comments_response.dart @@ -53,10 +53,10 @@ class APIGetCommentsResponse { // 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 "APIGetCommentsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIGetCommentsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'comments'), 'Required key "APIGetCommentsResponse[comments]" is missing from JSON.'); - assert(json[r'comments'] != null, 'Required key "APIGetCommentsResponse[comments]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIGetCommentsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIGetCommentsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..bd70924 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 @@ -53,10 +53,10 @@ class APIGetUserBadgeProgressListResponse { // 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 "APIGetUserBadgeProgressListResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIGetUserBadgeProgressListResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadgeProgresses'), 'Required key "APIGetUserBadgeProgressListResponse[userBadgeProgresses]" is missing from JSON.'); - assert(json[r'userBadgeProgresses'] != null, 'Required key "APIGetUserBadgeProgressListResponse[userBadgeProgresses]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIGetUserBadgeProgressListResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIGetUserBadgeProgressListResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..c26631a 100644 --- a/client/lib/model/api_get_user_badge_progress_response.dart +++ b/client/lib/model/api_get_user_badge_progress_response.dart @@ -53,10 +53,10 @@ class APIGetUserBadgeProgressResponse { // 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 "APIGetUserBadgeProgressResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIGetUserBadgeProgressResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadgeProgress'), 'Required key "APIGetUserBadgeProgressResponse[userBadgeProgress]" is missing from JSON.'); - assert(json[r'userBadgeProgress'] != null, 'Required key "APIGetUserBadgeProgressResponse[userBadgeProgress]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIGetUserBadgeProgressResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIGetUserBadgeProgressResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_get_user_badge_response.dart b/client/lib/model/api_get_user_badge_response.dart index 775bfa0..11cf519 100644 --- a/client/lib/model/api_get_user_badge_response.dart +++ b/client/lib/model/api_get_user_badge_response.dart @@ -53,10 +53,10 @@ class APIGetUserBadgeResponse { // 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 "APIGetUserBadgeResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIGetUserBadgeResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadge'), 'Required key "APIGetUserBadgeResponse[userBadge]" is missing from JSON.'); - assert(json[r'userBadge'] != null, 'Required key "APIGetUserBadgeResponse[userBadge]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIGetUserBadgeResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIGetUserBadgeResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_get_user_badges_response.dart b/client/lib/model/api_get_user_badges_response.dart index ca51e81..086627d 100644 --- a/client/lib/model/api_get_user_badges_response.dart +++ b/client/lib/model/api_get_user_badges_response.dart @@ -53,10 +53,10 @@ class APIGetUserBadgesResponse { // 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 "APIGetUserBadgesResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APIGetUserBadgesResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'userBadges'), 'Required key "APIGetUserBadgesResponse[userBadges]" is missing from JSON.'); - assert(json[r'userBadges'] != null, 'Required key "APIGetUserBadgesResponse[userBadges]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIGetUserBadgesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIGetUserBadgesResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..f3e1b90 --- /dev/null +++ b/client/lib/model/api_moderate_get_user_ban_preferences_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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIModerateGetUserBanPreferencesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIModerateGetUserBanPreferencesResponse[$key]" 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..80c422e --- /dev/null +++ b/client/lib/model/api_moderate_user_ban_preferences.dart @@ -0,0 +1,133 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIModerateUserBanPreferences[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIModerateUserBanPreferences[$key]" 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..6500940 100644 --- a/client/lib/model/api_page.dart +++ b/client/lib/model/api_page.dart @@ -115,18 +115,10 @@ class APIPage { // 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'rootCommentCount'), 'Required key "APIPage[rootCommentCount]" is missing from JSON.'); - assert(json[r'rootCommentCount'] != null, 'Required key "APIPage[rootCommentCount]" has a null value in JSON.'); - assert(json.containsKey(r'commentCount'), 'Required key "APIPage[commentCount]" is missing from JSON.'); - assert(json[r'commentCount'] != null, 'Required key "APIPage[commentCount]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "APIPage[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "APIPage[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'title'), 'Required key "APIPage[title]" is missing from JSON.'); - assert(json[r'title'] != null, 'Required key "APIPage[title]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "APIPage[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "APIPage[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'id'), 'Required key "APIPage[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APIPage[id]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIPage[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIPage[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_save_comment_response.dart b/client/lib/model/api_save_comment_response.dart index 6438ef1..4b05bda 100644 --- a/client/lib/model/api_save_comment_response.dart +++ b/client/lib/model/api_save_comment_response.dart @@ -70,11 +70,10 @@ class APISaveCommentResponse { // 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 "APISaveCommentResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "APISaveCommentResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "APISaveCommentResponse[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "APISaveCommentResponse[comment]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "APISaveCommentResponse[user]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APISaveCommentResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APISaveCommentResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_tenant.dart b/client/lib/model/api_tenant.dart index 558547c..4c404cf 100644 --- a/client/lib/model/api_tenant.dart +++ b/client/lib/model/api_tenant.dart @@ -364,28 +364,10 @@ class APITenant { // 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 "APITenant[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APITenant[id]" has a null value in JSON.'); - assert(json.containsKey(r'name'), 'Required key "APITenant[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "APITenant[name]" has a null value in JSON.'); - assert(json.containsKey(r'signUpDate'), 'Required key "APITenant[signUpDate]" is missing from JSON.'); - assert(json[r'signUpDate'] != null, 'Required key "APITenant[signUpDate]" has a null value in JSON.'); - assert(json.containsKey(r'packageId'), 'Required key "APITenant[packageId]" is missing from JSON.'); - assert(json[r'packageId'] != null, 'Required key "APITenant[packageId]" has a null value in JSON.'); - assert(json.containsKey(r'paymentFrequency'), 'Required key "APITenant[paymentFrequency]" is missing from JSON.'); - assert(json[r'paymentFrequency'] != null, 'Required key "APITenant[paymentFrequency]" has a null value in JSON.'); - assert(json.containsKey(r'billingInfoValid'), 'Required key "APITenant[billingInfoValid]" is missing from JSON.'); - assert(json[r'billingInfoValid'] != null, 'Required key "APITenant[billingInfoValid]" has a null value in JSON.'); - assert(json.containsKey(r'createdBy'), 'Required key "APITenant[createdBy]" is missing from JSON.'); - assert(json[r'createdBy'] != null, 'Required key "APITenant[createdBy]" has a null value in JSON.'); - assert(json.containsKey(r'isSetup'), 'Required key "APITenant[isSetup]" is missing from JSON.'); - assert(json[r'isSetup'] != null, 'Required key "APITenant[isSetup]" has a null value in JSON.'); - assert(json.containsKey(r'domainConfiguration'), 'Required key "APITenant[domainConfiguration]" is missing from JSON.'); - assert(json[r'domainConfiguration'] != null, 'Required key "APITenant[domainConfiguration]" has a null value in JSON.'); - assert(json.containsKey(r'enableProfanityFilter'), 'Required key "APITenant[enableProfanityFilter]" is missing from JSON.'); - assert(json[r'enableProfanityFilter'] != null, 'Required key "APITenant[enableProfanityFilter]" has a null value in JSON.'); - assert(json.containsKey(r'enableSpamFilter'), 'Required key "APITenant[enableSpamFilter]" is missing from JSON.'); - assert(json[r'enableSpamFilter'] != null, 'Required key "APITenant[enableSpamFilter]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APITenant[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APITenant[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_tenant_daily_usage.dart b/client/lib/model/api_tenant_daily_usage.dart index edecb51..b2d5e1d 100644 --- a/client/lib/model/api_tenant_daily_usage.dart +++ b/client/lib/model/api_tenant_daily_usage.dart @@ -155,44 +155,10 @@ class APITenantDailyUsage { // 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 "APITenantDailyUsage[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APITenantDailyUsage[id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "APITenantDailyUsage[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "APITenantDailyUsage[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'yearNumber'), 'Required key "APITenantDailyUsage[yearNumber]" is missing from JSON.'); - assert(json[r'yearNumber'] != null, 'Required key "APITenantDailyUsage[yearNumber]" has a null value in JSON.'); - assert(json.containsKey(r'monthNumber'), 'Required key "APITenantDailyUsage[monthNumber]" is missing from JSON.'); - assert(json[r'monthNumber'] != null, 'Required key "APITenantDailyUsage[monthNumber]" has a null value in JSON.'); - assert(json.containsKey(r'dayNumber'), 'Required key "APITenantDailyUsage[dayNumber]" is missing from JSON.'); - assert(json[r'dayNumber'] != null, 'Required key "APITenantDailyUsage[dayNumber]" has a null value in JSON.'); - assert(json.containsKey(r'commentFetchCount'), 'Required key "APITenantDailyUsage[commentFetchCount]" is missing from JSON.'); - assert(json[r'commentFetchCount'] != null, 'Required key "APITenantDailyUsage[commentFetchCount]" has a null value in JSON.'); - assert(json.containsKey(r'commentCreateCount'), 'Required key "APITenantDailyUsage[commentCreateCount]" is missing from JSON.'); - assert(json[r'commentCreateCount'] != null, 'Required key "APITenantDailyUsage[commentCreateCount]" has a null value in JSON.'); - assert(json.containsKey(r'conversationCreateCount'), 'Required key "APITenantDailyUsage[conversationCreateCount]" is missing from JSON.'); - assert(json[r'conversationCreateCount'] != null, 'Required key "APITenantDailyUsage[conversationCreateCount]" has a null value in JSON.'); - assert(json.containsKey(r'voteCount'), 'Required key "APITenantDailyUsage[voteCount]" is missing from JSON.'); - assert(json[r'voteCount'] != null, 'Required key "APITenantDailyUsage[voteCount]" has a null value in JSON.'); - assert(json.containsKey(r'accountCreatedCount'), 'Required key "APITenantDailyUsage[accountCreatedCount]" is missing from JSON.'); - assert(json[r'accountCreatedCount'] != null, 'Required key "APITenantDailyUsage[accountCreatedCount]" has a null value in JSON.'); - assert(json.containsKey(r'userMentionSearch'), 'Required key "APITenantDailyUsage[userMentionSearch]" is missing from JSON.'); - assert(json[r'userMentionSearch'] != null, 'Required key "APITenantDailyUsage[userMentionSearch]" has a null value in JSON.'); - assert(json.containsKey(r'hashTagSearch'), 'Required key "APITenantDailyUsage[hashTagSearch]" is missing from JSON.'); - assert(json[r'hashTagSearch'] != null, 'Required key "APITenantDailyUsage[hashTagSearch]" has a null value in JSON.'); - assert(json.containsKey(r'gifSearchTrending'), 'Required key "APITenantDailyUsage[gifSearchTrending]" is missing from JSON.'); - assert(json[r'gifSearchTrending'] != null, 'Required key "APITenantDailyUsage[gifSearchTrending]" has a null value in JSON.'); - assert(json.containsKey(r'gifSearch'), 'Required key "APITenantDailyUsage[gifSearch]" is missing from JSON.'); - assert(json[r'gifSearch'] != null, 'Required key "APITenantDailyUsage[gifSearch]" has a null value in JSON.'); - assert(json.containsKey(r'apiCreditsUsed'), 'Required key "APITenantDailyUsage[apiCreditsUsed]" is missing from JSON.'); - assert(json[r'apiCreditsUsed'] != null, 'Required key "APITenantDailyUsage[apiCreditsUsed]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "APITenantDailyUsage[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "APITenantDailyUsage[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'billed'), 'Required key "APITenantDailyUsage[billed]" is missing from JSON.'); - assert(json[r'billed'] != null, 'Required key "APITenantDailyUsage[billed]" has a null value in JSON.'); - assert(json.containsKey(r'ignored'), 'Required key "APITenantDailyUsage[ignored]" is missing from JSON.'); - assert(json[r'ignored'] != null, 'Required key "APITenantDailyUsage[ignored]" has a null value in JSON.'); - assert(json.containsKey(r'apiErrorCount'), 'Required key "APITenantDailyUsage[apiErrorCount]" is missing from JSON.'); - assert(json[r'apiErrorCount'] != null, 'Required key "APITenantDailyUsage[apiErrorCount]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APITenantDailyUsage[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APITenantDailyUsage[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_ticket.dart b/client/lib/model/api_ticket.dart index 90a1b97..9d3abcc 100644 --- a/client/lib/model/api_ticket.dart +++ b/client/lib/model/api_ticket.dart @@ -95,24 +95,10 @@ class APITicket { // 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 "APITicket[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "APITicket[_id]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "APITicket[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "APITicket[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'userId'), 'Required key "APITicket[userId]" is missing from JSON.'); - assert(json[r'userId'] != null, 'Required key "APITicket[userId]" has a null value in JSON.'); - assert(json.containsKey(r'managedByTenantId'), 'Required key "APITicket[managedByTenantId]" is missing from JSON.'); - assert(json[r'managedByTenantId'] != null, 'Required key "APITicket[managedByTenantId]" has a null value in JSON.'); - assert(json.containsKey(r'assignedUserIds'), 'Required key "APITicket[assignedUserIds]" is missing from JSON.'); - assert(json[r'assignedUserIds'] != null, 'Required key "APITicket[assignedUserIds]" has a null value in JSON.'); - assert(json.containsKey(r'subject'), 'Required key "APITicket[subject]" is missing from JSON.'); - assert(json[r'subject'] != null, 'Required key "APITicket[subject]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "APITicket[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "APITicket[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'state'), 'Required key "APITicket[state]" is missing from JSON.'); - assert(json[r'state'] != null, 'Required key "APITicket[state]" has a null value in JSON.'); - assert(json.containsKey(r'fileCount'), 'Required key "APITicket[fileCount]" is missing from JSON.'); - assert(json[r'fileCount'] != null, 'Required key "APITicket[fileCount]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APITicket[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APITicket[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_ticket_detail.dart b/client/lib/model/api_ticket_detail.dart index e755b8d..98b5875 100644 --- a/client/lib/model/api_ticket_detail.dart +++ b/client/lib/model/api_ticket_detail.dart @@ -131,26 +131,10 @@ class APITicketDetail { // 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 "APITicketDetail[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "APITicketDetail[_id]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "APITicketDetail[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "APITicketDetail[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'userId'), 'Required key "APITicketDetail[userId]" is missing from JSON.'); - assert(json[r'userId'] != null, 'Required key "APITicketDetail[userId]" has a null value in JSON.'); - assert(json.containsKey(r'managedByTenantId'), 'Required key "APITicketDetail[managedByTenantId]" is missing from JSON.'); - assert(json[r'managedByTenantId'] != null, 'Required key "APITicketDetail[managedByTenantId]" has a null value in JSON.'); - assert(json.containsKey(r'assignedUserIds'), 'Required key "APITicketDetail[assignedUserIds]" is missing from JSON.'); - assert(json[r'assignedUserIds'] != null, 'Required key "APITicketDetail[assignedUserIds]" has a null value in JSON.'); - assert(json.containsKey(r'subject'), 'Required key "APITicketDetail[subject]" is missing from JSON.'); - assert(json[r'subject'] != null, 'Required key "APITicketDetail[subject]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "APITicketDetail[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "APITicketDetail[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'state'), 'Required key "APITicketDetail[state]" is missing from JSON.'); - assert(json[r'state'] != null, 'Required key "APITicketDetail[state]" has a null value in JSON.'); - assert(json.containsKey(r'fileCount'), 'Required key "APITicketDetail[fileCount]" is missing from JSON.'); - assert(json[r'fileCount'] != null, 'Required key "APITicketDetail[fileCount]" has a null value in JSON.'); - assert(json.containsKey(r'files'), 'Required key "APITicketDetail[files]" is missing from JSON.'); - assert(json[r'files'] != null, 'Required key "APITicketDetail[files]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APITicketDetail[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APITicketDetail[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_ticket_file.dart b/client/lib/model/api_ticket_file.dart index 1421ccf..6d4ee74 100644 --- a/client/lib/model/api_ticket_file.dart +++ b/client/lib/model/api_ticket_file.dart @@ -111,24 +111,10 @@ class APITicketFile { // 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 "APITicketFile[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APITicketFile[id]" has a null value in JSON.'); - assert(json.containsKey(r's3Key'), 'Required key "APITicketFile[s3Key]" is missing from JSON.'); - assert(json[r's3Key'] != null, 'Required key "APITicketFile[s3Key]" has a null value in JSON.'); - assert(json.containsKey(r'originalFileName'), 'Required key "APITicketFile[originalFileName]" is missing from JSON.'); - assert(json[r'originalFileName'] != null, 'Required key "APITicketFile[originalFileName]" has a null value in JSON.'); - assert(json.containsKey(r'sizeBytes'), 'Required key "APITicketFile[sizeBytes]" is missing from JSON.'); - assert(json[r'sizeBytes'] != null, 'Required key "APITicketFile[sizeBytes]" has a null value in JSON.'); - assert(json.containsKey(r'contentType'), 'Required key "APITicketFile[contentType]" is missing from JSON.'); - assert(json[r'contentType'] != null, 'Required key "APITicketFile[contentType]" has a null value in JSON.'); - assert(json.containsKey(r'uploadedByUserId'), 'Required key "APITicketFile[uploadedByUserId]" is missing from JSON.'); - assert(json[r'uploadedByUserId'] != null, 'Required key "APITicketFile[uploadedByUserId]" has a null value in JSON.'); - assert(json.containsKey(r'uploadedAt'), 'Required key "APITicketFile[uploadedAt]" is missing from JSON.'); - assert(json[r'uploadedAt'] != null, 'Required key "APITicketFile[uploadedAt]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "APITicketFile[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "APITicketFile[url]" has a null value in JSON.'); - assert(json.containsKey(r'expiresAt'), 'Required key "APITicketFile[expiresAt]" is missing from JSON.'); - assert(json[r'expiresAt'] != null, 'Required key "APITicketFile[expiresAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APITicketFile[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APITicketFile[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/api_user_subscription.dart b/client/lib/model/api_user_subscription.dart index ed0ec87..6de7dfa 100644 --- a/client/lib/model/api_user_subscription.dart +++ b/client/lib/model/api_user_subscription.dart @@ -139,12 +139,10 @@ class APIUserSubscription { // 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'createdAt'), 'Required key "APIUserSubscription[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "APIUserSubscription[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "APIUserSubscription[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "APIUserSubscription[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'id'), 'Required key "APIUserSubscription[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APIUserSubscription[id]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APIUserSubscription[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APIUserSubscription[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/apisso_user.dart b/client/lib/model/apisso_user.dart index 8d0efe8..8972e87 100644 --- a/client/lib/model/apisso_user.dart +++ b/client/lib/model/apisso_user.dart @@ -231,30 +231,10 @@ class APISSOUser { // 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 "APISSOUser[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "APISSOUser[id]" has a null value in JSON.'); - assert(json.containsKey(r'username'), 'Required key "APISSOUser[username]" is missing from JSON.'); - assert(json[r'username'] != null, 'Required key "APISSOUser[username]" has a null value in JSON.'); - assert(json.containsKey(r'websiteUrl'), 'Required key "APISSOUser[websiteUrl]" is missing from JSON.'); - assert(json[r'websiteUrl'] != null, 'Required key "APISSOUser[websiteUrl]" has a null value in JSON.'); - assert(json.containsKey(r'email'), 'Required key "APISSOUser[email]" is missing from JSON.'); - assert(json[r'email'] != null, 'Required key "APISSOUser[email]" has a null value in JSON.'); - assert(json.containsKey(r'signUpDate'), 'Required key "APISSOUser[signUpDate]" is missing from JSON.'); - assert(json[r'signUpDate'] != null, 'Required key "APISSOUser[signUpDate]" has a null value in JSON.'); - assert(json.containsKey(r'createdFromUrlId'), 'Required key "APISSOUser[createdFromUrlId]" is missing from JSON.'); - assert(json[r'createdFromUrlId'] != null, 'Required key "APISSOUser[createdFromUrlId]" has a null value in JSON.'); - assert(json.containsKey(r'loginCount'), 'Required key "APISSOUser[loginCount]" is missing from JSON.'); - assert(json[r'loginCount'] != null, 'Required key "APISSOUser[loginCount]" has a null value in JSON.'); - assert(json.containsKey(r'avatarSrc'), 'Required key "APISSOUser[avatarSrc]" is missing from JSON.'); - assert(json[r'avatarSrc'] != null, 'Required key "APISSOUser[avatarSrc]" has a null value in JSON.'); - assert(json.containsKey(r'optedInNotifications'), 'Required key "APISSOUser[optedInNotifications]" is missing from JSON.'); - assert(json[r'optedInNotifications'] != null, 'Required key "APISSOUser[optedInNotifications]" has a null value in JSON.'); - assert(json.containsKey(r'optedInSubscriptionNotifications'), 'Required key "APISSOUser[optedInSubscriptionNotifications]" is missing from JSON.'); - assert(json[r'optedInSubscriptionNotifications'] != null, 'Required key "APISSOUser[optedInSubscriptionNotifications]" has a null value in JSON.'); - assert(json.containsKey(r'displayLabel'), 'Required key "APISSOUser[displayLabel]" is missing from JSON.'); - assert(json[r'displayLabel'] != null, 'Required key "APISSOUser[displayLabel]" has a null value in JSON.'); - assert(json.containsKey(r'displayName'), 'Required key "APISSOUser[displayName]" is missing from JSON.'); - assert(json[r'displayName'] != null, 'Required key "APISSOUser[displayName]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "APISSOUser[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "APISSOUser[$key]" has a null value in JSON.'); + }); return true; }()); 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..bd38288 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "AwardUserBadgeResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "AwardUserBadgeResponse[$key]" 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..6c41580 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BanUserFromCommentResult[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BanUserFromCommentResult[$key]" 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..b137617 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BanUserUndoParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BanUserUndoParams[$key]" 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..ba14ba7 --- /dev/null +++ b/client/lib/model/banned_user_match.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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BannedUserMatch[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BannedUserMatch[$key]" has a null value in 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/banned_user_match_matched_on_value.dart b/client/lib/model/banned_user_match_matched_on_value.dart new file mode 100644 index 0000000..0671ed1 --- /dev/null +++ b/client/lib/model/banned_user_match_matched_on_value.dart @@ -0,0 +1,101 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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 BannedUserMatchMatchedOnValue { + /// Returns a new [BannedUserMatchMatchedOnValue] instance. + BannedUserMatchMatchedOnValue({ + }); + + @override + bool operator ==(Object other) => identical(this, other) || other is BannedUserMatchMatchedOnValue && + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + + @override + String toString() => 'BannedUserMatchMatchedOnValue[]'; + + Map toJson() { + final json = {}; + return json; + } + + /// 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 BannedUserMatchMatchedOnValue? 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BannedUserMatchMatchedOnValue[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BannedUserMatchMatchedOnValue[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return BannedUserMatchMatchedOnValue( + ); + } + 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 = BannedUserMatchMatchedOnValue.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 = BannedUserMatchMatchedOnValue.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return 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] = BannedUserMatchMatchedOnValue.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/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..16ce633 100644 --- a/client/lib/model/billing_info.dart +++ b/client/lib/model/billing_info.dart @@ -105,18 +105,10 @@ class BillingInfo { // 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'name'), 'Required key "BillingInfo[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "BillingInfo[name]" has a null value in JSON.'); - assert(json.containsKey(r'address'), 'Required key "BillingInfo[address]" is missing from JSON.'); - assert(json[r'address'] != null, 'Required key "BillingInfo[address]" has a null value in JSON.'); - assert(json.containsKey(r'city'), 'Required key "BillingInfo[city]" is missing from JSON.'); - assert(json[r'city'] != null, 'Required key "BillingInfo[city]" has a null value in JSON.'); - assert(json.containsKey(r'state'), 'Required key "BillingInfo[state]" is missing from JSON.'); - assert(json[r'state'] != null, 'Required key "BillingInfo[state]" has a null value in JSON.'); - assert(json.containsKey(r'zip'), 'Required key "BillingInfo[zip]" is missing from JSON.'); - assert(json[r'zip'] != null, 'Required key "BillingInfo[zip]" has a null value in JSON.'); - assert(json.containsKey(r'country'), 'Required key "BillingInfo[country]" is missing from JSON.'); - assert(json[r'country'] != null, 'Required key "BillingInfo[country]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BillingInfo[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BillingInfo[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/block_from_comment_params.dart b/client/lib/model/block_from_comment_params.dart index a846b77..989c423 100644 --- a/client/lib/model/block_from_comment_params.dart +++ b/client/lib/model/block_from_comment_params.dart @@ -47,6 +47,10 @@ class BlockFromCommentParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BlockFromCommentParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BlockFromCommentParams[$key]" has a null value in JSON.'); + }); return true; }()); 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..bea60c0 100644 --- a/client/lib/model/block_success.dart +++ b/client/lib/model/block_success.dart @@ -54,10 +54,10 @@ class BlockSuccess { // 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 "BlockSuccess[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "BlockSuccess[status]" has a null value in JSON.'); - assert(json.containsKey(r'commentStatuses'), 'Required key "BlockSuccess[commentStatuses]" is missing from JSON.'); - assert(json[r'commentStatuses'] != null, 'Required key "BlockSuccess[commentStatuses]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BlockSuccess[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BlockSuccess[$key]" has a null value in JSON.'); + }); return true; }()); 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..170c309 --- /dev/null +++ b/client/lib/model/build_moderation_filter_params.dart @@ -0,0 +1,168 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BuildModerationFilterParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BuildModerationFilterParams[$key]" 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..1429d2e --- /dev/null +++ b/client/lib/model/build_moderation_filter_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BuildModerationFilterResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BuildModerationFilterResponse[$key]" 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..4cffe26 100644 --- a/client/lib/model/bulk_aggregate_question_item.dart +++ b/client/lib/model/bulk_aggregate_question_item.dart @@ -117,8 +117,10 @@ class BulkAggregateQuestionItem { // 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'aggId'), 'Required key "BulkAggregateQuestionItem[aggId]" is missing from JSON.'); - assert(json[r'aggId'] != null, 'Required key "BulkAggregateQuestionItem[aggId]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkAggregateQuestionItem[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkAggregateQuestionItem[$key]" has a null value in JSON.'); + }); return true; }()); 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..a5c8fa3 100644 --- a/client/lib/model/bulk_aggregate_question_results_request.dart +++ b/client/lib/model/bulk_aggregate_question_results_request.dart @@ -47,8 +47,10 @@ class BulkAggregateQuestionResultsRequest { // 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'aggregations'), 'Required key "BulkAggregateQuestionResultsRequest[aggregations]" is missing from JSON.'); - assert(json[r'aggregations'] != null, 'Required key "BulkAggregateQuestionResultsRequest[aggregations]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkAggregateQuestionResultsRequest[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkAggregateQuestionResultsRequest[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/bulk_aggregate_question_results_response.dart b/client/lib/model/bulk_aggregate_question_results_response.dart index 1f1d47f..41b4c09 100644 --- a/client/lib/model/bulk_aggregate_question_results_response.dart +++ b/client/lib/model/bulk_aggregate_question_results_response.dart @@ -54,10 +54,10 @@ class BulkAggregateQuestionResultsResponse { // 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 "BulkAggregateQuestionResultsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "BulkAggregateQuestionResultsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "BulkAggregateQuestionResultsResponse[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "BulkAggregateQuestionResultsResponse[data]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkAggregateQuestionResultsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkAggregateQuestionResultsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/bulk_create_hash_tags_body.dart b/client/lib/model/bulk_create_hash_tags_body.dart index df9264d..592baa0 100644 --- a/client/lib/model/bulk_create_hash_tags_body.dart +++ b/client/lib/model/bulk_create_hash_tags_body.dart @@ -63,8 +63,10 @@ class BulkCreateHashTagsBody { // 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'tags'), 'Required key "BulkCreateHashTagsBody[tags]" is missing from JSON.'); - assert(json[r'tags'] != null, 'Required key "BulkCreateHashTagsBody[tags]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkCreateHashTagsBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkCreateHashTagsBody[$key]" has a null value in JSON.'); + }); return true; }()); 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..236f8d9 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 @@ -63,8 +63,10 @@ class BulkCreateHashTagsBodyTagsInner { // 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'tag'), 'Required key "BulkCreateHashTagsBodyTagsInner[tag]" is missing from JSON.'); - assert(json[r'tag'] != null, 'Required key "BulkCreateHashTagsBodyTagsInner[tag]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkCreateHashTagsBodyTagsInner[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkCreateHashTagsBodyTagsInner[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/bulk_create_hash_tags_response.dart b/client/lib/model/bulk_create_hash_tags_response.dart index e708bbd..7ab3324 100644 --- a/client/lib/model/bulk_create_hash_tags_response.dart +++ b/client/lib/model/bulk_create_hash_tags_response.dart @@ -19,7 +19,7 @@ class BulkCreateHashTagsResponse { APIStatus status; - List results; + List results; @override bool operator ==(Object other) => identical(this, other) || other is BulkCreateHashTagsResponse && @@ -53,16 +53,16 @@ class BulkCreateHashTagsResponse { // 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 "BulkCreateHashTagsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "BulkCreateHashTagsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'results'), 'Required key "BulkCreateHashTagsResponse[results]" is missing from JSON.'); - assert(json[r'results'] != null, 'Required key "BulkCreateHashTagsResponse[results]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkCreateHashTagsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkCreateHashTagsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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/update_user_badge200_response.dart b/client/lib/model/bulk_create_hash_tags_response_results_inner.dart similarity index 74% rename from client/lib/model/update_user_badge200_response.dart rename to client/lib/model/bulk_create_hash_tags_response_results_inner.dart index 24b458f..2027e8b 100644 --- a/client/lib/model/update_user_badge200_response.dart +++ b/client/lib/model/bulk_create_hash_tags_response_results_inner.dart @@ -10,10 +10,11 @@ part of openapi.api; -class UpdateUserBadge200Response { - /// Returns a new [UpdateUserBadge200Response] instance. - UpdateUserBadge200Response({ +class BulkCreateHashTagsResponseResultsInner { + /// Returns a new [BulkCreateHashTagsResponseResultsInner] instance. + BulkCreateHashTagsResponseResultsInner({ required this.status, + required this.hashTag, required this.reason, required this.code, this.secondaryCode, @@ -25,6 +26,8 @@ class UpdateUserBadge200Response { APIStatus status; + TenantHashTag hashTag; + String reason; String code; @@ -70,8 +73,9 @@ class UpdateUserBadge200Response { CustomConfigParameters? customConfig; @override - bool operator ==(Object other) => identical(this, other) || other is UpdateUserBadge200Response && + bool operator ==(Object other) => identical(this, other) || other is BulkCreateHashTagsResponseResultsInner && other.status == status && + other.hashTag == hashTag && other.reason == reason && other.code == code && other.secondaryCode == secondaryCode && @@ -84,6 +88,7 @@ class UpdateUserBadge200Response { int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + + (hashTag.hashCode) + (reason.hashCode) + (code.hashCode) + (secondaryCode == null ? 0 : secondaryCode!.hashCode) + @@ -93,11 +98,12 @@ class UpdateUserBadge200Response { (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]'; + 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 = {}; json[r'status'] = this.status; + json[r'hashTag'] = this.hashTag; json[r'reason'] = this.reason; json[r'code'] = this.code; if (this.secondaryCode != null) { @@ -128,10 +134,10 @@ class UpdateUserBadge200Response { return json; } - /// Returns a new [UpdateUserBadge200Response] 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 UpdateUserBadge200Response? fromJson(dynamic value) { + static BulkCreateHashTagsResponseResultsInner? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -139,17 +145,16 @@ class UpdateUserBadge200Response { // 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkCreateHashTagsResponseResultsInner[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkCreateHashTagsResponseResultsInner[$key]" has a null value in JSON.'); + }); return true; }()); - return UpdateUserBadge200Response( + return BulkCreateHashTagsResponseResultsInner( 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'), @@ -162,11 +167,11 @@ class UpdateUserBadge200Response { 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 = UpdateUserBadge200Response.fromJson(row); + final value = BulkCreateHashTagsResponseResultsInner.fromJson(row); if (value != null) { result.add(value); } @@ -175,12 +180,12 @@ class UpdateUserBadge200Response { 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 = UpdateUserBadge200Response.fromJson(entry.value); + final value = BulkCreateHashTagsResponseResultsInner.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -189,14 +194,14 @@ class UpdateUserBadge200Response { 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 = >{}; + // 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] = UpdateUserBadge200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = BulkCreateHashTagsResponseResultsInner.listFromJson(entry.value, growable: growable,); } } return map; @@ -205,6 +210,7 @@ class UpdateUserBadge200Response { /// 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/bulk_pre_ban_params.dart b/client/lib/model/bulk_pre_ban_params.dart new file mode 100644 index 0000000..cae9c49 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkPreBanParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkPreBanParams[$key]" 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..500732e --- /dev/null +++ b/client/lib/model/bulk_pre_ban_summary.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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "BulkPreBanSummary[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "BulkPreBanSummary[$key]" 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..04ad2eb 100644 --- a/client/lib/model/change_comment_pin_status_response.dart +++ b/client/lib/model/change_comment_pin_status_response.dart @@ -54,10 +54,10 @@ class ChangeCommentPinStatusResponse { // 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 "ChangeCommentPinStatusResponse[commentPositions]" is missing from JSON.'); - assert(json[r'commentPositions'] != null, 'Required key "ChangeCommentPinStatusResponse[commentPositions]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "ChangeCommentPinStatusResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "ChangeCommentPinStatusResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ChangeCommentPinStatusResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ChangeCommentPinStatusResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..25ee0f0 100644 --- a/client/lib/model/change_ticket_state_body.dart +++ b/client/lib/model/change_ticket_state_body.dart @@ -47,8 +47,10 @@ class ChangeTicketStateBody { // 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'state'), 'Required key "ChangeTicketStateBody[state]" is missing from JSON.'); - assert(json[r'state'] != null, 'Required key "ChangeTicketStateBody[state]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ChangeTicketStateBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ChangeTicketStateBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/change_ticket_state_response.dart b/client/lib/model/change_ticket_state_response.dart index 3829d3b..0d4bf2d 100644 --- a/client/lib/model/change_ticket_state_response.dart +++ b/client/lib/model/change_ticket_state_response.dart @@ -53,10 +53,10 @@ class ChangeTicketStateResponse { // 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 "ChangeTicketStateResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "ChangeTicketStateResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'ticket'), 'Required key "ChangeTicketStateResponse[ticket]" is missing from JSON.'); - assert(json[r'ticket'] != null, 'Required key "ChangeTicketStateResponse[ticket]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ChangeTicketStateResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ChangeTicketStateResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/check_blocked_comments_response.dart b/client/lib/model/check_blocked_comments_response.dart index abc3e67..5b62d30 100644 --- a/client/lib/model/check_blocked_comments_response.dart +++ b/client/lib/model/check_blocked_comments_response.dart @@ -54,10 +54,10 @@ class CheckBlockedCommentsResponse { // 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 "CheckBlockedCommentsResponse[commentStatuses]" is missing from JSON.'); - assert(json[r'commentStatuses'] != null, 'Required key "CheckBlockedCommentsResponse[commentStatuses]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "CheckBlockedCommentsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CheckBlockedCommentsResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CheckBlockedCommentsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CheckBlockedCommentsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..bb1a053 100644 --- a/client/lib/model/combine_question_results_with_comments_response.dart +++ b/client/lib/model/combine_question_results_with_comments_response.dart @@ -53,10 +53,10 @@ class CombineQuestionResultsWithCommentsResponse { // 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 "CombineQuestionResultsWithCommentsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CombineQuestionResultsWithCommentsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "CombineQuestionResultsWithCommentsResponse[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "CombineQuestionResultsWithCommentsResponse[data]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CombineQuestionResultsWithCommentsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CombineQuestionResultsWithCommentsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/comment_data.dart b/client/lib/model/comment_data.dart index c0cc4ee..e92a89c 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 @@ -338,14 +338,10 @@ class CommentData { // 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'commenterName'), 'Required key "CommentData[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "CommentData[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "CommentData[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "CommentData[comment]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "CommentData[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "CommentData[url]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "CommentData[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "CommentData[urlId]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CommentData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CommentData[$key]" has a null value in JSON.'); + }); return true; }()); @@ -377,7 +373,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..a13831b 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 @@ -380,6 +389,7 @@ class CommentLogData { other.engineResponse == engineResponse && other.engineTokens == engineTokens && other.trustFactor == trustFactor && + other.source_ == source_ && other.rule == rule && other.userId == userId && other.subscribers == subscribers && @@ -430,6 +440,7 @@ class CommentLogData { (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) + @@ -463,7 +474,7 @@ class CommentLogData { (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 +553,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 { @@ -711,6 +727,10 @@ class CommentLogData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CommentLogData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CommentLogData[$key]" has a null value in JSON.'); + }); return true; }()); @@ -730,6 +750,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..bd0cbef 100644 --- a/client/lib/model/comment_log_entry.dart +++ b/client/lib/model/comment_log_entry.dart @@ -69,10 +69,10 @@ class CommentLogEntry { // 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'd'), 'Required key "CommentLogEntry[d]" is missing from JSON.'); - assert(json[r'd'] != null, 'Required key "CommentLogEntry[d]" has a null value in JSON.'); - assert(json.containsKey(r't'), 'Required key "CommentLogEntry[t]" is missing from JSON.'); - assert(json[r't'] != null, 'Required key "CommentLogEntry[t]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CommentLogEntry[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CommentLogEntry[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/comment_text_update_request.dart b/client/lib/model/comment_text_update_request.dart index 32b9692..c81cfcc 100644 --- a/client/lib/model/comment_text_update_request.dart +++ b/client/lib/model/comment_text_update_request.dart @@ -59,8 +59,10 @@ class CommentTextUpdateRequest { // 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 "CommentTextUpdateRequest[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "CommentTextUpdateRequest[comment]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CommentTextUpdateRequest[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CommentTextUpdateRequest[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/comment_user_badge_info.dart b/client/lib/model/comment_user_badge_info.dart index aaf9428..bec33f9 100644 --- a/client/lib/model/comment_user_badge_info.dart +++ b/client/lib/model/comment_user_badge_info.dart @@ -119,12 +119,10 @@ class CommentUserBadgeInfo { // 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 "CommentUserBadgeInfo[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "CommentUserBadgeInfo[id]" has a null value in JSON.'); - assert(json.containsKey(r'type'), 'Required key "CommentUserBadgeInfo[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "CommentUserBadgeInfo[type]" has a null value in JSON.'); - assert(json.containsKey(r'description'), 'Required key "CommentUserBadgeInfo[description]" is missing from JSON.'); - assert(json[r'description'] != null, 'Required key "CommentUserBadgeInfo[description]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CommentUserBadgeInfo[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CommentUserBadgeInfo[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/comment_user_hash_tag_info.dart b/client/lib/model/comment_user_hash_tag_info.dart index 9dea07d..17cc85b 100644 --- a/client/lib/model/comment_user_hash_tag_info.dart +++ b/client/lib/model/comment_user_hash_tag_info.dart @@ -79,11 +79,10 @@ class CommentUserHashTagInfo { // 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 "CommentUserHashTagInfo[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "CommentUserHashTagInfo[id]" has a null value in JSON.'); - assert(json.containsKey(r'tag'), 'Required key "CommentUserHashTagInfo[tag]" is missing from JSON.'); - assert(json[r'tag'] != null, 'Required key "CommentUserHashTagInfo[tag]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "CommentUserHashTagInfo[url]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CommentUserHashTagInfo[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CommentUserHashTagInfo[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/comment_user_mention_info.dart b/client/lib/model/comment_user_mention_info.dart index 3c6eafc..cfefdf2 100644 --- a/client/lib/model/comment_user_mention_info.dart +++ b/client/lib/model/comment_user_mention_info.dart @@ -95,10 +95,10 @@ class CommentUserMentionInfo { // 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 "CommentUserMentionInfo[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "CommentUserMentionInfo[id]" has a null value in JSON.'); - assert(json.containsKey(r'tag'), 'Required key "CommentUserMentionInfo[tag]" is missing from JSON.'); - assert(json[r'tag'] != null, 'Required key "CommentUserMentionInfo[tag]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CommentUserMentionInfo[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CommentUserMentionInfo[$key]" has a null value in JSON.'); + }); return true; }()); 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..69bb874 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CommentsByIdsParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CommentsByIdsParams[$key]" 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..c253b55 100644 --- a/client/lib/model/create_api_page_data.dart +++ b/client/lib/model/create_api_page_data.dart @@ -97,12 +97,10 @@ class CreateAPIPageData { // 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'title'), 'Required key "CreateAPIPageData[title]" is missing from JSON.'); - assert(json[r'title'] != null, 'Required key "CreateAPIPageData[title]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "CreateAPIPageData[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "CreateAPIPageData[url]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "CreateAPIPageData[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "CreateAPIPageData[urlId]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateAPIPageData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateAPIPageData[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_api_user_subscription_data.dart b/client/lib/model/create_api_user_subscription_data.dart index aa8c7b3..227cd84 100644 --- a/client/lib/model/create_api_user_subscription_data.dart +++ b/client/lib/model/create_api_user_subscription_data.dart @@ -127,8 +127,10 @@ class CreateAPIUserSubscriptionData { // 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 "CreateAPIUserSubscriptionData[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "CreateAPIUserSubscriptionData[urlId]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateAPIUserSubscriptionData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateAPIUserSubscriptionData[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_apisso_user_data.dart b/client/lib/model/create_apisso_user_data.dart index 117bbb0..aef27e9 100644 --- a/client/lib/model/create_apisso_user_data.dart +++ b/client/lib/model/create_apisso_user_data.dart @@ -321,12 +321,10 @@ class CreateAPISSOUserData { // 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'email'), 'Required key "CreateAPISSOUserData[email]" is missing from JSON.'); - assert(json[r'email'] != null, 'Required key "CreateAPISSOUserData[email]" has a null value in JSON.'); - assert(json.containsKey(r'username'), 'Required key "CreateAPISSOUserData[username]" is missing from JSON.'); - assert(json[r'username'] != null, 'Required key "CreateAPISSOUserData[username]" has a null value in JSON.'); - assert(json.containsKey(r'id'), 'Required key "CreateAPISSOUserData[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "CreateAPISSOUserData[id]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateAPISSOUserData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateAPISSOUserData[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_comment_params.dart b/client/lib/model/create_comment_params.dart index 68a449c..bbc71bd 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 @@ -489,16 +489,10 @@ class CreateCommentParams { // 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'commenterName'), 'Required key "CreateCommentParams[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "CreateCommentParams[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "CreateCommentParams[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "CreateCommentParams[comment]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "CreateCommentParams[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "CreateCommentParams[url]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "CreateCommentParams[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "CreateCommentParams[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'locale'), 'Required key "CreateCommentParams[locale]" is missing from JSON.'); - assert(json[r'locale'] != null, 'Required key "CreateCommentParams[locale]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateCommentParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateCommentParams[$key]" has a null value in JSON.'); + }); return true; }()); @@ -530,7 +524,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..0fad73c 100644 --- a/client/lib/model/create_email_template_body.dart +++ b/client/lib/model/create_email_template_body.dart @@ -89,12 +89,10 @@ class CreateEmailTemplateBody { // 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'emailTemplateId'), 'Required key "CreateEmailTemplateBody[emailTemplateId]" is missing from JSON.'); - assert(json[r'emailTemplateId'] != null, 'Required key "CreateEmailTemplateBody[emailTemplateId]" has a null value in JSON.'); - assert(json.containsKey(r'displayName'), 'Required key "CreateEmailTemplateBody[displayName]" is missing from JSON.'); - assert(json[r'displayName'] != null, 'Required key "CreateEmailTemplateBody[displayName]" has a null value in JSON.'); - assert(json.containsKey(r'ejs'), 'Required key "CreateEmailTemplateBody[ejs]" is missing from JSON.'); - assert(json[r'ejs'] != null, 'Required key "CreateEmailTemplateBody[ejs]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateEmailTemplateBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateEmailTemplateBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_email_template_response.dart b/client/lib/model/create_email_template_response.dart index fb0901c..535b96b 100644 --- a/client/lib/model/create_email_template_response.dart +++ b/client/lib/model/create_email_template_response.dart @@ -53,10 +53,10 @@ class CreateEmailTemplateResponse { // 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 "CreateEmailTemplateResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateEmailTemplateResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'emailTemplate'), 'Required key "CreateEmailTemplateResponse[emailTemplate]" is missing from JSON.'); - assert(json[r'emailTemplate'] != null, 'Required key "CreateEmailTemplateResponse[emailTemplate]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateEmailTemplateResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateEmailTemplateResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..1b1822f 100644 --- a/client/lib/model/create_feed_post_params.dart +++ b/client/lib/model/create_feed_post_params.dart @@ -130,6 +130,10 @@ class CreateFeedPostParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateFeedPostParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateFeedPostParams[$key]" has a null value in JSON.'); + }); return true; }()); 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..9f1b728 100644 --- a/client/lib/model/create_feed_post_response.dart +++ b/client/lib/model/create_feed_post_response.dart @@ -53,10 +53,10 @@ class CreateFeedPostResponse { // 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 "CreateFeedPostResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateFeedPostResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPost'), 'Required key "CreateFeedPostResponse[feedPost]" is missing from JSON.'); - assert(json[r'feedPost'] != null, 'Required key "CreateFeedPostResponse[feedPost]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateFeedPostResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateFeedPostResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_feed_posts_response.dart b/client/lib/model/create_feed_posts_response.dart index 4c672a9..124e2b9 100644 --- a/client/lib/model/create_feed_posts_response.dart +++ b/client/lib/model/create_feed_posts_response.dart @@ -53,10 +53,10 @@ class CreateFeedPostsResponse { // 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 "CreateFeedPostsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateFeedPostsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPost'), 'Required key "CreateFeedPostsResponse[feedPost]" is missing from JSON.'); - assert(json[r'feedPost'] != null, 'Required key "CreateFeedPostsResponse[feedPost]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateFeedPostsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateFeedPostsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_hash_tag_body.dart b/client/lib/model/create_hash_tag_body.dart index a0a70a8..8291f54 100644 --- a/client/lib/model/create_hash_tag_body.dart +++ b/client/lib/model/create_hash_tag_body.dart @@ -79,8 +79,10 @@ class CreateHashTagBody { // 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'tag'), 'Required key "CreateHashTagBody[tag]" is missing from JSON.'); - assert(json[r'tag'] != null, 'Required key "CreateHashTagBody[tag]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateHashTagBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateHashTagBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_hash_tag_response.dart b/client/lib/model/create_hash_tag_response.dart index 3f9f72a..2ad99d8 100644 --- a/client/lib/model/create_hash_tag_response.dart +++ b/client/lib/model/create_hash_tag_response.dart @@ -53,10 +53,10 @@ class CreateHashTagResponse { // 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 "CreateHashTagResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateHashTagResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'hashTag'), 'Required key "CreateHashTagResponse[hashTag]" is missing from JSON.'); - assert(json[r'hashTag'] != null, 'Required key "CreateHashTagResponse[hashTag]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateHashTagResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateHashTagResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..64be2f0 100644 --- a/client/lib/model/create_moderator_body.dart +++ b/client/lib/model/create_moderator_body.dart @@ -75,10 +75,10 @@ class CreateModeratorBody { // 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'name'), 'Required key "CreateModeratorBody[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "CreateModeratorBody[name]" has a null value in JSON.'); - assert(json.containsKey(r'email'), 'Required key "CreateModeratorBody[email]" is missing from JSON.'); - assert(json[r'email'] != null, 'Required key "CreateModeratorBody[email]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateModeratorBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateModeratorBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_moderator_response.dart b/client/lib/model/create_moderator_response.dart index 1d2558a..27ae30a 100644 --- a/client/lib/model/create_moderator_response.dart +++ b/client/lib/model/create_moderator_response.dart @@ -53,10 +53,10 @@ class CreateModeratorResponse { // 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 "CreateModeratorResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateModeratorResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'moderator'), 'Required key "CreateModeratorResponse[moderator]" is missing from JSON.'); - assert(json[r'moderator'] != null, 'Required key "CreateModeratorResponse[moderator]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateModeratorResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateModeratorResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..ef7e7aa 100644 --- a/client/lib/model/create_question_config_body.dart +++ b/client/lib/model/create_question_config_body.dart @@ -205,14 +205,10 @@ class CreateQuestionConfigBody { // 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'name'), 'Required key "CreateQuestionConfigBody[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "CreateQuestionConfigBody[name]" has a null value in JSON.'); - assert(json.containsKey(r'question'), 'Required key "CreateQuestionConfigBody[question]" is missing from JSON.'); - assert(json[r'question'] != null, 'Required key "CreateQuestionConfigBody[question]" has a null value in JSON.'); - assert(json.containsKey(r'type'), 'Required key "CreateQuestionConfigBody[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "CreateQuestionConfigBody[type]" has a null value in JSON.'); - assert(json.containsKey(r'reportingOrder'), 'Required key "CreateQuestionConfigBody[reportingOrder]" is missing from JSON.'); - assert(json[r'reportingOrder'] != null, 'Required key "CreateQuestionConfigBody[reportingOrder]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateQuestionConfigBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateQuestionConfigBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_question_config_response.dart b/client/lib/model/create_question_config_response.dart index ea537a5..14a6ed2 100644 --- a/client/lib/model/create_question_config_response.dart +++ b/client/lib/model/create_question_config_response.dart @@ -53,10 +53,10 @@ class CreateQuestionConfigResponse { // 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 "CreateQuestionConfigResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateQuestionConfigResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionConfig'), 'Required key "CreateQuestionConfigResponse[questionConfig]" is missing from JSON.'); - assert(json[r'questionConfig'] != null, 'Required key "CreateQuestionConfigResponse[questionConfig]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateQuestionConfigResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateQuestionConfigResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..3a93274 100644 --- a/client/lib/model/create_question_result_body.dart +++ b/client/lib/model/create_question_result_body.dart @@ -117,12 +117,10 @@ class CreateQuestionResultBody { // 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 "CreateQuestionResultBody[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "CreateQuestionResultBody[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'value'), 'Required key "CreateQuestionResultBody[value]" is missing from JSON.'); - assert(json[r'value'] != null, 'Required key "CreateQuestionResultBody[value]" has a null value in JSON.'); - assert(json.containsKey(r'questionId'), 'Required key "CreateQuestionResultBody[questionId]" is missing from JSON.'); - assert(json[r'questionId'] != null, 'Required key "CreateQuestionResultBody[questionId]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateQuestionResultBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateQuestionResultBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_question_result_response.dart b/client/lib/model/create_question_result_response.dart index 2120e83..00030a5 100644 --- a/client/lib/model/create_question_result_response.dart +++ b/client/lib/model/create_question_result_response.dart @@ -53,10 +53,10 @@ class CreateQuestionResultResponse { // 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 "CreateQuestionResultResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateQuestionResultResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionResult'), 'Required key "CreateQuestionResultResponse[questionResult]" is missing from JSON.'); - assert(json[r'questionResult'] != null, 'Required key "CreateQuestionResultResponse[questionResult]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateQuestionResultResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateQuestionResultResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_subscription_api_response.dart b/client/lib/model/create_subscription_api_response.dart index 86387c6..08e0f93 100644 --- a/client/lib/model/create_subscription_api_response.dart +++ b/client/lib/model/create_subscription_api_response.dart @@ -95,8 +95,10 @@ class CreateSubscriptionAPIResponse { // 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 "CreateSubscriptionAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateSubscriptionAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateSubscriptionAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateSubscriptionAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..b9e1597 100644 --- a/client/lib/model/create_tenant_body.dart +++ b/client/lib/model/create_tenant_body.dart @@ -380,10 +380,10 @@ class CreateTenantBody { // 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'name'), 'Required key "CreateTenantBody[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "CreateTenantBody[name]" has a null value in JSON.'); - assert(json.containsKey(r'domainConfiguration'), 'Required key "CreateTenantBody[domainConfiguration]" is missing from JSON.'); - assert(json[r'domainConfiguration'] != null, 'Required key "CreateTenantBody[domainConfiguration]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateTenantBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateTenantBody[$key]" has a null value in JSON.'); + }); return true; }()); 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..bdd311a 100644 --- a/client/lib/model/create_tenant_package_body.dart +++ b/client/lib/model/create_tenant_package_body.dart @@ -671,32 +671,10 @@ class CreateTenantPackageBody { // 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'name'), 'Required key "CreateTenantPackageBody[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "CreateTenantPackageBody[name]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyPageLoads'), 'Required key "CreateTenantPackageBody[maxMonthlyPageLoads]" is missing from JSON.'); - assert(json[r'maxMonthlyPageLoads'] != null, 'Required key "CreateTenantPackageBody[maxMonthlyPageLoads]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyAPICredits'), 'Required key "CreateTenantPackageBody[maxMonthlyAPICredits]" is missing from JSON.'); - assert(json[r'maxMonthlyAPICredits'] != null, 'Required key "CreateTenantPackageBody[maxMonthlyAPICredits]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyComments'), 'Required key "CreateTenantPackageBody[maxMonthlyComments]" is missing from JSON.'); - assert(json[r'maxMonthlyComments'] != null, 'Required key "CreateTenantPackageBody[maxMonthlyComments]" has a null value in JSON.'); - assert(json.containsKey(r'maxConcurrentUsers'), 'Required key "CreateTenantPackageBody[maxConcurrentUsers]" is missing from JSON.'); - assert(json[r'maxConcurrentUsers'] != null, 'Required key "CreateTenantPackageBody[maxConcurrentUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxTenantUsers'), 'Required key "CreateTenantPackageBody[maxTenantUsers]" is missing from JSON.'); - assert(json[r'maxTenantUsers'] != null, 'Required key "CreateTenantPackageBody[maxTenantUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxSSOUsers'), 'Required key "CreateTenantPackageBody[maxSSOUsers]" is missing from JSON.'); - assert(json[r'maxSSOUsers'] != null, 'Required key "CreateTenantPackageBody[maxSSOUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxModerators'), 'Required key "CreateTenantPackageBody[maxModerators]" is missing from JSON.'); - assert(json[r'maxModerators'] != null, 'Required key "CreateTenantPackageBody[maxModerators]" has a null value in JSON.'); - assert(json.containsKey(r'maxDomains'), 'Required key "CreateTenantPackageBody[maxDomains]" is missing from JSON.'); - assert(json[r'maxDomains'] != null, 'Required key "CreateTenantPackageBody[maxDomains]" has a null value in JSON.'); - assert(json.containsKey(r'hasDebranding'), 'Required key "CreateTenantPackageBody[hasDebranding]" is missing from JSON.'); - assert(json[r'hasDebranding'] != null, 'Required key "CreateTenantPackageBody[hasDebranding]" has a null value in JSON.'); - assert(json.containsKey(r'forWhoText'), 'Required key "CreateTenantPackageBody[forWhoText]" is missing from JSON.'); - assert(json[r'forWhoText'] != null, 'Required key "CreateTenantPackageBody[forWhoText]" has a null value in JSON.'); - assert(json.containsKey(r'featureTaglines'), 'Required key "CreateTenantPackageBody[featureTaglines]" is missing from JSON.'); - assert(json[r'featureTaglines'] != null, 'Required key "CreateTenantPackageBody[featureTaglines]" has a null value in JSON.'); - assert(json.containsKey(r'hasFlexPricing'), 'Required key "CreateTenantPackageBody[hasFlexPricing]" is missing from JSON.'); - assert(json[r'hasFlexPricing'] != null, 'Required key "CreateTenantPackageBody[hasFlexPricing]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateTenantPackageBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateTenantPackageBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_tenant_package_response.dart b/client/lib/model/create_tenant_package_response.dart index 5e2499a..90fdc82 100644 --- a/client/lib/model/create_tenant_package_response.dart +++ b/client/lib/model/create_tenant_package_response.dart @@ -53,10 +53,10 @@ class CreateTenantPackageResponse { // 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 "CreateTenantPackageResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateTenantPackageResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantPackage'), 'Required key "CreateTenantPackageResponse[tenantPackage]" is missing from JSON.'); - assert(json[r'tenantPackage'] != null, 'Required key "CreateTenantPackageResponse[tenantPackage]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateTenantPackageResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateTenantPackageResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_tenant_response.dart b/client/lib/model/create_tenant_response.dart index 678a402..b013b65 100644 --- a/client/lib/model/create_tenant_response.dart +++ b/client/lib/model/create_tenant_response.dart @@ -53,10 +53,10 @@ class CreateTenantResponse { // 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 "CreateTenantResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateTenantResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenant'), 'Required key "CreateTenantResponse[tenant]" is missing from JSON.'); - assert(json[r'tenant'] != null, 'Required key "CreateTenantResponse[tenant]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateTenantResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateTenantResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..d3015c2 100644 --- a/client/lib/model/create_tenant_user_body.dart +++ b/client/lib/model/create_tenant_user_body.dart @@ -395,10 +395,10 @@ class CreateTenantUserBody { // 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'username'), 'Required key "CreateTenantUserBody[username]" is missing from JSON.'); - assert(json[r'username'] != null, 'Required key "CreateTenantUserBody[username]" has a null value in JSON.'); - assert(json.containsKey(r'email'), 'Required key "CreateTenantUserBody[email]" is missing from JSON.'); - assert(json[r'email'] != null, 'Required key "CreateTenantUserBody[email]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateTenantUserBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateTenantUserBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_tenant_user_response.dart b/client/lib/model/create_tenant_user_response.dart index c3c0a7c..0abeb03 100644 --- a/client/lib/model/create_tenant_user_response.dart +++ b/client/lib/model/create_tenant_user_response.dart @@ -53,10 +53,10 @@ class CreateTenantUserResponse { // 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 "CreateTenantUserResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateTenantUserResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantUser'), 'Required key "CreateTenantUserResponse[tenantUser]" is missing from JSON.'); - assert(json[r'tenantUser'] != null, 'Required key "CreateTenantUserResponse[tenantUser]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateTenantUserResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateTenantUserResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..98b4cf5 100644 --- a/client/lib/model/create_ticket_body.dart +++ b/client/lib/model/create_ticket_body.dart @@ -47,8 +47,10 @@ class CreateTicketBody { // 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'subject'), 'Required key "CreateTicketBody[subject]" is missing from JSON.'); - assert(json[r'subject'] != null, 'Required key "CreateTicketBody[subject]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateTicketBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateTicketBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/create_ticket_response.dart b/client/lib/model/create_ticket_response.dart index 03f2b3b..636f04d 100644 --- a/client/lib/model/create_ticket_response.dart +++ b/client/lib/model/create_ticket_response.dart @@ -53,10 +53,10 @@ class CreateTicketResponse { // 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 "CreateTicketResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "CreateTicketResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'ticket'), 'Required key "CreateTicketResponse[ticket]" is missing from JSON.'); - assert(json[r'ticket'] != null, 'Required key "CreateTicketResponse[ticket]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateTicketResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateTicketResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..1530242 100644 --- a/client/lib/model/create_user_badge_params.dart +++ b/client/lib/model/create_user_badge_params.dart @@ -69,10 +69,10 @@ class CreateUserBadgeParams { // 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 "CreateUserBadgeParams[userId]" is missing from JSON.'); - assert(json[r'userId'] != null, 'Required key "CreateUserBadgeParams[userId]" has a null value in JSON.'); - assert(json.containsKey(r'badgeId'), 'Required key "CreateUserBadgeParams[badgeId]" is missing from JSON.'); - assert(json[r'badgeId'] != null, 'Required key "CreateUserBadgeParams[badgeId]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateUserBadgeParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateUserBadgeParams[$key]" has a null value in JSON.'); + }); return true; }()); 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..df71e62 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CreateV1PageReact[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CreateV1PageReact[$key]" 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..4c9e682 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 @@ -703,11 +742,14 @@ class CustomConfigParameters { 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 && @@ -728,6 +770,8 @@ class CustomConfigParameters { other.widgetQuestionsRequired == widgetQuestionsRequired && other.widgetSubQuestionVisibility == widgetSubQuestionVisibility && other.wrap == wrap && + other.usersListLocation == usersListLocation && + other.usersListIncludeOffline == usersListIncludeOffline && other.ticketBaseUrl == ticketBaseUrl && other.ticketKBSearchEndpoint == ticketKBSearchEndpoint && other.ticketFileUploadsEnabled == ticketFileUploadsEnabled && @@ -790,11 +834,14 @@ class CustomConfigParameters { (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) + @@ -815,6 +862,8 @@ class CustomConfigParameters { (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) + @@ -823,7 +872,7 @@ class CustomConfigParameters { (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 +1136,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 +1171,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 +1272,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 { @@ -1248,6 +1322,10 @@ class CustomConfigParameters { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CustomConfigParameters[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CustomConfigParameters[$key]" has a null value in JSON.'); + }); return true; }()); @@ -1306,11 +1384,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 +1416,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..707f0b2 100644 --- a/client/lib/model/custom_email_template.dart +++ b/client/lib/model/custom_email_template.dart @@ -124,23 +124,10 @@ class CustomEmailTemplate { // 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 "CustomEmailTemplate[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "CustomEmailTemplate[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "CustomEmailTemplate[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "CustomEmailTemplate[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'emailTemplateId'), 'Required key "CustomEmailTemplate[emailTemplateId]" is missing from JSON.'); - assert(json[r'emailTemplateId'] != null, 'Required key "CustomEmailTemplate[emailTemplateId]" has a null value in JSON.'); - assert(json.containsKey(r'displayName'), 'Required key "CustomEmailTemplate[displayName]" is missing from JSON.'); - assert(json[r'displayName'] != null, 'Required key "CustomEmailTemplate[displayName]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "CustomEmailTemplate[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "CustomEmailTemplate[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'updatedAt'), 'Required key "CustomEmailTemplate[updatedAt]" is missing from JSON.'); - assert(json.containsKey(r'updatedByUserId'), 'Required key "CustomEmailTemplate[updatedByUserId]" is missing from JSON.'); - assert(json.containsKey(r'ejs'), 'Required key "CustomEmailTemplate[ejs]" is missing from JSON.'); - assert(json[r'ejs'] != null, 'Required key "CustomEmailTemplate[ejs]" has a null value in JSON.'); - assert(json.containsKey(r'translationOverridesByLocale'), 'Required key "CustomEmailTemplate[translationOverridesByLocale]" is missing from JSON.'); - assert(json[r'translationOverridesByLocale'] != null, 'Required key "CustomEmailTemplate[translationOverridesByLocale]" has a null value in JSON.'); - assert(json.containsKey(r'testData'), 'Required key "CustomEmailTemplate[testData]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CustomEmailTemplate[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CustomEmailTemplate[$key]" has a null value in JSON.'); + }); return true; }()); 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..ad2a47d 100644 --- a/client/lib/model/delete_comment_result.dart +++ b/client/lib/model/delete_comment_result.dart @@ -53,10 +53,10 @@ class DeleteCommentResult { // 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 "DeleteCommentResult[action]" is missing from JSON.'); - assert(json[r'action'] != null, 'Required key "DeleteCommentResult[action]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "DeleteCommentResult[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeleteCommentResult[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "DeleteCommentResult[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "DeleteCommentResult[$key]" has a null value in JSON.'); + }); return true; }()); 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 58% rename from client/lib/model/delete_domain_config200_response.dart rename to client/lib/model/delete_domain_config_response.dart index dd654e0..7e92f94 100644 --- a/client/lib/model/delete_domain_config200_response.dart +++ b/client/lib/model/delete_domain_config_response.dart @@ -10,16 +10,16 @@ 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 @@ -28,7 +28,7 @@ class DeleteDomainConfig200Response { (status == null ? 0 : status!.hashCode); @override - String toString() => 'DeleteDomainConfig200Response[status=$status]'; + String toString() => 'DeleteDomainConfigResponse[status=$status]'; Map toJson() { final json = {}; @@ -40,10 +40,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 +51,25 @@ 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "DeleteDomainConfigResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "DeleteDomainConfigResponse[$key]" has a null value in 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 +78,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 +92,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_public_response.dart b/client/lib/model/delete_feed_post_public_response.dart new file mode 100644 index 0000000..29059b2 --- /dev/null +++ b/client/lib/model/delete_feed_post_public_response.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 DeleteFeedPostPublicResponse { + /// Returns a new [DeleteFeedPostPublicResponse] instance. + DeleteFeedPostPublicResponse({ + required this.status, + }); + + APIStatus status; + + @override + 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() => 'DeleteFeedPostPublicResponse[status=$status]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + return json; + } + + /// 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 DeleteFeedPostPublicResponse? 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "DeleteFeedPostPublicResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "DeleteFeedPostPublicResponse[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return DeleteFeedPostPublicResponse( + 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 = DeleteFeedPostPublicResponse.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 = DeleteFeedPostPublicResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return 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] = DeleteFeedPostPublicResponse.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/delete_hash_tag_request.dart b/client/lib/model/delete_hash_tag_request_body.dart similarity index 62% rename from client/lib/model/delete_hash_tag_request.dart rename to client/lib/model/delete_hash_tag_request_body.dart index 3677022..8c1b16d 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,7 +25,7 @@ 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 @@ -34,7 +34,7 @@ class DeleteHashTagRequest { (tenantId == null ? 0 : tenantId!.hashCode); @override - String toString() => 'DeleteHashTagRequest[tenantId=$tenantId]'; + String toString() => 'DeleteHashTagRequestBody[tenantId=$tenantId]'; Map toJson() { final json = {}; @@ -46,10 +46,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(); @@ -57,21 +57,25 @@ class DeleteHashTagRequest { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "DeleteHashTagRequestBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "DeleteHashTagRequestBody[$key]" has a null value in JSON.'); + }); 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 +84,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 +98,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..8700b09 100644 --- a/client/lib/model/delete_page_api_response.dart +++ b/client/lib/model/delete_page_api_response.dart @@ -79,8 +79,10 @@ class DeletePageAPIResponse { // 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 "DeletePageAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeletePageAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "DeletePageAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "DeletePageAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/delete_sso_user_api_response.dart b/client/lib/model/delete_sso_user_api_response.dart index 89f4367..a1c2ea4 100644 --- a/client/lib/model/delete_sso_user_api_response.dart +++ b/client/lib/model/delete_sso_user_api_response.dart @@ -95,8 +95,10 @@ class DeleteSSOUserAPIResponse { // 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 "DeleteSSOUserAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeleteSSOUserAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "DeleteSSOUserAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "DeleteSSOUserAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/delete_subscription_api_response.dart b/client/lib/model/delete_subscription_api_response.dart index 71b4e4f..b7a4e55 100644 --- a/client/lib/model/delete_subscription_api_response.dart +++ b/client/lib/model/delete_subscription_api_response.dart @@ -79,8 +79,10 @@ class DeleteSubscriptionAPIResponse { // 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 "DeleteSubscriptionAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "DeleteSubscriptionAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "DeleteSubscriptionAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "DeleteSubscriptionAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/deleted_comment_result_comment.dart b/client/lib/model/deleted_comment_result_comment.dart index 9c28495..8d3cd93 100644 --- a/client/lib/model/deleted_comment_result_comment.dart +++ b/client/lib/model/deleted_comment_result_comment.dart @@ -79,10 +79,10 @@ class DeletedCommentResultComment { // 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'commentHTML'), 'Required key "DeletedCommentResultComment[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "DeletedCommentResultComment[commentHTML]" has a null value in JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "DeletedCommentResultComment[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "DeletedCommentResultComment[commenterName]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "DeletedCommentResultComment[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "DeletedCommentResultComment[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/email_template_definition.dart b/client/lib/model/email_template_definition.dart index 24efa3b..ea381aa 100644 --- a/client/lib/model/email_template_definition.dart +++ b/client/lib/model/email_template_definition.dart @@ -67,14 +67,10 @@ class EmailTemplateDefinition { // 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'emailTemplateId'), 'Required key "EmailTemplateDefinition[emailTemplateId]" is missing from JSON.'); - assert(json[r'emailTemplateId'] != null, 'Required key "EmailTemplateDefinition[emailTemplateId]" has a null value in JSON.'); - assert(json.containsKey(r'defaultTestData'), 'Required key "EmailTemplateDefinition[defaultTestData]" is missing from JSON.'); - assert(json[r'defaultTestData'] != null, 'Required key "EmailTemplateDefinition[defaultTestData]" has a null value in JSON.'); - assert(json.containsKey(r'defaultTranslationsByLocale'), 'Required key "EmailTemplateDefinition[defaultTranslationsByLocale]" is missing from JSON.'); - assert(json[r'defaultTranslationsByLocale'] != null, 'Required key "EmailTemplateDefinition[defaultTranslationsByLocale]" has a null value in JSON.'); - assert(json.containsKey(r'defaultEJS'), 'Required key "EmailTemplateDefinition[defaultEJS]" is missing from JSON.'); - assert(json[r'defaultEJS'] != null, 'Required key "EmailTemplateDefinition[defaultEJS]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "EmailTemplateDefinition[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "EmailTemplateDefinition[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/email_template_render_error_response.dart b/client/lib/model/email_template_render_error_response.dart index d89d739..45bd60c 100644 --- a/client/lib/model/email_template_render_error_response.dart +++ b/client/lib/model/email_template_render_error_response.dart @@ -83,20 +83,10 @@ class EmailTemplateRenderErrorResponse { // 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 "EmailTemplateRenderErrorResponse[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "EmailTemplateRenderErrorResponse[id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "EmailTemplateRenderErrorResponse[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "EmailTemplateRenderErrorResponse[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'customTemplateId'), 'Required key "EmailTemplateRenderErrorResponse[customTemplateId]" is missing from JSON.'); - assert(json[r'customTemplateId'] != null, 'Required key "EmailTemplateRenderErrorResponse[customTemplateId]" has a null value in JSON.'); - assert(json.containsKey(r'error'), 'Required key "EmailTemplateRenderErrorResponse[error]" is missing from JSON.'); - assert(json[r'error'] != null, 'Required key "EmailTemplateRenderErrorResponse[error]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "EmailTemplateRenderErrorResponse[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "EmailTemplateRenderErrorResponse[count]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "EmailTemplateRenderErrorResponse[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "EmailTemplateRenderErrorResponse[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'lastOccurredAt'), 'Required key "EmailTemplateRenderErrorResponse[lastOccurredAt]" is missing from JSON.'); - assert(json[r'lastOccurredAt'] != null, 'Required key "EmailTemplateRenderErrorResponse[lastOccurredAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "EmailTemplateRenderErrorResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "EmailTemplateRenderErrorResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/event_log_entry.dart b/client/lib/model/event_log_entry.dart index 18c558c..b22b776 100644 --- a/client/lib/model/event_log_entry.dart +++ b/client/lib/model/event_log_entry.dart @@ -77,18 +77,10 @@ class EventLogEntry { // 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 "EventLogEntry[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "EventLogEntry[_id]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "EventLogEntry[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "EventLogEntry[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "EventLogEntry[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "EventLogEntry[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "EventLogEntry[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "EventLogEntry[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'broadcastId'), 'Required key "EventLogEntry[broadcastId]" is missing from JSON.'); - assert(json[r'broadcastId'] != null, 'Required key "EventLogEntry[broadcastId]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "EventLogEntry[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "EventLogEntry[data]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "EventLogEntry[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "EventLogEntry[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/f_comment.dart b/client/lib/model/f_comment.dart index 89b9a58..a2b68ec 100644 --- a/client/lib/model/f_comment.dart +++ b/client/lib/model/f_comment.dart @@ -891,26 +891,10 @@ class FComment { // 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 "FComment[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "FComment[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "FComment[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "FComment[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "FComment[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "FComment[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "FComment[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "FComment[url]" has a null value in JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "FComment[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "FComment[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "FComment[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "FComment[comment]" has a null value in JSON.'); - assert(json.containsKey(r'commentHTML'), 'Required key "FComment[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "FComment[commentHTML]" has a null value in JSON.'); - assert(json.containsKey(r'date'), 'Required key "FComment[date]" is missing from JSON.'); - assert(json.containsKey(r'verified'), 'Required key "FComment[verified]" is missing from JSON.'); - assert(json[r'verified'] != null, 'Required key "FComment[verified]" has a null value in JSON.'); - assert(json.containsKey(r'approved'), 'Required key "FComment[approved]" is missing from JSON.'); - assert(json[r'approved'] != null, 'Required key "FComment[approved]" has a null value in JSON.'); - assert(json.containsKey(r'locale'), 'Required key "FComment[locale]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FComment[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FComment[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/f_comment_meta.dart b/client/lib/model/f_comment_meta.dart index 074e6cf..89cf1ca 100644 --- a/client/lib/model/f_comment_meta.dart +++ b/client/lib/model/f_comment_meta.dart @@ -89,6 +89,10 @@ class FCommentMeta { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FCommentMeta[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FCommentMeta[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/feed_post.dart b/client/lib/model/feed_post.dart index f323a43..464c629 100644 --- a/client/lib/model/feed_post.dart +++ b/client/lib/model/feed_post.dart @@ -200,12 +200,10 @@ class FeedPost { // 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 "FeedPost[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "FeedPost[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "FeedPost[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "FeedPost[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "FeedPost[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "FeedPost[createdAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FeedPost[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FeedPost[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/feed_post_link.dart b/client/lib/model/feed_post_link.dart index 1c04498..f4bf3e2 100644 --- a/client/lib/model/feed_post_link.dart +++ b/client/lib/model/feed_post_link.dart @@ -105,6 +105,10 @@ class FeedPostLink { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FeedPostLink[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FeedPostLink[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/feed_post_media_item.dart b/client/lib/model/feed_post_media_item.dart index 2e8be19..2baef12 100644 --- a/client/lib/model/feed_post_media_item.dart +++ b/client/lib/model/feed_post_media_item.dart @@ -79,8 +79,10 @@ class FeedPostMediaItem { // 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'sizes'), 'Required key "FeedPostMediaItem[sizes]" is missing from JSON.'); - assert(json[r'sizes'] != null, 'Required key "FeedPostMediaItem[sizes]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FeedPostMediaItem[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FeedPostMediaItem[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/feed_post_media_item_asset.dart b/client/lib/model/feed_post_media_item_asset.dart index ada1922..8038c81 100644 --- a/client/lib/model/feed_post_media_item_asset.dart +++ b/client/lib/model/feed_post_media_item_asset.dart @@ -59,12 +59,10 @@ class FeedPostMediaItemAsset { // 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'w'), 'Required key "FeedPostMediaItemAsset[w]" is missing from JSON.'); - assert(json[r'w'] != null, 'Required key "FeedPostMediaItemAsset[w]" has a null value in JSON.'); - assert(json.containsKey(r'h'), 'Required key "FeedPostMediaItemAsset[h]" is missing from JSON.'); - assert(json[r'h'] != null, 'Required key "FeedPostMediaItemAsset[h]" has a null value in JSON.'); - assert(json.containsKey(r'src'), 'Required key "FeedPostMediaItemAsset[src]" is missing from JSON.'); - assert(json[r'src'] != null, 'Required key "FeedPostMediaItemAsset[src]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FeedPostMediaItemAsset[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FeedPostMediaItemAsset[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/feed_post_stats.dart b/client/lib/model/feed_post_stats.dart index 3e541ad..c2c5516 100644 --- a/client/lib/model/feed_post_stats.dart +++ b/client/lib/model/feed_post_stats.dart @@ -63,6 +63,10 @@ class FeedPostStats { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FeedPostStats[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FeedPostStats[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/feed_posts_stats_response.dart b/client/lib/model/feed_posts_stats_response.dart index 196f075..d639c15 100644 --- a/client/lib/model/feed_posts_stats_response.dart +++ b/client/lib/model/feed_posts_stats_response.dart @@ -53,10 +53,10 @@ class FeedPostsStatsResponse { // 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 "FeedPostsStatsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "FeedPostsStatsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'stats'), 'Required key "FeedPostsStatsResponse[stats]" is missing from JSON.'); - assert(json[r'stats'] != null, 'Required key "FeedPostsStatsResponse[stats]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FeedPostsStatsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FeedPostsStatsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/find_comments_by_range_item.dart b/client/lib/model/find_comments_by_range_item.dart index 487aed4..f2f85dc 100644 --- a/client/lib/model/find_comments_by_range_item.dart +++ b/client/lib/model/find_comments_by_range_item.dart @@ -57,9 +57,10 @@ class FindCommentsByRangeItem { // 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 "FindCommentsByRangeItem[comment]" is missing from JSON.'); - assert(json.containsKey(r'result'), 'Required key "FindCommentsByRangeItem[result]" is missing from JSON.'); - assert(json[r'result'] != null, 'Required key "FindCommentsByRangeItem[result]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FindCommentsByRangeItem[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FindCommentsByRangeItem[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/find_comments_by_range_response.dart b/client/lib/model/find_comments_by_range_response.dart index 97f9ecf..8277fed 100644 --- a/client/lib/model/find_comments_by_range_response.dart +++ b/client/lib/model/find_comments_by_range_response.dart @@ -53,10 +53,10 @@ class FindCommentsByRangeResponse { // 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'results'), 'Required key "FindCommentsByRangeResponse[results]" is missing from JSON.'); - assert(json[r'results'] != null, 'Required key "FindCommentsByRangeResponse[results]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "FindCommentsByRangeResponse[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "FindCommentsByRangeResponse[createdAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FindCommentsByRangeResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FindCommentsByRangeResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/flag_comment200_response.dart b/client/lib/model/flag_comment200_response.dart deleted file mode 100644 index 0e0f444..0000000 --- a/client/lib/model/flag_comment200_response.dart +++ /dev/null @@ -1,246 +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 FlagComment200Response { - /// Returns a new [FlagComment200Response] instance. - FlagComment200Response({ - this.statusCode, - required this.status, - required this.code, - required this.reason, - this.wasUnapproved, - 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. - /// - 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. - /// - bool? wasUnapproved; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the 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 FlagComment200Response && - other.statusCode == statusCode && - 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; - - @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); - - @override - String toString() => 'FlagComment200Response[statusCode=$statusCode, status=$status, code=$code, reason=$reason, wasUnapproved=$wasUnapproved, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; - - 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.wasUnapproved != null) { - json[r'wasUnapproved'] = this.wasUnapproved; - } else { - json[r'wasUnapproved'] = 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; - } - if (this.customConfig != null) { - json[r'customConfig'] = this.customConfig; - } else { - json[r'customConfig'] = null; - } - return json; - } - - /// Returns a new [FlagComment200Response] 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) { - 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 "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.'); - return true; - }()); - - return FlagComment200Response( - statusCode: mapValueOfType(json, r'statusCode'), - status: APIStatus.fromJson(json[r'status'])!, - code: mapValueOfType(json, r'code')!, - reason: mapValueOfType(json, r'reason')!, - wasUnapproved: mapValueOfType(json, r'wasUnapproved'), - 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 = FlagComment200Response.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 = FlagComment200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - 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 = >{}; - 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,); - } - } - 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/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..86de7c9 100644 --- a/client/lib/model/flag_comment_response.dart +++ b/client/lib/model/flag_comment_response.dart @@ -111,8 +111,10 @@ class FlagCommentResponse { // 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 "FlagCommentResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "FlagCommentResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "FlagCommentResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FlagCommentResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..22bf1f6 100644 --- a/client/lib/model/get_audit_logs_response.dart +++ b/client/lib/model/get_audit_logs_response.dart @@ -53,10 +53,10 @@ class GetAuditLogsResponse { // 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 "GetAuditLogsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetAuditLogsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'auditLogs'), 'Required key "GetAuditLogsResponse[auditLogs]" is missing from JSON.'); - assert(json[r'auditLogs'] != null, 'Required key "GetAuditLogsResponse[auditLogs]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetAuditLogsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetAuditLogsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..9b24bf1 --- /dev/null +++ b/client/lib/model/get_banned_users_count_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetBannedUsersCountResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetBannedUsersCountResponse[$key]" 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..f659ef7 --- /dev/null +++ b/client/lib/model/get_banned_users_from_comment_response.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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetBannedUsersFromCommentResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetBannedUsersFromCommentResponse[$key]" 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..1b76c67 100644 --- a/client/lib/model/get_cached_notification_count_response.dart +++ b/client/lib/model/get_cached_notification_count_response.dart @@ -53,10 +53,10 @@ class GetCachedNotificationCountResponse { // 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 "GetCachedNotificationCountResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetCachedNotificationCountResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'data'), 'Required key "GetCachedNotificationCountResponse[data]" is missing from JSON.'); - assert(json[r'data'] != null, 'Required key "GetCachedNotificationCountResponse[data]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetCachedNotificationCountResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetCachedNotificationCountResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..2b12405 --- /dev/null +++ b/client/lib/model/get_comment_ban_status_response.dart @@ -0,0 +1,133 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetCommentBanStatusResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetCommentBanStatusResponse[$key]" has a null value in 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..1bab811 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetCommentTextResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetCommentTextResponse[$key]" 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..be608af 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 @@ -59,12 +59,10 @@ class GetCommentVoteUserNamesSuccessResponse { // 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 "GetCommentVoteUserNamesSuccessResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetCommentVoteUserNamesSuccessResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'voteUserNames'), 'Required key "GetCommentVoteUserNamesSuccessResponse[voteUserNames]" is missing from JSON.'); - assert(json[r'voteUserNames'] != null, 'Required key "GetCommentVoteUserNamesSuccessResponse[voteUserNames]" has a null value in JSON.'); - assert(json.containsKey(r'hasMore'), 'Required key "GetCommentVoteUserNamesSuccessResponse[hasMore]" is missing from JSON.'); - assert(json[r'hasMore'] != null, 'Required key "GetCommentVoteUserNamesSuccessResponse[hasMore]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetCommentVoteUserNamesSuccessResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetCommentVoteUserNamesSuccessResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..d5406ea --- /dev/null +++ b/client/lib/model/get_comments_for_user_response.dart @@ -0,0 +1,110 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetCommentsForUserResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetCommentsForUserResponse[$key]" has a null value in JSON.'); + }); + 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..b654ae0 100644 --- a/client/lib/model/get_comments_response_public_comment.dart +++ b/client/lib/model/get_comments_response_public_comment.dart @@ -374,13 +374,10 @@ class GetCommentsResponsePublicComment { // 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 "GetCommentsResponsePublicComment[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetCommentsResponsePublicComment[status]" has a null value in JSON.'); - assert(json.containsKey(r'comments'), 'Required key "GetCommentsResponsePublicComment[comments]" is missing from JSON.'); - assert(json[r'comments'] != null, 'Required key "GetCommentsResponsePublicComment[comments]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "GetCommentsResponsePublicComment[user]" is missing from JSON.'); - assert(json.containsKey(r'pageNumber'), 'Required key "GetCommentsResponsePublicComment[pageNumber]" is missing from JSON.'); - assert(json[r'pageNumber'] != null, 'Required key "GetCommentsResponsePublicComment[pageNumber]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetCommentsResponsePublicComment[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetCommentsResponsePublicComment[$key]" has a null value in JSON.'); + }); return true; }()); 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..4eed7ed 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 @@ -422,13 +422,10 @@ class GetCommentsResponseWithPresencePublicComment { // 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 "GetCommentsResponseWithPresencePublicComment[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetCommentsResponseWithPresencePublicComment[status]" has a null value in JSON.'); - assert(json.containsKey(r'comments'), 'Required key "GetCommentsResponseWithPresencePublicComment[comments]" is missing from JSON.'); - assert(json[r'comments'] != null, 'Required key "GetCommentsResponseWithPresencePublicComment[comments]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "GetCommentsResponseWithPresencePublicComment[user]" is missing from JSON.'); - assert(json.containsKey(r'pageNumber'), 'Required key "GetCommentsResponseWithPresencePublicComment[pageNumber]" is missing from JSON.'); - assert(json[r'pageNumber'] != null, 'Required key "GetCommentsResponseWithPresencePublicComment[pageNumber]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetCommentsResponseWithPresencePublicComment[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetCommentsResponseWithPresencePublicComment[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_domain_config200_response.dart b/client/lib/model/get_domain_config_response.dart similarity index 59% rename from client/lib/model/get_domain_config200_response.dart rename to client/lib/model/get_domain_config_response.dart index d9c714d..9635300 100644 --- a/client/lib/model/get_domain_config200_response.dart +++ b/client/lib/model/get_domain_config_response.dart @@ -10,9 +10,9 @@ part of openapi.api; -class GetDomainConfig200Response { - /// Returns a new [GetDomainConfig200Response] instance. - GetDomainConfig200Response({ +class GetDomainConfigResponse { + /// Returns a new [GetDomainConfigResponse] instance. + GetDomainConfigResponse({ required this.configuration, required this.status, required this.reason, @@ -28,7 +28,7 @@ class GetDomainConfig200Response { String code; @override - bool operator ==(Object other) => identical(this, other) || other is GetDomainConfig200Response && + bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigResponse && other.configuration == configuration && other.status == status && other.reason == reason && @@ -43,7 +43,7 @@ class GetDomainConfig200Response { (code.hashCode); @override - String toString() => 'GetDomainConfig200Response[configuration=$configuration, status=$status, reason=$reason, code=$code]'; + String toString() => 'GetDomainConfigResponse[configuration=$configuration, status=$status, reason=$reason, code=$code]'; Map toJson() { final json = {}; @@ -62,10 +62,10 @@ class GetDomainConfig200Response { return json; } - /// Returns a new [GetDomainConfig200Response] instance and imports its values from + /// 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 GetDomainConfig200Response? fromJson(dynamic value) { + static GetDomainConfigResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -73,16 +73,14 @@ class GetDomainConfig200Response { // 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetDomainConfigResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetDomainConfigResponse[$key]" has a null value in JSON.'); + }); return true; }()); - return GetDomainConfig200Response( + return GetDomainConfigResponse( configuration: mapValueOfType(json, r'configuration'), status: mapValueOfType(json, r'status'), reason: mapValueOfType(json, r'reason')!, @@ -92,11 +90,11 @@ class GetDomainConfig200Response { 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 = GetDomainConfig200Response.fromJson(row); + final value = GetDomainConfigResponse.fromJson(row); if (value != null) { result.add(value); } @@ -105,12 +103,12 @@ class GetDomainConfig200Response { 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 = GetDomainConfig200Response.fromJson(entry.value); + final value = GetDomainConfigResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -119,14 +117,14 @@ class GetDomainConfig200Response { 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 = >{}; + // 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] = GetDomainConfig200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = GetDomainConfigResponse.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/get_domain_configs200_response.dart b/client/lib/model/get_domain_configs_response.dart similarity index 59% rename from client/lib/model/get_domain_configs200_response.dart rename to client/lib/model/get_domain_configs_response.dart index c699a68..d44eb37 100644 --- a/client/lib/model/get_domain_configs200_response.dart +++ b/client/lib/model/get_domain_configs_response.dart @@ -10,9 +10,9 @@ part of openapi.api; -class GetDomainConfigs200Response { - /// Returns a new [GetDomainConfigs200Response] instance. - GetDomainConfigs200Response({ +class GetDomainConfigsResponse { + /// Returns a new [GetDomainConfigsResponse] instance. + GetDomainConfigsResponse({ required this.configurations, required this.status, required this.reason, @@ -28,7 +28,7 @@ class GetDomainConfigs200Response { String code; @override - bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigs200Response && + bool operator ==(Object other) => identical(this, other) || other is GetDomainConfigsResponse && other.configurations == configurations && other.status == status && other.reason == reason && @@ -43,7 +43,7 @@ class GetDomainConfigs200Response { (code.hashCode); @override - String toString() => 'GetDomainConfigs200Response[configurations=$configurations, status=$status, reason=$reason, code=$code]'; + String toString() => 'GetDomainConfigsResponse[configurations=$configurations, status=$status, reason=$reason, code=$code]'; Map toJson() { final json = {}; @@ -62,10 +62,10 @@ class GetDomainConfigs200Response { return json; } - /// Returns a new [GetDomainConfigs200Response] instance and imports its values from + /// 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 GetDomainConfigs200Response? fromJson(dynamic value) { + static GetDomainConfigsResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -73,16 +73,14 @@ class GetDomainConfigs200Response { // 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetDomainConfigsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetDomainConfigsResponse[$key]" has a null value in JSON.'); + }); return true; }()); - return GetDomainConfigs200Response( + return GetDomainConfigsResponse( configurations: mapValueOfType(json, r'configurations'), status: mapValueOfType(json, r'status'), reason: mapValueOfType(json, r'reason')!, @@ -92,11 +90,11 @@ class GetDomainConfigs200Response { 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 = GetDomainConfigs200Response.fromJson(row); + final value = GetDomainConfigsResponse.fromJson(row); if (value != null) { result.add(value); } @@ -105,12 +103,12 @@ class GetDomainConfigs200Response { 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 = GetDomainConfigs200Response.fromJson(entry.value); + final value = GetDomainConfigsResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -119,14 +117,14 @@ class GetDomainConfigs200Response { 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 = >{}; + // 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] = GetDomainConfigs200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = GetDomainConfigsResponse.listFromJson(entry.value, growable: growable,); } } return map; 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 60% 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..a9749aa 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,7 +22,7 @@ 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; @@ -33,7 +33,7 @@ class GetDomainConfigs200ResponseAnyOf { (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 +50,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 +61,14 @@ 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetDomainConfigsResponseAnyOf[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetDomainConfigsResponseAnyOf[$key]" has a null value in 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 55% 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..a92bc1a 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,7 +25,7 @@ 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; @@ -38,7 +38,7 @@ class GetDomainConfigs200ResponseAnyOf1 { (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 +52,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 +63,14 @@ 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetDomainConfigsResponseAnyOf1[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetDomainConfigsResponseAnyOf1[$key]" has a null value in JSON.'); + }); return true; }()); - return GetDomainConfigs200ResponseAnyOf1( + return GetDomainConfigsResponseAnyOf1( reason: mapValueOfType(json, r'reason')!, code: mapValueOfType(json, r'code')!, status: mapValueOfType(json, r'status'), @@ -80,11 +79,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 +92,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 +106,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..c589a07 100644 --- a/client/lib/model/get_email_template_definitions_response.dart +++ b/client/lib/model/get_email_template_definitions_response.dart @@ -53,10 +53,10 @@ class GetEmailTemplateDefinitionsResponse { // 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 "GetEmailTemplateDefinitionsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEmailTemplateDefinitionsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'definitions'), 'Required key "GetEmailTemplateDefinitionsResponse[definitions]" is missing from JSON.'); - assert(json[r'definitions'] != null, 'Required key "GetEmailTemplateDefinitionsResponse[definitions]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetEmailTemplateDefinitionsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetEmailTemplateDefinitionsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..0770505 100644 --- a/client/lib/model/get_email_template_render_errors_response.dart +++ b/client/lib/model/get_email_template_render_errors_response.dart @@ -53,10 +53,10 @@ class GetEmailTemplateRenderErrorsResponse { // 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 "GetEmailTemplateRenderErrorsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEmailTemplateRenderErrorsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'renderErrors'), 'Required key "GetEmailTemplateRenderErrorsResponse[renderErrors]" is missing from JSON.'); - assert(json[r'renderErrors'] != null, 'Required key "GetEmailTemplateRenderErrorsResponse[renderErrors]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetEmailTemplateRenderErrorsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetEmailTemplateRenderErrorsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_email_template_response.dart b/client/lib/model/get_email_template_response.dart index 76e6020..e0c2a5d 100644 --- a/client/lib/model/get_email_template_response.dart +++ b/client/lib/model/get_email_template_response.dart @@ -53,10 +53,10 @@ class GetEmailTemplateResponse { // 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 "GetEmailTemplateResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEmailTemplateResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'emailTemplate'), 'Required key "GetEmailTemplateResponse[emailTemplate]" is missing from JSON.'); - assert(json[r'emailTemplate'] != null, 'Required key "GetEmailTemplateResponse[emailTemplate]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetEmailTemplateResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetEmailTemplateResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..732bf49 100644 --- a/client/lib/model/get_email_templates_response.dart +++ b/client/lib/model/get_email_templates_response.dart @@ -53,10 +53,10 @@ class GetEmailTemplatesResponse { // 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 "GetEmailTemplatesResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEmailTemplatesResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'emailTemplates'), 'Required key "GetEmailTemplatesResponse[emailTemplates]" is missing from JSON.'); - assert(json[r'emailTemplates'] != null, 'Required key "GetEmailTemplatesResponse[emailTemplates]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetEmailTemplatesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetEmailTemplatesResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..ebf3ab2 100644 --- a/client/lib/model/get_event_log_response.dart +++ b/client/lib/model/get_event_log_response.dart @@ -53,10 +53,10 @@ class GetEventLogResponse { // 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 "GetEventLogResponse[events]" is missing from JSON.'); - assert(json[r'events'] != null, 'Required key "GetEventLogResponse[events]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetEventLogResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetEventLogResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetEventLogResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetEventLogResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..19711f9 100644 --- a/client/lib/model/get_feed_posts_response.dart +++ b/client/lib/model/get_feed_posts_response.dart @@ -53,10 +53,10 @@ class GetFeedPostsResponse { // 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 "GetFeedPostsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetFeedPostsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPosts'), 'Required key "GetFeedPostsResponse[feedPosts]" is missing from JSON.'); - assert(json[r'feedPosts'] != null, 'Required key "GetFeedPostsResponse[feedPosts]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetFeedPostsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetFeedPostsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..a98be98 --- /dev/null +++ b/client/lib/model/get_gifs_search_response.dart @@ -0,0 +1,129 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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, + required this.code, + }); + + List> images; + + APIStatus status; + + 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.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; + json[r'code'] = this.code; + 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetGifsSearchResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetGifsSearchResponse[$key]" 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 = { + 'images', + 'status', + 'code', + }; +} + 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..1041c40 --- /dev/null +++ b/client/lib/model/get_gifs_trending_response.dart @@ -0,0 +1,129 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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, + required this.code, + }); + + List> images; + + APIStatus status; + + 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.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; + json[r'code'] = this.code; + 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetGifsTrendingResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetGifsTrendingResponse[$key]" 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 = { + 'images', + 'status', + 'code', + }; +} + 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..1b0b5e9 100644 --- a/client/lib/model/get_hash_tags_response.dart +++ b/client/lib/model/get_hash_tags_response.dart @@ -53,10 +53,10 @@ class GetHashTagsResponse { // 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 "GetHashTagsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetHashTagsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'hashTags'), 'Required key "GetHashTagsResponse[hashTags]" is missing from JSON.'); - assert(json[r'hashTags'] != null, 'Required key "GetHashTagsResponse[hashTags]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetHashTagsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetHashTagsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..29aee9d 100644 --- a/client/lib/model/get_moderator_response.dart +++ b/client/lib/model/get_moderator_response.dart @@ -53,10 +53,10 @@ class GetModeratorResponse { // 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 "GetModeratorResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetModeratorResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'moderator'), 'Required key "GetModeratorResponse[moderator]" is missing from JSON.'); - assert(json[r'moderator'] != null, 'Required key "GetModeratorResponse[moderator]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetModeratorResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetModeratorResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..23b1e4d 100644 --- a/client/lib/model/get_moderators_response.dart +++ b/client/lib/model/get_moderators_response.dart @@ -53,10 +53,10 @@ class GetModeratorsResponse { // 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 "GetModeratorsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetModeratorsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'moderators'), 'Required key "GetModeratorsResponse[moderators]" is missing from JSON.'); - assert(json[r'moderators'] != null, 'Required key "GetModeratorsResponse[moderators]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetModeratorsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetModeratorsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_my_notifications_response.dart b/client/lib/model/get_my_notifications_response.dart index 9f5ac31..8993d91 100644 --- a/client/lib/model/get_my_notifications_response.dart +++ b/client/lib/model/get_my_notifications_response.dart @@ -72,14 +72,10 @@ class GetMyNotificationsResponse { // 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 "GetMyNotificationsResponse[isSubscribed]" is missing from JSON.'); - assert(json[r'isSubscribed'] != null, 'Required key "GetMyNotificationsResponse[isSubscribed]" has a null value in JSON.'); - assert(json.containsKey(r'hasMore'), 'Required key "GetMyNotificationsResponse[hasMore]" is missing from JSON.'); - assert(json[r'hasMore'] != null, 'Required key "GetMyNotificationsResponse[hasMore]" has a null value in JSON.'); - assert(json.containsKey(r'notifications'), 'Required key "GetMyNotificationsResponse[notifications]" is missing from JSON.'); - assert(json[r'notifications'] != null, 'Required key "GetMyNotificationsResponse[notifications]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "GetMyNotificationsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetMyNotificationsResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetMyNotificationsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetMyNotificationsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..3ac4f5b 100644 --- a/client/lib/model/get_notification_count_response.dart +++ b/client/lib/model/get_notification_count_response.dart @@ -53,10 +53,10 @@ class GetNotificationCountResponse { // 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 "GetNotificationCountResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetNotificationCountResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "GetNotificationCountResponse[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "GetNotificationCountResponse[count]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetNotificationCountResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetNotificationCountResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..cf62fc4 100644 --- a/client/lib/model/get_notifications_response.dart +++ b/client/lib/model/get_notifications_response.dart @@ -53,10 +53,10 @@ class GetNotificationsResponse { // 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 "GetNotificationsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetNotificationsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'notifications'), 'Required key "GetNotificationsResponse[notifications]" is missing from JSON.'); - assert(json[r'notifications'] != null, 'Required key "GetNotificationsResponse[notifications]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetNotificationsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetNotificationsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..592fdb3 100644 --- a/client/lib/model/get_page_by_urlid_api_response.dart +++ b/client/lib/model/get_page_by_urlid_api_response.dart @@ -95,8 +95,10 @@ class GetPageByURLIdAPIResponse { // 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 "GetPageByURLIdAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetPageByURLIdAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetPageByURLIdAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetPageByURLIdAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_pages_api_response.dart b/client/lib/model/get_pages_api_response.dart index 38c5fef..598519f 100644 --- a/client/lib/model/get_pages_api_response.dart +++ b/client/lib/model/get_pages_api_response.dart @@ -85,8 +85,10 @@ class GetPagesAPIResponse { // 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 "GetPagesAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetPagesAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetPagesAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetPagesAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..6505cd9 100644 --- a/client/lib/model/get_pending_webhook_event_count_response.dart +++ b/client/lib/model/get_pending_webhook_event_count_response.dart @@ -53,10 +53,10 @@ class GetPendingWebhookEventCountResponse { // 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 "GetPendingWebhookEventCountResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetPendingWebhookEventCountResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "GetPendingWebhookEventCountResponse[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "GetPendingWebhookEventCountResponse[count]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetPendingWebhookEventCountResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetPendingWebhookEventCountResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..b76ba6a 100644 --- a/client/lib/model/get_pending_webhook_events_response.dart +++ b/client/lib/model/get_pending_webhook_events_response.dart @@ -53,10 +53,10 @@ class GetPendingWebhookEventsResponse { // 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 "GetPendingWebhookEventsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetPendingWebhookEventsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'pendingWebhookEvents'), 'Required key "GetPendingWebhookEventsResponse[pendingWebhookEvents]" is missing from JSON.'); - assert(json[r'pendingWebhookEvents'] != null, 'Required key "GetPendingWebhookEventsResponse[pendingWebhookEvents]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetPendingWebhookEventsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetPendingWebhookEventsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_public_feed_posts_response.dart b/client/lib/model/get_public_feed_posts_response.dart index e0f4d64..9c6d30d 100644 --- a/client/lib/model/get_public_feed_posts_response.dart +++ b/client/lib/model/get_public_feed_posts_response.dart @@ -63,10 +63,10 @@ class GetPublicFeedPostsResponse { // 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 "GetPublicFeedPostsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetPublicFeedPostsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPosts'), 'Required key "GetPublicFeedPostsResponse[feedPosts]" is missing from JSON.'); - assert(json[r'feedPosts'] != null, 'Required key "GetPublicFeedPostsResponse[feedPosts]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetPublicFeedPostsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetPublicFeedPostsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..97a2c48 --- /dev/null +++ b/client/lib/model/get_public_pages_response.dart @@ -0,0 +1,129 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetPublicPagesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetPublicPagesResponse[$key]" 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..005758b 100644 --- a/client/lib/model/get_question_config_response.dart +++ b/client/lib/model/get_question_config_response.dart @@ -53,10 +53,10 @@ class GetQuestionConfigResponse { // 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 "GetQuestionConfigResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetQuestionConfigResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionConfig'), 'Required key "GetQuestionConfigResponse[questionConfig]" is missing from JSON.'); - assert(json[r'questionConfig'] != null, 'Required key "GetQuestionConfigResponse[questionConfig]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetQuestionConfigResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetQuestionConfigResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..baffe32 100644 --- a/client/lib/model/get_question_configs_response.dart +++ b/client/lib/model/get_question_configs_response.dart @@ -53,10 +53,10 @@ class GetQuestionConfigsResponse { // 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 "GetQuestionConfigsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetQuestionConfigsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionConfigs'), 'Required key "GetQuestionConfigsResponse[questionConfigs]" is missing from JSON.'); - assert(json[r'questionConfigs'] != null, 'Required key "GetQuestionConfigsResponse[questionConfigs]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetQuestionConfigsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetQuestionConfigsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..33d3494 100644 --- a/client/lib/model/get_question_result_response.dart +++ b/client/lib/model/get_question_result_response.dart @@ -53,10 +53,10 @@ class GetQuestionResultResponse { // 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 "GetQuestionResultResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetQuestionResultResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionResult'), 'Required key "GetQuestionResultResponse[questionResult]" is missing from JSON.'); - assert(json[r'questionResult'] != null, 'Required key "GetQuestionResultResponse[questionResult]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetQuestionResultResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetQuestionResultResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..fe45eb3 100644 --- a/client/lib/model/get_question_results_response.dart +++ b/client/lib/model/get_question_results_response.dart @@ -53,10 +53,10 @@ class GetQuestionResultsResponse { // 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 "GetQuestionResultsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetQuestionResultsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'questionResults'), 'Required key "GetQuestionResultsResponse[questionResults]" is missing from JSON.'); - assert(json[r'questionResults'] != null, 'Required key "GetQuestionResultsResponse[questionResults]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetQuestionResultsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetQuestionResultsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..dd0e8af 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 @@ -95,8 +95,10 @@ class GetSSOUserByEmailAPIResponse { // 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 "GetSSOUserByEmailAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetSSOUserByEmailAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetSSOUserByEmailAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetSSOUserByEmailAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..1a7b371 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 @@ -95,8 +95,10 @@ class GetSSOUserByIdAPIResponse { // 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 "GetSSOUserByIdAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetSSOUserByIdAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetSSOUserByIdAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetSSOUserByIdAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_sso_users200_response.dart b/client/lib/model/get_sso_users_response.dart similarity index 58% rename from client/lib/model/get_sso_users200_response.dart rename to client/lib/model/get_sso_users_response.dart index 0071411..c4073dd 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,7 +22,7 @@ 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; @@ -33,7 +33,7 @@ class GetSSOUsers200Response { (status.hashCode); @override - String toString() => 'GetSSOUsers200Response[users=$users, status=$status]'; + String toString() => 'GetSSOUsersResponse[users=$users, status=$status]'; Map toJson() { final json = {}; @@ -42,10 +42,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 +53,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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetSSOUsersResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetSSOUsersResponse[$key]" 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 +68,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 +81,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 +95,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..54cc90a 100644 --- a/client/lib/model/get_subscriptions_api_response.dart +++ b/client/lib/model/get_subscriptions_api_response.dart @@ -85,8 +85,10 @@ class GetSubscriptionsAPIResponse { // 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 "GetSubscriptionsAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetSubscriptionsAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetSubscriptionsAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetSubscriptionsAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..4b22afe 100644 --- a/client/lib/model/get_tenant_daily_usages_response.dart +++ b/client/lib/model/get_tenant_daily_usages_response.dart @@ -53,10 +53,10 @@ class GetTenantDailyUsagesResponse { // 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 "GetTenantDailyUsagesResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantDailyUsagesResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantDailyUsages'), 'Required key "GetTenantDailyUsagesResponse[tenantDailyUsages]" is missing from JSON.'); - assert(json[r'tenantDailyUsages'] != null, 'Required key "GetTenantDailyUsagesResponse[tenantDailyUsages]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTenantDailyUsagesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTenantDailyUsagesResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..8a1742c --- /dev/null +++ b/client/lib/model/get_tenant_manual_badges_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTenantManualBadgesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTenantManualBadgesResponse[$key]" 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..4d3632d 100644 --- a/client/lib/model/get_tenant_package_response.dart +++ b/client/lib/model/get_tenant_package_response.dart @@ -53,10 +53,10 @@ class GetTenantPackageResponse { // 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 "GetTenantPackageResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantPackageResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantPackage'), 'Required key "GetTenantPackageResponse[tenantPackage]" is missing from JSON.'); - assert(json[r'tenantPackage'] != null, 'Required key "GetTenantPackageResponse[tenantPackage]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTenantPackageResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTenantPackageResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..069917e 100644 --- a/client/lib/model/get_tenant_packages_response.dart +++ b/client/lib/model/get_tenant_packages_response.dart @@ -53,10 +53,10 @@ class GetTenantPackagesResponse { // 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 "GetTenantPackagesResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantPackagesResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantPackages'), 'Required key "GetTenantPackagesResponse[tenantPackages]" is missing from JSON.'); - assert(json[r'tenantPackages'] != null, 'Required key "GetTenantPackagesResponse[tenantPackages]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTenantPackagesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTenantPackagesResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_tenant_response.dart b/client/lib/model/get_tenant_response.dart index a8438cd..bbcb36b 100644 --- a/client/lib/model/get_tenant_response.dart +++ b/client/lib/model/get_tenant_response.dart @@ -53,10 +53,10 @@ class GetTenantResponse { // 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 "GetTenantResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenant'), 'Required key "GetTenantResponse[tenant]" is missing from JSON.'); - assert(json[r'tenant'] != null, 'Required key "GetTenantResponse[tenant]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTenantResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTenantResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..84a9dfd 100644 --- a/client/lib/model/get_tenant_user_response.dart +++ b/client/lib/model/get_tenant_user_response.dart @@ -53,10 +53,10 @@ class GetTenantUserResponse { // 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 "GetTenantUserResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantUserResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantUser'), 'Required key "GetTenantUserResponse[tenantUser]" is missing from JSON.'); - assert(json[r'tenantUser'] != null, 'Required key "GetTenantUserResponse[tenantUser]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTenantUserResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTenantUserResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..c91a8c4 100644 --- a/client/lib/model/get_tenant_users_response.dart +++ b/client/lib/model/get_tenant_users_response.dart @@ -53,10 +53,10 @@ class GetTenantUsersResponse { // 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 "GetTenantUsersResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantUsersResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenantUsers'), 'Required key "GetTenantUsersResponse[tenantUsers]" is missing from JSON.'); - assert(json[r'tenantUsers'] != null, 'Required key "GetTenantUsersResponse[tenantUsers]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTenantUsersResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTenantUsersResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..7ca8aa9 100644 --- a/client/lib/model/get_tenants_response.dart +++ b/client/lib/model/get_tenants_response.dart @@ -53,10 +53,10 @@ class GetTenantsResponse { // 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 "GetTenantsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTenantsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tenants'), 'Required key "GetTenantsResponse[tenants]" is missing from JSON.'); - assert(json[r'tenants'] != null, 'Required key "GetTenantsResponse[tenants]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTenantsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTenantsResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..4ee9446 100644 --- a/client/lib/model/get_ticket_response.dart +++ b/client/lib/model/get_ticket_response.dart @@ -59,12 +59,10 @@ class GetTicketResponse { // 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 "GetTicketResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTicketResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'ticket'), 'Required key "GetTicketResponse[ticket]" is missing from JSON.'); - assert(json[r'ticket'] != null, 'Required key "GetTicketResponse[ticket]" has a null value in JSON.'); - assert(json.containsKey(r'availableStates'), 'Required key "GetTicketResponse[availableStates]" is missing from JSON.'); - assert(json[r'availableStates'] != null, 'Required key "GetTicketResponse[availableStates]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTicketResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTicketResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..6976d45 100644 --- a/client/lib/model/get_tickets_response.dart +++ b/client/lib/model/get_tickets_response.dart @@ -53,10 +53,10 @@ class GetTicketsResponse { // 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 "GetTicketsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetTicketsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'tickets'), 'Required key "GetTicketsResponse[tickets]" is missing from JSON.'); - assert(json[r'tickets'] != null, 'Required key "GetTicketsResponse[tickets]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTicketsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTicketsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_translations_response.dart b/client/lib/model/get_translations_response.dart new file mode 100644 index 0000000..cb82cf4 --- /dev/null +++ b/client/lib/model/get_translations_response.dart @@ -0,0 +1,118 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetTranslationsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetTranslationsResponse[$key]" 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..7010eb1 --- /dev/null +++ b/client/lib/model/get_user_internal_profile_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetUserInternalProfileResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetUserInternalProfileResponse[$key]" 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..87f63ef --- /dev/null +++ b/client/lib/model/get_user_internal_profile_response_profile.dart @@ -0,0 +1,348 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetUserInternalProfileResponseProfile[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetUserInternalProfileResponseProfile[$key]" has a null value in JSON.'); + }); + 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..9d95010 --- /dev/null +++ b/client/lib/model/get_user_manual_badges_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetUserManualBadgesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetUserManualBadgesResponse[$key]" 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..2de59f3 100644 --- a/client/lib/model/get_user_notification_count_response.dart +++ b/client/lib/model/get_user_notification_count_response.dart @@ -53,10 +53,10 @@ class GetUserNotificationCountResponse { // 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 "GetUserNotificationCountResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserNotificationCountResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "GetUserNotificationCountResponse[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "GetUserNotificationCountResponse[count]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetUserNotificationCountResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetUserNotificationCountResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..6dc069c 100644 --- a/client/lib/model/get_user_presence_statuses_response.dart +++ b/client/lib/model/get_user_presence_statuses_response.dart @@ -54,10 +54,10 @@ class GetUserPresenceStatusesResponse { // 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 "GetUserPresenceStatusesResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserPresenceStatusesResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'userIdsOnline'), 'Required key "GetUserPresenceStatusesResponse[userIdsOnline]" is missing from JSON.'); - assert(json[r'userIdsOnline'] != null, 'Required key "GetUserPresenceStatusesResponse[userIdsOnline]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetUserPresenceStatusesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetUserPresenceStatusesResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..3fe0396 100644 --- a/client/lib/model/get_user_response.dart +++ b/client/lib/model/get_user_response.dart @@ -53,10 +53,10 @@ class GetUserResponse { // 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 "GetUserResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetUserResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "GetUserResponse[user]" is missing from JSON.'); - assert(json[r'user'] != null, 'Required key "GetUserResponse[user]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetUserResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetUserResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..dfd0349 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetUserTrustFactorResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetUserTrustFactorResponse[$key]" 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..159cc5c --- /dev/null +++ b/client/lib/model/get_v1_page_likes.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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetV1PageLikes[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetV1PageLikes[$key]" 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..3a45ecc --- /dev/null +++ b/client/lib/model/get_v2_page_react_users_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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetV2PageReactUsersResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetV2PageReactUsersResponse[$key]" 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..83f8e09 --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetV2PageReacts[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetV2PageReacts[$key]" 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..94318f8 100644 --- a/client/lib/model/get_votes_for_user_response.dart +++ b/client/lib/model/get_votes_for_user_response.dart @@ -65,14 +65,10 @@ class GetVotesForUserResponse { // 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 "GetVotesForUserResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetVotesForUserResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'appliedAuthorizedVotes'), 'Required key "GetVotesForUserResponse[appliedAuthorizedVotes]" is missing from JSON.'); - assert(json[r'appliedAuthorizedVotes'] != null, 'Required key "GetVotesForUserResponse[appliedAuthorizedVotes]" has a null value in JSON.'); - assert(json.containsKey(r'appliedAnonymousVotes'), 'Required key "GetVotesForUserResponse[appliedAnonymousVotes]" is missing from JSON.'); - assert(json[r'appliedAnonymousVotes'] != null, 'Required key "GetVotesForUserResponse[appliedAnonymousVotes]" has a null value in JSON.'); - assert(json.containsKey(r'pendingVotes'), 'Required key "GetVotesForUserResponse[pendingVotes]" is missing from JSON.'); - assert(json[r'pendingVotes'] != null, 'Required key "GetVotesForUserResponse[pendingVotes]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetVotesForUserResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetVotesForUserResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/get_votes_response.dart b/client/lib/model/get_votes_response.dart index 19e793e..20b0867 100644 --- a/client/lib/model/get_votes_response.dart +++ b/client/lib/model/get_votes_response.dart @@ -65,14 +65,10 @@ class GetVotesResponse { // 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 "GetVotesResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "GetVotesResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'appliedAuthorizedVotes'), 'Required key "GetVotesResponse[appliedAuthorizedVotes]" is missing from JSON.'); - assert(json[r'appliedAuthorizedVotes'] != null, 'Required key "GetVotesResponse[appliedAuthorizedVotes]" has a null value in JSON.'); - assert(json.containsKey(r'appliedAnonymousVotes'), 'Required key "GetVotesResponse[appliedAnonymousVotes]" is missing from JSON.'); - assert(json[r'appliedAnonymousVotes'] != null, 'Required key "GetVotesResponse[appliedAnonymousVotes]" has a null value in JSON.'); - assert(json.containsKey(r'pendingVotes'), 'Required key "GetVotesResponse[pendingVotes]" is missing from JSON.'); - assert(json[r'pendingVotes'] != null, 'Required key "GetVotesResponse[pendingVotes]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GetVotesResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GetVotesResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..b6f1147 --- /dev/null +++ b/client/lib/model/gif_get_large_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GifGetLargeResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GifGetLargeResponse[$key]" 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/delete_feed_post_public200_response_any_of.dart b/client/lib/model/gif_search_internal_error.dart similarity index 55% rename from client/lib/model/delete_feed_post_public200_response_any_of.dart rename to client/lib/model/gif_search_internal_error.dart index 6c8907c..3fd103f 100644 --- a/client/lib/model/delete_feed_post_public200_response_any_of.dart +++ b/client/lib/model/gif_search_internal_error.dart @@ -10,36 +10,42 @@ part of openapi.api; -class DeleteFeedPostPublic200ResponseAnyOf { - /// Returns a new [DeleteFeedPostPublic200ResponseAnyOf] instance. - DeleteFeedPostPublic200ResponseAnyOf({ +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 DeleteFeedPostPublic200ResponseAnyOf && + 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() => 'DeleteFeedPostPublic200ResponseAnyOf[status=$status]'; + 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 [DeleteFeedPostPublic200ResponseAnyOf] instance and imports its values from + /// 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 DeleteFeedPostPublic200ResponseAnyOf? fromJson(dynamic value) { + static GifSearchInternalError? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -47,23 +53,26 @@ 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GifSearchInternalError[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GifSearchInternalError[$key]" has a null value in JSON.'); + }); return true; }()); - return DeleteFeedPostPublic200ResponseAnyOf( + 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 = []; + 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 = GifSearchInternalError.fromJson(row); if (value != null) { result.add(value); } @@ -72,12 +81,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 = GifSearchInternalError.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -86,14 +95,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 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] = DeleteFeedPostPublic200ResponseAnyOf.listFromJson(entry.value, growable: growable,); + map[entry.key] = GifSearchInternalError.listFromJson(entry.value, growable: growable,); } } return map; @@ -101,6 +110,7 @@ class DeleteFeedPostPublic200ResponseAnyOf { /// 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..94030cc --- /dev/null +++ b/client/lib/model/gif_search_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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GifSearchResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GifSearchResponse[$key]" 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..7066696 --- /dev/null +++ b/client/lib/model/gif_search_response_images_inner_inner.dart @@ -0,0 +1,101 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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 + + @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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "GifSearchResponseImagesInnerInner[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "GifSearchResponseImagesInnerInner[$key]" has a null value in JSON.'); + }); + 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..c74c500 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,6 +45,9 @@ 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 && @@ -54,7 +58,8 @@ class HeaderAccountNotification { other.severity == severity && other.linkUrl == linkUrl && other.linkText == linkText && - other.createdAt == createdAt; + other.createdAt == createdAt && + other.type == type; @override int get hashCode => @@ -67,10 +72,11 @@ class HeaderAccountNotification { (severity.hashCode) + (linkUrl == null ? 0 : linkUrl!.hashCode) + (linkText == null ? 0 : linkText!.hashCode) + - (createdAt.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 +105,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; } @@ -113,20 +124,10 @@ class HeaderAccountNotification { // 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 "HeaderAccountNotification[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "HeaderAccountNotification[_id]" has a null value in JSON.'); - assert(json.containsKey(r'title'), 'Required key "HeaderAccountNotification[title]" is missing from JSON.'); - assert(json[r'title'] != null, 'Required key "HeaderAccountNotification[title]" has a null value in JSON.'); - assert(json.containsKey(r'message'), 'Required key "HeaderAccountNotification[message]" is missing from JSON.'); - assert(json[r'message'] != null, 'Required key "HeaderAccountNotification[message]" has a null value in JSON.'); - assert(json.containsKey(r'messagesByLocale'), 'Required key "HeaderAccountNotification[messagesByLocale]" is missing from JSON.'); - assert(json.containsKey(r'dates'), 'Required key "HeaderAccountNotification[dates]" is missing from JSON.'); - assert(json.containsKey(r'severity'), 'Required key "HeaderAccountNotification[severity]" is missing from JSON.'); - assert(json[r'severity'] != null, 'Required key "HeaderAccountNotification[severity]" has a null value in JSON.'); - assert(json.containsKey(r'linkUrl'), 'Required key "HeaderAccountNotification[linkUrl]" is missing from JSON.'); - assert(json.containsKey(r'linkText'), 'Required key "HeaderAccountNotification[linkText]" is missing from JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "HeaderAccountNotification[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "HeaderAccountNotification[createdAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "HeaderAccountNotification[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "HeaderAccountNotification[$key]" has a null value in JSON.'); + }); return true; }()); @@ -140,6 +141,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..2729e41 100644 --- a/client/lib/model/header_state.dart +++ b/client/lib/model/header_state.dart @@ -77,18 +77,10 @@ class HeaderState { // 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 "HeaderState[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "HeaderState[status]" has a null value in JSON.'); - assert(json.containsKey(r'NotificationType'), 'Required key "HeaderState[NotificationType]" is missing from JSON.'); - assert(json[r'NotificationType'] != null, 'Required key "HeaderState[NotificationType]" has a null value in JSON.'); - assert(json.containsKey(r'userId'), 'Required key "HeaderState[userId]" is missing from JSON.'); - assert(json[r'userId'] != null, 'Required key "HeaderState[userId]" has a null value in JSON.'); - assert(json.containsKey(r'userIdWS'), 'Required key "HeaderState[userIdWS]" is missing from JSON.'); - assert(json[r'userIdWS'] != null, 'Required key "HeaderState[userIdWS]" has a null value in JSON.'); - assert(json.containsKey(r'notificationCounts'), 'Required key "HeaderState[notificationCounts]" is missing from JSON.'); - assert(json[r'notificationCounts'] != null, 'Required key "HeaderState[notificationCounts]" has a null value in JSON.'); - assert(json.containsKey(r'accountNotifications'), 'Required key "HeaderState[accountNotifications]" is missing from JSON.'); - assert(json[r'accountNotifications'] != null, 'Required key "HeaderState[accountNotifications]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "HeaderState[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "HeaderState[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/ignored_response.dart b/client/lib/model/ignored_response.dart index a60ed10..0ef087b 100644 --- a/client/lib/model/ignored_response.dart +++ b/client/lib/model/ignored_response.dart @@ -53,10 +53,10 @@ class IgnoredResponse { // 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 "IgnoredResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "IgnoredResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'note'), 'Required key "IgnoredResponse[note]" is missing from JSON.'); - assert(json[r'note'] != null, 'Required key "IgnoredResponse[note]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "IgnoredResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "IgnoredResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/live_event.dart b/client/lib/model/live_event.dart index 7ad1124..b20b3d2 100644 --- a/client/lib/model/live_event.dart +++ b/client/lib/model/live_event.dart @@ -263,8 +263,10 @@ class LiveEvent { // 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'type'), 'Required key "LiveEvent[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "LiveEvent[type]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "LiveEvent[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "LiveEvent[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/live_event_extra_info.dart b/client/lib/model/live_event_extra_info.dart index 2ba5a5c..4b10e8f 100644 --- a/client/lib/model/live_event_extra_info.dart +++ b/client/lib/model/live_event_extra_info.dart @@ -48,6 +48,10 @@ class LiveEventExtraInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "LiveEventExtraInfo[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "LiveEventExtraInfo[$key]" has a null value in JSON.'); + }); return true; }()); 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..5d21fc4 100644 --- a/client/lib/model/media_asset.dart +++ b/client/lib/model/media_asset.dart @@ -59,12 +59,10 @@ class MediaAsset { // 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'w'), 'Required key "MediaAsset[w]" is missing from JSON.'); - assert(json[r'w'] != null, 'Required key "MediaAsset[w]" has a null value in JSON.'); - assert(json.containsKey(r'h'), 'Required key "MediaAsset[h]" is missing from JSON.'); - assert(json[r'h'] != null, 'Required key "MediaAsset[h]" has a null value in JSON.'); - assert(json.containsKey(r'src'), 'Required key "MediaAsset[src]" is missing from JSON.'); - assert(json[r'src'] != null, 'Required key "MediaAsset[src]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "MediaAsset[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "MediaAsset[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/meta_item.dart b/client/lib/model/meta_item.dart index 295b38c..cb8eefa 100644 --- a/client/lib/model/meta_item.dart +++ b/client/lib/model/meta_item.dart @@ -53,10 +53,10 @@ class MetaItem { // 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'name'), 'Required key "MetaItem[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "MetaItem[name]" has a null value in JSON.'); - assert(json.containsKey(r'values'), 'Required key "MetaItem[values]" is missing from JSON.'); - assert(json[r'values'] != null, 'Required key "MetaItem[values]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "MetaItem[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "MetaItem[$key]" has a null value in JSON.'); + }); return true; }()); 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..cc8bf72 --- /dev/null +++ b/client/lib/model/moderation_api_child_comments_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationAPIChildCommentsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationAPIChildCommentsResponse[$key]" 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..9067f74 --- /dev/null +++ b/client/lib/model/moderation_api_comment.dart @@ -0,0 +1,621 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationAPIComment[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationAPIComment[$key]" 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..6d7a683 --- /dev/null +++ b/client/lib/model/moderation_api_comment_log.dart @@ -0,0 +1,142 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationAPICommentLog[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationAPICommentLog[$key]" 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..87d45ba --- /dev/null +++ b/client/lib/model/moderation_api_comment_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationAPICommentResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationAPICommentResponse[$key]" 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..eac764c --- /dev/null +++ b/client/lib/model/moderation_api_count_comments_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationAPICountCommentsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationAPICountCommentsResponse[$key]" 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..380fc30 --- /dev/null +++ b/client/lib/model/moderation_api_get_comment_ids_response.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 + +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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationAPIGetCommentIdsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationAPIGetCommentIdsResponse[$key]" 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..808475e --- /dev/null +++ b/client/lib/model/moderation_api_get_comments_response.dart @@ -0,0 +1,142 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationAPIGetCommentsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationAPIGetCommentsResponse[$key]" 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..0530f15 --- /dev/null +++ b/client/lib/model/moderation_api_get_logs_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationAPIGetLogsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationAPIGetLogsResponse[$key]" 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..4330c57 --- /dev/null +++ b/client/lib/model/moderation_comment_search_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationCommentSearchResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationCommentSearchResponse[$key]" 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..e6a4512 --- /dev/null +++ b/client/lib/model/moderation_export_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationExportResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationExportResponse[$key]" 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..ff02fe6 --- /dev/null +++ b/client/lib/model/moderation_export_status_response.dart @@ -0,0 +1,142 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationExportStatusResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationExportStatusResponse[$key]" 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..f1e58cf --- /dev/null +++ b/client/lib/model/moderation_filter.dart @@ -0,0 +1,291 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationFilter[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationFilter[$key]" has a null value in JSON.'); + }); + 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..445b0a4 --- /dev/null +++ b/client/lib/model/moderation_page_search_projected.dart @@ -0,0 +1,133 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationPageSearchProjected[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationPageSearchProjected[$key]" 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..a592097 --- /dev/null +++ b/client/lib/model/moderation_page_search_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationPageSearchResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationPageSearchResponse[$key]" 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..c16570f --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationSiteSearchProjected[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationSiteSearchProjected[$key]" 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..530b595 --- /dev/null +++ b/client/lib/model/moderation_site_search_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationSiteSearchResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationSiteSearchResponse[$key]" 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..c836d6d --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationSuggestResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationSuggestResponse[$key]" 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..48aa8d0 --- /dev/null +++ b/client/lib/model/moderation_user_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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationUserSearchProjected[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationUserSearchProjected[$key]" 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..fb5614f --- /dev/null +++ b/client/lib/model/moderation_user_search_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ModerationUserSearchResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ModerationUserSearchResponse[$key]" 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..d5aa9c2 100644 --- a/client/lib/model/moderator.dart +++ b/client/lib/model/moderator.dart @@ -185,37 +185,10 @@ class Moderator { // 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 "Moderator[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "Moderator[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "Moderator[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "Moderator[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'name'), 'Required key "Moderator[name]" is missing from JSON.'); - assert(json.containsKey(r'userId'), 'Required key "Moderator[userId]" is missing from JSON.'); - assert(json.containsKey(r'acceptedInvite'), 'Required key "Moderator[acceptedInvite]" is missing from JSON.'); - assert(json[r'acceptedInvite'] != null, 'Required key "Moderator[acceptedInvite]" has a null value in JSON.'); - assert(json.containsKey(r'email'), 'Required key "Moderator[email]" is missing from JSON.'); - assert(json.containsKey(r'markReviewedCount'), 'Required key "Moderator[markReviewedCount]" is missing from JSON.'); - assert(json[r'markReviewedCount'] != null, 'Required key "Moderator[markReviewedCount]" has a null value in JSON.'); - assert(json.containsKey(r'deletedCount'), 'Required key "Moderator[deletedCount]" is missing from JSON.'); - assert(json[r'deletedCount'] != null, 'Required key "Moderator[deletedCount]" has a null value in JSON.'); - assert(json.containsKey(r'markedSpamCount'), 'Required key "Moderator[markedSpamCount]" is missing from JSON.'); - assert(json[r'markedSpamCount'] != null, 'Required key "Moderator[markedSpamCount]" has a null value in JSON.'); - assert(json.containsKey(r'markedNotSpamCount'), 'Required key "Moderator[markedNotSpamCount]" is missing from JSON.'); - assert(json[r'markedNotSpamCount'] != null, 'Required key "Moderator[markedNotSpamCount]" has a null value in JSON.'); - assert(json.containsKey(r'approvedCount'), 'Required key "Moderator[approvedCount]" is missing from JSON.'); - assert(json[r'approvedCount'] != null, 'Required key "Moderator[approvedCount]" has a null value in JSON.'); - assert(json.containsKey(r'unApprovedCount'), 'Required key "Moderator[unApprovedCount]" is missing from JSON.'); - assert(json[r'unApprovedCount'] != null, 'Required key "Moderator[unApprovedCount]" has a null value in JSON.'); - assert(json.containsKey(r'editedCount'), 'Required key "Moderator[editedCount]" is missing from JSON.'); - assert(json[r'editedCount'] != null, 'Required key "Moderator[editedCount]" has a null value in JSON.'); - assert(json.containsKey(r'bannedCount'), 'Required key "Moderator[bannedCount]" is missing from JSON.'); - assert(json[r'bannedCount'] != null, 'Required key "Moderator[bannedCount]" has a null value in JSON.'); - assert(json.containsKey(r'unFlaggedCount'), 'Required key "Moderator[unFlaggedCount]" is missing from JSON.'); - assert(json[r'unFlaggedCount'] != null, 'Required key "Moderator[unFlaggedCount]" has a null value in JSON.'); - assert(json.containsKey(r'verificationId'), 'Required key "Moderator[verificationId]" is missing from JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "Moderator[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "Moderator[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'moderationGroupIds'), 'Required key "Moderator[moderationGroupIds]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "Moderator[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "Moderator[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/notification_and_count.dart b/client/lib/model/notification_and_count.dart index bf07e41..a4793e7 100644 --- a/client/lib/model/notification_and_count.dart +++ b/client/lib/model/notification_and_count.dart @@ -53,10 +53,10 @@ class NotificationAndCount { // 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'type'), 'Required key "NotificationAndCount[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "NotificationAndCount[type]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "NotificationAndCount[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "NotificationAndCount[count]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "NotificationAndCount[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "NotificationAndCount[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/page_user_entry.dart b/client/lib/model/page_user_entry.dart new file mode 100644 index 0000000..bacf9f9 --- /dev/null +++ b/client/lib/model/page_user_entry.dart @@ -0,0 +1,151 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PageUserEntry[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PageUserEntry[$key]" 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..afff241 --- /dev/null +++ b/client/lib/model/page_users_info_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PageUsersInfoResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PageUsersInfoResponse[$key]" 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..02ea9ab --- /dev/null +++ b/client/lib/model/page_users_offline_response.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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PageUsersOfflineResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PageUsersOfflineResponse[$key]" 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..dab8f1f --- /dev/null +++ b/client/lib/model/page_users_online_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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PageUsersOnlineResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PageUsersOnlineResponse[$key]" 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..5f8b74c 100644 --- a/client/lib/model/patch_domain_config_params.dart +++ b/client/lib/model/patch_domain_config_params.dart @@ -144,6 +144,10 @@ class PatchDomainConfigParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PatchDomainConfigParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PatchDomainConfigParams[$key]" has a null value in JSON.'); + }); return true; }()); 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..c3fddb1 --- /dev/null +++ b/client/lib/model/patch_domain_config_response.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 PatchDomainConfigResponse { + /// Returns a new [PatchDomainConfigResponse] instance. + PatchDomainConfigResponse({ + 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 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.hashCode) + + (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; + } + json[r'reason'] = this.reason; + json[r'code'] = this.code; + 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PatchDomainConfigResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PatchDomainConfigResponse[$key]" has a null value in 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 = { + 'configuration', + 'status', + 'reason', + 'code', + }; +} + 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..07381a3 100644 --- a/client/lib/model/patch_page_api_response.dart +++ b/client/lib/model/patch_page_api_response.dart @@ -111,8 +111,10 @@ class PatchPageAPIResponse { // 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 "PatchPageAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PatchPageAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PatchPageAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PatchPageAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/patch_sso_user_api_response.dart b/client/lib/model/patch_sso_user_api_response.dart index 10923d0..9f575f0 100644 --- a/client/lib/model/patch_sso_user_api_response.dart +++ b/client/lib/model/patch_sso_user_api_response.dart @@ -95,8 +95,10 @@ class PatchSSOUserAPIResponse { // 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 "PatchSSOUserAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PatchSSOUserAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PatchSSOUserAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PatchSSOUserAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/pending_comment_to_sync_outbound.dart b/client/lib/model/pending_comment_to_sync_outbound.dart index 74a2c82..139eed2 100644 --- a/client/lib/model/pending_comment_to_sync_outbound.dart +++ b/client/lib/model/pending_comment_to_sync_outbound.dart @@ -143,27 +143,10 @@ class PendingCommentToSyncOutbound { // 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 "PendingCommentToSyncOutbound[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "PendingCommentToSyncOutbound[_id]" has a null value in JSON.'); - assert(json.containsKey(r'commentId'), 'Required key "PendingCommentToSyncOutbound[commentId]" is missing from JSON.'); - assert(json[r'commentId'] != null, 'Required key "PendingCommentToSyncOutbound[commentId]" has a null value in JSON.'); - assert(json.containsKey(r'externalId'), 'Required key "PendingCommentToSyncOutbound[externalId]" is missing from JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "PendingCommentToSyncOutbound[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "PendingCommentToSyncOutbound[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "PendingCommentToSyncOutbound[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "PendingCommentToSyncOutbound[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'attemptCount'), 'Required key "PendingCommentToSyncOutbound[attemptCount]" is missing from JSON.'); - assert(json[r'attemptCount'] != null, 'Required key "PendingCommentToSyncOutbound[attemptCount]" has a null value in JSON.'); - assert(json.containsKey(r'nextAttemptAt'), 'Required key "PendingCommentToSyncOutbound[nextAttemptAt]" is missing from JSON.'); - assert(json[r'nextAttemptAt'] != null, 'Required key "PendingCommentToSyncOutbound[nextAttemptAt]" has a null value in JSON.'); - assert(json.containsKey(r'eventType'), 'Required key "PendingCommentToSyncOutbound[eventType]" is missing from JSON.'); - assert(json[r'eventType'] != null, 'Required key "PendingCommentToSyncOutbound[eventType]" has a null value in JSON.'); - assert(json.containsKey(r'type'), 'Required key "PendingCommentToSyncOutbound[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "PendingCommentToSyncOutbound[type]" has a null value in JSON.'); - assert(json.containsKey(r'domain'), 'Required key "PendingCommentToSyncOutbound[domain]" is missing from JSON.'); - assert(json[r'domain'] != null, 'Required key "PendingCommentToSyncOutbound[domain]" has a null value in JSON.'); - assert(json.containsKey(r'lastError'), 'Required key "PendingCommentToSyncOutbound[lastError]" is missing from JSON.'); - assert(json[r'lastError'] != null, 'Required key "PendingCommentToSyncOutbound[lastError]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PendingCommentToSyncOutbound[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PendingCommentToSyncOutbound[$key]" has a null value in JSON.'); + }); return true; }()); 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..72d926b --- /dev/null +++ b/client/lib/model/post_remove_comment_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PostRemoveCommentResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PostRemoveCommentResponse[$key]" 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..436b4c7 --- /dev/null +++ b/client/lib/model/pre_ban_summary.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 + +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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PreBanSummary[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PreBanSummary[$key]" 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..6991783 100644 --- a/client/lib/model/pub_sub_comment.dart +++ b/client/lib/model/pub_sub_comment.dart @@ -499,27 +499,10 @@ class PubSubComment { // 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 "PubSubComment[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "PubSubComment[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "PubSubComment[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "PubSubComment[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "PubSubComment[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "PubSubComment[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "PubSubComment[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "PubSubComment[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'commentHTML'), 'Required key "PubSubComment[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "PubSubComment[commentHTML]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "PubSubComment[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "PubSubComment[comment]" has a null value in JSON.'); - assert(json.containsKey(r'verified'), 'Required key "PubSubComment[verified]" is missing from JSON.'); - assert(json[r'verified'] != null, 'Required key "PubSubComment[verified]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "PubSubComment[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "PubSubComment[url]" has a null value in JSON.'); - assert(json.containsKey(r'approved'), 'Required key "PubSubComment[approved]" is missing from JSON.'); - assert(json[r'approved'] != null, 'Required key "PubSubComment[approved]" has a null value in JSON.'); - assert(json.containsKey(r'locale'), 'Required key "PubSubComment[locale]" is missing from JSON.'); - assert(json.containsKey(r'date'), 'Required key "PubSubComment[date]" is missing from JSON.'); - assert(json[r'date'] != null, 'Required key "PubSubComment[date]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PubSubComment[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PubSubComment[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/pub_sub_comment_base.dart b/client/lib/model/pub_sub_comment_base.dart index b9bb926..a0f9237 100644 --- a/client/lib/model/pub_sub_comment_base.dart +++ b/client/lib/model/pub_sub_comment_base.dart @@ -461,25 +461,10 @@ class PubSubCommentBase { // 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 "PubSubCommentBase[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "PubSubCommentBase[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "PubSubCommentBase[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "PubSubCommentBase[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "PubSubCommentBase[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "PubSubCommentBase[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "PubSubCommentBase[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "PubSubCommentBase[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'commentHTML'), 'Required key "PubSubCommentBase[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "PubSubCommentBase[commentHTML]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "PubSubCommentBase[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "PubSubCommentBase[comment]" has a null value in JSON.'); - assert(json.containsKey(r'verified'), 'Required key "PubSubCommentBase[verified]" is missing from JSON.'); - assert(json[r'verified'] != null, 'Required key "PubSubCommentBase[verified]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "PubSubCommentBase[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "PubSubCommentBase[url]" has a null value in JSON.'); - assert(json.containsKey(r'approved'), 'Required key "PubSubCommentBase[approved]" is missing from JSON.'); - assert(json[r'approved'] != null, 'Required key "PubSubCommentBase[approved]" has a null value in JSON.'); - assert(json.containsKey(r'locale'), 'Required key "PubSubCommentBase[locale]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PubSubCommentBase[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PubSubCommentBase[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/pub_sub_vote.dart b/client/lib/model/pub_sub_vote.dart index b3d438f..5323f38 100644 --- a/client/lib/model/pub_sub_vote.dart +++ b/client/lib/model/pub_sub_vote.dart @@ -103,21 +103,10 @@ class PubSubVote { // 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 "PubSubVote[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "PubSubVote[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "PubSubVote[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "PubSubVote[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "PubSubVote[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "PubSubVote[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'urlIdRaw'), 'Required key "PubSubVote[urlIdRaw]" is missing from JSON.'); - assert(json[r'urlIdRaw'] != null, 'Required key "PubSubVote[urlIdRaw]" has a null value in JSON.'); - assert(json.containsKey(r'commentId'), 'Required key "PubSubVote[commentId]" is missing from JSON.'); - assert(json[r'commentId'] != null, 'Required key "PubSubVote[commentId]" has a null value in JSON.'); - assert(json.containsKey(r'direction'), 'Required key "PubSubVote[direction]" is missing from JSON.'); - assert(json[r'direction'] != null, 'Required key "PubSubVote[direction]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "PubSubVote[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "PubSubVote[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'verificationId'), 'Required key "PubSubVote[verificationId]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PubSubVote[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PubSubVote[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/public_api_delete_comment_response.dart b/client/lib/model/public_api_delete_comment_response.dart index d64b182..fd5c9d0 100644 --- a/client/lib/model/public_api_delete_comment_response.dart +++ b/client/lib/model/public_api_delete_comment_response.dart @@ -69,10 +69,10 @@ class PublicAPIDeleteCommentResponse { // 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 "PublicAPIDeleteCommentResponse[hardRemoved]" is missing from JSON.'); - assert(json[r'hardRemoved'] != null, 'Required key "PublicAPIDeleteCommentResponse[hardRemoved]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "PublicAPIDeleteCommentResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PublicAPIDeleteCommentResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicAPIDeleteCommentResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicAPIDeleteCommentResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..74105e7 100644 --- a/client/lib/model/public_api_get_comment_text_response.dart +++ b/client/lib/model/public_api_get_comment_text_response.dart @@ -59,12 +59,10 @@ class PublicAPIGetCommentTextResponse { // 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 "PublicAPIGetCommentTextResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PublicAPIGetCommentTextResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'commentText'), 'Required key "PublicAPIGetCommentTextResponse[commentText]" is missing from JSON.'); - assert(json[r'commentText'] != null, 'Required key "PublicAPIGetCommentTextResponse[commentText]" has a null value in JSON.'); - assert(json.containsKey(r'sanitizedCommentText'), 'Required key "PublicAPIGetCommentTextResponse[sanitizedCommentText]" is missing from JSON.'); - assert(json[r'sanitizedCommentText'] != null, 'Required key "PublicAPIGetCommentTextResponse[sanitizedCommentText]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicAPIGetCommentTextResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicAPIGetCommentTextResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..3ddb7ce 100644 --- a/client/lib/model/public_api_set_comment_text_response.dart +++ b/client/lib/model/public_api_set_comment_text_response.dart @@ -53,10 +53,10 @@ class PublicAPISetCommentTextResponse { // 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 "PublicAPISetCommentTextResponse[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "PublicAPISetCommentTextResponse[comment]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "PublicAPISetCommentTextResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PublicAPISetCommentTextResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicAPISetCommentTextResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicAPISetCommentTextResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/public_block_from_comment_params.dart b/client/lib/model/public_block_from_comment_params.dart index c66cd1a..4c7ca08 100644 --- a/client/lib/model/public_block_from_comment_params.dart +++ b/client/lib/model/public_block_from_comment_params.dart @@ -52,7 +52,10 @@ class PublicBlockFromCommentParams { // 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 "PublicBlockFromCommentParams[commentIds]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicBlockFromCommentParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicBlockFromCommentParams[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/public_comment.dart b/client/lib/model/public_comment.dart index d54fafb..906b7c5 100644 --- a/client/lib/model/public_comment.dart +++ b/client/lib/model/public_comment.dart @@ -518,15 +518,10 @@ class PublicComment { // 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 "PublicComment[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "PublicComment[_id]" has a null value in JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "PublicComment[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "PublicComment[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'commentHTML'), 'Required key "PublicComment[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "PublicComment[commentHTML]" has a null value in JSON.'); - assert(json.containsKey(r'date'), 'Required key "PublicComment[date]" is missing from JSON.'); - assert(json.containsKey(r'verified'), 'Required key "PublicComment[verified]" is missing from JSON.'); - assert(json[r'verified'] != null, 'Required key "PublicComment[verified]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicComment[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicComment[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/public_comment_base.dart b/client/lib/model/public_comment_base.dart index df48225..24d90e9 100644 --- a/client/lib/model/public_comment_base.dart +++ b/client/lib/model/public_comment_base.dart @@ -365,15 +365,10 @@ class PublicCommentBase { // 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 "PublicCommentBase[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "PublicCommentBase[_id]" has a null value in JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "PublicCommentBase[commenterName]" is missing from JSON.'); - assert(json[r'commenterName'] != null, 'Required key "PublicCommentBase[commenterName]" has a null value in JSON.'); - assert(json.containsKey(r'commentHTML'), 'Required key "PublicCommentBase[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "PublicCommentBase[commentHTML]" has a null value in JSON.'); - assert(json.containsKey(r'date'), 'Required key "PublicCommentBase[date]" is missing from JSON.'); - assert(json.containsKey(r'verified'), 'Required key "PublicCommentBase[verified]" is missing from JSON.'); - assert(json[r'verified'] != null, 'Required key "PublicCommentBase[verified]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicCommentBase[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicCommentBase[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/public_feed_posts_response.dart b/client/lib/model/public_feed_posts_response.dart index fec16dd..c391505 100644 --- a/client/lib/model/public_feed_posts_response.dart +++ b/client/lib/model/public_feed_posts_response.dart @@ -117,10 +117,10 @@ class PublicFeedPostsResponse { // 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 "PublicFeedPostsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PublicFeedPostsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'feedPosts'), 'Required key "PublicFeedPostsResponse[feedPosts]" is missing from JSON.'); - assert(json[r'feedPosts'] != null, 'Required key "PublicFeedPostsResponse[feedPosts]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicFeedPostsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicFeedPostsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/public_page.dart b/client/lib/model/public_page.dart new file mode 100644 index 0000000..2450686 --- /dev/null +++ b/client/lib/model/public_page.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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicPage[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicPage[$key]" 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..8e5f9ce 100644 --- a/client/lib/model/public_vote.dart +++ b/client/lib/model/public_vote.dart @@ -77,18 +77,10 @@ class PublicVote { // 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 "PublicVote[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "PublicVote[id]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "PublicVote[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "PublicVote[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'commentId'), 'Required key "PublicVote[commentId]" is missing from JSON.'); - assert(json[r'commentId'] != null, 'Required key "PublicVote[commentId]" has a null value in JSON.'); - assert(json.containsKey(r'userId'), 'Required key "PublicVote[userId]" is missing from JSON.'); - assert(json[r'userId'] != null, 'Required key "PublicVote[userId]" has a null value in JSON.'); - assert(json.containsKey(r'direction'), 'Required key "PublicVote[direction]" is missing from JSON.'); - assert(json[r'direction'] != null, 'Required key "PublicVote[direction]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "PublicVote[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "PublicVote[createdAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicVote[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicVote[$key]" has a null value in JSON.'); + }); return true; }()); 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..13b9fd6 --- /dev/null +++ b/client/lib/model/put_domain_config_response.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 PutDomainConfigResponse { + /// Returns a new [PutDomainConfigResponse] instance. + PutDomainConfigResponse({ + 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 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.hashCode) + + (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; + } + json[r'reason'] = this.reason; + json[r'code'] = this.code; + 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PutDomainConfigResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PutDomainConfigResponse[$key]" has a null value in 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 = { + 'configuration', + 'status', + 'reason', + 'code', + }; +} + diff --git a/client/lib/model/put_sso_user_api_response.dart b/client/lib/model/put_sso_user_api_response.dart index 15f4112..d59bbb0 100644 --- a/client/lib/model/put_sso_user_api_response.dart +++ b/client/lib/model/put_sso_user_api_response.dart @@ -89,8 +89,10 @@ class PutSSOUserAPIResponse { // 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 "PutSSOUserAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PutSSOUserAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PutSSOUserAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PutSSOUserAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/query_predicate.dart b/client/lib/model/query_predicate.dart index 194da81..36ed299 100644 --- a/client/lib/model/query_predicate.dart +++ b/client/lib/model/query_predicate.dart @@ -59,12 +59,10 @@ class QueryPredicate { // 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'key'), 'Required key "QueryPredicate[key]" is missing from JSON.'); - assert(json[r'key'] != null, 'Required key "QueryPredicate[key]" has a null value in JSON.'); - assert(json.containsKey(r'value'), 'Required key "QueryPredicate[value]" is missing from JSON.'); - assert(json[r'value'] != null, 'Required key "QueryPredicate[value]" has a null value in JSON.'); - assert(json.containsKey(r'operator'), 'Required key "QueryPredicate[operator]" is missing from JSON.'); - assert(json[r'operator'] != null, 'Required key "QueryPredicate[operator]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "QueryPredicate[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "QueryPredicate[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/query_predicate_value.dart b/client/lib/model/query_predicate_value.dart index 01f1ac4..ba08936 100644 --- a/client/lib/model/query_predicate_value.dart +++ b/client/lib/model/query_predicate_value.dart @@ -41,6 +41,10 @@ class QueryPredicateValue { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "QueryPredicateValue[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "QueryPredicateValue[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/question_config.dart b/client/lib/model/question_config.dart index 1b715ad..345ce4b 100644 --- a/client/lib/model/question_config.dart +++ b/client/lib/model/question_config.dart @@ -177,46 +177,10 @@ class QuestionConfig { // 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 "QuestionConfig[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "QuestionConfig[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "QuestionConfig[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "QuestionConfig[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'name'), 'Required key "QuestionConfig[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "QuestionConfig[name]" has a null value in JSON.'); - assert(json.containsKey(r'question'), 'Required key "QuestionConfig[question]" is missing from JSON.'); - assert(json[r'question'] != null, 'Required key "QuestionConfig[question]" has a null value in JSON.'); - assert(json.containsKey(r'helpText'), 'Required key "QuestionConfig[helpText]" is missing from JSON.'); - assert(json[r'helpText'] != null, 'Required key "QuestionConfig[helpText]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "QuestionConfig[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "QuestionConfig[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'createdBy'), 'Required key "QuestionConfig[createdBy]" is missing from JSON.'); - assert(json[r'createdBy'] != null, 'Required key "QuestionConfig[createdBy]" has a null value in JSON.'); - assert(json.containsKey(r'usedCount'), 'Required key "QuestionConfig[usedCount]" is missing from JSON.'); - assert(json[r'usedCount'] != null, 'Required key "QuestionConfig[usedCount]" has a null value in JSON.'); - assert(json.containsKey(r'lastUsed'), 'Required key "QuestionConfig[lastUsed]" is missing from JSON.'); - assert(json[r'lastUsed'] != null, 'Required key "QuestionConfig[lastUsed]" has a null value in JSON.'); - assert(json.containsKey(r'type'), 'Required key "QuestionConfig[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "QuestionConfig[type]" has a null value in JSON.'); - assert(json.containsKey(r'numStars'), 'Required key "QuestionConfig[numStars]" is missing from JSON.'); - assert(json[r'numStars'] != null, 'Required key "QuestionConfig[numStars]" has a null value in JSON.'); - assert(json.containsKey(r'min'), 'Required key "QuestionConfig[min]" is missing from JSON.'); - assert(json[r'min'] != null, 'Required key "QuestionConfig[min]" has a null value in JSON.'); - assert(json.containsKey(r'max'), 'Required key "QuestionConfig[max]" is missing from JSON.'); - assert(json[r'max'] != null, 'Required key "QuestionConfig[max]" has a null value in JSON.'); - assert(json.containsKey(r'defaultValue'), 'Required key "QuestionConfig[defaultValue]" is missing from JSON.'); - assert(json[r'defaultValue'] != null, 'Required key "QuestionConfig[defaultValue]" has a null value in JSON.'); - assert(json.containsKey(r'labelNegative'), 'Required key "QuestionConfig[labelNegative]" is missing from JSON.'); - assert(json[r'labelNegative'] != null, 'Required key "QuestionConfig[labelNegative]" has a null value in JSON.'); - assert(json.containsKey(r'labelPositive'), 'Required key "QuestionConfig[labelPositive]" is missing from JSON.'); - assert(json[r'labelPositive'] != null, 'Required key "QuestionConfig[labelPositive]" has a null value in JSON.'); - assert(json.containsKey(r'customOptions'), 'Required key "QuestionConfig[customOptions]" is missing from JSON.'); - assert(json[r'customOptions'] != null, 'Required key "QuestionConfig[customOptions]" has a null value in JSON.'); - assert(json.containsKey(r'subQuestionIds'), 'Required key "QuestionConfig[subQuestionIds]" is missing from JSON.'); - assert(json[r'subQuestionIds'] != null, 'Required key "QuestionConfig[subQuestionIds]" has a null value in JSON.'); - assert(json.containsKey(r'alwaysShowSubQuestions'), 'Required key "QuestionConfig[alwaysShowSubQuestions]" is missing from JSON.'); - assert(json[r'alwaysShowSubQuestions'] != null, 'Required key "QuestionConfig[alwaysShowSubQuestions]" has a null value in JSON.'); - assert(json.containsKey(r'reportingOrder'), 'Required key "QuestionConfig[reportingOrder]" is missing from JSON.'); - assert(json[r'reportingOrder'] != null, 'Required key "QuestionConfig[reportingOrder]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "QuestionConfig[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "QuestionConfig[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/question_config_custom_options_inner.dart b/client/lib/model/question_config_custom_options_inner.dart index 8a751c2..2c31375 100644 --- a/client/lib/model/question_config_custom_options_inner.dart +++ b/client/lib/model/question_config_custom_options_inner.dart @@ -53,10 +53,10 @@ class QuestionConfigCustomOptionsInner { // 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'imageSrc'), 'Required key "QuestionConfigCustomOptionsInner[imageSrc]" is missing from JSON.'); - assert(json[r'imageSrc'] != null, 'Required key "QuestionConfigCustomOptionsInner[imageSrc]" has a null value in JSON.'); - assert(json.containsKey(r'name'), 'Required key "QuestionConfigCustomOptionsInner[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "QuestionConfigCustomOptionsInner[name]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "QuestionConfigCustomOptionsInner[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "QuestionConfigCustomOptionsInner[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/question_datum.dart b/client/lib/model/question_datum.dart index 6659433..a9b19d3 100644 --- a/client/lib/model/question_datum.dart +++ b/client/lib/model/question_datum.dart @@ -54,10 +54,10 @@ class QuestionDatum { // 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'v'), 'Required key "QuestionDatum[v]" is missing from JSON.'); - assert(json[r'v'] != null, 'Required key "QuestionDatum[v]" has a null value in JSON.'); - assert(json.containsKey(r'total'), 'Required key "QuestionDatum[total]" is missing from JSON.'); - assert(json[r'total'] != null, 'Required key "QuestionDatum[total]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "QuestionDatum[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "QuestionDatum[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/question_result.dart b/client/lib/model/question_result.dart index 23bc860..817e82e 100644 --- a/client/lib/model/question_result.dart +++ b/client/lib/model/question_result.dart @@ -115,24 +115,10 @@ class QuestionResult { // 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 "QuestionResult[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "QuestionResult[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "QuestionResult[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "QuestionResult[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "QuestionResult[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "QuestionResult[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'anonUserId'), 'Required key "QuestionResult[anonUserId]" is missing from JSON.'); - assert(json[r'anonUserId'] != null, 'Required key "QuestionResult[anonUserId]" has a null value in JSON.'); - assert(json.containsKey(r'userId'), 'Required key "QuestionResult[userId]" is missing from JSON.'); - assert(json[r'userId'] != null, 'Required key "QuestionResult[userId]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "QuestionResult[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "QuestionResult[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'value'), 'Required key "QuestionResult[value]" is missing from JSON.'); - assert(json[r'value'] != null, 'Required key "QuestionResult[value]" has a null value in JSON.'); - assert(json.containsKey(r'questionId'), 'Required key "QuestionResult[questionId]" is missing from JSON.'); - assert(json[r'questionId'] != null, 'Required key "QuestionResult[questionId]" has a null value in JSON.'); - assert(json.containsKey(r'ipHash'), 'Required key "QuestionResult[ipHash]" is missing from JSON.'); - assert(json[r'ipHash'] != null, 'Required key "QuestionResult[ipHash]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "QuestionResult[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "QuestionResult[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/question_result_aggregation_overall.dart b/client/lib/model/question_result_aggregation_overall.dart index 86d928f..b74aadf 100644 --- a/client/lib/model/question_result_aggregation_overall.dart +++ b/client/lib/model/question_result_aggregation_overall.dart @@ -89,10 +89,10 @@ class QuestionResultAggregationOverall { // 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'total'), 'Required key "QuestionResultAggregationOverall[total]" is missing from JSON.'); - assert(json[r'total'] != null, 'Required key "QuestionResultAggregationOverall[total]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "QuestionResultAggregationOverall[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "QuestionResultAggregationOverall[createdAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "QuestionResultAggregationOverall[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "QuestionResultAggregationOverall[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/react_body_params.dart b/client/lib/model/react_body_params.dart index ae8a626..af2e31c 100644 --- a/client/lib/model/react_body_params.dart +++ b/client/lib/model/react_body_params.dart @@ -57,6 +57,10 @@ class ReactBodyParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ReactBodyParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ReactBodyParams[$key]" has a null value in JSON.'); + }); return true; }()); 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..89a1753 100644 --- a/client/lib/model/react_feed_post_response.dart +++ b/client/lib/model/react_feed_post_response.dart @@ -59,12 +59,10 @@ class ReactFeedPostResponse { // 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 "ReactFeedPostResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "ReactFeedPostResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'reactType'), 'Required key "ReactFeedPostResponse[reactType]" is missing from JSON.'); - assert(json[r'reactType'] != null, 'Required key "ReactFeedPostResponse[reactType]" has a null value in JSON.'); - assert(json.containsKey(r'isUndo'), 'Required key "ReactFeedPostResponse[isUndo]" is missing from JSON.'); - assert(json[r'isUndo'] != null, 'Required key "ReactFeedPostResponse[isUndo]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ReactFeedPostResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ReactFeedPostResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..463d66f 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 @@ -61,8 +61,10 @@ class RecordStringBeforeStringOrNullAfterStringOrNullValue { // 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'after'), 'Required key "RecordStringBeforeStringOrNullAfterStringOrNullValue[after]" is missing from JSON.'); - assert(json.containsKey(r'before'), 'Required key "RecordStringBeforeStringOrNullAfterStringOrNullValue[before]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "RecordStringBeforeStringOrNullAfterStringOrNullValue[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "RecordStringBeforeStringOrNullAfterStringOrNullValue[$key]" has a null value in JSON.'); + }); return true; }()); 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..d186664 --- /dev/null +++ b/client/lib/model/remove_comment_action_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "RemoveCommentActionResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "RemoveCommentActionResponse[$key]" 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..be49bfd --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "RemoveUserBadgeResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "RemoveUserBadgeResponse[$key]" 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..b5d77b6 100644 --- a/client/lib/model/render_email_template_body.dart +++ b/client/lib/model/render_email_template_body.dart @@ -67,10 +67,10 @@ class RenderEmailTemplateBody { // 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'emailTemplateId'), 'Required key "RenderEmailTemplateBody[emailTemplateId]" is missing from JSON.'); - assert(json[r'emailTemplateId'] != null, 'Required key "RenderEmailTemplateBody[emailTemplateId]" has a null value in JSON.'); - assert(json.containsKey(r'ejs'), 'Required key "RenderEmailTemplateBody[ejs]" is missing from JSON.'); - assert(json[r'ejs'] != null, 'Required key "RenderEmailTemplateBody[ejs]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "RenderEmailTemplateBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "RenderEmailTemplateBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/render_email_template_response.dart b/client/lib/model/render_email_template_response.dart index 895c808..5907674 100644 --- a/client/lib/model/render_email_template_response.dart +++ b/client/lib/model/render_email_template_response.dart @@ -53,10 +53,10 @@ class RenderEmailTemplateResponse { // 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 "RenderEmailTemplateResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "RenderEmailTemplateResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'html'), 'Required key "RenderEmailTemplateResponse[html]" is missing from JSON.'); - assert(json[r'html'] != null, 'Required key "RenderEmailTemplateResponse[html]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "RenderEmailTemplateResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "RenderEmailTemplateResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/renderable_user_notification.dart b/client/lib/model/renderable_user_notification.dart index 00079f5..d30e3e4 100644 --- a/client/lib/model/renderable_user_notification.dart +++ b/client/lib/model/renderable_user_notification.dart @@ -217,26 +217,10 @@ class RenderableUserNotification { // 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'optedOut'), 'Required key "RenderableUserNotification[optedOut]" is missing from JSON.'); - assert(json[r'optedOut'] != null, 'Required key "RenderableUserNotification[optedOut]" has a null value in JSON.'); - assert(json.containsKey(r'type'), 'Required key "RenderableUserNotification[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "RenderableUserNotification[type]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "RenderableUserNotification[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "RenderableUserNotification[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'sent'), 'Required key "RenderableUserNotification[sent]" is missing from JSON.'); - assert(json[r'sent'] != null, 'Required key "RenderableUserNotification[sent]" has a null value in JSON.'); - assert(json.containsKey(r'viewed'), 'Required key "RenderableUserNotification[viewed]" is missing from JSON.'); - assert(json[r'viewed'] != null, 'Required key "RenderableUserNotification[viewed]" has a null value in JSON.'); - assert(json.containsKey(r'relatedObjectId'), 'Required key "RenderableUserNotification[relatedObjectId]" is missing from JSON.'); - assert(json[r'relatedObjectId'] != null, 'Required key "RenderableUserNotification[relatedObjectId]" has a null value in JSON.'); - assert(json.containsKey(r'relatedObjectType'), 'Required key "RenderableUserNotification[relatedObjectType]" is missing from JSON.'); - assert(json[r'relatedObjectType'] != null, 'Required key "RenderableUserNotification[relatedObjectType]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "RenderableUserNotification[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "RenderableUserNotification[url]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "RenderableUserNotification[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "RenderableUserNotification[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'_id'), 'Required key "RenderableUserNotification[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "RenderableUserNotification[_id]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "RenderableUserNotification[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "RenderableUserNotification[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/replace_tenant_package_body.dart b/client/lib/model/replace_tenant_package_body.dart index 074af0d..acf330d 100644 --- a/client/lib/model/replace_tenant_package_body.dart +++ b/client/lib/model/replace_tenant_package_body.dart @@ -387,36 +387,10 @@ class ReplaceTenantPackageBody { // 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'name'), 'Required key "ReplaceTenantPackageBody[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "ReplaceTenantPackageBody[name]" has a null value in JSON.'); - assert(json.containsKey(r'monthlyCostUSD'), 'Required key "ReplaceTenantPackageBody[monthlyCostUSD]" is missing from JSON.'); - assert(json[r'monthlyCostUSD'] != null, 'Required key "ReplaceTenantPackageBody[monthlyCostUSD]" has a null value in JSON.'); - assert(json.containsKey(r'yearlyCostUSD'), 'Required key "ReplaceTenantPackageBody[yearlyCostUSD]" is missing from JSON.'); - assert(json[r'yearlyCostUSD'] != null, 'Required key "ReplaceTenantPackageBody[yearlyCostUSD]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyPageLoads'), 'Required key "ReplaceTenantPackageBody[maxMonthlyPageLoads]" is missing from JSON.'); - assert(json[r'maxMonthlyPageLoads'] != null, 'Required key "ReplaceTenantPackageBody[maxMonthlyPageLoads]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyAPICredits'), 'Required key "ReplaceTenantPackageBody[maxMonthlyAPICredits]" is missing from JSON.'); - assert(json[r'maxMonthlyAPICredits'] != null, 'Required key "ReplaceTenantPackageBody[maxMonthlyAPICredits]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyComments'), 'Required key "ReplaceTenantPackageBody[maxMonthlyComments]" is missing from JSON.'); - assert(json[r'maxMonthlyComments'] != null, 'Required key "ReplaceTenantPackageBody[maxMonthlyComments]" has a null value in JSON.'); - assert(json.containsKey(r'maxConcurrentUsers'), 'Required key "ReplaceTenantPackageBody[maxConcurrentUsers]" is missing from JSON.'); - assert(json[r'maxConcurrentUsers'] != null, 'Required key "ReplaceTenantPackageBody[maxConcurrentUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxTenantUsers'), 'Required key "ReplaceTenantPackageBody[maxTenantUsers]" is missing from JSON.'); - assert(json[r'maxTenantUsers'] != null, 'Required key "ReplaceTenantPackageBody[maxTenantUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxSSOUsers'), 'Required key "ReplaceTenantPackageBody[maxSSOUsers]" is missing from JSON.'); - assert(json[r'maxSSOUsers'] != null, 'Required key "ReplaceTenantPackageBody[maxSSOUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxModerators'), 'Required key "ReplaceTenantPackageBody[maxModerators]" is missing from JSON.'); - assert(json[r'maxModerators'] != null, 'Required key "ReplaceTenantPackageBody[maxModerators]" has a null value in JSON.'); - assert(json.containsKey(r'maxDomains'), 'Required key "ReplaceTenantPackageBody[maxDomains]" is missing from JSON.'); - assert(json[r'maxDomains'] != null, 'Required key "ReplaceTenantPackageBody[maxDomains]" has a null value in JSON.'); - assert(json.containsKey(r'hasDebranding'), 'Required key "ReplaceTenantPackageBody[hasDebranding]" is missing from JSON.'); - assert(json[r'hasDebranding'] != null, 'Required key "ReplaceTenantPackageBody[hasDebranding]" has a null value in JSON.'); - assert(json.containsKey(r'forWhoText'), 'Required key "ReplaceTenantPackageBody[forWhoText]" is missing from JSON.'); - assert(json[r'forWhoText'] != null, 'Required key "ReplaceTenantPackageBody[forWhoText]" has a null value in JSON.'); - assert(json.containsKey(r'featureTaglines'), 'Required key "ReplaceTenantPackageBody[featureTaglines]" is missing from JSON.'); - assert(json[r'featureTaglines'] != null, 'Required key "ReplaceTenantPackageBody[featureTaglines]" has a null value in JSON.'); - assert(json.containsKey(r'hasFlexPricing'), 'Required key "ReplaceTenantPackageBody[hasFlexPricing]" is missing from JSON.'); - assert(json[r'hasFlexPricing'] != null, 'Required key "ReplaceTenantPackageBody[hasFlexPricing]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ReplaceTenantPackageBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ReplaceTenantPackageBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/replace_tenant_user_body.dart b/client/lib/model/replace_tenant_user_body.dart index 0ffa8cb..0a714b3 100644 --- a/client/lib/model/replace_tenant_user_body.dart +++ b/client/lib/model/replace_tenant_user_body.dart @@ -459,10 +459,10 @@ class ReplaceTenantUserBody { // 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'username'), 'Required key "ReplaceTenantUserBody[username]" is missing from JSON.'); - assert(json[r'username'] != null, 'Required key "ReplaceTenantUserBody[username]" has a null value in JSON.'); - assert(json.containsKey(r'email'), 'Required key "ReplaceTenantUserBody[email]" is missing from JSON.'); - assert(json[r'email'] != null, 'Required key "ReplaceTenantUserBody[email]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ReplaceTenantUserBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ReplaceTenantUserBody[$key]" has a null value in JSON.'); + }); return true; }()); 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..b9b6dbb 100644 --- a/client/lib/model/reset_user_notifications_response.dart +++ b/client/lib/model/reset_user_notifications_response.dart @@ -57,8 +57,10 @@ class ResetUserNotificationsResponse { // 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 "ResetUserNotificationsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "ResetUserNotificationsResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "ResetUserNotificationsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "ResetUserNotificationsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/save_comment_response_optimized.dart b/client/lib/model/save_comment_response_optimized.dart index df2b85f..4e3b1f1 100644 --- a/client/lib/model/save_comment_response_optimized.dart +++ b/client/lib/model/save_comment_response_optimized.dart @@ -70,11 +70,10 @@ class SaveCommentResponseOptimized { // 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 "SaveCommentResponseOptimized[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "SaveCommentResponseOptimized[status]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "SaveCommentResponseOptimized[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "SaveCommentResponseOptimized[comment]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "SaveCommentResponseOptimized[user]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SaveCommentResponseOptimized[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SaveCommentResponseOptimized[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/save_comment200_response.dart b/client/lib/model/save_comments_bulk_response.dart similarity index 74% rename from client/lib/model/save_comment200_response.dart rename to client/lib/model/save_comments_bulk_response.dart index bdc3510..202e161 100644 --- a/client/lib/model/save_comment200_response.dart +++ b/client/lib/model/save_comments_bulk_response.dart @@ -10,9 +10,9 @@ part of openapi.api; -class SaveComment200Response { - /// Returns a new [SaveComment200Response] instance. - SaveComment200Response({ +class SaveCommentsBulkResponse { + /// Returns a new [SaveCommentsBulkResponse] instance. + SaveCommentsBulkResponse({ required this.status, required this.comment, required this.user, @@ -80,7 +80,7 @@ class SaveComment200Response { CustomConfigParameters? customConfig; @override - bool operator ==(Object other) => identical(this, other) || other is SaveComment200Response && + bool operator ==(Object other) => identical(this, other) || other is SaveCommentsBulkResponse && other.status == status && other.comment == comment && other.user == user && @@ -109,7 +109,7 @@ class SaveComment200Response { (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]'; + 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 = {}; @@ -151,10 +151,10 @@ class SaveComment200Response { return json; } - /// Returns a new [SaveComment200Response] 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 SaveComment200Response? fromJson(dynamic value) { + static SaveCommentsBulkResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -162,19 +162,14 @@ class SaveComment200Response { // 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.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SaveCommentsBulkResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SaveCommentsBulkResponse[$key]" has a null value in JSON.'); + }); return true; }()); - return SaveComment200Response( + return SaveCommentsBulkResponse( status: APIStatus.fromJson(json[r'status'])!, comment: APIComment.fromJson(json[r'comment'])!, user: UserSessionInfo.fromJson(json[r'user']), @@ -191,11 +186,11 @@ class SaveComment200Response { 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 = SaveComment200Response.fromJson(row); + final value = SaveCommentsBulkResponse.fromJson(row); if (value != null) { result.add(value); } @@ -204,12 +199,12 @@ class SaveComment200Response { 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 = SaveComment200Response.fromJson(entry.value); + final value = SaveCommentsBulkResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -218,14 +213,14 @@ class SaveComment200Response { 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 = >{}; + // 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] = SaveComment200Response.listFromJson(entry.value, growable: growable,); + map[entry.key] = SaveCommentsBulkResponse.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/save_comments_response_with_presence.dart b/client/lib/model/save_comments_response_with_presence.dart index 7efd043..6437146 100644 --- a/client/lib/model/save_comments_response_with_presence.dart +++ b/client/lib/model/save_comments_response_with_presence.dart @@ -86,11 +86,10 @@ class SaveCommentsResponseWithPresence { // 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 "SaveCommentsResponseWithPresence[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "SaveCommentsResponseWithPresence[status]" has a null value in JSON.'); - assert(json.containsKey(r'comment'), 'Required key "SaveCommentsResponseWithPresence[comment]" is missing from JSON.'); - assert(json[r'comment'] != null, 'Required key "SaveCommentsResponseWithPresence[comment]" has a null value in JSON.'); - assert(json.containsKey(r'user'), 'Required key "SaveCommentsResponseWithPresence[user]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SaveCommentsResponseWithPresence[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SaveCommentsResponseWithPresence[$key]" has a null value in JSON.'); + }); return true; }()); 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..8283caa 100644 --- a/client/lib/model/search_users_response.dart +++ b/client/lib/model/search_users_response.dart @@ -53,10 +53,10 @@ class SearchUsersResponse { // 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 "SearchUsersResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "SearchUsersResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'users'), 'Required key "SearchUsersResponse[users]" is missing from JSON.'); - assert(json[r'users'] != null, 'Required key "SearchUsersResponse[users]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SearchUsersResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SearchUsersResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/search_users_result.dart b/client/lib/model/search_users_result.dart new file mode 100644 index 0000000..b63f267 --- /dev/null +++ b/client/lib/model/search_users_result.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 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SearchUsersResult[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SearchUsersResult[$key]" 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', + 'sections', + 'users', + }; +} + diff --git a/client/lib/model/search_users_sectioned_response.dart b/client/lib/model/search_users_sectioned_response.dart index 633597d..fbe6d6f 100644 --- a/client/lib/model/search_users_sectioned_response.dart +++ b/client/lib/model/search_users_sectioned_response.dart @@ -53,10 +53,10 @@ class SearchUsersSectionedResponse { // 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 "SearchUsersSectionedResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "SearchUsersSectionedResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'sections'), 'Required key "SearchUsersSectionedResponse[sections]" is missing from JSON.'); - assert(json[r'sections'] != null, 'Required key "SearchUsersSectionedResponse[sections]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SearchUsersSectionedResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SearchUsersSectionedResponse[$key]" has a null value in JSON.'); + }); return true; }()); 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..1d52f4f --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SetCommentApprovedResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SetCommentApprovedResponse[$key]" 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..ef4e99d --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SetCommentTextParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SetCommentTextParams[$key]" 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..73ec422 --- /dev/null +++ b/client/lib/model/set_comment_text_response.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SetCommentTextResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SetCommentTextResponse[$key]" 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..9e19306 100644 --- a/client/lib/model/set_comment_text_result.dart +++ b/client/lib/model/set_comment_text_result.dart @@ -53,10 +53,10 @@ class SetCommentTextResult { // 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'approved'), 'Required key "SetCommentTextResult[approved]" is missing from JSON.'); - assert(json[r'approved'] != null, 'Required key "SetCommentTextResult[approved]" has a null value in JSON.'); - assert(json.containsKey(r'commentHTML'), 'Required key "SetCommentTextResult[commentHTML]" is missing from JSON.'); - assert(json[r'commentHTML'] != null, 'Required key "SetCommentTextResult[commentHTML]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SetCommentTextResult[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SetCommentTextResult[$key]" has a null value in JSON.'); + }); return true; }()); 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..e9703eb --- /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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SetUserTrustFactorResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SetUserTrustFactorResponse[$key]" 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..f5052c3 100644 --- a/client/lib/model/spam_rule.dart +++ b/client/lib/model/spam_rule.dart @@ -63,8 +63,10 @@ class SpamRule { // 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'actions'), 'Required key "SpamRule[actions]" is missing from JSON.'); - assert(json[r'actions'] != null, 'Required key "SpamRule[actions]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SpamRule[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SpamRule[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/tenant_badge.dart b/client/lib/model/tenant_badge.dart new file mode 100644 index 0000000..41878d0 --- /dev/null +++ b/client/lib/model/tenant_badge.dart @@ -0,0 +1,297 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "TenantBadge[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "TenantBadge[$key]" 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..cbdeba8 100644 --- a/client/lib/model/tenant_hash_tag.dart +++ b/client/lib/model/tenant_hash_tag.dart @@ -81,14 +81,10 @@ class TenantHashTag { // 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 "TenantHashTag[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "TenantHashTag[_id]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "TenantHashTag[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "TenantHashTag[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "TenantHashTag[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "TenantHashTag[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'tag'), 'Required key "TenantHashTag[tag]" is missing from JSON.'); - assert(json[r'tag'] != null, 'Required key "TenantHashTag[tag]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "TenantHashTag[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "TenantHashTag[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/tenant_package.dart b/client/lib/model/tenant_package.dart index 537c759..5e11f27 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; @@ -399,6 +408,7 @@ class TenantPackage { other.name == name && other.tenantId == tenantId && other.createdAt == createdAt && + other.templateId == templateId && other.monthlyCostUSD == monthlyCostUSD && other.yearlyCostUSD == yearlyCostUSD && other.monthlyStripePlanId == monthlyStripePlanId && @@ -463,6 +473,7 @@ class TenantPackage { (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) + @@ -521,7 +532,7 @@ class TenantPackage { (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 +540,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 { @@ -747,56 +763,10 @@ class TenantPackage { // 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 "TenantPackage[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "TenantPackage[_id]" has a null value in JSON.'); - assert(json.containsKey(r'name'), 'Required key "TenantPackage[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "TenantPackage[name]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "TenantPackage[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "TenantPackage[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "TenantPackage[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "TenantPackage[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'monthlyCostUSD'), 'Required key "TenantPackage[monthlyCostUSD]" is missing from JSON.'); - assert(json.containsKey(r'yearlyCostUSD'), 'Required key "TenantPackage[yearlyCostUSD]" is missing from JSON.'); - assert(json.containsKey(r'monthlyStripePlanId'), 'Required key "TenantPackage[monthlyStripePlanId]" is missing from JSON.'); - assert(json.containsKey(r'yearlyStripePlanId'), 'Required key "TenantPackage[yearlyStripePlanId]" is missing from JSON.'); - assert(json.containsKey(r'maxMonthlyPageLoads'), 'Required key "TenantPackage[maxMonthlyPageLoads]" is missing from JSON.'); - assert(json[r'maxMonthlyPageLoads'] != null, 'Required key "TenantPackage[maxMonthlyPageLoads]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyAPICredits'), 'Required key "TenantPackage[maxMonthlyAPICredits]" is missing from JSON.'); - assert(json[r'maxMonthlyAPICredits'] != null, 'Required key "TenantPackage[maxMonthlyAPICredits]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlySmallWidgetsCredits'), 'Required key "TenantPackage[maxMonthlySmallWidgetsCredits]" is missing from JSON.'); - assert(json[r'maxMonthlySmallWidgetsCredits'] != null, 'Required key "TenantPackage[maxMonthlySmallWidgetsCredits]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyComments'), 'Required key "TenantPackage[maxMonthlyComments]" is missing from JSON.'); - assert(json[r'maxMonthlyComments'] != null, 'Required key "TenantPackage[maxMonthlyComments]" has a null value in JSON.'); - assert(json.containsKey(r'maxConcurrentUsers'), 'Required key "TenantPackage[maxConcurrentUsers]" is missing from JSON.'); - assert(json[r'maxConcurrentUsers'] != null, 'Required key "TenantPackage[maxConcurrentUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxTenantUsers'), 'Required key "TenantPackage[maxTenantUsers]" is missing from JSON.'); - assert(json[r'maxTenantUsers'] != null, 'Required key "TenantPackage[maxTenantUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxSSOUsers'), 'Required key "TenantPackage[maxSSOUsers]" is missing from JSON.'); - assert(json[r'maxSSOUsers'] != null, 'Required key "TenantPackage[maxSSOUsers]" has a null value in JSON.'); - assert(json.containsKey(r'maxModerators'), 'Required key "TenantPackage[maxModerators]" is missing from JSON.'); - assert(json[r'maxModerators'] != null, 'Required key "TenantPackage[maxModerators]" has a null value in JSON.'); - assert(json.containsKey(r'maxDomains'), 'Required key "TenantPackage[maxDomains]" is missing from JSON.'); - assert(json[r'maxDomains'] != null, 'Required key "TenantPackage[maxDomains]" has a null value in JSON.'); - assert(json.containsKey(r'maxWhiteLabeledTenants'), 'Required key "TenantPackage[maxWhiteLabeledTenants]" is missing from JSON.'); - assert(json[r'maxWhiteLabeledTenants'] != null, 'Required key "TenantPackage[maxWhiteLabeledTenants]" has a null value in JSON.'); - assert(json.containsKey(r'maxMonthlyEventLogRequests'), 'Required key "TenantPackage[maxMonthlyEventLogRequests]" is missing from JSON.'); - assert(json[r'maxMonthlyEventLogRequests'] != null, 'Required key "TenantPackage[maxMonthlyEventLogRequests]" has a null value in JSON.'); - assert(json.containsKey(r'maxCustomCollectionSize'), 'Required key "TenantPackage[maxCustomCollectionSize]" is missing from JSON.'); - assert(json[r'maxCustomCollectionSize'] != null, 'Required key "TenantPackage[maxCustomCollectionSize]" has a null value in JSON.'); - assert(json.containsKey(r'hasWhiteLabeling'), 'Required key "TenantPackage[hasWhiteLabeling]" is missing from JSON.'); - assert(json[r'hasWhiteLabeling'] != null, 'Required key "TenantPackage[hasWhiteLabeling]" has a null value in JSON.'); - assert(json.containsKey(r'hasDebranding'), 'Required key "TenantPackage[hasDebranding]" is missing from JSON.'); - assert(json[r'hasDebranding'] != null, 'Required key "TenantPackage[hasDebranding]" has a null value in JSON.'); - assert(json.containsKey(r'hasLLMSpamDetection'), 'Required key "TenantPackage[hasLLMSpamDetection]" is missing from JSON.'); - assert(json[r'hasLLMSpamDetection'] != null, 'Required key "TenantPackage[hasLLMSpamDetection]" has a null value in JSON.'); - assert(json.containsKey(r'forWhoText'), 'Required key "TenantPackage[forWhoText]" is missing from JSON.'); - assert(json[r'forWhoText'] != null, 'Required key "TenantPackage[forWhoText]" has a null value in JSON.'); - assert(json.containsKey(r'featureTaglines'), 'Required key "TenantPackage[featureTaglines]" is missing from JSON.'); - assert(json[r'featureTaglines'] != null, 'Required key "TenantPackage[featureTaglines]" has a null value in JSON.'); - assert(json.containsKey(r'hasAuditing'), 'Required key "TenantPackage[hasAuditing]" is missing from JSON.'); - assert(json[r'hasAuditing'] != null, 'Required key "TenantPackage[hasAuditing]" has a null value in JSON.'); - assert(json.containsKey(r'hasFlexPricing'), 'Required key "TenantPackage[hasFlexPricing]" is missing from JSON.'); - assert(json[r'hasFlexPricing'] != null, 'Required key "TenantPackage[hasFlexPricing]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "TenantPackage[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "TenantPackage[$key]" has a null value in JSON.'); + }); return true; }()); @@ -805,6 +775,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..e6c0a1e 100644 --- a/client/lib/model/tos_config.dart +++ b/client/lib/model/tos_config.dart @@ -80,6 +80,10 @@ class TOSConfig { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "TOSConfig[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "TOSConfig[$key]" has a null value in JSON.'); + }); return true; }()); 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..193c079 100644 --- a/client/lib/model/un_block_from_comment_params.dart +++ b/client/lib/model/un_block_from_comment_params.dart @@ -47,6 +47,10 @@ class UnBlockFromCommentParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UnBlockFromCommentParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UnBlockFromCommentParams[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/unblock_success.dart b/client/lib/model/unblock_success.dart index 932e8e6..8d0a985 100644 --- a/client/lib/model/unblock_success.dart +++ b/client/lib/model/unblock_success.dart @@ -54,10 +54,10 @@ class UnblockSuccess { // 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 "UnblockSuccess[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UnblockSuccess[status]" has a null value in JSON.'); - assert(json.containsKey(r'commentStatuses'), 'Required key "UnblockSuccess[commentStatuses]" is missing from JSON.'); - assert(json[r'commentStatuses'] != null, 'Required key "UnblockSuccess[commentStatuses]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UnblockSuccess[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UnblockSuccess[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/updatable_comment_params.dart b/client/lib/model/updatable_comment_params.dart index d896ea8..5da29db 100644 --- a/client/lib/model/updatable_comment_params.dart +++ b/client/lib/model/updatable_comment_params.dart @@ -529,6 +529,10 @@ class UpdatableCommentParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdatableCommentParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdatableCommentParams[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_api_page_data.dart b/client/lib/model/update_api_page_data.dart index b987dd2..9cd6212 100644 --- a/client/lib/model/update_api_page_data.dart +++ b/client/lib/model/update_api_page_data.dart @@ -111,6 +111,10 @@ class UpdateAPIPageData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateAPIPageData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateAPIPageData[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_api_user_subscription_data.dart b/client/lib/model/update_api_user_subscription_data.dart index 2b71c8e..1289487 100644 --- a/client/lib/model/update_api_user_subscription_data.dart +++ b/client/lib/model/update_api_user_subscription_data.dart @@ -57,6 +57,10 @@ class UpdateAPIUserSubscriptionData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateAPIUserSubscriptionData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateAPIUserSubscriptionData[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_apisso_user_data.dart b/client/lib/model/update_apisso_user_data.dart index 038ab1b..15bc148 100644 --- a/client/lib/model/update_apisso_user_data.dart +++ b/client/lib/model/update_apisso_user_data.dart @@ -351,6 +351,10 @@ class UpdateAPISSOUserData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateAPISSOUserData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateAPISSOUserData[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_domain_config_params.dart b/client/lib/model/update_domain_config_params.dart index 3f48b6f..2da84c7 100644 --- a/client/lib/model/update_domain_config_params.dart +++ b/client/lib/model/update_domain_config_params.dart @@ -134,8 +134,10 @@ class UpdateDomainConfigParams { // 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 "UpdateDomainConfigParams[domain]" is missing from JSON.'); - assert(json[r'domain'] != null, 'Required key "UpdateDomainConfigParams[domain]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateDomainConfigParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateDomainConfigParams[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_email_template_body.dart b/client/lib/model/update_email_template_body.dart index 5a68d9a..d64e16a 100644 --- a/client/lib/model/update_email_template_body.dart +++ b/client/lib/model/update_email_template_body.dart @@ -119,6 +119,10 @@ class UpdateEmailTemplateBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateEmailTemplateBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateEmailTemplateBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_feed_post_params.dart b/client/lib/model/update_feed_post_params.dart index a850770..f078471 100644 --- a/client/lib/model/update_feed_post_params.dart +++ b/client/lib/model/update_feed_post_params.dart @@ -98,6 +98,10 @@ class UpdateFeedPostParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateFeedPostParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateFeedPostParams[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_hash_tag_body.dart b/client/lib/model/update_hash_tag_body.dart index 87283f2..aeacc83 100644 --- a/client/lib/model/update_hash_tag_body.dart +++ b/client/lib/model/update_hash_tag_body.dart @@ -89,6 +89,10 @@ class UpdateHashTagBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateHashTagBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateHashTagBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_hash_tag_response.dart b/client/lib/model/update_hash_tag_response.dart index f027e86..c4ac5a7 100644 --- a/client/lib/model/update_hash_tag_response.dart +++ b/client/lib/model/update_hash_tag_response.dart @@ -53,10 +53,10 @@ class UpdateHashTagResponse { // 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 "UpdateHashTagResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UpdateHashTagResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'hashTag'), 'Required key "UpdateHashTagResponse[hashTag]" is missing from JSON.'); - assert(json[r'hashTag'] != null, 'Required key "UpdateHashTagResponse[hashTag]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateHashTagResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateHashTagResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_moderator_body.dart b/client/lib/model/update_moderator_body.dart index a31720d..97641a5 100644 --- a/client/lib/model/update_moderator_body.dart +++ b/client/lib/model/update_moderator_body.dart @@ -95,6 +95,10 @@ class UpdateModeratorBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateModeratorBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateModeratorBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_notification_body.dart b/client/lib/model/update_notification_body.dart index be5aa28..19649c5 100644 --- a/client/lib/model/update_notification_body.dart +++ b/client/lib/model/update_notification_body.dart @@ -73,6 +73,10 @@ class UpdateNotificationBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateNotificationBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateNotificationBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_question_config_body.dart b/client/lib/model/update_question_config_body.dart index 0c88878..72577e7 100644 --- a/client/lib/model/update_question_config_body.dart +++ b/client/lib/model/update_question_config_body.dart @@ -245,6 +245,10 @@ class UpdateQuestionConfigBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateQuestionConfigBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateQuestionConfigBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_question_result_body.dart b/client/lib/model/update_question_result_body.dart index 2ef5b8c..121db0e 100644 --- a/client/lib/model/update_question_result_body.dart +++ b/client/lib/model/update_question_result_body.dart @@ -147,6 +147,10 @@ class UpdateQuestionResultBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateQuestionResultBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateQuestionResultBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_subscription_api_response.dart b/client/lib/model/update_subscription_api_response.dart index e4bff33..5720ddd 100644 --- a/client/lib/model/update_subscription_api_response.dart +++ b/client/lib/model/update_subscription_api_response.dart @@ -95,8 +95,10 @@ class UpdateSubscriptionAPIResponse { // 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 "UpdateSubscriptionAPIResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UpdateSubscriptionAPIResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateSubscriptionAPIResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateSubscriptionAPIResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_tenant_body.dart b/client/lib/model/update_tenant_body.dart index 5e4a30a..cd0ea88 100644 --- a/client/lib/model/update_tenant_body.dart +++ b/client/lib/model/update_tenant_body.dart @@ -406,6 +406,10 @@ class UpdateTenantBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateTenantBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateTenantBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_tenant_package_body.dart b/client/lib/model/update_tenant_package_body.dart index 5f230d2..39a19ca 100644 --- a/client/lib/model/update_tenant_package_body.dart +++ b/client/lib/model/update_tenant_package_body.dart @@ -543,6 +543,10 @@ class UpdateTenantPackageBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateTenantPackageBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateTenantPackageBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_tenant_user_body.dart b/client/lib/model/update_tenant_user_body.dart index 5ff865f..7aa3a76 100644 --- a/client/lib/model/update_tenant_user_body.dart +++ b/client/lib/model/update_tenant_user_body.dart @@ -415,6 +415,10 @@ class UpdateTenantUserBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateTenantUserBody[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateTenantUserBody[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/update_user_badge_params.dart b/client/lib/model/update_user_badge_params.dart index 96d51a8..6829b1c 100644 --- a/client/lib/model/update_user_badge_params.dart +++ b/client/lib/model/update_user_badge_params.dart @@ -57,6 +57,10 @@ class UpdateUserBadgeParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateUserBadgeParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateUserBadgeParams[$key]" has a null value in JSON.'); + }); return true; }()); 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..945d941 --- /dev/null +++ b/client/lib/model/update_user_notification_comment_subscription_status_response.dart @@ -0,0 +1,207 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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, + required this.matchedCount, + required this.modifiedCount, + required this.note, + }); + + APIStatus status; + + int matchedCount; + + 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.hashCode) + + (modifiedCount.hashCode) + + (note.hashCode); + + @override + String toString() => 'UpdateUserNotificationCommentSubscriptionStatusResponse[status=$status, matchedCount=$matchedCount, modifiedCount=$modifiedCount, note=$note]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'matchedCount'] = this.matchedCount; + json[r'modifiedCount'] = this.modifiedCount; + json[r'note'] = this.note; + 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateUserNotificationCommentSubscriptionStatusResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateUserNotificationCommentSubscriptionStatusResponse[$key]" 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', + 'matchedCount', + 'modifiedCount', + 'note', + }; +} + + +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..b759793 --- /dev/null +++ b/client/lib/model/update_user_notification_page_subscription_status_response.dart @@ -0,0 +1,207 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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, + required this.matchedCount, + required this.modifiedCount, + required this.note, + }); + + APIStatus status; + + int matchedCount; + + 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.hashCode) + + (modifiedCount.hashCode) + + (note.hashCode); + + @override + String toString() => 'UpdateUserNotificationPageSubscriptionStatusResponse[status=$status, matchedCount=$matchedCount, modifiedCount=$modifiedCount, note=$note]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'matchedCount'] = this.matchedCount; + json[r'modifiedCount'] = this.modifiedCount; + json[r'note'] = this.note; + 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateUserNotificationPageSubscriptionStatusResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateUserNotificationPageSubscriptionStatusResponse[$key]" 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', + 'matchedCount', + 'modifiedCount', + 'note', + }; +} + + +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..904a668 --- /dev/null +++ b/client/lib/model/update_user_notification_status_response.dart @@ -0,0 +1,207 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_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, + required this.matchedCount, + required this.modifiedCount, + required this.note, + }); + + APIStatus status; + + int matchedCount; + + 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.hashCode) + + (modifiedCount.hashCode) + + (note.hashCode); + + @override + String toString() => 'UpdateUserNotificationStatusResponse[status=$status, matchedCount=$matchedCount, modifiedCount=$modifiedCount, note=$note]'; + + Map toJson() { + final json = {}; + json[r'status'] = this.status; + json[r'matchedCount'] = this.matchedCount; + json[r'modifiedCount'] = this.modifiedCount; + json[r'note'] = this.note; + 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(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UpdateUserNotificationStatusResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UpdateUserNotificationStatusResponse[$key]" 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', + 'matchedCount', + 'modifiedCount', + 'note', + }; +} + + +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..19ca6c2 100644 --- a/client/lib/model/upload_image_response.dart +++ b/client/lib/model/upload_image_response.dart @@ -101,8 +101,10 @@ class UploadImageResponse { // 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 "UploadImageResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UploadImageResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UploadImageResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UploadImageResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user.dart b/client/lib/model/user.dart index a30f03e..2171948 100644 --- a/client/lib/model/user.dart +++ b/client/lib/model/user.dart @@ -869,22 +869,10 @@ class User { // 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 "User[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "User[_id]" has a null value in JSON.'); - assert(json.containsKey(r'username'), 'Required key "User[username]" is missing from JSON.'); - assert(json[r'username'] != null, 'Required key "User[username]" has a null value in JSON.'); - assert(json.containsKey(r'email'), 'Required key "User[email]" is missing from JSON.'); - assert(json.containsKey(r'signUpDate'), 'Required key "User[signUpDate]" is missing from JSON.'); - assert(json[r'signUpDate'] != null, 'Required key "User[signUpDate]" has a null value in JSON.'); - assert(json.containsKey(r'createdFromTenantId'), 'Required key "User[createdFromTenantId]" is missing from JSON.'); - assert(json.containsKey(r'createdFromIpHashed'), 'Required key "User[createdFromIpHashed]" is missing from JSON.'); - assert(json[r'createdFromIpHashed'] != null, 'Required key "User[createdFromIpHashed]" has a null value in JSON.'); - assert(json.containsKey(r'verified'), 'Required key "User[verified]" is missing from JSON.'); - assert(json[r'verified'] != null, 'Required key "User[verified]" has a null value in JSON.'); - assert(json.containsKey(r'loginId'), 'Required key "User[loginId]" is missing from JSON.'); - assert(json[r'loginId'] != null, 'Required key "User[loginId]" has a null value in JSON.'); - assert(json.containsKey(r'loginIdDate'), 'Required key "User[loginIdDate]" is missing from JSON.'); - assert(json[r'loginIdDate'] != null, 'Required key "User[loginIdDate]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "User[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "User[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_badge.dart b/client/lib/model/user_badge.dart index b21d7d4..c7b1412 100644 --- a/client/lib/model/user_badge.dart +++ b/client/lib/model/user_badge.dart @@ -189,30 +189,10 @@ class UserBadge { // 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 "UserBadge[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "UserBadge[_id]" has a null value in JSON.'); - assert(json.containsKey(r'userId'), 'Required key "UserBadge[userId]" is missing from JSON.'); - assert(json[r'userId'] != null, 'Required key "UserBadge[userId]" has a null value in JSON.'); - assert(json.containsKey(r'badgeId'), 'Required key "UserBadge[badgeId]" is missing from JSON.'); - assert(json[r'badgeId'] != null, 'Required key "UserBadge[badgeId]" has a null value in JSON.'); - assert(json.containsKey(r'fromTenantId'), 'Required key "UserBadge[fromTenantId]" is missing from JSON.'); - assert(json[r'fromTenantId'] != null, 'Required key "UserBadge[fromTenantId]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "UserBadge[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "UserBadge[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'type'), 'Required key "UserBadge[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "UserBadge[type]" has a null value in JSON.'); - assert(json.containsKey(r'threshold'), 'Required key "UserBadge[threshold]" is missing from JSON.'); - assert(json[r'threshold'] != null, 'Required key "UserBadge[threshold]" has a null value in JSON.'); - assert(json.containsKey(r'description'), 'Required key "UserBadge[description]" is missing from JSON.'); - assert(json[r'description'] != null, 'Required key "UserBadge[description]" has a null value in JSON.'); - assert(json.containsKey(r'displayLabel'), 'Required key "UserBadge[displayLabel]" is missing from JSON.'); - assert(json[r'displayLabel'] != null, 'Required key "UserBadge[displayLabel]" has a null value in JSON.'); - assert(json.containsKey(r'veteranUserThresholdMillis'), 'Required key "UserBadge[veteranUserThresholdMillis]" is missing from JSON.'); - assert(json[r'veteranUserThresholdMillis'] != null, 'Required key "UserBadge[veteranUserThresholdMillis]" has a null value in JSON.'); - assert(json.containsKey(r'displayedOnComments'), 'Required key "UserBadge[displayedOnComments]" is missing from JSON.'); - assert(json[r'displayedOnComments'] != null, 'Required key "UserBadge[displayedOnComments]" has a null value in JSON.'); - assert(json.containsKey(r'receivedAt'), 'Required key "UserBadge[receivedAt]" is missing from JSON.'); - assert(json[r'receivedAt'] != null, 'Required key "UserBadge[receivedAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserBadge[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserBadge[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_badge_progress.dart b/client/lib/model/user_badge_progress.dart index 0ee1b1f..b29100e 100644 --- a/client/lib/model/user_badge_progress.dart +++ b/client/lib/model/user_badge_progress.dart @@ -126,18 +126,10 @@ class UserBadgeProgress { // 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 "UserBadgeProgress[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "UserBadgeProgress[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "UserBadgeProgress[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "UserBadgeProgress[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'userId'), 'Required key "UserBadgeProgress[userId]" is missing from JSON.'); - assert(json[r'userId'] != null, 'Required key "UserBadgeProgress[userId]" has a null value in JSON.'); - assert(json.containsKey(r'firstCommentId'), 'Required key "UserBadgeProgress[firstCommentId]" is missing from JSON.'); - assert(json[r'firstCommentId'] != null, 'Required key "UserBadgeProgress[firstCommentId]" has a null value in JSON.'); - assert(json.containsKey(r'firstCommentDate'), 'Required key "UserBadgeProgress[firstCommentDate]" is missing from JSON.'); - assert(json[r'firstCommentDate'] != null, 'Required key "UserBadgeProgress[firstCommentDate]" has a null value in JSON.'); - assert(json.containsKey(r'progress'), 'Required key "UserBadgeProgress[progress]" is missing from JSON.'); - assert(json[r'progress'] != null, 'Required key "UserBadgeProgress[progress]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserBadgeProgress[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserBadgeProgress[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_notification.dart b/client/lib/model/user_notification.dart index 234aff8..2f45a30 100644 --- a/client/lib/model/user_notification.dart +++ b/client/lib/model/user_notification.dart @@ -227,30 +227,10 @@ class UserNotification { // 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 "UserNotification[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "UserNotification[_id]" has a null value in JSON.'); - assert(json.containsKey(r'tenantId'), 'Required key "UserNotification[tenantId]" is missing from JSON.'); - assert(json[r'tenantId'] != null, 'Required key "UserNotification[tenantId]" has a null value in JSON.'); - assert(json.containsKey(r'urlId'), 'Required key "UserNotification[urlId]" is missing from JSON.'); - assert(json[r'urlId'] != null, 'Required key "UserNotification[urlId]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "UserNotification[url]" is missing from JSON.'); - assert(json[r'url'] != null, 'Required key "UserNotification[url]" has a null value in JSON.'); - assert(json.containsKey(r'relatedObjectType'), 'Required key "UserNotification[relatedObjectType]" is missing from JSON.'); - assert(json[r'relatedObjectType'] != null, 'Required key "UserNotification[relatedObjectType]" has a null value in JSON.'); - assert(json.containsKey(r'relatedObjectId'), 'Required key "UserNotification[relatedObjectId]" is missing from JSON.'); - assert(json[r'relatedObjectId'] != null, 'Required key "UserNotification[relatedObjectId]" has a null value in JSON.'); - assert(json.containsKey(r'viewed'), 'Required key "UserNotification[viewed]" is missing from JSON.'); - assert(json[r'viewed'] != null, 'Required key "UserNotification[viewed]" has a null value in JSON.'); - assert(json.containsKey(r'isUnreadMessage'), 'Required key "UserNotification[isUnreadMessage]" is missing from JSON.'); - assert(json[r'isUnreadMessage'] != null, 'Required key "UserNotification[isUnreadMessage]" has a null value in JSON.'); - assert(json.containsKey(r'sent'), 'Required key "UserNotification[sent]" is missing from JSON.'); - assert(json[r'sent'] != null, 'Required key "UserNotification[sent]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "UserNotification[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "UserNotification[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'type'), 'Required key "UserNotification[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "UserNotification[type]" has a null value in JSON.'); - assert(json.containsKey(r'optedOut'), 'Required key "UserNotification[optedOut]" is missing from JSON.'); - assert(json[r'optedOut'] != null, 'Required key "UserNotification[optedOut]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserNotification[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserNotification[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_notification_count.dart b/client/lib/model/user_notification_count.dart index f01baa1..d26aa7a 100644 --- a/client/lib/model/user_notification_count.dart +++ b/client/lib/model/user_notification_count.dart @@ -65,14 +65,10 @@ class UserNotificationCount { // 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 "UserNotificationCount[_id]" is missing from JSON.'); - assert(json[r'_id'] != null, 'Required key "UserNotificationCount[_id]" has a null value in JSON.'); - assert(json.containsKey(r'count'), 'Required key "UserNotificationCount[count]" is missing from JSON.'); - assert(json[r'count'] != null, 'Required key "UserNotificationCount[count]" has a null value in JSON.'); - assert(json.containsKey(r'createdAt'), 'Required key "UserNotificationCount[createdAt]" is missing from JSON.'); - assert(json[r'createdAt'] != null, 'Required key "UserNotificationCount[createdAt]" has a null value in JSON.'); - assert(json.containsKey(r'expireAt'), 'Required key "UserNotificationCount[expireAt]" is missing from JSON.'); - assert(json[r'expireAt'] != null, 'Required key "UserNotificationCount[expireAt]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserNotificationCount[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserNotificationCount[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_notification_write_response.dart b/client/lib/model/user_notification_write_response.dart index 4f763f4..61752ac 100644 --- a/client/lib/model/user_notification_write_response.dart +++ b/client/lib/model/user_notification_write_response.dart @@ -59,12 +59,10 @@ class UserNotificationWriteResponse { // 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 "UserNotificationWriteResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UserNotificationWriteResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'matchedCount'), 'Required key "UserNotificationWriteResponse[matchedCount]" is missing from JSON.'); - assert(json[r'matchedCount'] != null, 'Required key "UserNotificationWriteResponse[matchedCount]" has a null value in JSON.'); - assert(json.containsKey(r'modifiedCount'), 'Required key "UserNotificationWriteResponse[modifiedCount]" is missing from JSON.'); - assert(json[r'modifiedCount'] != null, 'Required key "UserNotificationWriteResponse[modifiedCount]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserNotificationWriteResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserNotificationWriteResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_presence_data.dart b/client/lib/model/user_presence_data.dart index 4abac66..69abec5 100644 --- a/client/lib/model/user_presence_data.dart +++ b/client/lib/model/user_presence_data.dart @@ -89,6 +89,10 @@ class UserPresenceData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserPresenceData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserPresenceData[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_reacts_response.dart b/client/lib/model/user_reacts_response.dart index 4199081..86ef6d1 100644 --- a/client/lib/model/user_reacts_response.dart +++ b/client/lib/model/user_reacts_response.dart @@ -53,10 +53,10 @@ class UserReactsResponse { // 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 "UserReactsResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "UserReactsResponse[status]" has a null value in JSON.'); - assert(json.containsKey(r'reacts'), 'Required key "UserReactsResponse[reacts]" is missing from JSON.'); - assert(json[r'reacts'] != null, 'Required key "UserReactsResponse[reacts]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserReactsResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserReactsResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_search_result.dart b/client/lib/model/user_search_result.dart index 5195d1e..9144abe 100644 --- a/client/lib/model/user_search_result.dart +++ b/client/lib/model/user_search_result.dart @@ -85,12 +85,10 @@ class UserSearchResult { // 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 "UserSearchResult[id]" is missing from JSON.'); - assert(json[r'id'] != null, 'Required key "UserSearchResult[id]" has a null value in JSON.'); - assert(json.containsKey(r'name'), 'Required key "UserSearchResult[name]" is missing from JSON.'); - assert(json[r'name'] != null, 'Required key "UserSearchResult[name]" has a null value in JSON.'); - assert(json.containsKey(r'type'), 'Required key "UserSearchResult[type]" is missing from JSON.'); - assert(json[r'type'] != null, 'Required key "UserSearchResult[type]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserSearchResult[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserSearchResult[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_search_section_result.dart b/client/lib/model/user_search_section_result.dart index 8b458ae..a712127 100644 --- a/client/lib/model/user_search_section_result.dart +++ b/client/lib/model/user_search_section_result.dart @@ -53,10 +53,10 @@ class UserSearchSectionResult { // 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'section'), 'Required key "UserSearchSectionResult[section]" is missing from JSON.'); - assert(json[r'section'] != null, 'Required key "UserSearchSectionResult[section]" has a null value in JSON.'); - assert(json.containsKey(r'users'), 'Required key "UserSearchSectionResult[users]" is missing from JSON.'); - assert(json[r'users'] != null, 'Required key "UserSearchSectionResult[users]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserSearchSectionResult[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserSearchSectionResult[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/user_session_info.dart b/client/lib/model/user_session_info.dart index e156ec0..1f86ec4 100644 --- a/client/lib/model/user_session_info.dart +++ b/client/lib/model/user_session_info.dart @@ -227,6 +227,10 @@ class UserSessionInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "UserSessionInfo[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "UserSessionInfo[$key]" has a null value in JSON.'); + }); return true; }()); 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..825dd63 100644 --- a/client/lib/model/vote_body_params.dart +++ b/client/lib/model/vote_body_params.dart @@ -77,11 +77,10 @@ class VoteBodyParams { // 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'commenterEmail'), 'Required key "VoteBodyParams[commenterEmail]" is missing from JSON.'); - assert(json.containsKey(r'commenterName'), 'Required key "VoteBodyParams[commenterName]" is missing from JSON.'); - assert(json.containsKey(r'voteDir'), 'Required key "VoteBodyParams[voteDir]" is missing from JSON.'); - assert(json[r'voteDir'] != null, 'Required key "VoteBodyParams[voteDir]" has a null value in JSON.'); - assert(json.containsKey(r'url'), 'Required key "VoteBodyParams[url]" is missing from JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "VoteBodyParams[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "VoteBodyParams[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/vote_comment200_response.dart b/client/lib/model/vote_comment200_response.dart deleted file mode 100644 index d893247..0000000 --- a/client/lib/model/vote_comment200_response.dart +++ /dev/null @@ -1,280 +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 VoteComment200Response { - /// Returns a new [VoteComment200Response] instance. - VoteComment200Response({ - required this.status, - this.voteId, - this.isVerified, - this.user, - this.editKey, - 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. - /// - String? voteId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the 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; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// 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; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the 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? editKey; - - 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 VoteComment200Response && - 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; - - @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); - - @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]'; - - 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; - } else { - json[r'isVerified'] = null; - } - if (this.user != null) { - json[r'user'] = this.user; - } else { - json[r'user'] = null; - } - if (this.editKey != null) { - json[r'editKey'] = this.editKey; - } else { - json[r'editKey'] = 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 [VoteComment200Response] 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) { - 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 "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.'); - return true; - }()); - - return VoteComment200Response( - 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')!, - 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 = VoteComment200Response.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 = VoteComment200Response.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - 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 = >{}; - 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,); - } - } - 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/vote_delete_response.dart b/client/lib/model/vote_delete_response.dart index d1af7b6..3ae09d2 100644 --- a/client/lib/model/vote_delete_response.dart +++ b/client/lib/model/vote_delete_response.dart @@ -63,8 +63,10 @@ class VoteDeleteResponse { // 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 "VoteDeleteResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "VoteDeleteResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "VoteDeleteResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "VoteDeleteResponse[$key]" has a null value in JSON.'); + }); return true; }()); diff --git a/client/lib/model/vote_response.dart b/client/lib/model/vote_response.dart index 05b7f7b..58dde6d 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; + VoteResponseStatus status; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -111,13 +111,15 @@ class VoteResponse { // 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 "VoteResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "VoteResponse[status]" has a null value in JSON.'); + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "VoteResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "VoteResponse[$key]" has a null value in JSON.'); + }); return true; }()); return VoteResponse( - status: StatusEnum.fromJson(json[r'status'])!, + status: VoteResponseStatus.fromJson(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/record_string_string_or_number_value.dart b/client/lib/model/vote_response_status.dart similarity index 57% rename from client/lib/model/record_string_string_or_number_value.dart rename to client/lib/model/vote_response_status.dart index db42eab..516876a 100644 --- a/client/lib/model/record_string_string_or_number_value.dart +++ b/client/lib/model/vote_response_status.dart @@ -10,30 +10,30 @@ part of openapi.api; -class RecordStringStringOrNumberValue { - /// Returns a new [RecordStringStringOrNumberValue] instance. - RecordStringStringOrNumberValue({ +class VoteResponseStatus { + /// Returns a new [VoteResponseStatus] instance. + VoteResponseStatus({ }); @override - bool operator ==(Object other) => identical(this, other) || other is RecordStringStringOrNumberValue && + bool operator ==(Object other) => identical(this, other) || other is VoteResponseStatus && @override int get hashCode => // ignore: unnecessary_parenthesis @override - String toString() => 'RecordStringStringOrNumberValue[]'; + String toString() => 'VoteResponseStatus[]'; Map toJson() { final json = {}; return json; } - /// Returns a new [RecordStringStringOrNumberValue] instance and imports its values from + /// Returns a new [VoteResponseStatus] 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 VoteResponseStatus? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -41,20 +41,24 @@ class RecordStringStringOrNumberValue { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "VoteResponseStatus[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "VoteResponseStatus[$key]" has a null value in JSON.'); + }); return true; }()); - return RecordStringStringOrNumberValue( + return VoteResponseStatus( ); } 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 = VoteResponseStatus.fromJson(row); if (value != null) { result.add(value); } @@ -63,12 +67,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 = VoteResponseStatus.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -77,14 +81,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 VoteResponseStatus-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] = VoteResponseStatus.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/lib/model/vote_response_user.dart b/client/lib/model/vote_response_user.dart index 335b1d6..394f054 100644 --- a/client/lib/model/vote_response_user.dart +++ b/client/lib/model/vote_response_user.dart @@ -51,6 +51,10 @@ class VoteResponseUser { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "VoteResponseUser[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "VoteResponseUser[$key]" has a null value in JSON.'); + }); return true; }()); 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/client/test/vote_response_status_test.dart b/client/test/vote_response_status_test.dart new file mode 100644 index 0000000..2b7c728 --- /dev/null +++ b/client/test/vote_response_status_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 VoteResponseStatus +void main() { + // final instance = VoteResponseStatus(); + + group('test VoteResponseStatus', () { + + }); + +} diff --git a/client/test/vote_response_test.dart b/client/test/vote_response_test.dart index 9d2839b..a8afb97 100644 --- a/client/test/vote_response_test.dart +++ b/client/test/vote_response_test.dart @@ -16,7 +16,7 @@ void main() { // final instance = VoteResponse(); group('test VoteResponse', () { - // String status + // VoteResponseStatus status test('to test the property `status`', () async { // TODO }); From d462976eba3e88c4187df640335c4056a1c42a02 Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 22:19:18 -0700 Subject: [PATCH 2/6] docs: document ModerationApi client --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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 From 53e37030169545aa0229c821dd1ce2fab2a4f9ad Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 22:37:21 -0700 Subject: [PATCH 3/6] Add GitHub Actions CI workflow --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5cff0c3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +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 tests + working-directory: client + run: dart test From e4123cc7585c9bd9590d3aecbb9f8df134ee0ef7 Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 19 Jun 2026 00:06:24 -0700 Subject: [PATCH 4/6] Regenerate Dart client with FastComments openapi-generator build Fixes anyOf empty-class syntax and nested-map deserialization that the released generator produces incorrectly. update.py now downloads the generator jar instead of using the npm wrapper. --- .gitignore | 1 + client/.openapi-generator/FILES | 3 - client/.openapi-generator/VERSION | 2 +- client/README.md | 3 +- client/doc/APIAuditLog.md | 2 +- client/doc/APISaveCommentResponse.md | 2 +- client/doc/AddDomainConfigResponse.md | 8 +- client/doc/AddDomainConfigResponseAnyOf.md | 4 +- client/doc/AggregateResponse.md | 6 +- .../BulkCreateHashTagsResponseResultsInner.md | 6 +- client/doc/CommentData.md | 2 +- client/doc/CommentLogData.md | 2 +- client/doc/CreateCommentParams.md | 2 +- client/doc/CreateEmailTemplateBody.md | 2 +- client/doc/CustomEmailTemplate.md | 2 +- client/doc/DeleteDomainConfigResponse.md | 2 +- client/doc/EmailTemplateDefinition.md | 2 +- .../doc/GetCommentsResponsePublicComment.md | 2 +- ...mmentsResponseWithPresencePublicComment.md | 2 +- client/doc/GetDomainConfigResponse.md | 8 +- client/doc/GetDomainConfigsResponse.md | 8 +- client/doc/GetDomainConfigsResponseAnyOf.md | 4 +- client/doc/GetDomainConfigsResponseAnyOf1.md | 2 +- client/doc/GetGifsSearchResponse.md | 4 +- client/doc/GetGifsTrendingResponse.md | 4 +- client/doc/HeaderState.md | 2 +- client/doc/LiveEvent.md | 2 +- .../doc/ModerationAPIGetCommentsResponse.md | 2 +- client/doc/PatchDomainConfigResponse.md | 8 +- client/doc/PendingCommentToSyncOutbound.md | 2 +- client/doc/PutDomainConfigResponse.md | 8 +- client/doc/RenderEmailTemplateBody.md | 2 +- client/doc/SaveCommentResponseOptimized.md | 2 +- client/doc/SaveCommentsBulkResponse.md | 10 +- .../doc/SaveCommentsResponseWithPresence.md | 2 +- client/doc/SearchUsersResult.md | 4 +- client/doc/UpdateEmailTemplateBody.md | 2 +- ...cationCommentSubscriptionStatusResponse.md | 6 +- ...ificationPageSubscriptionStatusResponse.md | 6 +- .../UpdateUserNotificationStatusResponse.md | 6 +- client/doc/VoteResponse.md | 2 +- client/doc/VoteResponseStatus.md | 14 - client/lib/api.dart | 1 - client/lib/api_client.dart | 2 - .../lib/model/add_domain_config_params.dart | 32 +- .../lib/model/add_domain_config_response.dart | 60 +-- .../add_domain_config_response_any_of.dart | 12 +- client/lib/model/add_page_api_response.dart | 20 +- .../lib/model/add_sso_user_api_response.dart | 20 +- .../model/adjust_comment_votes_params.dart | 8 +- client/lib/model/adjust_votes_response.dart | 14 +- .../aggregate_question_results_response.dart | 14 +- client/lib/model/aggregate_response.dart | 63 ++-- client/lib/model/aggregation_api_error.dart | 24 +- client/lib/model/aggregation_item.dart | 6 +- client/lib/model/aggregation_operation.dart | 22 +- client/lib/model/aggregation_request.dart | 26 +- .../lib/model/aggregation_request_sort.dart | 14 +- client/lib/model/aggregation_response.dart | 18 +- .../lib/model/aggregation_response_stats.dart | 14 +- client/lib/model/aggregation_value.dart | 22 +- client/lib/model/api_audit_log.dart | 56 +-- client/lib/model/api_ban_user_change_log.dart | 18 +- .../model/api_ban_user_changed_values.dart | 54 ++- client/lib/model/api_banned_user.dart | 69 ++-- ...api_banned_user_with_multi_match_info.dart | 47 ++- client/lib/model/api_comment.dart | 234 ++++++------ client/lib/model/api_comment_base.dart | 234 ++++++------ client/lib/model/api_comment_base_meta.dart | 10 +- .../model/api_comment_common_banned_user.dart | 41 +- .../model/api_create_user_badge_response.dart | 18 +- .../lib/model/api_domain_configuration.dart | 68 ++-- client/lib/model/api_empty_response.dart | 8 +- .../lib/model/api_empty_success_response.dart | 8 +- client/lib/model/api_error.dart | 40 +- .../lib/model/api_get_comment_response.dart | 14 +- .../lib/model/api_get_comments_response.dart | 14 +- ...get_user_badge_progress_list_response.dart | 14 +- .../api_get_user_badge_progress_response.dart | 14 +- .../model/api_get_user_badge_response.dart | 14 +- .../model/api_get_user_badges_response.dart | 14 +- ...ate_get_user_ban_preferences_response.dart | 13 +- .../api_moderate_user_ban_preferences.dart | 26 +- client/lib/model/api_page.dart | 50 ++- .../lib/model/api_save_comment_response.dart | 23 +- client/lib/model/api_tenant.dart | 136 ++++--- client/lib/model/api_tenant_daily_usage.dart | 116 ++++-- client/lib/model/api_ticket.dart | 56 ++- client/lib/model/api_ticket_detail.dart | 74 ++-- client/lib/model/api_ticket_file.dart | 60 +-- client/lib/model/api_user_subscription.dart | 40 +- client/lib/model/apisso_user.dart | 106 +++--- .../lib/model/award_user_badge_response.dart | 16 +- .../model/ban_user_from_comment_result.dart | 20 +- client/lib/model/ban_user_undo_params.dart | 8 +- client/lib/model/banned_user_match.dart | 13 +- .../banned_user_match_matched_on_value.dart | 10 +- client/lib/model/billing_info.dart | 46 ++- .../lib/model/block_from_comment_params.dart | 6 +- client/lib/model/block_success.dart | 14 +- .../model/build_moderation_filter_params.dart | 26 +- .../build_moderation_filter_response.dart | 14 +- .../model/bulk_aggregate_question_item.dart | 28 +- ...lk_aggregate_question_results_request.dart | 8 +- ...k_aggregate_question_results_response.dart | 14 +- .../lib/model/bulk_create_hash_tags_body.dart | 12 +- ...bulk_create_hash_tags_body_tags_inner.dart | 12 +- .../model/bulk_create_hash_tags_response.dart | 14 +- ...eate_hash_tags_response_results_inner.dart | 91 +++-- client/lib/model/bulk_pre_ban_params.dart | 8 +- client/lib/model/bulk_pre_ban_summary.dart | 38 +- .../change_comment_pin_status_response.dart | 14 +- .../lib/model/change_ticket_state_body.dart | 8 +- .../model/change_ticket_state_response.dart | 14 +- .../check_blocked_comments_response.dart | 14 +- ...estion_results_with_comments_response.dart | 14 +- client/lib/model/comment_data.dart | 114 +++--- client/lib/model/comment_log_data.dart | 190 +++++----- client/lib/model/comment_log_entry.dart | 18 +- .../model/comment_text_update_request.dart | 16 +- client/lib/model/comment_user_badge_info.dart | 44 ++- .../lib/model/comment_user_hash_tag_info.dart | 23 +- .../lib/model/comment_user_mention_info.dart | 26 +- client/lib/model/comments_by_ids_params.dart | 8 +- client/lib/model/create_api_page_data.dart | 32 +- .../create_api_user_subscription_data.dart | 28 +- client/lib/model/create_apisso_user_data.dart | 88 ++--- client/lib/model/create_comment_params.dart | 156 ++++---- .../lib/model/create_email_template_body.dart | 34 +- .../model/create_email_template_response.dart | 14 +- client/lib/model/create_feed_post_params.dart | 34 +- .../lib/model/create_feed_post_response.dart | 14 +- .../lib/model/create_feed_posts_response.dart | 14 +- client/lib/model/create_hash_tag_body.dart | 16 +- .../lib/model/create_hash_tag_response.dart | 14 +- client/lib/model/create_moderator_body.dart | 22 +- .../lib/model/create_moderator_response.dart | 14 +- .../model/create_question_config_body.dart | 66 ++-- .../create_question_config_response.dart | 14 +- .../model/create_question_result_body.dart | 36 +- .../create_question_result_response.dart | 14 +- .../create_subscription_api_response.dart | 20 +- client/lib/model/create_tenant_body.dart | 98 ++--- .../lib/model/create_tenant_package_body.dart | 224 ++++++----- .../model/create_tenant_package_response.dart | 14 +- client/lib/model/create_tenant_response.dart | 14 +- client/lib/model/create_tenant_user_body.dart | 102 ++--- .../model/create_tenant_user_response.dart | 14 +- client/lib/model/create_ticket_body.dart | 8 +- client/lib/model/create_ticket_response.dart | 14 +- .../lib/model/create_user_badge_params.dart | 18 +- client/lib/model/create_v1_page_react.dart | 12 +- .../lib/model/custom_config_parameters.dart | 354 +++++++++--------- client/lib/model/custom_email_template.dart | 65 ++-- client/lib/model/delete_comment_result.dart | 14 +- .../model/delete_domain_config_response.dart | 7 +- .../delete_feed_post_public_response.dart | 8 +- .../model/delete_hash_tag_request_body.dart | 6 +- .../lib/model/delete_page_api_response.dart | 16 +- .../model/delete_sso_user_api_response.dart | 20 +- .../delete_subscription_api_response.dart | 16 +- .../model/deleted_comment_result_comment.dart | 22 +- .../lib/model/email_template_definition.dart | 28 +- .../email_template_render_error_response.dart | 44 ++- client/lib/model/event_log_entry.dart | 38 +- client/lib/model/f_comment.dart | 314 ++++++++-------- client/lib/model/f_comment_meta.dart | 14 +- client/lib/model/feed_post.dart | 72 ++-- client/lib/model/feed_post_link.dart | 18 +- client/lib/model/feed_post_media_item.dart | 16 +- .../lib/model/feed_post_media_item_asset.dart | 20 +- client/lib/model/feed_post_stats.dart | 10 +- .../lib/model/feed_posts_stats_response.dart | 14 +- .../model/find_comments_by_range_item.dart | 13 +- .../find_comments_by_range_response.dart | 14 +- client/lib/model/flag_comment_response.dart | 24 +- client/lib/model/get_audit_logs_response.dart | 14 +- .../get_banned_users_count_response.dart | 14 +- ...et_banned_users_from_comment_response.dart | 18 +- ...et_cached_notification_count_response.dart | 14 +- .../get_comment_ban_status_response.dart | 18 +- .../lib/model/get_comment_text_response.dart | 12 +- ...ment_vote_user_names_success_response.dart | 20 +- .../model/get_comments_for_user_response.dart | 6 +- .../get_comments_response_public_comment.dart | 105 +++--- ...response_with_presence_public_comment.dart | 117 +++--- .../lib/model/get_domain_config_response.dart | 58 +-- .../model/get_domain_configs_response.dart | 58 +-- .../get_domain_configs_response_any_of.dart | 12 +- .../get_domain_configs_response_any_of1.dart | 19 +- ...t_email_template_definitions_response.dart | 14 +- ...email_template_render_errors_response.dart | 14 +- .../model/get_email_template_response.dart | 14 +- .../model/get_email_templates_response.dart | 14 +- client/lib/model/get_event_log_response.dart | 14 +- client/lib/model/get_feed_posts_response.dart | 14 +- .../lib/model/get_gifs_search_response.dart | 34 +- .../lib/model/get_gifs_trending_response.dart | 34 +- client/lib/model/get_hash_tags_response.dart | 14 +- client/lib/model/get_moderator_response.dart | 14 +- client/lib/model/get_moderators_response.dart | 14 +- .../model/get_my_notifications_response.dart | 30 +- .../get_notification_count_response.dart | 14 +- .../lib/model/get_notifications_response.dart | 14 +- .../model/get_page_by_urlid_api_response.dart | 20 +- client/lib/model/get_pages_api_response.dart | 20 +- ..._pending_webhook_event_count_response.dart | 14 +- .../get_pending_webhook_events_response.dart | 14 +- .../model/get_public_feed_posts_response.dart | 18 +- .../lib/model/get_public_pages_response.dart | 19 +- .../model/get_question_config_response.dart | 14 +- .../model/get_question_configs_response.dart | 14 +- .../model/get_question_result_response.dart | 14 +- .../model/get_question_results_response.dart | 14 +- .../get_sso_user_by_email_api_response.dart | 20 +- .../get_sso_user_by_id_api_response.dart | 20 +- client/lib/model/get_sso_users_response.dart | 14 +- .../model/get_subscriptions_api_response.dart | 20 +- .../get_tenant_daily_usages_response.dart | 14 +- .../get_tenant_manual_badges_response.dart | 14 +- .../model/get_tenant_package_response.dart | 14 +- .../model/get_tenant_packages_response.dart | 14 +- client/lib/model/get_tenant_response.dart | 14 +- .../lib/model/get_tenant_user_response.dart | 14 +- .../lib/model/get_tenant_users_response.dart | 14 +- client/lib/model/get_tenants_response.dart | 14 +- client/lib/model/get_ticket_response.dart | 20 +- client/lib/model/get_tickets_response.dart | 14 +- .../lib/model/get_translations_response.dart | 14 +- .../get_user_internal_profile_response.dart | 14 +- ...ser_internal_profile_response_profile.dart | 70 ++-- .../get_user_manual_badges_response.dart | 14 +- .../get_user_notification_count_response.dart | 14 +- .../get_user_presence_statuses_response.dart | 14 +- client/lib/model/get_user_response.dart | 14 +- .../model/get_user_trust_factor_response.dart | 16 +- client/lib/model/get_v1_page_likes.dart | 32 +- .../get_v2_page_react_users_response.dart | 14 +- client/lib/model/get_v2_page_reacts.dart | 16 +- .../model/get_votes_for_user_response.dart | 26 +- client/lib/model/get_votes_response.dart | 26 +- client/lib/model/gif_get_large_response.dart | 14 +- .../lib/model/gif_search_internal_error.dart | 14 +- client/lib/model/gif_search_response.dart | 14 +- ...if_search_response_images_inner_inner.dart | 10 +- .../model/header_account_notification.dart | 56 +-- client/lib/model/header_state.dart | 38 +- client/lib/model/ignored_response.dart | 14 +- client/lib/model/live_event.dart | 72 ++-- client/lib/model/live_event_extra_info.dart | 6 +- client/lib/model/media_asset.dart | 20 +- client/lib/model/meta_item.dart | 14 +- ...oderation_api_child_comments_response.dart | 14 +- client/lib/model/moderation_api_comment.dart | 188 +++++----- .../lib/model/moderation_api_comment_log.dart | 24 +- .../moderation_api_comment_response.dart | 14 +- ...oderation_api_count_comments_response.dart | 14 +- ...deration_api_get_comment_ids_response.dart | 20 +- .../moderation_api_get_comments_response.dart | 24 +- .../moderation_api_get_logs_response.dart | 14 +- .../moderation_comment_search_response.dart | 14 +- .../lib/model/moderation_export_response.dart | 14 +- .../moderation_export_status_response.dart | 24 +- client/lib/model/moderation_filter.dart | 50 ++- .../moderation_page_search_projected.dart | 26 +- .../moderation_page_search_response.dart | 14 +- .../moderation_site_search_projected.dart | 12 +- .../moderation_site_search_response.dart | 14 +- .../model/moderation_suggest_response.dart | 20 +- .../moderation_user_search_projected.dart | 22 +- .../moderation_user_search_response.dart | 14 +- client/lib/model/moderator.dart | 109 ++++-- client/lib/model/notification_and_count.dart | 14 +- client/lib/model/page_user_entry.dart | 22 +- .../lib/model/page_users_info_response.dart | 14 +- .../model/page_users_offline_response.dart | 24 +- .../lib/model/page_users_online_response.dart | 36 +- .../lib/model/patch_domain_config_params.dart | 30 +- .../model/patch_domain_config_response.dart | 58 +-- client/lib/model/patch_page_api_response.dart | 24 +- .../model/patch_sso_user_api_response.dart | 20 +- .../pending_comment_to_sync_outbound.dart | 75 ++-- .../model/post_remove_comment_response.dart | 14 +- client/lib/model/pre_ban_summary.dart | 20 +- client/lib/model/pub_sub_comment.dart | 195 +++++----- client/lib/model/pub_sub_comment_base.dart | 181 +++++---- client/lib/model/pub_sub_vote.dart | 53 ++- .../public_api_delete_comment_response.dart | 18 +- .../public_api_get_comment_text_response.dart | 20 +- .../public_api_set_comment_text_response.dart | 14 +- .../public_block_from_comment_params.dart | 7 +- client/lib/model/public_comment.dart | 167 +++++---- client/lib/model/public_comment_base.dart | 127 ++++--- .../lib/model/public_feed_posts_response.dart | 36 +- client/lib/model/public_page.dart | 32 +- client/lib/model/public_vote.dart | 38 +- .../lib/model/put_domain_config_response.dart | 58 +-- .../lib/model/put_sso_user_api_response.dart | 20 +- client/lib/model/query_predicate.dart | 20 +- client/lib/model/query_predicate_value.dart | 10 +- client/lib/model/question_config.dart | 126 ++++--- .../question_config_custom_options_inner.dart | 14 +- client/lib/model/question_datum.dart | 14 +- client/lib/model/question_result.dart | 64 ++-- .../question_result_aggregation_overall.dart | 30 +- client/lib/model/react_body_params.dart | 6 +- .../lib/model/react_feed_post_response.dart | 20 +- ...ng_or_null_after_string_or_null_value.dart | 12 +- .../model/remove_comment_action_response.dart | 14 +- .../lib/model/remove_user_badge_response.dart | 12 +- .../lib/model/render_email_template_body.dart | 24 +- .../model/render_email_template_response.dart | 14 +- .../model/renderable_user_notification.dart | 106 +++--- .../model/replace_tenant_package_body.dart | 156 ++++---- .../lib/model/replace_tenant_user_body.dart | 118 +++--- .../reset_user_notifications_response.dart | 12 +- .../save_comment_response_optimized.dart | 23 +- .../model/save_comments_bulk_response.dart | 102 +++-- .../save_comments_response_with_presence.dart | 27 +- client/lib/model/search_users_response.dart | 14 +- client/lib/model/search_users_result.dart | 18 +- .../search_users_sectioned_response.dart | 14 +- .../model/set_comment_approved_response.dart | 12 +- client/lib/model/set_comment_text_params.dart | 8 +- .../lib/model/set_comment_text_response.dart | 14 +- client/lib/model/set_comment_text_result.dart | 14 +- .../model/set_user_trust_factor_response.dart | 12 +- client/lib/model/spam_rule.dart | 12 +- client/lib/model/tenant_badge.dart | 116 +++--- client/lib/model/tenant_hash_tag.dart | 30 +- client/lib/model/tenant_package.dart | 296 +++++++++------ client/lib/model/tos_config.dart | 14 +- .../model/un_block_from_comment_params.dart | 6 +- client/lib/model/unblock_success.dart | 14 +- .../lib/model/updatable_comment_params.dart | 158 ++++---- client/lib/model/update_api_page_data.dart | 22 +- .../update_api_user_subscription_data.dart | 6 +- client/lib/model/update_apisso_user_data.dart | 82 ++-- .../model/update_domain_config_params.dart | 32 +- .../lib/model/update_email_template_body.dart | 28 +- client/lib/model/update_feed_post_params.dart | 26 +- client/lib/model/update_hash_tag_body.dart | 14 +- .../lib/model/update_hash_tag_response.dart | 14 +- client/lib/model/update_moderator_body.dart | 18 +- .../lib/model/update_notification_body.dart | 10 +- .../model/update_question_config_body.dart | 58 ++- .../model/update_question_result_body.dart | 30 +- .../update_subscription_api_response.dart | 20 +- client/lib/model/update_tenant_body.dart | 98 +++-- .../lib/model/update_tenant_package_body.dart | 130 ++++--- client/lib/model/update_tenant_user_body.dart | 98 +++-- .../lib/model/update_user_badge_params.dart | 6 +- ..._comment_subscription_status_response.dart | 65 ++-- ...ion_page_subscription_status_response.dart | 65 ++-- ...ate_user_notification_status_response.dart | 65 ++-- client/lib/model/upload_image_response.dart | 24 +- client/lib/model/user.dart | 258 +++++++------ client/lib/model/user_badge.dart | 102 +++-- client/lib/model/user_badge_progress.dart | 50 ++- client/lib/model/user_notification.dart | 122 +++--- client/lib/model/user_notification_count.dart | 26 +- .../user_notification_write_response.dart | 20 +- client/lib/model/user_presence_data.dart | 14 +- client/lib/model/user_reacts_response.dart | 16 +- client/lib/model/user_search_result.dart | 28 +- .../lib/model/user_search_section_result.dart | 14 +- client/lib/model/user_session_info.dart | 58 ++- client/lib/model/vote_body_params.dart | 23 +- client/lib/model/vote_delete_response.dart | 12 +- client/lib/model/vote_response.dart | 28 +- client/lib/model/vote_response_status.dart | 101 ----- client/lib/model/vote_response_user.dart | 6 +- client/test/vote_response_status_test.dart | 22 -- client/test/vote_response_test.dart | 2 +- update.py | 18 +- 375 files changed, 6891 insertions(+), 5714 deletions(-) delete mode 100644 client/doc/VoteResponseStatus.md delete mode 100644 client/lib/model/vote_response_status.dart delete mode 100644 client/test/vote_response_status_test.dart 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/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index b5ddb88..d0052f4 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -364,7 +364,6 @@ doc/UsersListLocation.md doc/VoteBodyParams.md doc/VoteDeleteResponse.md doc/VoteResponse.md -doc/VoteResponseStatus.md doc/VoteResponseUser.md doc/VoteStyle.md git_push.sh @@ -738,7 +737,6 @@ lib/model/users_list_location.dart lib/model/vote_body_params.dart lib/model/vote_delete_response.dart lib/model/vote_response.dart -lib/model/vote_response_status.dart lib/model/vote_response_user.dart lib/model/vote_style.dart pubspec.yaml @@ -1102,7 +1100,6 @@ test/user_test.dart test/users_list_location_test.dart test/vote_body_params_test.dart test/vote_delete_response_test.dart -test/vote_response_status_test.dart test/vote_response_test.dart test/vote_response_user_test.dart test/vote_style_test.dart diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index b23eb27..ca7bf6e 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.11.0 +7.23.0-SNAPSHOT diff --git a/client/README.md b/client/README.md index ac1926c..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.11.0 +- Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.DartClientCodegen ## Requirements @@ -635,7 +635,6 @@ Class | Method | HTTP request | Description - [VoteBodyParams](doc//VoteBodyParams.md) - [VoteDeleteResponse](doc//VoteDeleteResponse.md) - [VoteResponse](doc//VoteResponse.md) - - [VoteResponseStatus](doc//VoteResponseStatus.md) - [VoteResponseUser](doc//VoteResponseUser.md) - [VoteStyle](doc//VoteStyle.md) diff --git a/client/doc/APIAuditLog.md b/client/doc/APIAuditLog.md index 7f3b381..15798a0 100644 --- a/client/doc/APIAuditLog.md +++ b/client/doc/APIAuditLog.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **when_** | [**DateTime**](DateTime.md) | | [optional] **description** | **String** | | [optional] **serverStartDate** | [**DateTime**](DateTime.md) | | [optional] -**objectDetails** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] +**objectDetails** | **Map** | Construct a type with a set of properties K of type T | [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/APISaveCommentResponse.md b/client/doc/APISaveCommentResponse.md index 5293410..da65e05 100644 --- a/client/doc/APISaveCommentResponse.md +++ b/client/doc/APISaveCommentResponse.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **status** | [**APIStatus**](APIStatus.md) | | **comment** | [**APIComment**](APIComment.md) | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**moduleData** | **Map** | Construct a type with a set of properties K of type T | [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/AddDomainConfigResponse.md b/client/doc/AddDomainConfigResponse.md index b5e5c7b..5551232 100644 --- a/client/doc/AddDomainConfigResponse.md +++ b/client/doc/AddDomainConfigResponse.md @@ -8,10 +8,10 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**reason** | **String** | | -**code** | **String** | | -**status** | [**Object**](.md) | | -**configuration** | [**Object**](.md) | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] +**status** | **Object** | | +**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/AddDomainConfigResponseAnyOf.md b/client/doc/AddDomainConfigResponseAnyOf.md index d296bc0..37b8937 100644 --- a/client/doc/AddDomainConfigResponseAnyOf.md +++ b/client/doc/AddDomainConfigResponseAnyOf.md @@ -8,8 +8,8 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | [**Object**](.md) | | -**status** | [**Object**](.md) | | +**configuration** | **Object** | | +**status** | **Object** | | [[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/AggregateResponse.md b/client/doc/AggregateResponse.md index a5e451a..c6f457c 100644 --- a/client/doc/AggregateResponse.md +++ b/client/doc/AggregateResponse.md @@ -9,10 +9,10 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**data** | [**List**](AggregationItem.md) | | [default to const []] +**data** | [**List**](AggregationItem.md) | | [optional] [default to const []] **stats** | [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] -**reason** | **String** | | -**code** | **String** | | +**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/BulkCreateHashTagsResponseResultsInner.md b/client/doc/BulkCreateHashTagsResponseResultsInner.md index ab00167..ab05541 100644 --- a/client/doc/BulkCreateHashTagsResponseResultsInner.md +++ b/client/doc/BulkCreateHashTagsResponseResultsInner.md @@ -9,9 +9,9 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**hashTag** | [**TenantHashTag**](TenantHashTag.md) | | -**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/CommentData.md b/client/doc/CommentData.md index 49b84ff..9946295 100644 --- a/client/doc/CommentData.md +++ b/client/doc/CommentData.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **isFromMyAccountPage** | **bool** | | [optional] **url** | **String** | | **urlId** | **String** | | -**meta** | [**Object**](.md) | | [optional] +**meta** | **Object** | | [optional] **moderationGroupIds** | **List** | | [optional] [default to const []] **rating** | **double** | | [optional] **fromOfflineRestore** | **bool** | | [optional] diff --git a/client/doc/CommentLogData.md b/client/doc/CommentLogData.md index 0702168..6243a60 100644 --- a/client/doc/CommentLogData.md +++ b/client/doc/CommentLogData.md @@ -36,7 +36,7 @@ Name | Type | Description | Notes **votesDownAfter** | **double** | | [optional] **repeatAction** | [**RepeatCommentHandlingAction**](RepeatCommentHandlingAction.md) | | [optional] **reason** | [**RepeatCommentCheckIgnoredReason**](RepeatCommentCheckIgnoredReason.md) | | [optional] -**otherData** | [**Object**](.md) | | [optional] +**otherData** | **Object** | | [optional] **spamBefore** | **bool** | | [optional] **spamAfter** | **bool** | | [optional] **permanentFlag** | **String** | | [optional] diff --git a/client/doc/CreateCommentParams.md b/client/doc/CreateCommentParams.md index 53b47bf..64e6281 100644 --- a/client/doc/CreateCommentParams.md +++ b/client/doc/CreateCommentParams.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **isFromMyAccountPage** | **bool** | | [optional] **url** | **String** | | **urlId** | **String** | | -**meta** | [**Object**](.md) | | [optional] +**meta** | **Object** | | [optional] **moderationGroupIds** | **List** | | [optional] [default to const []] **rating** | **double** | | [optional] **fromOfflineRestore** | **bool** | | [optional] diff --git a/client/doc/CreateEmailTemplateBody.md b/client/doc/CreateEmailTemplateBody.md index 4d307d1..41123a9 100644 --- a/client/doc/CreateEmailTemplateBody.md +++ b/client/doc/CreateEmailTemplateBody.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **ejs** | **String** | | **domain** | **String** | | [optional] **translationOverridesByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**testData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**testData** | **Map** | Construct a type with a set of properties K of type T | [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/CustomEmailTemplate.md b/client/doc/CustomEmailTemplate.md index b32d655..27d50b4 100644 --- a/client/doc/CustomEmailTemplate.md +++ b/client/doc/CustomEmailTemplate.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **domain** | **String** | | [optional] **ejs** | **String** | | **translationOverridesByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [default to const {}] -**testData** | [**Object**](.md) | | +**testData** | **Object** | | [[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/DeleteDomainConfigResponse.md b/client/doc/DeleteDomainConfigResponse.md index 77c20b1..35dcb2c 100644 --- a/client/doc/DeleteDomainConfigResponse.md +++ b/client/doc/DeleteDomainConfigResponse.md @@ -8,7 +8,7 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**Object**](.md) | | +**status** | **Object** | | [[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/EmailTemplateDefinition.md b/client/doc/EmailTemplateDefinition.md index 27fc919..95e7f18 100644 --- a/client/doc/EmailTemplateDefinition.md +++ b/client/doc/EmailTemplateDefinition.md @@ -9,7 +9,7 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **emailTemplateId** | **String** | | -**defaultTestData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [default to const {}] +**defaultTestData** | **Map** | Construct a type with a set of properties K of type T | [default to const {}] **defaultTranslationsByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [default to const {}] **defaultEJS** | **String** | | diff --git a/client/doc/GetCommentsResponsePublicComment.md b/client/doc/GetCommentsResponsePublicComment.md index 58becc7..c60d08e 100644 --- a/client/doc/GetCommentsResponsePublicComment.md +++ b/client/doc/GetCommentsResponsePublicComment.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **commentCount** | **int** | | [optional] **isSiteAdmin** | **bool** | | [optional] **hasBillingIssue** | **bool** | | [optional] -**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**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] diff --git a/client/doc/GetCommentsResponseWithPresencePublicComment.md b/client/doc/GetCommentsResponseWithPresencePublicComment.md index d473c8a..f5553f4 100644 --- a/client/doc/GetCommentsResponseWithPresencePublicComment.md +++ b/client/doc/GetCommentsResponseWithPresencePublicComment.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **commentCount** | **int** | | [optional] **isSiteAdmin** | **bool** | | [optional] **hasBillingIssue** | **bool** | | [optional] -**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**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] diff --git a/client/doc/GetDomainConfigResponse.md b/client/doc/GetDomainConfigResponse.md index b629cef..e8015a2 100644 --- a/client/doc/GetDomainConfigResponse.md +++ b/client/doc/GetDomainConfigResponse.md @@ -8,10 +8,10 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | [**Object**](.md) | | -**status** | [**Object**](.md) | | -**reason** | **String** | | -**code** | **String** | | +**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/GetDomainConfigsResponse.md b/client/doc/GetDomainConfigsResponse.md index 1bcd7e6..fad0545 100644 --- a/client/doc/GetDomainConfigsResponse.md +++ b/client/doc/GetDomainConfigsResponse.md @@ -8,10 +8,10 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configurations** | [**Object**](.md) | | -**status** | [**Object**](.md) | | -**reason** | **String** | | -**code** | **String** | | +**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/GetDomainConfigsResponseAnyOf.md b/client/doc/GetDomainConfigsResponseAnyOf.md index 441527f..78c0424 100644 --- a/client/doc/GetDomainConfigsResponseAnyOf.md +++ b/client/doc/GetDomainConfigsResponseAnyOf.md @@ -8,8 +8,8 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configurations** | [**Object**](.md) | | -**status** | [**Object**](.md) | | +**configurations** | **Object** | | +**status** | **Object** | | [[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/GetDomainConfigsResponseAnyOf1.md b/client/doc/GetDomainConfigsResponseAnyOf1.md index 5d1e62c..ade92d6 100644 --- a/client/doc/GetDomainConfigsResponseAnyOf1.md +++ b/client/doc/GetDomainConfigsResponseAnyOf1.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reason** | **String** | | **code** | **String** | | -**status** | [**Object**](.md) | | +**status** | **Object** | | [[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 index 922fc66..f3c80b7 100644 --- a/client/doc/GetGifsSearchResponse.md +++ b/client/doc/GetGifsSearchResponse.md @@ -8,9 +8,9 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**images** | [**List>**](List.md) | | [default to const []] +**images** | [**List>**](List.md) | | [optional] [default to const []] **status** | [**APIStatus**](APIStatus.md) | | -**code** | **String** | | +**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 index 73fc82b..555cf8b 100644 --- a/client/doc/GetGifsTrendingResponse.md +++ b/client/doc/GetGifsTrendingResponse.md @@ -8,9 +8,9 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**images** | [**List>**](List.md) | | [default to const []] +**images** | [**List>**](List.md) | | [optional] [default to const []] **status** | [**APIStatus**](APIStatus.md) | | -**code** | **String** | | +**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/HeaderState.md b/client/doc/HeaderState.md index c3ed104..8761899 100644 --- a/client/doc/HeaderState.md +++ b/client/doc/HeaderState.md @@ -9,7 +9,7 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**notificationType** | [**Object**](.md) | | +**notificationType** | **Object** | | **userId** | **String** | | **userIdWS** | **String** | | **notificationCounts** | [**List**](NotificationAndCount.md) | | [default to const []] diff --git a/client/doc/LiveEvent.md b/client/doc/LiveEvent.md index fab25d3..bcb847d 100644 --- a/client/doc/LiveEvent.md +++ b/client/doc/LiveEvent.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **comment** | [**PubSubComment**](PubSubComment.md) | | [optional] **feedPost** | [**FeedPost**](FeedPost.md) | | [optional] **extraInfo** | [**LiveEventExtraInfo**](LiveEventExtraInfo.md) | | [optional] -**config** | [**Object**](.md) | | [optional] +**config** | **Object** | | [optional] **isClosed** | **bool** | | [optional] **uj** | **List** | | [optional] [default to const []] **ul** | **List** | | [optional] [default to const []] diff --git a/client/doc/ModerationAPIGetCommentsResponse.md b/client/doc/ModerationAPIGetCommentsResponse.md index 08ea656..4b07aa7 100644 --- a/client/doc/ModerationAPIGetCommentsResponse.md +++ b/client/doc/ModerationAPIGetCommentsResponse.md @@ -9,7 +9,7 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**translations** | [**Object**](.md) | | +**translations** | **Object** | | **comments** | [**List**](ModerationAPIComment.md) | | [default to const []] **moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] diff --git a/client/doc/PatchDomainConfigResponse.md b/client/doc/PatchDomainConfigResponse.md index 0241508..3601152 100644 --- a/client/doc/PatchDomainConfigResponse.md +++ b/client/doc/PatchDomainConfigResponse.md @@ -8,10 +8,10 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | [**Object**](.md) | | -**status** | [**Object**](.md) | | -**reason** | **String** | | -**code** | **String** | | +**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/PendingCommentToSyncOutbound.md b/client/doc/PendingCommentToSyncOutbound.md index 050ae3d..9cb7fa8 100644 --- a/client/doc/PendingCommentToSyncOutbound.md +++ b/client/doc/PendingCommentToSyncOutbound.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **eventType** | **double** | | **type** | **double** | | **domain** | **String** | | -**lastError** | [**Object**](.md) | | +**lastError** | **Object** | | **webhookId** | **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/PutDomainConfigResponse.md b/client/doc/PutDomainConfigResponse.md index d0fae45..0eeff0f 100644 --- a/client/doc/PutDomainConfigResponse.md +++ b/client/doc/PutDomainConfigResponse.md @@ -8,10 +8,10 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | [**Object**](.md) | | -**status** | [**Object**](.md) | | -**reason** | **String** | | -**code** | **String** | | +**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/RenderEmailTemplateBody.md b/client/doc/RenderEmailTemplateBody.md index 6946e91..d65d563 100644 --- a/client/doc/RenderEmailTemplateBody.md +++ b/client/doc/RenderEmailTemplateBody.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **emailTemplateId** | **String** | | **ejs** | **String** | | -**testData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**testData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] **translationOverridesByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [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/SaveCommentResponseOptimized.md b/client/doc/SaveCommentResponseOptimized.md index 20ad7c9..9bcd2ac 100644 --- a/client/doc/SaveCommentResponseOptimized.md +++ b/client/doc/SaveCommentResponseOptimized.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **status** | [**APIStatus**](APIStatus.md) | | **comment** | [**PublicComment**](PublicComment.md) | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**moduleData** | **Map** | Construct a type with a set of properties K of type T | [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/SaveCommentsBulkResponse.md b/client/doc/SaveCommentsBulkResponse.md index f3f3006..2de9269 100644 --- a/client/doc/SaveCommentsBulkResponse.md +++ b/client/doc/SaveCommentsBulkResponse.md @@ -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) | | -**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**reason** | **String** | | -**code** | **String** | | +**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** | | [optional] +**code** | **String** | | [optional] **secondaryCode** | **String** | | [optional] **bannedUntil** | **int** | | [optional] **maxCharacterLength** | **int** | | [optional] diff --git a/client/doc/SaveCommentsResponseWithPresence.md b/client/doc/SaveCommentsResponseWithPresence.md index 23644e5..80e0d52 100644 --- a/client/doc/SaveCommentsResponseWithPresence.md +++ b/client/doc/SaveCommentsResponseWithPresence.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **status** | [**APIStatus**](APIStatus.md) | | **comment** | [**PublicComment**](PublicComment.md) | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**moduleData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to const {}] **userIdWS** | **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/SearchUsersResult.md b/client/doc/SearchUsersResult.md index 59cebf4..ff56ee1 100644 --- a/client/doc/SearchUsersResult.md +++ b/client/doc/SearchUsersResult.md @@ -9,8 +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 []] +**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/UpdateEmailTemplateBody.md b/client/doc/UpdateEmailTemplateBody.md index 25f87ff..fd1cb3c 100644 --- a/client/doc/UpdateEmailTemplateBody.md +++ b/client/doc/UpdateEmailTemplateBody.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **ejs** | **String** | | [optional] **domain** | **String** | | [optional] **translationOverridesByLocale** | [**Map>**](Map.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] -**testData** | [**Map**](Object.md) | Construct a type with a set of properties K of type T | [optional] [default to const {}] +**testData** | **Map** | Construct a type with a set of properties K of type T | [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/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/doc/UpdateUserNotificationCommentSubscriptionStatusResponse.md index a050d7d..5a17479 100644 --- a/client/doc/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/client/doc/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -9,9 +9,9 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**matchedCount** | **int** | | -**modifiedCount** | **int** | | -**note** | **String** | | +**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 index 7b90dab..57a9370 100644 --- a/client/doc/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/client/doc/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -9,9 +9,9 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**matchedCount** | **int** | | -**modifiedCount** | **int** | | -**note** | **String** | | +**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/UpdateUserNotificationStatusResponse.md b/client/doc/UpdateUserNotificationStatusResponse.md index ee41e50..c75c653 100644 --- a/client/doc/UpdateUserNotificationStatusResponse.md +++ b/client/doc/UpdateUserNotificationStatusResponse.md @@ -9,9 +9,9 @@ import 'package:fastcomments_dart/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**matchedCount** | **int** | | -**modifiedCount** | **int** | | -**note** | **String** | | +**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/VoteResponse.md b/client/doc/VoteResponse.md index 9e621b7..70db342 100644 --- a/client/doc/VoteResponse.md +++ b/client/doc/VoteResponse.md @@ -8,7 +8,7 @@ import 'package:fastcomments_dart/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**VoteResponseStatus**](VoteResponseStatus.md) | | +**status** | **String** | | **voteId** | **String** | | [optional] **isVerified** | **bool** | | [optional] **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] diff --git a/client/doc/VoteResponseStatus.md b/client/doc/VoteResponseStatus.md deleted file mode 100644 index 88efcf4..0000000 --- a/client/doc/VoteResponseStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# fastcomments_dart.model.VoteResponseStatus - -## 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/lib/api.dart b/client/lib/api.dart index 661e5bd..27757e2 100644 --- a/client/lib/api.dart +++ b/client/lib/api.dart @@ -390,7 +390,6 @@ part 'model/users_list_location.dart'; part 'model/vote_body_params.dart'; part 'model/vote_delete_response.dart'; part 'model/vote_response.dart'; -part 'model/vote_response_status.dart'; part 'model/vote_response_user.dart'; part 'model/vote_style.dart'; diff --git a/client/lib/api_client.dart b/client/lib/api_client.dart index 27c7a4c..5cfb051 100644 --- a/client/lib/api_client.dart +++ b/client/lib/api_client.dart @@ -898,8 +898,6 @@ class ApiClient { return VoteDeleteResponse.fromJson(value); case 'VoteResponse': return VoteResponse.fromJson(value); - case 'VoteResponseStatus': - return VoteResponseStatus.fromJson(value); case 'VoteResponseUser': return VoteResponseUser.fromJson(value); case 'VoteStyle': diff --git a/client/lib/model/add_domain_config_params.dart b/client/lib/model/add_domain_config_params.dart index c7fd02e..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]'; @@ -134,10 +136,8 @@ class AddDomainConfigParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AddDomainConfigParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AddDomainConfigParams[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'domain'), 'Required key "AddDomainConfigParams[domain]" is missing from JSON.'); + assert(json[r'domain'] != null, 'Required key "AddDomainConfigParams[domain]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/add_domain_config_response.dart b/client/lib/model/add_domain_config_response.dart index ef0be64..0ee3306 100644 --- a/client/lib/model/add_domain_config_response.dart +++ b/client/lib/model/add_domain_config_response.dart @@ -13,15 +13,27 @@ part of openapi.api; class AddDomainConfigResponse { /// Returns a new [AddDomainConfigResponse] instance. AddDomainConfigResponse({ - required this.reason, - required this.code, + this.reason, + this.code, required this.status, - required this.configuration, + this.configuration, }); - 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? 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; @@ -30,25 +42,35 @@ class AddDomainConfigResponse { @override bool operator ==(Object other) => identical(this, other) || other is AddDomainConfigResponse && other.reason == reason && - other.code == code && - other.status == status && - other.configuration == configuration; + 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); + (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 { @@ -73,16 +95,13 @@ class AddDomainConfigResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AddDomainConfigResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AddDomainConfigResponse[$key]" has a null value in JSON.'); - }); + 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')!, + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), status: mapValueOfType(json, r'status'), configuration: mapValueOfType(json, r'configuration'), ); @@ -132,10 +151,7 @@ class AddDomainConfigResponse { /// 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_response_any_of.dart b/client/lib/model/add_domain_config_response_any_of.dart index f0cac30..f9e2f61 100644 --- a/client/lib/model/add_domain_config_response_any_of.dart +++ b/client/lib/model/add_domain_config_response_any_of.dart @@ -24,13 +24,15 @@ class AddDomainConfigResponseAnyOf { @override 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() => 'AddDomainConfigResponseAnyOf[configuration=$configuration, status=$status]'; @@ -61,10 +63,8 @@ class AddDomainConfigResponseAnyOf { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AddDomainConfigResponseAnyOf[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AddDomainConfigResponseAnyOf[$key]" has a null value in 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; }()); diff --git a/client/lib/model/add_page_api_response.dart b/client/lib/model/add_page_api_response.dart index a6d4de6..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]'; @@ -95,10 +97,8 @@ class AddPageAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AddPageAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AddPageAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "AddPageAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "AddPageAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/add_sso_user_api_response.dart b/client/lib/model/add_sso_user_api_response.dart index d97ad94..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]'; @@ -95,10 +97,8 @@ class AddSSOUserAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AddSSOUserAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AddSSOUserAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "AddSSOUserAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "AddSSOUserAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/adjust_comment_votes_params.dart b/client/lib/model/adjust_comment_votes_params.dart index d2b8d58..d8afbaf 100644 --- a/client/lib/model/adjust_comment_votes_params.dart +++ b/client/lib/model/adjust_comment_votes_params.dart @@ -21,11 +21,13 @@ class AdjustCommentVotesParams { @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]'; @@ -47,10 +49,8 @@ class AdjustCommentVotesParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AdjustCommentVotesParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AdjustCommentVotesParams[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/adjust_votes_response.dart b/client/lib/model/adjust_votes_response.dart index 0f30ecd..a8790ef 100644 --- a/client/lib/model/adjust_votes_response.dart +++ b/client/lib/model/adjust_votes_response.dart @@ -24,13 +24,15 @@ class AdjustVotesResponse { @override bool operator ==(Object other) => identical(this, other) || other is AdjustVotesResponse && other.status == status && - other.newCommentVotes == newCommentVotes; + other.newCommentVotes == newCommentVotes; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (newCommentVotes.hashCode); + (newCommentVotes.hashCode); + @override String toString() => 'AdjustVotesResponse[status=$status, newCommentVotes=$newCommentVotes]'; @@ -53,10 +55,10 @@ class AdjustVotesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AdjustVotesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AdjustVotesResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/aggregate_question_results_response.dart b/client/lib/model/aggregate_question_results_response.dart index 4675d19..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]'; @@ -53,10 +55,10 @@ class AggregateQuestionResultsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregateQuestionResultsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregateQuestionResultsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "AggregateQuestionResultsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "AggregateQuestionResultsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'data'), 'Required key "AggregateQuestionResultsResponse[data]" is missing from JSON.'); + assert(json[r'data'] != null, 'Required key "AggregateQuestionResultsResponse[data]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/aggregate_response.dart b/client/lib/model/aggregate_response.dart index f3bf100..28fa207 100644 --- a/client/lib/model/aggregate_response.dart +++ b/client/lib/model/aggregate_response.dart @@ -16,8 +16,8 @@ class AggregateResponse { required this.status, this.data = const [], this.stats, - required this.reason, - required this.code, + this.reason, + this.code, this.validResourceNames = const [], }); @@ -33,30 +33,44 @@ class AggregateResponse { /// AggregationResponseStats? stats; - 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; - 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? 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); + _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.hashCode) + - (code.hashCode) + - (validResourceNames.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]'; @@ -70,8 +84,16 @@ class AggregateResponse { } 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; } @@ -87,10 +109,8 @@ class AggregateResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregateResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregateResponse[$key]" has a null value in JSON.'); - }); + 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; }()); @@ -98,8 +118,8 @@ class 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')!, + 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 [], @@ -151,9 +171,6 @@ class AggregateResponse { /// 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/aggregation_api_error.dart b/client/lib/model/aggregation_api_error.dart index 1dc8946..e8e25e0 100644 --- a/client/lib/model/aggregation_api_error.dart +++ b/client/lib/model/aggregation_api_error.dart @@ -30,17 +30,19 @@ class AggregationAPIError { @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); + 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); + (reason.hashCode) + + (code.hashCode) + + (validResourceNames.hashCode); + @override String toString() => 'AggregationAPIError[status=$status, reason=$reason, code=$code, validResourceNames=$validResourceNames]'; @@ -65,10 +67,12 @@ class AggregationAPIError { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregationAPIError[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregationAPIError[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/aggregation_item.dart b/client/lib/model/aggregation_item.dart index 9a43d02..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]'; @@ -48,10 +50,6 @@ class AggregationItem { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregationItem[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregationItem[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/aggregation_operation.dart b/client/lib/model/aggregation_operation.dart index dd94e18..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]'; @@ -87,10 +89,10 @@ class AggregationOperation { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregationOperation[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregationOperation[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'field'), 'Required key "AggregationOperation[field]" is missing from JSON.'); + assert(json[r'field'] != null, 'Required key "AggregationOperation[field]" has a null value in JSON.'); + assert(json.containsKey(r'op'), 'Required key "AggregationOperation[op]" is missing from JSON.'); + assert(json[r'op'] != null, 'Required key "AggregationOperation[op]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/aggregation_request.dart b/client/lib/model/aggregation_request.dart index 619f6fc..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]'; @@ -81,10 +83,10 @@ class AggregationRequest { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregationRequest[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregationRequest[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'resourceName'), 'Required key "AggregationRequest[resourceName]" is missing from JSON.'); + assert(json[r'resourceName'] != null, 'Required key "AggregationRequest[resourceName]" has a null value in JSON.'); + assert(json.containsKey(r'operations'), 'Required key "AggregationRequest[operations]" is missing from JSON.'); + assert(json[r'operations'] != null, 'Required key "AggregationRequest[operations]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/aggregation_request_sort.dart b/client/lib/model/aggregation_request_sort.dart index be93b1b..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]'; @@ -53,10 +55,10 @@ class AggregationRequestSort { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregationRequestSort[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregationRequestSort[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'dir'), 'Required key "AggregationRequestSort[dir]" is missing from JSON.'); + assert(json[r'dir'] != null, 'Required key "AggregationRequestSort[dir]" has a null value in JSON.'); + assert(json.containsKey(r'field'), 'Required key "AggregationRequestSort[field]" is missing from JSON.'); + assert(json[r'field'] != null, 'Required key "AggregationRequestSort[field]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/aggregation_response.dart b/client/lib/model/aggregation_response.dart index 5e95278..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]'; @@ -69,10 +71,10 @@ class AggregationResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregationResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregationResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "AggregationResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "AggregationResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'data'), 'Required key "AggregationResponse[data]" is missing from JSON.'); + assert(json[r'data'] != null, 'Required key "AggregationResponse[data]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/aggregation_response_stats.dart b/client/lib/model/aggregation_response_stats.dart index 154ec85..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]'; @@ -53,10 +55,10 @@ class AggregationResponseStats { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregationResponseStats[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregationResponseStats[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'timeMS'), 'Required key "AggregationResponseStats[timeMS]" is missing from JSON.'); + assert(json[r'timeMS'] != null, 'Required key "AggregationResponseStats[timeMS]" has a null value in JSON.'); + assert(json.containsKey(r'scanned'), 'Required key "AggregationResponseStats[scanned]" is missing from JSON.'); + assert(json[r'scanned'] != null, 'Required key "AggregationResponseStats[scanned]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/aggregation_value.dart b/client/lib/model/aggregation_value.dart index a9444ac..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]'; @@ -103,10 +105,6 @@ class AggregationValue { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AggregationValue[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AggregationValue[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/api_audit_log.dart b/client/lib/model/api_audit_log.dart index b85a058..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]'; @@ -180,10 +182,12 @@ class APIAuditLog { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIAuditLog[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIAuditLog[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "APIAuditLog[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "APIAuditLog[_id]" has a null value in JSON.'); + assert(json.containsKey(r'resourceName'), 'Required key "APIAuditLog[resourceName]" is missing from JSON.'); + assert(json[r'resourceName'] != null, 'Required key "APIAuditLog[resourceName]" has a null value in JSON.'); + assert(json.containsKey(r'crudType'), 'Required key "APIAuditLog[crudType]" is missing from JSON.'); + assert(json[r'crudType'] != null, 'Required key "APIAuditLog[crudType]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_ban_user_change_log.dart b/client/lib/model/api_ban_user_change_log.dart index b76bc8e..698ac30 100644 --- a/client/lib/model/api_ban_user_change_log.dart +++ b/client/lib/model/api_ban_user_change_log.dart @@ -48,17 +48,19 @@ class APIBanUserChangeLog { @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; + 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); + (updatedBannedUserId == null ? 0 : updatedBannedUserId!.hashCode) + + (deletedBannedUsers.hashCode) + + (changedValuesBefore == null ? 0 : changedValuesBefore!.hashCode); + @override String toString() => 'APIBanUserChangeLog[createdBannedUserId=$createdBannedUserId, updatedBannedUserId=$updatedBannedUserId, deletedBannedUsers=$deletedBannedUsers, changedValuesBefore=$changedValuesBefore]'; @@ -95,10 +97,6 @@ class APIBanUserChangeLog { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIBanUserChangeLog[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIBanUserChangeLog[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/api_ban_user_changed_values.dart b/client/lib/model/api_ban_user_changed_values.dart index 17e44b0..23aa832 100644 --- a/client/lib/model/api_ban_user_changed_values.dart +++ b/client/lib/model/api_ban_user_changed_values.dart @@ -105,35 +105,37 @@ class APIBanUserChangedValues { @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; + 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); + (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]'; @@ -219,10 +221,6 @@ class APIBanUserChangedValues { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIBanUserChangedValues[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIBanUserChangedValues[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/api_banned_user.dart b/client/lib/model/api_banned_user.dart index 1b8413d..5aea73c 100644 --- a/client/lib/model/api_banned_user.dart +++ b/client/lib/model/api_banned_user.dart @@ -63,35 +63,37 @@ class APIBannedUser { @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; + 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); + (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]'; @@ -149,10 +151,21 @@ class APIBannedUser { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIBannedUser[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIBannedUser[$key]" has a null value in JSON.'); - }); + 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; }()); 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 index 805f945..28aa08d 100644 --- a/client/lib/model/api_banned_user_with_multi_match_info.dart +++ b/client/lib/model/api_banned_user_with_multi_match_info.dart @@ -51,27 +51,29 @@ class APIBannedUserWithMultiMatchInfo { @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); + 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); + (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]'; @@ -121,10 +123,15 @@ class APIBannedUserWithMultiMatchInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIBannedUserWithMultiMatchInfo[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIBannedUserWithMultiMatchInfo[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/api_comment.dart b/client/lib/model/api_comment.dart index 9fb84b9..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]'; @@ -613,10 +615,26 @@ class APIComment { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIComment[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIComment[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "APIComment[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APIComment[id]" has a null value in JSON.'); + assert(json.containsKey(r'approved'), 'Required key "APIComment[approved]" is missing from JSON.'); + assert(json[r'approved'] != null, 'Required key "APIComment[approved]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "APIComment[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "APIComment[comment]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "APIComment[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "APIComment[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "APIComment[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "APIComment[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'date'), 'Required key "APIComment[date]" is missing from JSON.'); + assert(json.containsKey(r'locale'), 'Required key "APIComment[locale]" is missing from JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "APIComment[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "APIComment[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "APIComment[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "APIComment[url]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "APIComment[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "APIComment[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'verified'), 'Required key "APIComment[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "APIComment[verified]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_comment_base.dart b/client/lib/model/api_comment_base.dart index 9660ab8..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]'; @@ -613,10 +615,26 @@ class APICommentBase { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APICommentBase[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APICommentBase[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "APICommentBase[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APICommentBase[id]" has a null value in JSON.'); + assert(json.containsKey(r'approved'), 'Required key "APICommentBase[approved]" is missing from JSON.'); + assert(json[r'approved'] != null, 'Required key "APICommentBase[approved]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "APICommentBase[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "APICommentBase[comment]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "APICommentBase[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "APICommentBase[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "APICommentBase[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "APICommentBase[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'date'), 'Required key "APICommentBase[date]" is missing from JSON.'); + assert(json.containsKey(r'locale'), 'Required key "APICommentBase[locale]" is missing from JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "APICommentBase[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "APICommentBase[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "APICommentBase[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "APICommentBase[url]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "APICommentBase[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "APICommentBase[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'verified'), 'Required key "APICommentBase[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "APICommentBase[verified]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_comment_base_meta.dart b/client/lib/model/api_comment_base_meta.dart index 0bf2d43..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]'; @@ -73,10 +75,6 @@ class APICommentBaseMeta { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APICommentBaseMeta[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APICommentBaseMeta[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/api_comment_common_banned_user.dart b/client/lib/model/api_comment_common_banned_user.dart index 6ec59dc..4101681 100644 --- a/client/lib/model/api_comment_common_banned_user.dart +++ b/client/lib/model/api_comment_common_banned_user.dart @@ -48,25 +48,27 @@ class APICommentCommonBannedUser { @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; + 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); + (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]'; @@ -115,10 +117,13 @@ class APICommentCommonBannedUser { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APICommentCommonBannedUser[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APICommentCommonBannedUser[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/api_create_user_badge_response.dart b/client/lib/model/api_create_user_badge_response.dart index bacdb7a..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]'; @@ -59,10 +61,10 @@ class APICreateUserBadgeResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APICreateUserBadgeResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APICreateUserBadgeResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APICreateUserBadgeResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APICreateUserBadgeResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'userBadge'), 'Required key "APICreateUserBadgeResponse[userBadge]" is missing from JSON.'); + assert(json[r'userBadge'] != null, 'Required key "APICreateUserBadgeResponse[userBadge]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_domain_configuration.dart b/client/lib/model/api_domain_configuration.dart index cb1350c..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]'; @@ -206,10 +208,12 @@ class APIDomainConfiguration { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIDomainConfiguration[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIDomainConfiguration[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "APIDomainConfiguration[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APIDomainConfiguration[id]" has a null value in JSON.'); + assert(json.containsKey(r'domain'), 'Required key "APIDomainConfiguration[domain]" is missing from JSON.'); + assert(json[r'domain'] != null, 'Required key "APIDomainConfiguration[domain]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "APIDomainConfiguration[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "APIDomainConfiguration[createdAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_empty_response.dart b/client/lib/model/api_empty_response.dart index 9bc087b..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]'; @@ -47,10 +49,8 @@ class APIEmptyResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIEmptyResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIEmptyResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIEmptyResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIEmptyResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_empty_success_response.dart b/client/lib/model/api_empty_success_response.dart index 2725b90..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]'; @@ -47,10 +49,8 @@ class APIEmptySuccessResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIEmptySuccessResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIEmptySuccessResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIEmptySuccessResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIEmptySuccessResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_error.dart b/client/lib/model/api_error.dart index 13bf7ee..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]'; @@ -139,10 +141,12 @@ class APIError { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIError[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIError[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIError[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIError[status]" has a null value in JSON.'); + assert(json.containsKey(r'reason'), 'Required key "APIError[reason]" is missing from JSON.'); + assert(json[r'reason'] != null, 'Required key "APIError[reason]" has a null value in JSON.'); + assert(json.containsKey(r'code'), 'Required key "APIError[code]" is missing from JSON.'); + assert(json[r'code'] != null, 'Required key "APIError[code]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_get_comment_response.dart b/client/lib/model/api_get_comment_response.dart index bbbfbd7..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]'; @@ -53,10 +55,10 @@ class APIGetCommentResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIGetCommentResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIGetCommentResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIGetCommentResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIGetCommentResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "APIGetCommentResponse[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "APIGetCommentResponse[comment]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_get_comments_response.dart b/client/lib/model/api_get_comments_response.dart index 44ac719..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]'; @@ -53,10 +55,10 @@ class APIGetCommentsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIGetCommentsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIGetCommentsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIGetCommentsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIGetCommentsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'comments'), 'Required key "APIGetCommentsResponse[comments]" is missing from JSON.'); + assert(json[r'comments'] != null, 'Required key "APIGetCommentsResponse[comments]" has a null value in JSON.'); return true; }()); 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 bd70924..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]'; @@ -53,10 +55,10 @@ class APIGetUserBadgeProgressListResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIGetUserBadgeProgressListResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIGetUserBadgeProgressListResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIGetUserBadgeProgressListResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIGetUserBadgeProgressListResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'userBadgeProgresses'), 'Required key "APIGetUserBadgeProgressListResponse[userBadgeProgresses]" is missing from JSON.'); + assert(json[r'userBadgeProgresses'] != null, 'Required key "APIGetUserBadgeProgressListResponse[userBadgeProgresses]" has a null value in JSON.'); return true; }()); 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 c26631a..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]'; @@ -53,10 +55,10 @@ class APIGetUserBadgeProgressResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIGetUserBadgeProgressResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIGetUserBadgeProgressResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIGetUserBadgeProgressResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIGetUserBadgeProgressResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'userBadgeProgress'), 'Required key "APIGetUserBadgeProgressResponse[userBadgeProgress]" is missing from JSON.'); + assert(json[r'userBadgeProgress'] != null, 'Required key "APIGetUserBadgeProgressResponse[userBadgeProgress]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_get_user_badge_response.dart b/client/lib/model/api_get_user_badge_response.dart index 11cf519..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]'; @@ -53,10 +55,10 @@ class APIGetUserBadgeResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIGetUserBadgeResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIGetUserBadgeResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIGetUserBadgeResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIGetUserBadgeResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'userBadge'), 'Required key "APIGetUserBadgeResponse[userBadge]" is missing from JSON.'); + assert(json[r'userBadge'] != null, 'Required key "APIGetUserBadgeResponse[userBadge]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_get_user_badges_response.dart b/client/lib/model/api_get_user_badges_response.dart index 086627d..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]'; @@ -53,10 +55,10 @@ class APIGetUserBadgesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIGetUserBadgesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIGetUserBadgesResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APIGetUserBadgesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APIGetUserBadgesResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'userBadges'), 'Required key "APIGetUserBadgesResponse[userBadges]" is missing from JSON.'); + assert(json[r'userBadges'] != null, 'Required key "APIGetUserBadgesResponse[userBadges]" has a null value in JSON.'); return true; }()); 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 index f3e1b90..7a911cb 100644 --- a/client/lib/model/api_moderate_get_user_ban_preferences_response.dart +++ b/client/lib/model/api_moderate_get_user_ban_preferences_response.dart @@ -24,13 +24,15 @@ class APIModerateGetUserBanPreferencesResponse { @override bool operator ==(Object other) => identical(this, other) || other is APIModerateGetUserBanPreferencesResponse && other.preferences == preferences && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (preferences == null ? 0 : preferences!.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'APIModerateGetUserBanPreferencesResponse[preferences=$preferences, status=$status]'; @@ -57,10 +59,9 @@ class APIModerateGetUserBanPreferencesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIModerateGetUserBanPreferencesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIModerateGetUserBanPreferencesResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/api_moderate_user_ban_preferences.dart b/client/lib/model/api_moderate_user_ban_preferences.dart index 80c422e..fe5e875 100644 --- a/client/lib/model/api_moderate_user_ban_preferences.dart +++ b/client/lib/model/api_moderate_user_ban_preferences.dart @@ -30,17 +30,19 @@ class APIModerateUserBanPreferences { @override bool operator ==(Object other) => identical(this, other) || other is APIModerateUserBanPreferences && other.shouldBanEmail == shouldBanEmail && - other.shouldBanByIP == shouldBanByIP && - other.lastBanType == lastBanType && - other.lastBanDuration == lastBanDuration; + other.shouldBanByIP == shouldBanByIP && + other.lastBanType == lastBanType && + other.lastBanDuration == lastBanDuration; + @override int get hashCode => // ignore: unnecessary_parenthesis (shouldBanEmail.hashCode) + - (shouldBanByIP.hashCode) + - (lastBanType.hashCode) + - (lastBanDuration.hashCode); + (shouldBanByIP.hashCode) + + (lastBanType.hashCode) + + (lastBanDuration.hashCode); + @override String toString() => 'APIModerateUserBanPreferences[shouldBanEmail=$shouldBanEmail, shouldBanByIP=$shouldBanByIP, lastBanType=$lastBanType, lastBanDuration=$lastBanDuration]'; @@ -65,10 +67,14 @@ class APIModerateUserBanPreferences { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIModerateUserBanPreferences[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIModerateUserBanPreferences[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/api_page.dart b/client/lib/model/api_page.dart index 6500940..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]'; @@ -115,10 +117,18 @@ class APIPage { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIPage[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIPage[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'rootCommentCount'), 'Required key "APIPage[rootCommentCount]" is missing from JSON.'); + assert(json[r'rootCommentCount'] != null, 'Required key "APIPage[rootCommentCount]" has a null value in JSON.'); + assert(json.containsKey(r'commentCount'), 'Required key "APIPage[commentCount]" is missing from JSON.'); + assert(json[r'commentCount'] != null, 'Required key "APIPage[commentCount]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "APIPage[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "APIPage[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'title'), 'Required key "APIPage[title]" is missing from JSON.'); + assert(json[r'title'] != null, 'Required key "APIPage[title]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "APIPage[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "APIPage[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'id'), 'Required key "APIPage[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APIPage[id]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_save_comment_response.dart b/client/lib/model/api_save_comment_response.dart index 4b05bda..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]'; @@ -70,10 +72,11 @@ class APISaveCommentResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APISaveCommentResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APISaveCommentResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "APISaveCommentResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "APISaveCommentResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "APISaveCommentResponse[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "APISaveCommentResponse[comment]" has a null value in JSON.'); + assert(json.containsKey(r'user'), 'Required key "APISaveCommentResponse[user]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/api_tenant.dart b/client/lib/model/api_tenant.dart index 4c404cf..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]'; @@ -364,10 +366,28 @@ class APITenant { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APITenant[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APITenant[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "APITenant[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APITenant[id]" has a null value in JSON.'); + assert(json.containsKey(r'name'), 'Required key "APITenant[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "APITenant[name]" has a null value in JSON.'); + assert(json.containsKey(r'signUpDate'), 'Required key "APITenant[signUpDate]" is missing from JSON.'); + assert(json[r'signUpDate'] != null, 'Required key "APITenant[signUpDate]" has a null value in JSON.'); + assert(json.containsKey(r'packageId'), 'Required key "APITenant[packageId]" is missing from JSON.'); + assert(json[r'packageId'] != null, 'Required key "APITenant[packageId]" has a null value in JSON.'); + assert(json.containsKey(r'paymentFrequency'), 'Required key "APITenant[paymentFrequency]" is missing from JSON.'); + assert(json[r'paymentFrequency'] != null, 'Required key "APITenant[paymentFrequency]" has a null value in JSON.'); + assert(json.containsKey(r'billingInfoValid'), 'Required key "APITenant[billingInfoValid]" is missing from JSON.'); + assert(json[r'billingInfoValid'] != null, 'Required key "APITenant[billingInfoValid]" has a null value in JSON.'); + assert(json.containsKey(r'createdBy'), 'Required key "APITenant[createdBy]" is missing from JSON.'); + assert(json[r'createdBy'] != null, 'Required key "APITenant[createdBy]" has a null value in JSON.'); + assert(json.containsKey(r'isSetup'), 'Required key "APITenant[isSetup]" is missing from JSON.'); + assert(json[r'isSetup'] != null, 'Required key "APITenant[isSetup]" has a null value in JSON.'); + assert(json.containsKey(r'domainConfiguration'), 'Required key "APITenant[domainConfiguration]" is missing from JSON.'); + assert(json[r'domainConfiguration'] != null, 'Required key "APITenant[domainConfiguration]" has a null value in JSON.'); + assert(json.containsKey(r'enableProfanityFilter'), 'Required key "APITenant[enableProfanityFilter]" is missing from JSON.'); + assert(json[r'enableProfanityFilter'] != null, 'Required key "APITenant[enableProfanityFilter]" has a null value in JSON.'); + assert(json.containsKey(r'enableSpamFilter'), 'Required key "APITenant[enableSpamFilter]" is missing from JSON.'); + assert(json[r'enableSpamFilter'] != null, 'Required key "APITenant[enableSpamFilter]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_tenant_daily_usage.dart b/client/lib/model/api_tenant_daily_usage.dart index b2d5e1d..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]'; @@ -155,10 +157,44 @@ class APITenantDailyUsage { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APITenantDailyUsage[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APITenantDailyUsage[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "APITenantDailyUsage[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APITenantDailyUsage[id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "APITenantDailyUsage[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "APITenantDailyUsage[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'yearNumber'), 'Required key "APITenantDailyUsage[yearNumber]" is missing from JSON.'); + assert(json[r'yearNumber'] != null, 'Required key "APITenantDailyUsage[yearNumber]" has a null value in JSON.'); + assert(json.containsKey(r'monthNumber'), 'Required key "APITenantDailyUsage[monthNumber]" is missing from JSON.'); + assert(json[r'monthNumber'] != null, 'Required key "APITenantDailyUsage[monthNumber]" has a null value in JSON.'); + assert(json.containsKey(r'dayNumber'), 'Required key "APITenantDailyUsage[dayNumber]" is missing from JSON.'); + assert(json[r'dayNumber'] != null, 'Required key "APITenantDailyUsage[dayNumber]" has a null value in JSON.'); + assert(json.containsKey(r'commentFetchCount'), 'Required key "APITenantDailyUsage[commentFetchCount]" is missing from JSON.'); + assert(json[r'commentFetchCount'] != null, 'Required key "APITenantDailyUsage[commentFetchCount]" has a null value in JSON.'); + assert(json.containsKey(r'commentCreateCount'), 'Required key "APITenantDailyUsage[commentCreateCount]" is missing from JSON.'); + assert(json[r'commentCreateCount'] != null, 'Required key "APITenantDailyUsage[commentCreateCount]" has a null value in JSON.'); + assert(json.containsKey(r'conversationCreateCount'), 'Required key "APITenantDailyUsage[conversationCreateCount]" is missing from JSON.'); + assert(json[r'conversationCreateCount'] != null, 'Required key "APITenantDailyUsage[conversationCreateCount]" has a null value in JSON.'); + assert(json.containsKey(r'voteCount'), 'Required key "APITenantDailyUsage[voteCount]" is missing from JSON.'); + assert(json[r'voteCount'] != null, 'Required key "APITenantDailyUsage[voteCount]" has a null value in JSON.'); + assert(json.containsKey(r'accountCreatedCount'), 'Required key "APITenantDailyUsage[accountCreatedCount]" is missing from JSON.'); + assert(json[r'accountCreatedCount'] != null, 'Required key "APITenantDailyUsage[accountCreatedCount]" has a null value in JSON.'); + assert(json.containsKey(r'userMentionSearch'), 'Required key "APITenantDailyUsage[userMentionSearch]" is missing from JSON.'); + assert(json[r'userMentionSearch'] != null, 'Required key "APITenantDailyUsage[userMentionSearch]" has a null value in JSON.'); + assert(json.containsKey(r'hashTagSearch'), 'Required key "APITenantDailyUsage[hashTagSearch]" is missing from JSON.'); + assert(json[r'hashTagSearch'] != null, 'Required key "APITenantDailyUsage[hashTagSearch]" has a null value in JSON.'); + assert(json.containsKey(r'gifSearchTrending'), 'Required key "APITenantDailyUsage[gifSearchTrending]" is missing from JSON.'); + assert(json[r'gifSearchTrending'] != null, 'Required key "APITenantDailyUsage[gifSearchTrending]" has a null value in JSON.'); + assert(json.containsKey(r'gifSearch'), 'Required key "APITenantDailyUsage[gifSearch]" is missing from JSON.'); + assert(json[r'gifSearch'] != null, 'Required key "APITenantDailyUsage[gifSearch]" has a null value in JSON.'); + assert(json.containsKey(r'apiCreditsUsed'), 'Required key "APITenantDailyUsage[apiCreditsUsed]" is missing from JSON.'); + assert(json[r'apiCreditsUsed'] != null, 'Required key "APITenantDailyUsage[apiCreditsUsed]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "APITenantDailyUsage[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "APITenantDailyUsage[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'billed'), 'Required key "APITenantDailyUsage[billed]" is missing from JSON.'); + assert(json[r'billed'] != null, 'Required key "APITenantDailyUsage[billed]" has a null value in JSON.'); + assert(json.containsKey(r'ignored'), 'Required key "APITenantDailyUsage[ignored]" is missing from JSON.'); + assert(json[r'ignored'] != null, 'Required key "APITenantDailyUsage[ignored]" has a null value in JSON.'); + assert(json.containsKey(r'apiErrorCount'), 'Required key "APITenantDailyUsage[apiErrorCount]" is missing from JSON.'); + assert(json[r'apiErrorCount'] != null, 'Required key "APITenantDailyUsage[apiErrorCount]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_ticket.dart b/client/lib/model/api_ticket.dart index 9d3abcc..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]'; @@ -95,10 +97,24 @@ class APITicket { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APITicket[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APITicket[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "APITicket[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "APITicket[_id]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "APITicket[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "APITicket[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'userId'), 'Required key "APITicket[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "APITicket[userId]" has a null value in JSON.'); + assert(json.containsKey(r'managedByTenantId'), 'Required key "APITicket[managedByTenantId]" is missing from JSON.'); + assert(json[r'managedByTenantId'] != null, 'Required key "APITicket[managedByTenantId]" has a null value in JSON.'); + assert(json.containsKey(r'assignedUserIds'), 'Required key "APITicket[assignedUserIds]" is missing from JSON.'); + assert(json[r'assignedUserIds'] != null, 'Required key "APITicket[assignedUserIds]" has a null value in JSON.'); + assert(json.containsKey(r'subject'), 'Required key "APITicket[subject]" is missing from JSON.'); + assert(json[r'subject'] != null, 'Required key "APITicket[subject]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "APITicket[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "APITicket[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'state'), 'Required key "APITicket[state]" is missing from JSON.'); + assert(json[r'state'] != null, 'Required key "APITicket[state]" has a null value in JSON.'); + assert(json.containsKey(r'fileCount'), 'Required key "APITicket[fileCount]" is missing from JSON.'); + assert(json[r'fileCount'] != null, 'Required key "APITicket[fileCount]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_ticket_detail.dart b/client/lib/model/api_ticket_detail.dart index 98b5875..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]'; @@ -131,10 +133,26 @@ class APITicketDetail { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APITicketDetail[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APITicketDetail[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "APITicketDetail[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "APITicketDetail[_id]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "APITicketDetail[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "APITicketDetail[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'userId'), 'Required key "APITicketDetail[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "APITicketDetail[userId]" has a null value in JSON.'); + assert(json.containsKey(r'managedByTenantId'), 'Required key "APITicketDetail[managedByTenantId]" is missing from JSON.'); + assert(json[r'managedByTenantId'] != null, 'Required key "APITicketDetail[managedByTenantId]" has a null value in JSON.'); + assert(json.containsKey(r'assignedUserIds'), 'Required key "APITicketDetail[assignedUserIds]" is missing from JSON.'); + assert(json[r'assignedUserIds'] != null, 'Required key "APITicketDetail[assignedUserIds]" has a null value in JSON.'); + assert(json.containsKey(r'subject'), 'Required key "APITicketDetail[subject]" is missing from JSON.'); + assert(json[r'subject'] != null, 'Required key "APITicketDetail[subject]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "APITicketDetail[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "APITicketDetail[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'state'), 'Required key "APITicketDetail[state]" is missing from JSON.'); + assert(json[r'state'] != null, 'Required key "APITicketDetail[state]" has a null value in JSON.'); + assert(json.containsKey(r'fileCount'), 'Required key "APITicketDetail[fileCount]" is missing from JSON.'); + assert(json[r'fileCount'] != null, 'Required key "APITicketDetail[fileCount]" has a null value in JSON.'); + assert(json.containsKey(r'files'), 'Required key "APITicketDetail[files]" is missing from JSON.'); + assert(json[r'files'] != null, 'Required key "APITicketDetail[files]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_ticket_file.dart b/client/lib/model/api_ticket_file.dart index 6d4ee74..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]'; @@ -111,10 +113,24 @@ class APITicketFile { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APITicketFile[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APITicketFile[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "APITicketFile[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APITicketFile[id]" has a null value in JSON.'); + assert(json.containsKey(r's3Key'), 'Required key "APITicketFile[s3Key]" is missing from JSON.'); + assert(json[r's3Key'] != null, 'Required key "APITicketFile[s3Key]" has a null value in JSON.'); + assert(json.containsKey(r'originalFileName'), 'Required key "APITicketFile[originalFileName]" is missing from JSON.'); + assert(json[r'originalFileName'] != null, 'Required key "APITicketFile[originalFileName]" has a null value in JSON.'); + assert(json.containsKey(r'sizeBytes'), 'Required key "APITicketFile[sizeBytes]" is missing from JSON.'); + assert(json[r'sizeBytes'] != null, 'Required key "APITicketFile[sizeBytes]" has a null value in JSON.'); + assert(json.containsKey(r'contentType'), 'Required key "APITicketFile[contentType]" is missing from JSON.'); + assert(json[r'contentType'] != null, 'Required key "APITicketFile[contentType]" has a null value in JSON.'); + assert(json.containsKey(r'uploadedByUserId'), 'Required key "APITicketFile[uploadedByUserId]" is missing from JSON.'); + assert(json[r'uploadedByUserId'] != null, 'Required key "APITicketFile[uploadedByUserId]" has a null value in JSON.'); + assert(json.containsKey(r'uploadedAt'), 'Required key "APITicketFile[uploadedAt]" is missing from JSON.'); + assert(json[r'uploadedAt'] != null, 'Required key "APITicketFile[uploadedAt]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "APITicketFile[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "APITicketFile[url]" has a null value in JSON.'); + assert(json.containsKey(r'expiresAt'), 'Required key "APITicketFile[expiresAt]" is missing from JSON.'); + assert(json[r'expiresAt'] != null, 'Required key "APITicketFile[expiresAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/api_user_subscription.dart b/client/lib/model/api_user_subscription.dart index 6de7dfa..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]'; @@ -139,10 +141,12 @@ class APIUserSubscription { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APIUserSubscription[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APIUserSubscription[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'createdAt'), 'Required key "APIUserSubscription[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "APIUserSubscription[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "APIUserSubscription[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "APIUserSubscription[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'id'), 'Required key "APIUserSubscription[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APIUserSubscription[id]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/apisso_user.dart b/client/lib/model/apisso_user.dart index 8972e87..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]'; @@ -231,10 +233,30 @@ class APISSOUser { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "APISSOUser[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "APISSOUser[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "APISSOUser[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "APISSOUser[id]" has a null value in JSON.'); + assert(json.containsKey(r'username'), 'Required key "APISSOUser[username]" is missing from JSON.'); + assert(json[r'username'] != null, 'Required key "APISSOUser[username]" has a null value in JSON.'); + assert(json.containsKey(r'websiteUrl'), 'Required key "APISSOUser[websiteUrl]" is missing from JSON.'); + assert(json[r'websiteUrl'] != null, 'Required key "APISSOUser[websiteUrl]" has a null value in JSON.'); + assert(json.containsKey(r'email'), 'Required key "APISSOUser[email]" is missing from JSON.'); + assert(json[r'email'] != null, 'Required key "APISSOUser[email]" has a null value in JSON.'); + assert(json.containsKey(r'signUpDate'), 'Required key "APISSOUser[signUpDate]" is missing from JSON.'); + assert(json[r'signUpDate'] != null, 'Required key "APISSOUser[signUpDate]" has a null value in JSON.'); + assert(json.containsKey(r'createdFromUrlId'), 'Required key "APISSOUser[createdFromUrlId]" is missing from JSON.'); + assert(json[r'createdFromUrlId'] != null, 'Required key "APISSOUser[createdFromUrlId]" has a null value in JSON.'); + assert(json.containsKey(r'loginCount'), 'Required key "APISSOUser[loginCount]" is missing from JSON.'); + assert(json[r'loginCount'] != null, 'Required key "APISSOUser[loginCount]" has a null value in JSON.'); + assert(json.containsKey(r'avatarSrc'), 'Required key "APISSOUser[avatarSrc]" is missing from JSON.'); + assert(json[r'avatarSrc'] != null, 'Required key "APISSOUser[avatarSrc]" has a null value in JSON.'); + assert(json.containsKey(r'optedInNotifications'), 'Required key "APISSOUser[optedInNotifications]" is missing from JSON.'); + assert(json[r'optedInNotifications'] != null, 'Required key "APISSOUser[optedInNotifications]" has a null value in JSON.'); + assert(json.containsKey(r'optedInSubscriptionNotifications'), 'Required key "APISSOUser[optedInSubscriptionNotifications]" is missing from JSON.'); + assert(json[r'optedInSubscriptionNotifications'] != null, 'Required key "APISSOUser[optedInSubscriptionNotifications]" has a null value in JSON.'); + assert(json.containsKey(r'displayLabel'), 'Required key "APISSOUser[displayLabel]" is missing from JSON.'); + assert(json[r'displayLabel'] != null, 'Required key "APISSOUser[displayLabel]" has a null value in JSON.'); + assert(json.containsKey(r'displayName'), 'Required key "APISSOUser[displayName]" is missing from JSON.'); + assert(json[r'displayName'] != null, 'Required key "APISSOUser[displayName]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/award_user_badge_response.dart b/client/lib/model/award_user_badge_response.dart index bd38288..8537ee3 100644 --- a/client/lib/model/award_user_badge_response.dart +++ b/client/lib/model/award_user_badge_response.dart @@ -27,15 +27,17 @@ class AwardUserBadgeResponse { @override bool operator ==(Object other) => identical(this, other) || other is AwardUserBadgeResponse && _deepEquality.equals(other.notes, notes) && - _deepEquality.equals(other.badges, badges) && - other.status == status; + _deepEquality.equals(other.badges, badges) && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (notes.hashCode) + - (badges.hashCode) + - (status.hashCode); + (badges.hashCode) + + (status.hashCode); + @override String toString() => 'AwardUserBadgeResponse[notes=$notes, badges=$badges, status=$status]'; @@ -59,10 +61,8 @@ class AwardUserBadgeResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "AwardUserBadgeResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "AwardUserBadgeResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/ban_user_from_comment_result.dart b/client/lib/model/ban_user_from_comment_result.dart index 6c41580..5a64a84 100644 --- a/client/lib/model/ban_user_from_comment_result.dart +++ b/client/lib/model/ban_user_from_comment_result.dart @@ -48,17 +48,19 @@ class BanUserFromCommentResult { @override bool operator ==(Object other) => identical(this, other) || other is BanUserFromCommentResult && other.status == status && - other.changelog == changelog && - other.code == code && - other.reason == reason; + 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); + (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]'; @@ -95,10 +97,8 @@ class BanUserFromCommentResult { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BanUserFromCommentResult[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BanUserFromCommentResult[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/ban_user_undo_params.dart b/client/lib/model/ban_user_undo_params.dart index b137617..f71f94a 100644 --- a/client/lib/model/ban_user_undo_params.dart +++ b/client/lib/model/ban_user_undo_params.dart @@ -21,11 +21,13 @@ class BanUserUndoParams { @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]'; @@ -47,10 +49,8 @@ class BanUserUndoParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BanUserUndoParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BanUserUndoParams[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/banned_user_match.dart b/client/lib/model/banned_user_match.dart index ba14ba7..20354d4 100644 --- a/client/lib/model/banned_user_match.dart +++ b/client/lib/model/banned_user_match.dart @@ -24,13 +24,15 @@ class BannedUserMatch { @override bool operator ==(Object other) => identical(this, other) || other is BannedUserMatch && other.matchedOn == matchedOn && - other.matchedOnValue == matchedOnValue; + other.matchedOnValue == matchedOnValue; + @override int get hashCode => // ignore: unnecessary_parenthesis (matchedOn.hashCode) + - (matchedOnValue == null ? 0 : matchedOnValue!.hashCode); + (matchedOnValue == null ? 0 : matchedOnValue!.hashCode); + @override String toString() => 'BannedUserMatch[matchedOn=$matchedOn, matchedOnValue=$matchedOnValue]'; @@ -57,10 +59,9 @@ class BannedUserMatch { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BannedUserMatch[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BannedUserMatch[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/banned_user_match_matched_on_value.dart b/client/lib/model/banned_user_match_matched_on_value.dart index 0671ed1..2bbc01f 100644 --- a/client/lib/model/banned_user_match_matched_on_value.dart +++ b/client/lib/model/banned_user_match_matched_on_value.dart @@ -12,15 +12,15 @@ part of openapi.api; class BannedUserMatchMatchedOnValue { /// Returns a new [BannedUserMatchMatchedOnValue] instance. - BannedUserMatchMatchedOnValue({ - }); + BannedUserMatchMatchedOnValue(); @override - bool operator ==(Object other) => identical(this, other) || other is BannedUserMatchMatchedOnValue && + bool operator ==(Object other) => identical(this, other) || other is BannedUserMatchMatchedOnValue; @override int get hashCode => // ignore: unnecessary_parenthesis + 0; @override String toString() => 'BannedUserMatchMatchedOnValue[]'; @@ -41,10 +41,6 @@ class BannedUserMatchMatchedOnValue { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BannedUserMatchMatchedOnValue[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BannedUserMatchMatchedOnValue[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/billing_info.dart b/client/lib/model/billing_info.dart index 16ce633..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]'; @@ -105,10 +107,18 @@ class BillingInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BillingInfo[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BillingInfo[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'name'), 'Required key "BillingInfo[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "BillingInfo[name]" has a null value in JSON.'); + assert(json.containsKey(r'address'), 'Required key "BillingInfo[address]" is missing from JSON.'); + assert(json[r'address'] != null, 'Required key "BillingInfo[address]" has a null value in JSON.'); + assert(json.containsKey(r'city'), 'Required key "BillingInfo[city]" is missing from JSON.'); + assert(json[r'city'] != null, 'Required key "BillingInfo[city]" has a null value in JSON.'); + assert(json.containsKey(r'state'), 'Required key "BillingInfo[state]" is missing from JSON.'); + assert(json[r'state'] != null, 'Required key "BillingInfo[state]" has a null value in JSON.'); + assert(json.containsKey(r'zip'), 'Required key "BillingInfo[zip]" is missing from JSON.'); + assert(json[r'zip'] != null, 'Required key "BillingInfo[zip]" has a null value in JSON.'); + assert(json.containsKey(r'country'), 'Required key "BillingInfo[country]" is missing from JSON.'); + assert(json[r'country'] != null, 'Required key "BillingInfo[country]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/block_from_comment_params.dart b/client/lib/model/block_from_comment_params.dart index 989c423..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]'; @@ -47,10 +49,6 @@ class BlockFromCommentParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BlockFromCommentParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BlockFromCommentParams[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/block_success.dart b/client/lib/model/block_success.dart index bea60c0..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]'; @@ -54,10 +56,10 @@ class BlockSuccess { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BlockSuccess[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BlockSuccess[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "BlockSuccess[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "BlockSuccess[status]" has a null value in JSON.'); + assert(json.containsKey(r'commentStatuses'), 'Required key "BlockSuccess[commentStatuses]" is missing from JSON.'); + assert(json[r'commentStatuses'] != null, 'Required key "BlockSuccess[commentStatuses]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/build_moderation_filter_params.dart b/client/lib/model/build_moderation_filter_params.dart index 170c309..cf289fa 100644 --- a/client/lib/model/build_moderation_filter_params.dart +++ b/client/lib/model/build_moderation_filter_params.dart @@ -51,19 +51,21 @@ class BuildModerationFilterParams { @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; + 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); + (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]'; @@ -101,10 +103,10 @@ class BuildModerationFilterParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BuildModerationFilterParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BuildModerationFilterParams[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/build_moderation_filter_response.dart b/client/lib/model/build_moderation_filter_response.dart index 1429d2e..0767c67 100644 --- a/client/lib/model/build_moderation_filter_response.dart +++ b/client/lib/model/build_moderation_filter_response.dart @@ -24,13 +24,15 @@ class BuildModerationFilterResponse { @override bool operator ==(Object other) => identical(this, other) || other is BuildModerationFilterResponse && other.status == status && - other.moderationFilter == moderationFilter; + other.moderationFilter == moderationFilter; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (moderationFilter.hashCode); + (moderationFilter.hashCode); + @override String toString() => 'BuildModerationFilterResponse[status=$status, moderationFilter=$moderationFilter]'; @@ -53,10 +55,10 @@ class BuildModerationFilterResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BuildModerationFilterResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BuildModerationFilterResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/bulk_aggregate_question_item.dart b/client/lib/model/bulk_aggregate_question_item.dart index 4cffe26..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]'; @@ -117,10 +119,8 @@ class BulkAggregateQuestionItem { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkAggregateQuestionItem[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkAggregateQuestionItem[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'aggId'), 'Required key "BulkAggregateQuestionItem[aggId]" is missing from JSON.'); + assert(json[r'aggId'] != null, 'Required key "BulkAggregateQuestionItem[aggId]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/bulk_aggregate_question_results_request.dart b/client/lib/model/bulk_aggregate_question_results_request.dart index a5c8fa3..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]'; @@ -47,10 +49,8 @@ class BulkAggregateQuestionResultsRequest { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkAggregateQuestionResultsRequest[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkAggregateQuestionResultsRequest[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'aggregations'), 'Required key "BulkAggregateQuestionResultsRequest[aggregations]" is missing from JSON.'); + assert(json[r'aggregations'] != null, 'Required key "BulkAggregateQuestionResultsRequest[aggregations]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/bulk_aggregate_question_results_response.dart b/client/lib/model/bulk_aggregate_question_results_response.dart index 41b4c09..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]'; @@ -54,10 +56,10 @@ class BulkAggregateQuestionResultsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkAggregateQuestionResultsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkAggregateQuestionResultsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "BulkAggregateQuestionResultsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "BulkAggregateQuestionResultsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'data'), 'Required key "BulkAggregateQuestionResultsResponse[data]" is missing from JSON.'); + assert(json[r'data'] != null, 'Required key "BulkAggregateQuestionResultsResponse[data]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/bulk_create_hash_tags_body.dart b/client/lib/model/bulk_create_hash_tags_body.dart index 592baa0..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]'; @@ -63,10 +65,8 @@ class BulkCreateHashTagsBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkCreateHashTagsBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkCreateHashTagsBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'tags'), 'Required key "BulkCreateHashTagsBody[tags]" is missing from JSON.'); + assert(json[r'tags'] != null, 'Required key "BulkCreateHashTagsBody[tags]" has a null value in JSON.'); return true; }()); 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 236f8d9..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]'; @@ -63,10 +65,8 @@ class BulkCreateHashTagsBodyTagsInner { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkCreateHashTagsBodyTagsInner[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkCreateHashTagsBodyTagsInner[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'tag'), 'Required key "BulkCreateHashTagsBodyTagsInner[tag]" is missing from JSON.'); + assert(json[r'tag'] != null, 'Required key "BulkCreateHashTagsBodyTagsInner[tag]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/bulk_create_hash_tags_response.dart b/client/lib/model/bulk_create_hash_tags_response.dart index 7ab3324..6ccd419 100644 --- a/client/lib/model/bulk_create_hash_tags_response.dart +++ b/client/lib/model/bulk_create_hash_tags_response.dart @@ -24,13 +24,15 @@ class BulkCreateHashTagsResponse { @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]'; @@ -53,10 +55,10 @@ class BulkCreateHashTagsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkCreateHashTagsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkCreateHashTagsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "BulkCreateHashTagsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "BulkCreateHashTagsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'results'), 'Required key "BulkCreateHashTagsResponse[results]" is missing from JSON.'); + assert(json[r'results'] != null, 'Required key "BulkCreateHashTagsResponse[results]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/bulk_create_hash_tags_response_results_inner.dart b/client/lib/model/bulk_create_hash_tags_response_results_inner.dart index 2027e8b..1ab2cb8 100644 --- a/client/lib/model/bulk_create_hash_tags_response_results_inner.dart +++ b/client/lib/model/bulk_create_hash_tags_response_results_inner.dart @@ -14,9 +14,9 @@ class BulkCreateHashTagsResponseResultsInner { /// Returns a new [BulkCreateHashTagsResponseResultsInner] instance. BulkCreateHashTagsResponseResultsInner({ required this.status, - required this.hashTag, - required this.reason, - required this.code, + this.hashTag, + this.reason, + this.code, this.secondaryCode, this.bannedUntil, this.maxCharacterLength, @@ -26,11 +26,29 @@ class BulkCreateHashTagsResponseResultsInner { APIStatus status; - TenantHashTag hashTag; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + 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; - 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? code; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -75,27 +93,29 @@ class BulkCreateHashTagsResponseResultsInner { @override bool operator ==(Object other) => identical(this, other) || other is BulkCreateHashTagsResponseResultsInner && 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; + 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); + (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() => 'BulkCreateHashTagsResponseResultsInner[status=$status, hashTag=$hashTag, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; @@ -103,9 +123,21 @@ class BulkCreateHashTagsResponseResultsInner { Map toJson() { final json = {}; json[r'status'] = this.status; + if (this.hashTag != null) { json[r'hashTag'] = this.hashTag; + } else { + json[r'hashTag'] = 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; + } if (this.secondaryCode != null) { json[r'secondaryCode'] = this.secondaryCode; } else { @@ -145,18 +177,16 @@ class BulkCreateHashTagsResponseResultsInner { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkCreateHashTagsResponseResultsInner[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkCreateHashTagsResponseResultsInner[$key]" 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 BulkCreateHashTagsResponseResultsInner( status: APIStatus.fromJson(json[r'status'])!, - hashTag: TenantHashTag.fromJson(json[r'hashTag'])!, - reason: mapValueOfType(json, r'reason')!, - code: mapValueOfType(json, r'code')!, + 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'), @@ -210,9 +240,6 @@ class BulkCreateHashTagsResponseResultsInner { /// 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/bulk_pre_ban_params.dart b/client/lib/model/bulk_pre_ban_params.dart index cae9c49..3080bb4 100644 --- a/client/lib/model/bulk_pre_ban_params.dart +++ b/client/lib/model/bulk_pre_ban_params.dart @@ -21,11 +21,13 @@ class BulkPreBanParams { @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]'; @@ -47,10 +49,8 @@ class BulkPreBanParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkPreBanParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkPreBanParams[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/bulk_pre_ban_summary.dart b/client/lib/model/bulk_pre_ban_summary.dart index 500732e..0db157c 100644 --- a/client/lib/model/bulk_pre_ban_summary.dart +++ b/client/lib/model/bulk_pre_ban_summary.dart @@ -36,21 +36,23 @@ class BulkPreBanSummary { @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); + 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); + (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]'; @@ -77,10 +79,18 @@ class BulkPreBanSummary { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "BulkPreBanSummary[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "BulkPreBanSummary[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/change_comment_pin_status_response.dart b/client/lib/model/change_comment_pin_status_response.dart index 04ad2eb..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]'; @@ -54,10 +56,10 @@ class ChangeCommentPinStatusResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ChangeCommentPinStatusResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ChangeCommentPinStatusResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'commentPositions'), 'Required key "ChangeCommentPinStatusResponse[commentPositions]" is missing from JSON.'); + assert(json[r'commentPositions'] != null, 'Required key "ChangeCommentPinStatusResponse[commentPositions]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "ChangeCommentPinStatusResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ChangeCommentPinStatusResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/change_ticket_state_body.dart b/client/lib/model/change_ticket_state_body.dart index 25ee0f0..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]'; @@ -47,10 +49,8 @@ class ChangeTicketStateBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ChangeTicketStateBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ChangeTicketStateBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'state'), 'Required key "ChangeTicketStateBody[state]" is missing from JSON.'); + assert(json[r'state'] != null, 'Required key "ChangeTicketStateBody[state]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/change_ticket_state_response.dart b/client/lib/model/change_ticket_state_response.dart index 0d4bf2d..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]'; @@ -53,10 +55,10 @@ class ChangeTicketStateResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ChangeTicketStateResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ChangeTicketStateResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "ChangeTicketStateResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ChangeTicketStateResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'ticket'), 'Required key "ChangeTicketStateResponse[ticket]" is missing from JSON.'); + assert(json[r'ticket'] != null, 'Required key "ChangeTicketStateResponse[ticket]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/check_blocked_comments_response.dart b/client/lib/model/check_blocked_comments_response.dart index 5b62d30..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]'; @@ -54,10 +56,10 @@ class CheckBlockedCommentsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CheckBlockedCommentsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CheckBlockedCommentsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'commentStatuses'), 'Required key "CheckBlockedCommentsResponse[commentStatuses]" is missing from JSON.'); + assert(json[r'commentStatuses'] != null, 'Required key "CheckBlockedCommentsResponse[commentStatuses]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "CheckBlockedCommentsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CheckBlockedCommentsResponse[status]" has a null value in JSON.'); return true; }()); 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 bb1a053..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]'; @@ -53,10 +55,10 @@ class CombineQuestionResultsWithCommentsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CombineQuestionResultsWithCommentsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CombineQuestionResultsWithCommentsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CombineQuestionResultsWithCommentsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CombineQuestionResultsWithCommentsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'data'), 'Required key "CombineQuestionResultsWithCommentsResponse[data]" is missing from JSON.'); + assert(json[r'data'] != null, 'Required key "CombineQuestionResultsWithCommentsResponse[data]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/comment_data.dart b/client/lib/model/comment_data.dart index e92a89c..7c2b7bb 100644 --- a/client/lib/model/comment_data.dart +++ b/client/lib/model/comment_data.dart @@ -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]'; @@ -338,10 +340,14 @@ class CommentData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CommentData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CommentData[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'commenterName'), 'Required key "CommentData[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "CommentData[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "CommentData[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "CommentData[comment]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "CommentData[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "CommentData[url]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "CommentData[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "CommentData[urlId]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/comment_log_data.dart b/client/lib/model/comment_log_data.dart index a13831b..b5d2baf 100644 --- a/client/lib/model/comment_log_data.dart +++ b/client/lib/model/comment_log_data.dart @@ -375,103 +375,105 @@ 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.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; + 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) + - (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); + (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, 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]'; @@ -727,10 +729,6 @@ class CommentLogData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CommentLogData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CommentLogData[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/comment_log_entry.dart b/client/lib/model/comment_log_entry.dart index bd0cbef..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]'; @@ -69,10 +71,10 @@ class CommentLogEntry { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CommentLogEntry[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CommentLogEntry[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'd'), 'Required key "CommentLogEntry[d]" is missing from JSON.'); + assert(json[r'd'] != null, 'Required key "CommentLogEntry[d]" has a null value in JSON.'); + assert(json.containsKey(r't'), 'Required key "CommentLogEntry[t]" is missing from JSON.'); + assert(json[r't'] != null, 'Required key "CommentLogEntry[t]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/comment_text_update_request.dart b/client/lib/model/comment_text_update_request.dart index c81cfcc..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]'; @@ -59,10 +61,8 @@ class CommentTextUpdateRequest { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CommentTextUpdateRequest[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CommentTextUpdateRequest[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'comment'), 'Required key "CommentTextUpdateRequest[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "CommentTextUpdateRequest[comment]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/comment_user_badge_info.dart b/client/lib/model/comment_user_badge_info.dart index bec33f9..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]'; @@ -119,10 +121,12 @@ class CommentUserBadgeInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CommentUserBadgeInfo[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CommentUserBadgeInfo[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "CommentUserBadgeInfo[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "CommentUserBadgeInfo[id]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "CommentUserBadgeInfo[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "CommentUserBadgeInfo[type]" has a null value in JSON.'); + assert(json.containsKey(r'description'), 'Required key "CommentUserBadgeInfo[description]" is missing from JSON.'); + assert(json[r'description'] != null, 'Required key "CommentUserBadgeInfo[description]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/comment_user_hash_tag_info.dart b/client/lib/model/comment_user_hash_tag_info.dart index 17cc85b..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]'; @@ -79,10 +81,11 @@ class CommentUserHashTagInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CommentUserHashTagInfo[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CommentUserHashTagInfo[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "CommentUserHashTagInfo[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "CommentUserHashTagInfo[id]" has a null value in JSON.'); + assert(json.containsKey(r'tag'), 'Required key "CommentUserHashTagInfo[tag]" is missing from JSON.'); + assert(json[r'tag'] != null, 'Required key "CommentUserHashTagInfo[tag]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "CommentUserHashTagInfo[url]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/comment_user_mention_info.dart b/client/lib/model/comment_user_mention_info.dart index cfefdf2..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]'; @@ -95,10 +97,10 @@ class CommentUserMentionInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CommentUserMentionInfo[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CommentUserMentionInfo[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "CommentUserMentionInfo[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "CommentUserMentionInfo[id]" has a null value in JSON.'); + assert(json.containsKey(r'tag'), 'Required key "CommentUserMentionInfo[tag]" is missing from JSON.'); + assert(json[r'tag'] != null, 'Required key "CommentUserMentionInfo[tag]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/comments_by_ids_params.dart b/client/lib/model/comments_by_ids_params.dart index 69bb874..e66f5c4 100644 --- a/client/lib/model/comments_by_ids_params.dart +++ b/client/lib/model/comments_by_ids_params.dart @@ -21,11 +21,13 @@ class CommentsByIdsParams { @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]'; @@ -47,10 +49,8 @@ class CommentsByIdsParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CommentsByIdsParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CommentsByIdsParams[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/create_api_page_data.dart b/client/lib/model/create_api_page_data.dart index c253b55..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]'; @@ -97,10 +99,12 @@ class CreateAPIPageData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateAPIPageData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateAPIPageData[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'title'), 'Required key "CreateAPIPageData[title]" is missing from JSON.'); + assert(json[r'title'] != null, 'Required key "CreateAPIPageData[title]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "CreateAPIPageData[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "CreateAPIPageData[url]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "CreateAPIPageData[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "CreateAPIPageData[urlId]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_api_user_subscription_data.dart b/client/lib/model/create_api_user_subscription_data.dart index 227cd84..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]'; @@ -127,10 +129,8 @@ class CreateAPIUserSubscriptionData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateAPIUserSubscriptionData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateAPIUserSubscriptionData[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'urlId'), 'Required key "CreateAPIUserSubscriptionData[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "CreateAPIUserSubscriptionData[urlId]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_apisso_user_data.dart b/client/lib/model/create_apisso_user_data.dart index aef27e9..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]'; @@ -321,10 +323,12 @@ class CreateAPISSOUserData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateAPISSOUserData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateAPISSOUserData[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'email'), 'Required key "CreateAPISSOUserData[email]" is missing from JSON.'); + assert(json[r'email'] != null, 'Required key "CreateAPISSOUserData[email]" has a null value in JSON.'); + assert(json.containsKey(r'username'), 'Required key "CreateAPISSOUserData[username]" is missing from JSON.'); + assert(json[r'username'] != null, 'Required key "CreateAPISSOUserData[username]" has a null value in JSON.'); + assert(json.containsKey(r'id'), 'Required key "CreateAPISSOUserData[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "CreateAPISSOUserData[id]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_comment_params.dart b/client/lib/model/create_comment_params.dart index bbc71bd..691fc7c 100644 --- a/client/lib/model/create_comment_params.dart +++ b/client/lib/model/create_comment_params.dart @@ -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]'; @@ -489,10 +491,16 @@ class CreateCommentParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateCommentParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateCommentParams[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'commenterName'), 'Required key "CreateCommentParams[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "CreateCommentParams[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "CreateCommentParams[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "CreateCommentParams[comment]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "CreateCommentParams[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "CreateCommentParams[url]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "CreateCommentParams[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "CreateCommentParams[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'locale'), 'Required key "CreateCommentParams[locale]" is missing from JSON.'); + assert(json[r'locale'] != null, 'Required key "CreateCommentParams[locale]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_email_template_body.dart b/client/lib/model/create_email_template_body.dart index 0fad73c..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]'; @@ -89,10 +91,12 @@ class CreateEmailTemplateBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateEmailTemplateBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateEmailTemplateBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'emailTemplateId'), 'Required key "CreateEmailTemplateBody[emailTemplateId]" is missing from JSON.'); + assert(json[r'emailTemplateId'] != null, 'Required key "CreateEmailTemplateBody[emailTemplateId]" has a null value in JSON.'); + assert(json.containsKey(r'displayName'), 'Required key "CreateEmailTemplateBody[displayName]" is missing from JSON.'); + assert(json[r'displayName'] != null, 'Required key "CreateEmailTemplateBody[displayName]" has a null value in JSON.'); + assert(json.containsKey(r'ejs'), 'Required key "CreateEmailTemplateBody[ejs]" is missing from JSON.'); + assert(json[r'ejs'] != null, 'Required key "CreateEmailTemplateBody[ejs]" has a null value in JSON.'); return true; }()); @@ -101,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 535b96b..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]'; @@ -53,10 +55,10 @@ class CreateEmailTemplateResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateEmailTemplateResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateEmailTemplateResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateEmailTemplateResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateEmailTemplateResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'emailTemplate'), 'Required key "CreateEmailTemplateResponse[emailTemplate]" is missing from JSON.'); + assert(json[r'emailTemplate'] != null, 'Required key "CreateEmailTemplateResponse[emailTemplate]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_feed_post_params.dart b/client/lib/model/create_feed_post_params.dart index 1b1822f..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]'; @@ -130,10 +132,6 @@ class CreateFeedPostParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateFeedPostParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateFeedPostParams[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/create_feed_post_response.dart b/client/lib/model/create_feed_post_response.dart index 9f1b728..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]'; @@ -53,10 +55,10 @@ class CreateFeedPostResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateFeedPostResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateFeedPostResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateFeedPostResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateFeedPostResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'feedPost'), 'Required key "CreateFeedPostResponse[feedPost]" is missing from JSON.'); + assert(json[r'feedPost'] != null, 'Required key "CreateFeedPostResponse[feedPost]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_feed_posts_response.dart b/client/lib/model/create_feed_posts_response.dart index 124e2b9..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]'; @@ -53,10 +55,10 @@ class CreateFeedPostsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateFeedPostsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateFeedPostsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateFeedPostsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateFeedPostsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'feedPost'), 'Required key "CreateFeedPostsResponse[feedPost]" is missing from JSON.'); + assert(json[r'feedPost'] != null, 'Required key "CreateFeedPostsResponse[feedPost]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_hash_tag_body.dart b/client/lib/model/create_hash_tag_body.dart index 8291f54..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]'; @@ -79,10 +81,8 @@ class CreateHashTagBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateHashTagBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateHashTagBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'tag'), 'Required key "CreateHashTagBody[tag]" is missing from JSON.'); + assert(json[r'tag'] != null, 'Required key "CreateHashTagBody[tag]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_hash_tag_response.dart b/client/lib/model/create_hash_tag_response.dart index 2ad99d8..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]'; @@ -53,10 +55,10 @@ class CreateHashTagResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateHashTagResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateHashTagResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateHashTagResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateHashTagResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'hashTag'), 'Required key "CreateHashTagResponse[hashTag]" is missing from JSON.'); + assert(json[r'hashTag'] != null, 'Required key "CreateHashTagResponse[hashTag]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_moderator_body.dart b/client/lib/model/create_moderator_body.dart index 64be2f0..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]'; @@ -75,10 +77,10 @@ class CreateModeratorBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateModeratorBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateModeratorBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'name'), 'Required key "CreateModeratorBody[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "CreateModeratorBody[name]" has a null value in JSON.'); + assert(json.containsKey(r'email'), 'Required key "CreateModeratorBody[email]" is missing from JSON.'); + assert(json[r'email'] != null, 'Required key "CreateModeratorBody[email]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_moderator_response.dart b/client/lib/model/create_moderator_response.dart index 27ae30a..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]'; @@ -53,10 +55,10 @@ class CreateModeratorResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateModeratorResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateModeratorResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateModeratorResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateModeratorResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'moderator'), 'Required key "CreateModeratorResponse[moderator]" is missing from JSON.'); + assert(json[r'moderator'] != null, 'Required key "CreateModeratorResponse[moderator]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_question_config_body.dart b/client/lib/model/create_question_config_body.dart index ef7e7aa..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]'; @@ -205,10 +207,14 @@ class CreateQuestionConfigBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateQuestionConfigBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateQuestionConfigBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'name'), 'Required key "CreateQuestionConfigBody[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "CreateQuestionConfigBody[name]" has a null value in JSON.'); + assert(json.containsKey(r'question'), 'Required key "CreateQuestionConfigBody[question]" is missing from JSON.'); + assert(json[r'question'] != null, 'Required key "CreateQuestionConfigBody[question]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "CreateQuestionConfigBody[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "CreateQuestionConfigBody[type]" has a null value in JSON.'); + assert(json.containsKey(r'reportingOrder'), 'Required key "CreateQuestionConfigBody[reportingOrder]" is missing from JSON.'); + assert(json[r'reportingOrder'] != null, 'Required key "CreateQuestionConfigBody[reportingOrder]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_question_config_response.dart b/client/lib/model/create_question_config_response.dart index 14a6ed2..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]'; @@ -53,10 +55,10 @@ class CreateQuestionConfigResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateQuestionConfigResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateQuestionConfigResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateQuestionConfigResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateQuestionConfigResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'questionConfig'), 'Required key "CreateQuestionConfigResponse[questionConfig]" is missing from JSON.'); + assert(json[r'questionConfig'] != null, 'Required key "CreateQuestionConfigResponse[questionConfig]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_question_result_body.dart b/client/lib/model/create_question_result_body.dart index 3a93274..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]'; @@ -117,10 +119,12 @@ class CreateQuestionResultBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateQuestionResultBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateQuestionResultBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'urlId'), 'Required key "CreateQuestionResultBody[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "CreateQuestionResultBody[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'value'), 'Required key "CreateQuestionResultBody[value]" is missing from JSON.'); + assert(json[r'value'] != null, 'Required key "CreateQuestionResultBody[value]" has a null value in JSON.'); + assert(json.containsKey(r'questionId'), 'Required key "CreateQuestionResultBody[questionId]" is missing from JSON.'); + assert(json[r'questionId'] != null, 'Required key "CreateQuestionResultBody[questionId]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_question_result_response.dart b/client/lib/model/create_question_result_response.dart index 00030a5..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]'; @@ -53,10 +55,10 @@ class CreateQuestionResultResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateQuestionResultResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateQuestionResultResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateQuestionResultResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateQuestionResultResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'questionResult'), 'Required key "CreateQuestionResultResponse[questionResult]" is missing from JSON.'); + assert(json[r'questionResult'] != null, 'Required key "CreateQuestionResultResponse[questionResult]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_subscription_api_response.dart b/client/lib/model/create_subscription_api_response.dart index 08e0f93..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]'; @@ -95,10 +97,8 @@ class CreateSubscriptionAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateSubscriptionAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateSubscriptionAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateSubscriptionAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateSubscriptionAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_tenant_body.dart b/client/lib/model/create_tenant_body.dart index b9e1597..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]'; @@ -380,10 +382,10 @@ class CreateTenantBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateTenantBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateTenantBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'name'), 'Required key "CreateTenantBody[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "CreateTenantBody[name]" has a null value in JSON.'); + assert(json.containsKey(r'domainConfiguration'), 'Required key "CreateTenantBody[domainConfiguration]" is missing from JSON.'); + assert(json[r'domainConfiguration'] != null, 'Required key "CreateTenantBody[domainConfiguration]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_tenant_package_body.dart b/client/lib/model/create_tenant_package_body.dart index bdd311a..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]'; @@ -671,10 +673,32 @@ class CreateTenantPackageBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateTenantPackageBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateTenantPackageBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'name'), 'Required key "CreateTenantPackageBody[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "CreateTenantPackageBody[name]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyPageLoads'), 'Required key "CreateTenantPackageBody[maxMonthlyPageLoads]" is missing from JSON.'); + assert(json[r'maxMonthlyPageLoads'] != null, 'Required key "CreateTenantPackageBody[maxMonthlyPageLoads]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyAPICredits'), 'Required key "CreateTenantPackageBody[maxMonthlyAPICredits]" is missing from JSON.'); + assert(json[r'maxMonthlyAPICredits'] != null, 'Required key "CreateTenantPackageBody[maxMonthlyAPICredits]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyComments'), 'Required key "CreateTenantPackageBody[maxMonthlyComments]" is missing from JSON.'); + assert(json[r'maxMonthlyComments'] != null, 'Required key "CreateTenantPackageBody[maxMonthlyComments]" has a null value in JSON.'); + assert(json.containsKey(r'maxConcurrentUsers'), 'Required key "CreateTenantPackageBody[maxConcurrentUsers]" is missing from JSON.'); + assert(json[r'maxConcurrentUsers'] != null, 'Required key "CreateTenantPackageBody[maxConcurrentUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxTenantUsers'), 'Required key "CreateTenantPackageBody[maxTenantUsers]" is missing from JSON.'); + assert(json[r'maxTenantUsers'] != null, 'Required key "CreateTenantPackageBody[maxTenantUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxSSOUsers'), 'Required key "CreateTenantPackageBody[maxSSOUsers]" is missing from JSON.'); + assert(json[r'maxSSOUsers'] != null, 'Required key "CreateTenantPackageBody[maxSSOUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxModerators'), 'Required key "CreateTenantPackageBody[maxModerators]" is missing from JSON.'); + assert(json[r'maxModerators'] != null, 'Required key "CreateTenantPackageBody[maxModerators]" has a null value in JSON.'); + assert(json.containsKey(r'maxDomains'), 'Required key "CreateTenantPackageBody[maxDomains]" is missing from JSON.'); + assert(json[r'maxDomains'] != null, 'Required key "CreateTenantPackageBody[maxDomains]" has a null value in JSON.'); + assert(json.containsKey(r'hasDebranding'), 'Required key "CreateTenantPackageBody[hasDebranding]" is missing from JSON.'); + assert(json[r'hasDebranding'] != null, 'Required key "CreateTenantPackageBody[hasDebranding]" has a null value in JSON.'); + assert(json.containsKey(r'forWhoText'), 'Required key "CreateTenantPackageBody[forWhoText]" is missing from JSON.'); + assert(json[r'forWhoText'] != null, 'Required key "CreateTenantPackageBody[forWhoText]" has a null value in JSON.'); + assert(json.containsKey(r'featureTaglines'), 'Required key "CreateTenantPackageBody[featureTaglines]" is missing from JSON.'); + assert(json[r'featureTaglines'] != null, 'Required key "CreateTenantPackageBody[featureTaglines]" has a null value in JSON.'); + assert(json.containsKey(r'hasFlexPricing'), 'Required key "CreateTenantPackageBody[hasFlexPricing]" is missing from JSON.'); + assert(json[r'hasFlexPricing'] != null, 'Required key "CreateTenantPackageBody[hasFlexPricing]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_tenant_package_response.dart b/client/lib/model/create_tenant_package_response.dart index 90fdc82..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]'; @@ -53,10 +55,10 @@ class CreateTenantPackageResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateTenantPackageResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateTenantPackageResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateTenantPackageResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateTenantPackageResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenantPackage'), 'Required key "CreateTenantPackageResponse[tenantPackage]" is missing from JSON.'); + assert(json[r'tenantPackage'] != null, 'Required key "CreateTenantPackageResponse[tenantPackage]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_tenant_response.dart b/client/lib/model/create_tenant_response.dart index b013b65..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]'; @@ -53,10 +55,10 @@ class CreateTenantResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateTenantResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateTenantResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateTenantResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateTenantResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenant'), 'Required key "CreateTenantResponse[tenant]" is missing from JSON.'); + assert(json[r'tenant'] != null, 'Required key "CreateTenantResponse[tenant]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_tenant_user_body.dart b/client/lib/model/create_tenant_user_body.dart index d3015c2..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]'; @@ -395,10 +397,10 @@ class CreateTenantUserBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateTenantUserBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateTenantUserBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'username'), 'Required key "CreateTenantUserBody[username]" is missing from JSON.'); + assert(json[r'username'] != null, 'Required key "CreateTenantUserBody[username]" has a null value in JSON.'); + assert(json.containsKey(r'email'), 'Required key "CreateTenantUserBody[email]" is missing from JSON.'); + assert(json[r'email'] != null, 'Required key "CreateTenantUserBody[email]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_tenant_user_response.dart b/client/lib/model/create_tenant_user_response.dart index 0abeb03..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]'; @@ -53,10 +55,10 @@ class CreateTenantUserResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateTenantUserResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateTenantUserResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateTenantUserResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateTenantUserResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenantUser'), 'Required key "CreateTenantUserResponse[tenantUser]" is missing from JSON.'); + assert(json[r'tenantUser'] != null, 'Required key "CreateTenantUserResponse[tenantUser]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_ticket_body.dart b/client/lib/model/create_ticket_body.dart index 98b4cf5..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]'; @@ -47,10 +49,8 @@ class CreateTicketBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateTicketBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateTicketBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'subject'), 'Required key "CreateTicketBody[subject]" is missing from JSON.'); + assert(json[r'subject'] != null, 'Required key "CreateTicketBody[subject]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_ticket_response.dart b/client/lib/model/create_ticket_response.dart index 636f04d..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]'; @@ -53,10 +55,10 @@ class CreateTicketResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateTicketResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateTicketResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "CreateTicketResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "CreateTicketResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'ticket'), 'Required key "CreateTicketResponse[ticket]" is missing from JSON.'); + assert(json[r'ticket'] != null, 'Required key "CreateTicketResponse[ticket]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_user_badge_params.dart b/client/lib/model/create_user_badge_params.dart index 1530242..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]'; @@ -69,10 +71,10 @@ class CreateUserBadgeParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateUserBadgeParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateUserBadgeParams[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'userId'), 'Required key "CreateUserBadgeParams[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "CreateUserBadgeParams[userId]" has a null value in JSON.'); + assert(json.containsKey(r'badgeId'), 'Required key "CreateUserBadgeParams[badgeId]" is missing from JSON.'); + assert(json[r'badgeId'] != null, 'Required key "CreateUserBadgeParams[badgeId]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/create_v1_page_react.dart b/client/lib/model/create_v1_page_react.dart index df71e62..7ea471f 100644 --- a/client/lib/model/create_v1_page_react.dart +++ b/client/lib/model/create_v1_page_react.dart @@ -30,13 +30,15 @@ class CreateV1PageReact { @override bool operator ==(Object other) => identical(this, other) || other is CreateV1PageReact && other.code == code && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (code == null ? 0 : code!.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'CreateV1PageReact[code=$code, status=$status]'; @@ -63,10 +65,8 @@ class CreateV1PageReact { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CreateV1PageReact[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CreateV1PageReact[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/custom_config_parameters.dart b/client/lib/model/custom_config_parameters.dart index 4c9e682..226aefe 100644 --- a/client/lib/model/custom_config_parameters.dart +++ b/client/lib/model/custom_config_parameters.dart @@ -691,185 +691,187 @@ 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.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; + 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) + - (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); + (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, 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]'; @@ -1322,10 +1324,6 @@ class CustomConfigParameters { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CustomConfigParameters[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CustomConfigParameters[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/custom_email_template.dart b/client/lib/model/custom_email_template.dart index 707f0b2..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]'; @@ -124,10 +126,23 @@ class CustomEmailTemplate { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "CustomEmailTemplate[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "CustomEmailTemplate[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "CustomEmailTemplate[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "CustomEmailTemplate[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "CustomEmailTemplate[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "CustomEmailTemplate[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'emailTemplateId'), 'Required key "CustomEmailTemplate[emailTemplateId]" is missing from JSON.'); + assert(json[r'emailTemplateId'] != null, 'Required key "CustomEmailTemplate[emailTemplateId]" has a null value in JSON.'); + assert(json.containsKey(r'displayName'), 'Required key "CustomEmailTemplate[displayName]" is missing from JSON.'); + assert(json[r'displayName'] != null, 'Required key "CustomEmailTemplate[displayName]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "CustomEmailTemplate[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "CustomEmailTemplate[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'updatedAt'), 'Required key "CustomEmailTemplate[updatedAt]" is missing from JSON.'); + assert(json.containsKey(r'updatedByUserId'), 'Required key "CustomEmailTemplate[updatedByUserId]" is missing from JSON.'); + assert(json.containsKey(r'ejs'), 'Required key "CustomEmailTemplate[ejs]" is missing from JSON.'); + assert(json[r'ejs'] != null, 'Required key "CustomEmailTemplate[ejs]" has a null value in JSON.'); + assert(json.containsKey(r'translationOverridesByLocale'), 'Required key "CustomEmailTemplate[translationOverridesByLocale]" is missing from JSON.'); + assert(json[r'translationOverridesByLocale'] != null, 'Required key "CustomEmailTemplate[translationOverridesByLocale]" has a null value in JSON.'); + assert(json.containsKey(r'testData'), 'Required key "CustomEmailTemplate[testData]" is missing from JSON.'); return true; }()); @@ -141,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_comment_result.dart b/client/lib/model/delete_comment_result.dart index ad2a47d..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]'; @@ -53,10 +55,10 @@ class DeleteCommentResult { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "DeleteCommentResult[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "DeleteCommentResult[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'action'), 'Required key "DeleteCommentResult[action]" is missing from JSON.'); + assert(json[r'action'] != null, 'Required key "DeleteCommentResult[action]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "DeleteCommentResult[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "DeleteCommentResult[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/delete_domain_config_response.dart b/client/lib/model/delete_domain_config_response.dart index 7e92f94..6d12ec2 100644 --- a/client/lib/model/delete_domain_config_response.dart +++ b/client/lib/model/delete_domain_config_response.dart @@ -21,11 +21,13 @@ class DeleteDomainConfigResponse { @override 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() => 'DeleteDomainConfigResponse[status=$status]'; @@ -51,10 +53,7 @@ class DeleteDomainConfigResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "DeleteDomainConfigResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "DeleteDomainConfigResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "DeleteDomainConfigResponse[status]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/delete_feed_post_public_response.dart b/client/lib/model/delete_feed_post_public_response.dart index 29059b2..410950a 100644 --- a/client/lib/model/delete_feed_post_public_response.dart +++ b/client/lib/model/delete_feed_post_public_response.dart @@ -21,11 +21,13 @@ class DeleteFeedPostPublicResponse { @override 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() => 'DeleteFeedPostPublicResponse[status=$status]'; @@ -47,10 +49,8 @@ class DeleteFeedPostPublicResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "DeleteFeedPostPublicResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "DeleteFeedPostPublicResponse[$key]" 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; }()); diff --git a/client/lib/model/delete_hash_tag_request_body.dart b/client/lib/model/delete_hash_tag_request_body.dart index 8c1b16d..28ccc6d 100644 --- a/client/lib/model/delete_hash_tag_request_body.dart +++ b/client/lib/model/delete_hash_tag_request_body.dart @@ -27,11 +27,13 @@ class DeleteHashTagRequestBody { @override 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() => 'DeleteHashTagRequestBody[tenantId=$tenantId]'; @@ -57,10 +59,6 @@ class DeleteHashTagRequestBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "DeleteHashTagRequestBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "DeleteHashTagRequestBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/delete_page_api_response.dart b/client/lib/model/delete_page_api_response.dart index 8700b09..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]'; @@ -79,10 +81,8 @@ class DeletePageAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "DeletePageAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "DeletePageAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "DeletePageAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "DeletePageAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/delete_sso_user_api_response.dart b/client/lib/model/delete_sso_user_api_response.dart index a1c2ea4..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]'; @@ -95,10 +97,8 @@ class DeleteSSOUserAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "DeleteSSOUserAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "DeleteSSOUserAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "DeleteSSOUserAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "DeleteSSOUserAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/delete_subscription_api_response.dart b/client/lib/model/delete_subscription_api_response.dart index b7a4e55..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]'; @@ -79,10 +81,8 @@ class DeleteSubscriptionAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "DeleteSubscriptionAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "DeleteSubscriptionAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "DeleteSubscriptionAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "DeleteSubscriptionAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/deleted_comment_result_comment.dart b/client/lib/model/deleted_comment_result_comment.dart index 8d3cd93..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]'; @@ -79,10 +81,10 @@ class DeletedCommentResultComment { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "DeletedCommentResultComment[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "DeletedCommentResultComment[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'commentHTML'), 'Required key "DeletedCommentResultComment[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "DeletedCommentResultComment[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "DeletedCommentResultComment[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "DeletedCommentResultComment[commenterName]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/email_template_definition.dart b/client/lib/model/email_template_definition.dart index ea381aa..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]'; @@ -67,17 +69,21 @@ class EmailTemplateDefinition { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "EmailTemplateDefinition[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "EmailTemplateDefinition[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'emailTemplateId'), 'Required key "EmailTemplateDefinition[emailTemplateId]" is missing from JSON.'); + assert(json[r'emailTemplateId'] != null, 'Required key "EmailTemplateDefinition[emailTemplateId]" has a null value in JSON.'); + assert(json.containsKey(r'defaultTestData'), 'Required key "EmailTemplateDefinition[defaultTestData]" is missing from JSON.'); + assert(json[r'defaultTestData'] != null, 'Required key "EmailTemplateDefinition[defaultTestData]" has a null value in JSON.'); + assert(json.containsKey(r'defaultTranslationsByLocale'), 'Required key "EmailTemplateDefinition[defaultTranslationsByLocale]" is missing from JSON.'); + assert(json[r'defaultTranslationsByLocale'] != null, 'Required key "EmailTemplateDefinition[defaultTranslationsByLocale]" has a null value in JSON.'); + assert(json.containsKey(r'defaultEJS'), 'Required key "EmailTemplateDefinition[defaultEJS]" is missing from JSON.'); + assert(json[r'defaultEJS'] != null, 'Required key "EmailTemplateDefinition[defaultEJS]" has a null value in JSON.'); return true; }()); 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 45bd60c..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]'; @@ -83,10 +85,20 @@ class EmailTemplateRenderErrorResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "EmailTemplateRenderErrorResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "EmailTemplateRenderErrorResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "EmailTemplateRenderErrorResponse[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "EmailTemplateRenderErrorResponse[id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "EmailTemplateRenderErrorResponse[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "EmailTemplateRenderErrorResponse[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'customTemplateId'), 'Required key "EmailTemplateRenderErrorResponse[customTemplateId]" is missing from JSON.'); + assert(json[r'customTemplateId'] != null, 'Required key "EmailTemplateRenderErrorResponse[customTemplateId]" has a null value in JSON.'); + assert(json.containsKey(r'error'), 'Required key "EmailTemplateRenderErrorResponse[error]" is missing from JSON.'); + assert(json[r'error'] != null, 'Required key "EmailTemplateRenderErrorResponse[error]" has a null value in JSON.'); + assert(json.containsKey(r'count'), 'Required key "EmailTemplateRenderErrorResponse[count]" is missing from JSON.'); + assert(json[r'count'] != null, 'Required key "EmailTemplateRenderErrorResponse[count]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "EmailTemplateRenderErrorResponse[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "EmailTemplateRenderErrorResponse[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'lastOccurredAt'), 'Required key "EmailTemplateRenderErrorResponse[lastOccurredAt]" is missing from JSON.'); + assert(json[r'lastOccurredAt'] != null, 'Required key "EmailTemplateRenderErrorResponse[lastOccurredAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/event_log_entry.dart b/client/lib/model/event_log_entry.dart index b22b776..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]'; @@ -77,10 +79,18 @@ class EventLogEntry { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "EventLogEntry[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "EventLogEntry[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "EventLogEntry[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "EventLogEntry[_id]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "EventLogEntry[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "EventLogEntry[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "EventLogEntry[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "EventLogEntry[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "EventLogEntry[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "EventLogEntry[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'broadcastId'), 'Required key "EventLogEntry[broadcastId]" is missing from JSON.'); + assert(json[r'broadcastId'] != null, 'Required key "EventLogEntry[broadcastId]" has a null value in JSON.'); + assert(json.containsKey(r'data'), 'Required key "EventLogEntry[data]" is missing from JSON.'); + assert(json[r'data'] != null, 'Required key "EventLogEntry[data]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/f_comment.dart b/client/lib/model/f_comment.dart index a2b68ec..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]'; @@ -891,10 +893,26 @@ class FComment { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FComment[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FComment[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "FComment[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "FComment[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "FComment[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "FComment[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "FComment[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "FComment[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "FComment[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "FComment[url]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "FComment[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "FComment[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "FComment[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "FComment[comment]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "FComment[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "FComment[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'date'), 'Required key "FComment[date]" is missing from JSON.'); + assert(json.containsKey(r'verified'), 'Required key "FComment[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "FComment[verified]" has a null value in JSON.'); + assert(json.containsKey(r'approved'), 'Required key "FComment[approved]" is missing from JSON.'); + assert(json[r'approved'] != null, 'Required key "FComment[approved]" has a null value in JSON.'); + assert(json.containsKey(r'locale'), 'Required key "FComment[locale]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/f_comment_meta.dart b/client/lib/model/f_comment_meta.dart index 89cf1ca..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]'; @@ -89,10 +91,6 @@ class FCommentMeta { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FCommentMeta[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FCommentMeta[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/feed_post.dart b/client/lib/model/feed_post.dart index 464c629..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]'; @@ -200,10 +202,12 @@ class FeedPost { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FeedPost[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FeedPost[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "FeedPost[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "FeedPost[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "FeedPost[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "FeedPost[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "FeedPost[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "FeedPost[createdAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/feed_post_link.dart b/client/lib/model/feed_post_link.dart index f4bf3e2..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]'; @@ -105,10 +107,6 @@ class FeedPostLink { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FeedPostLink[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FeedPostLink[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/feed_post_media_item.dart b/client/lib/model/feed_post_media_item.dart index 2baef12..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]'; @@ -79,10 +81,8 @@ class FeedPostMediaItem { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FeedPostMediaItem[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FeedPostMediaItem[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'sizes'), 'Required key "FeedPostMediaItem[sizes]" is missing from JSON.'); + assert(json[r'sizes'] != null, 'Required key "FeedPostMediaItem[sizes]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/feed_post_media_item_asset.dart b/client/lib/model/feed_post_media_item_asset.dart index 8038c81..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]'; @@ -59,10 +61,12 @@ class FeedPostMediaItemAsset { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FeedPostMediaItemAsset[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FeedPostMediaItemAsset[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'w'), 'Required key "FeedPostMediaItemAsset[w]" is missing from JSON.'); + assert(json[r'w'] != null, 'Required key "FeedPostMediaItemAsset[w]" has a null value in JSON.'); + assert(json.containsKey(r'h'), 'Required key "FeedPostMediaItemAsset[h]" is missing from JSON.'); + assert(json[r'h'] != null, 'Required key "FeedPostMediaItemAsset[h]" has a null value in JSON.'); + assert(json.containsKey(r'src'), 'Required key "FeedPostMediaItemAsset[src]" is missing from JSON.'); + assert(json[r'src'] != null, 'Required key "FeedPostMediaItemAsset[src]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/feed_post_stats.dart b/client/lib/model/feed_post_stats.dart index c2c5516..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]'; @@ -63,10 +65,6 @@ class FeedPostStats { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FeedPostStats[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FeedPostStats[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/feed_posts_stats_response.dart b/client/lib/model/feed_posts_stats_response.dart index d639c15..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]'; @@ -53,10 +55,10 @@ class FeedPostsStatsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FeedPostsStatsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FeedPostsStatsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "FeedPostsStatsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "FeedPostsStatsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'stats'), 'Required key "FeedPostsStatsResponse[stats]" is missing from JSON.'); + assert(json[r'stats'] != null, 'Required key "FeedPostsStatsResponse[stats]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/find_comments_by_range_item.dart b/client/lib/model/find_comments_by_range_item.dart index f2f85dc..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]'; @@ -57,10 +59,9 @@ class FindCommentsByRangeItem { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FindCommentsByRangeItem[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FindCommentsByRangeItem[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'comment'), 'Required key "FindCommentsByRangeItem[comment]" is missing from JSON.'); + assert(json.containsKey(r'result'), 'Required key "FindCommentsByRangeItem[result]" is missing from JSON.'); + assert(json[r'result'] != null, 'Required key "FindCommentsByRangeItem[result]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/find_comments_by_range_response.dart b/client/lib/model/find_comments_by_range_response.dart index 8277fed..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]'; @@ -53,10 +55,10 @@ class FindCommentsByRangeResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FindCommentsByRangeResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FindCommentsByRangeResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'results'), 'Required key "FindCommentsByRangeResponse[results]" is missing from JSON.'); + assert(json[r'results'] != null, 'Required key "FindCommentsByRangeResponse[results]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "FindCommentsByRangeResponse[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "FindCommentsByRangeResponse[createdAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/flag_comment_response.dart b/client/lib/model/flag_comment_response.dart index 86de7c9..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]'; @@ -111,10 +113,8 @@ class FlagCommentResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "FlagCommentResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "FlagCommentResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "FlagCommentResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "FlagCommentResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_audit_logs_response.dart b/client/lib/model/get_audit_logs_response.dart index 22bf1f6..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]'; @@ -53,10 +55,10 @@ class GetAuditLogsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetAuditLogsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetAuditLogsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetAuditLogsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetAuditLogsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'auditLogs'), 'Required key "GetAuditLogsResponse[auditLogs]" is missing from JSON.'); + assert(json[r'auditLogs'] != null, 'Required key "GetAuditLogsResponse[auditLogs]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_banned_users_count_response.dart b/client/lib/model/get_banned_users_count_response.dart index 9b24bf1..5d23ccd 100644 --- a/client/lib/model/get_banned_users_count_response.dart +++ b/client/lib/model/get_banned_users_count_response.dart @@ -24,13 +24,15 @@ class GetBannedUsersCountResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetBannedUsersCountResponse && other.totalCount == totalCount && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (totalCount.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GetBannedUsersCountResponse[totalCount=$totalCount, status=$status]'; @@ -53,10 +55,10 @@ class GetBannedUsersCountResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetBannedUsersCountResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetBannedUsersCountResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_banned_users_from_comment_response.dart b/client/lib/model/get_banned_users_from_comment_response.dart index f659ef7..ec34a9d 100644 --- a/client/lib/model/get_banned_users_from_comment_response.dart +++ b/client/lib/model/get_banned_users_from_comment_response.dart @@ -27,15 +27,17 @@ class GetBannedUsersFromCommentResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetBannedUsersFromCommentResponse && _deepEquality.equals(other.bannedUsers, bannedUsers) && - other.code == code && - other.status == status; + other.code == code && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (bannedUsers.hashCode) + - (code == null ? 0 : code!.hashCode) + - (status.hashCode); + (code == null ? 0 : code!.hashCode) + + (status.hashCode); + @override String toString() => 'GetBannedUsersFromCommentResponse[bannedUsers=$bannedUsers, code=$code, status=$status]'; @@ -63,10 +65,10 @@ class GetBannedUsersFromCommentResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetBannedUsersFromCommentResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetBannedUsersFromCommentResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_cached_notification_count_response.dart b/client/lib/model/get_cached_notification_count_response.dart index 1b76c67..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]'; @@ -53,10 +55,10 @@ class GetCachedNotificationCountResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetCachedNotificationCountResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetCachedNotificationCountResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetCachedNotificationCountResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetCachedNotificationCountResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'data'), 'Required key "GetCachedNotificationCountResponse[data]" is missing from JSON.'); + assert(json[r'data'] != null, 'Required key "GetCachedNotificationCountResponse[data]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_comment_ban_status_response.dart b/client/lib/model/get_comment_ban_status_response.dart index 2b12405..a68e29f 100644 --- a/client/lib/model/get_comment_ban_status_response.dart +++ b/client/lib/model/get_comment_ban_status_response.dart @@ -27,15 +27,17 @@ class GetCommentBanStatusResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetCommentBanStatusResponse && other.status == status && - other.emailDomain == emailDomain && - other.canIPBan == canIPBan; + 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); + (emailDomain == null ? 0 : emailDomain!.hashCode) + + (canIPBan == null ? 0 : canIPBan!.hashCode); + @override String toString() => 'GetCommentBanStatusResponse[status=$status, emailDomain=$emailDomain, canIPBan=$canIPBan]'; @@ -67,10 +69,10 @@ class GetCommentBanStatusResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetCommentBanStatusResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetCommentBanStatusResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_comment_text_response.dart b/client/lib/model/get_comment_text_response.dart index 1bab811..f25ffab 100644 --- a/client/lib/model/get_comment_text_response.dart +++ b/client/lib/model/get_comment_text_response.dart @@ -24,13 +24,15 @@ class GetCommentTextResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetCommentTextResponse && other.comment == comment && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (comment == null ? 0 : comment!.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GetCommentTextResponse[comment=$comment, status=$status]'; @@ -57,10 +59,8 @@ class GetCommentTextResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetCommentTextResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetCommentTextResponse[$key]" has a null value in JSON.'); - }); + 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; }()); 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 be608af..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]'; @@ -59,10 +61,12 @@ class GetCommentVoteUserNamesSuccessResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetCommentVoteUserNamesSuccessResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetCommentVoteUserNamesSuccessResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetCommentVoteUserNamesSuccessResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetCommentVoteUserNamesSuccessResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'voteUserNames'), 'Required key "GetCommentVoteUserNamesSuccessResponse[voteUserNames]" is missing from JSON.'); + assert(json[r'voteUserNames'] != null, 'Required key "GetCommentVoteUserNamesSuccessResponse[voteUserNames]" has a null value in JSON.'); + assert(json.containsKey(r'hasMore'), 'Required key "GetCommentVoteUserNamesSuccessResponse[hasMore]" is missing from JSON.'); + assert(json[r'hasMore'] != null, 'Required key "GetCommentVoteUserNamesSuccessResponse[hasMore]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_comments_for_user_response.dart b/client/lib/model/get_comments_for_user_response.dart index d5406ea..f447708 100644 --- a/client/lib/model/get_comments_for_user_response.dart +++ b/client/lib/model/get_comments_for_user_response.dart @@ -21,11 +21,13 @@ class GetCommentsForUserResponse { @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]'; @@ -47,10 +49,6 @@ class GetCommentsForUserResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetCommentsForUserResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetCommentsForUserResponse[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/get_comments_response_public_comment.dart b/client/lib/model/get_comments_response_public_comment.dart index b654ae0..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]'; @@ -374,10 +376,13 @@ class GetCommentsResponsePublicComment { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetCommentsResponsePublicComment[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetCommentsResponsePublicComment[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetCommentsResponsePublicComment[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetCommentsResponsePublicComment[status]" has a null value in JSON.'); + assert(json.containsKey(r'comments'), 'Required key "GetCommentsResponsePublicComment[comments]" is missing from JSON.'); + assert(json[r'comments'] != null, 'Required key "GetCommentsResponsePublicComment[comments]" has a null value in JSON.'); + assert(json.containsKey(r'user'), 'Required key "GetCommentsResponsePublicComment[user]" is missing from JSON.'); + assert(json.containsKey(r'pageNumber'), 'Required key "GetCommentsResponsePublicComment[pageNumber]" is missing from JSON.'); + assert(json[r'pageNumber'] != null, 'Required key "GetCommentsResponsePublicComment[pageNumber]" has a null value in JSON.'); return true; }()); 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 4eed7ed..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]'; @@ -422,10 +424,13 @@ class GetCommentsResponseWithPresencePublicComment { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetCommentsResponseWithPresencePublicComment[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetCommentsResponseWithPresencePublicComment[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetCommentsResponseWithPresencePublicComment[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetCommentsResponseWithPresencePublicComment[status]" has a null value in JSON.'); + assert(json.containsKey(r'comments'), 'Required key "GetCommentsResponseWithPresencePublicComment[comments]" is missing from JSON.'); + assert(json[r'comments'] != null, 'Required key "GetCommentsResponseWithPresencePublicComment[comments]" has a null value in JSON.'); + assert(json.containsKey(r'user'), 'Required key "GetCommentsResponseWithPresencePublicComment[user]" is missing from JSON.'); + assert(json.containsKey(r'pageNumber'), 'Required key "GetCommentsResponseWithPresencePublicComment[pageNumber]" is missing from JSON.'); + assert(json[r'pageNumber'] != null, 'Required key "GetCommentsResponseWithPresencePublicComment[pageNumber]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_domain_config_response.dart b/client/lib/model/get_domain_config_response.dart index 9635300..6ce93c0 100644 --- a/client/lib/model/get_domain_config_response.dart +++ b/client/lib/model/get_domain_config_response.dart @@ -13,34 +13,48 @@ part of openapi.api; class GetDomainConfigResponse { /// Returns a new [GetDomainConfigResponse] instance. GetDomainConfigResponse({ - required this.configuration, + this.configuration, required this.status, - required this.reason, - required this.code, + this.reason, + this.code, }); Object? configuration; Object? 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? 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; + 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); + (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]'; @@ -57,8 +71,16 @@ class GetDomainConfigResponse { } 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; } @@ -73,18 +95,15 @@ class GetDomainConfigResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetDomainConfigResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetDomainConfigResponse[$key]" has a null value in JSON.'); - }); + 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')!, + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), ); } return null; @@ -132,10 +151,7 @@ class GetDomainConfigResponse { /// 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_configs_response.dart b/client/lib/model/get_domain_configs_response.dart index d44eb37..a30e36a 100644 --- a/client/lib/model/get_domain_configs_response.dart +++ b/client/lib/model/get_domain_configs_response.dart @@ -13,34 +13,48 @@ part of openapi.api; class GetDomainConfigsResponse { /// Returns a new [GetDomainConfigsResponse] instance. GetDomainConfigsResponse({ - required this.configurations, + this.configurations, required this.status, - required this.reason, - required this.code, + this.reason, + this.code, }); Object? configurations; Object? 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? 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; + 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); + (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]'; @@ -57,8 +71,16 @@ class GetDomainConfigsResponse { } 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; } @@ -73,18 +95,15 @@ class GetDomainConfigsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetDomainConfigsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetDomainConfigsResponse[$key]" has a null value in JSON.'); - }); + 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')!, + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), ); } return null; @@ -132,10 +151,7 @@ class GetDomainConfigsResponse { /// 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_any_of.dart b/client/lib/model/get_domain_configs_response_any_of.dart index a9749aa..8ffec82 100644 --- a/client/lib/model/get_domain_configs_response_any_of.dart +++ b/client/lib/model/get_domain_configs_response_any_of.dart @@ -24,13 +24,15 @@ class GetDomainConfigsResponseAnyOf { @override 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() => 'GetDomainConfigsResponseAnyOf[configurations=$configurations, status=$status]'; @@ -61,10 +63,8 @@ class GetDomainConfigsResponseAnyOf { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetDomainConfigsResponseAnyOf[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetDomainConfigsResponseAnyOf[$key]" has a null value in 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; }()); diff --git a/client/lib/model/get_domain_configs_response_any_of1.dart b/client/lib/model/get_domain_configs_response_any_of1.dart index a92bc1a..8a3bf2c 100644 --- a/client/lib/model/get_domain_configs_response_any_of1.dart +++ b/client/lib/model/get_domain_configs_response_any_of1.dart @@ -27,15 +27,17 @@ class GetDomainConfigsResponseAnyOf1 { @override 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() => 'GetDomainConfigsResponseAnyOf1[reason=$reason, code=$code, status=$status]'; @@ -63,10 +65,11 @@ class GetDomainConfigsResponseAnyOf1 { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetDomainConfigsResponseAnyOf1[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetDomainConfigsResponseAnyOf1[$key]" has a null value in 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; }()); diff --git a/client/lib/model/get_email_template_definitions_response.dart b/client/lib/model/get_email_template_definitions_response.dart index c589a07..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]'; @@ -53,10 +55,10 @@ class GetEmailTemplateDefinitionsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetEmailTemplateDefinitionsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetEmailTemplateDefinitionsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetEmailTemplateDefinitionsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetEmailTemplateDefinitionsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'definitions'), 'Required key "GetEmailTemplateDefinitionsResponse[definitions]" is missing from JSON.'); + assert(json[r'definitions'] != null, 'Required key "GetEmailTemplateDefinitionsResponse[definitions]" has a null value in JSON.'); return true; }()); 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 0770505..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]'; @@ -53,10 +55,10 @@ class GetEmailTemplateRenderErrorsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetEmailTemplateRenderErrorsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetEmailTemplateRenderErrorsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetEmailTemplateRenderErrorsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetEmailTemplateRenderErrorsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'renderErrors'), 'Required key "GetEmailTemplateRenderErrorsResponse[renderErrors]" is missing from JSON.'); + assert(json[r'renderErrors'] != null, 'Required key "GetEmailTemplateRenderErrorsResponse[renderErrors]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_email_template_response.dart b/client/lib/model/get_email_template_response.dart index e0c2a5d..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]'; @@ -53,10 +55,10 @@ class GetEmailTemplateResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetEmailTemplateResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetEmailTemplateResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetEmailTemplateResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetEmailTemplateResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'emailTemplate'), 'Required key "GetEmailTemplateResponse[emailTemplate]" is missing from JSON.'); + assert(json[r'emailTemplate'] != null, 'Required key "GetEmailTemplateResponse[emailTemplate]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_email_templates_response.dart b/client/lib/model/get_email_templates_response.dart index 732bf49..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]'; @@ -53,10 +55,10 @@ class GetEmailTemplatesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetEmailTemplatesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetEmailTemplatesResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetEmailTemplatesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetEmailTemplatesResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'emailTemplates'), 'Required key "GetEmailTemplatesResponse[emailTemplates]" is missing from JSON.'); + assert(json[r'emailTemplates'] != null, 'Required key "GetEmailTemplatesResponse[emailTemplates]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_event_log_response.dart b/client/lib/model/get_event_log_response.dart index ebf3ab2..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]'; @@ -53,10 +55,10 @@ class GetEventLogResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetEventLogResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetEventLogResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'events'), 'Required key "GetEventLogResponse[events]" is missing from JSON.'); + assert(json[r'events'] != null, 'Required key "GetEventLogResponse[events]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetEventLogResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetEventLogResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_feed_posts_response.dart b/client/lib/model/get_feed_posts_response.dart index 19711f9..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]'; @@ -53,10 +55,10 @@ class GetFeedPostsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetFeedPostsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetFeedPostsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetFeedPostsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetFeedPostsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'feedPosts'), 'Required key "GetFeedPostsResponse[feedPosts]" is missing from JSON.'); + assert(json[r'feedPosts'] != null, 'Required key "GetFeedPostsResponse[feedPosts]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_gifs_search_response.dart b/client/lib/model/get_gifs_search_response.dart index a98be98..ba09490 100644 --- a/client/lib/model/get_gifs_search_response.dart +++ b/client/lib/model/get_gifs_search_response.dart @@ -15,27 +15,35 @@ class GetGifsSearchResponse { GetGifsSearchResponse({ this.images = const [], required this.status, - required this.code, + this.code, }); List> images; APIStatus status; - 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? code; @override bool operator ==(Object other) => identical(this, other) || other is GetGifsSearchResponse && _deepEquality.equals(other.images, images) && - other.status == status && - other.code == code; + other.status == status && + other.code == code; + @override int get hashCode => // ignore: unnecessary_parenthesis (images.hashCode) + - (status.hashCode) + - (code.hashCode); + (status.hashCode) + + (code == null ? 0 : code!.hashCode); + @override String toString() => 'GetGifsSearchResponse[images=$images, status=$status, code=$code]'; @@ -44,7 +52,11 @@ class GetGifsSearchResponse { 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; } @@ -59,10 +71,8 @@ class GetGifsSearchResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetGifsSearchResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetGifsSearchResponse[$key]" has a null value in JSON.'); - }); + 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; }()); @@ -73,7 +83,7 @@ class GetGifsSearchResponse { ).toList() : const [], status: APIStatus.fromJson(json[r'status'])!, - code: mapValueOfType(json, r'code')!, + code: mapValueOfType(json, r'code'), ); } return null; @@ -121,9 +131,7 @@ class GetGifsSearchResponse { /// The list of required keys that must be present in a JSON. static const requiredKeys = { - 'images', 'status', - 'code', }; } diff --git a/client/lib/model/get_gifs_trending_response.dart b/client/lib/model/get_gifs_trending_response.dart index 1041c40..90fd228 100644 --- a/client/lib/model/get_gifs_trending_response.dart +++ b/client/lib/model/get_gifs_trending_response.dart @@ -15,27 +15,35 @@ class GetGifsTrendingResponse { GetGifsTrendingResponse({ this.images = const [], required this.status, - required this.code, + this.code, }); List> images; APIStatus status; - 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? code; @override bool operator ==(Object other) => identical(this, other) || other is GetGifsTrendingResponse && _deepEquality.equals(other.images, images) && - other.status == status && - other.code == code; + other.status == status && + other.code == code; + @override int get hashCode => // ignore: unnecessary_parenthesis (images.hashCode) + - (status.hashCode) + - (code.hashCode); + (status.hashCode) + + (code == null ? 0 : code!.hashCode); + @override String toString() => 'GetGifsTrendingResponse[images=$images, status=$status, code=$code]'; @@ -44,7 +52,11 @@ class GetGifsTrendingResponse { 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; } @@ -59,10 +71,8 @@ class GetGifsTrendingResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetGifsTrendingResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetGifsTrendingResponse[$key]" has a null value in JSON.'); - }); + 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; }()); @@ -73,7 +83,7 @@ class GetGifsTrendingResponse { ).toList() : const [], status: APIStatus.fromJson(json[r'status'])!, - code: mapValueOfType(json, r'code')!, + code: mapValueOfType(json, r'code'), ); } return null; @@ -121,9 +131,7 @@ class GetGifsTrendingResponse { /// The list of required keys that must be present in a JSON. static const requiredKeys = { - 'images', 'status', - 'code', }; } diff --git a/client/lib/model/get_hash_tags_response.dart b/client/lib/model/get_hash_tags_response.dart index 1b0b5e9..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]'; @@ -53,10 +55,10 @@ class GetHashTagsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetHashTagsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetHashTagsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetHashTagsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetHashTagsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'hashTags'), 'Required key "GetHashTagsResponse[hashTags]" is missing from JSON.'); + assert(json[r'hashTags'] != null, 'Required key "GetHashTagsResponse[hashTags]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_moderator_response.dart b/client/lib/model/get_moderator_response.dart index 29aee9d..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]'; @@ -53,10 +55,10 @@ class GetModeratorResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetModeratorResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetModeratorResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetModeratorResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetModeratorResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'moderator'), 'Required key "GetModeratorResponse[moderator]" is missing from JSON.'); + assert(json[r'moderator'] != null, 'Required key "GetModeratorResponse[moderator]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_moderators_response.dart b/client/lib/model/get_moderators_response.dart index 23b1e4d..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]'; @@ -53,10 +55,10 @@ class GetModeratorsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetModeratorsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetModeratorsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetModeratorsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetModeratorsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'moderators'), 'Required key "GetModeratorsResponse[moderators]" is missing from JSON.'); + assert(json[r'moderators'] != null, 'Required key "GetModeratorsResponse[moderators]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_my_notifications_response.dart b/client/lib/model/get_my_notifications_response.dart index 8993d91..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]'; @@ -72,10 +74,14 @@ class GetMyNotificationsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetMyNotificationsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetMyNotificationsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'isSubscribed'), 'Required key "GetMyNotificationsResponse[isSubscribed]" is missing from JSON.'); + assert(json[r'isSubscribed'] != null, 'Required key "GetMyNotificationsResponse[isSubscribed]" has a null value in JSON.'); + assert(json.containsKey(r'hasMore'), 'Required key "GetMyNotificationsResponse[hasMore]" is missing from JSON.'); + assert(json[r'hasMore'] != null, 'Required key "GetMyNotificationsResponse[hasMore]" has a null value in JSON.'); + assert(json.containsKey(r'notifications'), 'Required key "GetMyNotificationsResponse[notifications]" is missing from JSON.'); + assert(json[r'notifications'] != null, 'Required key "GetMyNotificationsResponse[notifications]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "GetMyNotificationsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetMyNotificationsResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_notification_count_response.dart b/client/lib/model/get_notification_count_response.dart index 3ac4f5b..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]'; @@ -53,10 +55,10 @@ class GetNotificationCountResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetNotificationCountResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetNotificationCountResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetNotificationCountResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetNotificationCountResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'count'), 'Required key "GetNotificationCountResponse[count]" is missing from JSON.'); + assert(json[r'count'] != null, 'Required key "GetNotificationCountResponse[count]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_notifications_response.dart b/client/lib/model/get_notifications_response.dart index cf62fc4..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]'; @@ -53,10 +55,10 @@ class GetNotificationsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetNotificationsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetNotificationsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetNotificationsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetNotificationsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'notifications'), 'Required key "GetNotificationsResponse[notifications]" is missing from JSON.'); + assert(json[r'notifications'] != null, 'Required key "GetNotificationsResponse[notifications]" has a null value in JSON.'); return true; }()); 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 592fdb3..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]'; @@ -95,10 +97,8 @@ class GetPageByURLIdAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetPageByURLIdAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetPageByURLIdAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetPageByURLIdAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetPageByURLIdAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_pages_api_response.dart b/client/lib/model/get_pages_api_response.dart index 598519f..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]'; @@ -85,10 +87,8 @@ class GetPagesAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetPagesAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetPagesAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetPagesAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetPagesAPIResponse[status]" has a null value in JSON.'); return true; }()); 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 6505cd9..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]'; @@ -53,10 +55,10 @@ class GetPendingWebhookEventCountResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetPendingWebhookEventCountResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetPendingWebhookEventCountResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetPendingWebhookEventCountResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetPendingWebhookEventCountResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'count'), 'Required key "GetPendingWebhookEventCountResponse[count]" is missing from JSON.'); + assert(json[r'count'] != null, 'Required key "GetPendingWebhookEventCountResponse[count]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_pending_webhook_events_response.dart b/client/lib/model/get_pending_webhook_events_response.dart index b76ba6a..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]'; @@ -53,10 +55,10 @@ class GetPendingWebhookEventsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetPendingWebhookEventsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetPendingWebhookEventsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetPendingWebhookEventsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetPendingWebhookEventsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'pendingWebhookEvents'), 'Required key "GetPendingWebhookEventsResponse[pendingWebhookEvents]" is missing from JSON.'); + assert(json[r'pendingWebhookEvents'] != null, 'Required key "GetPendingWebhookEventsResponse[pendingWebhookEvents]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_public_feed_posts_response.dart b/client/lib/model/get_public_feed_posts_response.dart index 9c6d30d..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]'; @@ -63,10 +65,10 @@ class GetPublicFeedPostsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetPublicFeedPostsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetPublicFeedPostsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetPublicFeedPostsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetPublicFeedPostsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'feedPosts'), 'Required key "GetPublicFeedPostsResponse[feedPosts]" is missing from JSON.'); + assert(json[r'feedPosts'] != null, 'Required key "GetPublicFeedPostsResponse[feedPosts]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_public_pages_response.dart b/client/lib/model/get_public_pages_response.dart index 97a2c48..ab07ea0 100644 --- a/client/lib/model/get_public_pages_response.dart +++ b/client/lib/model/get_public_pages_response.dart @@ -27,15 +27,17 @@ class GetPublicPagesResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetPublicPagesResponse && other.nextCursor == nextCursor && - _deepEquality.equals(other.pages, pages) && - other.status == status; + _deepEquality.equals(other.pages, pages) && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (nextCursor == null ? 0 : nextCursor!.hashCode) + - (pages.hashCode) + - (status.hashCode); + (pages.hashCode) + + (status.hashCode); + @override String toString() => 'GetPublicPagesResponse[nextCursor=$nextCursor, pages=$pages, status=$status]'; @@ -63,10 +65,11 @@ class GetPublicPagesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetPublicPagesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetPublicPagesResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_question_config_response.dart b/client/lib/model/get_question_config_response.dart index 005758b..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]'; @@ -53,10 +55,10 @@ class GetQuestionConfigResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetQuestionConfigResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetQuestionConfigResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetQuestionConfigResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetQuestionConfigResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'questionConfig'), 'Required key "GetQuestionConfigResponse[questionConfig]" is missing from JSON.'); + assert(json[r'questionConfig'] != null, 'Required key "GetQuestionConfigResponse[questionConfig]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_question_configs_response.dart b/client/lib/model/get_question_configs_response.dart index baffe32..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]'; @@ -53,10 +55,10 @@ class GetQuestionConfigsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetQuestionConfigsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetQuestionConfigsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetQuestionConfigsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetQuestionConfigsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'questionConfigs'), 'Required key "GetQuestionConfigsResponse[questionConfigs]" is missing from JSON.'); + assert(json[r'questionConfigs'] != null, 'Required key "GetQuestionConfigsResponse[questionConfigs]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_question_result_response.dart b/client/lib/model/get_question_result_response.dart index 33d3494..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]'; @@ -53,10 +55,10 @@ class GetQuestionResultResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetQuestionResultResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetQuestionResultResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetQuestionResultResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetQuestionResultResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'questionResult'), 'Required key "GetQuestionResultResponse[questionResult]" is missing from JSON.'); + assert(json[r'questionResult'] != null, 'Required key "GetQuestionResultResponse[questionResult]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_question_results_response.dart b/client/lib/model/get_question_results_response.dart index fe45eb3..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]'; @@ -53,10 +55,10 @@ class GetQuestionResultsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetQuestionResultsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetQuestionResultsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetQuestionResultsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetQuestionResultsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'questionResults'), 'Required key "GetQuestionResultsResponse[questionResults]" is missing from JSON.'); + assert(json[r'questionResults'] != null, 'Required key "GetQuestionResultsResponse[questionResults]" has a null value in JSON.'); return true; }()); 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 dd0e8af..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]'; @@ -95,10 +97,8 @@ class GetSSOUserByEmailAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetSSOUserByEmailAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetSSOUserByEmailAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetSSOUserByEmailAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetSSOUserByEmailAPIResponse[status]" has a null value in JSON.'); return true; }()); 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 1a7b371..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]'; @@ -95,10 +97,8 @@ class GetSSOUserByIdAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetSSOUserByIdAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetSSOUserByIdAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetSSOUserByIdAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetSSOUserByIdAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_sso_users_response.dart b/client/lib/model/get_sso_users_response.dart index c4073dd..02f0d48 100644 --- a/client/lib/model/get_sso_users_response.dart +++ b/client/lib/model/get_sso_users_response.dart @@ -24,13 +24,15 @@ class GetSSOUsersResponse { @override 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() => 'GetSSOUsersResponse[users=$users, status=$status]'; @@ -53,10 +55,10 @@ class GetSSOUsersResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetSSOUsersResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetSSOUsersResponse[$key]" 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; }()); diff --git a/client/lib/model/get_subscriptions_api_response.dart b/client/lib/model/get_subscriptions_api_response.dart index 54cc90a..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]'; @@ -85,10 +87,8 @@ class GetSubscriptionsAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetSubscriptionsAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetSubscriptionsAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetSubscriptionsAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetSubscriptionsAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_tenant_daily_usages_response.dart b/client/lib/model/get_tenant_daily_usages_response.dart index 4b22afe..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]'; @@ -53,10 +55,10 @@ class GetTenantDailyUsagesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTenantDailyUsagesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTenantDailyUsagesResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTenantDailyUsagesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTenantDailyUsagesResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenantDailyUsages'), 'Required key "GetTenantDailyUsagesResponse[tenantDailyUsages]" is missing from JSON.'); + assert(json[r'tenantDailyUsages'] != null, 'Required key "GetTenantDailyUsagesResponse[tenantDailyUsages]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_tenant_manual_badges_response.dart b/client/lib/model/get_tenant_manual_badges_response.dart index 8a1742c..2590609 100644 --- a/client/lib/model/get_tenant_manual_badges_response.dart +++ b/client/lib/model/get_tenant_manual_badges_response.dart @@ -24,13 +24,15 @@ class GetTenantManualBadgesResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTenantManualBadgesResponse && _deepEquality.equals(other.badges, badges) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (badges.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GetTenantManualBadgesResponse[badges=$badges, status=$status]'; @@ -53,10 +55,10 @@ class GetTenantManualBadgesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTenantManualBadgesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTenantManualBadgesResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_tenant_package_response.dart b/client/lib/model/get_tenant_package_response.dart index 4d3632d..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]'; @@ -53,10 +55,10 @@ class GetTenantPackageResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTenantPackageResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTenantPackageResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTenantPackageResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTenantPackageResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenantPackage'), 'Required key "GetTenantPackageResponse[tenantPackage]" is missing from JSON.'); + assert(json[r'tenantPackage'] != null, 'Required key "GetTenantPackageResponse[tenantPackage]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_tenant_packages_response.dart b/client/lib/model/get_tenant_packages_response.dart index 069917e..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]'; @@ -53,10 +55,10 @@ class GetTenantPackagesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTenantPackagesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTenantPackagesResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTenantPackagesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTenantPackagesResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenantPackages'), 'Required key "GetTenantPackagesResponse[tenantPackages]" is missing from JSON.'); + assert(json[r'tenantPackages'] != null, 'Required key "GetTenantPackagesResponse[tenantPackages]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_tenant_response.dart b/client/lib/model/get_tenant_response.dart index bbcb36b..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]'; @@ -53,10 +55,10 @@ class GetTenantResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTenantResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTenantResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTenantResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTenantResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenant'), 'Required key "GetTenantResponse[tenant]" is missing from JSON.'); + assert(json[r'tenant'] != null, 'Required key "GetTenantResponse[tenant]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_tenant_user_response.dart b/client/lib/model/get_tenant_user_response.dart index 84a9dfd..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]'; @@ -53,10 +55,10 @@ class GetTenantUserResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTenantUserResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTenantUserResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTenantUserResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTenantUserResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenantUser'), 'Required key "GetTenantUserResponse[tenantUser]" is missing from JSON.'); + assert(json[r'tenantUser'] != null, 'Required key "GetTenantUserResponse[tenantUser]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_tenant_users_response.dart b/client/lib/model/get_tenant_users_response.dart index c91a8c4..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]'; @@ -53,10 +55,10 @@ class GetTenantUsersResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTenantUsersResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTenantUsersResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTenantUsersResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTenantUsersResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenantUsers'), 'Required key "GetTenantUsersResponse[tenantUsers]" is missing from JSON.'); + assert(json[r'tenantUsers'] != null, 'Required key "GetTenantUsersResponse[tenantUsers]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_tenants_response.dart b/client/lib/model/get_tenants_response.dart index 7ca8aa9..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]'; @@ -53,10 +55,10 @@ class GetTenantsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTenantsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTenantsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTenantsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTenantsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tenants'), 'Required key "GetTenantsResponse[tenants]" is missing from JSON.'); + assert(json[r'tenants'] != null, 'Required key "GetTenantsResponse[tenants]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_ticket_response.dart b/client/lib/model/get_ticket_response.dart index 4ee9446..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]'; @@ -59,10 +61,12 @@ class GetTicketResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTicketResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTicketResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTicketResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTicketResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'ticket'), 'Required key "GetTicketResponse[ticket]" is missing from JSON.'); + assert(json[r'ticket'] != null, 'Required key "GetTicketResponse[ticket]" has a null value in JSON.'); + assert(json.containsKey(r'availableStates'), 'Required key "GetTicketResponse[availableStates]" is missing from JSON.'); + assert(json[r'availableStates'] != null, 'Required key "GetTicketResponse[availableStates]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_tickets_response.dart b/client/lib/model/get_tickets_response.dart index 6976d45..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]'; @@ -53,10 +55,10 @@ class GetTicketsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTicketsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTicketsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetTicketsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetTicketsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'tickets'), 'Required key "GetTicketsResponse[tickets]" is missing from JSON.'); + assert(json[r'tickets'] != null, 'Required key "GetTicketsResponse[tickets]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_translations_response.dart b/client/lib/model/get_translations_response.dart index cb82cf4..a990948 100644 --- a/client/lib/model/get_translations_response.dart +++ b/client/lib/model/get_translations_response.dart @@ -25,13 +25,15 @@ class GetTranslationsResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetTranslationsResponse && _deepEquality.equals(other.translations, translations) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (translations.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GetTranslationsResponse[translations=$translations, status=$status]'; @@ -54,10 +56,10 @@ class GetTranslationsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetTranslationsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetTranslationsResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_user_internal_profile_response.dart b/client/lib/model/get_user_internal_profile_response.dart index 7010eb1..c8636c8 100644 --- a/client/lib/model/get_user_internal_profile_response.dart +++ b/client/lib/model/get_user_internal_profile_response.dart @@ -24,13 +24,15 @@ class GetUserInternalProfileResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetUserInternalProfileResponse && other.profile == profile && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (profile.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GetUserInternalProfileResponse[profile=$profile, status=$status]'; @@ -53,10 +55,10 @@ class GetUserInternalProfileResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetUserInternalProfileResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetUserInternalProfileResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_user_internal_profile_response_profile.dart b/client/lib/model/get_user_internal_profile_response_profile.dart index 87f63ef..6567284 100644 --- a/client/lib/model/get_user_internal_profile_response_profile.dart +++ b/client/lib/model/get_user_internal_profile_response_profile.dart @@ -129,43 +129,45 @@ class GetUserInternalProfileResponseProfile { @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; + 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); + (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]'; @@ -271,10 +273,6 @@ class GetUserInternalProfileResponseProfile { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetUserInternalProfileResponseProfile[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetUserInternalProfileResponseProfile[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/get_user_manual_badges_response.dart b/client/lib/model/get_user_manual_badges_response.dart index 9d95010..89880b3 100644 --- a/client/lib/model/get_user_manual_badges_response.dart +++ b/client/lib/model/get_user_manual_badges_response.dart @@ -24,13 +24,15 @@ class GetUserManualBadgesResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetUserManualBadgesResponse && _deepEquality.equals(other.badges, badges) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (badges.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GetUserManualBadgesResponse[badges=$badges, status=$status]'; @@ -53,10 +55,10 @@ class GetUserManualBadgesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetUserManualBadgesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetUserManualBadgesResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_user_notification_count_response.dart b/client/lib/model/get_user_notification_count_response.dart index 2de59f3..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]'; @@ -53,10 +55,10 @@ class GetUserNotificationCountResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetUserNotificationCountResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetUserNotificationCountResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetUserNotificationCountResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetUserNotificationCountResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'count'), 'Required key "GetUserNotificationCountResponse[count]" is missing from JSON.'); + assert(json[r'count'] != null, 'Required key "GetUserNotificationCountResponse[count]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_user_presence_statuses_response.dart b/client/lib/model/get_user_presence_statuses_response.dart index 6dc069c..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]'; @@ -54,10 +56,10 @@ class GetUserPresenceStatusesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetUserPresenceStatusesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetUserPresenceStatusesResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetUserPresenceStatusesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetUserPresenceStatusesResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'userIdsOnline'), 'Required key "GetUserPresenceStatusesResponse[userIdsOnline]" is missing from JSON.'); + assert(json[r'userIdsOnline'] != null, 'Required key "GetUserPresenceStatusesResponse[userIdsOnline]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_user_response.dart b/client/lib/model/get_user_response.dart index 3fe0396..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]'; @@ -53,10 +55,10 @@ class GetUserResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetUserResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetUserResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetUserResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetUserResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'user'), 'Required key "GetUserResponse[user]" is missing from JSON.'); + assert(json[r'user'] != null, 'Required key "GetUserResponse[user]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_user_trust_factor_response.dart b/client/lib/model/get_user_trust_factor_response.dart index dfd0349..c03fe18 100644 --- a/client/lib/model/get_user_trust_factor_response.dart +++ b/client/lib/model/get_user_trust_factor_response.dart @@ -39,15 +39,17 @@ class GetUserTrustFactorResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetUserTrustFactorResponse && other.manualTrustFactor == manualTrustFactor && - other.autoTrustFactor == autoTrustFactor && - other.status == status; + 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); + (autoTrustFactor == null ? 0 : autoTrustFactor!.hashCode) + + (status.hashCode); + @override String toString() => 'GetUserTrustFactorResponse[manualTrustFactor=$manualTrustFactor, autoTrustFactor=$autoTrustFactor, status=$status]'; @@ -79,10 +81,8 @@ class GetUserTrustFactorResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetUserTrustFactorResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetUserTrustFactorResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_v1_page_likes.dart b/client/lib/model/get_v1_page_likes.dart index 159cc5c..221bf4a 100644 --- a/client/lib/model/get_v1_page_likes.dart +++ b/client/lib/model/get_v1_page_likes.dart @@ -33,19 +33,21 @@ class GetV1PageLikes { @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; + 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); + (didLike.hashCode) + + (commentCount.hashCode) + + (likeCount.hashCode) + + (status.hashCode); + @override String toString() => 'GetV1PageLikes[urlIdWS=$urlIdWS, didLike=$didLike, commentCount=$commentCount, likeCount=$likeCount, status=$status]'; @@ -71,10 +73,16 @@ class GetV1PageLikes { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetV1PageLikes[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetV1PageLikes[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_v2_page_react_users_response.dart b/client/lib/model/get_v2_page_react_users_response.dart index 3a45ecc..effe557 100644 --- a/client/lib/model/get_v2_page_react_users_response.dart +++ b/client/lib/model/get_v2_page_react_users_response.dart @@ -24,13 +24,15 @@ class GetV2PageReactUsersResponse { @override bool operator ==(Object other) => identical(this, other) || other is GetV2PageReactUsersResponse && _deepEquality.equals(other.userNames, userNames) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (userNames.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GetV2PageReactUsersResponse[userNames=$userNames, status=$status]'; @@ -53,10 +55,10 @@ class GetV2PageReactUsersResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetV2PageReactUsersResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetV2PageReactUsersResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_v2_page_reacts.dart b/client/lib/model/get_v2_page_reacts.dart index 83f8e09..6e959a1 100644 --- a/client/lib/model/get_v2_page_reacts.dart +++ b/client/lib/model/get_v2_page_reacts.dart @@ -28,15 +28,17 @@ class GetV2PageReacts { @override bool operator ==(Object other) => identical(this, other) || other is GetV2PageReacts && _deepEquality.equals(other.reactedIds, reactedIds) && - _deepEquality.equals(other.counts, counts) && - other.status == status; + _deepEquality.equals(other.counts, counts) && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (reactedIds.hashCode) + - (counts.hashCode) + - (status.hashCode); + (counts.hashCode) + + (status.hashCode); + @override String toString() => 'GetV2PageReacts[reactedIds=$reactedIds, counts=$counts, status=$status]'; @@ -60,10 +62,8 @@ class GetV2PageReacts { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetV2PageReacts[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetV2PageReacts[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/get_votes_for_user_response.dart b/client/lib/model/get_votes_for_user_response.dart index 94318f8..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]'; @@ -65,10 +67,14 @@ class GetVotesForUserResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetVotesForUserResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetVotesForUserResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetVotesForUserResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetVotesForUserResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'appliedAuthorizedVotes'), 'Required key "GetVotesForUserResponse[appliedAuthorizedVotes]" is missing from JSON.'); + assert(json[r'appliedAuthorizedVotes'] != null, 'Required key "GetVotesForUserResponse[appliedAuthorizedVotes]" has a null value in JSON.'); + assert(json.containsKey(r'appliedAnonymousVotes'), 'Required key "GetVotesForUserResponse[appliedAnonymousVotes]" is missing from JSON.'); + assert(json[r'appliedAnonymousVotes'] != null, 'Required key "GetVotesForUserResponse[appliedAnonymousVotes]" has a null value in JSON.'); + assert(json.containsKey(r'pendingVotes'), 'Required key "GetVotesForUserResponse[pendingVotes]" is missing from JSON.'); + assert(json[r'pendingVotes'] != null, 'Required key "GetVotesForUserResponse[pendingVotes]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/get_votes_response.dart b/client/lib/model/get_votes_response.dart index 20b0867..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]'; @@ -65,10 +67,14 @@ class GetVotesResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GetVotesResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GetVotesResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "GetVotesResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "GetVotesResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'appliedAuthorizedVotes'), 'Required key "GetVotesResponse[appliedAuthorizedVotes]" is missing from JSON.'); + assert(json[r'appliedAuthorizedVotes'] != null, 'Required key "GetVotesResponse[appliedAuthorizedVotes]" has a null value in JSON.'); + assert(json.containsKey(r'appliedAnonymousVotes'), 'Required key "GetVotesResponse[appliedAnonymousVotes]" is missing from JSON.'); + assert(json[r'appliedAnonymousVotes'] != null, 'Required key "GetVotesResponse[appliedAnonymousVotes]" has a null value in JSON.'); + assert(json.containsKey(r'pendingVotes'), 'Required key "GetVotesResponse[pendingVotes]" is missing from JSON.'); + assert(json[r'pendingVotes'] != null, 'Required key "GetVotesResponse[pendingVotes]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/gif_get_large_response.dart b/client/lib/model/gif_get_large_response.dart index b6f1147..9165dac 100644 --- a/client/lib/model/gif_get_large_response.dart +++ b/client/lib/model/gif_get_large_response.dart @@ -24,13 +24,15 @@ class GifGetLargeResponse { @override bool operator ==(Object other) => identical(this, other) || other is GifGetLargeResponse && other.src == src && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (src.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GifGetLargeResponse[src=$src, status=$status]'; @@ -53,10 +55,10 @@ class GifGetLargeResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GifGetLargeResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GifGetLargeResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/gif_search_internal_error.dart b/client/lib/model/gif_search_internal_error.dart index 3fd103f..31b1b64 100644 --- a/client/lib/model/gif_search_internal_error.dart +++ b/client/lib/model/gif_search_internal_error.dart @@ -24,13 +24,15 @@ class GifSearchInternalError { @override bool operator ==(Object other) => identical(this, other) || other is GifSearchInternalError && other.code == code && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (code.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GifSearchInternalError[code=$code, status=$status]'; @@ -53,10 +55,10 @@ class GifSearchInternalError { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GifSearchInternalError[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GifSearchInternalError[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/gif_search_response.dart b/client/lib/model/gif_search_response.dart index 94030cc..c919127 100644 --- a/client/lib/model/gif_search_response.dart +++ b/client/lib/model/gif_search_response.dart @@ -24,13 +24,15 @@ class GifSearchResponse { @override bool operator ==(Object other) => identical(this, other) || other is GifSearchResponse && _deepEquality.equals(other.images, images) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (images.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'GifSearchResponse[images=$images, status=$status]'; @@ -53,10 +55,10 @@ class GifSearchResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GifSearchResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GifSearchResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/gif_search_response_images_inner_inner.dart b/client/lib/model/gif_search_response_images_inner_inner.dart index 7066696..85cf0e9 100644 --- a/client/lib/model/gif_search_response_images_inner_inner.dart +++ b/client/lib/model/gif_search_response_images_inner_inner.dart @@ -12,15 +12,15 @@ part of openapi.api; class GifSearchResponseImagesInnerInner { /// Returns a new [GifSearchResponseImagesInnerInner] instance. - GifSearchResponseImagesInnerInner({ - }); + GifSearchResponseImagesInnerInner(); @override - bool operator ==(Object other) => identical(this, other) || other is GifSearchResponseImagesInnerInner && + bool operator ==(Object other) => identical(this, other) || other is GifSearchResponseImagesInnerInner; @override int get hashCode => // ignore: unnecessary_parenthesis + 0; @override String toString() => 'GifSearchResponseImagesInnerInner[]'; @@ -41,10 +41,6 @@ class GifSearchResponseImagesInnerInner { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "GifSearchResponseImagesInnerInner[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "GifSearchResponseImagesInnerInner[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/header_account_notification.dart b/client/lib/model/header_account_notification.dart index c74c500..b37b8a0 100644 --- a/client/lib/model/header_account_notification.dart +++ b/client/lib/model/header_account_notification.dart @@ -51,29 +51,31 @@ class HeaderAccountNotification { @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.type == type; + 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) + - (type == null ? 0 : type!.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, type=$type]'; @@ -124,10 +126,20 @@ class HeaderAccountNotification { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "HeaderAccountNotification[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "HeaderAccountNotification[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "HeaderAccountNotification[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "HeaderAccountNotification[_id]" has a null value in JSON.'); + assert(json.containsKey(r'title'), 'Required key "HeaderAccountNotification[title]" is missing from JSON.'); + assert(json[r'title'] != null, 'Required key "HeaderAccountNotification[title]" has a null value in JSON.'); + assert(json.containsKey(r'message'), 'Required key "HeaderAccountNotification[message]" is missing from JSON.'); + assert(json[r'message'] != null, 'Required key "HeaderAccountNotification[message]" has a null value in JSON.'); + assert(json.containsKey(r'messagesByLocale'), 'Required key "HeaderAccountNotification[messagesByLocale]" is missing from JSON.'); + assert(json.containsKey(r'dates'), 'Required key "HeaderAccountNotification[dates]" is missing from JSON.'); + assert(json.containsKey(r'severity'), 'Required key "HeaderAccountNotification[severity]" is missing from JSON.'); + assert(json[r'severity'] != null, 'Required key "HeaderAccountNotification[severity]" has a null value in JSON.'); + assert(json.containsKey(r'linkUrl'), 'Required key "HeaderAccountNotification[linkUrl]" is missing from JSON.'); + assert(json.containsKey(r'linkText'), 'Required key "HeaderAccountNotification[linkText]" is missing from JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "HeaderAccountNotification[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "HeaderAccountNotification[createdAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/header_state.dart b/client/lib/model/header_state.dart index 2729e41..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]'; @@ -77,10 +79,18 @@ class HeaderState { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "HeaderState[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "HeaderState[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "HeaderState[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "HeaderState[status]" has a null value in JSON.'); + assert(json.containsKey(r'NotificationType'), 'Required key "HeaderState[NotificationType]" is missing from JSON.'); + assert(json[r'NotificationType'] != null, 'Required key "HeaderState[NotificationType]" has a null value in JSON.'); + assert(json.containsKey(r'userId'), 'Required key "HeaderState[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "HeaderState[userId]" has a null value in JSON.'); + assert(json.containsKey(r'userIdWS'), 'Required key "HeaderState[userIdWS]" is missing from JSON.'); + assert(json[r'userIdWS'] != null, 'Required key "HeaderState[userIdWS]" has a null value in JSON.'); + assert(json.containsKey(r'notificationCounts'), 'Required key "HeaderState[notificationCounts]" is missing from JSON.'); + assert(json[r'notificationCounts'] != null, 'Required key "HeaderState[notificationCounts]" has a null value in JSON.'); + assert(json.containsKey(r'accountNotifications'), 'Required key "HeaderState[accountNotifications]" is missing from JSON.'); + assert(json[r'accountNotifications'] != null, 'Required key "HeaderState[accountNotifications]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/ignored_response.dart b/client/lib/model/ignored_response.dart index 0ef087b..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]'; @@ -53,10 +55,10 @@ class IgnoredResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "IgnoredResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "IgnoredResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "IgnoredResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "IgnoredResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'note'), 'Required key "IgnoredResponse[note]" is missing from JSON.'); + assert(json[r'note'] != null, 'Required key "IgnoredResponse[note]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/live_event.dart b/client/lib/model/live_event.dart index b20b3d2..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]'; @@ -263,10 +265,8 @@ class LiveEvent { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "LiveEvent[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "LiveEvent[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'type'), 'Required key "LiveEvent[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "LiveEvent[type]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/live_event_extra_info.dart b/client/lib/model/live_event_extra_info.dart index 4b10e8f..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]'; @@ -48,10 +50,6 @@ class LiveEventExtraInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "LiveEventExtraInfo[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "LiveEventExtraInfo[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/media_asset.dart b/client/lib/model/media_asset.dart index 5d21fc4..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]'; @@ -59,10 +61,12 @@ class MediaAsset { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "MediaAsset[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "MediaAsset[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'w'), 'Required key "MediaAsset[w]" is missing from JSON.'); + assert(json[r'w'] != null, 'Required key "MediaAsset[w]" has a null value in JSON.'); + assert(json.containsKey(r'h'), 'Required key "MediaAsset[h]" is missing from JSON.'); + assert(json[r'h'] != null, 'Required key "MediaAsset[h]" has a null value in JSON.'); + assert(json.containsKey(r'src'), 'Required key "MediaAsset[src]" is missing from JSON.'); + assert(json[r'src'] != null, 'Required key "MediaAsset[src]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/meta_item.dart b/client/lib/model/meta_item.dart index cb8eefa..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]'; @@ -53,10 +55,10 @@ class MetaItem { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "MetaItem[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "MetaItem[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'name'), 'Required key "MetaItem[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "MetaItem[name]" has a null value in JSON.'); + assert(json.containsKey(r'values'), 'Required key "MetaItem[values]" is missing from JSON.'); + assert(json[r'values'] != null, 'Required key "MetaItem[values]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/moderation_api_child_comments_response.dart b/client/lib/model/moderation_api_child_comments_response.dart index cc8bf72..7dd4df0 100644 --- a/client/lib/model/moderation_api_child_comments_response.dart +++ b/client/lib/model/moderation_api_child_comments_response.dart @@ -24,13 +24,15 @@ class ModerationAPIChildCommentsResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationAPIChildCommentsResponse && _deepEquality.equals(other.comments, comments) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (comments.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'ModerationAPIChildCommentsResponse[comments=$comments, status=$status]'; @@ -53,10 +55,10 @@ class ModerationAPIChildCommentsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationAPIChildCommentsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationAPIChildCommentsResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_api_comment.dart b/client/lib/model/moderation_api_comment.dart index 9067f74..2fcb687 100644 --- a/client/lib/model/moderation_api_comment.dart +++ b/client/lib/model/moderation_api_comment.dart @@ -228,93 +228,95 @@ class ModerationAPIComment { @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; + 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); + (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]'; @@ -505,10 +507,24 @@ class ModerationAPIComment { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationAPIComment[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationAPIComment[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_api_comment_log.dart b/client/lib/model/moderation_api_comment_log.dart index 6d7a683..8453562 100644 --- a/client/lib/model/moderation_api_comment_log.dart +++ b/client/lib/model/moderation_api_comment_log.dart @@ -36,17 +36,19 @@ class ModerationAPICommentLog { @override bool operator ==(Object other) => identical(this, other) || other is ModerationAPICommentLog && other.date == date && - other.username == username && - other.actionName == actionName && - other.messageHTML == messageHTML; + 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); + (username == null ? 0 : username!.hashCode) + + (actionName.hashCode) + + (messageHTML.hashCode); + @override String toString() => 'ModerationAPICommentLog[date=$date, username=$username, actionName=$actionName, messageHTML=$messageHTML]'; @@ -75,10 +77,12 @@ class ModerationAPICommentLog { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationAPICommentLog[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationAPICommentLog[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_api_comment_response.dart b/client/lib/model/moderation_api_comment_response.dart index 87d45ba..2973fad 100644 --- a/client/lib/model/moderation_api_comment_response.dart +++ b/client/lib/model/moderation_api_comment_response.dart @@ -24,13 +24,15 @@ class ModerationAPICommentResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationAPICommentResponse && 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() => 'ModerationAPICommentResponse[comment=$comment, status=$status]'; @@ -53,10 +55,10 @@ class ModerationAPICommentResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationAPICommentResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationAPICommentResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_api_count_comments_response.dart b/client/lib/model/moderation_api_count_comments_response.dart index eac764c..ddd96b7 100644 --- a/client/lib/model/moderation_api_count_comments_response.dart +++ b/client/lib/model/moderation_api_count_comments_response.dart @@ -24,13 +24,15 @@ class ModerationAPICountCommentsResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationAPICountCommentsResponse && 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() => 'ModerationAPICountCommentsResponse[status=$status, count=$count]'; @@ -53,10 +55,10 @@ class ModerationAPICountCommentsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationAPICountCommentsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationAPICountCommentsResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_api_get_comment_ids_response.dart b/client/lib/model/moderation_api_get_comment_ids_response.dart index 380fc30..88845b5 100644 --- a/client/lib/model/moderation_api_get_comment_ids_response.dart +++ b/client/lib/model/moderation_api_get_comment_ids_response.dart @@ -27,15 +27,17 @@ class ModerationAPIGetCommentIdsResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationAPIGetCommentIdsResponse && _deepEquality.equals(other.ids, ids) && - other.hasMore == hasMore && - other.status == status; + other.hasMore == hasMore && + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (ids.hashCode) + - (hasMore.hashCode) + - (status.hashCode); + (hasMore.hashCode) + + (status.hashCode); + @override String toString() => 'ModerationAPIGetCommentIdsResponse[ids=$ids, hasMore=$hasMore, status=$status]'; @@ -59,10 +61,12 @@ class ModerationAPIGetCommentIdsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationAPIGetCommentIdsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationAPIGetCommentIdsResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_api_get_comments_response.dart b/client/lib/model/moderation_api_get_comments_response.dart index 808475e..4e737ad 100644 --- a/client/lib/model/moderation_api_get_comments_response.dart +++ b/client/lib/model/moderation_api_get_comments_response.dart @@ -36,17 +36,19 @@ class ModerationAPIGetCommentsResponse { @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; + 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); + (translations.hashCode) + + (comments.hashCode) + + (moderationFilter == null ? 0 : moderationFilter!.hashCode); + @override String toString() => 'ModerationAPIGetCommentsResponse[status=$status, translations=$translations, comments=$comments, moderationFilter=$moderationFilter]'; @@ -75,10 +77,12 @@ class ModerationAPIGetCommentsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationAPIGetCommentsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationAPIGetCommentsResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_api_get_logs_response.dart b/client/lib/model/moderation_api_get_logs_response.dart index 0530f15..be89b2c 100644 --- a/client/lib/model/moderation_api_get_logs_response.dart +++ b/client/lib/model/moderation_api_get_logs_response.dart @@ -24,13 +24,15 @@ class ModerationAPIGetLogsResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationAPIGetLogsResponse && _deepEquality.equals(other.logs, logs) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (logs.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'ModerationAPIGetLogsResponse[logs=$logs, status=$status]'; @@ -53,10 +55,10 @@ class ModerationAPIGetLogsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationAPIGetLogsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationAPIGetLogsResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_comment_search_response.dart b/client/lib/model/moderation_comment_search_response.dart index 4330c57..f062e82 100644 --- a/client/lib/model/moderation_comment_search_response.dart +++ b/client/lib/model/moderation_comment_search_response.dart @@ -24,13 +24,15 @@ class ModerationCommentSearchResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationCommentSearchResponse && other.commentCount == commentCount && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (commentCount.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'ModerationCommentSearchResponse[commentCount=$commentCount, status=$status]'; @@ -53,10 +55,10 @@ class ModerationCommentSearchResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationCommentSearchResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationCommentSearchResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_export_response.dart b/client/lib/model/moderation_export_response.dart index e6a4512..3013590 100644 --- a/client/lib/model/moderation_export_response.dart +++ b/client/lib/model/moderation_export_response.dart @@ -24,13 +24,15 @@ class ModerationExportResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationExportResponse && other.status == status && - other.batchJobId == batchJobId; + other.batchJobId == batchJobId; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (batchJobId.hashCode); + (batchJobId.hashCode); + @override String toString() => 'ModerationExportResponse[status=$status, batchJobId=$batchJobId]'; @@ -53,10 +55,10 @@ class ModerationExportResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationExportResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationExportResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_export_status_response.dart b/client/lib/model/moderation_export_status_response.dart index ff02fe6..63635c7 100644 --- a/client/lib/model/moderation_export_status_response.dart +++ b/client/lib/model/moderation_export_status_response.dart @@ -36,17 +36,19 @@ class ModerationExportStatusResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationExportStatusResponse && other.status == status && - other.jobStatus == jobStatus && - other.recordCount == recordCount && - other.downloadUrl == downloadUrl; + 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); + (jobStatus.hashCode) + + (recordCount.hashCode) + + (downloadUrl == null ? 0 : downloadUrl!.hashCode); + @override String toString() => 'ModerationExportStatusResponse[status=$status, jobStatus=$jobStatus, recordCount=$recordCount, downloadUrl=$downloadUrl]'; @@ -75,10 +77,12 @@ class ModerationExportStatusResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationExportStatusResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationExportStatusResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_filter.dart b/client/lib/model/moderation_filter.dart index f1e58cf..e198b40 100644 --- a/client/lib/model/moderation_filter.dart +++ b/client/lib/model/moderation_filter.dart @@ -116,33 +116,35 @@ class ModerationFilter { @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; + 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); + (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]'; @@ -215,10 +217,6 @@ class ModerationFilter { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationFilter[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationFilter[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/moderation_page_search_projected.dart b/client/lib/model/moderation_page_search_projected.dart index 445b0a4..d947eb8 100644 --- a/client/lib/model/moderation_page_search_projected.dart +++ b/client/lib/model/moderation_page_search_projected.dart @@ -30,17 +30,19 @@ class ModerationPageSearchProjected { @override bool operator ==(Object other) => identical(this, other) || other is ModerationPageSearchProjected && other.urlId == urlId && - other.url == url && - other.title == title && - other.commentCount == commentCount; + other.url == url && + other.title == title && + other.commentCount == commentCount; + @override int get hashCode => // ignore: unnecessary_parenthesis (urlId.hashCode) + - (url.hashCode) + - (title.hashCode) + - (commentCount.hashCode); + (url.hashCode) + + (title.hashCode) + + (commentCount.hashCode); + @override String toString() => 'ModerationPageSearchProjected[urlId=$urlId, url=$url, title=$title, commentCount=$commentCount]'; @@ -65,10 +67,14 @@ class ModerationPageSearchProjected { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationPageSearchProjected[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationPageSearchProjected[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_page_search_response.dart b/client/lib/model/moderation_page_search_response.dart index a592097..3efe27e 100644 --- a/client/lib/model/moderation_page_search_response.dart +++ b/client/lib/model/moderation_page_search_response.dart @@ -24,13 +24,15 @@ class ModerationPageSearchResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationPageSearchResponse && _deepEquality.equals(other.pages, pages) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (pages.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'ModerationPageSearchResponse[pages=$pages, status=$status]'; @@ -53,10 +55,10 @@ class ModerationPageSearchResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationPageSearchResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationPageSearchResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_site_search_projected.dart b/client/lib/model/moderation_site_search_projected.dart index c16570f..4c51a7d 100644 --- a/client/lib/model/moderation_site_search_projected.dart +++ b/client/lib/model/moderation_site_search_projected.dart @@ -24,13 +24,15 @@ class ModerationSiteSearchProjected { @override bool operator ==(Object other) => identical(this, other) || other is ModerationSiteSearchProjected && other.domain == domain && - other.logoSrc100px == logoSrc100px; + other.logoSrc100px == logoSrc100px; + @override int get hashCode => // ignore: unnecessary_parenthesis (domain.hashCode) + - (logoSrc100px == null ? 0 : logoSrc100px!.hashCode); + (logoSrc100px == null ? 0 : logoSrc100px!.hashCode); + @override String toString() => 'ModerationSiteSearchProjected[domain=$domain, logoSrc100px=$logoSrc100px]'; @@ -57,10 +59,8 @@ class ModerationSiteSearchProjected { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationSiteSearchProjected[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationSiteSearchProjected[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_site_search_response.dart b/client/lib/model/moderation_site_search_response.dart index 530b595..63b4dd6 100644 --- a/client/lib/model/moderation_site_search_response.dart +++ b/client/lib/model/moderation_site_search_response.dart @@ -24,13 +24,15 @@ class ModerationSiteSearchResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationSiteSearchResponse && _deepEquality.equals(other.sites, sites) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (sites.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'ModerationSiteSearchResponse[sites=$sites, status=$status]'; @@ -53,10 +55,10 @@ class ModerationSiteSearchResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationSiteSearchResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationSiteSearchResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_suggest_response.dart b/client/lib/model/moderation_suggest_response.dart index c836d6d..3647516 100644 --- a/client/lib/model/moderation_suggest_response.dart +++ b/client/lib/model/moderation_suggest_response.dart @@ -36,17 +36,19 @@ class ModerationSuggestResponse { @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; + _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); + (pages.hashCode) + + (users.hashCode) + + (code == null ? 0 : code!.hashCode); + @override String toString() => 'ModerationSuggestResponse[status=$status, pages=$pages, users=$users, code=$code]'; @@ -75,10 +77,8 @@ class ModerationSuggestResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationSuggestResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationSuggestResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_user_search_projected.dart b/client/lib/model/moderation_user_search_projected.dart index 48aa8d0..4cfd942 100644 --- a/client/lib/model/moderation_user_search_projected.dart +++ b/client/lib/model/moderation_user_search_projected.dart @@ -30,17 +30,19 @@ class ModerationUserSearchProjected { @override bool operator ==(Object other) => identical(this, other) || other is ModerationUserSearchProjected && other.id == id && - other.username == username && - other.displayName == displayName && - other.avatarSrc == avatarSrc; + 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); + (username.hashCode) + + (displayName == null ? 0 : displayName!.hashCode) + + (avatarSrc == null ? 0 : avatarSrc!.hashCode); + @override String toString() => 'ModerationUserSearchProjected[id=$id, username=$username, displayName=$displayName, avatarSrc=$avatarSrc]'; @@ -73,10 +75,10 @@ class ModerationUserSearchProjected { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationUserSearchProjected[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationUserSearchProjected[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderation_user_search_response.dart b/client/lib/model/moderation_user_search_response.dart index fb5614f..3b1c89f 100644 --- a/client/lib/model/moderation_user_search_response.dart +++ b/client/lib/model/moderation_user_search_response.dart @@ -24,13 +24,15 @@ class ModerationUserSearchResponse { @override bool operator ==(Object other) => identical(this, other) || other is ModerationUserSearchResponse && _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() => 'ModerationUserSearchResponse[users=$users, status=$status]'; @@ -53,10 +55,10 @@ class ModerationUserSearchResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ModerationUserSearchResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ModerationUserSearchResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/moderator.dart b/client/lib/model/moderator.dart index d5aa9c2..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]'; @@ -185,10 +187,37 @@ class Moderator { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "Moderator[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "Moderator[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "Moderator[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "Moderator[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "Moderator[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "Moderator[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'name'), 'Required key "Moderator[name]" is missing from JSON.'); + assert(json.containsKey(r'userId'), 'Required key "Moderator[userId]" is missing from JSON.'); + assert(json.containsKey(r'acceptedInvite'), 'Required key "Moderator[acceptedInvite]" is missing from JSON.'); + assert(json[r'acceptedInvite'] != null, 'Required key "Moderator[acceptedInvite]" has a null value in JSON.'); + assert(json.containsKey(r'email'), 'Required key "Moderator[email]" is missing from JSON.'); + assert(json.containsKey(r'markReviewedCount'), 'Required key "Moderator[markReviewedCount]" is missing from JSON.'); + assert(json[r'markReviewedCount'] != null, 'Required key "Moderator[markReviewedCount]" has a null value in JSON.'); + assert(json.containsKey(r'deletedCount'), 'Required key "Moderator[deletedCount]" is missing from JSON.'); + assert(json[r'deletedCount'] != null, 'Required key "Moderator[deletedCount]" has a null value in JSON.'); + assert(json.containsKey(r'markedSpamCount'), 'Required key "Moderator[markedSpamCount]" is missing from JSON.'); + assert(json[r'markedSpamCount'] != null, 'Required key "Moderator[markedSpamCount]" has a null value in JSON.'); + assert(json.containsKey(r'markedNotSpamCount'), 'Required key "Moderator[markedNotSpamCount]" is missing from JSON.'); + assert(json[r'markedNotSpamCount'] != null, 'Required key "Moderator[markedNotSpamCount]" has a null value in JSON.'); + assert(json.containsKey(r'approvedCount'), 'Required key "Moderator[approvedCount]" is missing from JSON.'); + assert(json[r'approvedCount'] != null, 'Required key "Moderator[approvedCount]" has a null value in JSON.'); + assert(json.containsKey(r'unApprovedCount'), 'Required key "Moderator[unApprovedCount]" is missing from JSON.'); + assert(json[r'unApprovedCount'] != null, 'Required key "Moderator[unApprovedCount]" has a null value in JSON.'); + assert(json.containsKey(r'editedCount'), 'Required key "Moderator[editedCount]" is missing from JSON.'); + assert(json[r'editedCount'] != null, 'Required key "Moderator[editedCount]" has a null value in JSON.'); + assert(json.containsKey(r'bannedCount'), 'Required key "Moderator[bannedCount]" is missing from JSON.'); + assert(json[r'bannedCount'] != null, 'Required key "Moderator[bannedCount]" has a null value in JSON.'); + assert(json.containsKey(r'unFlaggedCount'), 'Required key "Moderator[unFlaggedCount]" is missing from JSON.'); + assert(json[r'unFlaggedCount'] != null, 'Required key "Moderator[unFlaggedCount]" has a null value in JSON.'); + assert(json.containsKey(r'verificationId'), 'Required key "Moderator[verificationId]" is missing from JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "Moderator[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "Moderator[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'moderationGroupIds'), 'Required key "Moderator[moderationGroupIds]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/notification_and_count.dart b/client/lib/model/notification_and_count.dart index a4793e7..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]'; @@ -53,10 +55,10 @@ class NotificationAndCount { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "NotificationAndCount[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "NotificationAndCount[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'type'), 'Required key "NotificationAndCount[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "NotificationAndCount[type]" has a null value in JSON.'); + assert(json.containsKey(r'count'), 'Required key "NotificationAndCount[count]" is missing from JSON.'); + assert(json[r'count'] != null, 'Required key "NotificationAndCount[count]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/page_user_entry.dart b/client/lib/model/page_user_entry.dart index bacf9f9..02e20ae 100644 --- a/client/lib/model/page_user_entry.dart +++ b/client/lib/model/page_user_entry.dart @@ -42,17 +42,19 @@ class PageUserEntry { @override bool operator ==(Object other) => identical(this, other) || other is PageUserEntry && other.isPrivate == isPrivate && - other.avatarSrc == avatarSrc && - other.displayName == displayName && - other.id == id; + 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); + (avatarSrc == null ? 0 : avatarSrc!.hashCode) + + (displayName.hashCode) + + (id.hashCode); + @override String toString() => 'PageUserEntry[isPrivate=$isPrivate, avatarSrc=$avatarSrc, displayName=$displayName, id=$id]'; @@ -85,10 +87,10 @@ class PageUserEntry { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PageUserEntry[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PageUserEntry[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/page_users_info_response.dart b/client/lib/model/page_users_info_response.dart index afff241..d33cc9e 100644 --- a/client/lib/model/page_users_info_response.dart +++ b/client/lib/model/page_users_info_response.dart @@ -24,13 +24,15 @@ class PageUsersInfoResponse { @override bool operator ==(Object other) => identical(this, other) || other is PageUsersInfoResponse && _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() => 'PageUsersInfoResponse[users=$users, status=$status]'; @@ -53,10 +55,10 @@ class PageUsersInfoResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PageUsersInfoResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PageUsersInfoResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/page_users_offline_response.dart b/client/lib/model/page_users_offline_response.dart index 02ea9ab..6732f90 100644 --- a/client/lib/model/page_users_offline_response.dart +++ b/client/lib/model/page_users_offline_response.dart @@ -30,17 +30,19 @@ class PageUsersOfflineResponse { @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; + 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); + (nextAfterName == null ? 0 : nextAfterName!.hashCode) + + (users.hashCode) + + (status.hashCode); + @override String toString() => 'PageUsersOfflineResponse[nextAfterUserId=$nextAfterUserId, nextAfterName=$nextAfterName, users=$users, status=$status]'; @@ -73,10 +75,12 @@ class PageUsersOfflineResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PageUsersOfflineResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PageUsersOfflineResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/page_users_online_response.dart b/client/lib/model/page_users_online_response.dart index dab8f1f..e008eb4 100644 --- a/client/lib/model/page_users_online_response.dart +++ b/client/lib/model/page_users_online_response.dart @@ -36,21 +36,23 @@ class PageUsersOnlineResponse { @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; + 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); + (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]'; @@ -85,10 +87,16 @@ class PageUsersOnlineResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PageUsersOnlineResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PageUsersOnlineResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/patch_domain_config_params.dart b/client/lib/model/patch_domain_config_params.dart index 5f8b74c..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]'; @@ -144,10 +146,6 @@ class PatchDomainConfigParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PatchDomainConfigParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PatchDomainConfigParams[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/patch_domain_config_response.dart b/client/lib/model/patch_domain_config_response.dart index c3fddb1..e53e4c6 100644 --- a/client/lib/model/patch_domain_config_response.dart +++ b/client/lib/model/patch_domain_config_response.dart @@ -13,34 +13,48 @@ part of openapi.api; class PatchDomainConfigResponse { /// Returns a new [PatchDomainConfigResponse] instance. PatchDomainConfigResponse({ - required this.configuration, + this.configuration, required this.status, - required this.reason, - required this.code, + this.reason, + this.code, }); Object? configuration; Object? 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? 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; + 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); + (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]'; @@ -57,8 +71,16 @@ class PatchDomainConfigResponse { } 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; } @@ -73,18 +95,15 @@ class PatchDomainConfigResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PatchDomainConfigResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PatchDomainConfigResponse[$key]" has a null value in JSON.'); - }); + 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')!, + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), ); } return null; @@ -132,10 +151,7 @@ class PatchDomainConfigResponse { /// 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/patch_page_api_response.dart b/client/lib/model/patch_page_api_response.dart index 07381a3..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]'; @@ -111,10 +113,8 @@ class PatchPageAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PatchPageAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PatchPageAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "PatchPageAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PatchPageAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/patch_sso_user_api_response.dart b/client/lib/model/patch_sso_user_api_response.dart index 9f575f0..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]'; @@ -95,10 +97,8 @@ class PatchSSOUserAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PatchSSOUserAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PatchSSOUserAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "PatchSSOUserAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PatchSSOUserAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/pending_comment_to_sync_outbound.dart b/client/lib/model/pending_comment_to_sync_outbound.dart index 139eed2..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]'; @@ -143,10 +145,27 @@ class PendingCommentToSyncOutbound { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PendingCommentToSyncOutbound[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PendingCommentToSyncOutbound[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "PendingCommentToSyncOutbound[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "PendingCommentToSyncOutbound[_id]" has a null value in JSON.'); + assert(json.containsKey(r'commentId'), 'Required key "PendingCommentToSyncOutbound[commentId]" is missing from JSON.'); + assert(json[r'commentId'] != null, 'Required key "PendingCommentToSyncOutbound[commentId]" has a null value in JSON.'); + assert(json.containsKey(r'externalId'), 'Required key "PendingCommentToSyncOutbound[externalId]" is missing from JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "PendingCommentToSyncOutbound[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "PendingCommentToSyncOutbound[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "PendingCommentToSyncOutbound[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "PendingCommentToSyncOutbound[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'attemptCount'), 'Required key "PendingCommentToSyncOutbound[attemptCount]" is missing from JSON.'); + assert(json[r'attemptCount'] != null, 'Required key "PendingCommentToSyncOutbound[attemptCount]" has a null value in JSON.'); + assert(json.containsKey(r'nextAttemptAt'), 'Required key "PendingCommentToSyncOutbound[nextAttemptAt]" is missing from JSON.'); + assert(json[r'nextAttemptAt'] != null, 'Required key "PendingCommentToSyncOutbound[nextAttemptAt]" has a null value in JSON.'); + assert(json.containsKey(r'eventType'), 'Required key "PendingCommentToSyncOutbound[eventType]" is missing from JSON.'); + assert(json[r'eventType'] != null, 'Required key "PendingCommentToSyncOutbound[eventType]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "PendingCommentToSyncOutbound[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "PendingCommentToSyncOutbound[type]" has a null value in JSON.'); + assert(json.containsKey(r'domain'), 'Required key "PendingCommentToSyncOutbound[domain]" is missing from JSON.'); + assert(json[r'domain'] != null, 'Required key "PendingCommentToSyncOutbound[domain]" has a null value in JSON.'); + assert(json.containsKey(r'lastError'), 'Required key "PendingCommentToSyncOutbound[lastError]" is missing from JSON.'); + assert(json[r'lastError'] != null, 'Required key "PendingCommentToSyncOutbound[lastError]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/post_remove_comment_response.dart b/client/lib/model/post_remove_comment_response.dart index 72d926b..428bc31 100644 --- a/client/lib/model/post_remove_comment_response.dart +++ b/client/lib/model/post_remove_comment_response.dart @@ -24,13 +24,15 @@ class PostRemoveCommentResponse { @override bool operator ==(Object other) => identical(this, other) || other is PostRemoveCommentResponse && 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() => 'PostRemoveCommentResponse[action=$action, status=$status]'; @@ -53,10 +55,10 @@ class PostRemoveCommentResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PostRemoveCommentResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PostRemoveCommentResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/pre_ban_summary.dart b/client/lib/model/pre_ban_summary.dart index 436b4c7..f044ea6 100644 --- a/client/lib/model/pre_ban_summary.dart +++ b/client/lib/model/pre_ban_summary.dart @@ -27,15 +27,17 @@ class PreBanSummary { @override bool operator ==(Object other) => identical(this, other) || other is PreBanSummary && other.status == status && - _deepEquality.equals(other.usernames, usernames) && - other.count == count; + _deepEquality.equals(other.usernames, usernames) && + other.count == count; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (usernames.hashCode) + - (count.hashCode); + (usernames.hashCode) + + (count.hashCode); + @override String toString() => 'PreBanSummary[status=$status, usernames=$usernames, count=$count]'; @@ -59,10 +61,12 @@ class PreBanSummary { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PreBanSummary[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PreBanSummary[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/pub_sub_comment.dart b/client/lib/model/pub_sub_comment.dart index 6991783..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]'; @@ -499,10 +501,27 @@ class PubSubComment { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PubSubComment[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PubSubComment[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "PubSubComment[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "PubSubComment[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "PubSubComment[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "PubSubComment[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "PubSubComment[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "PubSubComment[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "PubSubComment[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "PubSubComment[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "PubSubComment[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "PubSubComment[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "PubSubComment[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "PubSubComment[comment]" has a null value in JSON.'); + assert(json.containsKey(r'verified'), 'Required key "PubSubComment[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "PubSubComment[verified]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "PubSubComment[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "PubSubComment[url]" has a null value in JSON.'); + assert(json.containsKey(r'approved'), 'Required key "PubSubComment[approved]" is missing from JSON.'); + assert(json[r'approved'] != null, 'Required key "PubSubComment[approved]" has a null value in JSON.'); + assert(json.containsKey(r'locale'), 'Required key "PubSubComment[locale]" is missing from JSON.'); + assert(json.containsKey(r'date'), 'Required key "PubSubComment[date]" is missing from JSON.'); + assert(json[r'date'] != null, 'Required key "PubSubComment[date]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/pub_sub_comment_base.dart b/client/lib/model/pub_sub_comment_base.dart index a0f9237..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]'; @@ -461,10 +463,25 @@ class PubSubCommentBase { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PubSubCommentBase[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PubSubCommentBase[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "PubSubCommentBase[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "PubSubCommentBase[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "PubSubCommentBase[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "PubSubCommentBase[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "PubSubCommentBase[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "PubSubCommentBase[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "PubSubCommentBase[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "PubSubCommentBase[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "PubSubCommentBase[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "PubSubCommentBase[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "PubSubCommentBase[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "PubSubCommentBase[comment]" has a null value in JSON.'); + assert(json.containsKey(r'verified'), 'Required key "PubSubCommentBase[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "PubSubCommentBase[verified]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "PubSubCommentBase[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "PubSubCommentBase[url]" has a null value in JSON.'); + assert(json.containsKey(r'approved'), 'Required key "PubSubCommentBase[approved]" is missing from JSON.'); + assert(json[r'approved'] != null, 'Required key "PubSubCommentBase[approved]" has a null value in JSON.'); + assert(json.containsKey(r'locale'), 'Required key "PubSubCommentBase[locale]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/pub_sub_vote.dart b/client/lib/model/pub_sub_vote.dart index 5323f38..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]'; @@ -103,10 +105,21 @@ class PubSubVote { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PubSubVote[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PubSubVote[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "PubSubVote[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "PubSubVote[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "PubSubVote[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "PubSubVote[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "PubSubVote[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "PubSubVote[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'urlIdRaw'), 'Required key "PubSubVote[urlIdRaw]" is missing from JSON.'); + assert(json[r'urlIdRaw'] != null, 'Required key "PubSubVote[urlIdRaw]" has a null value in JSON.'); + assert(json.containsKey(r'commentId'), 'Required key "PubSubVote[commentId]" is missing from JSON.'); + assert(json[r'commentId'] != null, 'Required key "PubSubVote[commentId]" has a null value in JSON.'); + assert(json.containsKey(r'direction'), 'Required key "PubSubVote[direction]" is missing from JSON.'); + assert(json[r'direction'] != null, 'Required key "PubSubVote[direction]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "PubSubVote[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "PubSubVote[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'verificationId'), 'Required key "PubSubVote[verificationId]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/public_api_delete_comment_response.dart b/client/lib/model/public_api_delete_comment_response.dart index fd5c9d0..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]'; @@ -69,10 +71,10 @@ class PublicAPIDeleteCommentResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicAPIDeleteCommentResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicAPIDeleteCommentResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'hardRemoved'), 'Required key "PublicAPIDeleteCommentResponse[hardRemoved]" is missing from JSON.'); + assert(json[r'hardRemoved'] != null, 'Required key "PublicAPIDeleteCommentResponse[hardRemoved]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "PublicAPIDeleteCommentResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PublicAPIDeleteCommentResponse[status]" has a null value in JSON.'); return true; }()); 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 74105e7..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]'; @@ -59,10 +61,12 @@ class PublicAPIGetCommentTextResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicAPIGetCommentTextResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicAPIGetCommentTextResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "PublicAPIGetCommentTextResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PublicAPIGetCommentTextResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'commentText'), 'Required key "PublicAPIGetCommentTextResponse[commentText]" is missing from JSON.'); + assert(json[r'commentText'] != null, 'Required key "PublicAPIGetCommentTextResponse[commentText]" has a null value in JSON.'); + assert(json.containsKey(r'sanitizedCommentText'), 'Required key "PublicAPIGetCommentTextResponse[sanitizedCommentText]" is missing from JSON.'); + assert(json[r'sanitizedCommentText'] != null, 'Required key "PublicAPIGetCommentTextResponse[sanitizedCommentText]" has a null value in JSON.'); return true; }()); 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 3ddb7ce..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]'; @@ -53,10 +55,10 @@ class PublicAPISetCommentTextResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicAPISetCommentTextResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicAPISetCommentTextResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'comment'), 'Required key "PublicAPISetCommentTextResponse[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "PublicAPISetCommentTextResponse[comment]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "PublicAPISetCommentTextResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PublicAPISetCommentTextResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/public_block_from_comment_params.dart b/client/lib/model/public_block_from_comment_params.dart index 4c7ca08..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]'; @@ -52,10 +54,7 @@ class PublicBlockFromCommentParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicBlockFromCommentParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicBlockFromCommentParams[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'commentIds'), 'Required key "PublicBlockFromCommentParams[commentIds]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/public_comment.dart b/client/lib/model/public_comment.dart index 906b7c5..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]'; @@ -518,10 +520,15 @@ class PublicComment { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicComment[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicComment[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "PublicComment[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "PublicComment[_id]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "PublicComment[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "PublicComment[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "PublicComment[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "PublicComment[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'date'), 'Required key "PublicComment[date]" is missing from JSON.'); + assert(json.containsKey(r'verified'), 'Required key "PublicComment[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "PublicComment[verified]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/public_comment_base.dart b/client/lib/model/public_comment_base.dart index 24d90e9..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]'; @@ -365,10 +367,15 @@ class PublicCommentBase { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicCommentBase[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicCommentBase[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "PublicCommentBase[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "PublicCommentBase[_id]" has a null value in JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "PublicCommentBase[commenterName]" is missing from JSON.'); + assert(json[r'commenterName'] != null, 'Required key "PublicCommentBase[commenterName]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "PublicCommentBase[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "PublicCommentBase[commentHTML]" has a null value in JSON.'); + assert(json.containsKey(r'date'), 'Required key "PublicCommentBase[date]" is missing from JSON.'); + assert(json.containsKey(r'verified'), 'Required key "PublicCommentBase[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "PublicCommentBase[verified]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/public_feed_posts_response.dart b/client/lib/model/public_feed_posts_response.dart index c391505..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]'; @@ -117,10 +119,10 @@ class PublicFeedPostsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicFeedPostsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicFeedPostsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "PublicFeedPostsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PublicFeedPostsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'feedPosts'), 'Required key "PublicFeedPostsResponse[feedPosts]" is missing from JSON.'); + assert(json[r'feedPosts'] != null, 'Required key "PublicFeedPostsResponse[feedPosts]" has a null value in JSON.'); return true; }()); @@ -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 index 2450686..78034e3 100644 --- a/client/lib/model/public_page.dart +++ b/client/lib/model/public_page.dart @@ -33,19 +33,21 @@ class PublicPage { @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; + 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); + (commentCount.hashCode) + + (title.hashCode) + + (url.hashCode) + + (urlId.hashCode); + @override String toString() => 'PublicPage[updatedAt=$updatedAt, commentCount=$commentCount, title=$title, url=$url, urlId=$urlId]'; @@ -71,10 +73,16 @@ class PublicPage { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicPage[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicPage[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/public_vote.dart b/client/lib/model/public_vote.dart index 8e5f9ce..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]'; @@ -77,10 +79,18 @@ class PublicVote { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PublicVote[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PublicVote[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "PublicVote[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "PublicVote[id]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "PublicVote[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "PublicVote[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'commentId'), 'Required key "PublicVote[commentId]" is missing from JSON.'); + assert(json[r'commentId'] != null, 'Required key "PublicVote[commentId]" has a null value in JSON.'); + assert(json.containsKey(r'userId'), 'Required key "PublicVote[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "PublicVote[userId]" has a null value in JSON.'); + assert(json.containsKey(r'direction'), 'Required key "PublicVote[direction]" is missing from JSON.'); + assert(json[r'direction'] != null, 'Required key "PublicVote[direction]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "PublicVote[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "PublicVote[createdAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/put_domain_config_response.dart b/client/lib/model/put_domain_config_response.dart index 13b9fd6..35d7cd2 100644 --- a/client/lib/model/put_domain_config_response.dart +++ b/client/lib/model/put_domain_config_response.dart @@ -13,34 +13,48 @@ part of openapi.api; class PutDomainConfigResponse { /// Returns a new [PutDomainConfigResponse] instance. PutDomainConfigResponse({ - required this.configuration, + this.configuration, required this.status, - required this.reason, - required this.code, + this.reason, + this.code, }); Object? configuration; Object? 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? 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; + 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); + (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]'; @@ -57,8 +71,16 @@ class PutDomainConfigResponse { } 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; } @@ -73,18 +95,15 @@ class PutDomainConfigResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PutDomainConfigResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PutDomainConfigResponse[$key]" has a null value in JSON.'); - }); + 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')!, + reason: mapValueOfType(json, r'reason'), + code: mapValueOfType(json, r'code'), ); } return null; @@ -132,10 +151,7 @@ class PutDomainConfigResponse { /// 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/put_sso_user_api_response.dart b/client/lib/model/put_sso_user_api_response.dart index d59bbb0..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]'; @@ -89,10 +91,8 @@ class PutSSOUserAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "PutSSOUserAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "PutSSOUserAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "PutSSOUserAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PutSSOUserAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/query_predicate.dart b/client/lib/model/query_predicate.dart index 36ed299..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_]'; @@ -59,10 +61,12 @@ class QueryPredicate { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "QueryPredicate[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "QueryPredicate[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'key'), 'Required key "QueryPredicate[key]" is missing from JSON.'); + assert(json[r'key'] != null, 'Required key "QueryPredicate[key]" has a null value in JSON.'); + assert(json.containsKey(r'value'), 'Required key "QueryPredicate[value]" is missing from JSON.'); + assert(json[r'value'] != null, 'Required key "QueryPredicate[value]" has a null value in JSON.'); + assert(json.containsKey(r'operator'), 'Required key "QueryPredicate[operator]" is missing from JSON.'); + assert(json[r'operator'] != null, 'Required key "QueryPredicate[operator]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/query_predicate_value.dart b/client/lib/model/query_predicate_value.dart index ba08936..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[]'; @@ -41,10 +41,6 @@ class QueryPredicateValue { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "QueryPredicateValue[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "QueryPredicateValue[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/question_config.dart b/client/lib/model/question_config.dart index 345ce4b..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]'; @@ -177,10 +179,46 @@ class QuestionConfig { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "QuestionConfig[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "QuestionConfig[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "QuestionConfig[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "QuestionConfig[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "QuestionConfig[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "QuestionConfig[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'name'), 'Required key "QuestionConfig[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "QuestionConfig[name]" has a null value in JSON.'); + assert(json.containsKey(r'question'), 'Required key "QuestionConfig[question]" is missing from JSON.'); + assert(json[r'question'] != null, 'Required key "QuestionConfig[question]" has a null value in JSON.'); + assert(json.containsKey(r'helpText'), 'Required key "QuestionConfig[helpText]" is missing from JSON.'); + assert(json[r'helpText'] != null, 'Required key "QuestionConfig[helpText]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "QuestionConfig[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "QuestionConfig[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'createdBy'), 'Required key "QuestionConfig[createdBy]" is missing from JSON.'); + assert(json[r'createdBy'] != null, 'Required key "QuestionConfig[createdBy]" has a null value in JSON.'); + assert(json.containsKey(r'usedCount'), 'Required key "QuestionConfig[usedCount]" is missing from JSON.'); + assert(json[r'usedCount'] != null, 'Required key "QuestionConfig[usedCount]" has a null value in JSON.'); + assert(json.containsKey(r'lastUsed'), 'Required key "QuestionConfig[lastUsed]" is missing from JSON.'); + assert(json[r'lastUsed'] != null, 'Required key "QuestionConfig[lastUsed]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "QuestionConfig[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "QuestionConfig[type]" has a null value in JSON.'); + assert(json.containsKey(r'numStars'), 'Required key "QuestionConfig[numStars]" is missing from JSON.'); + assert(json[r'numStars'] != null, 'Required key "QuestionConfig[numStars]" has a null value in JSON.'); + assert(json.containsKey(r'min'), 'Required key "QuestionConfig[min]" is missing from JSON.'); + assert(json[r'min'] != null, 'Required key "QuestionConfig[min]" has a null value in JSON.'); + assert(json.containsKey(r'max'), 'Required key "QuestionConfig[max]" is missing from JSON.'); + assert(json[r'max'] != null, 'Required key "QuestionConfig[max]" has a null value in JSON.'); + assert(json.containsKey(r'defaultValue'), 'Required key "QuestionConfig[defaultValue]" is missing from JSON.'); + assert(json[r'defaultValue'] != null, 'Required key "QuestionConfig[defaultValue]" has a null value in JSON.'); + assert(json.containsKey(r'labelNegative'), 'Required key "QuestionConfig[labelNegative]" is missing from JSON.'); + assert(json[r'labelNegative'] != null, 'Required key "QuestionConfig[labelNegative]" has a null value in JSON.'); + assert(json.containsKey(r'labelPositive'), 'Required key "QuestionConfig[labelPositive]" is missing from JSON.'); + assert(json[r'labelPositive'] != null, 'Required key "QuestionConfig[labelPositive]" has a null value in JSON.'); + assert(json.containsKey(r'customOptions'), 'Required key "QuestionConfig[customOptions]" is missing from JSON.'); + assert(json[r'customOptions'] != null, 'Required key "QuestionConfig[customOptions]" has a null value in JSON.'); + assert(json.containsKey(r'subQuestionIds'), 'Required key "QuestionConfig[subQuestionIds]" is missing from JSON.'); + assert(json[r'subQuestionIds'] != null, 'Required key "QuestionConfig[subQuestionIds]" has a null value in JSON.'); + assert(json.containsKey(r'alwaysShowSubQuestions'), 'Required key "QuestionConfig[alwaysShowSubQuestions]" is missing from JSON.'); + assert(json[r'alwaysShowSubQuestions'] != null, 'Required key "QuestionConfig[alwaysShowSubQuestions]" has a null value in JSON.'); + assert(json.containsKey(r'reportingOrder'), 'Required key "QuestionConfig[reportingOrder]" is missing from JSON.'); + assert(json[r'reportingOrder'] != null, 'Required key "QuestionConfig[reportingOrder]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/question_config_custom_options_inner.dart b/client/lib/model/question_config_custom_options_inner.dart index 2c31375..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]'; @@ -53,10 +55,10 @@ class QuestionConfigCustomOptionsInner { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "QuestionConfigCustomOptionsInner[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "QuestionConfigCustomOptionsInner[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'imageSrc'), 'Required key "QuestionConfigCustomOptionsInner[imageSrc]" is missing from JSON.'); + assert(json[r'imageSrc'] != null, 'Required key "QuestionConfigCustomOptionsInner[imageSrc]" has a null value in JSON.'); + assert(json.containsKey(r'name'), 'Required key "QuestionConfigCustomOptionsInner[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "QuestionConfigCustomOptionsInner[name]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/question_datum.dart b/client/lib/model/question_datum.dart index a9b19d3..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]'; @@ -54,10 +56,10 @@ class QuestionDatum { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "QuestionDatum[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "QuestionDatum[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'v'), 'Required key "QuestionDatum[v]" is missing from JSON.'); + assert(json[r'v'] != null, 'Required key "QuestionDatum[v]" has a null value in JSON.'); + assert(json.containsKey(r'total'), 'Required key "QuestionDatum[total]" is missing from JSON.'); + assert(json[r'total'] != null, 'Required key "QuestionDatum[total]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/question_result.dart b/client/lib/model/question_result.dart index 817e82e..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]'; @@ -115,10 +117,24 @@ class QuestionResult { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "QuestionResult[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "QuestionResult[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "QuestionResult[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "QuestionResult[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "QuestionResult[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "QuestionResult[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "QuestionResult[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "QuestionResult[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'anonUserId'), 'Required key "QuestionResult[anonUserId]" is missing from JSON.'); + assert(json[r'anonUserId'] != null, 'Required key "QuestionResult[anonUserId]" has a null value in JSON.'); + assert(json.containsKey(r'userId'), 'Required key "QuestionResult[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "QuestionResult[userId]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "QuestionResult[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "QuestionResult[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'value'), 'Required key "QuestionResult[value]" is missing from JSON.'); + assert(json[r'value'] != null, 'Required key "QuestionResult[value]" has a null value in JSON.'); + assert(json.containsKey(r'questionId'), 'Required key "QuestionResult[questionId]" is missing from JSON.'); + assert(json[r'questionId'] != null, 'Required key "QuestionResult[questionId]" has a null value in JSON.'); + assert(json.containsKey(r'ipHash'), 'Required key "QuestionResult[ipHash]" is missing from JSON.'); + assert(json[r'ipHash'] != null, 'Required key "QuestionResult[ipHash]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/question_result_aggregation_overall.dart b/client/lib/model/question_result_aggregation_overall.dart index b74aadf..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]'; @@ -89,10 +91,10 @@ class QuestionResultAggregationOverall { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "QuestionResultAggregationOverall[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "QuestionResultAggregationOverall[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'total'), 'Required key "QuestionResultAggregationOverall[total]" is missing from JSON.'); + assert(json[r'total'] != null, 'Required key "QuestionResultAggregationOverall[total]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "QuestionResultAggregationOverall[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "QuestionResultAggregationOverall[createdAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/react_body_params.dart b/client/lib/model/react_body_params.dart index af2e31c..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]'; @@ -57,10 +59,6 @@ class ReactBodyParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ReactBodyParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ReactBodyParams[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/react_feed_post_response.dart b/client/lib/model/react_feed_post_response.dart index 89a1753..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]'; @@ -59,10 +61,12 @@ class ReactFeedPostResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ReactFeedPostResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ReactFeedPostResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "ReactFeedPostResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ReactFeedPostResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'reactType'), 'Required key "ReactFeedPostResponse[reactType]" is missing from JSON.'); + assert(json[r'reactType'] != null, 'Required key "ReactFeedPostResponse[reactType]" has a null value in JSON.'); + assert(json.containsKey(r'isUndo'), 'Required key "ReactFeedPostResponse[isUndo]" is missing from JSON.'); + assert(json[r'isUndo'] != null, 'Required key "ReactFeedPostResponse[isUndo]" has a null value in JSON.'); return true; }()); 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 463d66f..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]'; @@ -61,10 +63,8 @@ class RecordStringBeforeStringOrNullAfterStringOrNullValue { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "RecordStringBeforeStringOrNullAfterStringOrNullValue[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "RecordStringBeforeStringOrNullAfterStringOrNullValue[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'after'), 'Required key "RecordStringBeforeStringOrNullAfterStringOrNullValue[after]" is missing from JSON.'); + assert(json.containsKey(r'before'), 'Required key "RecordStringBeforeStringOrNullAfterStringOrNullValue[before]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/remove_comment_action_response.dart b/client/lib/model/remove_comment_action_response.dart index d186664..e23c360 100644 --- a/client/lib/model/remove_comment_action_response.dart +++ b/client/lib/model/remove_comment_action_response.dart @@ -24,13 +24,15 @@ class RemoveCommentActionResponse { @override bool operator ==(Object other) => identical(this, other) || other is RemoveCommentActionResponse && other.status == status && - other.action == action; + other.action == action; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (action.hashCode); + (action.hashCode); + @override String toString() => 'RemoveCommentActionResponse[status=$status, action=$action]'; @@ -53,10 +55,10 @@ class RemoveCommentActionResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "RemoveCommentActionResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "RemoveCommentActionResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/remove_user_badge_response.dart b/client/lib/model/remove_user_badge_response.dart index be49bfd..cd33051 100644 --- a/client/lib/model/remove_user_badge_response.dart +++ b/client/lib/model/remove_user_badge_response.dart @@ -24,13 +24,15 @@ class RemoveUserBadgeResponse { @override bool operator ==(Object other) => identical(this, other) || other is RemoveUserBadgeResponse && _deepEquality.equals(other.badges, badges) && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (badges.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'RemoveUserBadgeResponse[badges=$badges, status=$status]'; @@ -53,10 +55,8 @@ class RemoveUserBadgeResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "RemoveUserBadgeResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "RemoveUserBadgeResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/render_email_template_body.dart b/client/lib/model/render_email_template_body.dart index b5d77b6..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]'; @@ -67,10 +69,10 @@ class RenderEmailTemplateBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "RenderEmailTemplateBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "RenderEmailTemplateBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'emailTemplateId'), 'Required key "RenderEmailTemplateBody[emailTemplateId]" is missing from JSON.'); + assert(json[r'emailTemplateId'] != null, 'Required key "RenderEmailTemplateBody[emailTemplateId]" has a null value in JSON.'); + assert(json.containsKey(r'ejs'), 'Required key "RenderEmailTemplateBody[ejs]" is missing from JSON.'); + assert(json[r'ejs'] != null, 'Required key "RenderEmailTemplateBody[ejs]" has a null value in JSON.'); return true; }()); @@ -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 5907674..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]'; @@ -53,10 +55,10 @@ class RenderEmailTemplateResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "RenderEmailTemplateResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "RenderEmailTemplateResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "RenderEmailTemplateResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "RenderEmailTemplateResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'html'), 'Required key "RenderEmailTemplateResponse[html]" is missing from JSON.'); + assert(json[r'html'] != null, 'Required key "RenderEmailTemplateResponse[html]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/renderable_user_notification.dart b/client/lib/model/renderable_user_notification.dart index d30e3e4..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]'; @@ -217,10 +219,26 @@ class RenderableUserNotification { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "RenderableUserNotification[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "RenderableUserNotification[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'optedOut'), 'Required key "RenderableUserNotification[optedOut]" is missing from JSON.'); + assert(json[r'optedOut'] != null, 'Required key "RenderableUserNotification[optedOut]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "RenderableUserNotification[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "RenderableUserNotification[type]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "RenderableUserNotification[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "RenderableUserNotification[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'sent'), 'Required key "RenderableUserNotification[sent]" is missing from JSON.'); + assert(json[r'sent'] != null, 'Required key "RenderableUserNotification[sent]" has a null value in JSON.'); + assert(json.containsKey(r'viewed'), 'Required key "RenderableUserNotification[viewed]" is missing from JSON.'); + assert(json[r'viewed'] != null, 'Required key "RenderableUserNotification[viewed]" has a null value in JSON.'); + assert(json.containsKey(r'relatedObjectId'), 'Required key "RenderableUserNotification[relatedObjectId]" is missing from JSON.'); + assert(json[r'relatedObjectId'] != null, 'Required key "RenderableUserNotification[relatedObjectId]" has a null value in JSON.'); + assert(json.containsKey(r'relatedObjectType'), 'Required key "RenderableUserNotification[relatedObjectType]" is missing from JSON.'); + assert(json[r'relatedObjectType'] != null, 'Required key "RenderableUserNotification[relatedObjectType]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "RenderableUserNotification[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "RenderableUserNotification[url]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "RenderableUserNotification[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "RenderableUserNotification[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'_id'), 'Required key "RenderableUserNotification[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "RenderableUserNotification[_id]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/replace_tenant_package_body.dart b/client/lib/model/replace_tenant_package_body.dart index acf330d..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]'; @@ -387,10 +389,36 @@ class ReplaceTenantPackageBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ReplaceTenantPackageBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ReplaceTenantPackageBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'name'), 'Required key "ReplaceTenantPackageBody[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "ReplaceTenantPackageBody[name]" has a null value in JSON.'); + assert(json.containsKey(r'monthlyCostUSD'), 'Required key "ReplaceTenantPackageBody[monthlyCostUSD]" is missing from JSON.'); + assert(json[r'monthlyCostUSD'] != null, 'Required key "ReplaceTenantPackageBody[monthlyCostUSD]" has a null value in JSON.'); + assert(json.containsKey(r'yearlyCostUSD'), 'Required key "ReplaceTenantPackageBody[yearlyCostUSD]" is missing from JSON.'); + assert(json[r'yearlyCostUSD'] != null, 'Required key "ReplaceTenantPackageBody[yearlyCostUSD]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyPageLoads'), 'Required key "ReplaceTenantPackageBody[maxMonthlyPageLoads]" is missing from JSON.'); + assert(json[r'maxMonthlyPageLoads'] != null, 'Required key "ReplaceTenantPackageBody[maxMonthlyPageLoads]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyAPICredits'), 'Required key "ReplaceTenantPackageBody[maxMonthlyAPICredits]" is missing from JSON.'); + assert(json[r'maxMonthlyAPICredits'] != null, 'Required key "ReplaceTenantPackageBody[maxMonthlyAPICredits]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyComments'), 'Required key "ReplaceTenantPackageBody[maxMonthlyComments]" is missing from JSON.'); + assert(json[r'maxMonthlyComments'] != null, 'Required key "ReplaceTenantPackageBody[maxMonthlyComments]" has a null value in JSON.'); + assert(json.containsKey(r'maxConcurrentUsers'), 'Required key "ReplaceTenantPackageBody[maxConcurrentUsers]" is missing from JSON.'); + assert(json[r'maxConcurrentUsers'] != null, 'Required key "ReplaceTenantPackageBody[maxConcurrentUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxTenantUsers'), 'Required key "ReplaceTenantPackageBody[maxTenantUsers]" is missing from JSON.'); + assert(json[r'maxTenantUsers'] != null, 'Required key "ReplaceTenantPackageBody[maxTenantUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxSSOUsers'), 'Required key "ReplaceTenantPackageBody[maxSSOUsers]" is missing from JSON.'); + assert(json[r'maxSSOUsers'] != null, 'Required key "ReplaceTenantPackageBody[maxSSOUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxModerators'), 'Required key "ReplaceTenantPackageBody[maxModerators]" is missing from JSON.'); + assert(json[r'maxModerators'] != null, 'Required key "ReplaceTenantPackageBody[maxModerators]" has a null value in JSON.'); + assert(json.containsKey(r'maxDomains'), 'Required key "ReplaceTenantPackageBody[maxDomains]" is missing from JSON.'); + assert(json[r'maxDomains'] != null, 'Required key "ReplaceTenantPackageBody[maxDomains]" has a null value in JSON.'); + assert(json.containsKey(r'hasDebranding'), 'Required key "ReplaceTenantPackageBody[hasDebranding]" is missing from JSON.'); + assert(json[r'hasDebranding'] != null, 'Required key "ReplaceTenantPackageBody[hasDebranding]" has a null value in JSON.'); + assert(json.containsKey(r'forWhoText'), 'Required key "ReplaceTenantPackageBody[forWhoText]" is missing from JSON.'); + assert(json[r'forWhoText'] != null, 'Required key "ReplaceTenantPackageBody[forWhoText]" has a null value in JSON.'); + assert(json.containsKey(r'featureTaglines'), 'Required key "ReplaceTenantPackageBody[featureTaglines]" is missing from JSON.'); + assert(json[r'featureTaglines'] != null, 'Required key "ReplaceTenantPackageBody[featureTaglines]" has a null value in JSON.'); + assert(json.containsKey(r'hasFlexPricing'), 'Required key "ReplaceTenantPackageBody[hasFlexPricing]" is missing from JSON.'); + assert(json[r'hasFlexPricing'] != null, 'Required key "ReplaceTenantPackageBody[hasFlexPricing]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/replace_tenant_user_body.dart b/client/lib/model/replace_tenant_user_body.dart index 0a714b3..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]'; @@ -459,10 +461,10 @@ class ReplaceTenantUserBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ReplaceTenantUserBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ReplaceTenantUserBody[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'username'), 'Required key "ReplaceTenantUserBody[username]" is missing from JSON.'); + assert(json[r'username'] != null, 'Required key "ReplaceTenantUserBody[username]" has a null value in JSON.'); + assert(json.containsKey(r'email'), 'Required key "ReplaceTenantUserBody[email]" is missing from JSON.'); + assert(json[r'email'] != null, 'Required key "ReplaceTenantUserBody[email]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/reset_user_notifications_response.dart b/client/lib/model/reset_user_notifications_response.dart index b9b6dbb..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]'; @@ -57,10 +59,8 @@ class ResetUserNotificationsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "ResetUserNotificationsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "ResetUserNotificationsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "ResetUserNotificationsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "ResetUserNotificationsResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/save_comment_response_optimized.dart b/client/lib/model/save_comment_response_optimized.dart index 4e3b1f1..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]'; @@ -70,10 +72,11 @@ class SaveCommentResponseOptimized { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SaveCommentResponseOptimized[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SaveCommentResponseOptimized[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "SaveCommentResponseOptimized[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SaveCommentResponseOptimized[status]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "SaveCommentResponseOptimized[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "SaveCommentResponseOptimized[comment]" has a null value in JSON.'); + assert(json.containsKey(r'user'), 'Required key "SaveCommentResponseOptimized[user]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/save_comments_bulk_response.dart b/client/lib/model/save_comments_bulk_response.dart index 202e161..696af98 100644 --- a/client/lib/model/save_comments_bulk_response.dart +++ b/client/lib/model/save_comments_bulk_response.dart @@ -14,11 +14,11 @@ class SaveCommentsBulkResponse { /// Returns a new [SaveCommentsBulkResponse] instance. SaveCommentsBulkResponse({ required this.status, - required this.comment, - required this.user, + this.comment, + this.user, this.moduleData = const {}, - required this.reason, - required this.code, + this.reason, + this.code, this.secondaryCode, this.bannedUntil, this.maxCharacterLength, @@ -28,16 +28,34 @@ class SaveCommentsBulkResponse { APIStatus status; - 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. + /// + APIComment? comment; UserSessionInfo? user; /// Construct a type with a set of properties K of type T Map moduleData; - 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; - 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? code; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -82,31 +100,33 @@ class SaveCommentsBulkResponse { @override bool operator ==(Object other) => identical(this, other) || other is SaveCommentsBulkResponse && 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; + 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); + (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() => 'SaveCommentsBulkResponse[status=$status, comment=$comment, user=$user, moduleData=$moduleData, reason=$reason, code=$code, secondaryCode=$secondaryCode, bannedUntil=$bannedUntil, maxCharacterLength=$maxCharacterLength, translatedError=$translatedError, customConfig=$customConfig]'; @@ -114,15 +134,27 @@ class SaveCommentsBulkResponse { Map toJson() { final json = {}; json[r'status'] = this.status; + if (this.comment != null) { json[r'comment'] = this.comment; + } else { + json[r'comment'] = null; + } if (this.user != null) { json[r'user'] = this.user; } else { json[r'user'] = null; } json[r'moduleData'] = this.moduleData; + 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.secondaryCode != null) { json[r'secondaryCode'] = this.secondaryCode; } else { @@ -162,20 +194,18 @@ class SaveCommentsBulkResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SaveCommentsBulkResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SaveCommentsBulkResponse[$key]" 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 SaveCommentsBulkResponse( status: APIStatus.fromJson(json[r'status'])!, - comment: APIComment.fromJson(json[r'comment'])!, + 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')!, + 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'), @@ -229,10 +259,6 @@ class SaveCommentsBulkResponse { /// 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_comments_response_with_presence.dart b/client/lib/model/save_comments_response_with_presence.dart index 6437146..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]'; @@ -86,10 +88,11 @@ class SaveCommentsResponseWithPresence { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SaveCommentsResponseWithPresence[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SaveCommentsResponseWithPresence[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "SaveCommentsResponseWithPresence[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SaveCommentsResponseWithPresence[status]" has a null value in JSON.'); + assert(json.containsKey(r'comment'), 'Required key "SaveCommentsResponseWithPresence[comment]" is missing from JSON.'); + assert(json[r'comment'] != null, 'Required key "SaveCommentsResponseWithPresence[comment]" has a null value in JSON.'); + assert(json.containsKey(r'user'), 'Required key "SaveCommentsResponseWithPresence[user]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/search_users_response.dart b/client/lib/model/search_users_response.dart index 8283caa..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]'; @@ -53,10 +55,10 @@ class SearchUsersResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SearchUsersResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SearchUsersResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "SearchUsersResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SearchUsersResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'users'), 'Required key "SearchUsersResponse[users]" is missing from JSON.'); + assert(json[r'users'] != null, 'Required key "SearchUsersResponse[users]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/search_users_result.dart b/client/lib/model/search_users_result.dart index b63f267..6a9cd03 100644 --- a/client/lib/model/search_users_result.dart +++ b/client/lib/model/search_users_result.dart @@ -27,15 +27,17 @@ class SearchUsersResult { @override bool operator ==(Object other) => identical(this, other) || other is SearchUsersResult && other.status == status && - _deepEquality.equals(other.sections, sections) && - _deepEquality.equals(other.users, users); + _deepEquality.equals(other.sections, sections) && + _deepEquality.equals(other.users, users); + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (sections.hashCode) + - (users.hashCode); + (sections.hashCode) + + (users.hashCode); + @override String toString() => 'SearchUsersResult[status=$status, sections=$sections, users=$users]'; @@ -59,10 +61,8 @@ class SearchUsersResult { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SearchUsersResult[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SearchUsersResult[$key]" has a null value in JSON.'); - }); + 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; }()); @@ -118,8 +118,6 @@ class SearchUsersResult { /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'status', - 'sections', - 'users', }; } diff --git a/client/lib/model/search_users_sectioned_response.dart b/client/lib/model/search_users_sectioned_response.dart index fbe6d6f..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]'; @@ -53,10 +55,10 @@ class SearchUsersSectionedResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SearchUsersSectionedResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SearchUsersSectionedResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "SearchUsersSectionedResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "SearchUsersSectionedResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'sections'), 'Required key "SearchUsersSectionedResponse[sections]" is missing from JSON.'); + assert(json[r'sections'] != null, 'Required key "SearchUsersSectionedResponse[sections]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/set_comment_approved_response.dart b/client/lib/model/set_comment_approved_response.dart index 1d52f4f..56a8765 100644 --- a/client/lib/model/set_comment_approved_response.dart +++ b/client/lib/model/set_comment_approved_response.dart @@ -30,13 +30,15 @@ class SetCommentApprovedResponse { @override bool operator ==(Object other) => identical(this, other) || other is SetCommentApprovedResponse && other.didResetFlaggedCount == didResetFlaggedCount && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (didResetFlaggedCount == null ? 0 : didResetFlaggedCount!.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'SetCommentApprovedResponse[didResetFlaggedCount=$didResetFlaggedCount, status=$status]'; @@ -63,10 +65,8 @@ class SetCommentApprovedResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SetCommentApprovedResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SetCommentApprovedResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/set_comment_text_params.dart b/client/lib/model/set_comment_text_params.dart index ef4e99d..f9f83e4 100644 --- a/client/lib/model/set_comment_text_params.dart +++ b/client/lib/model/set_comment_text_params.dart @@ -21,11 +21,13 @@ class SetCommentTextParams { @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]'; @@ -47,10 +49,8 @@ class SetCommentTextParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SetCommentTextParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SetCommentTextParams[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/set_comment_text_response.dart b/client/lib/model/set_comment_text_response.dart index 73ec422..e4d798a 100644 --- a/client/lib/model/set_comment_text_response.dart +++ b/client/lib/model/set_comment_text_response.dart @@ -24,13 +24,15 @@ class SetCommentTextResponse { @override bool operator ==(Object other) => identical(this, other) || other is SetCommentTextResponse && other.newCommentTextHTML == newCommentTextHTML && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (newCommentTextHTML.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'SetCommentTextResponse[newCommentTextHTML=$newCommentTextHTML, status=$status]'; @@ -53,10 +55,10 @@ class SetCommentTextResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SetCommentTextResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SetCommentTextResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/set_comment_text_result.dart b/client/lib/model/set_comment_text_result.dart index 9e19306..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]'; @@ -53,10 +55,10 @@ class SetCommentTextResult { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SetCommentTextResult[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SetCommentTextResult[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'approved'), 'Required key "SetCommentTextResult[approved]" is missing from JSON.'); + assert(json[r'approved'] != null, 'Required key "SetCommentTextResult[approved]" has a null value in JSON.'); + assert(json.containsKey(r'commentHTML'), 'Required key "SetCommentTextResult[commentHTML]" is missing from JSON.'); + assert(json[r'commentHTML'] != null, 'Required key "SetCommentTextResult[commentHTML]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/set_user_trust_factor_response.dart b/client/lib/model/set_user_trust_factor_response.dart index e9703eb..352afc6 100644 --- a/client/lib/model/set_user_trust_factor_response.dart +++ b/client/lib/model/set_user_trust_factor_response.dart @@ -30,13 +30,15 @@ class SetUserTrustFactorResponse { @override bool operator ==(Object other) => identical(this, other) || other is SetUserTrustFactorResponse && other.previousManualTrustFactor == previousManualTrustFactor && - other.status == status; + other.status == status; + @override int get hashCode => // ignore: unnecessary_parenthesis (previousManualTrustFactor == null ? 0 : previousManualTrustFactor!.hashCode) + - (status.hashCode); + (status.hashCode); + @override String toString() => 'SetUserTrustFactorResponse[previousManualTrustFactor=$previousManualTrustFactor, status=$status]'; @@ -63,10 +65,8 @@ class SetUserTrustFactorResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SetUserTrustFactorResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SetUserTrustFactorResponse[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/spam_rule.dart b/client/lib/model/spam_rule.dart index f5052c3..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]'; @@ -63,10 +65,8 @@ class SpamRule { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "SpamRule[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "SpamRule[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'actions'), 'Required key "SpamRule[actions]" is missing from JSON.'); + assert(json[r'actions'] != null, 'Required key "SpamRule[actions]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/tenant_badge.dart b/client/lib/model/tenant_badge.dart index 41878d0..c9f1b96 100644 --- a/client/lib/model/tenant_badge.dart +++ b/client/lib/model/tenant_badge.dart @@ -81,51 +81,53 @@ class TenantBadge { @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; + 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); + (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]'; @@ -199,10 +201,36 @@ class TenantBadge { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "TenantBadge[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "TenantBadge[$key]" has a null value in JSON.'); - }); + 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; }()); diff --git a/client/lib/model/tenant_hash_tag.dart b/client/lib/model/tenant_hash_tag.dart index cbdeba8..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]'; @@ -81,10 +83,14 @@ class TenantHashTag { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "TenantHashTag[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "TenantHashTag[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "TenantHashTag[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "TenantHashTag[_id]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "TenantHashTag[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "TenantHashTag[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "TenantHashTag[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "TenantHashTag[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'tag'), 'Required key "TenantHashTag[tag]" is missing from JSON.'); + assert(json[r'tag'] != null, 'Required key "TenantHashTag[tag]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/tenant_package.dart b/client/lib/model/tenant_package.dart index 5e11f27..d98da1c 100644 --- a/client/lib/model/tenant_package.dart +++ b/client/lib/model/tenant_package.dart @@ -405,131 +405,133 @@ 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.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; + 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) + - (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); + (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, 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]'; @@ -763,10 +765,56 @@ class TenantPackage { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "TenantPackage[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "TenantPackage[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "TenantPackage[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "TenantPackage[_id]" has a null value in JSON.'); + assert(json.containsKey(r'name'), 'Required key "TenantPackage[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "TenantPackage[name]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "TenantPackage[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "TenantPackage[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "TenantPackage[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "TenantPackage[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'monthlyCostUSD'), 'Required key "TenantPackage[monthlyCostUSD]" is missing from JSON.'); + assert(json.containsKey(r'yearlyCostUSD'), 'Required key "TenantPackage[yearlyCostUSD]" is missing from JSON.'); + assert(json.containsKey(r'monthlyStripePlanId'), 'Required key "TenantPackage[monthlyStripePlanId]" is missing from JSON.'); + assert(json.containsKey(r'yearlyStripePlanId'), 'Required key "TenantPackage[yearlyStripePlanId]" is missing from JSON.'); + assert(json.containsKey(r'maxMonthlyPageLoads'), 'Required key "TenantPackage[maxMonthlyPageLoads]" is missing from JSON.'); + assert(json[r'maxMonthlyPageLoads'] != null, 'Required key "TenantPackage[maxMonthlyPageLoads]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyAPICredits'), 'Required key "TenantPackage[maxMonthlyAPICredits]" is missing from JSON.'); + assert(json[r'maxMonthlyAPICredits'] != null, 'Required key "TenantPackage[maxMonthlyAPICredits]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlySmallWidgetsCredits'), 'Required key "TenantPackage[maxMonthlySmallWidgetsCredits]" is missing from JSON.'); + assert(json[r'maxMonthlySmallWidgetsCredits'] != null, 'Required key "TenantPackage[maxMonthlySmallWidgetsCredits]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyComments'), 'Required key "TenantPackage[maxMonthlyComments]" is missing from JSON.'); + assert(json[r'maxMonthlyComments'] != null, 'Required key "TenantPackage[maxMonthlyComments]" has a null value in JSON.'); + assert(json.containsKey(r'maxConcurrentUsers'), 'Required key "TenantPackage[maxConcurrentUsers]" is missing from JSON.'); + assert(json[r'maxConcurrentUsers'] != null, 'Required key "TenantPackage[maxConcurrentUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxTenantUsers'), 'Required key "TenantPackage[maxTenantUsers]" is missing from JSON.'); + assert(json[r'maxTenantUsers'] != null, 'Required key "TenantPackage[maxTenantUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxSSOUsers'), 'Required key "TenantPackage[maxSSOUsers]" is missing from JSON.'); + assert(json[r'maxSSOUsers'] != null, 'Required key "TenantPackage[maxSSOUsers]" has a null value in JSON.'); + assert(json.containsKey(r'maxModerators'), 'Required key "TenantPackage[maxModerators]" is missing from JSON.'); + assert(json[r'maxModerators'] != null, 'Required key "TenantPackage[maxModerators]" has a null value in JSON.'); + assert(json.containsKey(r'maxDomains'), 'Required key "TenantPackage[maxDomains]" is missing from JSON.'); + assert(json[r'maxDomains'] != null, 'Required key "TenantPackage[maxDomains]" has a null value in JSON.'); + assert(json.containsKey(r'maxWhiteLabeledTenants'), 'Required key "TenantPackage[maxWhiteLabeledTenants]" is missing from JSON.'); + assert(json[r'maxWhiteLabeledTenants'] != null, 'Required key "TenantPackage[maxWhiteLabeledTenants]" has a null value in JSON.'); + assert(json.containsKey(r'maxMonthlyEventLogRequests'), 'Required key "TenantPackage[maxMonthlyEventLogRequests]" is missing from JSON.'); + assert(json[r'maxMonthlyEventLogRequests'] != null, 'Required key "TenantPackage[maxMonthlyEventLogRequests]" has a null value in JSON.'); + assert(json.containsKey(r'maxCustomCollectionSize'), 'Required key "TenantPackage[maxCustomCollectionSize]" is missing from JSON.'); + assert(json[r'maxCustomCollectionSize'] != null, 'Required key "TenantPackage[maxCustomCollectionSize]" has a null value in JSON.'); + assert(json.containsKey(r'hasWhiteLabeling'), 'Required key "TenantPackage[hasWhiteLabeling]" is missing from JSON.'); + assert(json[r'hasWhiteLabeling'] != null, 'Required key "TenantPackage[hasWhiteLabeling]" has a null value in JSON.'); + assert(json.containsKey(r'hasDebranding'), 'Required key "TenantPackage[hasDebranding]" is missing from JSON.'); + assert(json[r'hasDebranding'] != null, 'Required key "TenantPackage[hasDebranding]" has a null value in JSON.'); + assert(json.containsKey(r'hasLLMSpamDetection'), 'Required key "TenantPackage[hasLLMSpamDetection]" is missing from JSON.'); + assert(json[r'hasLLMSpamDetection'] != null, 'Required key "TenantPackage[hasLLMSpamDetection]" has a null value in JSON.'); + assert(json.containsKey(r'forWhoText'), 'Required key "TenantPackage[forWhoText]" is missing from JSON.'); + assert(json[r'forWhoText'] != null, 'Required key "TenantPackage[forWhoText]" has a null value in JSON.'); + assert(json.containsKey(r'featureTaglines'), 'Required key "TenantPackage[featureTaglines]" is missing from JSON.'); + assert(json[r'featureTaglines'] != null, 'Required key "TenantPackage[featureTaglines]" has a null value in JSON.'); + assert(json.containsKey(r'hasAuditing'), 'Required key "TenantPackage[hasAuditing]" is missing from JSON.'); + assert(json[r'hasAuditing'] != null, 'Required key "TenantPackage[hasAuditing]" has a null value in JSON.'); + assert(json.containsKey(r'hasFlexPricing'), 'Required key "TenantPackage[hasFlexPricing]" is missing from JSON.'); + assert(json[r'hasFlexPricing'] != null, 'Required key "TenantPackage[hasFlexPricing]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/tos_config.dart b/client/lib/model/tos_config.dart index e6c0a1e..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]'; @@ -80,10 +82,6 @@ class TOSConfig { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "TOSConfig[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "TOSConfig[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/un_block_from_comment_params.dart b/client/lib/model/un_block_from_comment_params.dart index 193c079..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]'; @@ -47,10 +49,6 @@ class UnBlockFromCommentParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UnBlockFromCommentParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UnBlockFromCommentParams[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/unblock_success.dart b/client/lib/model/unblock_success.dart index 8d0a985..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]'; @@ -54,10 +56,10 @@ class UnblockSuccess { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UnblockSuccess[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UnblockSuccess[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "UnblockSuccess[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UnblockSuccess[status]" has a null value in JSON.'); + assert(json.containsKey(r'commentStatuses'), 'Required key "UnblockSuccess[commentStatuses]" is missing from JSON.'); + assert(json[r'commentStatuses'] != null, 'Required key "UnblockSuccess[commentStatuses]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/updatable_comment_params.dart b/client/lib/model/updatable_comment_params.dart index 5da29db..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]'; @@ -529,10 +531,6 @@ class UpdatableCommentParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdatableCommentParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdatableCommentParams[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_api_page_data.dart b/client/lib/model/update_api_page_data.dart index 9cd6212..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]'; @@ -111,10 +113,6 @@ class UpdateAPIPageData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateAPIPageData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateAPIPageData[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_api_user_subscription_data.dart b/client/lib/model/update_api_user_subscription_data.dart index 1289487..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]'; @@ -57,10 +59,6 @@ class UpdateAPIUserSubscriptionData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateAPIUserSubscriptionData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateAPIUserSubscriptionData[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_apisso_user_data.dart b/client/lib/model/update_apisso_user_data.dart index 15bc148..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]'; @@ -351,10 +353,6 @@ class UpdateAPISSOUserData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateAPISSOUserData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateAPISSOUserData[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_domain_config_params.dart b/client/lib/model/update_domain_config_params.dart index 2da84c7..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]'; @@ -134,10 +136,8 @@ class UpdateDomainConfigParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateDomainConfigParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateDomainConfigParams[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'domain'), 'Required key "UpdateDomainConfigParams[domain]" is missing from JSON.'); + assert(json[r'domain'] != null, 'Required key "UpdateDomainConfigParams[domain]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/update_email_template_body.dart b/client/lib/model/update_email_template_body.dart index d64e16a..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]'; @@ -119,10 +121,6 @@ class UpdateEmailTemplateBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateEmailTemplateBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateEmailTemplateBody[$key]" has a null value in JSON.'); - }); return true; }()); @@ -131,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 f078471..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]'; @@ -98,10 +100,6 @@ class UpdateFeedPostParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateFeedPostParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateFeedPostParams[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_hash_tag_body.dart b/client/lib/model/update_hash_tag_body.dart index aeacc83..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]'; @@ -89,10 +91,6 @@ class UpdateHashTagBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateHashTagBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateHashTagBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_hash_tag_response.dart b/client/lib/model/update_hash_tag_response.dart index c4ac5a7..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]'; @@ -53,10 +55,10 @@ class UpdateHashTagResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateHashTagResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateHashTagResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "UpdateHashTagResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UpdateHashTagResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'hashTag'), 'Required key "UpdateHashTagResponse[hashTag]" is missing from JSON.'); + assert(json[r'hashTag'] != null, 'Required key "UpdateHashTagResponse[hashTag]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/update_moderator_body.dart b/client/lib/model/update_moderator_body.dart index 97641a5..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]'; @@ -95,10 +97,6 @@ class UpdateModeratorBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateModeratorBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateModeratorBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_notification_body.dart b/client/lib/model/update_notification_body.dart index 19649c5..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]'; @@ -73,10 +75,6 @@ class UpdateNotificationBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateNotificationBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateNotificationBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_question_config_body.dart b/client/lib/model/update_question_config_body.dart index 72577e7..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]'; @@ -245,10 +247,6 @@ class UpdateQuestionConfigBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateQuestionConfigBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateQuestionConfigBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_question_result_body.dart b/client/lib/model/update_question_result_body.dart index 121db0e..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]'; @@ -147,10 +149,6 @@ class UpdateQuestionResultBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateQuestionResultBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateQuestionResultBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_subscription_api_response.dart b/client/lib/model/update_subscription_api_response.dart index 5720ddd..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]'; @@ -95,10 +97,8 @@ class UpdateSubscriptionAPIResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateSubscriptionAPIResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateSubscriptionAPIResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "UpdateSubscriptionAPIResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UpdateSubscriptionAPIResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/update_tenant_body.dart b/client/lib/model/update_tenant_body.dart index cd0ea88..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]'; @@ -406,10 +408,6 @@ class UpdateTenantBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateTenantBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateTenantBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_tenant_package_body.dart b/client/lib/model/update_tenant_package_body.dart index 39a19ca..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]'; @@ -543,10 +545,6 @@ class UpdateTenantPackageBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateTenantPackageBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateTenantPackageBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_tenant_user_body.dart b/client/lib/model/update_tenant_user_body.dart index 7aa3a76..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]'; @@ -415,10 +417,6 @@ class UpdateTenantUserBody { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateTenantUserBody[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateTenantUserBody[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/update_user_badge_params.dart b/client/lib/model/update_user_badge_params.dart index 6829b1c..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]'; @@ -57,10 +59,6 @@ class UpdateUserBadgeParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateUserBadgeParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateUserBadgeParams[$key]" has a null value in JSON.'); - }); return true; }()); 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 index 945d941..c52cacc 100644 --- a/client/lib/model/update_user_notification_comment_subscription_status_response.dart +++ b/client/lib/model/update_user_notification_comment_subscription_status_response.dart @@ -14,33 +14,47 @@ class UpdateUserNotificationCommentSubscriptionStatusResponse { /// Returns a new [UpdateUserNotificationCommentSubscriptionStatusResponse] instance. UpdateUserNotificationCommentSubscriptionStatusResponse({ required this.status, - required this.matchedCount, - required this.modifiedCount, - required this.note, + this.matchedCount, + this.modifiedCount, + this.note, }); APIStatus status; - 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? matchedCount; - int modifiedCount; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the 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; + 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; + other.matchedCount == matchedCount && + other.modifiedCount == modifiedCount && + other.note == note; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (matchedCount.hashCode) + - (modifiedCount.hashCode) + - (note.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]'; @@ -48,9 +62,21 @@ class UpdateUserNotificationCommentSubscriptionStatusResponse { 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; } @@ -65,18 +91,16 @@ class UpdateUserNotificationCommentSubscriptionStatusResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateUserNotificationCommentSubscriptionStatusResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateUserNotificationCommentSubscriptionStatusResponse[$key]" has a null value in JSON.'); - }); + 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'])!, + matchedCount: mapValueOfType(json, r'matchedCount'), + modifiedCount: mapValueOfType(json, r'modifiedCount'), + note: UpdateUserNotificationCommentSubscriptionStatusResponseNoteEnum.fromJson(json[r'note']), ); } return null; @@ -125,9 +149,6 @@ class UpdateUserNotificationCommentSubscriptionStatusResponse { /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'status', - 'matchedCount', - 'modifiedCount', - 'note', }; } 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 index b759793..9d92910 100644 --- a/client/lib/model/update_user_notification_page_subscription_status_response.dart +++ b/client/lib/model/update_user_notification_page_subscription_status_response.dart @@ -14,33 +14,47 @@ class UpdateUserNotificationPageSubscriptionStatusResponse { /// Returns a new [UpdateUserNotificationPageSubscriptionStatusResponse] instance. UpdateUserNotificationPageSubscriptionStatusResponse({ required this.status, - required this.matchedCount, - required this.modifiedCount, - required this.note, + this.matchedCount, + this.modifiedCount, + this.note, }); APIStatus status; - 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? matchedCount; - int modifiedCount; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the 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; + 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; + other.matchedCount == matchedCount && + other.modifiedCount == modifiedCount && + other.note == note; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (matchedCount.hashCode) + - (modifiedCount.hashCode) + - (note.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]'; @@ -48,9 +62,21 @@ class UpdateUserNotificationPageSubscriptionStatusResponse { 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; } @@ -65,18 +91,16 @@ class UpdateUserNotificationPageSubscriptionStatusResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateUserNotificationPageSubscriptionStatusResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateUserNotificationPageSubscriptionStatusResponse[$key]" has a null value in JSON.'); - }); + 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'])!, + matchedCount: mapValueOfType(json, r'matchedCount'), + modifiedCount: mapValueOfType(json, r'modifiedCount'), + note: UpdateUserNotificationPageSubscriptionStatusResponseNoteEnum.fromJson(json[r'note']), ); } return null; @@ -125,9 +149,6 @@ class UpdateUserNotificationPageSubscriptionStatusResponse { /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'status', - 'matchedCount', - 'modifiedCount', - 'note', }; } diff --git a/client/lib/model/update_user_notification_status_response.dart b/client/lib/model/update_user_notification_status_response.dart index 904a668..ebc7e61 100644 --- a/client/lib/model/update_user_notification_status_response.dart +++ b/client/lib/model/update_user_notification_status_response.dart @@ -14,33 +14,47 @@ class UpdateUserNotificationStatusResponse { /// Returns a new [UpdateUserNotificationStatusResponse] instance. UpdateUserNotificationStatusResponse({ required this.status, - required this.matchedCount, - required this.modifiedCount, - required this.note, + this.matchedCount, + this.modifiedCount, + this.note, }); APIStatus status; - 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? matchedCount; - int modifiedCount; + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the 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; + 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; + other.matchedCount == matchedCount && + other.modifiedCount == modifiedCount && + other.note == note; + @override int get hashCode => // ignore: unnecessary_parenthesis (status.hashCode) + - (matchedCount.hashCode) + - (modifiedCount.hashCode) + - (note.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]'; @@ -48,9 +62,21 @@ class UpdateUserNotificationStatusResponse { 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; } @@ -65,18 +91,16 @@ class UpdateUserNotificationStatusResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UpdateUserNotificationStatusResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UpdateUserNotificationStatusResponse[$key]" has a null value in JSON.'); - }); + 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'])!, + matchedCount: mapValueOfType(json, r'matchedCount'), + modifiedCount: mapValueOfType(json, r'modifiedCount'), + note: UpdateUserNotificationStatusResponseNoteEnum.fromJson(json[r'note']), ); } return null; @@ -125,9 +149,6 @@ class UpdateUserNotificationStatusResponse { /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'status', - 'matchedCount', - 'modifiedCount', - 'note', }; } diff --git a/client/lib/model/upload_image_response.dart b/client/lib/model/upload_image_response.dart index 19ca6c2..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]'; @@ -101,10 +103,8 @@ class UploadImageResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UploadImageResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UploadImageResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "UploadImageResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UploadImageResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user.dart b/client/lib/model/user.dart index 2171948..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]'; @@ -869,10 +871,22 @@ class User { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "User[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "User[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "User[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "User[_id]" has a null value in JSON.'); + assert(json.containsKey(r'username'), 'Required key "User[username]" is missing from JSON.'); + assert(json[r'username'] != null, 'Required key "User[username]" has a null value in JSON.'); + assert(json.containsKey(r'email'), 'Required key "User[email]" is missing from JSON.'); + assert(json.containsKey(r'signUpDate'), 'Required key "User[signUpDate]" is missing from JSON.'); + assert(json[r'signUpDate'] != null, 'Required key "User[signUpDate]" has a null value in JSON.'); + assert(json.containsKey(r'createdFromTenantId'), 'Required key "User[createdFromTenantId]" is missing from JSON.'); + assert(json.containsKey(r'createdFromIpHashed'), 'Required key "User[createdFromIpHashed]" is missing from JSON.'); + assert(json[r'createdFromIpHashed'] != null, 'Required key "User[createdFromIpHashed]" has a null value in JSON.'); + assert(json.containsKey(r'verified'), 'Required key "User[verified]" is missing from JSON.'); + assert(json[r'verified'] != null, 'Required key "User[verified]" has a null value in JSON.'); + assert(json.containsKey(r'loginId'), 'Required key "User[loginId]" is missing from JSON.'); + assert(json[r'loginId'] != null, 'Required key "User[loginId]" has a null value in JSON.'); + assert(json.containsKey(r'loginIdDate'), 'Required key "User[loginIdDate]" is missing from JSON.'); + assert(json[r'loginIdDate'] != null, 'Required key "User[loginIdDate]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user_badge.dart b/client/lib/model/user_badge.dart index c7b1412..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]'; @@ -189,10 +191,30 @@ class UserBadge { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserBadge[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserBadge[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "UserBadge[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "UserBadge[_id]" has a null value in JSON.'); + assert(json.containsKey(r'userId'), 'Required key "UserBadge[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "UserBadge[userId]" has a null value in JSON.'); + assert(json.containsKey(r'badgeId'), 'Required key "UserBadge[badgeId]" is missing from JSON.'); + assert(json[r'badgeId'] != null, 'Required key "UserBadge[badgeId]" has a null value in JSON.'); + assert(json.containsKey(r'fromTenantId'), 'Required key "UserBadge[fromTenantId]" is missing from JSON.'); + assert(json[r'fromTenantId'] != null, 'Required key "UserBadge[fromTenantId]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "UserBadge[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "UserBadge[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "UserBadge[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "UserBadge[type]" has a null value in JSON.'); + assert(json.containsKey(r'threshold'), 'Required key "UserBadge[threshold]" is missing from JSON.'); + assert(json[r'threshold'] != null, 'Required key "UserBadge[threshold]" has a null value in JSON.'); + assert(json.containsKey(r'description'), 'Required key "UserBadge[description]" is missing from JSON.'); + assert(json[r'description'] != null, 'Required key "UserBadge[description]" has a null value in JSON.'); + assert(json.containsKey(r'displayLabel'), 'Required key "UserBadge[displayLabel]" is missing from JSON.'); + assert(json[r'displayLabel'] != null, 'Required key "UserBadge[displayLabel]" has a null value in JSON.'); + assert(json.containsKey(r'veteranUserThresholdMillis'), 'Required key "UserBadge[veteranUserThresholdMillis]" is missing from JSON.'); + assert(json[r'veteranUserThresholdMillis'] != null, 'Required key "UserBadge[veteranUserThresholdMillis]" has a null value in JSON.'); + assert(json.containsKey(r'displayedOnComments'), 'Required key "UserBadge[displayedOnComments]" is missing from JSON.'); + assert(json[r'displayedOnComments'] != null, 'Required key "UserBadge[displayedOnComments]" has a null value in JSON.'); + assert(json.containsKey(r'receivedAt'), 'Required key "UserBadge[receivedAt]" is missing from JSON.'); + assert(json[r'receivedAt'] != null, 'Required key "UserBadge[receivedAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user_badge_progress.dart b/client/lib/model/user_badge_progress.dart index b29100e..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]'; @@ -126,10 +128,18 @@ class UserBadgeProgress { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserBadgeProgress[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserBadgeProgress[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "UserBadgeProgress[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "UserBadgeProgress[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "UserBadgeProgress[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "UserBadgeProgress[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'userId'), 'Required key "UserBadgeProgress[userId]" is missing from JSON.'); + assert(json[r'userId'] != null, 'Required key "UserBadgeProgress[userId]" has a null value in JSON.'); + assert(json.containsKey(r'firstCommentId'), 'Required key "UserBadgeProgress[firstCommentId]" is missing from JSON.'); + assert(json[r'firstCommentId'] != null, 'Required key "UserBadgeProgress[firstCommentId]" has a null value in JSON.'); + assert(json.containsKey(r'firstCommentDate'), 'Required key "UserBadgeProgress[firstCommentDate]" is missing from JSON.'); + assert(json[r'firstCommentDate'] != null, 'Required key "UserBadgeProgress[firstCommentDate]" has a null value in JSON.'); + assert(json.containsKey(r'progress'), 'Required key "UserBadgeProgress[progress]" is missing from JSON.'); + assert(json[r'progress'] != null, 'Required key "UserBadgeProgress[progress]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user_notification.dart b/client/lib/model/user_notification.dart index 2f45a30..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]'; @@ -227,10 +229,30 @@ class UserNotification { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserNotification[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserNotification[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "UserNotification[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "UserNotification[_id]" has a null value in JSON.'); + assert(json.containsKey(r'tenantId'), 'Required key "UserNotification[tenantId]" is missing from JSON.'); + assert(json[r'tenantId'] != null, 'Required key "UserNotification[tenantId]" has a null value in JSON.'); + assert(json.containsKey(r'urlId'), 'Required key "UserNotification[urlId]" is missing from JSON.'); + assert(json[r'urlId'] != null, 'Required key "UserNotification[urlId]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "UserNotification[url]" is missing from JSON.'); + assert(json[r'url'] != null, 'Required key "UserNotification[url]" has a null value in JSON.'); + assert(json.containsKey(r'relatedObjectType'), 'Required key "UserNotification[relatedObjectType]" is missing from JSON.'); + assert(json[r'relatedObjectType'] != null, 'Required key "UserNotification[relatedObjectType]" has a null value in JSON.'); + assert(json.containsKey(r'relatedObjectId'), 'Required key "UserNotification[relatedObjectId]" is missing from JSON.'); + assert(json[r'relatedObjectId'] != null, 'Required key "UserNotification[relatedObjectId]" has a null value in JSON.'); + assert(json.containsKey(r'viewed'), 'Required key "UserNotification[viewed]" is missing from JSON.'); + assert(json[r'viewed'] != null, 'Required key "UserNotification[viewed]" has a null value in JSON.'); + assert(json.containsKey(r'isUnreadMessage'), 'Required key "UserNotification[isUnreadMessage]" is missing from JSON.'); + assert(json[r'isUnreadMessage'] != null, 'Required key "UserNotification[isUnreadMessage]" has a null value in JSON.'); + assert(json.containsKey(r'sent'), 'Required key "UserNotification[sent]" is missing from JSON.'); + assert(json[r'sent'] != null, 'Required key "UserNotification[sent]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "UserNotification[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "UserNotification[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "UserNotification[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "UserNotification[type]" has a null value in JSON.'); + assert(json.containsKey(r'optedOut'), 'Required key "UserNotification[optedOut]" is missing from JSON.'); + assert(json[r'optedOut'] != null, 'Required key "UserNotification[optedOut]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user_notification_count.dart b/client/lib/model/user_notification_count.dart index d26aa7a..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]'; @@ -65,10 +67,14 @@ class UserNotificationCount { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserNotificationCount[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserNotificationCount[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'_id'), 'Required key "UserNotificationCount[_id]" is missing from JSON.'); + assert(json[r'_id'] != null, 'Required key "UserNotificationCount[_id]" has a null value in JSON.'); + assert(json.containsKey(r'count'), 'Required key "UserNotificationCount[count]" is missing from JSON.'); + assert(json[r'count'] != null, 'Required key "UserNotificationCount[count]" has a null value in JSON.'); + assert(json.containsKey(r'createdAt'), 'Required key "UserNotificationCount[createdAt]" is missing from JSON.'); + assert(json[r'createdAt'] != null, 'Required key "UserNotificationCount[createdAt]" has a null value in JSON.'); + assert(json.containsKey(r'expireAt'), 'Required key "UserNotificationCount[expireAt]" is missing from JSON.'); + assert(json[r'expireAt'] != null, 'Required key "UserNotificationCount[expireAt]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user_notification_write_response.dart b/client/lib/model/user_notification_write_response.dart index 61752ac..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]'; @@ -59,10 +61,12 @@ class UserNotificationWriteResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserNotificationWriteResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserNotificationWriteResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "UserNotificationWriteResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UserNotificationWriteResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'matchedCount'), 'Required key "UserNotificationWriteResponse[matchedCount]" is missing from JSON.'); + assert(json[r'matchedCount'] != null, 'Required key "UserNotificationWriteResponse[matchedCount]" has a null value in JSON.'); + assert(json.containsKey(r'modifiedCount'), 'Required key "UserNotificationWriteResponse[modifiedCount]" is missing from JSON.'); + assert(json[r'modifiedCount'] != null, 'Required key "UserNotificationWriteResponse[modifiedCount]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user_presence_data.dart b/client/lib/model/user_presence_data.dart index 69abec5..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]'; @@ -89,10 +91,6 @@ class UserPresenceData { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserPresenceData[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserPresenceData[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/user_reacts_response.dart b/client/lib/model/user_reacts_response.dart index 86ef6d1..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]'; @@ -53,16 +55,16 @@ class UserReactsResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserReactsResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserReactsResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "UserReactsResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "UserReactsResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'reacts'), 'Required key "UserReactsResponse[reacts]" is missing from JSON.'); + assert(json[r'reacts'] != null, 'Required key "UserReactsResponse[reacts]" has a null value in JSON.'); return true; }()); 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 9144abe..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]'; @@ -85,10 +87,12 @@ class UserSearchResult { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserSearchResult[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserSearchResult[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'id'), 'Required key "UserSearchResult[id]" is missing from JSON.'); + assert(json[r'id'] != null, 'Required key "UserSearchResult[id]" has a null value in JSON.'); + assert(json.containsKey(r'name'), 'Required key "UserSearchResult[name]" is missing from JSON.'); + assert(json[r'name'] != null, 'Required key "UserSearchResult[name]" has a null value in JSON.'); + assert(json.containsKey(r'type'), 'Required key "UserSearchResult[type]" is missing from JSON.'); + assert(json[r'type'] != null, 'Required key "UserSearchResult[type]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user_search_section_result.dart b/client/lib/model/user_search_section_result.dart index a712127..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]'; @@ -53,10 +55,10 @@ class UserSearchSectionResult { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserSearchSectionResult[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserSearchSectionResult[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'section'), 'Required key "UserSearchSectionResult[section]" is missing from JSON.'); + assert(json[r'section'] != null, 'Required key "UserSearchSectionResult[section]" has a null value in JSON.'); + assert(json.containsKey(r'users'), 'Required key "UserSearchSectionResult[users]" is missing from JSON.'); + assert(json[r'users'] != null, 'Required key "UserSearchSectionResult[users]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/user_session_info.dart b/client/lib/model/user_session_info.dart index 1f86ec4..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]'; @@ -227,10 +229,6 @@ class UserSessionInfo { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "UserSessionInfo[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "UserSessionInfo[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/lib/model/vote_body_params.dart b/client/lib/model/vote_body_params.dart index 825dd63..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]'; @@ -77,10 +79,11 @@ class VoteBodyParams { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "VoteBodyParams[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "VoteBodyParams[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'commenterEmail'), 'Required key "VoteBodyParams[commenterEmail]" is missing from JSON.'); + assert(json.containsKey(r'commenterName'), 'Required key "VoteBodyParams[commenterName]" is missing from JSON.'); + assert(json.containsKey(r'voteDir'), 'Required key "VoteBodyParams[voteDir]" is missing from JSON.'); + assert(json[r'voteDir'] != null, 'Required key "VoteBodyParams[voteDir]" has a null value in JSON.'); + assert(json.containsKey(r'url'), 'Required key "VoteBodyParams[url]" is missing from JSON.'); return true; }()); diff --git a/client/lib/model/vote_delete_response.dart b/client/lib/model/vote_delete_response.dart index 3ae09d2..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]'; @@ -63,10 +65,8 @@ class VoteDeleteResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "VoteDeleteResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "VoteDeleteResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "VoteDeleteResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "VoteDeleteResponse[status]" has a null value in JSON.'); return true; }()); diff --git a/client/lib/model/vote_response.dart b/client/lib/model/vote_response.dart index 58dde6d..fb23df0 100644 --- a/client/lib/model/vote_response.dart +++ b/client/lib/model/vote_response.dart @@ -20,7 +20,7 @@ class VoteResponse { this.editKey, }); - VoteResponseStatus 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]'; @@ -111,15 +113,13 @@ class VoteResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "VoteResponse[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "VoteResponse[$key]" has a null value in JSON.'); - }); + assert(json.containsKey(r'status'), 'Required key "VoteResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "VoteResponse[status]" has a null value in JSON.'); return true; }()); return VoteResponse( - status: VoteResponseStatus.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_status.dart b/client/lib/model/vote_response_status.dart deleted file mode 100644 index 516876a..0000000 --- a/client/lib/model/vote_response_status.dart +++ /dev/null @@ -1,101 +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 VoteResponseStatus { - /// Returns a new [VoteResponseStatus] instance. - VoteResponseStatus({ - }); - - @override - bool operator ==(Object other) => identical(this, other) || other is VoteResponseStatus && - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - - @override - String toString() => 'VoteResponseStatus[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [VoteResponseStatus] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static VoteResponseStatus? 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(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "VoteResponseStatus[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "VoteResponseStatus[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return VoteResponseStatus( - ); - } - 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 = VoteResponseStatus.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 = VoteResponseStatus.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of VoteResponseStatus-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] = VoteResponseStatus.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/vote_response_user.dart b/client/lib/model/vote_response_user.dart index 394f054..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]'; @@ -51,10 +53,6 @@ class VoteResponseUser { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), 'Required key "VoteResponseUser[$key]" is missing from JSON.'); - assert(json[key] != null, 'Required key "VoteResponseUser[$key]" has a null value in JSON.'); - }); return true; }()); diff --git a/client/test/vote_response_status_test.dart b/client/test/vote_response_status_test.dart deleted file mode 100644 index 2b7c728..0000000 --- a/client/test/vote_response_status_test.dart +++ /dev/null @@ -1,22 +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 VoteResponseStatus -void main() { - // final instance = VoteResponseStatus(); - - group('test VoteResponseStatus', () { - - }); - -} diff --git a/client/test/vote_response_test.dart b/client/test/vote_response_test.dart index a8afb97..9d2839b 100644 --- a/client/test/vote_response_test.dart +++ b/client/test/vote_response_test.dart @@ -16,7 +16,7 @@ void main() { // final instance = VoteResponse(); group('test VoteResponse', () { - // VoteResponseStatus status + // String status test('to test the property `status`', () async { // TODO }); 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 From 5f50ffe509ac865f568768661913853ffee88988 Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 19 Jun 2026 00:23:47 -0700 Subject: [PATCH 5/6] Regenerate Dart client: pubspec test dep >=1.24.0 for Dart 3 compatible matcher --- client/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' From 31be23b5915f5a72ffc80a117e24c55f6adb5b0a Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 19 Jun 2026 09:43:29 -0700 Subject: [PATCH 6/6] Add Dart SSO unit + integration tests and run them in CI The client package only has generated model tests; add a small sso_tests package that depends on the client + crypto and exercises the hand-written sso/ helpers: SSO token generation (unit) and live create+fetch via secure SSO (integration). --- .github/workflows/ci.yml | 11 ++++- sso_tests/.gitignore | 2 + sso_tests/pubspec.yaml | 17 +++++++ sso_tests/test/sso_integration_test.dart | 54 ++++++++++++++++++++++ sso_tests/test/sso_test.dart | 58 ++++++++++++++++++++++++ 5 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 sso_tests/.gitignore create mode 100644 sso_tests/pubspec.yaml create mode 100644 sso_tests/test/sso_integration_test.dart create mode 100644 sso_tests/test/sso_test.dart diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cff0c3..1fbb970 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,15 @@ jobs: - name: Install dependencies working-directory: client run: dart pub get - - name: Run tests + - 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/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); + }); + }); +}