fastcomments 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/client/README.md +5 -6
- data/client/docs/APICreateUserBadgeResponse.md +3 -1
- data/client/docs/CreateUserBadge200Response.md +2 -0
- data/client/docs/CustomConfigParameters.md +2 -0
- data/client/docs/PatchPageAPIResponse.md +2 -0
- data/client/docs/PublicComment.md +2 -0
- data/client/docs/PublicCommentBase.md +3 -1
- data/client/docs/VoteResponse.md +1 -1
- data/client/fastcomments-client.gemspec +1 -1
- data/client/lib/fastcomments-client/api/default_api.rb +1 -1
- data/client/lib/fastcomments-client/api/public_api.rb +1 -1
- data/client/lib/fastcomments-client/api_client.rb +7 -3
- data/client/lib/fastcomments-client/api_error.rb +1 -1
- data/client/lib/fastcomments-client/api_model_base.rb +88 -0
- data/client/lib/fastcomments-client/configuration.rb +1 -1
- data/client/lib/fastcomments-client/models/add_domain_config200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/add_domain_config200_response_any_of.rb +2 -75
- data/client/lib/fastcomments-client/models/add_domain_config_params.rb +2 -75
- data/client/lib/fastcomments-client/models/add_page_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/add_sso_user_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/aggregate_question_results200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/aggregate_question_results_response.rb +2 -75
- data/client/lib/fastcomments-client/models/aggregate_time_bucket.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_item.rb +2 -75
- data/client/lib/fastcomments-client/models/aggregation_op_type.rb +1 -1
- data/client/lib/fastcomments-client/models/aggregation_operation.rb +2 -75
- data/client/lib/fastcomments-client/models/aggregation_request.rb +2 -75
- data/client/lib/fastcomments-client/models/aggregation_request_sort.rb +2 -75
- data/client/lib/fastcomments-client/models/aggregation_response.rb +2 -75
- data/client/lib/fastcomments-client/models/aggregation_response_stats.rb +2 -75
- data/client/lib/fastcomments-client/models/aggregation_value.rb +2 -75
- data/client/lib/fastcomments-client/models/api_audit_log.rb +2 -75
- data/client/lib/fastcomments-client/models/api_comment.rb +2 -75
- data/client/lib/fastcomments-client/models/api_comment_base.rb +2 -75
- data/client/lib/fastcomments-client/models/api_create_user_badge_response.rb +17 -79
- data/client/lib/fastcomments-client/models/api_empty_response.rb +2 -75
- data/client/lib/fastcomments-client/models/api_empty_success_response.rb +2 -75
- data/client/lib/fastcomments-client/models/api_error.rb +2 -75
- data/client/lib/fastcomments-client/models/api_get_comment_response.rb +2 -75
- data/client/lib/fastcomments-client/models/api_get_comments_response.rb +2 -75
- data/client/lib/fastcomments-client/models/api_get_user_badge_progress_list_response.rb +2 -75
- data/client/lib/fastcomments-client/models/api_get_user_badge_progress_response.rb +2 -75
- data/client/lib/fastcomments-client/models/api_get_user_badge_response.rb +2 -75
- data/client/lib/fastcomments-client/models/api_get_user_badges_response.rb +2 -75
- data/client/lib/fastcomments-client/models/api_page.rb +2 -75
- data/client/lib/fastcomments-client/models/api_status.rb +1 -1
- data/client/lib/fastcomments-client/models/api_user_subscription.rb +2 -75
- data/client/lib/fastcomments-client/models/apisso_user.rb +2 -75
- data/client/lib/fastcomments-client/models/block_from_comment_params.rb +2 -75
- data/client/lib/fastcomments-client/models/block_from_comment_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/block_success.rb +2 -75
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_item.rb +2 -75
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_request.rb +2 -75
- data/client/lib/fastcomments-client/models/bulk_aggregate_question_results_response.rb +2 -75
- data/client/lib/fastcomments-client/models/change_comment_pin_status_response.rb +2 -75
- data/client/lib/fastcomments-client/models/check_blocked_comments_response.rb +2 -75
- data/client/lib/fastcomments-client/models/checked_comments_for_blocked200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/combine_comments_with_question_results200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/combine_question_results_with_comments_response.rb +2 -75
- data/client/lib/fastcomments-client/models/comment_data.rb +2 -75
- data/client/lib/fastcomments-client/models/comment_html_rendering_mode.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_log_data.rb +2 -75
- data/client/lib/fastcomments-client/models/comment_log_entry.rb +2 -75
- data/client/lib/fastcomments-client/models/comment_log_type.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_question_results_rendering_type.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_questions_required.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_text_update_request.rb +2 -75
- data/client/lib/fastcomments-client/models/comment_thread_deletion_mode.rb +1 -1
- data/client/lib/fastcomments-client/models/comment_user_badge_info.rb +2 -75
- data/client/lib/fastcomments-client/models/comment_user_hash_tag_info.rb +2 -75
- data/client/lib/fastcomments-client/models/comment_user_mention_info.rb +2 -75
- data/client/lib/fastcomments-client/models/commenter_name_formats.rb +1 -1
- data/client/lib/fastcomments-client/models/create_api_page_data.rb +2 -75
- data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +2 -75
- data/client/lib/fastcomments-client/models/create_apisso_user_data.rb +2 -75
- data/client/lib/fastcomments-client/models/create_comment_params.rb +2 -75
- data/client/lib/fastcomments-client/models/create_comment_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/create_feed_post200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/create_feed_post_params.rb +2 -75
- data/client/lib/fastcomments-client/models/create_feed_post_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/create_feed_post_response.rb +2 -75
- data/client/lib/fastcomments-client/models/create_feed_posts_response.rb +2 -75
- data/client/lib/fastcomments-client/models/create_subscription_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/create_user_badge200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/create_user_badge_params.rb +2 -75
- data/client/lib/fastcomments-client/models/custom_config_parameters.rb +12 -76
- data/client/lib/fastcomments-client/models/delete_comment200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/delete_comment_action.rb +1 -1
- data/client/lib/fastcomments-client/models/delete_comment_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/delete_comment_result.rb +2 -75
- data/client/lib/fastcomments-client/models/delete_comment_vote200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/delete_domain_config200_response.rb +2 -75
- data/client/lib/fastcomments-client/models/delete_feed_post_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/delete_feed_post_public200_response_any_of.rb +2 -75
- data/client/lib/fastcomments-client/models/delete_page_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/delete_sso_user_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/delete_subscription_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/deleted_comment_result_comment.rb +2 -75
- data/client/lib/fastcomments-client/models/event_log_entry.rb +2 -75
- data/client/lib/fastcomments-client/models/f_comment.rb +2 -75
- data/client/lib/fastcomments-client/models/f_comment_meta.rb +2 -75
- data/client/lib/fastcomments-client/models/feed_post.rb +2 -75
- data/client/lib/fastcomments-client/models/feed_post_link.rb +2 -75
- data/client/lib/fastcomments-client/models/feed_post_media_item.rb +2 -75
- data/client/lib/fastcomments-client/models/feed_post_media_item_asset.rb +2 -75
- data/client/lib/fastcomments-client/models/feed_post_stats.rb +2 -75
- data/client/lib/fastcomments-client/models/feed_posts_stats_response.rb +2 -75
- data/client/lib/fastcomments-client/models/find_comments_by_range_item.rb +2 -75
- data/client/lib/fastcomments-client/models/find_comments_by_range_response.rb +2 -75
- data/client/lib/fastcomments-client/models/flag_comment200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/flag_comment_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/flag_comment_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_audit_logs200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_audit_logs_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_comment200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_comment_text200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_comment_vote_user_names200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_comment_vote_user_names_success_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_comments200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_comments_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_comments_response_public_comment.rb +2 -75
- data/client/lib/fastcomments-client/models/get_comments_response_with_presence_public_comment.rb +2 -75
- data/client/lib/fastcomments-client/models/get_domain_config200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_domain_configs200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of.rb +2 -75
- data/client/lib/fastcomments-client/models/get_domain_configs200_response_any_of1.rb +2 -75
- data/client/lib/fastcomments-client/models/get_event_log200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_event_log_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_feed_posts200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_feed_posts_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_feed_posts_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_feed_posts_stats200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_my_notifications_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_page_by_urlid_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_pages_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_public_feed_posts_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_sso_user_by_email_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_sso_user_by_id_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_sso_users200_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_subscriptions_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_user_badge200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_user_badge_progress_by_id200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_user_badge_progress_list200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_user_badges200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_user_notification_count200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_user_notification_count_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_user_notifications200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_user_presence_statuses200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/get_user_presence_statuses_response.rb +2 -75
- data/client/lib/fastcomments-client/models/get_user_reacts_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/gif_rating.rb +1 -1
- data/client/lib/fastcomments-client/models/header_state.rb +2 -75
- data/client/lib/fastcomments-client/models/ignored_response.rb +2 -75
- data/client/lib/fastcomments-client/models/image_content_profanity_level.rb +1 -1
- data/client/lib/fastcomments-client/models/live_event.rb +2 -75
- data/client/lib/fastcomments-client/models/live_event_extra_info.rb +2 -75
- data/client/lib/fastcomments-client/models/live_event_type.rb +1 -1
- data/client/lib/fastcomments-client/models/lock_comment200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/media_asset.rb +2 -75
- data/client/lib/fastcomments-client/models/meta_item.rb +2 -75
- data/client/lib/fastcomments-client/models/notification_and_count.rb +2 -75
- data/client/lib/fastcomments-client/models/notification_object_type.rb +1 -1
- data/client/lib/fastcomments-client/models/notification_type.rb +1 -1
- data/client/lib/fastcomments-client/models/patch_domain_config_params.rb +2 -75
- data/client/lib/fastcomments-client/models/patch_page_api_response.rb +12 -76
- data/client/lib/fastcomments-client/models/patch_sso_user_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/pin_comment200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/pub_sub_comment.rb +2 -75
- data/client/lib/fastcomments-client/models/pub_sub_comment_base.rb +2 -75
- data/client/lib/fastcomments-client/models/pub_sub_vote.rb +2 -75
- data/client/lib/fastcomments-client/models/public_api_delete_comment_response.rb +2 -75
- data/client/lib/fastcomments-client/models/public_api_get_comment_text_response.rb +2 -75
- data/client/lib/fastcomments-client/models/public_api_set_comment_text_response.rb +2 -75
- data/client/lib/fastcomments-client/models/public_block_from_comment_params.rb +2 -75
- data/client/lib/fastcomments-client/models/public_comment.rb +12 -76
- data/client/lib/fastcomments-client/models/public_comment_base.rb +15 -79
- data/client/lib/fastcomments-client/models/public_feed_posts_response.rb +2 -75
- data/client/lib/fastcomments-client/models/put_sso_user_api_response.rb +2 -75
- data/client/lib/fastcomments-client/models/query_predicate.rb +2 -75
- data/client/lib/fastcomments-client/models/query_predicate_value.rb +2 -3
- data/client/lib/fastcomments-client/models/question_datum.rb +2 -75
- data/client/lib/fastcomments-client/models/question_rendering_type.rb +1 -1
- data/client/lib/fastcomments-client/models/question_result.rb +2 -75
- data/client/lib/fastcomments-client/models/question_result_aggregation_overall.rb +2 -75
- data/client/lib/fastcomments-client/models/question_sub_question_visibility.rb +1 -1
- data/client/lib/fastcomments-client/models/question_when_save.rb +1 -1
- data/client/lib/fastcomments-client/models/react_body_params.rb +2 -75
- data/client/lib/fastcomments-client/models/react_feed_post_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/react_feed_post_response.rb +2 -75
- data/client/lib/fastcomments-client/models/record_string_before_string_or_null_after_string_or_null_value.rb +2 -75
- data/client/lib/fastcomments-client/models/record_string_string_or_number_value.rb +2 -3
- data/client/lib/fastcomments-client/models/renderable_user_notification.rb +2 -75
- data/client/lib/fastcomments-client/models/repeat_comment_check_ignored_reason.rb +1 -1
- data/client/lib/fastcomments-client/models/repeat_comment_handling_action.rb +1 -1
- data/client/lib/fastcomments-client/models/reset_user_notifications200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/reset_user_notifications_response.rb +2 -75
- data/client/lib/fastcomments-client/models/save_comment200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/save_comment_response.rb +2 -75
- data/client/lib/fastcomments-client/models/save_comment_response_optimized.rb +2 -75
- data/client/lib/fastcomments-client/models/save_comments_response_with_presence.rb +2 -75
- data/client/lib/fastcomments-client/models/search_users200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/search_users_response.rb +2 -75
- data/client/lib/fastcomments-client/models/set_comment_text200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/set_comment_text_result.rb +2 -75
- data/client/lib/fastcomments-client/models/size_preset.rb +1 -1
- data/client/lib/fastcomments-client/models/sort_directions.rb +1 -1
- data/client/lib/fastcomments-client/models/sortdir.rb +1 -1
- data/client/lib/fastcomments-client/models/spam_rule.rb +2 -75
- data/client/lib/fastcomments-client/models/sso_security_level.rb +1 -1
- data/client/lib/fastcomments-client/models/un_block_comment_public200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/un_block_from_comment_params.rb +2 -75
- data/client/lib/fastcomments-client/models/unblock_success.rb +2 -75
- data/client/lib/fastcomments-client/models/updatable_comment_params.rb +2 -75
- data/client/lib/fastcomments-client/models/update_api_page_data.rb +2 -75
- data/client/lib/fastcomments-client/models/update_apisso_user_data.rb +2 -75
- data/client/lib/fastcomments-client/models/update_domain_config_params.rb +2 -75
- data/client/lib/fastcomments-client/models/update_feed_post_params.rb +2 -75
- data/client/lib/fastcomments-client/models/update_user_badge200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/update_user_badge_params.rb +2 -75
- data/client/lib/fastcomments-client/models/update_user_notification_status200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/upload_image_response.rb +2 -75
- data/client/lib/fastcomments-client/models/user_badge.rb +2 -75
- data/client/lib/fastcomments-client/models/user_badge_progress.rb +2 -75
- data/client/lib/fastcomments-client/models/user_notification.rb +2 -75
- data/client/lib/fastcomments-client/models/user_notification_write_response.rb +2 -75
- data/client/lib/fastcomments-client/models/user_presence_data.rb +2 -75
- data/client/lib/fastcomments-client/models/user_reacts_response.rb +2 -75
- data/client/lib/fastcomments-client/models/user_search_result.rb +2 -75
- data/client/lib/fastcomments-client/models/user_session_info.rb +2 -75
- data/client/lib/fastcomments-client/models/vote_body_params.rb +2 -75
- data/client/lib/fastcomments-client/models/vote_comment200_response.rb +2 -3
- data/client/lib/fastcomments-client/models/vote_delete_response.rb +2 -75
- data/client/lib/fastcomments-client/models/vote_response.rb +32 -81
- data/client/lib/fastcomments-client/models/vote_response_user.rb +2 -75
- data/client/lib/fastcomments-client/models/vote_style.rb +1 -1
- data/client/lib/fastcomments-client/version.rb +2 -2
- data/client/lib/fastcomments-client.rb +2 -2
- data/client/spec/api/default_api_spec.rb +1 -1
- data/client/spec/api/public_api_spec.rb +1 -1
- data/client/spec/models/add_domain_config200_response_any_of_spec.rb +2 -2
- data/client/spec/models/add_domain_config200_response_spec.rb +1 -1
- data/client/spec/models/add_domain_config_params_spec.rb +2 -2
- data/client/spec/models/add_page_api_response_spec.rb +2 -2
- data/client/spec/models/add_sso_user_api_response_spec.rb +2 -2
- data/client/spec/models/aggregate_question_results200_response_spec.rb +1 -1
- data/client/spec/models/aggregate_question_results_response_spec.rb +2 -2
- data/client/spec/models/aggregate_time_bucket_spec.rb +2 -2
- data/client/spec/models/aggregation_item_spec.rb +2 -2
- data/client/spec/models/aggregation_op_type_spec.rb +2 -2
- data/client/spec/models/aggregation_operation_spec.rb +2 -2
- data/client/spec/models/aggregation_request_sort_spec.rb +2 -2
- data/client/spec/models/aggregation_request_spec.rb +2 -2
- data/client/spec/models/aggregation_response_spec.rb +2 -2
- data/client/spec/models/aggregation_response_stats_spec.rb +2 -2
- data/client/spec/models/aggregation_value_spec.rb +2 -2
- data/client/spec/models/api_audit_log_spec.rb +2 -2
- data/client/spec/models/api_comment_base_spec.rb +2 -2
- data/client/spec/models/api_comment_spec.rb +2 -2
- data/client/spec/models/api_create_user_badge_response_spec.rb +8 -2
- data/client/spec/models/api_empty_response_spec.rb +2 -2
- data/client/spec/models/api_empty_success_response_spec.rb +2 -2
- data/client/spec/models/api_error_spec.rb +2 -2
- data/client/spec/models/api_get_comment_response_spec.rb +2 -2
- data/client/spec/models/api_get_comments_response_spec.rb +2 -2
- data/client/spec/models/api_get_user_badge_progress_list_response_spec.rb +2 -2
- data/client/spec/models/api_get_user_badge_progress_response_spec.rb +2 -2
- data/client/spec/models/api_get_user_badge_response_spec.rb +2 -2
- data/client/spec/models/api_get_user_badges_response_spec.rb +2 -2
- data/client/spec/models/api_page_spec.rb +2 -2
- data/client/spec/models/api_status_spec.rb +2 -2
- data/client/spec/models/api_user_subscription_spec.rb +2 -2
- data/client/spec/models/apisso_user_spec.rb +2 -2
- data/client/spec/models/block_from_comment_params_spec.rb +2 -2
- data/client/spec/models/block_from_comment_public200_response_spec.rb +1 -1
- data/client/spec/models/block_success_spec.rb +2 -2
- data/client/spec/models/bulk_aggregate_question_item_spec.rb +2 -2
- data/client/spec/models/bulk_aggregate_question_results200_response_spec.rb +1 -1
- data/client/spec/models/bulk_aggregate_question_results_request_spec.rb +2 -2
- data/client/spec/models/bulk_aggregate_question_results_response_spec.rb +2 -2
- data/client/spec/models/change_comment_pin_status_response_spec.rb +2 -2
- data/client/spec/models/check_blocked_comments_response_spec.rb +2 -2
- data/client/spec/models/checked_comments_for_blocked200_response_spec.rb +1 -1
- data/client/spec/models/combine_comments_with_question_results200_response_spec.rb +1 -1
- data/client/spec/models/combine_question_results_with_comments_response_spec.rb +2 -2
- data/client/spec/models/comment_data_spec.rb +2 -2
- data/client/spec/models/comment_html_rendering_mode_spec.rb +2 -2
- data/client/spec/models/comment_log_data_spec.rb +2 -2
- data/client/spec/models/comment_log_entry_spec.rb +2 -2
- data/client/spec/models/comment_log_type_spec.rb +2 -2
- data/client/spec/models/comment_question_results_rendering_type_spec.rb +2 -2
- data/client/spec/models/comment_questions_required_spec.rb +2 -2
- data/client/spec/models/comment_text_update_request_spec.rb +2 -2
- data/client/spec/models/comment_thread_deletion_mode_spec.rb +2 -2
- data/client/spec/models/comment_user_badge_info_spec.rb +2 -2
- data/client/spec/models/comment_user_hash_tag_info_spec.rb +2 -2
- data/client/spec/models/comment_user_mention_info_spec.rb +2 -2
- data/client/spec/models/commenter_name_formats_spec.rb +2 -2
- data/client/spec/models/create_api_page_data_spec.rb +2 -2
- data/client/spec/models/create_api_user_subscription_data_spec.rb +2 -2
- data/client/spec/models/create_apisso_user_data_spec.rb +2 -2
- data/client/spec/models/create_comment_params_spec.rb +2 -2
- data/client/spec/models/create_comment_public200_response_spec.rb +1 -1
- data/client/spec/models/create_feed_post200_response_spec.rb +1 -1
- data/client/spec/models/create_feed_post_params_spec.rb +2 -2
- data/client/spec/models/create_feed_post_public200_response_spec.rb +1 -1
- data/client/spec/models/create_feed_post_response_spec.rb +2 -2
- data/client/spec/models/create_feed_posts_response_spec.rb +2 -2
- data/client/spec/models/create_subscription_api_response_spec.rb +2 -2
- data/client/spec/models/create_user_badge200_response_spec.rb +1 -1
- data/client/spec/models/create_user_badge_params_spec.rb +2 -2
- data/client/spec/models/custom_config_parameters_spec.rb +8 -2
- data/client/spec/models/delete_comment200_response_spec.rb +1 -1
- data/client/spec/models/delete_comment_action_spec.rb +2 -2
- data/client/spec/models/delete_comment_public200_response_spec.rb +1 -1
- data/client/spec/models/delete_comment_result_spec.rb +2 -2
- data/client/spec/models/delete_comment_vote200_response_spec.rb +1 -1
- data/client/spec/models/delete_domain_config200_response_spec.rb +2 -2
- data/client/spec/models/delete_feed_post_public200_response_any_of_spec.rb +2 -2
- data/client/spec/models/delete_feed_post_public200_response_spec.rb +1 -1
- data/client/spec/models/delete_page_api_response_spec.rb +2 -2
- data/client/spec/models/delete_sso_user_api_response_spec.rb +2 -2
- data/client/spec/models/delete_subscription_api_response_spec.rb +2 -2
- data/client/spec/models/deleted_comment_result_comment_spec.rb +2 -2
- data/client/spec/models/event_log_entry_spec.rb +2 -2
- data/client/spec/models/f_comment_meta_spec.rb +2 -2
- data/client/spec/models/f_comment_spec.rb +2 -2
- data/client/spec/models/feed_post_link_spec.rb +2 -2
- data/client/spec/models/feed_post_media_item_asset_spec.rb +2 -2
- data/client/spec/models/feed_post_media_item_spec.rb +2 -2
- data/client/spec/models/feed_post_spec.rb +2 -2
- data/client/spec/models/feed_post_stats_spec.rb +2 -2
- data/client/spec/models/feed_posts_stats_response_spec.rb +2 -2
- data/client/spec/models/find_comments_by_range_item_spec.rb +2 -2
- data/client/spec/models/find_comments_by_range_response_spec.rb +2 -2
- data/client/spec/models/flag_comment200_response_spec.rb +1 -1
- data/client/spec/models/flag_comment_public200_response_spec.rb +1 -1
- data/client/spec/models/flag_comment_response_spec.rb +2 -2
- data/client/spec/models/get_audit_logs200_response_spec.rb +1 -1
- data/client/spec/models/get_audit_logs_response_spec.rb +2 -2
- data/client/spec/models/get_comment200_response_spec.rb +1 -1
- data/client/spec/models/get_comment_text200_response_spec.rb +1 -1
- data/client/spec/models/get_comment_vote_user_names200_response_spec.rb +1 -1
- data/client/spec/models/get_comment_vote_user_names_success_response_spec.rb +2 -2
- data/client/spec/models/get_comments200_response_spec.rb +1 -1
- data/client/spec/models/get_comments_public200_response_spec.rb +1 -1
- data/client/spec/models/get_comments_response_public_comment_spec.rb +2 -2
- data/client/spec/models/get_comments_response_with_presence_public_comment_spec.rb +2 -2
- data/client/spec/models/get_domain_config200_response_spec.rb +1 -1
- data/client/spec/models/get_domain_configs200_response_any_of1_spec.rb +2 -2
- data/client/spec/models/get_domain_configs200_response_any_of_spec.rb +2 -2
- data/client/spec/models/get_domain_configs200_response_spec.rb +1 -1
- data/client/spec/models/get_event_log200_response_spec.rb +1 -1
- data/client/spec/models/get_event_log_response_spec.rb +2 -2
- data/client/spec/models/get_feed_posts200_response_spec.rb +1 -1
- data/client/spec/models/get_feed_posts_public200_response_spec.rb +1 -1
- data/client/spec/models/get_feed_posts_response_spec.rb +2 -2
- data/client/spec/models/get_feed_posts_stats200_response_spec.rb +1 -1
- data/client/spec/models/get_my_notifications_response_spec.rb +2 -2
- data/client/spec/models/get_page_by_urlid_api_response_spec.rb +2 -2
- data/client/spec/models/get_pages_api_response_spec.rb +2 -2
- data/client/spec/models/get_public_feed_posts_response_spec.rb +2 -2
- data/client/spec/models/get_sso_user_by_email_api_response_spec.rb +2 -2
- data/client/spec/models/get_sso_user_by_id_api_response_spec.rb +2 -2
- data/client/spec/models/get_sso_users200_response_spec.rb +2 -2
- data/client/spec/models/get_subscriptions_api_response_spec.rb +2 -2
- data/client/spec/models/get_user_badge200_response_spec.rb +1 -1
- data/client/spec/models/get_user_badge_progress_by_id200_response_spec.rb +1 -1
- data/client/spec/models/get_user_badge_progress_list200_response_spec.rb +1 -1
- data/client/spec/models/get_user_badges200_response_spec.rb +1 -1
- data/client/spec/models/get_user_notification_count200_response_spec.rb +1 -1
- data/client/spec/models/get_user_notification_count_response_spec.rb +2 -2
- data/client/spec/models/get_user_notifications200_response_spec.rb +1 -1
- data/client/spec/models/get_user_presence_statuses200_response_spec.rb +1 -1
- data/client/spec/models/get_user_presence_statuses_response_spec.rb +2 -2
- data/client/spec/models/get_user_reacts_public200_response_spec.rb +1 -1
- data/client/spec/models/gif_rating_spec.rb +2 -2
- data/client/spec/models/header_state_spec.rb +2 -2
- data/client/spec/models/ignored_response_spec.rb +2 -2
- data/client/spec/models/image_content_profanity_level_spec.rb +2 -2
- data/client/spec/models/live_event_extra_info_spec.rb +2 -2
- data/client/spec/models/live_event_spec.rb +2 -2
- data/client/spec/models/live_event_type_spec.rb +2 -2
- data/client/spec/models/lock_comment200_response_spec.rb +1 -1
- data/client/spec/models/media_asset_spec.rb +2 -2
- data/client/spec/models/meta_item_spec.rb +2 -2
- data/client/spec/models/notification_and_count_spec.rb +2 -2
- data/client/spec/models/notification_object_type_spec.rb +2 -2
- data/client/spec/models/notification_type_spec.rb +2 -2
- data/client/spec/models/patch_domain_config_params_spec.rb +2 -2
- data/client/spec/models/patch_page_api_response_spec.rb +8 -2
- data/client/spec/models/patch_sso_user_api_response_spec.rb +2 -2
- data/client/spec/models/pin_comment200_response_spec.rb +1 -1
- data/client/spec/models/pub_sub_comment_base_spec.rb +2 -2
- data/client/spec/models/pub_sub_comment_spec.rb +2 -2
- data/client/spec/models/pub_sub_vote_spec.rb +2 -2
- data/client/spec/models/public_api_delete_comment_response_spec.rb +2 -2
- data/client/spec/models/public_api_get_comment_text_response_spec.rb +2 -2
- data/client/spec/models/public_api_set_comment_text_response_spec.rb +2 -2
- data/client/spec/models/public_block_from_comment_params_spec.rb +2 -2
- data/client/spec/models/public_comment_base_spec.rb +8 -2
- data/client/spec/models/public_comment_spec.rb +8 -2
- data/client/spec/models/public_feed_posts_response_spec.rb +2 -2
- data/client/spec/models/put_sso_user_api_response_spec.rb +2 -2
- data/client/spec/models/query_predicate_spec.rb +2 -2
- data/client/spec/models/query_predicate_value_spec.rb +1 -1
- data/client/spec/models/question_datum_spec.rb +2 -2
- data/client/spec/models/question_rendering_type_spec.rb +2 -2
- data/client/spec/models/question_result_aggregation_overall_spec.rb +2 -2
- data/client/spec/models/question_result_spec.rb +2 -2
- data/client/spec/models/question_sub_question_visibility_spec.rb +2 -2
- data/client/spec/models/question_when_save_spec.rb +2 -2
- data/client/spec/models/react_body_params_spec.rb +2 -2
- data/client/spec/models/react_feed_post_public200_response_spec.rb +1 -1
- data/client/spec/models/react_feed_post_response_spec.rb +2 -2
- data/client/spec/models/record_string_before_string_or_null_after_string_or_null_value_spec.rb +2 -2
- data/client/spec/models/record_string_string_or_number_value_spec.rb +1 -1
- data/client/spec/models/renderable_user_notification_spec.rb +2 -2
- data/client/spec/models/repeat_comment_check_ignored_reason_spec.rb +2 -2
- data/client/spec/models/repeat_comment_handling_action_spec.rb +2 -2
- data/client/spec/models/reset_user_notifications200_response_spec.rb +1 -1
- data/client/spec/models/reset_user_notifications_response_spec.rb +2 -2
- data/client/spec/models/save_comment200_response_spec.rb +1 -1
- data/client/spec/models/save_comment_response_optimized_spec.rb +2 -2
- data/client/spec/models/save_comment_response_spec.rb +2 -2
- data/client/spec/models/save_comments_response_with_presence_spec.rb +2 -2
- data/client/spec/models/search_users200_response_spec.rb +1 -1
- data/client/spec/models/search_users_response_spec.rb +2 -2
- data/client/spec/models/set_comment_text200_response_spec.rb +1 -1
- data/client/spec/models/set_comment_text_result_spec.rb +2 -2
- data/client/spec/models/size_preset_spec.rb +2 -2
- data/client/spec/models/sort_directions_spec.rb +2 -2
- data/client/spec/models/sortdir_spec.rb +2 -2
- data/client/spec/models/spam_rule_spec.rb +2 -2
- data/client/spec/models/sso_security_level_spec.rb +2 -2
- data/client/spec/models/un_block_comment_public200_response_spec.rb +1 -1
- data/client/spec/models/un_block_from_comment_params_spec.rb +2 -2
- data/client/spec/models/unblock_success_spec.rb +2 -2
- data/client/spec/models/updatable_comment_params_spec.rb +2 -2
- data/client/spec/models/update_api_page_data_spec.rb +2 -2
- data/client/spec/models/update_apisso_user_data_spec.rb +2 -2
- data/client/spec/models/update_domain_config_params_spec.rb +2 -2
- data/client/spec/models/update_feed_post_params_spec.rb +2 -2
- data/client/spec/models/update_user_badge200_response_spec.rb +1 -1
- data/client/spec/models/update_user_badge_params_spec.rb +2 -2
- data/client/spec/models/update_user_notification_status200_response_spec.rb +1 -1
- data/client/spec/models/upload_image_response_spec.rb +2 -2
- data/client/spec/models/user_badge_progress_spec.rb +2 -2
- data/client/spec/models/user_badge_spec.rb +2 -2
- data/client/spec/models/user_notification_spec.rb +2 -2
- data/client/spec/models/user_notification_write_response_spec.rb +2 -2
- data/client/spec/models/user_presence_data_spec.rb +2 -2
- data/client/spec/models/user_reacts_response_spec.rb +2 -2
- data/client/spec/models/user_search_result_spec.rb +2 -2
- data/client/spec/models/user_session_info_spec.rb +2 -2
- data/client/spec/models/vote_body_params_spec.rb +2 -2
- data/client/spec/models/vote_comment200_response_spec.rb +1 -1
- data/client/spec/models/vote_delete_response_spec.rb +2 -2
- data/client/spec/models/vote_response_spec.rb +6 -2
- data/client/spec/models/vote_response_user_spec.rb +2 -2
- data/client/spec/models/vote_style_spec.rb +2 -2
- data/client/spec/spec_helper.rb +1 -1
- data/lib/fastcomments.rb +1 -1
- metadata +3 -5
- data/client/docs/VoteResponseStatus.md +0 -15
- data/client/lib/fastcomments-client/models/vote_response_status.rb +0 -104
- data/client/spec/models/vote_response_status_spec.rb +0 -21
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FastCommentsClient
|
|
17
|
-
class PublicComment
|
|
17
|
+
class PublicComment < ApiModelBase
|
|
18
18
|
attr_accessor :_id
|
|
19
19
|
|
|
20
20
|
attr_accessor :user_id
|
|
@@ -71,6 +71,8 @@ module FastCommentsClient
|
|
|
71
71
|
|
|
72
72
|
attr_accessor :edit_key
|
|
73
73
|
|
|
74
|
+
attr_accessor :approved
|
|
75
|
+
|
|
74
76
|
attr_accessor :is_unread
|
|
75
77
|
|
|
76
78
|
attr_accessor :my_vote_id
|
|
@@ -125,6 +127,7 @@ module FastCommentsClient
|
|
|
125
127
|
:'feedback_ids' => :'feedbackIds',
|
|
126
128
|
:'requires_verification' => :'requiresVerification',
|
|
127
129
|
:'edit_key' => :'editKey',
|
|
130
|
+
:'approved' => :'approved',
|
|
128
131
|
:'is_unread' => :'isUnread',
|
|
129
132
|
:'my_vote_id' => :'myVoteId',
|
|
130
133
|
:'is_voted_down' => :'isVotedDown',
|
|
@@ -179,6 +182,7 @@ module FastCommentsClient
|
|
|
179
182
|
:'feedback_ids' => :'Array<String>',
|
|
180
183
|
:'requires_verification' => :'Boolean',
|
|
181
184
|
:'edit_key' => :'String',
|
|
185
|
+
:'approved' => :'Boolean',
|
|
182
186
|
:'is_unread' => :'Boolean',
|
|
183
187
|
:'my_vote_id' => :'String',
|
|
184
188
|
:'is_voted_down' => :'Boolean',
|
|
@@ -362,6 +366,10 @@ module FastCommentsClient
|
|
|
362
366
|
self.edit_key = attributes[:'edit_key']
|
|
363
367
|
end
|
|
364
368
|
|
|
369
|
+
if attributes.key?(:'approved')
|
|
370
|
+
self.approved = attributes[:'approved']
|
|
371
|
+
end
|
|
372
|
+
|
|
365
373
|
if attributes.key?(:'is_unread')
|
|
366
374
|
self.is_unread = attributes[:'is_unread']
|
|
367
375
|
end
|
|
@@ -513,6 +521,7 @@ module FastCommentsClient
|
|
|
513
521
|
feedback_ids == o.feedback_ids &&
|
|
514
522
|
requires_verification == o.requires_verification &&
|
|
515
523
|
edit_key == o.edit_key &&
|
|
524
|
+
approved == o.approved &&
|
|
516
525
|
is_unread == o.is_unread &&
|
|
517
526
|
my_vote_id == o.my_vote_id &&
|
|
518
527
|
is_voted_down == o.is_voted_down &&
|
|
@@ -534,7 +543,7 @@ module FastCommentsClient
|
|
|
534
543
|
# Calculates hash code according to all attributes.
|
|
535
544
|
# @return [Integer] Hash code
|
|
536
545
|
def hash
|
|
537
|
-
[_id, user_id, commenter_name, commenter_link, comment_html, parent_id, date, votes, votes_up, votes_down, verified, avatar_src, has_images, is_by_admin, is_by_moderator, is_pinned, is_locked, display_label, rating, badges, view_count, is_deleted, is_deleted_user, is_spam, anon_user_id, feedback_ids, requires_verification, edit_key, is_unread, my_vote_id, is_voted_down, is_voted_up, has_children, nested_children_count, child_count, children, is_flagged, is_blocked].hash
|
|
546
|
+
[_id, user_id, commenter_name, commenter_link, comment_html, parent_id, date, votes, votes_up, votes_down, verified, avatar_src, has_images, is_by_admin, is_by_moderator, is_pinned, is_locked, display_label, rating, badges, view_count, is_deleted, is_deleted_user, is_spam, anon_user_id, feedback_ids, requires_verification, edit_key, approved, is_unread, my_vote_id, is_voted_down, is_voted_up, has_children, nested_children_count, child_count, children, is_flagged, is_blocked].hash
|
|
538
547
|
end
|
|
539
548
|
|
|
540
549
|
# Builds the object from hash
|
|
@@ -560,61 +569,6 @@ module FastCommentsClient
|
|
|
560
569
|
new(transformed_hash)
|
|
561
570
|
end
|
|
562
571
|
|
|
563
|
-
# Deserializes the data based on type
|
|
564
|
-
# @param string type Data type
|
|
565
|
-
# @param string value Value to be deserialized
|
|
566
|
-
# @return [Object] Deserialized data
|
|
567
|
-
def self._deserialize(type, value)
|
|
568
|
-
case type.to_sym
|
|
569
|
-
when :Time
|
|
570
|
-
Time.parse(value)
|
|
571
|
-
when :Date
|
|
572
|
-
Date.parse(value)
|
|
573
|
-
when :String
|
|
574
|
-
value.to_s
|
|
575
|
-
when :Integer
|
|
576
|
-
value.to_i
|
|
577
|
-
when :Float
|
|
578
|
-
value.to_f
|
|
579
|
-
when :Boolean
|
|
580
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
581
|
-
true
|
|
582
|
-
else
|
|
583
|
-
false
|
|
584
|
-
end
|
|
585
|
-
when :Object
|
|
586
|
-
# generic object (usually a Hash), return directly
|
|
587
|
-
value
|
|
588
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
589
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
590
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
591
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
592
|
-
k_type = Regexp.last_match[:k_type]
|
|
593
|
-
v_type = Regexp.last_match[:v_type]
|
|
594
|
-
{}.tap do |hash|
|
|
595
|
-
value.each do |k, v|
|
|
596
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
597
|
-
end
|
|
598
|
-
end
|
|
599
|
-
else # model
|
|
600
|
-
# models (e.g. Pet) or oneOf
|
|
601
|
-
klass = FastCommentsClient.const_get(type)
|
|
602
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
603
|
-
end
|
|
604
|
-
end
|
|
605
|
-
|
|
606
|
-
# Returns the string representation of the object
|
|
607
|
-
# @return [String] String presentation of the object
|
|
608
|
-
def to_s
|
|
609
|
-
to_hash.to_s
|
|
610
|
-
end
|
|
611
|
-
|
|
612
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
613
|
-
# @return [Hash] Returns the object in the form of hash
|
|
614
|
-
def to_body
|
|
615
|
-
to_hash
|
|
616
|
-
end
|
|
617
|
-
|
|
618
572
|
# Returns the object in the form of hash
|
|
619
573
|
# @return [Hash] Returns the object in the form of hash
|
|
620
574
|
def to_hash
|
|
@@ -631,24 +585,6 @@ module FastCommentsClient
|
|
|
631
585
|
hash
|
|
632
586
|
end
|
|
633
587
|
|
|
634
|
-
# Outputs non-array value in the form of hash
|
|
635
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
636
|
-
# @param [Object] value Any valid value
|
|
637
|
-
# @return [Hash] Returns the value in the form of hash
|
|
638
|
-
def _to_hash(value)
|
|
639
|
-
if value.is_a?(Array)
|
|
640
|
-
value.compact.map { |v| _to_hash(v) }
|
|
641
|
-
elsif value.is_a?(Hash)
|
|
642
|
-
{}.tap do |hash|
|
|
643
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
644
|
-
end
|
|
645
|
-
elsif value.respond_to? :to_hash
|
|
646
|
-
value.to_hash
|
|
647
|
-
else
|
|
648
|
-
value
|
|
649
|
-
end
|
|
650
|
-
end
|
|
651
|
-
|
|
652
588
|
end
|
|
653
589
|
|
|
654
590
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FastCommentsClient
|
|
17
|
-
class PublicCommentBase
|
|
17
|
+
class PublicCommentBase < ApiModelBase
|
|
18
18
|
attr_accessor :_id
|
|
19
19
|
|
|
20
20
|
attr_accessor :user_id
|
|
@@ -71,6 +71,8 @@ module FastCommentsClient
|
|
|
71
71
|
|
|
72
72
|
attr_accessor :edit_key
|
|
73
73
|
|
|
74
|
+
attr_accessor :approved
|
|
75
|
+
|
|
74
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
75
77
|
def self.attribute_map
|
|
76
78
|
{
|
|
@@ -101,7 +103,8 @@ module FastCommentsClient
|
|
|
101
103
|
:'anon_user_id' => :'anonUserId',
|
|
102
104
|
:'feedback_ids' => :'feedbackIds',
|
|
103
105
|
:'requires_verification' => :'requiresVerification',
|
|
104
|
-
:'edit_key' => :'editKey'
|
|
106
|
+
:'edit_key' => :'editKey',
|
|
107
|
+
:'approved' => :'approved'
|
|
105
108
|
}
|
|
106
109
|
end
|
|
107
110
|
|
|
@@ -145,7 +148,8 @@ module FastCommentsClient
|
|
|
145
148
|
:'anon_user_id' => :'String',
|
|
146
149
|
:'feedback_ids' => :'Array<String>',
|
|
147
150
|
:'requires_verification' => :'Boolean',
|
|
148
|
-
:'edit_key' => :'String'
|
|
151
|
+
:'edit_key' => :'String',
|
|
152
|
+
:'approved' => :'Boolean'
|
|
149
153
|
}
|
|
150
154
|
end
|
|
151
155
|
|
|
@@ -311,6 +315,10 @@ module FastCommentsClient
|
|
|
311
315
|
if attributes.key?(:'edit_key')
|
|
312
316
|
self.edit_key = attributes[:'edit_key']
|
|
313
317
|
end
|
|
318
|
+
|
|
319
|
+
if attributes.key?(:'approved')
|
|
320
|
+
self.approved = attributes[:'approved']
|
|
321
|
+
end
|
|
314
322
|
end
|
|
315
323
|
|
|
316
324
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -420,7 +428,8 @@ module FastCommentsClient
|
|
|
420
428
|
anon_user_id == o.anon_user_id &&
|
|
421
429
|
feedback_ids == o.feedback_ids &&
|
|
422
430
|
requires_verification == o.requires_verification &&
|
|
423
|
-
edit_key == o.edit_key
|
|
431
|
+
edit_key == o.edit_key &&
|
|
432
|
+
approved == o.approved
|
|
424
433
|
end
|
|
425
434
|
|
|
426
435
|
# @see the `==` method
|
|
@@ -432,7 +441,7 @@ module FastCommentsClient
|
|
|
432
441
|
# Calculates hash code according to all attributes.
|
|
433
442
|
# @return [Integer] Hash code
|
|
434
443
|
def hash
|
|
435
|
-
[_id, user_id, commenter_name, commenter_link, comment_html, parent_id, date, votes, votes_up, votes_down, verified, avatar_src, has_images, is_by_admin, is_by_moderator, is_pinned, is_locked, display_label, rating, badges, view_count, is_deleted, is_deleted_user, is_spam, anon_user_id, feedback_ids, requires_verification, edit_key].hash
|
|
444
|
+
[_id, user_id, commenter_name, commenter_link, comment_html, parent_id, date, votes, votes_up, votes_down, verified, avatar_src, has_images, is_by_admin, is_by_moderator, is_pinned, is_locked, display_label, rating, badges, view_count, is_deleted, is_deleted_user, is_spam, anon_user_id, feedback_ids, requires_verification, edit_key, approved].hash
|
|
436
445
|
end
|
|
437
446
|
|
|
438
447
|
# Builds the object from hash
|
|
@@ -458,61 +467,6 @@ module FastCommentsClient
|
|
|
458
467
|
new(transformed_hash)
|
|
459
468
|
end
|
|
460
469
|
|
|
461
|
-
# Deserializes the data based on type
|
|
462
|
-
# @param string type Data type
|
|
463
|
-
# @param string value Value to be deserialized
|
|
464
|
-
# @return [Object] Deserialized data
|
|
465
|
-
def self._deserialize(type, value)
|
|
466
|
-
case type.to_sym
|
|
467
|
-
when :Time
|
|
468
|
-
Time.parse(value)
|
|
469
|
-
when :Date
|
|
470
|
-
Date.parse(value)
|
|
471
|
-
when :String
|
|
472
|
-
value.to_s
|
|
473
|
-
when :Integer
|
|
474
|
-
value.to_i
|
|
475
|
-
when :Float
|
|
476
|
-
value.to_f
|
|
477
|
-
when :Boolean
|
|
478
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
479
|
-
true
|
|
480
|
-
else
|
|
481
|
-
false
|
|
482
|
-
end
|
|
483
|
-
when :Object
|
|
484
|
-
# generic object (usually a Hash), return directly
|
|
485
|
-
value
|
|
486
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
487
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
488
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
489
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
490
|
-
k_type = Regexp.last_match[:k_type]
|
|
491
|
-
v_type = Regexp.last_match[:v_type]
|
|
492
|
-
{}.tap do |hash|
|
|
493
|
-
value.each do |k, v|
|
|
494
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
495
|
-
end
|
|
496
|
-
end
|
|
497
|
-
else # model
|
|
498
|
-
# models (e.g. Pet) or oneOf
|
|
499
|
-
klass = FastCommentsClient.const_get(type)
|
|
500
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
501
|
-
end
|
|
502
|
-
end
|
|
503
|
-
|
|
504
|
-
# Returns the string representation of the object
|
|
505
|
-
# @return [String] String presentation of the object
|
|
506
|
-
def to_s
|
|
507
|
-
to_hash.to_s
|
|
508
|
-
end
|
|
509
|
-
|
|
510
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
511
|
-
# @return [Hash] Returns the object in the form of hash
|
|
512
|
-
def to_body
|
|
513
|
-
to_hash
|
|
514
|
-
end
|
|
515
|
-
|
|
516
470
|
# Returns the object in the form of hash
|
|
517
471
|
# @return [Hash] Returns the object in the form of hash
|
|
518
472
|
def to_hash
|
|
@@ -529,24 +483,6 @@ module FastCommentsClient
|
|
|
529
483
|
hash
|
|
530
484
|
end
|
|
531
485
|
|
|
532
|
-
# Outputs non-array value in the form of hash
|
|
533
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
534
|
-
# @param [Object] value Any valid value
|
|
535
|
-
# @return [Hash] Returns the value in the form of hash
|
|
536
|
-
def _to_hash(value)
|
|
537
|
-
if value.is_a?(Array)
|
|
538
|
-
value.compact.map { |v| _to_hash(v) }
|
|
539
|
-
elsif value.is_a?(Hash)
|
|
540
|
-
{}.tap do |hash|
|
|
541
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
542
|
-
end
|
|
543
|
-
elsif value.respond_to? :to_hash
|
|
544
|
-
value.to_hash
|
|
545
|
-
else
|
|
546
|
-
value
|
|
547
|
-
end
|
|
548
|
-
end
|
|
549
|
-
|
|
550
486
|
end
|
|
551
487
|
|
|
552
488
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FastCommentsClient
|
|
17
|
-
class PublicFeedPostsResponse
|
|
17
|
+
class PublicFeedPostsResponse < ApiModelBase
|
|
18
18
|
attr_accessor :status
|
|
19
19
|
|
|
20
20
|
attr_accessor :feed_posts
|
|
@@ -249,61 +249,6 @@ module FastCommentsClient
|
|
|
249
249
|
new(transformed_hash)
|
|
250
250
|
end
|
|
251
251
|
|
|
252
|
-
# Deserializes the data based on type
|
|
253
|
-
# @param string type Data type
|
|
254
|
-
# @param string value Value to be deserialized
|
|
255
|
-
# @return [Object] Deserialized data
|
|
256
|
-
def self._deserialize(type, value)
|
|
257
|
-
case type.to_sym
|
|
258
|
-
when :Time
|
|
259
|
-
Time.parse(value)
|
|
260
|
-
when :Date
|
|
261
|
-
Date.parse(value)
|
|
262
|
-
when :String
|
|
263
|
-
value.to_s
|
|
264
|
-
when :Integer
|
|
265
|
-
value.to_i
|
|
266
|
-
when :Float
|
|
267
|
-
value.to_f
|
|
268
|
-
when :Boolean
|
|
269
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
270
|
-
true
|
|
271
|
-
else
|
|
272
|
-
false
|
|
273
|
-
end
|
|
274
|
-
when :Object
|
|
275
|
-
# generic object (usually a Hash), return directly
|
|
276
|
-
value
|
|
277
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
278
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
279
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
280
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
281
|
-
k_type = Regexp.last_match[:k_type]
|
|
282
|
-
v_type = Regexp.last_match[:v_type]
|
|
283
|
-
{}.tap do |hash|
|
|
284
|
-
value.each do |k, v|
|
|
285
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
else # model
|
|
289
|
-
# models (e.g. Pet) or oneOf
|
|
290
|
-
klass = FastCommentsClient.const_get(type)
|
|
291
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
# Returns the string representation of the object
|
|
296
|
-
# @return [String] String presentation of the object
|
|
297
|
-
def to_s
|
|
298
|
-
to_hash.to_s
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
302
|
-
# @return [Hash] Returns the object in the form of hash
|
|
303
|
-
def to_body
|
|
304
|
-
to_hash
|
|
305
|
-
end
|
|
306
|
-
|
|
307
252
|
# Returns the object in the form of hash
|
|
308
253
|
# @return [Hash] Returns the object in the form of hash
|
|
309
254
|
def to_hash
|
|
@@ -320,24 +265,6 @@ module FastCommentsClient
|
|
|
320
265
|
hash
|
|
321
266
|
end
|
|
322
267
|
|
|
323
|
-
# Outputs non-array value in the form of hash
|
|
324
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
325
|
-
# @param [Object] value Any valid value
|
|
326
|
-
# @return [Hash] Returns the value in the form of hash
|
|
327
|
-
def _to_hash(value)
|
|
328
|
-
if value.is_a?(Array)
|
|
329
|
-
value.compact.map { |v| _to_hash(v) }
|
|
330
|
-
elsif value.is_a?(Hash)
|
|
331
|
-
{}.tap do |hash|
|
|
332
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
333
|
-
end
|
|
334
|
-
elsif value.respond_to? :to_hash
|
|
335
|
-
value.to_hash
|
|
336
|
-
else
|
|
337
|
-
value
|
|
338
|
-
end
|
|
339
|
-
end
|
|
340
|
-
|
|
341
268
|
end
|
|
342
269
|
|
|
343
270
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FastCommentsClient
|
|
17
|
-
class PutSSOUserAPIResponse
|
|
17
|
+
class PutSSOUserAPIResponse < ApiModelBase
|
|
18
18
|
attr_accessor :reason
|
|
19
19
|
|
|
20
20
|
attr_accessor :code
|
|
@@ -171,61 +171,6 @@ module FastCommentsClient
|
|
|
171
171
|
new(transformed_hash)
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
# Deserializes the data based on type
|
|
175
|
-
# @param string type Data type
|
|
176
|
-
# @param string value Value to be deserialized
|
|
177
|
-
# @return [Object] Deserialized data
|
|
178
|
-
def self._deserialize(type, value)
|
|
179
|
-
case type.to_sym
|
|
180
|
-
when :Time
|
|
181
|
-
Time.parse(value)
|
|
182
|
-
when :Date
|
|
183
|
-
Date.parse(value)
|
|
184
|
-
when :String
|
|
185
|
-
value.to_s
|
|
186
|
-
when :Integer
|
|
187
|
-
value.to_i
|
|
188
|
-
when :Float
|
|
189
|
-
value.to_f
|
|
190
|
-
when :Boolean
|
|
191
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
192
|
-
true
|
|
193
|
-
else
|
|
194
|
-
false
|
|
195
|
-
end
|
|
196
|
-
when :Object
|
|
197
|
-
# generic object (usually a Hash), return directly
|
|
198
|
-
value
|
|
199
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
200
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
201
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
202
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
203
|
-
k_type = Regexp.last_match[:k_type]
|
|
204
|
-
v_type = Regexp.last_match[:v_type]
|
|
205
|
-
{}.tap do |hash|
|
|
206
|
-
value.each do |k, v|
|
|
207
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
else # model
|
|
211
|
-
# models (e.g. Pet) or oneOf
|
|
212
|
-
klass = FastCommentsClient.const_get(type)
|
|
213
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
# Returns the string representation of the object
|
|
218
|
-
# @return [String] String presentation of the object
|
|
219
|
-
def to_s
|
|
220
|
-
to_hash.to_s
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
224
|
-
# @return [Hash] Returns the object in the form of hash
|
|
225
|
-
def to_body
|
|
226
|
-
to_hash
|
|
227
|
-
end
|
|
228
|
-
|
|
229
174
|
# Returns the object in the form of hash
|
|
230
175
|
# @return [Hash] Returns the object in the form of hash
|
|
231
176
|
def to_hash
|
|
@@ -242,24 +187,6 @@ module FastCommentsClient
|
|
|
242
187
|
hash
|
|
243
188
|
end
|
|
244
189
|
|
|
245
|
-
# Outputs non-array value in the form of hash
|
|
246
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
247
|
-
# @param [Object] value Any valid value
|
|
248
|
-
# @return [Hash] Returns the value in the form of hash
|
|
249
|
-
def _to_hash(value)
|
|
250
|
-
if value.is_a?(Array)
|
|
251
|
-
value.compact.map { |v| _to_hash(v) }
|
|
252
|
-
elsif value.is_a?(Hash)
|
|
253
|
-
{}.tap do |hash|
|
|
254
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
255
|
-
end
|
|
256
|
-
elsif value.respond_to? :to_hash
|
|
257
|
-
value.to_hash
|
|
258
|
-
else
|
|
259
|
-
value
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
190
|
end
|
|
264
191
|
|
|
265
192
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FastCommentsClient
|
|
17
|
-
class QueryPredicate
|
|
17
|
+
class QueryPredicate < ApiModelBase
|
|
18
18
|
attr_accessor :key
|
|
19
19
|
|
|
20
20
|
attr_accessor :value
|
|
@@ -219,61 +219,6 @@ module FastCommentsClient
|
|
|
219
219
|
new(transformed_hash)
|
|
220
220
|
end
|
|
221
221
|
|
|
222
|
-
# Deserializes the data based on type
|
|
223
|
-
# @param string type Data type
|
|
224
|
-
# @param string value Value to be deserialized
|
|
225
|
-
# @return [Object] Deserialized data
|
|
226
|
-
def self._deserialize(type, value)
|
|
227
|
-
case type.to_sym
|
|
228
|
-
when :Time
|
|
229
|
-
Time.parse(value)
|
|
230
|
-
when :Date
|
|
231
|
-
Date.parse(value)
|
|
232
|
-
when :String
|
|
233
|
-
value.to_s
|
|
234
|
-
when :Integer
|
|
235
|
-
value.to_i
|
|
236
|
-
when :Float
|
|
237
|
-
value.to_f
|
|
238
|
-
when :Boolean
|
|
239
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
240
|
-
true
|
|
241
|
-
else
|
|
242
|
-
false
|
|
243
|
-
end
|
|
244
|
-
when :Object
|
|
245
|
-
# generic object (usually a Hash), return directly
|
|
246
|
-
value
|
|
247
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
248
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
249
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
250
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
251
|
-
k_type = Regexp.last_match[:k_type]
|
|
252
|
-
v_type = Regexp.last_match[:v_type]
|
|
253
|
-
{}.tap do |hash|
|
|
254
|
-
value.each do |k, v|
|
|
255
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
256
|
-
end
|
|
257
|
-
end
|
|
258
|
-
else # model
|
|
259
|
-
# models (e.g. Pet) or oneOf
|
|
260
|
-
klass = FastCommentsClient.const_get(type)
|
|
261
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
# Returns the string representation of the object
|
|
266
|
-
# @return [String] String presentation of the object
|
|
267
|
-
def to_s
|
|
268
|
-
to_hash.to_s
|
|
269
|
-
end
|
|
270
|
-
|
|
271
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
272
|
-
# @return [Hash] Returns the object in the form of hash
|
|
273
|
-
def to_body
|
|
274
|
-
to_hash
|
|
275
|
-
end
|
|
276
|
-
|
|
277
222
|
# Returns the object in the form of hash
|
|
278
223
|
# @return [Hash] Returns the object in the form of hash
|
|
279
224
|
def to_hash
|
|
@@ -290,24 +235,6 @@ module FastCommentsClient
|
|
|
290
235
|
hash
|
|
291
236
|
end
|
|
292
237
|
|
|
293
|
-
# Outputs non-array value in the form of hash
|
|
294
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
295
|
-
# @param [Object] value Any valid value
|
|
296
|
-
# @return [Hash] Returns the value in the form of hash
|
|
297
|
-
def _to_hash(value)
|
|
298
|
-
if value.is_a?(Array)
|
|
299
|
-
value.compact.map { |v| _to_hash(v) }
|
|
300
|
-
elsif value.is_a?(Hash)
|
|
301
|
-
{}.tap do |hash|
|
|
302
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
303
|
-
end
|
|
304
|
-
elsif value.respond_to? :to_hash
|
|
305
|
-
value.to_hash
|
|
306
|
-
else
|
|
307
|
-
value
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
|
|
311
238
|
end
|
|
312
239
|
|
|
313
240
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -38,8 +38,7 @@ module FastCommentsClient
|
|
|
38
38
|
openapi_any_of.each do |klass|
|
|
39
39
|
begin
|
|
40
40
|
next if klass == :AnyType # "nullable: true"
|
|
41
|
-
|
|
42
|
-
return typed_data if typed_data
|
|
41
|
+
return find_and_cast_into_type(klass, data)
|
|
43
42
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
44
43
|
end
|
|
45
44
|
end
|