Skip to content

Releases: FastComments/fastcomments-php

Release 1.2.0

09 Jan 04:19
e2e7861

Choose a tag to compare

Fixes vote response objects to be properly typed.

Release 1.1.0

08 Jan 17:19
6bf2c98

Choose a tag to compare

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 1.0.0

21 Nov 15:32
6083b6d

Choose a tag to compare

  • BREAKING: Regenerated SDK models and API surface; this release contains multiple breaking changes requiring consumers to update references.
  • BREAKING: Replaced legacy ImportedAPIStatus enums with a unified APIStatus schema across responses and errors (many models updated to use APIStatus).
  • BREAKING: Replaced many generated Pick.../Imported... models with clearer names:
    • PickTenantAuditLogTenantAuditLogKeys -> APIAuditLog
    • PickFCommentAPICommentFieldsKeys -> APICommentBase
    • PickFCommentAPICommentFieldsKeysMeta -> CommentLogEntry
    • PickFCommentPublicCommentFieldsKeys -> PublicCommentBase
    • PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId -> DeletedCommentResultComment
    • PickFCommentApprovedOrCommentHTML -> SetCommentTextResult
    • PickOmitFCommentDatePublicCommentPubSubFieldsKeys -> PubSubCommentBase
    • PickAPICommentUpdatableCommentFields -> UpdatableCommentParams
    • ImportedAPIStatusFAILED -> RepeatCommentCheckIgnoredReason (enum values changed)
    • ImportedAPIStatusSUCCESS -> RepeatCommentHandlingAction (enum values changed)
    • VoteDeleteResponseStatus model removed and replaced by APIStatus usage.
  • NEW: Added new models for comment logging and audit functionality:
    • CommentLogData
    • CommentLogEntry
    • CommentLogType (enum)
    • APIComment (full API-facing comment model)
    • APIAuditLog
  • CHANGED: Public and API comment models reworked and split into base/complete shapes. Many properties were reordered, had nullability changed, or moved between models (e.g. comment, commentHTML, anon_user_id, view_count, flag_count, rating, approved, is_spam, is_deleted, etc.). PublicComment and PubSubComment schemas updated (fields moved/renamed, new nullable handling).
  • CHANGED: API responses that previously returned PickFComment... now return APIComment or APIComment[] (GetComment, GetComments, APIGetCommentResponse, APIGetCommentsResponse, GetComments200Response, GetComments200Response etc.).
  • CHANGED: DefaultApi.updateComment signature changed — parameter renamed and typed to UpdatableCommentParams (previously PickAPICommentUpdatableCommentFields). All corresponding client method signatures, requests, async methods and request body handling updated.
  • NEW: Added UpdatableCommentParams model (replacing the previous PickAPICommentUpdatableCommentFields) and updated its properties and nullability handling.
  • CHANGED: Set comment text endpoints now return SetCommentTextResult (replacing prior PickFCommentApprovedOrCommentHTML shape) and related models/response types updated accordingly.
  • CHANGED: DeletedCommentResultComment introduced and used by delete-related responses in place of prior pick-shaped result.
  • CHANGED: PubSubComment and PubSubCommentBase reworked: many fields reordered, new nullable handling, new properties added/moved (date, url, domain, anon_user_id, view_count, flag_count, reviewed, expire_at, has_code, approved, locale, is_banned_user, etc.).
  • CHANGED: FComment.logs now typed as array of CommentLogEntry (was generic array[] before).
  • CHANGED: CustomConfigParameters: added new boolean field no_new_root_comments.
  • CHANGED: PatchPageAPIResponse: added comments_updated int property.
  • CHANGED: APICreateUserBadgeResponse and CreateUserBadge200Response: added optional notes:string[] property.
  • CHANGED: Many models switched properties from specific Pick... meta types to canonical meta types (meta fields now reference FCommentMeta rather than generated Pick meta types).
  • CHANGED: Numerous getters/setters updated to reflect renamed properties and new nullability behavior (openAPINullables handling logic added across many models).
  • CHANGED: openapi.json updated to reflect schema renames, new models, nullable flags, enums, and APIStatus replacements; multiple component schema definitions reworked for new shapes.
  • REMOVED: fastcomments/sso dependency removed from composer.json require section.
  • CHANGED: phpunit.xml.dist testsuite updated to run ./test/Api and ./test/Model (tests reorganized/renamed accordingly).
  • TESTS: Added and renamed many tests to match model renames (new tests added for APIComment, CommentLogData, CommentLogEntry, CommentLogType, APIAuditLog, APICommentBase, PubSubCommentBase, PublicCommentBase, UpdatableCommentParams, SetCommentTextResult, DeletedCommentResultComment, RepeatComment* enums, etc.). Many existing tests were renamed to match model file renames.

v0.0.5

31 Oct 19:56
f3a9801

Choose a tag to compare

What's Changed

  • Fixing numeric types, removing "hidden" api by @winrid in #3

Full Changelog: v0.0.4...v0.0.5

v0.0.4

30 Oct 22:52
f601da2

Choose a tag to compare

What's Changed

  • Add Page, SSO Users, badges, Subscriptions, and more, APIS. Fixes server configuration. by @winrid in #2

Full Changelog: v0.0.3...v0.0.4

v0.0.3

09 Apr 19:55

Choose a tag to compare

Adds createFeedPostPublic, createFeedPostPublic, createFeedPostPublic, uploadImage.

Full Changelog: v0.0.2...v0.0.3

v0.0.2

28 Mar 16:50

Choose a tag to compare

Aggregation apis added.

v0.0.1

27 Mar 04:28

Choose a tag to compare

Initial release! Includes these APIs:

Class Method HTTP request Description
DefaultApi addDomainConfig POST /api/v1/domain-configs
DefaultApi aggregate POST /api/v1/aggregate
DefaultApi blockUserFromComment POST /api/v1/comments/{id}/block
DefaultApi createFeedPost POST /api/v1/feed-posts
DefaultApi deleteComment DELETE /api/v1/comments/{id}
DefaultApi deleteDomainConfig DELETE /api/v1/domain-configs/{domain}
DefaultApi flagComment POST /api/v1/comments/{id}/flag
DefaultApi getAuditLogs GET /api/v1/audit-logs
DefaultApi getComment GET /api/v1/comments/{id}
DefaultApi getComments GET /api/v1/comments
DefaultApi getDomainConfig GET /api/v1/domain-configs/{domain}
DefaultApi getDomainConfigs GET /api/v1/domain-configs
DefaultApi getFeedPosts GET /api/v1/feed-posts
DefaultApi patchDomainConfig PATCH /api/v1/domain-configs/{domainToUpdate}
DefaultApi putDomainConfig PUT /api/v1/domain-configs/{domainToUpdate}
DefaultApi saveComment POST /api/v1/comments
DefaultApi unBlockUserFromComment POST /api/v1/comments/{id}/un-block
DefaultApi unFlagComment POST /api/v1/comments/{id}/un-flag
DefaultApi updateComment PATCH /api/v1/comments/{id}
DefaultApi updateFeedPost PATCH /api/v1/feed-posts/{id}
PublicApi blockFromCommentPublic POST /block-from-comment/{commentId}
PublicApi checkedCommentsForBlocked GET /check-blocked-comments
PublicApi createCommentPublic POST /comments/{tenantId}
PublicApi deleteCommentPublic DELETE /comments/{tenantId}/{commentId}
PublicApi deleteCommentVote DELETE /comments/{tenantId}/{commentId}/vote/{voteId}
PublicApi flagCommentPublic POST /flag-comment/{commentId}
PublicApi getCommentText GET /comments/{tenantId}/{commentId}/text
PublicApi getCommentVoteUserNames GET /comments/{tenantId}/{commentId}/votes
PublicApi getCommentsPublic GET /comments/{tenantId}
PublicApi getEventLog GET /event-log/{tenantId}
PublicApi getFeedPostsPublic GET /feed-posts/{tenantId}
PublicApi getGlobalEventLog GET /event-log/global/{tenantId}
PublicApi getUserNotificationCount GET /user-notifications/get-count
PublicApi getUserNotifications GET /user-notifications
PublicApi getUserPresenceStatuses GET /user-presence-status
PublicApi lockComment POST /comments/{tenantId}/{commentId}/lock
PublicApi pinComment POST /comments/{tenantId}/{commentId}/pin
PublicApi resetUserNotificationCount POST /user-notifications/reset-count
PublicApi resetUserNotifications POST /user-notifications/reset
PublicApi setCommentText POST /comments/{tenantId}/{commentId}/update-text
PublicApi unBlockCommentPublic DELETE /block-from-comment/{commentId}
PublicApi unLockComment POST /comments/{tenantId}/{commentId}/unlock
PublicApi unPinComment POST /comments/{tenantId}/{commentId}/unpin
PublicApi updateUserNotificationCommentSubscriptionStatus POST /user-notifications/{notificationId}/mark-opted/{optedInOrOut}
PublicApi updateUserNotificationPageSubscriptionStatus POST /user-notifications/set-subscription-state/{subscribedOrUnsubscribed}
PublicApi updateUserNotificationStatus POST /user-notifications/{notificationId}/mark/{newStatus}
PublicApi voteComment POST /comments/{tenantId}/{commentId}/vote