@wix/auto_sdk_comments_comments 1.0.23 → 1.0.25

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.
@@ -1362,6 +1362,8 @@ interface AppEmbedData extends AppEmbedDataAppDataOneOf {
1362
1362
  ribbonStyles?: RibbonStyles;
1363
1363
  /** Card styling options. */
1364
1364
  cardStyles?: CardStyles;
1365
+ /** Styling for the app embed's container. */
1366
+ containerData?: PluginContainerData;
1365
1367
  }
1366
1368
  /** @oneof */
1367
1369
  interface AppEmbedDataAppDataOneOf {
@@ -1,5 +1,5 @@
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, CommentResourceCommentCountChangedEnvelope, CommentUpdatedEnvelope } from './index.typings.mjs';
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.mjs';
3
3
  export { Action, ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AspectRatio, Attachment, AttachmentMediaOneOf, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkDeleteCommentRequest, BulkHideCommentRequest, BulkModerateDraftContentRequest, BulkMoveCommentByFilterRequest, BulkPublishCommentRequest, BulletedListData, ButtonData, ButtonDataType, 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, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DeleteByFilterOperation, DeleteByIdsOperation, DeleteCommentRequest, DeleteCommentResponse, Design, Destination, Dimensions, Direction, DividerData, DividerDataAlignment, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GalleryOptionsLayout, GetCommentRequest, GetCommentResponse, GetCommentThreadRequest, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, HideCommentRequest, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, InternalDocument, InternalDocumentUpdateByFilterOperation, InternalDocumentUpdateOperation, InternalUpdateExistingOperation, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListCommentsByResourceCursorPaging, ListCommentsByResourceRequest, ListValue, MapData, MapSettings, MapType, MarkCommentRequest, Media, Mention, MentionData, MentionIdentityOneOf, MessageEnvelope, Metadata, ModerateDraftContentRequest, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, Order, OrderedListData, Orientation, PDFSettings, ParagraphData, ParentComment, Permissions, Placement, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, Position, PublishCommentRequest, QueryCommentsRequest, QueryCommentsResponse, Rel, RepliesListResponse, ReplySort, ReplySortOrder, Resizing, ResourceCommentCountChanged, RestoreInfo, RibbonStyles, RichContent, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, StylesBorder, StylesPosition, TableCellData, TableData, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, UnmarkCommentRequest, UpdateCommentRequest, UpdateCommentResponse, UpdateInternalDocumentsEvent, UpdateInternalDocumentsEventOperationOneOf, VersionedDeleteByIdsOperation, VersionedDocumentId, VersionedDocumentUpdateOperation, VersioningMode, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewRole, VoteRole, VoteSummary, WebhookIdentityType, Width, WidthType } from './index.typings.mjs';
4
4
 
5
5
  type CommentNonNullablePaths = `content.mentions` | `content.attachments` | `parentComment.status` | `replyCount` | `voteSummary.netVoteCount` | `voteSummary.upvoteCount` | `voteSummary.downvoteCount` | `status` | `reactionSummary.total` | `marked`;
@@ -231,6 +231,7 @@ declare const onCommentMoved$1: EventDefinition<CommentMovedEnvelope, "wix.comme
231
231
  declare const onCommentPublished$1: EventDefinition<CommentPublishedEnvelope, "wix.comments.v2.comment_comment_published">;
232
232
  declare const onCommentUnmarked$1: EventDefinition<CommentUnmarkedEnvelope, "wix.comments.v2.comment_comment_unmarked">;
233
233
  declare const onCommentCreated$1: EventDefinition<CommentCreatedEnvelope, "wix.comments.v2.comment_created">;
234
+ declare const onCommentDeleted$1: EventDefinition<CommentDeletedEnvelope, "wix.comments.v2.comment_deleted">;
234
235
  declare const onCommentResourceCommentCountChanged$1: EventDefinition<CommentResourceCommentCountChangedEnvelope, "wix.comments.v2.comment_resource_comment_count_changed">;
235
236
  declare const onCommentUpdated$1: EventDefinition<CommentUpdatedEnvelope, "wix.comments.v2.comment_updated">;
236
237
 
@@ -280,6 +281,8 @@ declare const onCommentUnmarked: BuildEventDefinition<typeof onCommentUnmarked$1
280
281
  * Triggered when a comment is created.
281
282
  */
282
283
  declare const onCommentCreated: BuildEventDefinition<typeof onCommentCreated$1>;
284
+ /** */
285
+ declare const onCommentDeleted: BuildEventDefinition<typeof onCommentDeleted$1>;
283
286
  /**
284
287
  * Triggered when the total number of comments has changed in a resource.
285
288
  */
@@ -289,4 +292,4 @@ declare const onCommentResourceCommentCountChanged: BuildEventDefinition<typeof
289
292
  */
290
293
  declare const onCommentUpdated: BuildEventDefinition<typeof onCommentUpdated$1>;
291
294
 
292
- export { BulkDeleteCommentOptions, BulkDeleteCommentResponse, BulkHideCommentOptions, BulkHideCommentResponse, BulkModerateDraftContentOptions, BulkModerateDraftContentResponse, BulkMoveCommentByFilterOptions, BulkMoveCommentByFilterResponse, BulkPublishCommentOptions, BulkPublishCommentResponse, Comment, CommentContentChangedEnvelope, CommentCreatedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUnmarkedEnvelope, CommentUpdatedEnvelope, CommentsQueryBuilder, CountCommentsOptions, CountCommentsResponse, GetCommentThreadOptions, GetCommentThreadResponse, HideCommentResponse, ListCommentsByResourceOptions, ListCommentsByResourceResponse, MarkCommentResponse, ModerateDraftContentOptions, ModerateDraftContentResponse, PublishCommentResponse, UnmarkCommentResponse, UpdateComment, bulkDeleteComment, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, unmarkComment, updateComment };
295
+ export { BulkDeleteCommentOptions, BulkDeleteCommentResponse, BulkHideCommentOptions, BulkHideCommentResponse, BulkModerateDraftContentOptions, BulkModerateDraftContentResponse, BulkMoveCommentByFilterOptions, BulkMoveCommentByFilterResponse, BulkPublishCommentOptions, BulkPublishCommentResponse, Comment, CommentContentChangedEnvelope, CommentCreatedEnvelope, CommentDeletedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUnmarkedEnvelope, CommentUpdatedEnvelope, CommentsQueryBuilder, CountCommentsOptions, CountCommentsResponse, GetCommentThreadOptions, GetCommentThreadResponse, HideCommentResponse, ListCommentsByResourceOptions, ListCommentsByResourceResponse, MarkCommentResponse, ModerateDraftContentOptions, ModerateDraftContentResponse, PublishCommentResponse, UnmarkCommentResponse, UpdateComment, 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 };
@@ -4959,6 +4959,156 @@ var onCommentCreated = EventDefinition(
4959
4959
  ])
4960
4960
  )
4961
4961
  )();
4962
+ var onCommentDeleted = EventDefinition(
4963
+ "wix.comments.v2.comment_deleted",
4964
+ true,
4965
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
4966
+ transformPaths3(event, [
4967
+ {
4968
+ transformFn: transformRESTTimestampToSDKTimestamp2,
4969
+ paths: [
4970
+ { path: "undefined.createdDate" },
4971
+ { path: "undefined.updatedDate" },
4972
+ { path: "undefined.commentDate" },
4973
+ { path: "undefined.content.commentDate" },
4974
+ { path: "undefined.content.richContent.metadata.createdTimestamp" },
4975
+ { path: "undefined.content.richContent.metadata.updatedTimestamp" },
4976
+ { path: "undefined.draftContent.commentDate" },
4977
+ {
4978
+ path: "undefined.draftContent.richContent.metadata.createdTimestamp"
4979
+ },
4980
+ {
4981
+ path: "undefined.draftContent.richContent.metadata.updatedTimestamp"
4982
+ },
4983
+ { path: "metadata.eventTime" }
4984
+ ]
4985
+ },
4986
+ {
4987
+ transformFn: transformRESTFloatToSDKFloat2,
4988
+ paths: [
4989
+ {
4990
+ path: "undefined.content.richContent.nodes.galleryData.items.image.media.duration"
4991
+ },
4992
+ {
4993
+ path: "undefined.content.richContent.nodes.galleryData.items.video.media.duration"
4994
+ },
4995
+ {
4996
+ path: "undefined.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
4997
+ },
4998
+ {
4999
+ path: "undefined.content.richContent.nodes.galleryData.options.item.ratio"
5000
+ },
5001
+ {
5002
+ path: "undefined.content.richContent.nodes.imageData.image.duration"
5003
+ },
5004
+ {
5005
+ path: "undefined.content.richContent.nodes.mapData.mapSettings.lat"
5006
+ },
5007
+ {
5008
+ path: "undefined.content.richContent.nodes.mapData.mapSettings.lng"
5009
+ },
5010
+ {
5011
+ path: "undefined.content.richContent.nodes.pollData.poll.image.duration"
5012
+ },
5013
+ {
5014
+ path: "undefined.content.richContent.nodes.pollData.poll.options.image.duration"
5015
+ },
5016
+ {
5017
+ path: "undefined.content.richContent.nodes.pollData.design.poll.background.image.duration"
5018
+ },
5019
+ {
5020
+ path: "undefined.content.richContent.nodes.appEmbedData.image.duration"
5021
+ },
5022
+ {
5023
+ path: "undefined.content.richContent.nodes.videoData.video.duration"
5024
+ },
5025
+ {
5026
+ path: "undefined.content.richContent.nodes.videoData.thumbnail.duration"
5027
+ },
5028
+ {
5029
+ path: "undefined.content.richContent.nodes.audioData.audio.duration"
5030
+ },
5031
+ {
5032
+ path: "undefined.content.richContent.nodes.audioData.coverImage.duration"
5033
+ },
5034
+ {
5035
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.image.media.duration"
5036
+ },
5037
+ {
5038
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.video.media.duration"
5039
+ },
5040
+ {
5041
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
5042
+ },
5043
+ {
5044
+ path: "undefined.draftContent.richContent.nodes.galleryData.options.item.ratio"
5045
+ },
5046
+ {
5047
+ path: "undefined.draftContent.richContent.nodes.imageData.image.duration"
5048
+ },
5049
+ {
5050
+ path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lat"
5051
+ },
5052
+ {
5053
+ path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lng"
5054
+ },
5055
+ {
5056
+ path: "undefined.draftContent.richContent.nodes.pollData.poll.image.duration"
5057
+ },
5058
+ {
5059
+ path: "undefined.draftContent.richContent.nodes.pollData.poll.options.image.duration"
5060
+ },
5061
+ {
5062
+ path: "undefined.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
5063
+ },
5064
+ {
5065
+ path: "undefined.draftContent.richContent.nodes.appEmbedData.image.duration"
5066
+ },
5067
+ {
5068
+ path: "undefined.draftContent.richContent.nodes.videoData.video.duration"
5069
+ },
5070
+ {
5071
+ path: "undefined.draftContent.richContent.nodes.videoData.thumbnail.duration"
5072
+ },
5073
+ {
5074
+ path: "undefined.draftContent.richContent.nodes.audioData.audio.duration"
5075
+ },
5076
+ {
5077
+ path: "undefined.draftContent.richContent.nodes.audioData.coverImage.duration"
5078
+ }
5079
+ ]
5080
+ },
5081
+ {
5082
+ transformFn: transformRESTImageToSDKImage2,
5083
+ paths: [
5084
+ { path: "undefined.content.attachments.image" },
5085
+ { path: "undefined.draftContent.attachments.image" }
5086
+ ]
5087
+ },
5088
+ {
5089
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
5090
+ paths: [
5091
+ { path: "undefined.content.attachments.video" },
5092
+ { path: "undefined.draftContent.attachments.video" }
5093
+ ]
5094
+ },
5095
+ {
5096
+ transformFn: transformRESTAudioToSDKAudio2,
5097
+ paths: [
5098
+ { path: "undefined.content.attachments.audio" },
5099
+ { path: "undefined.draftContent.attachments.audio" }
5100
+ ]
5101
+ },
5102
+ {
5103
+ transformFn: transformRESTDocumentToSDKDocument2,
5104
+ paths: [
5105
+ { path: "undefined.content.attachments.document" },
5106
+ { path: "undefined.draftContent.attachments.document" }
5107
+ ]
5108
+ }
5109
+ ])
5110
+ )
5111
+ )();
4962
5112
  var onCommentResourceCommentCountChanged = EventDefinition(
4963
5113
  "wix.comments.v2.comment_resource_comment_count_changed",
4964
5114
  true,
@@ -5150,6 +5300,7 @@ var onCommentMoved2 = createEventModule(onCommentMoved);
5150
5300
  var onCommentPublished2 = createEventModule(onCommentPublished);
5151
5301
  var onCommentUnmarked2 = createEventModule(onCommentUnmarked);
5152
5302
  var onCommentCreated2 = createEventModule(onCommentCreated);
5303
+ var onCommentDeleted2 = createEventModule(onCommentDeleted);
5153
5304
  var onCommentResourceCommentCountChanged2 = createEventModule(onCommentResourceCommentCountChanged);
5154
5305
  var onCommentUpdated2 = createEventModule(onCommentUpdated);
5155
5306
  export {
@@ -5213,6 +5364,7 @@ export {
5213
5364
  moderateDraftContent4 as moderateDraftContent,
5214
5365
  onCommentContentChanged2 as onCommentContentChanged,
5215
5366
  onCommentCreated2 as onCommentCreated,
5367
+ onCommentDeleted2 as onCommentDeleted,
5216
5368
  onCommentHidden2 as onCommentHidden,
5217
5369
  onCommentMarked2 as onCommentMarked,
5218
5370
  onCommentMoved2 as onCommentMoved,