@wix/auto_sdk_comments_comments 1.0.23 → 1.0.24

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.
@@ -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.js';
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
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.js';
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 };
@@ -80,6 +80,7 @@ __export(index_exports, {
80
80
  moderateDraftContent: () => moderateDraftContent4,
81
81
  onCommentContentChanged: () => onCommentContentChanged2,
82
82
  onCommentCreated: () => onCommentCreated2,
83
+ onCommentDeleted: () => onCommentDeleted2,
83
84
  onCommentHidden: () => onCommentHidden2,
84
85
  onCommentMarked: () => onCommentMarked2,
85
86
  onCommentMoved: () => onCommentMoved2,
@@ -5052,6 +5053,156 @@ var onCommentCreated = (0, import_sdk_types.EventDefinition)(
5052
5053
  ])
5053
5054
  )
5054
5055
  )();
5056
+ var onCommentDeleted = (0, import_sdk_types.EventDefinition)(
5057
+ "wix.comments.v2.comment_deleted",
5058
+ true,
5059
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
5060
+ (0, import_transform_paths3.transformPaths)(event, [
5061
+ {
5062
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
5063
+ paths: [
5064
+ { path: "undefined.createdDate" },
5065
+ { path: "undefined.updatedDate" },
5066
+ { path: "undefined.commentDate" },
5067
+ { path: "undefined.content.commentDate" },
5068
+ { path: "undefined.content.richContent.metadata.createdTimestamp" },
5069
+ { path: "undefined.content.richContent.metadata.updatedTimestamp" },
5070
+ { path: "undefined.draftContent.commentDate" },
5071
+ {
5072
+ path: "undefined.draftContent.richContent.metadata.createdTimestamp"
5073
+ },
5074
+ {
5075
+ path: "undefined.draftContent.richContent.metadata.updatedTimestamp"
5076
+ },
5077
+ { path: "metadata.eventTime" }
5078
+ ]
5079
+ },
5080
+ {
5081
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
5082
+ paths: [
5083
+ {
5084
+ path: "undefined.content.richContent.nodes.galleryData.items.image.media.duration"
5085
+ },
5086
+ {
5087
+ path: "undefined.content.richContent.nodes.galleryData.items.video.media.duration"
5088
+ },
5089
+ {
5090
+ path: "undefined.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
5091
+ },
5092
+ {
5093
+ path: "undefined.content.richContent.nodes.galleryData.options.item.ratio"
5094
+ },
5095
+ {
5096
+ path: "undefined.content.richContent.nodes.imageData.image.duration"
5097
+ },
5098
+ {
5099
+ path: "undefined.content.richContent.nodes.mapData.mapSettings.lat"
5100
+ },
5101
+ {
5102
+ path: "undefined.content.richContent.nodes.mapData.mapSettings.lng"
5103
+ },
5104
+ {
5105
+ path: "undefined.content.richContent.nodes.pollData.poll.image.duration"
5106
+ },
5107
+ {
5108
+ path: "undefined.content.richContent.nodes.pollData.poll.options.image.duration"
5109
+ },
5110
+ {
5111
+ path: "undefined.content.richContent.nodes.pollData.design.poll.background.image.duration"
5112
+ },
5113
+ {
5114
+ path: "undefined.content.richContent.nodes.appEmbedData.image.duration"
5115
+ },
5116
+ {
5117
+ path: "undefined.content.richContent.nodes.videoData.video.duration"
5118
+ },
5119
+ {
5120
+ path: "undefined.content.richContent.nodes.videoData.thumbnail.duration"
5121
+ },
5122
+ {
5123
+ path: "undefined.content.richContent.nodes.audioData.audio.duration"
5124
+ },
5125
+ {
5126
+ path: "undefined.content.richContent.nodes.audioData.coverImage.duration"
5127
+ },
5128
+ {
5129
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.image.media.duration"
5130
+ },
5131
+ {
5132
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.video.media.duration"
5133
+ },
5134
+ {
5135
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
5136
+ },
5137
+ {
5138
+ path: "undefined.draftContent.richContent.nodes.galleryData.options.item.ratio"
5139
+ },
5140
+ {
5141
+ path: "undefined.draftContent.richContent.nodes.imageData.image.duration"
5142
+ },
5143
+ {
5144
+ path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lat"
5145
+ },
5146
+ {
5147
+ path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lng"
5148
+ },
5149
+ {
5150
+ path: "undefined.draftContent.richContent.nodes.pollData.poll.image.duration"
5151
+ },
5152
+ {
5153
+ path: "undefined.draftContent.richContent.nodes.pollData.poll.options.image.duration"
5154
+ },
5155
+ {
5156
+ path: "undefined.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
5157
+ },
5158
+ {
5159
+ path: "undefined.draftContent.richContent.nodes.appEmbedData.image.duration"
5160
+ },
5161
+ {
5162
+ path: "undefined.draftContent.richContent.nodes.videoData.video.duration"
5163
+ },
5164
+ {
5165
+ path: "undefined.draftContent.richContent.nodes.videoData.thumbnail.duration"
5166
+ },
5167
+ {
5168
+ path: "undefined.draftContent.richContent.nodes.audioData.audio.duration"
5169
+ },
5170
+ {
5171
+ path: "undefined.draftContent.richContent.nodes.audioData.coverImage.duration"
5172
+ }
5173
+ ]
5174
+ },
5175
+ {
5176
+ transformFn: import_image3.transformRESTImageToSDKImage,
5177
+ paths: [
5178
+ { path: "undefined.content.attachments.image" },
5179
+ { path: "undefined.draftContent.attachments.image" }
5180
+ ]
5181
+ },
5182
+ {
5183
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
5184
+ paths: [
5185
+ { path: "undefined.content.attachments.video" },
5186
+ { path: "undefined.draftContent.attachments.video" }
5187
+ ]
5188
+ },
5189
+ {
5190
+ transformFn: import_audio3.transformRESTAudioToSDKAudio,
5191
+ paths: [
5192
+ { path: "undefined.content.attachments.audio" },
5193
+ { path: "undefined.draftContent.attachments.audio" }
5194
+ ]
5195
+ },
5196
+ {
5197
+ transformFn: import_document3.transformRESTDocumentToSDKDocument,
5198
+ paths: [
5199
+ { path: "undefined.content.attachments.document" },
5200
+ { path: "undefined.draftContent.attachments.document" }
5201
+ ]
5202
+ }
5203
+ ])
5204
+ )
5205
+ )();
5055
5206
  var onCommentResourceCommentCountChanged = (0, import_sdk_types.EventDefinition)(
5056
5207
  "wix.comments.v2.comment_resource_comment_count_changed",
5057
5208
  true,
@@ -5243,6 +5394,7 @@ var onCommentMoved2 = (0, import_event_definition_modules.createEventModule)(onC
5243
5394
  var onCommentPublished2 = (0, import_event_definition_modules.createEventModule)(onCommentPublished);
5244
5395
  var onCommentUnmarked2 = (0, import_event_definition_modules.createEventModule)(onCommentUnmarked);
5245
5396
  var onCommentCreated2 = (0, import_event_definition_modules.createEventModule)(onCommentCreated);
5397
+ var onCommentDeleted2 = (0, import_event_definition_modules.createEventModule)(onCommentDeleted);
5246
5398
  var onCommentResourceCommentCountChanged2 = (0, import_event_definition_modules.createEventModule)(onCommentResourceCommentCountChanged);
5247
5399
  var onCommentUpdated2 = (0, import_event_definition_modules.createEventModule)(onCommentUpdated);
5248
5400
  // Annotate the CommonJS export names for ESM import in node:
@@ -5307,6 +5459,7 @@ var onCommentUpdated2 = (0, import_event_definition_modules.createEventModule)(o
5307
5459
  moderateDraftContent,
5308
5460
  onCommentContentChanged,
5309
5461
  onCommentCreated,
5462
+ onCommentDeleted,
5310
5463
  onCommentHidden,
5311
5464
  onCommentMarked,
5312
5465
  onCommentMoved,