@wix/auto_sdk_comments_comments 1.0.38 → 1.0.40

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 +5 -5
  2. package/build/cjs/index.js +177 -177
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +280 -163
  5. package/build/cjs/index.typings.js +14 -14
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +268 -151
  8. package/build/cjs/meta.js +14 -14
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +5 -5
  11. package/build/es/index.mjs +177 -177
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +280 -163
  14. package/build/es/index.typings.mjs +14 -14
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +268 -151
  17. package/build/es/meta.mjs +14 -14
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +5 -5
  20. package/build/internal/cjs/index.js +177 -177
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +280 -163
  23. package/build/internal/cjs/index.typings.js +14 -14
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +268 -151
  26. package/build/internal/cjs/meta.js +14 -14
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +5 -5
  29. package/build/internal/es/index.mjs +177 -177
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +280 -163
  32. package/build/internal/es/index.typings.mjs +14 -14
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +268 -151
  35. package/build/internal/es/meta.mjs +14 -14
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -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, 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, CommentQuery, QueryCommentsOptions, typedQueryComments, CommentsQueryBuilder } from './index.typings.mjs';
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, CommentQuerySpec, CommentReactionSummary, CommentSort, CommentUnmarked, CommentsQueryResult, CommonQueryWithEntityContext, ContactDetails, ContentAuthor, ContentAuthorAuthorOneOf, CountCommentsRequest, CreateCommentRequest, CreateCommentResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteByFilterOperation, DeleteByIdsOperation, DeleteCommentRequest, DeleteCommentResponse, Design, DesignTarget, DesignTargetWithLiterals, 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.mjs';
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, CommentDeletedEnvelope, CommentContentChangedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentUnmarkedEnvelope, CommentCreatedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUpdatedEnvelope, CommentQuery, QueryCommentsOptions, typedQueryComments, CommentsQueryBuilder } from './index.typings.mjs';
3
+ export { Action, ActionEvent, ActionWithLiterals, Alignment, AlignmentWithLiterals, AnchorData, App, 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, CommentQuerySpec, CommentReactionSummary, CommentSort, CommentUnmarked, CommentsQueryResult, CommonQueryWithEntityContext, ContactDetails, ContentAuthor, ContentAuthorAuthorOneOf, CountCommentsRequest, CreateCommentRequest, CreateCommentResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteByFilterOperation, DeleteByIdsOperation, DeleteCommentRequest, DeleteCommentResponse, Design, DesignTarget, DesignTargetWithLiterals, Destination, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, File, 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, InvalidateCache, InvalidateCacheGetByOneOf, 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, Page, 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, URI, 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.mjs';
4
4
 
5
5
  declare function createComment$1(httpClient: HttpClient): CreateCommentSignature;
6
6
  interface CreateCommentSignature {
@@ -188,6 +188,7 @@ interface BulkMoveCommentByFilterSignature {
188
188
  */
189
189
  (appId: string, options?: NonNullablePaths<BulkMoveCommentByFilterOptions, `destination.contextId` | `destination.resourceId` | `filter`, 3>): Promise<NonNullablePaths<BulkMoveCommentByFilterResponse, `jobId`, 2>>;
190
190
  }
191
+ declare const onCommentDeleted$1: EventDefinition<CommentDeletedEnvelope, "wix.comments.v2.comment_deleted">;
191
192
  declare const onCommentContentChanged$1: EventDefinition<CommentContentChangedEnvelope, "wix.comments.v2.comment_comment_content_changed">;
192
193
  declare const onCommentHidden$1: EventDefinition<CommentHiddenEnvelope, "wix.comments.v2.comment_comment_hidden">;
193
194
  declare const onCommentMarked$1: EventDefinition<CommentMarkedEnvelope, "wix.comments.v2.comment_comment_marked">;
@@ -195,7 +196,6 @@ declare const onCommentMoved$1: EventDefinition<CommentMovedEnvelope, "wix.comme
195
196
  declare const onCommentPublished$1: EventDefinition<CommentPublishedEnvelope, "wix.comments.v2.comment_comment_published">;
196
197
  declare const onCommentUnmarked$1: EventDefinition<CommentUnmarkedEnvelope, "wix.comments.v2.comment_comment_unmarked">;
197
198
  declare const onCommentCreated$1: EventDefinition<CommentCreatedEnvelope, "wix.comments.v2.comment_created">;
198
- declare const onCommentDeleted$1: EventDefinition<CommentDeletedEnvelope, "wix.comments.v2.comment_deleted">;
199
199
  declare const onCommentResourceCommentCountChanged$1: EventDefinition<CommentResourceCommentCountChangedEnvelope, "wix.comments.v2.comment_resource_comment_count_changed">;
200
200
  declare const onCommentUpdated$1: EventDefinition<CommentUpdatedEnvelope, "wix.comments.v2.comment_updated">;
201
201
 
@@ -221,6 +221,8 @@ declare const bulkDeleteComment: MaybeContext<BuildRESTFunction<typeof bulkDelet
221
221
  declare const bulkModerateDraftContent: MaybeContext<BuildRESTFunction<typeof bulkModerateDraftContent$1> & typeof bulkModerateDraftContent$1>;
222
222
  declare const bulkMoveCommentByFilter: MaybeContext<BuildRESTFunction<typeof bulkMoveCommentByFilter$1> & typeof bulkMoveCommentByFilter$1>;
223
223
  declare const queryComments: MaybeContext<BuildRESTFunction<typeof customQueryComments> & typeof customQueryComments>;
224
+ /** */
225
+ declare const onCommentDeleted: BuildEventDefinition<typeof onCommentDeleted$1> & typeof onCommentDeleted$1;
224
226
  /**
225
227
  * Triggered when comment content is updated.
226
228
  */
@@ -249,8 +251,6 @@ declare const onCommentUnmarked: BuildEventDefinition<typeof onCommentUnmarked$1
249
251
  * Triggered when a comment is created.
250
252
  */
251
253
  declare const onCommentCreated: BuildEventDefinition<typeof onCommentCreated$1> & typeof onCommentCreated$1;
252
- /** */
253
- declare const onCommentDeleted: BuildEventDefinition<typeof onCommentDeleted$1> & typeof onCommentDeleted$1;
254
254
  /**
255
255
  * Triggered when the total number of comments has changed in a resource.
256
256
  */
@@ -3008,18 +3008,26 @@ var Status = /* @__PURE__ */ ((Status2) => {
3008
3008
  Status2["HIDDEN"] = "HIDDEN";
3009
3009
  return Status2;
3010
3010
  })(Status || {});
3011
- var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
3012
- VersioningMode2["DEFAULT"] = "DEFAULT";
3013
- VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
3014
- VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
3015
- return VersioningMode2;
3016
- })(VersioningMode || {});
3017
3011
  var Action = /* @__PURE__ */ ((Action2) => {
3018
3012
  Action2["UNKNOWN"] = "UNKNOWN";
3019
3013
  Action2["APPROVE"] = "APPROVE";
3020
3014
  Action2["REJECT"] = "REJECT";
3021
3015
  return Action2;
3022
3016
  })(Action || {});
3017
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3018
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3019
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3020
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
3021
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3022
+ WebhookIdentityType2["APP"] = "APP";
3023
+ return WebhookIdentityType2;
3024
+ })(WebhookIdentityType || {});
3025
+ var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
3026
+ VersioningMode2["DEFAULT"] = "DEFAULT";
3027
+ VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
3028
+ VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
3029
+ return VersioningMode2;
3030
+ })(VersioningMode || {});
3023
3031
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3024
3032
  SortOrder2["ASC"] = "ASC";
3025
3033
  SortOrder2["DESC"] = "DESC";
@@ -3043,14 +3051,6 @@ var ReplySortOrder = /* @__PURE__ */ ((ReplySortOrder2) => {
3043
3051
  ReplySortOrder2["REACTION_COUNT"] = "REACTION_COUNT";
3044
3052
  return ReplySortOrder2;
3045
3053
  })(ReplySortOrder || {});
3046
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3047
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3048
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3049
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3050
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3051
- WebhookIdentityType2["APP"] = "APP";
3052
- return WebhookIdentityType2;
3053
- })(WebhookIdentityType || {});
3054
3054
  async function createComment2(comment) {
3055
3055
  const { httpClient, sideEffects } = arguments[1];
3056
3056
  const payload = transformPaths2(
@@ -4227,6 +4227,168 @@ function bulkMoveCommentByFilter3(httpClient) {
4227
4227
  { httpClient }
4228
4228
  );
4229
4229
  }
4230
+ var onCommentDeleted = EventDefinition(
4231
+ "wix.comments.v2.comment_deleted",
4232
+ true,
4233
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
4234
+ transformPaths3(event, [
4235
+ {
4236
+ transformFn: transformRESTTimestampToSDKTimestamp2,
4237
+ paths: [
4238
+ { path: "undefined.createdDate" },
4239
+ { path: "undefined.updatedDate" },
4240
+ { path: "undefined.commentDate" },
4241
+ { path: "undefined.content.commentDate" },
4242
+ { path: "undefined.content.richContent.metadata.createdTimestamp" },
4243
+ { path: "undefined.content.richContent.metadata.updatedTimestamp" },
4244
+ { path: "undefined.draftContent.commentDate" },
4245
+ {
4246
+ path: "undefined.draftContent.richContent.metadata.createdTimestamp"
4247
+ },
4248
+ {
4249
+ path: "undefined.draftContent.richContent.metadata.updatedTimestamp"
4250
+ },
4251
+ { path: "metadata.eventTime" }
4252
+ ]
4253
+ },
4254
+ {
4255
+ transformFn: transformRESTFloatToSDKFloat2,
4256
+ paths: [
4257
+ {
4258
+ path: "undefined.content.richContent.nodes.galleryData.items.image.media.duration"
4259
+ },
4260
+ {
4261
+ path: "undefined.content.richContent.nodes.galleryData.items.video.media.duration"
4262
+ },
4263
+ {
4264
+ path: "undefined.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
4265
+ },
4266
+ {
4267
+ path: "undefined.content.richContent.nodes.galleryData.options.item.ratio"
4268
+ },
4269
+ {
4270
+ path: "undefined.content.richContent.nodes.imageData.image.duration"
4271
+ },
4272
+ {
4273
+ path: "undefined.content.richContent.nodes.mapData.mapSettings.lat"
4274
+ },
4275
+ {
4276
+ path: "undefined.content.richContent.nodes.mapData.mapSettings.lng"
4277
+ },
4278
+ {
4279
+ path: "undefined.content.richContent.nodes.pollData.poll.image.duration"
4280
+ },
4281
+ {
4282
+ path: "undefined.content.richContent.nodes.pollData.poll.options.image.duration"
4283
+ },
4284
+ {
4285
+ path: "undefined.content.richContent.nodes.pollData.design.poll.background.image.duration"
4286
+ },
4287
+ {
4288
+ path: "undefined.content.richContent.nodes.appEmbedData.image.duration"
4289
+ },
4290
+ {
4291
+ path: "undefined.content.richContent.nodes.videoData.video.duration"
4292
+ },
4293
+ {
4294
+ path: "undefined.content.richContent.nodes.videoData.thumbnail.duration"
4295
+ },
4296
+ {
4297
+ path: "undefined.content.richContent.nodes.audioData.audio.duration"
4298
+ },
4299
+ {
4300
+ path: "undefined.content.richContent.nodes.audioData.coverImage.duration"
4301
+ },
4302
+ {
4303
+ path: "undefined.content.richContent.nodes.layoutData.backgroundImage.media.duration"
4304
+ },
4305
+ {
4306
+ path: "undefined.content.richContent.nodes.layoutData.backdropImage.media.duration"
4307
+ },
4308
+ {
4309
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.image.media.duration"
4310
+ },
4311
+ {
4312
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.video.media.duration"
4313
+ },
4314
+ {
4315
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
4316
+ },
4317
+ {
4318
+ path: "undefined.draftContent.richContent.nodes.galleryData.options.item.ratio"
4319
+ },
4320
+ {
4321
+ path: "undefined.draftContent.richContent.nodes.imageData.image.duration"
4322
+ },
4323
+ {
4324
+ path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lat"
4325
+ },
4326
+ {
4327
+ path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lng"
4328
+ },
4329
+ {
4330
+ path: "undefined.draftContent.richContent.nodes.pollData.poll.image.duration"
4331
+ },
4332
+ {
4333
+ path: "undefined.draftContent.richContent.nodes.pollData.poll.options.image.duration"
4334
+ },
4335
+ {
4336
+ path: "undefined.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
4337
+ },
4338
+ {
4339
+ path: "undefined.draftContent.richContent.nodes.appEmbedData.image.duration"
4340
+ },
4341
+ {
4342
+ path: "undefined.draftContent.richContent.nodes.videoData.video.duration"
4343
+ },
4344
+ {
4345
+ path: "undefined.draftContent.richContent.nodes.videoData.thumbnail.duration"
4346
+ },
4347
+ {
4348
+ path: "undefined.draftContent.richContent.nodes.audioData.audio.duration"
4349
+ },
4350
+ {
4351
+ path: "undefined.draftContent.richContent.nodes.audioData.coverImage.duration"
4352
+ },
4353
+ {
4354
+ path: "undefined.draftContent.richContent.nodes.layoutData.backgroundImage.media.duration"
4355
+ },
4356
+ {
4357
+ path: "undefined.draftContent.richContent.nodes.layoutData.backdropImage.media.duration"
4358
+ }
4359
+ ]
4360
+ },
4361
+ {
4362
+ transformFn: transformRESTImageToSDKImage2,
4363
+ paths: [
4364
+ { path: "undefined.content.attachments.image" },
4365
+ { path: "undefined.draftContent.attachments.image" }
4366
+ ]
4367
+ },
4368
+ {
4369
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
4370
+ paths: [
4371
+ { path: "undefined.content.attachments.video" },
4372
+ { path: "undefined.draftContent.attachments.video" }
4373
+ ]
4374
+ },
4375
+ {
4376
+ transformFn: transformRESTAudioToSDKAudio2,
4377
+ paths: [
4378
+ { path: "undefined.content.attachments.audio" },
4379
+ { path: "undefined.draftContent.attachments.audio" }
4380
+ ]
4381
+ },
4382
+ {
4383
+ transformFn: transformRESTDocumentToSDKDocument2,
4384
+ paths: [
4385
+ { path: "undefined.content.attachments.document" },
4386
+ { path: "undefined.draftContent.attachments.document" }
4387
+ ]
4388
+ }
4389
+ ])
4390
+ )
4391
+ )();
4230
4392
  var onCommentContentChanged = EventDefinition(
4231
4393
  "wix.comments.v2.comment_comment_content_changed",
4232
4394
  true,
@@ -5382,168 +5544,6 @@ var onCommentCreated = EventDefinition(
5382
5544
  ])
5383
5545
  )
5384
5546
  )();
5385
- var onCommentDeleted = EventDefinition(
5386
- "wix.comments.v2.comment_deleted",
5387
- true,
5388
- (event) => renameKeysFromRESTResponseToSDKResponse2(
5389
- transformPaths3(event, [
5390
- {
5391
- transformFn: transformRESTTimestampToSDKTimestamp2,
5392
- paths: [
5393
- { path: "undefined.createdDate" },
5394
- { path: "undefined.updatedDate" },
5395
- { path: "undefined.commentDate" },
5396
- { path: "undefined.content.commentDate" },
5397
- { path: "undefined.content.richContent.metadata.createdTimestamp" },
5398
- { path: "undefined.content.richContent.metadata.updatedTimestamp" },
5399
- { path: "undefined.draftContent.commentDate" },
5400
- {
5401
- path: "undefined.draftContent.richContent.metadata.createdTimestamp"
5402
- },
5403
- {
5404
- path: "undefined.draftContent.richContent.metadata.updatedTimestamp"
5405
- },
5406
- { path: "metadata.eventTime" }
5407
- ]
5408
- },
5409
- {
5410
- transformFn: transformRESTFloatToSDKFloat2,
5411
- paths: [
5412
- {
5413
- path: "undefined.content.richContent.nodes.galleryData.items.image.media.duration"
5414
- },
5415
- {
5416
- path: "undefined.content.richContent.nodes.galleryData.items.video.media.duration"
5417
- },
5418
- {
5419
- path: "undefined.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
5420
- },
5421
- {
5422
- path: "undefined.content.richContent.nodes.galleryData.options.item.ratio"
5423
- },
5424
- {
5425
- path: "undefined.content.richContent.nodes.imageData.image.duration"
5426
- },
5427
- {
5428
- path: "undefined.content.richContent.nodes.mapData.mapSettings.lat"
5429
- },
5430
- {
5431
- path: "undefined.content.richContent.nodes.mapData.mapSettings.lng"
5432
- },
5433
- {
5434
- path: "undefined.content.richContent.nodes.pollData.poll.image.duration"
5435
- },
5436
- {
5437
- path: "undefined.content.richContent.nodes.pollData.poll.options.image.duration"
5438
- },
5439
- {
5440
- path: "undefined.content.richContent.nodes.pollData.design.poll.background.image.duration"
5441
- },
5442
- {
5443
- path: "undefined.content.richContent.nodes.appEmbedData.image.duration"
5444
- },
5445
- {
5446
- path: "undefined.content.richContent.nodes.videoData.video.duration"
5447
- },
5448
- {
5449
- path: "undefined.content.richContent.nodes.videoData.thumbnail.duration"
5450
- },
5451
- {
5452
- path: "undefined.content.richContent.nodes.audioData.audio.duration"
5453
- },
5454
- {
5455
- path: "undefined.content.richContent.nodes.audioData.coverImage.duration"
5456
- },
5457
- {
5458
- path: "undefined.content.richContent.nodes.layoutData.backgroundImage.media.duration"
5459
- },
5460
- {
5461
- path: "undefined.content.richContent.nodes.layoutData.backdropImage.media.duration"
5462
- },
5463
- {
5464
- path: "undefined.draftContent.richContent.nodes.galleryData.items.image.media.duration"
5465
- },
5466
- {
5467
- path: "undefined.draftContent.richContent.nodes.galleryData.items.video.media.duration"
5468
- },
5469
- {
5470
- path: "undefined.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
5471
- },
5472
- {
5473
- path: "undefined.draftContent.richContent.nodes.galleryData.options.item.ratio"
5474
- },
5475
- {
5476
- path: "undefined.draftContent.richContent.nodes.imageData.image.duration"
5477
- },
5478
- {
5479
- path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lat"
5480
- },
5481
- {
5482
- path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lng"
5483
- },
5484
- {
5485
- path: "undefined.draftContent.richContent.nodes.pollData.poll.image.duration"
5486
- },
5487
- {
5488
- path: "undefined.draftContent.richContent.nodes.pollData.poll.options.image.duration"
5489
- },
5490
- {
5491
- path: "undefined.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
5492
- },
5493
- {
5494
- path: "undefined.draftContent.richContent.nodes.appEmbedData.image.duration"
5495
- },
5496
- {
5497
- path: "undefined.draftContent.richContent.nodes.videoData.video.duration"
5498
- },
5499
- {
5500
- path: "undefined.draftContent.richContent.nodes.videoData.thumbnail.duration"
5501
- },
5502
- {
5503
- path: "undefined.draftContent.richContent.nodes.audioData.audio.duration"
5504
- },
5505
- {
5506
- path: "undefined.draftContent.richContent.nodes.audioData.coverImage.duration"
5507
- },
5508
- {
5509
- path: "undefined.draftContent.richContent.nodes.layoutData.backgroundImage.media.duration"
5510
- },
5511
- {
5512
- path: "undefined.draftContent.richContent.nodes.layoutData.backdropImage.media.duration"
5513
- }
5514
- ]
5515
- },
5516
- {
5517
- transformFn: transformRESTImageToSDKImage2,
5518
- paths: [
5519
- { path: "undefined.content.attachments.image" },
5520
- { path: "undefined.draftContent.attachments.image" }
5521
- ]
5522
- },
5523
- {
5524
- transformFn: transformRESTVideoV2ToSDKVideoV22,
5525
- paths: [
5526
- { path: "undefined.content.attachments.video" },
5527
- { path: "undefined.draftContent.attachments.video" }
5528
- ]
5529
- },
5530
- {
5531
- transformFn: transformRESTAudioToSDKAudio2,
5532
- paths: [
5533
- { path: "undefined.content.attachments.audio" },
5534
- { path: "undefined.draftContent.attachments.audio" }
5535
- ]
5536
- },
5537
- {
5538
- transformFn: transformRESTDocumentToSDKDocument2,
5539
- paths: [
5540
- { path: "undefined.content.attachments.document" },
5541
- { path: "undefined.draftContent.attachments.document" }
5542
- ]
5543
- }
5544
- ])
5545
- )
5546
- )();
5547
5547
  var onCommentResourceCommentCountChanged = EventDefinition(
5548
5548
  "wix.comments.v2.comment_resource_comment_count_changed",
5549
5549
  true,
@@ -5879,6 +5879,7 @@ var bulkDeleteComment4 = /* @__PURE__ */ createRESTModule(bulkDeleteComment3);
5879
5879
  var bulkModerateDraftContent4 = /* @__PURE__ */ createRESTModule(bulkModerateDraftContent3);
5880
5880
  var bulkMoveCommentByFilter4 = /* @__PURE__ */ createRESTModule(bulkMoveCommentByFilter3);
5881
5881
  var queryComments4 = /* @__PURE__ */ createRESTModule(customQueryComments);
5882
+ var onCommentDeleted2 = createEventModule(onCommentDeleted);
5882
5883
  var onCommentContentChanged2 = createEventModule(
5883
5884
  onCommentContentChanged
5884
5885
  );
@@ -5888,7 +5889,6 @@ var onCommentMoved2 = createEventModule(onCommentMoved);
5888
5889
  var onCommentPublished2 = createEventModule(onCommentPublished);
5889
5890
  var onCommentUnmarked2 = createEventModule(onCommentUnmarked);
5890
5891
  var onCommentCreated2 = createEventModule(onCommentCreated);
5891
- var onCommentDeleted2 = createEventModule(onCommentDeleted);
5892
5892
  var onCommentResourceCommentCountChanged2 = createEventModule(
5893
5893
  onCommentResourceCommentCountChanged
5894
5894
  );