Releases: FastComments/fastcomments-ruby
Releases · FastComments/fastcomments-ruby
1.2.1
What's New
Tickets API
- Added full support for the Tickets system: list tickets, get ticket details, create tickets, and change ticket state via the API
- New models:
APITicket,APITicketDetail,APITicketFile, along with corresponding request/response types
Subscription Updates
- Added
UpdateSubscriptionendpoint (PATCH /api/v1/subscriptions/{id}) to update existing subscriptions - New
notificationFrequencyfield on subscriptions for controlling notification delivery cadence
User Search Improvements
- Added sectioned user search support with new
searchSectionparameter (fast,site) - New models:
UserSearchSection,UserSearchSectionResult,SearchUsersSectionedResponse - New
MentionAutoCompleteModeenum for configuring mention autocomplete behavior
Terms of Service Support
- New
TOSConfigmodel for configuring terms of service per tenant - Added
tosfield toCustomConfigParametersand comment creation params - Added
tosAcceptedAttracking on user badge progress - Added
needsTOSflag toUserSessionInfo
Ticketing Configuration
- New config parameters:
ticketBaseUrl,ticketKBSearchEndpoint,ticketFileUploadsEnabled,ticketMaxFileSize,ticketAutoAssignUserIds
Improvements
User Model
- Added
backupEmailandpendingBackupEmailfields - Added
isSiteAdminrole flag - Added
notificationFrequencyandadminNotificationFrequencycontrols - Added
lastTenantNotificationSentDateandlastReplyNotificationSentDatetracking - Added
isEmailSuppressedflag (also added toModeratormodel)
Widget Configuration
- Added
disableProfileCommentsanddisableProfileDirectMessagesoptions - Added
widgetQuestionShowBreakdownoption for question/poll widgets - Added
mentionAutoCompleteModetoCustomConfigParameters
Header State
- Added
HeaderAccountNotificationmodel with support for localized messages, severity levels, and links - Added
accountNotificationsarray toHeaderState
Tenant Packages
- Added
maxCustomCollectionSizefield - Added
enableCanvasLTIflag for Canvas LMS integration
Comments
- Added
wpIdto comment metadata (APICommentBaseMeta,FCommentMeta) - Added
urlIdfield toUserBadge
Bug Fixes
Integer Enum Types
- Fixed numeric enum types (
CommentApprovalStatus,CommentThreadDeletionMode,CommenterNameFormats,SortStyle,NotificationType,ImportedSiteType, and others) to useintegerinstead ofnumberin the OpenAPI spec, ensuring proper type generation in the SDK
Release 1.2.0
Fixes vote response objects to be properly typed.
Release 1.0.0
Adds: email-templates, hash-tags, moderators, notification-count, notifications, pending-webhook-events, question-config, question-results, tenant-daily-usage, tenant-packages, tenants, tenant-users, users, votes
Release 0.3.0
- Add ApiModelBase (lib/fastcomments-client/api_model_base.rb) that centralizes deserialization and hash/serialization helpers (to_s, to_body, _to_hash, _deserialize behaviour).
- Refactor models to inherit from ApiModelBase (many model classes updated to < ApiModelBase) and remove duplicated implementations of _deserialize, to_s, to_body and _to_hash from individual model files to DRY up the codebase.
- Simplify anyOf handling in multiple generated anyOf wrapper classes: return find_and_cast_into_type(...) directly instead of assigning temporary typed_data variable.
- Change VoteResponse.status representation: replace the generated VoteResponseStatus model/anyOf with a plain String type; add enum validation for allowed status values (success, failed, pending-verification). Remove the VoteResponseStatus model and its docs.
- Add approved boolean property to PublicComment and PublicCommentBase (openapi.json and generated docs/models updated); wire attribute into attribute_map, openapi_types, initializer, equality/hash and docs.
- Require the new ApiModelBase from the main library file (lib/fastcomments-client.rb) and stop requiring removed VoteResponseStatus model.
- Update many model files to reflect the generator changes (generator version header updates, inheritance change, small internal refactors) — e.g., AddDomainConfig200ResponseAnyOf, AddDomainConfigParams, AddPageAPIResponse, Aggregation* models, API* models, Block*/Unblock*, Comment*, FeedPost*, Public* models and many others.
- Update generated specs: comment out auto-instantiation helper lines and update generator version notes in many spec files; various model spec files updated to reflect generator changes and removed generated helper objects.
- Remove VoteResponseStatus documentation file (docs/VoteResponseStatus.md) and update README/docs table of models to remove that entry.
- Minor codegen cleanups throughout (small style and simplification changes in many generated files: e.g. inlined returns, header generator version updates).
v0.2.0
- Fixes endpoints that use anyOf.
- Adds "notes" in add user badge response.
- Adds "no_new_root_comments" to custom configs.
- Adds "comments_updated" to page API.
Full Changelog: https://github.com/FastComments/fastcomments-ruby/commits/v0.2.0