@wix/auto_sdk_comments_comments 1.0.21 → 1.0.22

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 (33) hide show
  1. package/build/cjs/index.d.ts +56 -21
  2. package/build/cjs/index.js +69 -18
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/{comments-v2-comment-comments.universal-BVp9019z.d.ts → index.typings.d.ts} +669 -19
  5. package/build/cjs/index.typings.js +3890 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +222 -19
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/es/index.d.mts +56 -21
  10. package/build/es/index.mjs +62 -18
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/{comments-v2-comment-comments.universal-BVp9019z.d.mts → index.typings.d.mts} +669 -19
  13. package/build/es/index.typings.mjs +3805 -0
  14. package/build/es/index.typings.mjs.map +1 -0
  15. package/build/es/meta.d.mts +222 -19
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/internal/cjs/index.d.ts +56 -21
  18. package/build/internal/cjs/index.js +69 -18
  19. package/build/internal/cjs/index.js.map +1 -1
  20. package/build/internal/cjs/{comments-v2-comment-comments.universal-BVp9019z.d.ts → index.typings.d.ts} +669 -19
  21. package/build/internal/cjs/index.typings.js +3890 -0
  22. package/build/internal/cjs/index.typings.js.map +1 -0
  23. package/build/internal/cjs/meta.d.ts +222 -19
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/es/index.d.mts +56 -21
  26. package/build/internal/es/index.mjs +62 -18
  27. package/build/internal/es/index.mjs.map +1 -1
  28. package/build/internal/es/{comments-v2-comment-comments.universal-BVp9019z.d.mts → index.typings.d.mts} +669 -19
  29. package/build/internal/es/index.typings.mjs +3805 -0
  30. package/build/internal/es/index.typings.mjs.map +1 -0
  31. package/build/internal/es/meta.d.mts +222 -19
  32. package/build/internal/es/meta.mjs.map +1 -1
  33. package/package.json +4 -3
@@ -1,7 +1,8 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { C as Comment, U as UpdateComment, M as ModerateDraftContentOptions, a as ModerateDraftContentResponse, b as CommentsQueryBuilder, c as MarkCommentResponse, d as UnmarkCommentResponse, H as HideCommentResponse, P as PublishCommentResponse, e as CountCommentsOptions, f as CountCommentsResponse, L as ListCommentsByResourceOptions, g as ListCommentsByResourceResponse, G as GetCommentThreadOptions, h as GetCommentThreadResponse, B as BulkPublishCommentOptions, i as BulkPublishCommentResponse, j as BulkHideCommentOptions, k as BulkHideCommentResponse, l as BulkDeleteCommentOptions, m as BulkDeleteCommentResponse, n as BulkModerateDraftContentOptions, o as BulkModerateDraftContentResponse, p as BulkMoveCommentByFilterOptions, q as BulkMoveCommentByFilterResponse, r as CommentContentChangedEnvelope, s as CommentHiddenEnvelope, t as CommentMarkedEnvelope, u as CommentMovedEnvelope, v as CommentPublishedEnvelope, w as CommentUnmarkedEnvelope, x as CommentCreatedEnvelope, y as CommentResourceCommentCountChangedEnvelope, z as CommentUpdatedEnvelope } from './comments-v2-comment-comments.universal-BVp9019z.js';
3
- export { ac as Action, cU as ActionEvent, J as Alignment, bh as AnchorData, bn as AppEmbedData, bo as AppEmbedDataAppDataOneOf, a5 as AppType, bN as Attachment, bO as AttachmentMediaOneOf, bC as AudioData, b7 as Background, b8 as BackgroundBackgroundOneOf, a2 as BackgroundType, cY as BaseEventMetadata, bF as BlockquoteData, bp as BookingData, an as Border, bA as BorderColors, cJ as BulkDeleteCommentRequest, cI as BulkHideCommentRequest, cK as BulkModerateDraftContentRequest, cL as BulkMoveCommentByFilterRequest, cH as BulkPublishCommentRequest, bE as BulletedListData, am as ButtonData, bG as CaptionData, bz as CellStyle, ay as CodeBlockData, bv as CollapsibleListData, bi as ColorData, ao as Colors, bS as CommentAuthor, bT as CommentAuthorIdentityOneOf, ah as CommentContent, cf as CommentContentChanged, ci as CommentDeleted, cl as CommentHidden, cv as CommentMarked, c6 as CommentModerated, cN as CommentMoved, ck as CommentPublished, bW as CommentReactionSummary, cC as CommentSort, cx as CommentUnmarked, c_ as CommentsQueryResult, c8 as ContactDetails, bQ as ContentAuthor, bR as ContentAuthorAuthorOneOf, cA as CountCommentsRequest, c7 as CreateCommentRequest, c9 as CreateCommentResponse, Q as Crop, cq as CursorPaging, cs as CursorPagingMetadata, cn as CursorQuery, co as CursorQueryPagingMethodOneOf, ct as Cursors, bf as Decoration, bg as DecorationDataOneOf, a3 as DecorationType, c0 as DeleteByFilterOperation, b$ as DeleteByIdsOperation, cg as DeleteCommentRequest, ch as DeleteCommentResponse, bd as Design, cM as Destination, bx as Dimensions, a7 as Direction, aA as DividerData, bJ as DocumentStyle, cO as DomainEvent, cP as DomainEventBodyOneOf, bt as EmbedData, cQ as EntityCreatedEvent, cT as EntityDeletedEvent, cS as EntityUpdatedEvent, bq as EventData, cZ as EventMetadata, aB as FileData, aC as FileSource, aD as FileSourceDataOneOf, bl as FontSizeData, a4 as FontType, aQ as GIF, aP as GIFData, S as GIFType, aF as GalleryData, aL as GalleryOptions, cb as GetCommentRequest, cc as GetCommentResponse, cG as GetCommentThreadRequest, b6 as Gradient, aS as HTMLData, aT as HTMLDataDataOneOf, aR as HeadingData, at as Height, cy as HideCommentRequest, cW as IdentificationData, cX as IdentificationDataIdOneOf, aH as Image, aU as ImageData, aW as ImageDataStyles, a6 as InitialExpandedItems, bZ as InternalDocument, c1 as InternalDocumentUpdateByFilterOperation, b_ as InternalDocumentUpdateOperation, c2 as InternalUpdateExistingOperation, aJ as Item, aK as ItemDataOneOf, aN as ItemStyle, aM as Layout, bH as LayoutCellData, K as LayoutType, F as LineStyle, av as Link, bj as LinkData, aw as LinkDataOneOf, aX as LinkPreviewData, aY as LinkPreviewDataStyles, cE as ListCommentsByResourceCursorPaging, cB as ListCommentsByResourceRequest, bB as ListValue, aZ as MapData, a_ as MapSettings, Z as MapType, cu as MarkCommentRequest, aG as Media, bL as Mention, bk as MentionData, bM as MentionIdentityOneOf, cV as MessageEnvelope, bI as Metadata, cj as ModerateDraftContentRequest, aj as Node, ak as NodeDataOneOf, al as NodeStyle, N as NodeType, a9 as NullValue, bu as Oembed, b2 as Option, ba as OptionDesign, b5 as OptionLayout, ae as Order, bD as OrderedListData, O as Orientation, aE as PDFSettings, a$ as ParagraphData, bU as ParentComment, b1 as Permissions, bs as PlaybackOptions, ap as PluginContainerData, A as PluginContainerDataAlignment, aq as PluginContainerDataWidth, ar as PluginContainerDataWidthDataOneOf, bb as Poll, b0 as PollData, bc as PollDataLayout, b9 as PollDesign, b4 as PollLayout, a1 as PollLayoutDirection, a0 as PollLayoutType, Y as Position, cz as PublishCommentRequest, cm as QueryCommentsRequest, cr as QueryCommentsResponse, ax as Rel, cF as RepliesListResponse, cD as ReplySort, af as ReplySortOrder, ca as ResourceCommentCountChanged, cR as RestoreInfo, ai as RichContent, b3 as Settings, ad as SortOrder, cp as Sorting, X as Source, as as Spoiler, bm as SpoilerData, aa as Status, au as Styles, aV as StylesBorder, by as TableCellData, bw as TableData, D as Target, E as TextAlignment, be as TextData, bK as TextNodeStyle, az as TextStyle, aO as Thumbnails, R as ThumbnailsAlignment, T as Type, cw as UnmarkCommentRequest, cd as UpdateCommentRequest, ce as UpdateCommentResponse, bX as UpdateInternalDocumentsEvent, bY as UpdateInternalDocumentsEventOperationOneOf, c4 as VersionedDeleteByIdsOperation, c5 as VersionedDocumentId, c3 as VersionedDocumentUpdateOperation, ab as VersioningMode, a8 as VerticalAlignment, aI as Video, br as VideoData, bP as VideoResolution, V as ViewMode, _ as ViewRole, $ as VoteRole, bV as VoteSummary, ag as WebhookIdentityType, I as Width, W as WidthType } from './comments-v2-comment-comments.universal-BVp9019z.js';
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';
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
+ type CommentNonNullablePaths = `content.mentions` | `content.attachments` | `parentComment.status` | `replyCount` | `voteSummary.netVoteCount` | `voteSummary.upvoteCount` | `voteSummary.downvoteCount` | `status` | `reactionSummary.total` | `marked`;
5
6
  declare function createComment$1(httpClient: HttpClient): CreateCommentSignature;
6
7
  interface CreateCommentSignature {
7
8
  /**
@@ -15,7 +16,9 @@ interface CreateCommentSignature {
15
16
  * @param - Comment to create.
16
17
  * @returns Created comment.
17
18
  */
18
- (comment: Comment): Promise<Comment>;
19
+ (comment: NonNullablePaths<Comment, `appId` | `content` | `contextId` | `resourceId`>): Promise<NonNullablePaths<Comment, CommentNonNullablePaths> & {
20
+ __applicationErrorsType?: CreateCommentApplicationErrors;
21
+ }>;
19
22
  }
20
23
  declare function getComment$1(httpClient: HttpClient): GetCommentSignature;
21
24
  interface GetCommentSignature {
@@ -24,7 +27,7 @@ interface GetCommentSignature {
24
27
  * @param - ID of the comment to retrieve.
25
28
  * @returns Retrieved comment.
26
29
  */
27
- (commentId: string): Promise<Comment>;
30
+ (commentId: string): Promise<NonNullablePaths<Comment, CommentNonNullablePaths>>;
28
31
  }
29
32
  declare function updateComment$1(httpClient: HttpClient): UpdateCommentSignature;
30
33
  interface UpdateCommentSignature {
@@ -37,7 +40,9 @@ interface UpdateCommentSignature {
37
40
  * @param - Comment ID.
38
41
  * @returns Updated comment.
39
42
  */
40
- (_id: string, comment: UpdateComment): Promise<Comment>;
43
+ (_id: string, comment: NonNullablePaths<UpdateComment, `revision`>): Promise<NonNullablePaths<Comment, CommentNonNullablePaths> & {
44
+ __applicationErrorsType?: UpdateCommentApplicationErrors;
45
+ }>;
41
46
  }
42
47
  declare function deleteComment$1(httpClient: HttpClient): DeleteCommentSignature;
43
48
  interface DeleteCommentSignature {
@@ -55,13 +60,20 @@ interface ModerateDraftContentSignature {
55
60
  * Moderates the draft content of a comment.
56
61
  *
57
62
  * - `APPROVE`: Moves `draftContent` to `content` and updates the comment `status` to `PUBLISHED`.
58
- * - `REJECT`: Clears `draftContent` if comment `status` is `PUBLISHED` or, if comment `status` is `PENDING` it will keep `draftContent` the same and change `status` to `HIDDEN`.
63
+ *
64
+ * - `REJECT`: Handles the draft content based on the current comment status:
65
+ * - If the comment `status` is `PUBLISHED`, clears `draftContent`.
66
+ * - If the comment `status` is `PENDING`, keeps `draftContent` unchanged and changes `status` to `HIDDEN`.
67
+ *
68
+ * To moderate multiple comments, call Bulk Moderate Draft Content.
59
69
  * @param - ID of the comment to moderate.
60
70
  * @param - Revision number, which increments by `1` each time the comment is updated.
61
71
  *
62
72
  * To prevent conflicting changes, the current `revision` must be passed when updating the comment.
63
73
  */
64
- (commentId: string, revision: string, options?: ModerateDraftContentOptions | undefined): Promise<ModerateDraftContentResponse>;
74
+ (commentId: string, revision: string, options?: ModerateDraftContentOptions): Promise<NonNullablePaths<ModerateDraftContentResponse, {
75
+ [P in CommentNonNullablePaths]: `comment.${P}`;
76
+ }[CommentNonNullablePaths]>>;
65
77
  }
66
78
  declare function queryComments$1(httpClient: HttpClient): QueryCommentsSignature;
67
79
  interface QueryCommentsSignature {
@@ -93,7 +105,9 @@ interface MarkCommentSignature {
93
105
  * See Sample Flows for an example.
94
106
  * @param - ID of the comment to mark.
95
107
  */
96
- (commentId: string): Promise<MarkCommentResponse>;
108
+ (commentId: string): Promise<NonNullablePaths<MarkCommentResponse, {
109
+ [P in CommentNonNullablePaths]: `comment.${P}`;
110
+ }[CommentNonNullablePaths]>>;
97
111
  }
98
112
  declare function unmarkComment$1(httpClient: HttpClient): UnmarkCommentSignature;
99
113
  interface UnmarkCommentSignature {
@@ -101,7 +115,9 @@ interface UnmarkCommentSignature {
101
115
  * Sets `marked` to `FALSE` to unmark a comment.
102
116
  * @param - ID of the comment to unmark.
103
117
  */
104
- (commentId: string): Promise<UnmarkCommentResponse>;
118
+ (commentId: string): Promise<NonNullablePaths<UnmarkCommentResponse, {
119
+ [P in CommentNonNullablePaths]: `comment.${P}`;
120
+ }[CommentNonNullablePaths]>>;
105
121
  }
106
122
  declare function hideComment$1(httpClient: HttpClient): HideCommentSignature;
107
123
  interface HideCommentSignature {
@@ -109,7 +125,9 @@ interface HideCommentSignature {
109
125
  * Hides a comment in a widget. The comment status becomes `HIDDEN`.
110
126
  * @param - ID of the comment to hide.
111
127
  */
112
- (commentId: string): Promise<HideCommentResponse>;
128
+ (commentId: string): Promise<NonNullablePaths<HideCommentResponse, {
129
+ [P in CommentNonNullablePaths]: `comment.${P}`;
130
+ }[CommentNonNullablePaths]>>;
113
131
  }
114
132
  declare function publishComment$1(httpClient: HttpClient): PublishCommentSignature;
115
133
  interface PublishCommentSignature {
@@ -119,7 +137,9 @@ interface PublishCommentSignature {
119
137
  * To publish a new comment, call Create Comment.
120
138
  * @param - ID of the comment to publish.
121
139
  */
122
- (commentId: string): Promise<PublishCommentResponse>;
140
+ (commentId: string): Promise<NonNullablePaths<PublishCommentResponse, {
141
+ [P in CommentNonNullablePaths]: `comment.${P}`;
142
+ }[CommentNonNullablePaths]>>;
123
143
  }
124
144
  declare function countComments$1(httpClient: HttpClient): CountCommentsSignature;
125
145
  interface CountCommentsSignature {
@@ -127,7 +147,9 @@ interface CountCommentsSignature {
127
147
  * Counts comments, given the specified filtering. Comments with the `HIDDEN` status are not included in the response.
128
148
  * @param - App ID to count the comments of.
129
149
  */
130
- (appId: string, options?: CountCommentsOptions | undefined): Promise<CountCommentsResponse>;
150
+ (appId: string, options?: CountCommentsOptions): Promise<NonNullablePaths<CountCommentsResponse, `count`> & {
151
+ __applicationErrorsType?: CountCommentsApplicationErrors;
152
+ }>;
131
153
  }
132
154
  declare function listCommentsByResource$1(httpClient: HttpClient): ListCommentsByResourceSignature;
133
155
  interface ListCommentsByResourceSignature {
@@ -135,7 +157,9 @@ interface ListCommentsByResourceSignature {
135
157
  * Lists published comments and replies from a specified resource, such as a blog post.
136
158
  * @param - ID of the app from which the comments are listed.
137
159
  */
138
- (appId: string, options?: ListCommentsByResourceOptions | undefined): Promise<ListCommentsByResourceResponse>;
160
+ (appId: string, options?: NonNullablePaths<ListCommentsByResourceOptions, `contextId` | `resourceId`>): Promise<NonNullablePaths<ListCommentsByResourceResponse, {
161
+ [P in CommentNonNullablePaths]: `comments.${number}.${P}`;
162
+ }[CommentNonNullablePaths]>>;
139
163
  }
140
164
  declare function getCommentThread$1(httpClient: HttpClient): GetCommentThreadSignature;
141
165
  interface GetCommentThreadSignature {
@@ -147,7 +171,9 @@ interface GetCommentThreadSignature {
147
171
  * If you request a reply thread, the method returns a reply with its parent comment. With cursors (`pagingMetadata.cursors.next` or `pagingMetadata.cursors.prev`) you can load replies by calling the List Comments by Resource method.
148
172
  * @param - Comment ID.
149
173
  */
150
- (commentId: string, options?: GetCommentThreadOptions | undefined): Promise<GetCommentThreadResponse>;
174
+ (commentId: string, options?: GetCommentThreadOptions): Promise<NonNullablePaths<GetCommentThreadResponse, {
175
+ [P in CommentNonNullablePaths]: `comments.${number}.${P}`;
176
+ }[CommentNonNullablePaths]>>;
151
177
  }
152
178
  declare function bulkPublishComment$1(httpClient: HttpClient): BulkPublishCommentSignature;
153
179
  interface BulkPublishCommentSignature {
@@ -155,7 +181,7 @@ interface BulkPublishCommentSignature {
155
181
  * Publishes multiple comments with the `HIDDEN` status. The comment status becomes `PUBLISHED`.
156
182
  * @param - ID of the app where to publish the comment.
157
183
  */
158
- (appId: string, options: BulkPublishCommentOptions): Promise<BulkPublishCommentResponse>;
184
+ (appId: string, options: NonNullablePaths<BulkPublishCommentOptions, `filter`>): Promise<NonNullablePaths<BulkPublishCommentResponse, `jobId`>>;
159
185
  }
160
186
  declare function bulkHideComment$1(httpClient: HttpClient): BulkHideCommentSignature;
161
187
  interface BulkHideCommentSignature {
@@ -163,7 +189,7 @@ interface BulkHideCommentSignature {
163
189
  * Hides multiple comments. The comment status becomes `HIDDEN`.
164
190
  * @param - ID of the app where to hide the comments.
165
191
  */
166
- (appId: string, options: BulkHideCommentOptions): Promise<BulkHideCommentResponse>;
192
+ (appId: string, options: NonNullablePaths<BulkHideCommentOptions, `filter`>): Promise<NonNullablePaths<BulkHideCommentResponse, `jobId`>>;
167
193
  }
168
194
  declare function bulkDeleteComment$1(httpClient: HttpClient): BulkDeleteCommentSignature;
169
195
  interface BulkDeleteCommentSignature {
@@ -171,15 +197,24 @@ interface BulkDeleteCommentSignature {
171
197
  * Deletes multiple comments.
172
198
  * @param - ID of the app where to delete the comments.
173
199
  */
174
- (appId: string, options: BulkDeleteCommentOptions): Promise<BulkDeleteCommentResponse>;
200
+ (appId: string, options: NonNullablePaths<BulkDeleteCommentOptions, `filter`>): Promise<NonNullablePaths<BulkDeleteCommentResponse, `jobId`>>;
175
201
  }
176
202
  declare function bulkModerateDraftContent$1(httpClient: HttpClient): BulkModerateDraftContentSignature;
177
203
  interface BulkModerateDraftContentSignature {
178
204
  /**
179
- * Moderates the draft content of multiple comments.
205
+ * Moderates the draft content of multiple comments that match the specified filter.
206
+ *
207
+ * The same action, `APPROVE` or `REJECT`, applies to all comments that match the filter.
208
+ * - `APPROVE`: Moves `draftContent` to `content` and updates the comment `status` to `PUBLISHED`.
209
+ *
210
+ * - `REJECT`: Handles the draft content based on the current comment status:
211
+ * - If the comment `status` is `PUBLISHED`, clears `draftContent`.
212
+ * - If the comment `status` is `PENDING`, keeps `draftContent` unchanged and changes `status` to `HIDDEN`.
213
+ *
214
+ * To moderate a single comment, call Moderate Draft Content.
180
215
  * @param - ID of the app where to moderate the comments.
181
216
  */
182
- (appId: string, options: BulkModerateDraftContentOptions): Promise<BulkModerateDraftContentResponse>;
217
+ (appId: string, options: NonNullablePaths<BulkModerateDraftContentOptions, `draftContentAction` | `filter`>): Promise<NonNullablePaths<BulkModerateDraftContentResponse, `jobId`>>;
183
218
  }
184
219
  declare function bulkMoveCommentByFilter$1(httpClient: HttpClient): BulkMoveCommentByFilterSignature;
185
220
  interface BulkMoveCommentByFilterSignature {
@@ -187,7 +222,7 @@ interface BulkMoveCommentByFilterSignature {
187
222
  * Moves multiple comments to another resource.
188
223
  * @param - ID of the app from which to move the comments.
189
224
  */
190
- (appId: string, options?: BulkMoveCommentByFilterOptions | undefined): Promise<BulkMoveCommentByFilterResponse>;
225
+ (appId: string, options?: NonNullablePaths<BulkMoveCommentByFilterOptions, `destination.contextId` | `destination.resourceId` | `filter`>): Promise<NonNullablePaths<BulkMoveCommentByFilterResponse, `jobId`>>;
191
226
  }
192
227
  declare const onCommentContentChanged$1: EventDefinition<CommentContentChangedEnvelope, "wix.comments.v2.comment_comment_content_changed">;
193
228
  declare const onCommentHidden$1: EventDefinition<CommentHiddenEnvelope, "wix.comments.v2.comment_comment_hidden">;
@@ -23,13 +23,17 @@ __export(index_exports, {
23
23
  Action: () => Action,
24
24
  Alignment: () => Alignment,
25
25
  AppType: () => AppType,
26
+ AspectRatio: () => AspectRatio,
26
27
  BackgroundType: () => BackgroundType,
28
+ ButtonDataType: () => ButtonDataType,
27
29
  Crop: () => Crop,
28
30
  DecorationType: () => DecorationType,
29
31
  Direction: () => Direction,
32
+ DividerDataAlignment: () => DividerDataAlignment,
30
33
  FontType: () => FontType,
31
34
  GIFType: () => GIFType,
32
35
  InitialExpandedItems: () => InitialExpandedItems,
36
+ Layout: () => Layout,
33
37
  LayoutType: () => LayoutType,
34
38
  LineStyle: () => LineStyle,
35
39
  MapType: () => MapType,
@@ -37,14 +41,17 @@ __export(index_exports, {
37
41
  NullValue: () => NullValue,
38
42
  Order: () => Order,
39
43
  Orientation: () => Orientation,
44
+ Placement: () => Placement,
40
45
  PluginContainerDataAlignment: () => PluginContainerDataAlignment,
41
46
  PollLayoutDirection: () => PollLayoutDirection,
42
47
  PollLayoutType: () => PollLayoutType,
43
48
  Position: () => Position,
44
49
  ReplySortOrder: () => ReplySortOrder,
50
+ Resizing: () => Resizing,
45
51
  SortOrder: () => SortOrder,
46
52
  Source: () => Source,
47
53
  Status: () => Status,
54
+ StylesPosition: () => StylesPosition,
48
55
  Target: () => Target,
49
56
  TextAlignment: () => TextAlignment,
50
57
  ThumbnailsAlignment: () => ThumbnailsAlignment,
@@ -2604,11 +2611,11 @@ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignmen
2604
2611
  PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
2605
2612
  return PluginContainerDataAlignment2;
2606
2613
  })(PluginContainerDataAlignment || {});
2607
- var Type = /* @__PURE__ */ ((Type2) => {
2608
- Type2["LINK"] = "LINK";
2609
- Type2["ACTION"] = "ACTION";
2610
- return Type2;
2611
- })(Type || {});
2614
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
2615
+ ButtonDataType2["LINK"] = "LINK";
2616
+ ButtonDataType2["ACTION"] = "ACTION";
2617
+ return ButtonDataType2;
2618
+ })(ButtonDataType || {});
2612
2619
  var Target = /* @__PURE__ */ ((Target2) => {
2613
2620
  Target2["SELF"] = "SELF";
2614
2621
  Target2["BLANK"] = "BLANK";
@@ -2637,12 +2644,12 @@ var Width = /* @__PURE__ */ ((Width2) => {
2637
2644
  Width2["SMALL"] = "SMALL";
2638
2645
  return Width2;
2639
2646
  })(Width || {});
2640
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
2641
- Alignment2["CENTER"] = "CENTER";
2642
- Alignment2["LEFT"] = "LEFT";
2643
- Alignment2["RIGHT"] = "RIGHT";
2644
- return Alignment2;
2645
- })(Alignment || {});
2647
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
2648
+ DividerDataAlignment2["CENTER"] = "CENTER";
2649
+ DividerDataAlignment2["LEFT"] = "LEFT";
2650
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
2651
+ return DividerDataAlignment2;
2652
+ })(DividerDataAlignment || {});
2646
2653
  var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
2647
2654
  ViewMode2["NONE"] = "NONE";
2648
2655
  ViewMode2["FULL"] = "FULL";
@@ -2690,13 +2697,13 @@ var Source = /* @__PURE__ */ ((Source2) => {
2690
2697
  Source2["ADSENSE"] = "ADSENSE";
2691
2698
  return Source2;
2692
2699
  })(Source || {});
2693
- var Position = /* @__PURE__ */ ((Position2) => {
2694
- Position2["START"] = "START";
2695
- Position2["END"] = "END";
2696
- Position2["TOP"] = "TOP";
2697
- Position2["HIDDEN"] = "HIDDEN";
2698
- return Position2;
2699
- })(Position || {});
2700
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
2701
+ StylesPosition2["START"] = "START";
2702
+ StylesPosition2["END"] = "END";
2703
+ StylesPosition2["TOP"] = "TOP";
2704
+ StylesPosition2["HIDDEN"] = "HIDDEN";
2705
+ return StylesPosition2;
2706
+ })(StylesPosition || {});
2700
2707
  var MapType = /* @__PURE__ */ ((MapType2) => {
2701
2708
  MapType2["ROADMAP"] = "ROADMAP";
2702
2709
  MapType2["SATELITE"] = "SATELITE";
@@ -2752,6 +2759,43 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
2752
2759
  FontType2["EM"] = "EM";
2753
2760
  return FontType2;
2754
2761
  })(FontType || {});
2762
+ var Position = /* @__PURE__ */ ((Position2) => {
2763
+ Position2["START"] = "START";
2764
+ Position2["END"] = "END";
2765
+ Position2["TOP"] = "TOP";
2766
+ return Position2;
2767
+ })(Position || {});
2768
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
2769
+ AspectRatio2["SQUARE"] = "SQUARE";
2770
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
2771
+ return AspectRatio2;
2772
+ })(AspectRatio || {});
2773
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
2774
+ Resizing2["FILL"] = "FILL";
2775
+ Resizing2["FIT"] = "FIT";
2776
+ return Resizing2;
2777
+ })(Resizing || {});
2778
+ var Placement = /* @__PURE__ */ ((Placement2) => {
2779
+ Placement2["IMAGE"] = "IMAGE";
2780
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
2781
+ return Placement2;
2782
+ })(Placement || {});
2783
+ var Type = /* @__PURE__ */ ((Type2) => {
2784
+ Type2["CONTAINED"] = "CONTAINED";
2785
+ Type2["FRAMELESS"] = "FRAMELESS";
2786
+ return Type2;
2787
+ })(Type || {});
2788
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
2789
+ Alignment2["START"] = "START";
2790
+ Alignment2["CENTER"] = "CENTER";
2791
+ Alignment2["END"] = "END";
2792
+ return Alignment2;
2793
+ })(Alignment || {});
2794
+ var Layout = /* @__PURE__ */ ((Layout2) => {
2795
+ Layout2["STACKED"] = "STACKED";
2796
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
2797
+ return Layout2;
2798
+ })(Layout || {});
2755
2799
  var AppType = /* @__PURE__ */ ((AppType2) => {
2756
2800
  AppType2["PRODUCT"] = "PRODUCT";
2757
2801
  AppType2["EVENT"] = "EVENT";
@@ -5206,13 +5250,17 @@ var onCommentUpdated2 = (0, import_event_definition_modules.createEventModule)(o
5206
5250
  Action,
5207
5251
  Alignment,
5208
5252
  AppType,
5253
+ AspectRatio,
5209
5254
  BackgroundType,
5255
+ ButtonDataType,
5210
5256
  Crop,
5211
5257
  DecorationType,
5212
5258
  Direction,
5259
+ DividerDataAlignment,
5213
5260
  FontType,
5214
5261
  GIFType,
5215
5262
  InitialExpandedItems,
5263
+ Layout,
5216
5264
  LayoutType,
5217
5265
  LineStyle,
5218
5266
  MapType,
@@ -5220,14 +5268,17 @@ var onCommentUpdated2 = (0, import_event_definition_modules.createEventModule)(o
5220
5268
  NullValue,
5221
5269
  Order,
5222
5270
  Orientation,
5271
+ Placement,
5223
5272
  PluginContainerDataAlignment,
5224
5273
  PollLayoutDirection,
5225
5274
  PollLayoutType,
5226
5275
  Position,
5227
5276
  ReplySortOrder,
5277
+ Resizing,
5228
5278
  SortOrder,
5229
5279
  Source,
5230
5280
  Status,
5281
+ StylesPosition,
5231
5282
  Target,
5232
5283
  TextAlignment,
5233
5284
  ThumbnailsAlignment,