@wix/auto_sdk_comments_comments 1.0.32 → 1.0.34

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +8 -25
  2. package/build/cjs/index.js +90 -8
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +52 -6
  5. package/build/cjs/index.typings.js +69 -5
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +37 -3
  8. package/build/cjs/meta.js +1 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +8 -25
  11. package/build/es/index.mjs +90 -8
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +52 -6
  14. package/build/es/index.typings.mjs +68 -5
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +37 -3
  17. package/build/es/meta.mjs +1 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +8 -25
  20. package/build/internal/cjs/index.js +90 -8
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +52 -6
  23. package/build/internal/cjs/index.typings.js +69 -5
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +37 -3
  26. package/build/internal/cjs/meta.js +1 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +8 -25
  29. package/build/internal/es/index.mjs +90 -8
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +52 -6
  32. package/build/internal/es/index.typings.mjs +68 -5
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +37 -3
  35. package/build/internal/es/meta.mjs +1 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { Comment, CreateCommentApplicationErrors, UpdateComment, UpdateCommentApplicationErrors, ModerateDraftContentOptions, ModerateDraftContentResponse, CommentsQueryBuilder, MarkCommentResponse, UnmarkCommentResponse, HideCommentResponse, PublishCommentResponse, CountCommentsOptions, CountCommentsResponse, CountCommentsApplicationErrors, ListCommentsByResourceOptions, ListCommentsByResourceResponse, GetCommentThreadOptions, GetCommentThreadResponse, BulkPublishCommentOptions, BulkPublishCommentResponse, BulkHideCommentOptions, BulkHideCommentResponse, BulkDeleteCommentOptions, BulkDeleteCommentResponse, BulkModerateDraftContentOptions, BulkModerateDraftContentResponse, BulkMoveCommentByFilterOptions, BulkMoveCommentByFilterResponse, CommentContentChangedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentUnmarkedEnvelope, CommentCreatedEnvelope, CommentDeletedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUpdatedEnvelope } from './index.typings.js';
3
- export { Action, ActionEvent, ActionWithLiterals, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, Attachment, AttachmentMediaOneOf, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkDeleteCommentRequest, BulkHideCommentRequest, BulkModerateDraftContentRequest, BulkMoveCommentByFilterRequest, BulkPublishCommentRequest, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CommentAuthor, CommentAuthorIdentityOneOf, CommentContent, CommentContentChanged, CommentDeleted, CommentHidden, CommentMarked, CommentModerated, CommentMoved, CommentPublished, CommentReactionSummary, CommentSort, CommentUnmarked, CommentsQueryResult, ContactDetails, ContentAuthor, ContentAuthorAuthorOneOf, CountCommentsRequest, CreateCommentRequest, CreateCommentResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteByFilterOperation, DeleteByIdsOperation, DeleteCommentRequest, DeleteCommentResponse, Design, Destination, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetCommentRequest, GetCommentResponse, GetCommentThreadRequest, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, HideCommentRequest, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InternalDocument, InternalDocumentUpdateByFilterOperation, InternalDocumentUpdateOperation, InternalUpdateExistingOperation, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListCommentsByResourceCursorPaging, ListCommentsByResourceRequest, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, MarkCommentRequest, Media, Mention, MentionData, MentionIdentityOneOf, MessageEnvelope, Metadata, ModerateDraftContentRequest, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, Order, OrderWithLiterals, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, ParentComment, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, PublishCommentRequest, QueryCommentsRequest, QueryCommentsResponse, Rel, RepliesListResponse, ReplySort, ReplySortOrder, ReplySortOrderWithLiterals, Resizing, ResizingWithLiterals, ResourceCommentCountChanged, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, UnmarkCommentRequest, UpdateCommentRequest, UpdateCommentResponse, UpdateInternalDocumentsEvent, UpdateInternalDocumentsEventOperationOneOf, VersionedDeleteByIdsOperation, VersionedDocumentId, VersionedDocumentUpdateOperation, VersioningMode, VersioningModeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, VoteSummary, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.js';
2
+ import { Comment, CreateCommentApplicationErrors, UpdateComment, UpdateCommentApplicationErrors, ModerateDraftContentOptions, ModerateDraftContentResponse, MarkCommentResponse, UnmarkCommentResponse, HideCommentResponse, PublishCommentResponse, CountCommentsOptions, CountCommentsResponse, CountCommentsApplicationErrors, ListCommentsByResourceOptions, ListCommentsByResourceResponse, GetCommentThreadOptions, GetCommentThreadResponse, BulkPublishCommentOptions, BulkPublishCommentResponse, BulkHideCommentOptions, BulkHideCommentResponse, BulkDeleteCommentOptions, BulkDeleteCommentResponse, BulkModerateDraftContentOptions, BulkModerateDraftContentResponse, BulkMoveCommentByFilterOptions, BulkMoveCommentByFilterResponse, CommentContentChangedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentUnmarkedEnvelope, CommentCreatedEnvelope, CommentDeletedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUpdatedEnvelope, CursorQuery, QueryCommentsOptions, typedQueryComments, CommentsQueryBuilder } from './index.typings.js';
3
+ export { Action, ActionEvent, ActionWithLiterals, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, Attachment, AttachmentMediaOneOf, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulkDeleteCommentRequest, BulkHideCommentRequest, BulkModerateDraftContentRequest, BulkMoveCommentByFilterRequest, BulkPublishCommentRequest, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CommentAuthor, CommentAuthorIdentityOneOf, CommentContent, CommentContentChanged, CommentDeleted, CommentHidden, CommentMarked, CommentModerated, CommentMoved, CommentPublished, CommentReactionSummary, CommentSort, CommentUnmarked, CommentsQueryResult, ContactDetails, ContentAuthor, ContentAuthorAuthorOneOf, CountCommentsRequest, CreateCommentRequest, CreateCommentResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteByFilterOperation, DeleteByIdsOperation, DeleteCommentRequest, DeleteCommentResponse, Design, Destination, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, FileData, FileSource, FileSourceDataOneOf, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetCommentRequest, GetCommentResponse, GetCommentThreadRequest, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, HideCommentRequest, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InternalDocument, InternalDocumentUpdateByFilterOperation, InternalDocumentUpdateOperation, InternalUpdateExistingOperation, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListCommentsByResourceCursorPaging, ListCommentsByResourceRequest, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, MarkCommentRequest, Media, Mention, MentionData, MentionIdentityOneOf, MessageEnvelope, Metadata, ModerateDraftContentRequest, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, Order, OrderWithLiterals, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, ParentComment, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, PublishCommentRequest, QueryCommentsRequest, QueryCommentsResponse, Rel, RepliesListResponse, ReplySort, ReplySortOrder, ReplySortOrderWithLiterals, Resizing, ResizingWithLiterals, ResourceCommentCountChanged, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, UnmarkCommentRequest, UpdateCommentRequest, UpdateCommentResponse, UpdateInternalDocumentsEvent, UpdateInternalDocumentsEventOperationOneOf, VersionedDeleteByIdsOperation, VersionedDocumentId, VersionedDocumentUpdateOperation, VersioningMode, VersioningModeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, VoteSummary, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function createComment$1(httpClient: HttpClient): CreateCommentSignature;
6
6
  interface CreateCommentSignature {
@@ -72,27 +72,6 @@ interface ModerateDraftContentSignature {
72
72
  */
73
73
  (commentId: string, revision: string, options?: ModerateDraftContentOptions): Promise<NonNullablePaths<ModerateDraftContentResponse, `comment.content.mentions` | `comment.content.attachments` | `comment.parentComment.status` | `comment.replyCount` | `comment.voteSummary.netVoteCount` | `comment.voteSummary.upvoteCount` | `comment.voteSummary.downvoteCount` | `comment.status` | `comment.reactionSummary.total` | `comment.marked`, 4>>;
74
74
  }
75
- declare function queryComments$1(httpClient: HttpClient): QueryCommentsSignature;
76
- interface QueryCommentsSignature {
77
- /**
78
- * Creates a query to retrieve a list of comments.
79
- *
80
- * The `queryComments()` function builds a query to retrieve a list of comments and returns a [`CommentsQueryBuilder`](#commentsquerybuilder) object.
81
- *
82
- * The returned object contains the query definition, which is typically used to run the query using the [`find()`](#commentsquerybuilder/find) function.
83
- *
84
- * You can refine the query by chaining `CommentsQueryBuilder` functions onto the query. `CommentsQueryBuilder` functions enable you to sort, filter, and control the results that `queryComments()` returns.
85
- *
86
- * `queryComments()` runs with the following `CommentsQueryBuilder` default that you can override:
87
- * + `ascending("_id")`
88
- *
89
- * The functions that are chained to `queryComments()` are applied in the order they are called. For example, if you apply `ascending("voteSummary.netVoteCount")` and then `ascending("replyCount")`, the results are sorted first by the `"voteSummary.netVoteCount"`, and then, if there are multiple results with the same `"voteSummary.netVoteCount"`, the items are sorted by `"replyCount"`.
90
- *
91
- * The following `CommentsQueryBuilder` functions are supported for the `queryComments()` function. For a full description of the comment object, see the object returned for the [`items`](#commentsqueryresult/items) property in [`CommentsQueryResult`](#commentsqueryresult).
92
- * @param - App ID to query comments for.
93
- */
94
- (appId: string): CommentsQueryBuilder;
95
- }
96
75
  declare function markComment$1(httpClient: HttpClient): MarkCommentSignature;
97
76
  interface MarkCommentSignature {
98
77
  /**
@@ -220,12 +199,15 @@ declare const onCommentDeleted$1: EventDefinition<CommentDeletedEnvelope, "wix.c
220
199
  declare const onCommentResourceCommentCountChanged$1: EventDefinition<CommentResourceCommentCountChangedEnvelope, "wix.comments.v2.comment_resource_comment_count_changed">;
221
200
  declare const onCommentUpdated$1: EventDefinition<CommentUpdatedEnvelope, "wix.comments.v2.comment_updated">;
222
201
 
202
+ declare function customQueryComments(httpClient: HttpClient): {
203
+ (query: CursorQuery, options: QueryCommentsOptions): ReturnType<typeof typedQueryComments>;
204
+ (options: QueryCommentsOptions): CommentsQueryBuilder;
205
+ };
223
206
  declare const createComment: MaybeContext<BuildRESTFunction<typeof createComment$1> & typeof createComment$1>;
224
207
  declare const getComment: MaybeContext<BuildRESTFunction<typeof getComment$1> & typeof getComment$1>;
225
208
  declare const updateComment: MaybeContext<BuildRESTFunction<typeof updateComment$1> & typeof updateComment$1>;
226
209
  declare const deleteComment: MaybeContext<BuildRESTFunction<typeof deleteComment$1> & typeof deleteComment$1>;
227
210
  declare const moderateDraftContent: MaybeContext<BuildRESTFunction<typeof moderateDraftContent$1> & typeof moderateDraftContent$1>;
228
- declare const queryComments: MaybeContext<BuildRESTFunction<typeof queryComments$1> & typeof queryComments$1>;
229
211
  declare const markComment: MaybeContext<BuildRESTFunction<typeof markComment$1> & typeof markComment$1>;
230
212
  declare const unmarkComment: MaybeContext<BuildRESTFunction<typeof unmarkComment$1> & typeof unmarkComment$1>;
231
213
  declare const hideComment: MaybeContext<BuildRESTFunction<typeof hideComment$1> & typeof hideComment$1>;
@@ -238,6 +220,7 @@ declare const bulkHideComment: MaybeContext<BuildRESTFunction<typeof bulkHideCom
238
220
  declare const bulkDeleteComment: MaybeContext<BuildRESTFunction<typeof bulkDeleteComment$1> & typeof bulkDeleteComment$1>;
239
221
  declare const bulkModerateDraftContent: MaybeContext<BuildRESTFunction<typeof bulkModerateDraftContent$1> & typeof bulkModerateDraftContent$1>;
240
222
  declare const bulkMoveCommentByFilter: MaybeContext<BuildRESTFunction<typeof bulkMoveCommentByFilter$1> & typeof bulkMoveCommentByFilter$1>;
223
+ declare const queryComments: MaybeContext<BuildRESTFunction<typeof customQueryComments> & typeof customQueryComments>;
241
224
  /**
242
225
  * Triggered when comment content is updated.
243
226
  */
@@ -277,4 +260,4 @@ declare const onCommentResourceCommentCountChanged: BuildEventDefinition<typeof
277
260
  */
278
261
  declare const onCommentUpdated: BuildEventDefinition<typeof onCommentUpdated$1> & typeof onCommentUpdated$1;
279
262
 
280
- export { BulkDeleteCommentOptions, BulkDeleteCommentResponse, BulkHideCommentOptions, BulkHideCommentResponse, BulkModerateDraftContentOptions, BulkModerateDraftContentResponse, BulkMoveCommentByFilterOptions, BulkMoveCommentByFilterResponse, BulkPublishCommentOptions, BulkPublishCommentResponse, Comment, CommentContentChangedEnvelope, CommentCreatedEnvelope, CommentDeletedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUnmarkedEnvelope, CommentUpdatedEnvelope, CommentsQueryBuilder, CountCommentsApplicationErrors, CountCommentsOptions, CountCommentsResponse, CreateCommentApplicationErrors, GetCommentThreadOptions, GetCommentThreadResponse, HideCommentResponse, ListCommentsByResourceOptions, ListCommentsByResourceResponse, MarkCommentResponse, ModerateDraftContentOptions, ModerateDraftContentResponse, PublishCommentResponse, UnmarkCommentResponse, UpdateComment, UpdateCommentApplicationErrors, bulkDeleteComment, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentDeleted, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, unmarkComment, updateComment };
263
+ export { BulkDeleteCommentOptions, BulkDeleteCommentResponse, BulkHideCommentOptions, BulkHideCommentResponse, BulkModerateDraftContentOptions, BulkModerateDraftContentResponse, BulkMoveCommentByFilterOptions, BulkMoveCommentByFilterResponse, BulkPublishCommentOptions, BulkPublishCommentResponse, Comment, CommentContentChangedEnvelope, CommentCreatedEnvelope, CommentDeletedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUnmarkedEnvelope, CommentUpdatedEnvelope, CommentsQueryBuilder, CountCommentsApplicationErrors, CountCommentsOptions, CountCommentsResponse, CreateCommentApplicationErrors, CursorQuery, GetCommentThreadOptions, GetCommentThreadResponse, HideCommentResponse, ListCommentsByResourceOptions, ListCommentsByResourceResponse, MarkCommentResponse, ModerateDraftContentOptions, ModerateDraftContentResponse, PublishCommentResponse, QueryCommentsOptions, UnmarkCommentResponse, UpdateComment, UpdateCommentApplicationErrors, bulkDeleteComment, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentDeleted, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, unmarkComment, updateComment };
@@ -2992,6 +2992,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
2992
2992
  DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
2993
2993
  DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
2994
2994
  DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
2995
+ DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
2995
2996
  return DecorationType2;
2996
2997
  })(DecorationType || {});
2997
2998
  var FontType = /* @__PURE__ */ ((FontType2) => {
@@ -3472,11 +3473,14 @@ async function moderateDraftContent2(commentId, revision, options) {
3472
3473
  throw transformedError;
3473
3474
  }
3474
3475
  }
3475
- function queryComments2(appId) {
3476
+ function queryComments2(options) {
3476
3477
  const { httpClient, sideEffects } = arguments[1];
3477
3478
  return (0, import_query_builder.queryBuilder)({
3478
3479
  func: async (payload) => {
3479
- const reqOpts = queryComments(payload);
3480
+ const reqOpts = queryComments({
3481
+ ...payload,
3482
+ ...options
3483
+ });
3480
3484
  sideEffects?.onSiteCall?.();
3481
3485
  try {
3482
3486
  const result = await httpClient.request(reqOpts);
@@ -3488,9 +3492,9 @@ function queryComments2(appId) {
3488
3492
  }
3489
3493
  },
3490
3494
  requestTransformer: (query) => {
3491
- const args = [query, appId, {}];
3495
+ const args = [query, options];
3492
3496
  return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3493
- { appId: args?.[1], ...args?.[2], query: args?.[0] },
3497
+ { ...args?.[1], query: args?.[0] },
3494
3498
  []
3495
3499
  );
3496
3500
  },
@@ -3536,7 +3540,7 @@ function queryComments2(appId) {
3536
3540
  errorTransformer: (err) => {
3537
3541
  const transformedError = (0, import_transform_error.transformError)(err, {
3538
3542
  spreadPathsToArguments: {},
3539
- explicitPathsToArguments: { appId: "$[1]", query: "$[0]" },
3543
+ explicitPathsToArguments: { query: "$[0]" },
3540
3544
  singleArgumentUnchanged: false
3541
3545
  });
3542
3546
  throw transformedError;
@@ -3545,6 +3549,64 @@ function queryComments2(appId) {
3545
3549
  transformationPaths: {}
3546
3550
  });
3547
3551
  }
3552
+ async function typedQueryComments(query, options) {
3553
+ const { httpClient, sideEffects } = arguments[2];
3554
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3555
+ { query, ...options },
3556
+ []
3557
+ );
3558
+ const reqOpts = queryComments(payload);
3559
+ sideEffects?.onSiteCall?.();
3560
+ try {
3561
+ const result = await httpClient.request(reqOpts);
3562
+ sideEffects?.onSuccess?.(result);
3563
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
3564
+ (0, import_transform_paths2.transformPaths)(result.data, [
3565
+ {
3566
+ transformFn: import_image2.transformRESTImageToSDKImage,
3567
+ paths: [
3568
+ { path: "comments.content.attachments.image" },
3569
+ { path: "comments.draftContent.attachments.image" }
3570
+ ]
3571
+ },
3572
+ {
3573
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
3574
+ paths: [
3575
+ { path: "comments.content.attachments.video" },
3576
+ { path: "comments.draftContent.attachments.video" }
3577
+ ]
3578
+ },
3579
+ {
3580
+ transformFn: import_audio2.transformRESTAudioToSDKAudio,
3581
+ paths: [
3582
+ { path: "comments.content.attachments.audio" },
3583
+ { path: "comments.draftContent.attachments.audio" }
3584
+ ]
3585
+ },
3586
+ {
3587
+ transformFn: import_document2.transformRESTDocumentToSDKDocument,
3588
+ paths: [
3589
+ { path: "comments.content.attachments.document" },
3590
+ { path: "comments.draftContent.attachments.document" }
3591
+ ]
3592
+ }
3593
+ ]),
3594
+ ["comments.content.richContent", "comments.draftContent.richContent"]
3595
+ );
3596
+ } catch (err) {
3597
+ const transformedError = (0, import_transform_error.transformError)(
3598
+ err,
3599
+ {
3600
+ spreadPathsToArguments: {},
3601
+ explicitPathsToArguments: { query: "$[0]" },
3602
+ singleArgumentUnchanged: false
3603
+ },
3604
+ ["query", "options"]
3605
+ );
3606
+ sideEffects?.onError?.(err);
3607
+ throw transformedError;
3608
+ }
3609
+ }
3548
3610
  async function markComment2(commentId) {
3549
3611
  const { httpClient, sideEffects } = arguments[1];
3550
3612
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
@@ -4152,8 +4214,16 @@ function moderateDraftContent3(httpClient) {
4152
4214
  );
4153
4215
  }
4154
4216
  function queryComments3(httpClient) {
4155
- return (appId) => queryComments2(
4156
- appId,
4217
+ return (options) => queryComments2(
4218
+ options,
4219
+ // @ts-ignore
4220
+ { httpClient }
4221
+ );
4222
+ }
4223
+ function typedQueryComments2(httpClient) {
4224
+ return (query, options) => typedQueryComments(
4225
+ query,
4226
+ options,
4157
4227
  // @ts-ignore
4158
4228
  { httpClient }
4159
4229
  );
@@ -5745,12 +5815,23 @@ var onCommentUpdated = (0, import_sdk_types.EventDefinition)(
5745
5815
  // src/comments-v2-comment-comments.context.ts
5746
5816
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
5747
5817
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
5818
+ var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
5819
+ function customQueryComments(httpClient) {
5820
+ const router = (0, import_query_method_router.createQueryOverloadRouter)({
5821
+ builderQueryFunction: (options) => queryComments3(httpClient)(options),
5822
+ typedQueryFunction: (query, options) => typedQueryComments2(httpClient)(query, options),
5823
+ hasOptionsParameter: true
5824
+ });
5825
+ function overloadedQuery(queryOrOptions, options) {
5826
+ return router(...arguments);
5827
+ }
5828
+ return overloadedQuery;
5829
+ }
5748
5830
  var createComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createComment3);
5749
5831
  var getComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getComment3);
5750
5832
  var updateComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateComment3);
5751
5833
  var deleteComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteComment3);
5752
5834
  var moderateDraftContent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(moderateDraftContent3);
5753
- var queryComments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryComments3);
5754
5835
  var markComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(markComment3);
5755
5836
  var unmarkComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(unmarkComment3);
5756
5837
  var hideComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(hideComment3);
@@ -5763,6 +5844,7 @@ var bulkHideComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule
5763
5844
  var bulkDeleteComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteComment3);
5764
5845
  var bulkModerateDraftContent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkModerateDraftContent3);
5765
5846
  var bulkMoveCommentByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkMoveCommentByFilter3);
5847
+ var queryComments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryComments);
5766
5848
  var onCommentContentChanged2 = (0, import_event_definition_modules.createEventModule)(
5767
5849
  onCommentContentChanged
5768
5850
  );