@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.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, 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.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, CommentDeletedEnvelope, CommentContentChangedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentUnmarkedEnvelope, CommentCreatedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUpdatedEnvelope, CommentQuery, QueryCommentsOptions, typedQueryComments, CommentsQueryBuilder } from './index.typings.js';
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.js';
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
  */
@@ -3107,18 +3107,26 @@ var Status = /* @__PURE__ */ ((Status2) => {
3107
3107
  Status2["HIDDEN"] = "HIDDEN";
3108
3108
  return Status2;
3109
3109
  })(Status || {});
3110
- var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
3111
- VersioningMode2["DEFAULT"] = "DEFAULT";
3112
- VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
3113
- VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
3114
- return VersioningMode2;
3115
- })(VersioningMode || {});
3116
3110
  var Action = /* @__PURE__ */ ((Action2) => {
3117
3111
  Action2["UNKNOWN"] = "UNKNOWN";
3118
3112
  Action2["APPROVE"] = "APPROVE";
3119
3113
  Action2["REJECT"] = "REJECT";
3120
3114
  return Action2;
3121
3115
  })(Action || {});
3116
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3117
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3118
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3119
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
3120
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3121
+ WebhookIdentityType2["APP"] = "APP";
3122
+ return WebhookIdentityType2;
3123
+ })(WebhookIdentityType || {});
3124
+ var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
3125
+ VersioningMode2["DEFAULT"] = "DEFAULT";
3126
+ VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
3127
+ VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
3128
+ return VersioningMode2;
3129
+ })(VersioningMode || {});
3122
3130
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3123
3131
  SortOrder2["ASC"] = "ASC";
3124
3132
  SortOrder2["DESC"] = "DESC";
@@ -3142,14 +3150,6 @@ var ReplySortOrder = /* @__PURE__ */ ((ReplySortOrder2) => {
3142
3150
  ReplySortOrder2["REACTION_COUNT"] = "REACTION_COUNT";
3143
3151
  return ReplySortOrder2;
3144
3152
  })(ReplySortOrder || {});
3145
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3146
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3147
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3148
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3149
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3150
- WebhookIdentityType2["APP"] = "APP";
3151
- return WebhookIdentityType2;
3152
- })(WebhookIdentityType || {});
3153
3153
  async function createComment2(comment) {
3154
3154
  const { httpClient, sideEffects } = arguments[1];
3155
3155
  const payload = (0, import_transform_paths2.transformPaths)(
@@ -4326,6 +4326,168 @@ function bulkMoveCommentByFilter3(httpClient) {
4326
4326
  { httpClient }
4327
4327
  );
4328
4328
  }
4329
+ var onCommentDeleted = (0, import_sdk_types.EventDefinition)(
4330
+ "wix.comments.v2.comment_deleted",
4331
+ true,
4332
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
4333
+ (0, import_transform_paths3.transformPaths)(event, [
4334
+ {
4335
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
4336
+ paths: [
4337
+ { path: "undefined.createdDate" },
4338
+ { path: "undefined.updatedDate" },
4339
+ { path: "undefined.commentDate" },
4340
+ { path: "undefined.content.commentDate" },
4341
+ { path: "undefined.content.richContent.metadata.createdTimestamp" },
4342
+ { path: "undefined.content.richContent.metadata.updatedTimestamp" },
4343
+ { path: "undefined.draftContent.commentDate" },
4344
+ {
4345
+ path: "undefined.draftContent.richContent.metadata.createdTimestamp"
4346
+ },
4347
+ {
4348
+ path: "undefined.draftContent.richContent.metadata.updatedTimestamp"
4349
+ },
4350
+ { path: "metadata.eventTime" }
4351
+ ]
4352
+ },
4353
+ {
4354
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
4355
+ paths: [
4356
+ {
4357
+ path: "undefined.content.richContent.nodes.galleryData.items.image.media.duration"
4358
+ },
4359
+ {
4360
+ path: "undefined.content.richContent.nodes.galleryData.items.video.media.duration"
4361
+ },
4362
+ {
4363
+ path: "undefined.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
4364
+ },
4365
+ {
4366
+ path: "undefined.content.richContent.nodes.galleryData.options.item.ratio"
4367
+ },
4368
+ {
4369
+ path: "undefined.content.richContent.nodes.imageData.image.duration"
4370
+ },
4371
+ {
4372
+ path: "undefined.content.richContent.nodes.mapData.mapSettings.lat"
4373
+ },
4374
+ {
4375
+ path: "undefined.content.richContent.nodes.mapData.mapSettings.lng"
4376
+ },
4377
+ {
4378
+ path: "undefined.content.richContent.nodes.pollData.poll.image.duration"
4379
+ },
4380
+ {
4381
+ path: "undefined.content.richContent.nodes.pollData.poll.options.image.duration"
4382
+ },
4383
+ {
4384
+ path: "undefined.content.richContent.nodes.pollData.design.poll.background.image.duration"
4385
+ },
4386
+ {
4387
+ path: "undefined.content.richContent.nodes.appEmbedData.image.duration"
4388
+ },
4389
+ {
4390
+ path: "undefined.content.richContent.nodes.videoData.video.duration"
4391
+ },
4392
+ {
4393
+ path: "undefined.content.richContent.nodes.videoData.thumbnail.duration"
4394
+ },
4395
+ {
4396
+ path: "undefined.content.richContent.nodes.audioData.audio.duration"
4397
+ },
4398
+ {
4399
+ path: "undefined.content.richContent.nodes.audioData.coverImage.duration"
4400
+ },
4401
+ {
4402
+ path: "undefined.content.richContent.nodes.layoutData.backgroundImage.media.duration"
4403
+ },
4404
+ {
4405
+ path: "undefined.content.richContent.nodes.layoutData.backdropImage.media.duration"
4406
+ },
4407
+ {
4408
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.image.media.duration"
4409
+ },
4410
+ {
4411
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.video.media.duration"
4412
+ },
4413
+ {
4414
+ path: "undefined.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
4415
+ },
4416
+ {
4417
+ path: "undefined.draftContent.richContent.nodes.galleryData.options.item.ratio"
4418
+ },
4419
+ {
4420
+ path: "undefined.draftContent.richContent.nodes.imageData.image.duration"
4421
+ },
4422
+ {
4423
+ path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lat"
4424
+ },
4425
+ {
4426
+ path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lng"
4427
+ },
4428
+ {
4429
+ path: "undefined.draftContent.richContent.nodes.pollData.poll.image.duration"
4430
+ },
4431
+ {
4432
+ path: "undefined.draftContent.richContent.nodes.pollData.poll.options.image.duration"
4433
+ },
4434
+ {
4435
+ path: "undefined.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
4436
+ },
4437
+ {
4438
+ path: "undefined.draftContent.richContent.nodes.appEmbedData.image.duration"
4439
+ },
4440
+ {
4441
+ path: "undefined.draftContent.richContent.nodes.videoData.video.duration"
4442
+ },
4443
+ {
4444
+ path: "undefined.draftContent.richContent.nodes.videoData.thumbnail.duration"
4445
+ },
4446
+ {
4447
+ path: "undefined.draftContent.richContent.nodes.audioData.audio.duration"
4448
+ },
4449
+ {
4450
+ path: "undefined.draftContent.richContent.nodes.audioData.coverImage.duration"
4451
+ },
4452
+ {
4453
+ path: "undefined.draftContent.richContent.nodes.layoutData.backgroundImage.media.duration"
4454
+ },
4455
+ {
4456
+ path: "undefined.draftContent.richContent.nodes.layoutData.backdropImage.media.duration"
4457
+ }
4458
+ ]
4459
+ },
4460
+ {
4461
+ transformFn: import_image3.transformRESTImageToSDKImage,
4462
+ paths: [
4463
+ { path: "undefined.content.attachments.image" },
4464
+ { path: "undefined.draftContent.attachments.image" }
4465
+ ]
4466
+ },
4467
+ {
4468
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
4469
+ paths: [
4470
+ { path: "undefined.content.attachments.video" },
4471
+ { path: "undefined.draftContent.attachments.video" }
4472
+ ]
4473
+ },
4474
+ {
4475
+ transformFn: import_audio3.transformRESTAudioToSDKAudio,
4476
+ paths: [
4477
+ { path: "undefined.content.attachments.audio" },
4478
+ { path: "undefined.draftContent.attachments.audio" }
4479
+ ]
4480
+ },
4481
+ {
4482
+ transformFn: import_document3.transformRESTDocumentToSDKDocument,
4483
+ paths: [
4484
+ { path: "undefined.content.attachments.document" },
4485
+ { path: "undefined.draftContent.attachments.document" }
4486
+ ]
4487
+ }
4488
+ ])
4489
+ )
4490
+ )();
4329
4491
  var onCommentContentChanged = (0, import_sdk_types.EventDefinition)(
4330
4492
  "wix.comments.v2.comment_comment_content_changed",
4331
4493
  true,
@@ -5481,168 +5643,6 @@ var onCommentCreated = (0, import_sdk_types.EventDefinition)(
5481
5643
  ])
5482
5644
  )
5483
5645
  )();
5484
- var onCommentDeleted = (0, import_sdk_types.EventDefinition)(
5485
- "wix.comments.v2.comment_deleted",
5486
- true,
5487
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
5488
- (0, import_transform_paths3.transformPaths)(event, [
5489
- {
5490
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
5491
- paths: [
5492
- { path: "undefined.createdDate" },
5493
- { path: "undefined.updatedDate" },
5494
- { path: "undefined.commentDate" },
5495
- { path: "undefined.content.commentDate" },
5496
- { path: "undefined.content.richContent.metadata.createdTimestamp" },
5497
- { path: "undefined.content.richContent.metadata.updatedTimestamp" },
5498
- { path: "undefined.draftContent.commentDate" },
5499
- {
5500
- path: "undefined.draftContent.richContent.metadata.createdTimestamp"
5501
- },
5502
- {
5503
- path: "undefined.draftContent.richContent.metadata.updatedTimestamp"
5504
- },
5505
- { path: "metadata.eventTime" }
5506
- ]
5507
- },
5508
- {
5509
- transformFn: import_float3.transformRESTFloatToSDKFloat,
5510
- paths: [
5511
- {
5512
- path: "undefined.content.richContent.nodes.galleryData.items.image.media.duration"
5513
- },
5514
- {
5515
- path: "undefined.content.richContent.nodes.galleryData.items.video.media.duration"
5516
- },
5517
- {
5518
- path: "undefined.content.richContent.nodes.galleryData.items.video.thumbnail.duration"
5519
- },
5520
- {
5521
- path: "undefined.content.richContent.nodes.galleryData.options.item.ratio"
5522
- },
5523
- {
5524
- path: "undefined.content.richContent.nodes.imageData.image.duration"
5525
- },
5526
- {
5527
- path: "undefined.content.richContent.nodes.mapData.mapSettings.lat"
5528
- },
5529
- {
5530
- path: "undefined.content.richContent.nodes.mapData.mapSettings.lng"
5531
- },
5532
- {
5533
- path: "undefined.content.richContent.nodes.pollData.poll.image.duration"
5534
- },
5535
- {
5536
- path: "undefined.content.richContent.nodes.pollData.poll.options.image.duration"
5537
- },
5538
- {
5539
- path: "undefined.content.richContent.nodes.pollData.design.poll.background.image.duration"
5540
- },
5541
- {
5542
- path: "undefined.content.richContent.nodes.appEmbedData.image.duration"
5543
- },
5544
- {
5545
- path: "undefined.content.richContent.nodes.videoData.video.duration"
5546
- },
5547
- {
5548
- path: "undefined.content.richContent.nodes.videoData.thumbnail.duration"
5549
- },
5550
- {
5551
- path: "undefined.content.richContent.nodes.audioData.audio.duration"
5552
- },
5553
- {
5554
- path: "undefined.content.richContent.nodes.audioData.coverImage.duration"
5555
- },
5556
- {
5557
- path: "undefined.content.richContent.nodes.layoutData.backgroundImage.media.duration"
5558
- },
5559
- {
5560
- path: "undefined.content.richContent.nodes.layoutData.backdropImage.media.duration"
5561
- },
5562
- {
5563
- path: "undefined.draftContent.richContent.nodes.galleryData.items.image.media.duration"
5564
- },
5565
- {
5566
- path: "undefined.draftContent.richContent.nodes.galleryData.items.video.media.duration"
5567
- },
5568
- {
5569
- path: "undefined.draftContent.richContent.nodes.galleryData.items.video.thumbnail.duration"
5570
- },
5571
- {
5572
- path: "undefined.draftContent.richContent.nodes.galleryData.options.item.ratio"
5573
- },
5574
- {
5575
- path: "undefined.draftContent.richContent.nodes.imageData.image.duration"
5576
- },
5577
- {
5578
- path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lat"
5579
- },
5580
- {
5581
- path: "undefined.draftContent.richContent.nodes.mapData.mapSettings.lng"
5582
- },
5583
- {
5584
- path: "undefined.draftContent.richContent.nodes.pollData.poll.image.duration"
5585
- },
5586
- {
5587
- path: "undefined.draftContent.richContent.nodes.pollData.poll.options.image.duration"
5588
- },
5589
- {
5590
- path: "undefined.draftContent.richContent.nodes.pollData.design.poll.background.image.duration"
5591
- },
5592
- {
5593
- path: "undefined.draftContent.richContent.nodes.appEmbedData.image.duration"
5594
- },
5595
- {
5596
- path: "undefined.draftContent.richContent.nodes.videoData.video.duration"
5597
- },
5598
- {
5599
- path: "undefined.draftContent.richContent.nodes.videoData.thumbnail.duration"
5600
- },
5601
- {
5602
- path: "undefined.draftContent.richContent.nodes.audioData.audio.duration"
5603
- },
5604
- {
5605
- path: "undefined.draftContent.richContent.nodes.audioData.coverImage.duration"
5606
- },
5607
- {
5608
- path: "undefined.draftContent.richContent.nodes.layoutData.backgroundImage.media.duration"
5609
- },
5610
- {
5611
- path: "undefined.draftContent.richContent.nodes.layoutData.backdropImage.media.duration"
5612
- }
5613
- ]
5614
- },
5615
- {
5616
- transformFn: import_image3.transformRESTImageToSDKImage,
5617
- paths: [
5618
- { path: "undefined.content.attachments.image" },
5619
- { path: "undefined.draftContent.attachments.image" }
5620
- ]
5621
- },
5622
- {
5623
- transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
5624
- paths: [
5625
- { path: "undefined.content.attachments.video" },
5626
- { path: "undefined.draftContent.attachments.video" }
5627
- ]
5628
- },
5629
- {
5630
- transformFn: import_audio3.transformRESTAudioToSDKAudio,
5631
- paths: [
5632
- { path: "undefined.content.attachments.audio" },
5633
- { path: "undefined.draftContent.attachments.audio" }
5634
- ]
5635
- },
5636
- {
5637
- transformFn: import_document3.transformRESTDocumentToSDKDocument,
5638
- paths: [
5639
- { path: "undefined.content.attachments.document" },
5640
- { path: "undefined.draftContent.attachments.document" }
5641
- ]
5642
- }
5643
- ])
5644
- )
5645
- )();
5646
5646
  var onCommentResourceCommentCountChanged = (0, import_sdk_types.EventDefinition)(
5647
5647
  "wix.comments.v2.comment_resource_comment_count_changed",
5648
5648
  true,
@@ -5978,6 +5978,7 @@ var bulkDeleteComment4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
5978
5978
  var bulkModerateDraftContent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkModerateDraftContent3);
5979
5979
  var bulkMoveCommentByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkMoveCommentByFilter3);
5980
5980
  var queryComments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryComments);
5981
+ var onCommentDeleted2 = (0, import_event_definition_modules.createEventModule)(onCommentDeleted);
5981
5982
  var onCommentContentChanged2 = (0, import_event_definition_modules.createEventModule)(
5982
5983
  onCommentContentChanged
5983
5984
  );
@@ -5987,7 +5988,6 @@ var onCommentMoved2 = (0, import_event_definition_modules.createEventModule)(onC
5987
5988
  var onCommentPublished2 = (0, import_event_definition_modules.createEventModule)(onCommentPublished);
5988
5989
  var onCommentUnmarked2 = (0, import_event_definition_modules.createEventModule)(onCommentUnmarked);
5989
5990
  var onCommentCreated2 = (0, import_event_definition_modules.createEventModule)(onCommentCreated);
5990
- var onCommentDeleted2 = (0, import_event_definition_modules.createEventModule)(onCommentDeleted);
5991
5991
  var onCommentResourceCommentCountChanged2 = (0, import_event_definition_modules.createEventModule)(
5992
5992
  onCommentResourceCommentCountChanged
5993
5993
  );