fastcomments 0.2.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 +0 -2
- data/client/README.md +1 -2
- 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 +1 -1
- 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 +2 -75
- 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 +2 -75
- 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 +2 -75
- 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 +1 -1
- 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 +2 -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 +2 -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 +2 -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 PubSubVote
|
|
17
|
+
class PubSubVote < ApiModelBase
|
|
18
18
|
attr_accessor :_id
|
|
19
19
|
|
|
20
20
|
attr_accessor :tenant_id
|
|
@@ -321,61 +321,6 @@ module FastCommentsClient
|
|
|
321
321
|
new(transformed_hash)
|
|
322
322
|
end
|
|
323
323
|
|
|
324
|
-
# Deserializes the data based on type
|
|
325
|
-
# @param string type Data type
|
|
326
|
-
# @param string value Value to be deserialized
|
|
327
|
-
# @return [Object] Deserialized data
|
|
328
|
-
def self._deserialize(type, value)
|
|
329
|
-
case type.to_sym
|
|
330
|
-
when :Time
|
|
331
|
-
Time.parse(value)
|
|
332
|
-
when :Date
|
|
333
|
-
Date.parse(value)
|
|
334
|
-
when :String
|
|
335
|
-
value.to_s
|
|
336
|
-
when :Integer
|
|
337
|
-
value.to_i
|
|
338
|
-
when :Float
|
|
339
|
-
value.to_f
|
|
340
|
-
when :Boolean
|
|
341
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
342
|
-
true
|
|
343
|
-
else
|
|
344
|
-
false
|
|
345
|
-
end
|
|
346
|
-
when :Object
|
|
347
|
-
# generic object (usually a Hash), return directly
|
|
348
|
-
value
|
|
349
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
350
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
351
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
352
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
353
|
-
k_type = Regexp.last_match[:k_type]
|
|
354
|
-
v_type = Regexp.last_match[:v_type]
|
|
355
|
-
{}.tap do |hash|
|
|
356
|
-
value.each do |k, v|
|
|
357
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
358
|
-
end
|
|
359
|
-
end
|
|
360
|
-
else # model
|
|
361
|
-
# models (e.g. Pet) or oneOf
|
|
362
|
-
klass = FastCommentsClient.const_get(type)
|
|
363
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
364
|
-
end
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
# Returns the string representation of the object
|
|
368
|
-
# @return [String] String presentation of the object
|
|
369
|
-
def to_s
|
|
370
|
-
to_hash.to_s
|
|
371
|
-
end
|
|
372
|
-
|
|
373
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
374
|
-
# @return [Hash] Returns the object in the form of hash
|
|
375
|
-
def to_body
|
|
376
|
-
to_hash
|
|
377
|
-
end
|
|
378
|
-
|
|
379
324
|
# Returns the object in the form of hash
|
|
380
325
|
# @return [Hash] Returns the object in the form of hash
|
|
381
326
|
def to_hash
|
|
@@ -392,24 +337,6 @@ module FastCommentsClient
|
|
|
392
337
|
hash
|
|
393
338
|
end
|
|
394
339
|
|
|
395
|
-
# Outputs non-array value in the form of hash
|
|
396
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
397
|
-
# @param [Object] value Any valid value
|
|
398
|
-
# @return [Hash] Returns the value in the form of hash
|
|
399
|
-
def _to_hash(value)
|
|
400
|
-
if value.is_a?(Array)
|
|
401
|
-
value.compact.map { |v| _to_hash(v) }
|
|
402
|
-
elsif value.is_a?(Hash)
|
|
403
|
-
{}.tap do |hash|
|
|
404
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
405
|
-
end
|
|
406
|
-
elsif value.respond_to? :to_hash
|
|
407
|
-
value.to_hash
|
|
408
|
-
else
|
|
409
|
-
value
|
|
410
|
-
end
|
|
411
|
-
end
|
|
412
|
-
|
|
413
340
|
end
|
|
414
341
|
|
|
415
342
|
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 PublicAPIDeleteCommentResponse
|
|
17
|
+
class PublicAPIDeleteCommentResponse < ApiModelBase
|
|
18
18
|
attr_accessor :comment
|
|
19
19
|
|
|
20
20
|
attr_accessor :hard_removed
|
|
@@ -200,61 +200,6 @@ module FastCommentsClient
|
|
|
200
200
|
new(transformed_hash)
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
# Deserializes the data based on type
|
|
204
|
-
# @param string type Data type
|
|
205
|
-
# @param string value Value to be deserialized
|
|
206
|
-
# @return [Object] Deserialized data
|
|
207
|
-
def self._deserialize(type, value)
|
|
208
|
-
case type.to_sym
|
|
209
|
-
when :Time
|
|
210
|
-
Time.parse(value)
|
|
211
|
-
when :Date
|
|
212
|
-
Date.parse(value)
|
|
213
|
-
when :String
|
|
214
|
-
value.to_s
|
|
215
|
-
when :Integer
|
|
216
|
-
value.to_i
|
|
217
|
-
when :Float
|
|
218
|
-
value.to_f
|
|
219
|
-
when :Boolean
|
|
220
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
221
|
-
true
|
|
222
|
-
else
|
|
223
|
-
false
|
|
224
|
-
end
|
|
225
|
-
when :Object
|
|
226
|
-
# generic object (usually a Hash), return directly
|
|
227
|
-
value
|
|
228
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
229
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
230
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
231
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
232
|
-
k_type = Regexp.last_match[:k_type]
|
|
233
|
-
v_type = Regexp.last_match[:v_type]
|
|
234
|
-
{}.tap do |hash|
|
|
235
|
-
value.each do |k, v|
|
|
236
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
237
|
-
end
|
|
238
|
-
end
|
|
239
|
-
else # model
|
|
240
|
-
# models (e.g. Pet) or oneOf
|
|
241
|
-
klass = FastCommentsClient.const_get(type)
|
|
242
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
243
|
-
end
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# Returns the string representation of the object
|
|
247
|
-
# @return [String] String presentation of the object
|
|
248
|
-
def to_s
|
|
249
|
-
to_hash.to_s
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
253
|
-
# @return [Hash] Returns the object in the form of hash
|
|
254
|
-
def to_body
|
|
255
|
-
to_hash
|
|
256
|
-
end
|
|
257
|
-
|
|
258
203
|
# Returns the object in the form of hash
|
|
259
204
|
# @return [Hash] Returns the object in the form of hash
|
|
260
205
|
def to_hash
|
|
@@ -271,24 +216,6 @@ module FastCommentsClient
|
|
|
271
216
|
hash
|
|
272
217
|
end
|
|
273
218
|
|
|
274
|
-
# Outputs non-array value in the form of hash
|
|
275
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
276
|
-
# @param [Object] value Any valid value
|
|
277
|
-
# @return [Hash] Returns the value in the form of hash
|
|
278
|
-
def _to_hash(value)
|
|
279
|
-
if value.is_a?(Array)
|
|
280
|
-
value.compact.map { |v| _to_hash(v) }
|
|
281
|
-
elsif value.is_a?(Hash)
|
|
282
|
-
{}.tap do |hash|
|
|
283
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
284
|
-
end
|
|
285
|
-
elsif value.respond_to? :to_hash
|
|
286
|
-
value.to_hash
|
|
287
|
-
else
|
|
288
|
-
value
|
|
289
|
-
end
|
|
290
|
-
end
|
|
291
|
-
|
|
292
219
|
end
|
|
293
220
|
|
|
294
221
|
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 PublicAPIGetCommentTextResponse
|
|
17
|
+
class PublicAPIGetCommentTextResponse < ApiModelBase
|
|
18
18
|
attr_accessor :status
|
|
19
19
|
|
|
20
20
|
attr_accessor :comment_text
|
|
@@ -217,61 +217,6 @@ module FastCommentsClient
|
|
|
217
217
|
new(transformed_hash)
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
-
# Deserializes the data based on type
|
|
221
|
-
# @param string type Data type
|
|
222
|
-
# @param string value Value to be deserialized
|
|
223
|
-
# @return [Object] Deserialized data
|
|
224
|
-
def self._deserialize(type, value)
|
|
225
|
-
case type.to_sym
|
|
226
|
-
when :Time
|
|
227
|
-
Time.parse(value)
|
|
228
|
-
when :Date
|
|
229
|
-
Date.parse(value)
|
|
230
|
-
when :String
|
|
231
|
-
value.to_s
|
|
232
|
-
when :Integer
|
|
233
|
-
value.to_i
|
|
234
|
-
when :Float
|
|
235
|
-
value.to_f
|
|
236
|
-
when :Boolean
|
|
237
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
238
|
-
true
|
|
239
|
-
else
|
|
240
|
-
false
|
|
241
|
-
end
|
|
242
|
-
when :Object
|
|
243
|
-
# generic object (usually a Hash), return directly
|
|
244
|
-
value
|
|
245
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
246
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
247
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
248
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
249
|
-
k_type = Regexp.last_match[:k_type]
|
|
250
|
-
v_type = Regexp.last_match[:v_type]
|
|
251
|
-
{}.tap do |hash|
|
|
252
|
-
value.each do |k, v|
|
|
253
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
else # model
|
|
257
|
-
# models (e.g. Pet) or oneOf
|
|
258
|
-
klass = FastCommentsClient.const_get(type)
|
|
259
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
# Returns the string representation of the object
|
|
264
|
-
# @return [String] String presentation of the object
|
|
265
|
-
def to_s
|
|
266
|
-
to_hash.to_s
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
270
|
-
# @return [Hash] Returns the object in the form of hash
|
|
271
|
-
def to_body
|
|
272
|
-
to_hash
|
|
273
|
-
end
|
|
274
|
-
|
|
275
220
|
# Returns the object in the form of hash
|
|
276
221
|
# @return [Hash] Returns the object in the form of hash
|
|
277
222
|
def to_hash
|
|
@@ -288,24 +233,6 @@ module FastCommentsClient
|
|
|
288
233
|
hash
|
|
289
234
|
end
|
|
290
235
|
|
|
291
|
-
# Outputs non-array value in the form of hash
|
|
292
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
293
|
-
# @param [Object] value Any valid value
|
|
294
|
-
# @return [Hash] Returns the value in the form of hash
|
|
295
|
-
def _to_hash(value)
|
|
296
|
-
if value.is_a?(Array)
|
|
297
|
-
value.compact.map { |v| _to_hash(v) }
|
|
298
|
-
elsif value.is_a?(Hash)
|
|
299
|
-
{}.tap do |hash|
|
|
300
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
301
|
-
end
|
|
302
|
-
elsif value.respond_to? :to_hash
|
|
303
|
-
value.to_hash
|
|
304
|
-
else
|
|
305
|
-
value
|
|
306
|
-
end
|
|
307
|
-
end
|
|
308
|
-
|
|
309
236
|
end
|
|
310
237
|
|
|
311
238
|
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 PublicAPISetCommentTextResponse
|
|
17
|
+
class PublicAPISetCommentTextResponse < ApiModelBase
|
|
18
18
|
attr_accessor :comment
|
|
19
19
|
|
|
20
20
|
attr_accessor :status
|
|
@@ -191,61 +191,6 @@ module FastCommentsClient
|
|
|
191
191
|
new(transformed_hash)
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
# Deserializes the data based on type
|
|
195
|
-
# @param string type Data type
|
|
196
|
-
# @param string value Value to be deserialized
|
|
197
|
-
# @return [Object] Deserialized data
|
|
198
|
-
def self._deserialize(type, value)
|
|
199
|
-
case type.to_sym
|
|
200
|
-
when :Time
|
|
201
|
-
Time.parse(value)
|
|
202
|
-
when :Date
|
|
203
|
-
Date.parse(value)
|
|
204
|
-
when :String
|
|
205
|
-
value.to_s
|
|
206
|
-
when :Integer
|
|
207
|
-
value.to_i
|
|
208
|
-
when :Float
|
|
209
|
-
value.to_f
|
|
210
|
-
when :Boolean
|
|
211
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
212
|
-
true
|
|
213
|
-
else
|
|
214
|
-
false
|
|
215
|
-
end
|
|
216
|
-
when :Object
|
|
217
|
-
# generic object (usually a Hash), return directly
|
|
218
|
-
value
|
|
219
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
220
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
221
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
222
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
223
|
-
k_type = Regexp.last_match[:k_type]
|
|
224
|
-
v_type = Regexp.last_match[:v_type]
|
|
225
|
-
{}.tap do |hash|
|
|
226
|
-
value.each do |k, v|
|
|
227
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
else # model
|
|
231
|
-
# models (e.g. Pet) or oneOf
|
|
232
|
-
klass = FastCommentsClient.const_get(type)
|
|
233
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
# Returns the string representation of the object
|
|
238
|
-
# @return [String] String presentation of the object
|
|
239
|
-
def to_s
|
|
240
|
-
to_hash.to_s
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
244
|
-
# @return [Hash] Returns the object in the form of hash
|
|
245
|
-
def to_body
|
|
246
|
-
to_hash
|
|
247
|
-
end
|
|
248
|
-
|
|
249
194
|
# Returns the object in the form of hash
|
|
250
195
|
# @return [Hash] Returns the object in the form of hash
|
|
251
196
|
def to_hash
|
|
@@ -262,24 +207,6 @@ module FastCommentsClient
|
|
|
262
207
|
hash
|
|
263
208
|
end
|
|
264
209
|
|
|
265
|
-
# Outputs non-array value in the form of hash
|
|
266
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
267
|
-
# @param [Object] value Any valid value
|
|
268
|
-
# @return [Hash] Returns the value in the form of hash
|
|
269
|
-
def _to_hash(value)
|
|
270
|
-
if value.is_a?(Array)
|
|
271
|
-
value.compact.map { |v| _to_hash(v) }
|
|
272
|
-
elsif value.is_a?(Hash)
|
|
273
|
-
{}.tap do |hash|
|
|
274
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
275
|
-
end
|
|
276
|
-
elsif value.respond_to? :to_hash
|
|
277
|
-
value.to_hash
|
|
278
|
-
else
|
|
279
|
-
value
|
|
280
|
-
end
|
|
281
|
-
end
|
|
282
|
-
|
|
283
210
|
end
|
|
284
211
|
|
|
285
212
|
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 PublicBlockFromCommentParams
|
|
17
|
+
class PublicBlockFromCommentParams < ApiModelBase
|
|
18
18
|
# A list of comment ids to check if are blocked after performing the update.
|
|
19
19
|
attr_accessor :comment_ids
|
|
20
20
|
|
|
@@ -132,61 +132,6 @@ module FastCommentsClient
|
|
|
132
132
|
new(transformed_hash)
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
# Deserializes the data based on type
|
|
136
|
-
# @param string type Data type
|
|
137
|
-
# @param string value Value to be deserialized
|
|
138
|
-
# @return [Object] Deserialized data
|
|
139
|
-
def self._deserialize(type, value)
|
|
140
|
-
case type.to_sym
|
|
141
|
-
when :Time
|
|
142
|
-
Time.parse(value)
|
|
143
|
-
when :Date
|
|
144
|
-
Date.parse(value)
|
|
145
|
-
when :String
|
|
146
|
-
value.to_s
|
|
147
|
-
when :Integer
|
|
148
|
-
value.to_i
|
|
149
|
-
when :Float
|
|
150
|
-
value.to_f
|
|
151
|
-
when :Boolean
|
|
152
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
153
|
-
true
|
|
154
|
-
else
|
|
155
|
-
false
|
|
156
|
-
end
|
|
157
|
-
when :Object
|
|
158
|
-
# generic object (usually a Hash), return directly
|
|
159
|
-
value
|
|
160
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
161
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
162
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
163
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
164
|
-
k_type = Regexp.last_match[:k_type]
|
|
165
|
-
v_type = Regexp.last_match[:v_type]
|
|
166
|
-
{}.tap do |hash|
|
|
167
|
-
value.each do |k, v|
|
|
168
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
else # model
|
|
172
|
-
# models (e.g. Pet) or oneOf
|
|
173
|
-
klass = FastCommentsClient.const_get(type)
|
|
174
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
# Returns the string representation of the object
|
|
179
|
-
# @return [String] String presentation of the object
|
|
180
|
-
def to_s
|
|
181
|
-
to_hash.to_s
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
-
# @return [Hash] Returns the object in the form of hash
|
|
186
|
-
def to_body
|
|
187
|
-
to_hash
|
|
188
|
-
end
|
|
189
|
-
|
|
190
135
|
# Returns the object in the form of hash
|
|
191
136
|
# @return [Hash] Returns the object in the form of hash
|
|
192
137
|
def to_hash
|
|
@@ -203,24 +148,6 @@ module FastCommentsClient
|
|
|
203
148
|
hash
|
|
204
149
|
end
|
|
205
150
|
|
|
206
|
-
# Outputs non-array value in the form of hash
|
|
207
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
208
|
-
# @param [Object] value Any valid value
|
|
209
|
-
# @return [Hash] Returns the value in the form of hash
|
|
210
|
-
def _to_hash(value)
|
|
211
|
-
if value.is_a?(Array)
|
|
212
|
-
value.compact.map { |v| _to_hash(v) }
|
|
213
|
-
elsif value.is_a?(Hash)
|
|
214
|
-
{}.tap do |hash|
|
|
215
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
216
|
-
end
|
|
217
|
-
elsif value.respond_to? :to_hash
|
|
218
|
-
value.to_hash
|
|
219
|
-
else
|
|
220
|
-
value
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
|
|
224
151
|
end
|
|
225
152
|
|
|
226
153
|
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 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
|