@wix/auto_sdk_comments_comments 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/comments-v2-comment-comments.context.d.ts +68 -0
  11. package/build/cjs/src/comments-v2-comment-comments.context.js +108 -0
  12. package/build/cjs/src/comments-v2-comment-comments.context.js.map +1 -0
  13. package/build/cjs/src/comments-v2-comment-comments.http.d.ts +90 -0
  14. package/build/cjs/src/comments-v2-comment-comments.http.js +2527 -0
  15. package/build/cjs/src/comments-v2-comment-comments.http.js.map +1 -0
  16. package/build/cjs/src/comments-v2-comment-comments.meta.d.ts +48 -0
  17. package/build/cjs/src/comments-v2-comment-comments.meta.js +370 -0
  18. package/build/cjs/src/comments-v2-comment-comments.meta.js.map +1 -0
  19. package/build/cjs/src/comments-v2-comment-comments.public.d.ts +202 -0
  20. package/build/cjs/src/comments-v2-comment-comments.public.js +1340 -0
  21. package/build/cjs/src/comments-v2-comment-comments.public.js.map +1 -0
  22. package/build/cjs/src/comments-v2-comment-comments.types.d.ts +2679 -0
  23. package/build/cjs/src/comments-v2-comment-comments.types.js +374 -0
  24. package/build/cjs/src/comments-v2-comment-comments.types.js.map +1 -0
  25. package/build/cjs/src/comments-v2-comment-comments.universal.d.ts +3180 -0
  26. package/build/cjs/src/comments-v2-comment-comments.universal.js +1563 -0
  27. package/build/cjs/src/comments-v2-comment-comments.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/comments-v2-comment-comments.context.d.ts +68 -0
  39. package/build/es/src/comments-v2-comment-comments.context.js +68 -0
  40. package/build/es/src/comments-v2-comment-comments.context.js.map +1 -0
  41. package/build/es/src/comments-v2-comment-comments.http.d.ts +90 -0
  42. package/build/es/src/comments-v2-comment-comments.http.js +2506 -0
  43. package/build/es/src/comments-v2-comment-comments.http.js.map +1 -0
  44. package/build/es/src/comments-v2-comment-comments.meta.d.ts +48 -0
  45. package/build/es/src/comments-v2-comment-comments.meta.js +326 -0
  46. package/build/es/src/comments-v2-comment-comments.meta.js.map +1 -0
  47. package/build/es/src/comments-v2-comment-comments.public.d.ts +202 -0
  48. package/build/es/src/comments-v2-comment-comments.public.js +1282 -0
  49. package/build/es/src/comments-v2-comment-comments.public.js.map +1 -0
  50. package/build/es/src/comments-v2-comment-comments.types.d.ts +2679 -0
  51. package/build/es/src/comments-v2-comment-comments.types.js +371 -0
  52. package/build/es/src/comments-v2-comment-comments.types.js.map +1 -0
  53. package/build/es/src/comments-v2-comment-comments.universal.d.ts +3180 -0
  54. package/build/es/src/comments-v2-comment-comments.universal.js +1518 -0
  55. package/build/es/src/comments-v2-comment-comments.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/comments-v2-comment-comments.context.d.ts +68 -0
  66. package/build/internal/cjs/src/comments-v2-comment-comments.context.js +108 -0
  67. package/build/internal/cjs/src/comments-v2-comment-comments.context.js.map +1 -0
  68. package/build/internal/cjs/src/comments-v2-comment-comments.http.d.ts +90 -0
  69. package/build/internal/cjs/src/comments-v2-comment-comments.http.js +2527 -0
  70. package/build/internal/cjs/src/comments-v2-comment-comments.http.js.map +1 -0
  71. package/build/internal/cjs/src/comments-v2-comment-comments.meta.d.ts +48 -0
  72. package/build/internal/cjs/src/comments-v2-comment-comments.meta.js +370 -0
  73. package/build/internal/cjs/src/comments-v2-comment-comments.meta.js.map +1 -0
  74. package/build/internal/cjs/src/comments-v2-comment-comments.public.d.ts +202 -0
  75. package/build/internal/cjs/src/comments-v2-comment-comments.public.js +1340 -0
  76. package/build/internal/cjs/src/comments-v2-comment-comments.public.js.map +1 -0
  77. package/build/internal/cjs/src/comments-v2-comment-comments.types.d.ts +2679 -0
  78. package/build/internal/cjs/src/comments-v2-comment-comments.types.js +374 -0
  79. package/build/internal/cjs/src/comments-v2-comment-comments.types.js.map +1 -0
  80. package/build/internal/cjs/src/comments-v2-comment-comments.universal.d.ts +3180 -0
  81. package/build/internal/cjs/src/comments-v2-comment-comments.universal.js +1563 -0
  82. package/build/internal/cjs/src/comments-v2-comment-comments.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/comments-v2-comment-comments.context.d.ts +68 -0
  93. package/build/internal/es/src/comments-v2-comment-comments.context.js +68 -0
  94. package/build/internal/es/src/comments-v2-comment-comments.context.js.map +1 -0
  95. package/build/internal/es/src/comments-v2-comment-comments.http.d.ts +90 -0
  96. package/build/internal/es/src/comments-v2-comment-comments.http.js +2506 -0
  97. package/build/internal/es/src/comments-v2-comment-comments.http.js.map +1 -0
  98. package/build/internal/es/src/comments-v2-comment-comments.meta.d.ts +48 -0
  99. package/build/internal/es/src/comments-v2-comment-comments.meta.js +326 -0
  100. package/build/internal/es/src/comments-v2-comment-comments.meta.js.map +1 -0
  101. package/build/internal/es/src/comments-v2-comment-comments.public.d.ts +202 -0
  102. package/build/internal/es/src/comments-v2-comment-comments.public.js +1282 -0
  103. package/build/internal/es/src/comments-v2-comment-comments.public.js.map +1 -0
  104. package/build/internal/es/src/comments-v2-comment-comments.types.d.ts +2679 -0
  105. package/build/internal/es/src/comments-v2-comment-comments.types.js +371 -0
  106. package/build/internal/es/src/comments-v2-comment-comments.types.js.map +1 -0
  107. package/build/internal/es/src/comments-v2-comment-comments.universal.d.ts +3180 -0
  108. package/build/internal/es/src/comments-v2-comment-comments.universal.js +1518 -0
  109. package/build/internal/es/src/comments-v2-comment-comments.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,3180 @@
1
+ /**
2
+ * A comment is a user-generated message in response to a specific resource. It allows site visitors
3
+ * to share feedback or engage in discussions around different types of resources, including blog posts, forum threads,
4
+ * or other site content. Comments are composed of text, images, videos, or other forms of media.
5
+ */
6
+ export interface Comment {
7
+ /**
8
+ * Comment ID.
9
+ * @readonly
10
+ */
11
+ _id?: string | null;
12
+ /**
13
+ * Revision number, which increments by 1 each time the comment is updated.
14
+ *
15
+ * To prevent conflicting changes, the current `revision` must be passed when updating the comment.
16
+ * @readonly
17
+ */
18
+ revision?: string | null;
19
+ /**
20
+ * Date and time the comment was created.
21
+ *
22
+ * **Note:** This is the date from the system database, not the actual date when the comment was created. For example, if you migrate comments created in 2016, the `createdDate` field will show the current year. For the actual creation date, see the `commentDate` field.
23
+ * @readonly
24
+ */
25
+ _createdDate?: Date | null;
26
+ /**
27
+ * Date and time the comment was last updated.
28
+ * @readonly
29
+ */
30
+ _updatedDate?: Date | null;
31
+ /** ID of the app that the comment is added to. */
32
+ appId?: string | null;
33
+ /**
34
+ * ID of the specific context the comment is in response to.
35
+ *
36
+ * Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum,
37
+ * the `forumPostId` is used as both the `contextId` and the `resourceId`.
38
+ */
39
+ contextId?: string | null;
40
+ /**
41
+ * ID of the specific resource that the comment is in response to.
42
+ *
43
+ * Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum,
44
+ * the `forumPostId` is used as both the `resourceId` and the `contextId`.
45
+ */
46
+ resourceId?: string | null;
47
+ /** Published comment content. */
48
+ content?: CommentContent;
49
+ /** Comment's author. */
50
+ author?: CommentAuthor;
51
+ /**
52
+ * Parent comment information.
53
+ *
54
+ * Only present if this comment is in a direct reply to another comment.
55
+ * See **Terminology** in the Comments introduction
56
+ * for more information about parent comments.
57
+ */
58
+ parentComment?: ParentComment;
59
+ /**
60
+ * Number of comments that reply to this comment.
61
+ * @readonly
62
+ */
63
+ replyCount?: number;
64
+ /**
65
+ * Summary of votes.
66
+ * @readonly
67
+ */
68
+ voteSummary?: VoteSummary;
69
+ /**
70
+ * Comment status.
71
+ * @readonly
72
+ */
73
+ status?: Status;
74
+ /**
75
+ * Comment rating.
76
+ * @readonly
77
+ */
78
+ rating?: number | null;
79
+ /**
80
+ * Summary of reactions.
81
+ * @readonly
82
+ */
83
+ reactionSummary?: CommentReactionSummary;
84
+ /** Whether the comment is marked. */
85
+ marked?: boolean;
86
+ /** Date and time when the comment was actually created. */
87
+ commentDate?: Date | null;
88
+ /**
89
+ * Whether the comment has the updated content.
90
+ * @readonly
91
+ */
92
+ contentEdited?: boolean | null;
93
+ }
94
+ /** Comment content. */
95
+ export interface CommentContent {
96
+ /**
97
+ * Comment rich content.
98
+ *
99
+ * <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" exampleid="5693ba57-d141-42bf-a0d6-1eb11c73bddf" plugins="emoji.heading.indent.lineSpacing.actionButton.audio.codeBlock.collapsibleList.divider.file.gallery.giphy.hashtag.html.image.link.linkButton.linkPreview.mentions.poll.spoiler.table.textColor.textHighlight.verticalEmbed.video">
100
+ * <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
101
+ * </widget>
102
+ */
103
+ richContent?: RichContent;
104
+ /**
105
+ * People to tag with this comment.
106
+ *
107
+ * People can include users, members, visitors, or groups.
108
+ */
109
+ mentions?: Mention[];
110
+ /** Content attachments. */
111
+ attachments?: Attachment[];
112
+ }
113
+ export interface RichContent {
114
+ /** Node objects representing a rich content document. */
115
+ nodes?: Node[];
116
+ /** Object metadata. */
117
+ metadata?: Metadata;
118
+ /** Global styling for header, paragraph, block quote, and code block nodes in the object. */
119
+ documentStyle?: DocumentStyle;
120
+ }
121
+ export interface Node extends NodeDataOneOf {
122
+ /** Data for a button node. */
123
+ buttonData?: ButtonData;
124
+ /** Data for a code block node. */
125
+ codeBlockData?: CodeBlockData;
126
+ /** Data for a divider node. */
127
+ dividerData?: DividerData;
128
+ /** Data for a file node. */
129
+ fileData?: FileData;
130
+ /** Data for a gallery node. */
131
+ galleryData?: GalleryData;
132
+ /** Data for a GIF node. */
133
+ gifData?: GIFData;
134
+ /** Data for a heading node. */
135
+ headingData?: HeadingData;
136
+ /** Data for an embedded HTML node. */
137
+ htmlData?: HTMLData;
138
+ /** Data for an image node. */
139
+ imageData?: ImageData;
140
+ /** Data for a link preview node. */
141
+ linkPreviewData?: LinkPreviewData;
142
+ /** @deprecated */
143
+ mapData?: MapData;
144
+ /** Data for a paragraph node. */
145
+ paragraphData?: ParagraphData;
146
+ /** Data for a poll node. */
147
+ pollData?: PollData;
148
+ /** Data for a text node. Used to apply decorations to text. */
149
+ textData?: TextData;
150
+ /** Data for an app embed node. */
151
+ appEmbedData?: AppEmbedData;
152
+ /** Data for a video node. */
153
+ videoData?: VideoData;
154
+ /** Data for an oEmbed node. */
155
+ embedData?: EmbedData;
156
+ /** Data for a collapsible list node. */
157
+ collapsibleListData?: CollapsibleListData;
158
+ /** Data for a table node. */
159
+ tableData?: TableData;
160
+ /** Data for a table cell node. */
161
+ tableCellData?: TableCellData;
162
+ /** Data for a custom external node. */
163
+ externalData?: Record<string, any> | null;
164
+ /** Data for an audio node. */
165
+ audioData?: AudioData;
166
+ /** Data for an ordered list node. */
167
+ orderedListData?: OrderedListData;
168
+ /** Data for a bulleted list node. */
169
+ bulletedListData?: BulletedListData;
170
+ /** Data for a block quote node. */
171
+ blockquoteData?: BlockquoteData;
172
+ /** Data for a caption node. */
173
+ captionData?: CaptionData;
174
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
175
+ layoutCellData?: LayoutCellData;
176
+ /** Node type. Use `APP_EMBED` for nodes that embed content from other Wix apps. Use `EMBED` to embed content in [oEmbed](https://oembed.com/) format. */
177
+ type?: NodeType;
178
+ /** Node ID. */
179
+ _id?: string;
180
+ /** A list of child nodes. */
181
+ nodes?: Node[];
182
+ /** Padding and background color styling for the node. */
183
+ style?: NodeStyle;
184
+ }
185
+ /** @oneof */
186
+ export interface NodeDataOneOf {
187
+ /** Data for a button node. */
188
+ buttonData?: ButtonData;
189
+ /** Data for a code block node. */
190
+ codeBlockData?: CodeBlockData;
191
+ /** Data for a divider node. */
192
+ dividerData?: DividerData;
193
+ /** Data for a file node. */
194
+ fileData?: FileData;
195
+ /** Data for a gallery node. */
196
+ galleryData?: GalleryData;
197
+ /** Data for a GIF node. */
198
+ gifData?: GIFData;
199
+ /** Data for a heading node. */
200
+ headingData?: HeadingData;
201
+ /** Data for an embedded HTML node. */
202
+ htmlData?: HTMLData;
203
+ /** Data for an image node. */
204
+ imageData?: ImageData;
205
+ /** Data for a link preview node. */
206
+ linkPreviewData?: LinkPreviewData;
207
+ /** @deprecated */
208
+ mapData?: MapData;
209
+ /** Data for a paragraph node. */
210
+ paragraphData?: ParagraphData;
211
+ /** Data for a poll node. */
212
+ pollData?: PollData;
213
+ /** Data for a text node. Used to apply decorations to text. */
214
+ textData?: TextData;
215
+ /** Data for an app embed node. */
216
+ appEmbedData?: AppEmbedData;
217
+ /** Data for a video node. */
218
+ videoData?: VideoData;
219
+ /** Data for an oEmbed node. */
220
+ embedData?: EmbedData;
221
+ /** Data for a collapsible list node. */
222
+ collapsibleListData?: CollapsibleListData;
223
+ /** Data for a table node. */
224
+ tableData?: TableData;
225
+ /** Data for a table cell node. */
226
+ tableCellData?: TableCellData;
227
+ /** Data for a custom external node. */
228
+ externalData?: Record<string, any> | null;
229
+ /** Data for an audio node. */
230
+ audioData?: AudioData;
231
+ /** Data for an ordered list node. */
232
+ orderedListData?: OrderedListData;
233
+ /** Data for a bulleted list node. */
234
+ bulletedListData?: BulletedListData;
235
+ /** Data for a block quote node. */
236
+ blockquoteData?: BlockquoteData;
237
+ /** Data for a caption node. */
238
+ captionData?: CaptionData;
239
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
240
+ layoutCellData?: LayoutCellData;
241
+ }
242
+ export declare enum NodeType {
243
+ PARAGRAPH = "PARAGRAPH",
244
+ TEXT = "TEXT",
245
+ HEADING = "HEADING",
246
+ BULLETED_LIST = "BULLETED_LIST",
247
+ ORDERED_LIST = "ORDERED_LIST",
248
+ LIST_ITEM = "LIST_ITEM",
249
+ BLOCKQUOTE = "BLOCKQUOTE",
250
+ CODE_BLOCK = "CODE_BLOCK",
251
+ VIDEO = "VIDEO",
252
+ DIVIDER = "DIVIDER",
253
+ FILE = "FILE",
254
+ GALLERY = "GALLERY",
255
+ GIF = "GIF",
256
+ HTML = "HTML",
257
+ IMAGE = "IMAGE",
258
+ LINK_PREVIEW = "LINK_PREVIEW",
259
+ /** @deprecated */
260
+ MAP = "MAP",
261
+ POLL = "POLL",
262
+ APP_EMBED = "APP_EMBED",
263
+ BUTTON = "BUTTON",
264
+ COLLAPSIBLE_LIST = "COLLAPSIBLE_LIST",
265
+ TABLE = "TABLE",
266
+ EMBED = "EMBED",
267
+ COLLAPSIBLE_ITEM = "COLLAPSIBLE_ITEM",
268
+ COLLAPSIBLE_ITEM_TITLE = "COLLAPSIBLE_ITEM_TITLE",
269
+ COLLAPSIBLE_ITEM_BODY = "COLLAPSIBLE_ITEM_BODY",
270
+ TABLE_CELL = "TABLE_CELL",
271
+ TABLE_ROW = "TABLE_ROW",
272
+ EXTERNAL = "EXTERNAL",
273
+ AUDIO = "AUDIO",
274
+ CAPTION = "CAPTION",
275
+ LAYOUT = "LAYOUT",
276
+ LAYOUT_CELL = "LAYOUT_CELL"
277
+ }
278
+ export interface NodeStyle {
279
+ /** The top padding value in pixels. */
280
+ paddingTop?: string | null;
281
+ /** The bottom padding value in pixels. */
282
+ paddingBottom?: string | null;
283
+ /** The background color as a hexadecimal value. */
284
+ backgroundColor?: string | null;
285
+ }
286
+ export interface ButtonData {
287
+ /** Styling for the button's container. */
288
+ containerData?: PluginContainerData;
289
+ /** The button type. */
290
+ type?: Type;
291
+ /** Styling for the button. */
292
+ styles?: Styles;
293
+ /** The text to display on the button. */
294
+ text?: string | null;
295
+ /** Button link details. */
296
+ link?: Link;
297
+ }
298
+ export interface Border {
299
+ /** Border width in pixels. */
300
+ width?: number | null;
301
+ /** Border radius in pixels. */
302
+ radius?: number | null;
303
+ }
304
+ export interface Colors {
305
+ /** The text color as a hexadecimal value. */
306
+ text?: string | null;
307
+ /** The border color as a hexadecimal value. */
308
+ border?: string | null;
309
+ /** The background color as a hexadecimal value. */
310
+ background?: string | null;
311
+ }
312
+ export interface PluginContainerData {
313
+ /** The width of the node when it's displayed. */
314
+ width?: PluginContainerDataWidth;
315
+ /** The node's alignment within its container. */
316
+ alignment?: PluginContainerDataAlignment;
317
+ /** Spoiler cover settings for the node. */
318
+ spoiler?: Spoiler;
319
+ /** The height of the node when it's displayed. */
320
+ height?: Height;
321
+ /** Sets whether text should wrap around this node when it's displayed. If `textWrap` is `false`, the node takes up the width of its container. Defaults to `true` for all node types except 'DIVIVDER' where it defaults to `false`. */
322
+ textWrap?: boolean | null;
323
+ }
324
+ export declare enum WidthType {
325
+ /** Width matches the content width */
326
+ CONTENT = "CONTENT",
327
+ /** Small Width */
328
+ SMALL = "SMALL",
329
+ /** Width will match the original asset width */
330
+ ORIGINAL = "ORIGINAL",
331
+ /** coast-to-coast display */
332
+ FULL_WIDTH = "FULL_WIDTH"
333
+ }
334
+ export interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
335
+ /**
336
+ * One of the following predefined width options:
337
+ * `CONTENT`: The width of the container matches the content width.
338
+ * `SMALL`: A small width.
339
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
340
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
341
+ */
342
+ size?: WidthType;
343
+ /** A custom width value in pixels. */
344
+ custom?: string | null;
345
+ }
346
+ /** @oneof */
347
+ export interface PluginContainerDataWidthDataOneOf {
348
+ /**
349
+ * One of the following predefined width options:
350
+ * `CONTENT`: The width of the container matches the content width.
351
+ * `SMALL`: A small width.
352
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
353
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
354
+ */
355
+ size?: WidthType;
356
+ /** A custom width value in pixels. */
357
+ custom?: string | null;
358
+ }
359
+ export declare enum PluginContainerDataAlignment {
360
+ /** Center Alignment */
361
+ CENTER = "CENTER",
362
+ /** Left Alignment */
363
+ LEFT = "LEFT",
364
+ /** Right Alignment */
365
+ RIGHT = "RIGHT"
366
+ }
367
+ export interface Spoiler {
368
+ /** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */
369
+ enabled?: boolean | null;
370
+ /** The description displayed on top of the spoiler cover. */
371
+ description?: string | null;
372
+ /** The text for the button used to remove the spoiler cover. */
373
+ buttonText?: string | null;
374
+ }
375
+ export interface Height {
376
+ /** A custom height value in pixels. */
377
+ custom?: string | null;
378
+ }
379
+ export declare enum Type {
380
+ /** Regular link button */
381
+ LINK = "LINK",
382
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
383
+ ACTION = "ACTION"
384
+ }
385
+ export interface Styles {
386
+ /** Border attributes. */
387
+ border?: Border;
388
+ /** Color attributes. */
389
+ colors?: Colors;
390
+ }
391
+ export interface Link extends LinkDataOneOf {
392
+ /** The absolute URL for the linked document. */
393
+ url?: string;
394
+ /** The target node's ID. Used for linking to another node in this object. */
395
+ anchor?: string;
396
+ /**
397
+ * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
398
+ * `SELF` - Default. Opens the linked document in the same frame as the link.
399
+ * `BLANK` - Opens the linked document in a new browser tab or window.
400
+ * `PARENT` - Opens the linked document in the link's parent frame.
401
+ * `TOP` - Opens the linked document in the full body of the link's browser tab or window.
402
+ */
403
+ target?: Target;
404
+ /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
405
+ rel?: Rel;
406
+ /** A serialized object used for a custom or external link panel. */
407
+ customData?: string | null;
408
+ }
409
+ /** @oneof */
410
+ export interface LinkDataOneOf {
411
+ /** The absolute URL for the linked document. */
412
+ url?: string;
413
+ /** The target node's ID. Used for linking to another node in this object. */
414
+ anchor?: string;
415
+ }
416
+ export declare enum Target {
417
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
418
+ SELF = "SELF",
419
+ /** Opens the linked document in a new window or tab */
420
+ BLANK = "BLANK",
421
+ /** Opens the linked document in the parent frame */
422
+ PARENT = "PARENT",
423
+ /** Opens the linked document in the full body of the window */
424
+ TOP = "TOP"
425
+ }
426
+ export interface Rel {
427
+ /** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */
428
+ nofollow?: boolean | null;
429
+ /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */
430
+ sponsored?: boolean | null;
431
+ /** Indicates that this link is user-generated content and isn't necessarily trusted or endorsed by the page’s author. For example, a link in a fourm post. Defaults to `false`. */
432
+ ugc?: boolean | null;
433
+ /** Indicates that this link protect referral information from being passed to the target website. */
434
+ noreferrer?: boolean | null;
435
+ }
436
+ export interface CodeBlockData {
437
+ /** Styling for the code block's text. */
438
+ textStyle?: TextStyle;
439
+ }
440
+ export interface TextStyle {
441
+ /** Text alignment. Defaults to `AUTO`. */
442
+ textAlignment?: TextAlignment;
443
+ /** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */
444
+ lineHeight?: string | null;
445
+ }
446
+ export declare enum TextAlignment {
447
+ /** browser default, eqivalent to `initial` */
448
+ AUTO = "AUTO",
449
+ /** Left align */
450
+ LEFT = "LEFT",
451
+ /** Right align */
452
+ RIGHT = "RIGHT",
453
+ /** Center align */
454
+ CENTER = "CENTER",
455
+ /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
456
+ JUSTIFY = "JUSTIFY"
457
+ }
458
+ export interface DividerData {
459
+ /** Styling for the divider's container. */
460
+ containerData?: PluginContainerData;
461
+ /** Divider line style. */
462
+ lineStyle?: LineStyle;
463
+ /** Divider width. */
464
+ width?: Width;
465
+ /** Divider alignment. */
466
+ alignment?: Alignment;
467
+ }
468
+ export declare enum LineStyle {
469
+ /** Single Line */
470
+ SINGLE = "SINGLE",
471
+ /** Double Line */
472
+ DOUBLE = "DOUBLE",
473
+ /** Dashed Line */
474
+ DASHED = "DASHED",
475
+ /** Dotted Line */
476
+ DOTTED = "DOTTED"
477
+ }
478
+ export declare enum Width {
479
+ /** Large line */
480
+ LARGE = "LARGE",
481
+ /** Medium line */
482
+ MEDIUM = "MEDIUM",
483
+ /** Small line */
484
+ SMALL = "SMALL"
485
+ }
486
+ export declare enum Alignment {
487
+ /** Center alignment */
488
+ CENTER = "CENTER",
489
+ /** Left alignment */
490
+ LEFT = "LEFT",
491
+ /** Right alignment */
492
+ RIGHT = "RIGHT"
493
+ }
494
+ export interface FileData {
495
+ /** Styling for the file's container. */
496
+ containerData?: PluginContainerData;
497
+ /** The source for the file's data. */
498
+ src?: FileSource;
499
+ /** File name. */
500
+ name?: string | null;
501
+ /** File type. */
502
+ type?: string | null;
503
+ /**
504
+ * Use `sizeInKb` instead.
505
+ * @deprecated
506
+ */
507
+ size?: number | null;
508
+ /** Settings for PDF files. */
509
+ pdfSettings?: PDFSettings;
510
+ /** File MIME type. */
511
+ mimeType?: string | null;
512
+ /** File path. */
513
+ path?: string | null;
514
+ /** File size in KB. */
515
+ sizeInKb?: string | null;
516
+ }
517
+ export declare enum ViewMode {
518
+ /** No PDF view */
519
+ NONE = "NONE",
520
+ /** Full PDF view */
521
+ FULL = "FULL",
522
+ /** Mini PDF view */
523
+ MINI = "MINI"
524
+ }
525
+ export interface FileSource extends FileSourceDataOneOf {
526
+ /** The absolute URL for the file's source. */
527
+ url?: string | null;
528
+ /**
529
+ * Custom ID. Use `id` instead.
530
+ * @deprecated
531
+ */
532
+ custom?: string | null;
533
+ /** An ID that's resolved to a URL by a resolver function. */
534
+ _id?: string | null;
535
+ /** Indicates whether the file's source is private. Defaults to `false`. */
536
+ private?: boolean | null;
537
+ }
538
+ /** @oneof */
539
+ export interface FileSourceDataOneOf {
540
+ /** The absolute URL for the file's source. */
541
+ url?: string | null;
542
+ /**
543
+ * Custom ID. Use `id` instead.
544
+ * @deprecated
545
+ */
546
+ custom?: string | null;
547
+ /** An ID that's resolved to a URL by a resolver function. */
548
+ _id?: string | null;
549
+ }
550
+ export interface PDFSettings {
551
+ /**
552
+ * PDF view mode. One of the following:
553
+ * `NONE` : The PDF isn't displayed.
554
+ * `FULL` : A full page view of the PDF is displayed.
555
+ * `MINI` : A mini view of the PDF is displayed.
556
+ */
557
+ viewMode?: ViewMode;
558
+ /** Sets whether the PDF download button is disabled. Defaults to `false`. */
559
+ disableDownload?: boolean | null;
560
+ /** Sets whether the PDF print button is disabled. Defaults to `false`. */
561
+ disablePrint?: boolean | null;
562
+ }
563
+ export interface GalleryData {
564
+ /** Styling for the gallery's container. */
565
+ containerData?: PluginContainerData;
566
+ /** The items in the gallery. */
567
+ items?: Item[];
568
+ /** Options for defining the gallery's appearance. */
569
+ options?: GalleryOptions;
570
+ /** Sets whether the gallery's expand button is disabled. Defaults to `false`. */
571
+ disableExpand?: boolean | null;
572
+ /** Sets whether the gallery's download button is disabled. Defaults to `false`. */
573
+ disableDownload?: boolean | null;
574
+ }
575
+ export interface Media {
576
+ /** The source for the media's data. */
577
+ src?: FileSource;
578
+ /** Media width in pixels. */
579
+ width?: number | null;
580
+ /** Media height in pixels. */
581
+ height?: number | null;
582
+ /** Media duration in seconds. Only relevant for audio and video files. */
583
+ duration?: number | null;
584
+ }
585
+ export interface Image {
586
+ /** Image file details. */
587
+ media?: Media;
588
+ /** Link details for images that are links. */
589
+ link?: Link;
590
+ }
591
+ export interface Video {
592
+ /** Video file details. */
593
+ media?: Media;
594
+ /** Video thumbnail file details. */
595
+ thumbnail?: Media;
596
+ }
597
+ export interface Item extends ItemDataOneOf {
598
+ /** An image item. */
599
+ image?: Image;
600
+ /** A video item. */
601
+ video?: Video;
602
+ /** Item title. */
603
+ title?: string | null;
604
+ /** Item's alternative text. */
605
+ altText?: string | null;
606
+ }
607
+ /** @oneof */
608
+ export interface ItemDataOneOf {
609
+ /** An image item. */
610
+ image?: Image;
611
+ /** A video item. */
612
+ video?: Video;
613
+ }
614
+ export interface GalleryOptions {
615
+ /** Gallery layout. */
616
+ layout?: Layout;
617
+ /** Styling for gallery items. */
618
+ item?: ItemStyle;
619
+ /** Styling for gallery thumbnail images. */
620
+ thumbnails?: Thumbnails;
621
+ }
622
+ export declare enum LayoutType {
623
+ /** Collage type */
624
+ COLLAGE = "COLLAGE",
625
+ /** Masonry type */
626
+ MASONRY = "MASONRY",
627
+ /** Grid type */
628
+ GRID = "GRID",
629
+ /** Thumbnail type */
630
+ THUMBNAIL = "THUMBNAIL",
631
+ /** Slider type */
632
+ SLIDER = "SLIDER",
633
+ /** Slideshow type */
634
+ SLIDESHOW = "SLIDESHOW",
635
+ /** Panorama type */
636
+ PANORAMA = "PANORAMA",
637
+ /** Column type */
638
+ COLUMN = "COLUMN",
639
+ /** Magic type */
640
+ MAGIC = "MAGIC",
641
+ /** Fullsize images type */
642
+ FULLSIZE = "FULLSIZE"
643
+ }
644
+ export declare enum Orientation {
645
+ /** Rows Orientation */
646
+ ROWS = "ROWS",
647
+ /** Columns Orientation */
648
+ COLUMNS = "COLUMNS"
649
+ }
650
+ export declare enum Crop {
651
+ /** Crop to fill */
652
+ FILL = "FILL",
653
+ /** Crop to fit */
654
+ FIT = "FIT"
655
+ }
656
+ export declare enum ThumbnailsAlignment {
657
+ /** Top alignment */
658
+ TOP = "TOP",
659
+ /** Right alignment */
660
+ RIGHT = "RIGHT",
661
+ /** Bottom alignment */
662
+ BOTTOM = "BOTTOM",
663
+ /** Left alignment */
664
+ LEFT = "LEFT",
665
+ /** No thumbnail */
666
+ NONE = "NONE"
667
+ }
668
+ export interface Layout {
669
+ /** Gallery layout type. */
670
+ type?: LayoutType;
671
+ /** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
672
+ horizontalScroll?: boolean | null;
673
+ /** Gallery orientation. */
674
+ orientation?: Orientation;
675
+ /** The number of columns to display on full size screens. */
676
+ numberOfColumns?: number | null;
677
+ /** The number of columns to display on mobile screens. */
678
+ mobileNumberOfColumns?: number | null;
679
+ }
680
+ export interface ItemStyle {
681
+ /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */
682
+ targetSize?: number | null;
683
+ /** Item ratio */
684
+ ratio?: number | null;
685
+ /** Sets how item images are cropped. */
686
+ crop?: Crop;
687
+ /** The spacing between items in pixels. */
688
+ spacing?: number | null;
689
+ }
690
+ export interface Thumbnails {
691
+ /** Thumbnail alignment. */
692
+ placement?: ThumbnailsAlignment;
693
+ /** Spacing between thumbnails in pixels. */
694
+ spacing?: number | null;
695
+ }
696
+ export interface GIFData {
697
+ /** Styling for the GIF's container. */
698
+ containerData?: PluginContainerData;
699
+ /** The source of the full size GIF. */
700
+ original?: GIF;
701
+ /** The source of the downsized GIF. */
702
+ downsized?: GIF;
703
+ /** Height in pixels. */
704
+ height?: number;
705
+ /** Width in pixels. */
706
+ width?: number;
707
+ /** Type of GIF (Sticker or NORMAL). Defaults to `NORMAL`. */
708
+ gifType?: GIFType;
709
+ }
710
+ export interface GIF {
711
+ /** GIF format URL. */
712
+ gif?: string | null;
713
+ /** MP4 format URL. */
714
+ mp4?: string | null;
715
+ /** Thumbnail URL. */
716
+ still?: string | null;
717
+ }
718
+ export declare enum GIFType {
719
+ NORMAL = "NORMAL",
720
+ STICKER = "STICKER"
721
+ }
722
+ export interface HeadingData {
723
+ /** Heading level from 1-6. */
724
+ level?: number;
725
+ /** Styling for the heading text. */
726
+ textStyle?: TextStyle;
727
+ /** Indentation level from 1-4. */
728
+ indentation?: number | null;
729
+ }
730
+ export interface HTMLData extends HTMLDataDataOneOf {
731
+ /** The URL for the HTML code for the node. */
732
+ url?: string;
733
+ /** The HTML code for the node. */
734
+ html?: string;
735
+ /**
736
+ * Whether this is an AdSense element. Use `source` instead.
737
+ * @deprecated
738
+ */
739
+ isAdsense?: boolean | null;
740
+ /** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */
741
+ containerData?: PluginContainerData;
742
+ /** The type of HTML code. */
743
+ source?: Source;
744
+ /** If container height is aligned with its content height. Defaults to `true`. */
745
+ autoHeight?: boolean | null;
746
+ }
747
+ /** @oneof */
748
+ export interface HTMLDataDataOneOf {
749
+ /** The URL for the HTML code for the node. */
750
+ url?: string;
751
+ /** The HTML code for the node. */
752
+ html?: string;
753
+ /**
754
+ * Whether this is an AdSense element. Use `source` instead.
755
+ * @deprecated
756
+ */
757
+ isAdsense?: boolean | null;
758
+ }
759
+ export declare enum Source {
760
+ HTML = "HTML",
761
+ ADSENSE = "ADSENSE"
762
+ }
763
+ export interface ImageData {
764
+ /** Styling for the image's container. */
765
+ containerData?: PluginContainerData;
766
+ /** Image file details. */
767
+ image?: Media;
768
+ /** Link details for images that are links. */
769
+ link?: Link;
770
+ /** Sets whether the image expands to full screen when clicked. Defaults to `false`. */
771
+ disableExpand?: boolean | null;
772
+ /** Image's alternative text. */
773
+ altText?: string | null;
774
+ /**
775
+ * Deprecated: use Caption node instead.
776
+ * @deprecated
777
+ */
778
+ caption?: string | null;
779
+ /** Sets whether the image's download button is disabled. Defaults to `false`. */
780
+ disableDownload?: boolean | null;
781
+ }
782
+ export interface LinkPreviewData {
783
+ /** Styling for the link preview's container. */
784
+ containerData?: PluginContainerData;
785
+ /** Link details. */
786
+ link?: Link;
787
+ /** Preview title. */
788
+ title?: string | null;
789
+ /** Preview thumbnail URL. */
790
+ thumbnailUrl?: string | null;
791
+ /** Preview description. */
792
+ description?: string | null;
793
+ /** The preview content as HTML. */
794
+ html?: string | null;
795
+ }
796
+ export interface MapData {
797
+ /** Styling for the map's container. */
798
+ containerData?: PluginContainerData;
799
+ /** Map settings. */
800
+ mapSettings?: MapSettings;
801
+ }
802
+ export interface MapSettings {
803
+ /** The address to display on the map. */
804
+ address?: string | null;
805
+ /** Sets whether the map is draggable. */
806
+ draggable?: boolean | null;
807
+ /** Sets whether the location marker is visible. */
808
+ marker?: boolean | null;
809
+ /** Sets whether street view control is enabled. */
810
+ streetViewControl?: boolean | null;
811
+ /** Sets whether zoom control is enabled. */
812
+ zoomControl?: boolean | null;
813
+ /** Location latitude. */
814
+ lat?: number | null;
815
+ /** Location longitude. */
816
+ lng?: number | null;
817
+ /** Location name. */
818
+ locationName?: string | null;
819
+ /** Sets whether view mode control is enabled. */
820
+ viewModeControl?: boolean | null;
821
+ /** Initial zoom value. */
822
+ initialZoom?: number | null;
823
+ /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
824
+ mapType?: MapType;
825
+ }
826
+ export declare enum MapType {
827
+ /** Roadmap map type */
828
+ ROADMAP = "ROADMAP",
829
+ /** Satellite map type */
830
+ SATELITE = "SATELITE",
831
+ /** Hybrid map type */
832
+ HYBRID = "HYBRID",
833
+ /** Terrain map type */
834
+ TERRAIN = "TERRAIN"
835
+ }
836
+ export interface ParagraphData {
837
+ /** Styling for the paragraph text. */
838
+ textStyle?: TextStyle;
839
+ /** Indentation level from 1-4. */
840
+ indentation?: number | null;
841
+ /** Paragraph level */
842
+ level?: number | null;
843
+ }
844
+ export interface PollData {
845
+ /** Styling for the poll's container. */
846
+ containerData?: PluginContainerData;
847
+ /** Poll data. */
848
+ poll?: Poll;
849
+ /** Layout settings for the poll and voting options. */
850
+ layout?: PollDataLayout;
851
+ /** Styling for the poll and voting options. */
852
+ design?: Design;
853
+ }
854
+ export declare enum ViewRole {
855
+ /** Only Poll creator can view the results */
856
+ CREATOR = "CREATOR",
857
+ /** Anyone who voted can see the results */
858
+ VOTERS = "VOTERS",
859
+ /** Anyone can see the results, even if one didn't vote */
860
+ EVERYONE = "EVERYONE"
861
+ }
862
+ export declare enum VoteRole {
863
+ /** Logged in member */
864
+ SITE_MEMBERS = "SITE_MEMBERS",
865
+ /** Anyone */
866
+ ALL = "ALL"
867
+ }
868
+ export interface Permissions {
869
+ /** Sets who can view the poll results. */
870
+ view?: ViewRole;
871
+ /** Sets who can vote. */
872
+ vote?: VoteRole;
873
+ /** Sets whether one voter can vote multiple times. Defaults to `false`. */
874
+ allowMultipleVotes?: boolean | null;
875
+ }
876
+ export interface Option {
877
+ /** Option ID. */
878
+ _id?: string | null;
879
+ /** Option title. */
880
+ title?: string | null;
881
+ /** The image displayed with the option. */
882
+ image?: Media;
883
+ }
884
+ export interface Settings {
885
+ /** Permissions settings for voting. */
886
+ permissions?: Permissions;
887
+ /** Sets whether voters are displayed in the vote results. Defaults to `true`. */
888
+ showVoters?: boolean | null;
889
+ /** Sets whether the vote count is displayed. Defaults to `true`. */
890
+ showVotesCount?: boolean | null;
891
+ }
892
+ export declare enum PollLayoutType {
893
+ /** List */
894
+ LIST = "LIST",
895
+ /** Grid */
896
+ GRID = "GRID"
897
+ }
898
+ export declare enum PollLayoutDirection {
899
+ /** Left-to-right */
900
+ LTR = "LTR",
901
+ /** Right-to-left */
902
+ RTL = "RTL"
903
+ }
904
+ export interface PollLayout {
905
+ /** The layout for displaying the voting options. */
906
+ type?: PollLayoutType;
907
+ /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
908
+ direction?: PollLayoutDirection;
909
+ /** Sets whether to display the main poll image. Defaults to `false`. */
910
+ enableImage?: boolean | null;
911
+ }
912
+ export interface OptionLayout {
913
+ /** Sets whether to display option images. Defaults to `false`. */
914
+ enableImage?: boolean | null;
915
+ }
916
+ export declare enum BackgroundType {
917
+ /** Color background type */
918
+ COLOR = "COLOR",
919
+ /** Image background type */
920
+ IMAGE = "IMAGE",
921
+ /** Gradiant background type */
922
+ GRADIENT = "GRADIENT"
923
+ }
924
+ export interface Gradient {
925
+ /** The gradient angle in degrees. */
926
+ angle?: number | null;
927
+ /** The start color as a hexademical value. */
928
+ startColor?: string | null;
929
+ /** The end color as a hexademical value. */
930
+ lastColor?: string | null;
931
+ }
932
+ export interface Background extends BackgroundBackgroundOneOf {
933
+ /** The background color as a hexademical value. */
934
+ color?: string | null;
935
+ /** An image to use for the background. */
936
+ image?: Media;
937
+ /** Details for a gradient background. */
938
+ gradient?: Gradient;
939
+ /** Background type. For each option, include the relevant details. */
940
+ type?: BackgroundType;
941
+ }
942
+ /** @oneof */
943
+ export interface BackgroundBackgroundOneOf {
944
+ /** The background color as a hexademical value. */
945
+ color?: string | null;
946
+ /** An image to use for the background. */
947
+ image?: Media;
948
+ /** Details for a gradient background. */
949
+ gradient?: Gradient;
950
+ }
951
+ export interface PollDesign {
952
+ /** Background styling. */
953
+ background?: Background;
954
+ /** Border radius in pixels. */
955
+ borderRadius?: number | null;
956
+ }
957
+ export interface OptionDesign {
958
+ /** Border radius in pixels. */
959
+ borderRadius?: number | null;
960
+ }
961
+ export interface Poll {
962
+ /** Poll ID. */
963
+ _id?: string | null;
964
+ /** Poll title. */
965
+ title?: string | null;
966
+ /** Poll creator ID. */
967
+ creatorId?: string | null;
968
+ /** Main poll image. */
969
+ image?: Media;
970
+ /** Voting options. */
971
+ options?: Option[];
972
+ /** The poll's permissions and display settings. */
973
+ settings?: Settings;
974
+ }
975
+ export interface PollDataLayout {
976
+ /** Poll layout settings. */
977
+ poll?: PollLayout;
978
+ /** Voting otpions layout settings. */
979
+ options?: OptionLayout;
980
+ }
981
+ export interface Design {
982
+ /** Styling for the poll. */
983
+ poll?: PollDesign;
984
+ /** Styling for voting options. */
985
+ options?: OptionDesign;
986
+ }
987
+ export interface TextData {
988
+ /** The text to apply decorations to. */
989
+ text?: string;
990
+ /** The decorations to apply. */
991
+ decorations?: Decoration[];
992
+ }
993
+ /** Adds appearence changes to text */
994
+ export interface Decoration extends DecorationDataOneOf {
995
+ /** Data for an anchor link decoration. */
996
+ anchorData?: AnchorData;
997
+ /** Data for a color decoration. */
998
+ colorData?: ColorData;
999
+ /** Data for an external link decoration. */
1000
+ linkData?: LinkData;
1001
+ /** Data for a mention decoration. */
1002
+ mentionData?: MentionData;
1003
+ /** Data for a font size decoration. */
1004
+ fontSizeData?: FontSizeData;
1005
+ /** Font weight for a bold decoration. */
1006
+ fontWeightValue?: number | null;
1007
+ /** Data for an italic decoration. Defaults to `true`. */
1008
+ italicData?: boolean | null;
1009
+ /** Data for an underline decoration. Defaults to `true`. */
1010
+ underlineData?: boolean | null;
1011
+ /** Data for a spoiler decoration. */
1012
+ spoilerData?: SpoilerData;
1013
+ /** The type of decoration to apply. */
1014
+ type?: DecorationType;
1015
+ }
1016
+ /** @oneof */
1017
+ export interface DecorationDataOneOf {
1018
+ /** Data for an anchor link decoration. */
1019
+ anchorData?: AnchorData;
1020
+ /** Data for a color decoration. */
1021
+ colorData?: ColorData;
1022
+ /** Data for an external link decoration. */
1023
+ linkData?: LinkData;
1024
+ /** Data for a mention decoration. */
1025
+ mentionData?: MentionData;
1026
+ /** Data for a font size decoration. */
1027
+ fontSizeData?: FontSizeData;
1028
+ /** Font weight for a bold decoration. */
1029
+ fontWeightValue?: number | null;
1030
+ /** Data for an italic decoration. Defaults to `true`. */
1031
+ italicData?: boolean | null;
1032
+ /** Data for an underline decoration. Defaults to `true`. */
1033
+ underlineData?: boolean | null;
1034
+ /** Data for a spoiler decoration. */
1035
+ spoilerData?: SpoilerData;
1036
+ }
1037
+ export declare enum DecorationType {
1038
+ BOLD = "BOLD",
1039
+ ITALIC = "ITALIC",
1040
+ UNDERLINE = "UNDERLINE",
1041
+ SPOILER = "SPOILER",
1042
+ ANCHOR = "ANCHOR",
1043
+ MENTION = "MENTION",
1044
+ LINK = "LINK",
1045
+ COLOR = "COLOR",
1046
+ FONT_SIZE = "FONT_SIZE",
1047
+ EXTERNAL = "EXTERNAL"
1048
+ }
1049
+ export interface AnchorData {
1050
+ /** The target node's ID. */
1051
+ anchor?: string;
1052
+ }
1053
+ export interface ColorData {
1054
+ /** The text's background color as a hexadecimal value. */
1055
+ background?: string | null;
1056
+ /** The text's foreground color as a hexadecimal value. */
1057
+ foreground?: string | null;
1058
+ }
1059
+ export interface LinkData {
1060
+ /** Link details. */
1061
+ link?: Link;
1062
+ }
1063
+ export interface MentionData {
1064
+ /** The mentioned user's name. */
1065
+ name?: string;
1066
+ /** The version of the user's name that appears after the `@` character in the mention. */
1067
+ slug?: string;
1068
+ /** Mentioned user's ID. */
1069
+ _id?: string | null;
1070
+ }
1071
+ export interface FontSizeData {
1072
+ /** The units used for the font size. */
1073
+ unit?: FontType;
1074
+ /** Font size value. */
1075
+ value?: number | null;
1076
+ }
1077
+ export declare enum FontType {
1078
+ PX = "PX",
1079
+ EM = "EM"
1080
+ }
1081
+ export interface SpoilerData {
1082
+ /** Spoiler ID. */
1083
+ _id?: string | null;
1084
+ }
1085
+ export interface AppEmbedData extends AppEmbedDataAppDataOneOf {
1086
+ /** Data for embedded Wix Bookings content. */
1087
+ bookingData?: BookingData;
1088
+ /** Data for embedded Wix Events content. */
1089
+ eventData?: EventData;
1090
+ /** The type of Wix App content being embedded. */
1091
+ type?: AppType;
1092
+ /** The ID of the embedded content. */
1093
+ itemId?: string | null;
1094
+ /** The name of the embedded content. */
1095
+ name?: string | null;
1096
+ /**
1097
+ * Deprecated: Use `image` instead.
1098
+ * @deprecated
1099
+ */
1100
+ imageSrc?: string | null;
1101
+ /** The URL for the embedded content. */
1102
+ url?: string | null;
1103
+ /** An image for the embedded content. */
1104
+ image?: Media;
1105
+ }
1106
+ /** @oneof */
1107
+ export interface AppEmbedDataAppDataOneOf {
1108
+ /** Data for embedded Wix Bookings content. */
1109
+ bookingData?: BookingData;
1110
+ /** Data for embedded Wix Events content. */
1111
+ eventData?: EventData;
1112
+ }
1113
+ export declare enum AppType {
1114
+ PRODUCT = "PRODUCT",
1115
+ EVENT = "EVENT",
1116
+ BOOKING = "BOOKING"
1117
+ }
1118
+ export interface BookingData {
1119
+ /** Booking duration in minutes. */
1120
+ durations?: string | null;
1121
+ }
1122
+ export interface EventData {
1123
+ /** Event schedule. */
1124
+ scheduling?: string | null;
1125
+ /** Event location. */
1126
+ location?: string | null;
1127
+ }
1128
+ export interface VideoData {
1129
+ /** Styling for the video's container. */
1130
+ containerData?: PluginContainerData;
1131
+ /** Video details. */
1132
+ video?: Media;
1133
+ /** Video thumbnail details. */
1134
+ thumbnail?: Media;
1135
+ /** Sets whether the video's download button is disabled. Defaults to `false`. */
1136
+ disableDownload?: boolean | null;
1137
+ /** Video title. */
1138
+ title?: string | null;
1139
+ /** Video options. */
1140
+ options?: PlaybackOptions;
1141
+ }
1142
+ export interface PlaybackOptions {
1143
+ /** Sets whether the media will automatically start playing. */
1144
+ autoPlay?: boolean | null;
1145
+ /** Sets whether media's will be looped. */
1146
+ playInLoop?: boolean | null;
1147
+ /** Sets whether media's controls will be shown. */
1148
+ showControls?: boolean | null;
1149
+ }
1150
+ export interface EmbedData {
1151
+ /** Styling for the oEmbed node's container. */
1152
+ containerData?: PluginContainerData;
1153
+ /** An [oEmbed](https://www.oembed.com) object. */
1154
+ oembed?: Oembed;
1155
+ /** Origin asset source. */
1156
+ src?: string | null;
1157
+ }
1158
+ export interface Oembed {
1159
+ /** The resource type. */
1160
+ type?: string | null;
1161
+ /** The width of the resource specified in the `url` property in pixels. */
1162
+ width?: number | null;
1163
+ /** The height of the resource specified in the `url` property in pixels. */
1164
+ height?: number | null;
1165
+ /** Resource title. */
1166
+ title?: string | null;
1167
+ /** The source URL for the resource. */
1168
+ url?: string | null;
1169
+ /** HTML for embedding a video player. The HTML should have no padding or margins. */
1170
+ html?: string | null;
1171
+ /** The name of the author or owner of the resource. */
1172
+ authorName?: string | null;
1173
+ /** The URL for the author or owner of the resource. */
1174
+ authorUrl?: string | null;
1175
+ /** The name of the resource provider. */
1176
+ providerName?: string | null;
1177
+ /** The URL for the resource provider. */
1178
+ providerUrl?: string | null;
1179
+ /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */
1180
+ thumbnailUrl?: string | null;
1181
+ /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */
1182
+ thumbnailWidth?: string | null;
1183
+ /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */
1184
+ thumbnailHeight?: string | null;
1185
+ /** The URL for an embedded viedo. */
1186
+ videoUrl?: string | null;
1187
+ /** The oEmbed version number. This value must be `1.0`. */
1188
+ version?: string | null;
1189
+ }
1190
+ export interface CollapsibleListData {
1191
+ /** Styling for the collapsible list's container. */
1192
+ containerData?: PluginContainerData;
1193
+ /** If `true`, only one item can be expanded at a time. Defaults to `false`. */
1194
+ expandOnlyOne?: boolean | null;
1195
+ /** Sets which items are expanded when the page loads. */
1196
+ initialExpandedItems?: InitialExpandedItems;
1197
+ /** The direction of the text in the list. Either left-to-right or right-to-left. */
1198
+ direction?: Direction;
1199
+ /** If `true`, The collapsible item will appear in search results as an FAQ. */
1200
+ isQapageData?: boolean | null;
1201
+ }
1202
+ export declare enum InitialExpandedItems {
1203
+ /** First item will be expended initally */
1204
+ FIRST = "FIRST",
1205
+ /** All items will expended initally */
1206
+ ALL = "ALL",
1207
+ /** All items collapsed initally */
1208
+ NONE = "NONE"
1209
+ }
1210
+ export declare enum Direction {
1211
+ /** Left-to-right */
1212
+ LTR = "LTR",
1213
+ /** Right-to-left */
1214
+ RTL = "RTL"
1215
+ }
1216
+ export interface TableData {
1217
+ /** Styling for the table's container. */
1218
+ containerData?: PluginContainerData;
1219
+ /** The table's dimensions. */
1220
+ dimensions?: Dimensions;
1221
+ /**
1222
+ * Deprecated: Use `rowHeader` and `columnHeader` instead.
1223
+ * @deprecated
1224
+ */
1225
+ header?: boolean | null;
1226
+ /** Sets whether the table's first row is a header. Defaults to `false`. */
1227
+ rowHeader?: boolean | null;
1228
+ /** Sets whether the table's first column is a header. Defaults to `false`. */
1229
+ columnHeader?: boolean | null;
1230
+ }
1231
+ export interface Dimensions {
1232
+ /** An array representing relative width of each column in relation to the other columns. */
1233
+ colsWidthRatio?: number[];
1234
+ /** An array representing the height of each row in pixels. */
1235
+ rowsHeight?: number[];
1236
+ /** An array representing the minimum width of each column in pixels. */
1237
+ colsMinWidth?: number[];
1238
+ }
1239
+ export interface TableCellData {
1240
+ /** Styling for the cell's background color and text alignment. */
1241
+ cellStyle?: CellStyle;
1242
+ /** The cell's border colors. */
1243
+ borderColors?: BorderColors;
1244
+ }
1245
+ export declare enum VerticalAlignment {
1246
+ /** Top alignment */
1247
+ TOP = "TOP",
1248
+ /** Middle alignment */
1249
+ MIDDLE = "MIDDLE",
1250
+ /** Bottom alignment */
1251
+ BOTTOM = "BOTTOM"
1252
+ }
1253
+ export interface CellStyle {
1254
+ /** Vertical alignment for the cell's text. */
1255
+ verticalAlignment?: VerticalAlignment;
1256
+ /** Cell background color as a hexadecimal value. */
1257
+ backgroundColor?: string | null;
1258
+ }
1259
+ export interface BorderColors {
1260
+ /** Left border color as a hexadecimal value. */
1261
+ left?: string | null;
1262
+ /** Right border color as a hexadecimal value. */
1263
+ right?: string | null;
1264
+ /** Top border color as a hexadecimal value. */
1265
+ top?: string | null;
1266
+ /** Bottom border color as a hexadecimal value. */
1267
+ bottom?: string | null;
1268
+ }
1269
+ /**
1270
+ * `NullValue` is a singleton enumeration to represent the null value for the
1271
+ * `Value` type union.
1272
+ *
1273
+ * The JSON representation for `NullValue` is JSON `null`.
1274
+ */
1275
+ export declare enum NullValue {
1276
+ /** Null value. */
1277
+ NULL_VALUE = "NULL_VALUE"
1278
+ }
1279
+ /**
1280
+ * `ListValue` is a wrapper around a repeated field of values.
1281
+ *
1282
+ * The JSON representation for `ListValue` is JSON array.
1283
+ */
1284
+ export interface ListValue {
1285
+ /** Repeated field of dynamically typed values. */
1286
+ values?: any[];
1287
+ }
1288
+ export interface AudioData {
1289
+ /** Styling for the audio node's container. */
1290
+ containerData?: PluginContainerData;
1291
+ /** Audio file details. */
1292
+ audio?: Media;
1293
+ /** Sets whether the audio node's download button is disabled. Defaults to `false`. */
1294
+ disableDownload?: boolean | null;
1295
+ /** Cover image. */
1296
+ coverImage?: Media;
1297
+ /** Track name. */
1298
+ name?: string | null;
1299
+ /** Author name. */
1300
+ authorName?: string | null;
1301
+ /** An HTML version of the audio node. */
1302
+ html?: string | null;
1303
+ }
1304
+ export interface OrderedListData {
1305
+ /** Indentation level from 0-4. */
1306
+ indentation?: number;
1307
+ /** Offset level from 0-4. */
1308
+ offset?: number | null;
1309
+ /** List start number. */
1310
+ start?: number | null;
1311
+ }
1312
+ export interface BulletedListData {
1313
+ /** Indentation level from 0-4. */
1314
+ indentation?: number;
1315
+ /** Offset level from 0-4. */
1316
+ offset?: number | null;
1317
+ }
1318
+ export interface BlockquoteData {
1319
+ /** Indentation level from 1-4. */
1320
+ indentation?: number;
1321
+ }
1322
+ export interface CaptionData {
1323
+ textStyle?: TextStyle;
1324
+ }
1325
+ export interface LayoutCellData {
1326
+ /** Size of the cell in 12 columns grid. */
1327
+ colSpan?: number | null;
1328
+ }
1329
+ export interface Metadata {
1330
+ /** Schema version. */
1331
+ version?: number;
1332
+ /**
1333
+ * When the object was created.
1334
+ * @readonly
1335
+ * @deprecated
1336
+ */
1337
+ createdTimestamp?: Date | null;
1338
+ /**
1339
+ * When the object was most recently updated.
1340
+ * @deprecated
1341
+ */
1342
+ updatedTimestamp?: Date | null;
1343
+ /** Object ID. */
1344
+ _id?: string | null;
1345
+ }
1346
+ export interface DocumentStyle {
1347
+ /** Styling for H1 nodes. */
1348
+ headerOne?: TextNodeStyle;
1349
+ /** Styling for H2 nodes. */
1350
+ headerTwo?: TextNodeStyle;
1351
+ /** Styling for H3 nodes. */
1352
+ headerThree?: TextNodeStyle;
1353
+ /** Styling for H4 nodes. */
1354
+ headerFour?: TextNodeStyle;
1355
+ /** Styling for H5 nodes. */
1356
+ headerFive?: TextNodeStyle;
1357
+ /** Styling for H6 nodes. */
1358
+ headerSix?: TextNodeStyle;
1359
+ /** Styling for paragraph nodes. */
1360
+ paragraph?: TextNodeStyle;
1361
+ /** Styling for block quote nodes. */
1362
+ blockquote?: TextNodeStyle;
1363
+ /** Styling for code block nodes. */
1364
+ codeBlock?: TextNodeStyle;
1365
+ }
1366
+ export interface TextNodeStyle {
1367
+ /** The decorations to apply to the node. */
1368
+ decorations?: Decoration[];
1369
+ /** Padding and background color for the node. */
1370
+ nodeStyle?: NodeStyle;
1371
+ /** Line height for text in the node. */
1372
+ lineHeight?: string | null;
1373
+ }
1374
+ export interface Mention extends MentionIdentityOneOf {
1375
+ /** Wix user ID. */
1376
+ userId?: string | null;
1377
+ /** Member ID. See the Members API for more details. */
1378
+ memberId?: string | null;
1379
+ /** Visitor ID. */
1380
+ visitorId?: string | null;
1381
+ /** Group ID. See the Groups API for more details. */
1382
+ groupId?: string | null;
1383
+ }
1384
+ /** @oneof */
1385
+ export interface MentionIdentityOneOf {
1386
+ /** Wix user ID. */
1387
+ userId?: string | null;
1388
+ /** Member ID. See the Members API for more details. */
1389
+ memberId?: string | null;
1390
+ /** Visitor ID. */
1391
+ visitorId?: string | null;
1392
+ /** Group ID. See the Groups API for more details. */
1393
+ groupId?: string | null;
1394
+ }
1395
+ export interface Attachment extends AttachmentMediaOneOf {
1396
+ /** Information about the image. */
1397
+ image?: string;
1398
+ /** Information about the video. */
1399
+ video?: string;
1400
+ /** Information about the audio. */
1401
+ audio?: string;
1402
+ /** Information about the document. */
1403
+ document?: string;
1404
+ /** Mime type of attachment. */
1405
+ mimeType?: string | null;
1406
+ }
1407
+ /** @oneof */
1408
+ export interface AttachmentMediaOneOf {
1409
+ /** Information about the image. */
1410
+ image?: string;
1411
+ /** Information about the video. */
1412
+ video?: string;
1413
+ /** Information about the audio. */
1414
+ audio?: string;
1415
+ /** Information about the document. */
1416
+ document?: string;
1417
+ }
1418
+ export interface VideoResolution {
1419
+ /** Video URL. */
1420
+ url?: string;
1421
+ /** Video height. */
1422
+ height?: number;
1423
+ /** Video width. */
1424
+ width?: number;
1425
+ /** Video format for example, mp4, hls. */
1426
+ format?: string;
1427
+ /**
1428
+ * Video quality. For example: 480p, 720p.
1429
+ * @readonly
1430
+ */
1431
+ quality?: string | null;
1432
+ /**
1433
+ * Video filename.
1434
+ * @readonly
1435
+ */
1436
+ filename?: string | null;
1437
+ /**
1438
+ * Video duration in seconds.
1439
+ * @readonly
1440
+ */
1441
+ durationInSeconds?: number | null;
1442
+ /**
1443
+ * When true, this is a protected asset, and calling the URL will return a 403 error.
1444
+ * In order to access private assets, make a request to:
1445
+ * `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
1446
+ * @readonly
1447
+ */
1448
+ private?: boolean | null;
1449
+ /**
1450
+ * Key to identify the video resolution's relationship to the original media in WixMedia.
1451
+ * Can be used to request a download for the specific video resolution.
1452
+ * For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
1453
+ * @readonly
1454
+ */
1455
+ assetKey?: string | null;
1456
+ }
1457
+ export interface ContentAuthor extends ContentAuthorAuthorOneOf {
1458
+ /** Wix user ID. */
1459
+ userId?: string | null;
1460
+ /** Member ID. See the Members API for more details. */
1461
+ memberId?: string | null;
1462
+ /** Visitor ID. */
1463
+ visitorId?: string | null;
1464
+ /** Application ID. For more information, see [Authenticate as an App Instance](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-as-an-app-instance). */
1465
+ appId?: string | null;
1466
+ }
1467
+ /** @oneof */
1468
+ export interface ContentAuthorAuthorOneOf {
1469
+ /** Wix user ID. */
1470
+ userId?: string | null;
1471
+ /** Member ID. See the Members API for more details. */
1472
+ memberId?: string | null;
1473
+ /** Visitor ID. */
1474
+ visitorId?: string | null;
1475
+ /** Application ID. For more information, see [Authenticate as an App Instance](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-as-an-app-instance). */
1476
+ appId?: string | null;
1477
+ }
1478
+ export interface CommentAuthor extends CommentAuthorIdentityOneOf {
1479
+ /** Wix user ID. */
1480
+ userId?: string | null;
1481
+ /** Member ID. See the Members API for more details. */
1482
+ memberId?: string | null;
1483
+ /** Visitor ID. */
1484
+ visitorId?: string | null;
1485
+ }
1486
+ /** @oneof */
1487
+ export interface CommentAuthorIdentityOneOf {
1488
+ /** Wix user ID. */
1489
+ userId?: string | null;
1490
+ /** Member ID. See the Members API for more details. */
1491
+ memberId?: string | null;
1492
+ /** Visitor ID. */
1493
+ visitorId?: string | null;
1494
+ }
1495
+ export interface ParentComment {
1496
+ /** Comment ID of the parent comment. */
1497
+ _id?: string | null;
1498
+ /**
1499
+ * Author of the parent comment.
1500
+ * @readonly
1501
+ */
1502
+ author?: CommentAuthor;
1503
+ /**
1504
+ * Parent comment status.
1505
+ * @readonly
1506
+ */
1507
+ status?: Status;
1508
+ }
1509
+ export declare enum Status {
1510
+ /** Unknown status. */
1511
+ UNKNOWN = "UNKNOWN",
1512
+ /** This comment is published and publicly visible. */
1513
+ PUBLISHED = "PUBLISHED",
1514
+ /** This comment is deleted. */
1515
+ DELETED = "DELETED",
1516
+ /** This comment is pending moderation. Moderation is not currently supported. */
1517
+ PENDING = "PENDING",
1518
+ /** This comment has been hidden by a site moderator. */
1519
+ HIDDEN = "HIDDEN"
1520
+ }
1521
+ export interface VoteSummary {
1522
+ /** Number of upvotes less downvotes on this comment. */
1523
+ netVoteCount?: number;
1524
+ /** Number of upvotes on this comment. */
1525
+ upvoteCount?: number;
1526
+ /** Number of downvotes on this comment. */
1527
+ downvoteCount?: number;
1528
+ }
1529
+ export interface CommentReactionSummary {
1530
+ /** Total amount of reactions. */
1531
+ total?: number;
1532
+ /**
1533
+ * Number of each type of reaction. `key` is the code for a reaction type and
1534
+ * `value` is the amount of that reaction type.
1535
+ */
1536
+ reactionCodeCount?: Record<string, number>;
1537
+ }
1538
+ export interface UpdateInternalDocumentsEvent extends UpdateInternalDocumentsEventOperationOneOf {
1539
+ /** insert/update documents */
1540
+ update?: InternalDocumentUpdateOperation;
1541
+ /** delete by document ids */
1542
+ deleteByIds?: DeleteByIdsOperation;
1543
+ /** delete documents matching filter */
1544
+ deleteByFilter?: DeleteByFilterOperation;
1545
+ /** update internal documents matching filter */
1546
+ updateByFilter?: InternalDocumentUpdateByFilterOperation;
1547
+ /** update only existing documents */
1548
+ updateExisting?: InternalUpdateExistingOperation;
1549
+ /** insert/update documents with versioning */
1550
+ versionedUpdate?: VersionedDocumentUpdateOperation;
1551
+ /** delete by document ids with versioning */
1552
+ versionedDeleteByIds?: VersionedDeleteByIdsOperation;
1553
+ /** type of the documents */
1554
+ documentType?: string;
1555
+ /** language of the documents (mandatory) */
1556
+ language?: string | null;
1557
+ /**
1558
+ * one or more search documents
1559
+ * @deprecated
1560
+ */
1561
+ addDocuments?: InternalDocument[];
1562
+ /**
1563
+ * one or more ids of indexed documents to be removed. Removal will happen before addition (if both provided)
1564
+ * @deprecated
1565
+ */
1566
+ removeDocumentIds?: string[];
1567
+ /** id to pass to processing notification */
1568
+ correlationId?: string | null;
1569
+ /** when event was created / issued */
1570
+ issuedAt?: Date | null;
1571
+ }
1572
+ /** @oneof */
1573
+ export interface UpdateInternalDocumentsEventOperationOneOf {
1574
+ /** insert/update documents */
1575
+ update?: InternalDocumentUpdateOperation;
1576
+ /** delete by document ids */
1577
+ deleteByIds?: DeleteByIdsOperation;
1578
+ /** delete documents matching filter */
1579
+ deleteByFilter?: DeleteByFilterOperation;
1580
+ /** update internal documents matching filter */
1581
+ updateByFilter?: InternalDocumentUpdateByFilterOperation;
1582
+ /** update only existing documents */
1583
+ updateExisting?: InternalUpdateExistingOperation;
1584
+ /** insert/update documents with versioning */
1585
+ versionedUpdate?: VersionedDocumentUpdateOperation;
1586
+ /** delete by document ids with versioning */
1587
+ versionedDeleteByIds?: VersionedDeleteByIdsOperation;
1588
+ }
1589
+ export interface InternalDocument {
1590
+ /** document with mandatory fields (id) and with fields specific to the type of the document */
1591
+ document?: Record<string, any> | null;
1592
+ }
1593
+ export interface InternalDocumentUpdateOperation {
1594
+ /** documents to index or update */
1595
+ documents?: InternalDocument[];
1596
+ }
1597
+ export interface DeleteByIdsOperation {
1598
+ /** ids of the documents to delete */
1599
+ documentIds?: string[];
1600
+ }
1601
+ export interface DeleteByFilterOperation {
1602
+ /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
1603
+ filter?: Record<string, any> | null;
1604
+ }
1605
+ export interface InternalDocumentUpdateByFilterOperation {
1606
+ /** documents matching this filter will be updated */
1607
+ filter?: Record<string, any> | null;
1608
+ /** partial document to apply */
1609
+ document?: InternalDocument;
1610
+ }
1611
+ export interface InternalUpdateExistingOperation {
1612
+ /** documents to update */
1613
+ documents?: InternalDocument[];
1614
+ }
1615
+ export interface VersionedDocumentUpdateOperation {
1616
+ /** documents to create or overwrite */
1617
+ documents?: InternalDocument[];
1618
+ /** versioning mode to use instead of default */
1619
+ versioningMode?: VersioningMode;
1620
+ }
1621
+ export declare enum VersioningMode {
1622
+ /** use default versioning mode agreed with search team */
1623
+ DEFAULT = "DEFAULT",
1624
+ /** execute only if version is greater than existing */
1625
+ GREATER_THAN = "GREATER_THAN",
1626
+ /** execute only if version is greater or equal to existing */
1627
+ GREATER_OR_EQUAL = "GREATER_OR_EQUAL"
1628
+ }
1629
+ export interface VersionedDeleteByIdsOperation {
1630
+ /** ids with version of the documents to delete */
1631
+ documentIds?: VersionedDocumentId[];
1632
+ }
1633
+ export interface VersionedDocumentId {
1634
+ /** document id */
1635
+ documentId?: string;
1636
+ /** document version */
1637
+ version?: string;
1638
+ /** versioning mode to use instead of default */
1639
+ versioningMode?: VersioningMode;
1640
+ }
1641
+ export interface CommentModerated {
1642
+ comment?: Comment;
1643
+ moderationAction?: Action;
1644
+ }
1645
+ export declare enum Action {
1646
+ /** Unknown content. */
1647
+ UNKNOWN = "UNKNOWN",
1648
+ /** Approve draft content. */
1649
+ APPROVE = "APPROVE",
1650
+ /** Reject draft content. */
1651
+ REJECT = "REJECT"
1652
+ }
1653
+ export interface CreateCommentRequest {
1654
+ /** Comment to create. */
1655
+ comment?: Comment;
1656
+ }
1657
+ export interface ContactDetails {
1658
+ }
1659
+ export interface CreateCommentResponse {
1660
+ /** Created comment. */
1661
+ comment?: Comment;
1662
+ }
1663
+ export interface ResourceCommentCountChanged {
1664
+ /** ID of the app that the comment is added to. */
1665
+ appId?: string;
1666
+ /**
1667
+ * ID of the specific context the comment is in response to.
1668
+ *
1669
+ * Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum, the `forumPostId` is used as both the `contextId` and the `resourceId`.
1670
+ */
1671
+ contextId?: string;
1672
+ /**
1673
+ * ID of the specific resource that the comment is in response to.
1674
+ *
1675
+ * Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum, the `forumPostId` is used as both the `resourceId` and the `contextId`.
1676
+ */
1677
+ resourceId?: string;
1678
+ /** How many comments are published for the resource. */
1679
+ publishedCommentCount?: number;
1680
+ }
1681
+ export interface GetCommentRequest {
1682
+ /** ID of the comment to retrieve. */
1683
+ commentId: string;
1684
+ }
1685
+ export interface GetCommentResponse {
1686
+ /** Retrieved comment. */
1687
+ comment?: Comment;
1688
+ }
1689
+ /** Comment info to update. */
1690
+ export interface UpdateCommentRequest {
1691
+ /** Comment info to update. */
1692
+ comment?: Comment;
1693
+ }
1694
+ export interface UpdateCommentResponse {
1695
+ /** Updated comment. */
1696
+ comment?: Comment;
1697
+ }
1698
+ export interface CommentContentChanged {
1699
+ /** Comment ID. */
1700
+ commentId?: string;
1701
+ /** Content before the update. */
1702
+ previousContent?: CommentContent;
1703
+ /** Content after the update. */
1704
+ currentContent?: CommentContent;
1705
+ }
1706
+ export interface DeleteCommentRequest {
1707
+ /** ID of the comment to delete. */
1708
+ commentId: string;
1709
+ }
1710
+ export interface DeleteCommentResponse {
1711
+ }
1712
+ export interface CommentDeleted {
1713
+ comment?: Comment;
1714
+ }
1715
+ export interface ModerateDraftContentRequest {
1716
+ /** ID of the comment to moderate. */
1717
+ commentId: string;
1718
+ /**
1719
+ * Revision number, which increments by `1` each time the comment is updated.
1720
+ *
1721
+ * To prevent conflicting changes, the current `revision` must be passed when updating the comment.
1722
+ */
1723
+ revision: string | null;
1724
+ /** Draft content action. */
1725
+ draftContentAction?: Action;
1726
+ }
1727
+ export interface ModerateDraftContentResponse {
1728
+ /** Moderated comment. */
1729
+ comment?: Comment;
1730
+ }
1731
+ export interface CommentPublished {
1732
+ /** Comment info. */
1733
+ comment?: Comment;
1734
+ /** Whether this is the first comment publish. */
1735
+ firstPublish?: boolean;
1736
+ }
1737
+ export interface CommentHidden {
1738
+ comment?: Comment;
1739
+ }
1740
+ export interface QueryCommentsRequest {
1741
+ /** App ID to query comments for. */
1742
+ appId: string;
1743
+ /** Query options. */
1744
+ query: CursorQuery;
1745
+ }
1746
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1747
+ /**
1748
+ * Cursor paging options.
1749
+ *
1750
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
1751
+ */
1752
+ cursorPaging?: CursorPaging;
1753
+ /**
1754
+ * Filter object.
1755
+ *
1756
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
1757
+ */
1758
+ filter?: Record<string, any> | null;
1759
+ /**
1760
+ * Sort object.
1761
+ *
1762
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
1763
+ */
1764
+ sort?: Sorting[];
1765
+ }
1766
+ /** @oneof */
1767
+ export interface CursorQueryPagingMethodOneOf {
1768
+ /**
1769
+ * Cursor paging options.
1770
+ *
1771
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
1772
+ */
1773
+ cursorPaging?: CursorPaging;
1774
+ }
1775
+ export interface Sorting {
1776
+ /** Name of the field to sort by. */
1777
+ fieldName?: string;
1778
+ /** Sort order. */
1779
+ order?: SortOrder;
1780
+ }
1781
+ export declare enum SortOrder {
1782
+ ASC = "ASC",
1783
+ DESC = "DESC"
1784
+ }
1785
+ export interface CursorPaging {
1786
+ /** Maximum number of items to return in the results. */
1787
+ limit?: number | null;
1788
+ /**
1789
+ * Pointer to the next or previous page in the list of results.
1790
+ *
1791
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1792
+ * Not relevant for the first request.
1793
+ */
1794
+ cursor?: string | null;
1795
+ }
1796
+ export interface QueryCommentsResponse {
1797
+ /** Retrieved comments. */
1798
+ comments?: Comment[];
1799
+ /** Paging metadata. */
1800
+ pagingMetadata?: CursorPagingMetadata;
1801
+ }
1802
+ export interface CursorPagingMetadata {
1803
+ /** Number of items returned in current page. */
1804
+ count?: number | null;
1805
+ /** Cursor strings that point to the next page, previous page, or both. */
1806
+ cursors?: Cursors;
1807
+ /**
1808
+ * Whether there are more pages to retrieve following the current page.
1809
+ *
1810
+ * + `true`: Another page of results can be retrieved.
1811
+ * + `false`: This is the last page.
1812
+ */
1813
+ hasNext?: boolean | null;
1814
+ }
1815
+ export interface Cursors {
1816
+ /** Cursor string pointing to the next page in the list of results. */
1817
+ next?: string | null;
1818
+ /** Cursor pointing to the previous page in the list of results. */
1819
+ prev?: string | null;
1820
+ }
1821
+ export interface MarkCommentRequest {
1822
+ /** ID of the comment to mark. */
1823
+ commentId: string;
1824
+ }
1825
+ export interface MarkCommentResponse {
1826
+ /** Marked comment. */
1827
+ comment?: Comment;
1828
+ }
1829
+ export interface CommentMarked {
1830
+ comment?: Comment;
1831
+ }
1832
+ export interface UnmarkCommentRequest {
1833
+ /** ID of the comment to unmark. */
1834
+ commentId: string;
1835
+ }
1836
+ export interface UnmarkCommentResponse {
1837
+ /** Unmarked comment. */
1838
+ comment?: Comment;
1839
+ }
1840
+ export interface CommentUnmarked {
1841
+ comment?: Comment;
1842
+ }
1843
+ export interface HideCommentRequest {
1844
+ /** ID of the comment to hide. */
1845
+ commentId: string;
1846
+ }
1847
+ export interface HideCommentResponse {
1848
+ /** Hidden comment. */
1849
+ comment?: Comment;
1850
+ }
1851
+ export interface PublishCommentRequest {
1852
+ /** ID of the comment to publish. */
1853
+ commentId: string;
1854
+ }
1855
+ export interface PublishCommentResponse {
1856
+ /** Published comment. */
1857
+ comment?: Comment;
1858
+ }
1859
+ /** Count comments options. */
1860
+ export interface CountCommentsRequest {
1861
+ /** App ID to count the comments of. */
1862
+ appId?: string;
1863
+ /** Filter to identify the comments that need to be counted. */
1864
+ filter?: Record<string, any> | null;
1865
+ }
1866
+ export interface CountCommentsResponse {
1867
+ /** Number of comments. */
1868
+ count?: number;
1869
+ }
1870
+ export interface ListCommentsByResourceRequest {
1871
+ /** ID of the app from which the comments are listed. */
1872
+ appId: string;
1873
+ /**
1874
+ * ID of the specific context the comment is in response to.
1875
+ *
1876
+ * Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum, the `forumPostId` is used as both the `contextId` and the `resourceId`.
1877
+ */
1878
+ contextId: string;
1879
+ /** Reserved for internal use. */
1880
+ contextType?: string;
1881
+ /**
1882
+ * ID of the specific resource that the comment is in response to.
1883
+ *
1884
+ * Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum, the `forumPostId` is used as both the `resourceId` and the `contextId`.
1885
+ */
1886
+ resourceId: string;
1887
+ /** Comment sort. Is ignored if `cursorPaging.cursor` is defined. */
1888
+ commentSort?: CommentSort;
1889
+ /** Reply sort. Is ignored if `cursorPaging.cursor` is defined. */
1890
+ replySort?: ReplySort;
1891
+ /** Cursor paging. */
1892
+ cursorPaging?: ListCommentsByResourceCursorPaging;
1893
+ }
1894
+ export interface CommentSort {
1895
+ /** Sort order. */
1896
+ order?: Order;
1897
+ /**
1898
+ * If set to `true`, marked comments appear in the original order, and not at the top of the list.
1899
+ *
1900
+ * Default: `false`. This means that marked comments are prioritized and listed first.
1901
+ */
1902
+ keepMarkedInOriginalOrder?: boolean;
1903
+ }
1904
+ export declare enum Order {
1905
+ /** Unknown order. */
1906
+ UNKNOWN_ORDER = "UNKNOWN_ORDER",
1907
+ /** Oldest comments appear at the top of the list. */
1908
+ OLDEST_FIRST = "OLDEST_FIRST",
1909
+ /** Newest comments appear at the top of the list. */
1910
+ NEWEST_FIRST = "NEWEST_FIRST",
1911
+ /** Comments with the highest reaction count appear at the top of the list. */
1912
+ REACTION_COUNT = "REACTION_COUNT",
1913
+ /** Comments with the highest vote count appear at the top of the list. */
1914
+ NET_VOTE_COUNT = "NET_VOTE_COUNT",
1915
+ /** Comments with the highest rating appear at the top of the list. */
1916
+ RATING = "RATING",
1917
+ /** Comments with the lowest vote count appear at the top of the list. */
1918
+ NET_VOTE_COUNT_ASC = "NET_VOTE_COUNT_ASC",
1919
+ /** Comments with the lowest rating appear at the top of the list. */
1920
+ RATING_ASC = "RATING_ASC"
1921
+ }
1922
+ export interface ReplySort {
1923
+ /** Sort order. */
1924
+ order?: ReplySortOrder;
1925
+ /**
1926
+ * Whether the marked comments are listed in the original order.
1927
+ *
1928
+ * If set to `true`, marked comments appear in the original order, and not at the top of the list.
1929
+ *
1930
+ * Default: `false`. In this case marked comments are prioritized and listed first.
1931
+ */
1932
+ keepMarkedInOriginalOrder?: boolean;
1933
+ }
1934
+ export declare enum ReplySortOrder {
1935
+ /** Unknown order. */
1936
+ UNKNOWN_ORDER = "UNKNOWN_ORDER",
1937
+ /** Oldest comments appear at the top of the list. */
1938
+ OLDEST_FIRST = "OLDEST_FIRST",
1939
+ /** Newest comments appear at the top of the list. */
1940
+ NEWEST_FIRST = "NEWEST_FIRST",
1941
+ /** Comments with the highest reaction count appear at the top of the list. */
1942
+ REACTION_COUNT = "REACTION_COUNT"
1943
+ }
1944
+ export interface ListCommentsByResourceCursorPaging {
1945
+ /** Pointer to the next or previous page in the list of results. */
1946
+ cursor?: string | null;
1947
+ /** Number of items to return. */
1948
+ limit?: number | null;
1949
+ /** Maximum number of replies in a response. Only applicable to parent comments. */
1950
+ repliesLimit?: number | null;
1951
+ }
1952
+ export interface ListCommentsByResourceResponse {
1953
+ /** Listed comments. */
1954
+ comments?: Comment[];
1955
+ /** Paging metadata. */
1956
+ pagingMetadata?: CursorPagingMetadata;
1957
+ /** Listed comment replies. */
1958
+ commentReplies?: Record<string, RepliesListResponse>;
1959
+ }
1960
+ export interface RepliesListResponse {
1961
+ /** Listed comment replies. */
1962
+ replies?: Comment[];
1963
+ /** Paging metadata. */
1964
+ pagingMetadata?: CursorPagingMetadata;
1965
+ }
1966
+ export interface GetCommentThreadRequest {
1967
+ /**
1968
+ * App ID.
1969
+ * @deprecated App ID.
1970
+ * @targetRemovalDate 2024-11-01
1971
+ */
1972
+ appId?: string;
1973
+ /** Comment ID. */
1974
+ commentId: string;
1975
+ /** Comment sorting. */
1976
+ commentSort?: CommentSort;
1977
+ /** Reply sorting. */
1978
+ replySort?: ReplySort;
1979
+ }
1980
+ export interface GetCommentThreadResponse {
1981
+ /** Retrieved replies. */
1982
+ comments?: Comment[];
1983
+ /** Paging metadata. */
1984
+ pagingMetadata?: CursorPagingMetadata;
1985
+ /** Retrieved replies of a reply. */
1986
+ commentReplies?: Record<string, RepliesListResponse>;
1987
+ }
1988
+ export interface BulkPublishCommentRequest {
1989
+ /** ID of the app where to publish the comment. */
1990
+ appId: string;
1991
+ /** Filter to identify the comments that need to be published. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
1992
+ filter: Record<string, any> | null;
1993
+ }
1994
+ export interface BulkPublishCommentResponse {
1995
+ /**
1996
+ * Job ID.
1997
+ *
1998
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
1999
+ */
2000
+ jobId?: string;
2001
+ }
2002
+ export interface BulkHideCommentRequest {
2003
+ /** ID of the app where to hide the comments. */
2004
+ appId: string;
2005
+ /** Filter to identify the comments that need to be hidden. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
2006
+ filter: Record<string, any> | null;
2007
+ }
2008
+ export interface BulkHideCommentResponse {
2009
+ /**
2010
+ * Job ID.
2011
+ *
2012
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2013
+ */
2014
+ jobId?: string;
2015
+ }
2016
+ export interface BulkDeleteCommentRequest {
2017
+ /** ID of the app where to delete the comments. */
2018
+ appId: string;
2019
+ /** Filter to identify the comments that need to be deleted. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
2020
+ filter: Record<string, any> | null;
2021
+ }
2022
+ export interface BulkDeleteCommentResponse {
2023
+ /**
2024
+ * Job ID.
2025
+ *
2026
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2027
+ */
2028
+ jobId?: string;
2029
+ }
2030
+ export interface BulkModerateDraftContentRequest {
2031
+ /** ID of the app where to moderate the comments. */
2032
+ appId: string;
2033
+ /** Filter to identify the comment content that needs to be moderated. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
2034
+ filter: Record<string, any> | null;
2035
+ /** Action to do regarding draft content */
2036
+ draftContentAction: Action;
2037
+ }
2038
+ export interface BulkModerateDraftContentResponse {
2039
+ /**
2040
+ * Job ID.
2041
+ *
2042
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2043
+ */
2044
+ jobId?: string;
2045
+ }
2046
+ export interface BulkMoveCommentByFilterRequest {
2047
+ /** ID of the app from which to move the comments. */
2048
+ appId: string;
2049
+ /** Filter to identify the comments that need to be moved. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
2050
+ filter: Record<string, any> | null;
2051
+ /** Where to move the comment. */
2052
+ destination?: Destination;
2053
+ }
2054
+ export interface Destination {
2055
+ /** Context ID of where to move the comment to. */
2056
+ contextId?: string;
2057
+ /** Resource ID of where to move the comment to. */
2058
+ resourceId?: string;
2059
+ }
2060
+ export interface BulkMoveCommentByFilterResponse {
2061
+ /**
2062
+ * Job ID.
2063
+ *
2064
+ * Pass this ID to Get Async Job to retrieve job details and metadata.
2065
+ */
2066
+ jobId?: string;
2067
+ }
2068
+ export interface CommentMoved {
2069
+ comment?: Comment;
2070
+ destination?: Destination;
2071
+ }
2072
+ export interface DomainEvent extends DomainEventBodyOneOf {
2073
+ createdEvent?: EntityCreatedEvent;
2074
+ updatedEvent?: EntityUpdatedEvent;
2075
+ deletedEvent?: EntityDeletedEvent;
2076
+ actionEvent?: ActionEvent;
2077
+ /**
2078
+ * Unique event ID.
2079
+ * Allows clients to ignore duplicate webhooks.
2080
+ */
2081
+ _id?: string;
2082
+ /**
2083
+ * Assumes actions are also always typed to an entity_type
2084
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2085
+ */
2086
+ entityFqdn?: string;
2087
+ /**
2088
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2089
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2090
+ * Example: created/updated/deleted/started/completed/email_opened
2091
+ */
2092
+ slug?: string;
2093
+ /** ID of the entity associated with the event. */
2094
+ entityId?: string;
2095
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2096
+ eventTime?: Date | null;
2097
+ /**
2098
+ * Whether the event was triggered as a result of a privacy regulation application
2099
+ * (for example, GDPR).
2100
+ */
2101
+ triggeredByAnonymizeRequest?: boolean | null;
2102
+ /** If present, indicates the action that triggered the event. */
2103
+ originatedFrom?: string | null;
2104
+ /**
2105
+ * A sequence number defining the order of updates to the underlying entity.
2106
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2107
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2108
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2109
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2110
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2111
+ */
2112
+ entityEventSequence?: string | null;
2113
+ }
2114
+ /** @oneof */
2115
+ export interface DomainEventBodyOneOf {
2116
+ createdEvent?: EntityCreatedEvent;
2117
+ updatedEvent?: EntityUpdatedEvent;
2118
+ deletedEvent?: EntityDeletedEvent;
2119
+ actionEvent?: ActionEvent;
2120
+ }
2121
+ export interface EntityCreatedEvent {
2122
+ entity?: string;
2123
+ }
2124
+ export interface RestoreInfo {
2125
+ deletedDate?: Date | null;
2126
+ }
2127
+ export interface EntityUpdatedEvent {
2128
+ /**
2129
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2130
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2131
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2132
+ */
2133
+ currentEntity?: string;
2134
+ }
2135
+ export interface EntityDeletedEvent {
2136
+ /** Entity that was deleted */
2137
+ deletedEntity?: string | null;
2138
+ }
2139
+ export interface ActionEvent {
2140
+ body?: string;
2141
+ }
2142
+ export interface MessageEnvelope {
2143
+ /** App instance ID. */
2144
+ instanceId?: string | null;
2145
+ /** Event type. */
2146
+ eventType?: string;
2147
+ /** The identification type and identity data. */
2148
+ identity?: IdentificationData;
2149
+ /** Stringify payload. */
2150
+ data?: string;
2151
+ }
2152
+ export interface IdentificationData extends IdentificationDataIdOneOf {
2153
+ /** ID of a site visitor that has not logged in to the site. */
2154
+ anonymousVisitorId?: string;
2155
+ /** ID of a site visitor that has logged in to the site. */
2156
+ memberId?: string;
2157
+ /** ID of a Wix user (site owner, contributor, etc.). */
2158
+ wixUserId?: string;
2159
+ /** ID of an app. */
2160
+ appId?: string;
2161
+ /** @readonly */
2162
+ identityType?: WebhookIdentityType;
2163
+ }
2164
+ /** @oneof */
2165
+ export interface IdentificationDataIdOneOf {
2166
+ /** ID of a site visitor that has not logged in to the site. */
2167
+ anonymousVisitorId?: string;
2168
+ /** ID of a site visitor that has logged in to the site. */
2169
+ memberId?: string;
2170
+ /** ID of a Wix user (site owner, contributor, etc.). */
2171
+ wixUserId?: string;
2172
+ /** ID of an app. */
2173
+ appId?: string;
2174
+ }
2175
+ export declare enum WebhookIdentityType {
2176
+ UNKNOWN = "UNKNOWN",
2177
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2178
+ MEMBER = "MEMBER",
2179
+ WIX_USER = "WIX_USER",
2180
+ APP = "APP"
2181
+ }
2182
+ interface PluginContainerDataWidthNonNullableFields {
2183
+ size: WidthType;
2184
+ }
2185
+ interface PluginContainerDataNonNullableFields {
2186
+ width?: PluginContainerDataWidthNonNullableFields;
2187
+ alignment: PluginContainerDataAlignment;
2188
+ }
2189
+ interface LinkNonNullableFields {
2190
+ url: string;
2191
+ anchor: string;
2192
+ target: Target;
2193
+ }
2194
+ interface ButtonDataNonNullableFields {
2195
+ containerData?: PluginContainerDataNonNullableFields;
2196
+ type: Type;
2197
+ link?: LinkNonNullableFields;
2198
+ }
2199
+ interface TextStyleNonNullableFields {
2200
+ textAlignment: TextAlignment;
2201
+ }
2202
+ interface CodeBlockDataNonNullableFields {
2203
+ textStyle?: TextStyleNonNullableFields;
2204
+ }
2205
+ interface DividerDataNonNullableFields {
2206
+ containerData?: PluginContainerDataNonNullableFields;
2207
+ lineStyle: LineStyle;
2208
+ width: Width;
2209
+ alignment: Alignment;
2210
+ }
2211
+ interface PDFSettingsNonNullableFields {
2212
+ viewMode: ViewMode;
2213
+ }
2214
+ interface FileDataNonNullableFields {
2215
+ containerData?: PluginContainerDataNonNullableFields;
2216
+ pdfSettings?: PDFSettingsNonNullableFields;
2217
+ }
2218
+ interface ImageNonNullableFields {
2219
+ link?: LinkNonNullableFields;
2220
+ }
2221
+ interface ItemNonNullableFields {
2222
+ image?: ImageNonNullableFields;
2223
+ }
2224
+ interface LayoutNonNullableFields {
2225
+ type: LayoutType;
2226
+ orientation: Orientation;
2227
+ }
2228
+ interface ItemStyleNonNullableFields {
2229
+ crop: Crop;
2230
+ }
2231
+ interface ThumbnailsNonNullableFields {
2232
+ placement: ThumbnailsAlignment;
2233
+ }
2234
+ interface GalleryOptionsNonNullableFields {
2235
+ layout?: LayoutNonNullableFields;
2236
+ item?: ItemStyleNonNullableFields;
2237
+ thumbnails?: ThumbnailsNonNullableFields;
2238
+ }
2239
+ interface GalleryDataNonNullableFields {
2240
+ containerData?: PluginContainerDataNonNullableFields;
2241
+ items: ItemNonNullableFields[];
2242
+ options?: GalleryOptionsNonNullableFields;
2243
+ }
2244
+ interface GIFDataNonNullableFields {
2245
+ containerData?: PluginContainerDataNonNullableFields;
2246
+ height: number;
2247
+ width: number;
2248
+ gifType: GIFType;
2249
+ }
2250
+ interface HeadingDataNonNullableFields {
2251
+ level: number;
2252
+ textStyle?: TextStyleNonNullableFields;
2253
+ }
2254
+ interface HTMLDataNonNullableFields {
2255
+ url: string;
2256
+ html: string;
2257
+ containerData?: PluginContainerDataNonNullableFields;
2258
+ source: Source;
2259
+ }
2260
+ interface ImageDataNonNullableFields {
2261
+ containerData?: PluginContainerDataNonNullableFields;
2262
+ link?: LinkNonNullableFields;
2263
+ }
2264
+ interface LinkPreviewDataNonNullableFields {
2265
+ containerData?: PluginContainerDataNonNullableFields;
2266
+ link?: LinkNonNullableFields;
2267
+ }
2268
+ interface MapSettingsNonNullableFields {
2269
+ mapType: MapType;
2270
+ }
2271
+ interface MapDataNonNullableFields {
2272
+ containerData?: PluginContainerDataNonNullableFields;
2273
+ mapSettings?: MapSettingsNonNullableFields;
2274
+ }
2275
+ interface ParagraphDataNonNullableFields {
2276
+ textStyle?: TextStyleNonNullableFields;
2277
+ }
2278
+ interface PermissionsNonNullableFields {
2279
+ view: ViewRole;
2280
+ vote: VoteRole;
2281
+ }
2282
+ interface SettingsNonNullableFields {
2283
+ permissions?: PermissionsNonNullableFields;
2284
+ }
2285
+ interface PollNonNullableFields {
2286
+ settings?: SettingsNonNullableFields;
2287
+ }
2288
+ interface PollLayoutNonNullableFields {
2289
+ type: PollLayoutType;
2290
+ direction: PollLayoutDirection;
2291
+ }
2292
+ interface PollDataLayoutNonNullableFields {
2293
+ poll?: PollLayoutNonNullableFields;
2294
+ }
2295
+ interface BackgroundNonNullableFields {
2296
+ type: BackgroundType;
2297
+ }
2298
+ interface PollDesignNonNullableFields {
2299
+ background?: BackgroundNonNullableFields;
2300
+ }
2301
+ interface DesignNonNullableFields {
2302
+ poll?: PollDesignNonNullableFields;
2303
+ }
2304
+ interface PollDataNonNullableFields {
2305
+ containerData?: PluginContainerDataNonNullableFields;
2306
+ poll?: PollNonNullableFields;
2307
+ layout?: PollDataLayoutNonNullableFields;
2308
+ design?: DesignNonNullableFields;
2309
+ }
2310
+ interface AnchorDataNonNullableFields {
2311
+ anchor: string;
2312
+ }
2313
+ interface LinkDataNonNullableFields {
2314
+ link?: LinkNonNullableFields;
2315
+ }
2316
+ interface MentionDataNonNullableFields {
2317
+ name: string;
2318
+ slug: string;
2319
+ }
2320
+ interface FontSizeDataNonNullableFields {
2321
+ unit: FontType;
2322
+ }
2323
+ interface DecorationNonNullableFields {
2324
+ anchorData?: AnchorDataNonNullableFields;
2325
+ linkData?: LinkDataNonNullableFields;
2326
+ mentionData?: MentionDataNonNullableFields;
2327
+ fontSizeData?: FontSizeDataNonNullableFields;
2328
+ type: DecorationType;
2329
+ }
2330
+ interface TextDataNonNullableFields {
2331
+ text: string;
2332
+ decorations: DecorationNonNullableFields[];
2333
+ }
2334
+ interface AppEmbedDataNonNullableFields {
2335
+ type: AppType;
2336
+ }
2337
+ interface VideoDataNonNullableFields {
2338
+ containerData?: PluginContainerDataNonNullableFields;
2339
+ }
2340
+ interface EmbedDataNonNullableFields {
2341
+ containerData?: PluginContainerDataNonNullableFields;
2342
+ }
2343
+ interface CollapsibleListDataNonNullableFields {
2344
+ containerData?: PluginContainerDataNonNullableFields;
2345
+ initialExpandedItems: InitialExpandedItems;
2346
+ direction: Direction;
2347
+ }
2348
+ interface DimensionsNonNullableFields {
2349
+ colsWidthRatio: number[];
2350
+ rowsHeight: number[];
2351
+ colsMinWidth: number[];
2352
+ }
2353
+ interface TableDataNonNullableFields {
2354
+ containerData?: PluginContainerDataNonNullableFields;
2355
+ dimensions?: DimensionsNonNullableFields;
2356
+ }
2357
+ interface CellStyleNonNullableFields {
2358
+ verticalAlignment: VerticalAlignment;
2359
+ }
2360
+ interface TableCellDataNonNullableFields {
2361
+ cellStyle?: CellStyleNonNullableFields;
2362
+ }
2363
+ interface AudioDataNonNullableFields {
2364
+ containerData?: PluginContainerDataNonNullableFields;
2365
+ }
2366
+ interface OrderedListDataNonNullableFields {
2367
+ indentation: number;
2368
+ }
2369
+ interface BulletedListDataNonNullableFields {
2370
+ indentation: number;
2371
+ }
2372
+ interface BlockquoteDataNonNullableFields {
2373
+ indentation: number;
2374
+ }
2375
+ interface CaptionDataNonNullableFields {
2376
+ textStyle?: TextStyleNonNullableFields;
2377
+ }
2378
+ interface NodeNonNullableFields {
2379
+ buttonData?: ButtonDataNonNullableFields;
2380
+ codeBlockData?: CodeBlockDataNonNullableFields;
2381
+ dividerData?: DividerDataNonNullableFields;
2382
+ fileData?: FileDataNonNullableFields;
2383
+ galleryData?: GalleryDataNonNullableFields;
2384
+ gifData?: GIFDataNonNullableFields;
2385
+ headingData?: HeadingDataNonNullableFields;
2386
+ htmlData?: HTMLDataNonNullableFields;
2387
+ imageData?: ImageDataNonNullableFields;
2388
+ linkPreviewData?: LinkPreviewDataNonNullableFields;
2389
+ mapData?: MapDataNonNullableFields;
2390
+ paragraphData?: ParagraphDataNonNullableFields;
2391
+ pollData?: PollDataNonNullableFields;
2392
+ textData?: TextDataNonNullableFields;
2393
+ appEmbedData?: AppEmbedDataNonNullableFields;
2394
+ videoData?: VideoDataNonNullableFields;
2395
+ embedData?: EmbedDataNonNullableFields;
2396
+ collapsibleListData?: CollapsibleListDataNonNullableFields;
2397
+ tableData?: TableDataNonNullableFields;
2398
+ tableCellData?: TableCellDataNonNullableFields;
2399
+ audioData?: AudioDataNonNullableFields;
2400
+ orderedListData?: OrderedListDataNonNullableFields;
2401
+ bulletedListData?: BulletedListDataNonNullableFields;
2402
+ blockquoteData?: BlockquoteDataNonNullableFields;
2403
+ captionData?: CaptionDataNonNullableFields;
2404
+ type: NodeType;
2405
+ _id: string;
2406
+ nodes: NodeNonNullableFields[];
2407
+ }
2408
+ interface MetadataNonNullableFields {
2409
+ version: number;
2410
+ }
2411
+ interface TextNodeStyleNonNullableFields {
2412
+ decorations: DecorationNonNullableFields[];
2413
+ }
2414
+ interface DocumentStyleNonNullableFields {
2415
+ headerOne?: TextNodeStyleNonNullableFields;
2416
+ headerTwo?: TextNodeStyleNonNullableFields;
2417
+ headerThree?: TextNodeStyleNonNullableFields;
2418
+ headerFour?: TextNodeStyleNonNullableFields;
2419
+ headerFive?: TextNodeStyleNonNullableFields;
2420
+ headerSix?: TextNodeStyleNonNullableFields;
2421
+ paragraph?: TextNodeStyleNonNullableFields;
2422
+ blockquote?: TextNodeStyleNonNullableFields;
2423
+ codeBlock?: TextNodeStyleNonNullableFields;
2424
+ }
2425
+ interface RichContentNonNullableFields {
2426
+ nodes: NodeNonNullableFields[];
2427
+ metadata?: MetadataNonNullableFields;
2428
+ documentStyle?: DocumentStyleNonNullableFields;
2429
+ }
2430
+ interface AttachmentNonNullableFields {
2431
+ image: string;
2432
+ video: string;
2433
+ audio: string;
2434
+ document: string;
2435
+ }
2436
+ interface CommentContentNonNullableFields {
2437
+ richContent?: RichContentNonNullableFields;
2438
+ attachments: AttachmentNonNullableFields[];
2439
+ }
2440
+ interface ParentCommentNonNullableFields {
2441
+ status: Status;
2442
+ }
2443
+ interface VoteSummaryNonNullableFields {
2444
+ netVoteCount: number;
2445
+ upvoteCount: number;
2446
+ downvoteCount: number;
2447
+ }
2448
+ interface CommentReactionSummaryNonNullableFields {
2449
+ total: number;
2450
+ }
2451
+ export interface CommentNonNullableFields {
2452
+ content?: CommentContentNonNullableFields;
2453
+ draftContent?: CommentContentNonNullableFields;
2454
+ parentComment?: ParentCommentNonNullableFields;
2455
+ parentIdsInThread: string[];
2456
+ replyCount: number;
2457
+ voteSummary?: VoteSummaryNonNullableFields;
2458
+ status: Status;
2459
+ reactionSummary?: CommentReactionSummaryNonNullableFields;
2460
+ marked: boolean;
2461
+ }
2462
+ export interface CreateCommentResponseNonNullableFields {
2463
+ comment?: CommentNonNullableFields;
2464
+ }
2465
+ export interface GetCommentResponseNonNullableFields {
2466
+ comment?: CommentNonNullableFields;
2467
+ }
2468
+ export interface UpdateCommentResponseNonNullableFields {
2469
+ comment?: CommentNonNullableFields;
2470
+ }
2471
+ export interface ModerateDraftContentResponseNonNullableFields {
2472
+ comment?: CommentNonNullableFields;
2473
+ }
2474
+ export interface QueryCommentsResponseNonNullableFields {
2475
+ comments: CommentNonNullableFields[];
2476
+ }
2477
+ export interface MarkCommentResponseNonNullableFields {
2478
+ comment?: CommentNonNullableFields;
2479
+ }
2480
+ export interface UnmarkCommentResponseNonNullableFields {
2481
+ comment?: CommentNonNullableFields;
2482
+ }
2483
+ export interface HideCommentResponseNonNullableFields {
2484
+ comment?: CommentNonNullableFields;
2485
+ }
2486
+ export interface PublishCommentResponseNonNullableFields {
2487
+ comment?: CommentNonNullableFields;
2488
+ }
2489
+ export interface CountCommentsResponseNonNullableFields {
2490
+ count: number;
2491
+ }
2492
+ export interface ListCommentsByResourceResponseNonNullableFields {
2493
+ comments: CommentNonNullableFields[];
2494
+ }
2495
+ export interface GetCommentThreadResponseNonNullableFields {
2496
+ comments: CommentNonNullableFields[];
2497
+ }
2498
+ export interface BulkPublishCommentResponseNonNullableFields {
2499
+ jobId: string;
2500
+ }
2501
+ export interface BulkHideCommentResponseNonNullableFields {
2502
+ jobId: string;
2503
+ }
2504
+ export interface BulkDeleteCommentResponseNonNullableFields {
2505
+ jobId: string;
2506
+ }
2507
+ export interface BulkModerateDraftContentResponseNonNullableFields {
2508
+ jobId: string;
2509
+ }
2510
+ export interface BulkMoveCommentByFilterResponseNonNullableFields {
2511
+ jobId: string;
2512
+ }
2513
+ export interface BaseEventMetadata {
2514
+ /** App instance ID. */
2515
+ instanceId?: string | null;
2516
+ /** Event type. */
2517
+ eventType?: string;
2518
+ /** The identification type and identity data. */
2519
+ identity?: IdentificationData;
2520
+ }
2521
+ export interface EventMetadata extends BaseEventMetadata {
2522
+ /**
2523
+ * Unique event ID.
2524
+ * Allows clients to ignore duplicate webhooks.
2525
+ */
2526
+ _id?: string;
2527
+ /**
2528
+ * Assumes actions are also always typed to an entity_type
2529
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2530
+ */
2531
+ entityFqdn?: string;
2532
+ /**
2533
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2534
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2535
+ * Example: created/updated/deleted/started/completed/email_opened
2536
+ */
2537
+ slug?: string;
2538
+ /** ID of the entity associated with the event. */
2539
+ entityId?: string;
2540
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2541
+ eventTime?: Date | null;
2542
+ /**
2543
+ * Whether the event was triggered as a result of a privacy regulation application
2544
+ * (for example, GDPR).
2545
+ */
2546
+ triggeredByAnonymizeRequest?: boolean | null;
2547
+ /** If present, indicates the action that triggered the event. */
2548
+ originatedFrom?: string | null;
2549
+ /**
2550
+ * A sequence number defining the order of updates to the underlying entity.
2551
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2552
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2553
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2554
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2555
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2556
+ */
2557
+ entityEventSequence?: string | null;
2558
+ }
2559
+ export interface CommentContentChangedEnvelope {
2560
+ data: CommentContentChanged;
2561
+ metadata: EventMetadata;
2562
+ }
2563
+ /**
2564
+ * Triggered when comment content is updated.
2565
+ * @permissionScope Read Comments
2566
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2567
+ * @permissionScope Manage Comments
2568
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2569
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2570
+ * @webhook
2571
+ * @eventType wix.comments.v2.comment_comment_content_changed
2572
+ */
2573
+ export declare function onCommentContentChanged(handler: (event: CommentContentChangedEnvelope) => void | Promise<void>): void;
2574
+ export interface CommentHiddenEnvelope {
2575
+ data: CommentHidden;
2576
+ metadata: EventMetadata;
2577
+ }
2578
+ /**
2579
+ * Triggered when a comment is hidden.
2580
+ * @permissionScope Read Comments
2581
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2582
+ * @permissionScope Manage Comments
2583
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2584
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2585
+ * @webhook
2586
+ * @eventType wix.comments.v2.comment_comment_hidden
2587
+ * @documentationMaturity preview
2588
+ */
2589
+ export declare function onCommentHidden(handler: (event: CommentHiddenEnvelope) => void | Promise<void>): void;
2590
+ export interface CommentMarkedEnvelope {
2591
+ data: CommentMarked;
2592
+ metadata: EventMetadata;
2593
+ }
2594
+ /**
2595
+ * Triggered when a comment is marked.
2596
+ * @permissionScope Read Comments
2597
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2598
+ * @permissionScope Manage Comments
2599
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2600
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2601
+ * @webhook
2602
+ * @eventType wix.comments.v2.comment_comment_marked
2603
+ */
2604
+ export declare function onCommentMarked(handler: (event: CommentMarkedEnvelope) => void | Promise<void>): void;
2605
+ export interface CommentMovedEnvelope {
2606
+ data: CommentMoved;
2607
+ metadata: EventMetadata;
2608
+ }
2609
+ /**
2610
+ * Triggered when a comment is moved.
2611
+ * @permissionScope Read Comments
2612
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2613
+ * @permissionScope Manage Comments
2614
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2615
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2616
+ * @webhook
2617
+ * @eventType wix.comments.v2.comment_comment_moved
2618
+ * @documentationMaturity preview
2619
+ */
2620
+ export declare function onCommentMoved(handler: (event: CommentMovedEnvelope) => void | Promise<void>): void;
2621
+ export interface CommentPublishedEnvelope {
2622
+ data: CommentPublished;
2623
+ metadata: EventMetadata;
2624
+ }
2625
+ /**
2626
+ * Triggered when a comment is published.
2627
+ * @permissionScope Read Comments
2628
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2629
+ * @permissionScope Manage Comments
2630
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2631
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2632
+ * @webhook
2633
+ * @eventType wix.comments.v2.comment_comment_published
2634
+ * @documentationMaturity preview
2635
+ */
2636
+ export declare function onCommentPublished(handler: (event: CommentPublishedEnvelope) => void | Promise<void>): void;
2637
+ export interface CommentUnmarkedEnvelope {
2638
+ data: CommentUnmarked;
2639
+ metadata: EventMetadata;
2640
+ }
2641
+ /**
2642
+ * Triggered when a comment is unmarked.
2643
+ * @permissionScope Read Comments
2644
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2645
+ * @permissionScope Manage Comments
2646
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2647
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2648
+ * @webhook
2649
+ * @eventType wix.comments.v2.comment_comment_unmarked
2650
+ */
2651
+ export declare function onCommentUnmarked(handler: (event: CommentUnmarkedEnvelope) => void | Promise<void>): void;
2652
+ export interface CommentCreatedEnvelope {
2653
+ entity: Comment;
2654
+ metadata: EventMetadata;
2655
+ }
2656
+ /**
2657
+ * Triggered when a comment is created.
2658
+ * @permissionScope Read Comments
2659
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2660
+ * @permissionScope Manage Comments
2661
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2662
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2663
+ * @webhook
2664
+ * @eventType wix.comments.v2.comment_created
2665
+ */
2666
+ export declare function onCommentCreated(handler: (event: CommentCreatedEnvelope) => void | Promise<void>): void;
2667
+ export interface CommentResourceCommentCountChangedEnvelope {
2668
+ data: ResourceCommentCountChanged;
2669
+ metadata: EventMetadata;
2670
+ }
2671
+ /**
2672
+ * Triggered when the total number of comments has changed in a resource.
2673
+ * @permissionScope Read Comments
2674
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2675
+ * @permissionScope Manage Comments
2676
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2677
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2678
+ * @webhook
2679
+ * @eventType wix.comments.v2.comment_resource_comment_count_changed
2680
+ */
2681
+ export declare function onCommentResourceCommentCountChanged(handler: (event: CommentResourceCommentCountChangedEnvelope) => void | Promise<void>): void;
2682
+ export interface CommentUpdatedEnvelope {
2683
+ entity: Comment;
2684
+ metadata: EventMetadata;
2685
+ }
2686
+ /**
2687
+ * Triggered when a comment is updated.
2688
+ * @permissionScope Read Comments
2689
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2690
+ * @permissionScope Manage Comments
2691
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2692
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2693
+ * @webhook
2694
+ * @eventType wix.comments.v2.comment_updated
2695
+ */
2696
+ export declare function onCommentUpdated(handler: (event: CommentUpdatedEnvelope) => void | Promise<void>): void;
2697
+ /**
2698
+ * Creates a new comment and publishes it.
2699
+ *
2700
+ * The `appId`, `contextId`, and `resourceId` are all required and associate the created comment with the specific
2701
+ * resource it responds to. See **Integrations** in the Comments introduction for a list of integrated scopes for these fields.
2702
+ *
2703
+ * If the created comment is a direct response to another comment, the `commentId` of the parent comment should be passed
2704
+ * as `parentComment.id` in this comment's request. See **Terminology** in the Comments introduction for additional information on parent comments and replies.
2705
+ * @param comment - Comment to create.
2706
+ * @public
2707
+ * @requiredField comment
2708
+ * @requiredField comment.appId
2709
+ * @requiredField comment.content
2710
+ * @requiredField comment.contextId
2711
+ * @requiredField comment.resourceId
2712
+ * @permissionId WIX_COMMENTS.COMMENT_CREATE
2713
+ * @permissionId WIX_COMMENTS.COMMENT_OVERRIDE_AUTHOR
2714
+ * @permissionId WIX_COMMENTS.COMMENT_OVERRIDE_COMMENT_DATE
2715
+ * @permissionScope Manage Comments
2716
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2717
+ * @permissionScope Manage Comments
2718
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2719
+ * @permissionScope Manage Comments
2720
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2721
+ * @applicableIdentity APP
2722
+ * @returns Created comment.
2723
+ * @fqn wix.comments.ng.v1.CommentsNg.CreateComment
2724
+ */
2725
+ export declare function createComment(comment: Comment): Promise<Comment & CommentNonNullableFields>;
2726
+ /**
2727
+ * Retrieves a comment.
2728
+ * @param commentId - ID of the comment to retrieve.
2729
+ * @public
2730
+ * @requiredField commentId
2731
+ * @permissionId WIX_COMMENTS.COMMENT_READ
2732
+ * @permissionScope Read Comments
2733
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2734
+ * @permissionScope Manage Comments
2735
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2736
+ * @applicableIdentity APP
2737
+ * @returns Retrieved comment.
2738
+ * @fqn wix.comments.ng.v1.CommentsNg.GetComment
2739
+ */
2740
+ export declare function getComment(commentId: string): Promise<Comment & CommentNonNullableFields>;
2741
+ /**
2742
+ * Updates a comment.
2743
+ *
2744
+ * Each time the comment is updated, `revision` increments by 1. The current `revision` must be
2745
+ * passed when updating the comment. This ensures you're working with the latest comment and
2746
+ * prevents unintended overwrites.
2747
+ * @param _id - Comment ID.
2748
+ * @public
2749
+ * @requiredField _id
2750
+ * @requiredField comment
2751
+ * @requiredField comment.revision
2752
+ * @permissionId WIX_COMMENTS.COMMENT_UPDATE
2753
+ * @permissionScope Manage Comments
2754
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2755
+ * @applicableIdentity APP
2756
+ * @returns Updated comment.
2757
+ * @fqn wix.comments.ng.v1.CommentsNg.UpdateComment
2758
+ */
2759
+ export declare function updateComment(_id: string | null, comment: UpdateComment): Promise<Comment & CommentNonNullableFields>;
2760
+ export interface UpdateComment {
2761
+ /**
2762
+ * Comment ID.
2763
+ * @readonly
2764
+ */
2765
+ _id?: string | null;
2766
+ /**
2767
+ * Revision number, which increments by 1 each time the comment is updated.
2768
+ *
2769
+ * To prevent conflicting changes, the current `revision` must be passed when updating the comment.
2770
+ * @readonly
2771
+ */
2772
+ revision?: string | null;
2773
+ /**
2774
+ * Date and time the comment was created.
2775
+ *
2776
+ * **Note:** This is the date from the system database, not the actual date when the comment was created. For example, if you migrate comments created in 2016, the `createdDate` field will show the current year. For the actual creation date, see the `commentDate` field.
2777
+ * @readonly
2778
+ */
2779
+ _createdDate?: Date | null;
2780
+ /**
2781
+ * Date and time the comment was last updated.
2782
+ * @readonly
2783
+ */
2784
+ _updatedDate?: Date | null;
2785
+ /** ID of the app that the comment is added to. */
2786
+ appId?: string | null;
2787
+ /**
2788
+ * ID of the specific context the comment is in response to.
2789
+ *
2790
+ * Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum,
2791
+ * the `forumPostId` is used as both the `contextId` and the `resourceId`.
2792
+ */
2793
+ contextId?: string | null;
2794
+ /**
2795
+ * ID of the specific resource that the comment is in response to.
2796
+ *
2797
+ * Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum,
2798
+ * the `forumPostId` is used as both the `resourceId` and the `contextId`.
2799
+ */
2800
+ resourceId?: string | null;
2801
+ /** Published comment content. */
2802
+ content?: CommentContent;
2803
+ /** Comment's author. */
2804
+ author?: CommentAuthor;
2805
+ /**
2806
+ * Parent comment information.
2807
+ *
2808
+ * Only present if this comment is in a direct reply to another comment.
2809
+ * See **Terminology** in the Comments introduction
2810
+ * for more information about parent comments.
2811
+ */
2812
+ parentComment?: ParentComment;
2813
+ /**
2814
+ * Number of comments that reply to this comment.
2815
+ * @readonly
2816
+ */
2817
+ replyCount?: number;
2818
+ /**
2819
+ * Summary of votes.
2820
+ * @readonly
2821
+ */
2822
+ voteSummary?: VoteSummary;
2823
+ /**
2824
+ * Comment status.
2825
+ * @readonly
2826
+ */
2827
+ status?: Status;
2828
+ /**
2829
+ * Comment rating.
2830
+ * @readonly
2831
+ */
2832
+ rating?: number | null;
2833
+ /**
2834
+ * Summary of reactions.
2835
+ * @readonly
2836
+ */
2837
+ reactionSummary?: CommentReactionSummary;
2838
+ /** Whether the comment is marked. */
2839
+ marked?: boolean;
2840
+ /** Date and time when the comment was actually created. */
2841
+ commentDate?: Date | null;
2842
+ /**
2843
+ * Whether the comment has the updated content.
2844
+ * @readonly
2845
+ */
2846
+ contentEdited?: boolean | null;
2847
+ }
2848
+ /**
2849
+ * Deletes a comment.
2850
+ *
2851
+ * This method deletes the `content` of the comment and sets its `status` to `DELETED`.
2852
+ * @param commentId - ID of the comment to delete.
2853
+ * @public
2854
+ * @requiredField commentId
2855
+ * @permissionId WIX_COMMENTS.COMMENT_DELETE
2856
+ * @permissionScope Manage Comments
2857
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2858
+ * @applicableIdentity APP
2859
+ * @fqn wix.comments.ng.v1.CommentsNg.DeleteComment
2860
+ */
2861
+ export declare function deleteComment(commentId: string): Promise<void>;
2862
+ /**
2863
+ * Moderates the draft content of a comment.
2864
+ *
2865
+ * - `APPROVE`: Moves `draftContent` to `content` and updates the comment `status` to `PUBLISHED`.
2866
+ * - `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`.
2867
+ * @param commentId - ID of the comment to moderate.
2868
+ * @param revision - Revision number, which increments by `1` each time the comment is updated.
2869
+ *
2870
+ * To prevent conflicting changes, the current `revision` must be passed when updating the comment.
2871
+ * @public
2872
+ * @documentationMaturity preview
2873
+ * @requiredField commentId
2874
+ * @requiredField revision
2875
+ * @permissionId WIX_COMMENTS.COMMENT_MODERATE_DRAFT_CONTENT
2876
+ * @fqn wix.comments.ng.v1.CommentsNg.ModerateDraftContent
2877
+ */
2878
+ export declare function moderateDraftContent(commentId: string, revision: string | null, options?: ModerateDraftContentOptions): Promise<ModerateDraftContentResponse & ModerateDraftContentResponseNonNullableFields>;
2879
+ export interface ModerateDraftContentOptions {
2880
+ /** Draft content action. */
2881
+ draftContentAction?: Action;
2882
+ }
2883
+ /**
2884
+ * Creates a query to retrieve a list of comments.
2885
+ *
2886
+ * The `queryComments()` function builds a query to retrieve a list of comments and returns a [`CommentsQueryBuilder`](#commentsquerybuilder) object.
2887
+ *
2888
+ * The returned object contains the query definition, which is typically used to run the query using the [`find()`](#commentsquerybuilder/find) function.
2889
+ *
2890
+ * You can refine the query by chaining `CommentsQueryBuilder` functions onto the query. `CommentsQueryBuilder` functions enable you to sort, filter, and control the results that `queryComments()` returns.
2891
+ *
2892
+ * `queryComments()` runs with the following `CommentsQueryBuilder` default that you can override:
2893
+ * + `ascending("_id")`
2894
+ *
2895
+ * The functions that are chained to `queryComments()` are applied in the order they are called. For example, if you apply `ascending("voteSummary.netVoteCount")` and then `ascending("replyCount")`, the results are sorted first by the `"voteSummary.netVoteCount"`, and then, if there are multiple results with the same `"voteSummary.netVoteCount"`, the items are sorted by `"replyCount"`.
2896
+ *
2897
+ * The following `CommentsQueryBuilder` functions are supported for the `queryComments()` function. For a full description of the comment object, see the object returned for the [`items`](#commentsqueryresult/items) property in [`CommentsQueryResult`](#commentsqueryresult).
2898
+ * @public
2899
+ * @requiredField appId
2900
+ * @param appId - App ID to query comments for.
2901
+ * @permissionScope Read Comments
2902
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
2903
+ * @permissionScope Manage Comments
2904
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2905
+ * @permissionId WIX_COMMENTS.COMMENT_QUERY
2906
+ * @applicableIdentity APP
2907
+ * @fqn wix.comments.ng.v1.CommentsNg.QueryComments
2908
+ */
2909
+ export declare function queryComments(appId: string): CommentsQueryBuilder;
2910
+ interface QueryCursorResult {
2911
+ cursors: Cursors;
2912
+ hasNext: () => boolean;
2913
+ hasPrev: () => boolean;
2914
+ length: number;
2915
+ pageSize: number;
2916
+ }
2917
+ export interface CommentsQueryResult extends QueryCursorResult {
2918
+ items: Comment[];
2919
+ query: CommentsQueryBuilder;
2920
+ next: () => Promise<CommentsQueryResult>;
2921
+ prev: () => Promise<CommentsQueryResult>;
2922
+ }
2923
+ export interface CommentsQueryBuilder {
2924
+ /** @param propertyName - Property whose value is compared with `value`.
2925
+ * @param value - Value to compare against.
2926
+ */
2927
+ eq: (propertyName: '_id' | 'contextId' | 'resourceId' | 'author.userId' | 'author.memberId' | 'author.visitorId' | 'parentComment.id' | 'replyCount' | 'voteSummary.netVoteCount' | 'status' | 'rating' | 'reactionSummary.total' | 'marked', value: any) => CommentsQueryBuilder;
2928
+ /** @param propertyName - Property whose value is compared with `value`.
2929
+ * @param value - Value to compare against.
2930
+ */
2931
+ ne: (propertyName: '_id' | 'contextId' | 'resourceId' | 'author.userId' | 'author.memberId' | 'author.visitorId' | 'parentComment.id' | 'replyCount' | 'voteSummary.netVoteCount' | 'status' | 'rating' | 'reactionSummary.total' | 'marked', value: any) => CommentsQueryBuilder;
2932
+ /** @param propertyName - Property whose value is compared with `value`.
2933
+ * @param value - Value to compare against.
2934
+ */
2935
+ ge: (propertyName: 'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total', value: any) => CommentsQueryBuilder;
2936
+ /** @param propertyName - Property whose value is compared with `value`.
2937
+ * @param value - Value to compare against.
2938
+ */
2939
+ gt: (propertyName: 'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total', value: any) => CommentsQueryBuilder;
2940
+ /** @param propertyName - Property whose value is compared with `value`.
2941
+ * @param value - Value to compare against.
2942
+ */
2943
+ le: (propertyName: 'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total', value: any) => CommentsQueryBuilder;
2944
+ /** @param propertyName - Property whose value is compared with `value`.
2945
+ * @param value - Value to compare against.
2946
+ */
2947
+ lt: (propertyName: 'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total', value: any) => CommentsQueryBuilder;
2948
+ in: (propertyName: '_id' | 'contextId' | 'resourceId' | 'author.userId' | 'author.memberId' | 'author.visitorId' | 'parentComment.id' | 'status', value: any) => CommentsQueryBuilder;
2949
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
2950
+ ascending: (...propertyNames: Array<'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total' | 'marked'>) => CommentsQueryBuilder;
2951
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
2952
+ descending: (...propertyNames: Array<'replyCount' | 'voteSummary.netVoteCount' | 'rating' | 'reactionSummary.total' | 'marked'>) => CommentsQueryBuilder;
2953
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
2954
+ limit: (limit: number) => CommentsQueryBuilder;
2955
+ /** @param cursor - A pointer to specific record */
2956
+ skipTo: (cursor: string) => CommentsQueryBuilder;
2957
+ find: () => Promise<CommentsQueryResult>;
2958
+ }
2959
+ /**
2960
+ * Sets `marked` to `TRUE` to mark a comment.
2961
+ *
2962
+ * Call Query Comments to filter for marked comments to then apply customization to.
2963
+ * See Sample Flows for an example.
2964
+ * @param commentId - ID of the comment to mark.
2965
+ * @public
2966
+ * @requiredField commentId
2967
+ * @permissionId WIX_COMMENTS.COMMENT_MARK
2968
+ * @permissionScope Manage Comments
2969
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2970
+ * @applicableIdentity APP
2971
+ * @fqn wix.comments.ng.v1.CommentsNg.MarkComment
2972
+ */
2973
+ export declare function markComment(commentId: string): Promise<MarkCommentResponse & MarkCommentResponseNonNullableFields>;
2974
+ /**
2975
+ * Sets `marked` to `FALSE` to unmark a comment.
2976
+ * @param commentId - ID of the comment to unmark.
2977
+ * @public
2978
+ * @requiredField commentId
2979
+ * @permissionId WIX_COMMENTS.COMMENT_MARK
2980
+ * @permissionScope Manage Comments
2981
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
2982
+ * @applicableIdentity APP
2983
+ * @fqn wix.comments.ng.v1.CommentsNg.UnmarkComment
2984
+ */
2985
+ export declare function unmarkComment(commentId: string): Promise<UnmarkCommentResponse & UnmarkCommentResponseNonNullableFields>;
2986
+ /**
2987
+ * Hides a comment in a widget. The comment status becomes `HIDDEN`.
2988
+ * @param commentId - ID of the comment to hide.
2989
+ * @public
2990
+ * @documentationMaturity preview
2991
+ * @requiredField commentId
2992
+ * @permissionId WIX_COMMENTS.COMMENT_HIDE
2993
+ * @fqn wix.comments.ng.v1.CommentsNg.HideComment
2994
+ */
2995
+ export declare function hideComment(commentId: string): Promise<HideCommentResponse & HideCommentResponseNonNullableFields>;
2996
+ /**
2997
+ * Publishes a comment with the `HIDDEN` status. The comment status becomes `PUBLISHED`.
2998
+ *
2999
+ * To publish a new comment, call Create Comment.
3000
+ * @param commentId - ID of the comment to publish.
3001
+ * @public
3002
+ * @documentationMaturity preview
3003
+ * @requiredField commentId
3004
+ * @permissionId WIX_COMMENTS.COMMENT_PUBLISH
3005
+ * @fqn wix.comments.ng.v1.CommentsNg.PublishComment
3006
+ */
3007
+ export declare function publishComment(commentId: string): Promise<PublishCommentResponse & PublishCommentResponseNonNullableFields>;
3008
+ /**
3009
+ * Counts comments, given the specified filtering. Comments with the `HIDDEN` status are not included in the response.
3010
+ * @param appId - App ID to count the comments of.
3011
+ * @public
3012
+ * @requiredField appId
3013
+ * @permissionId WIX_COMMENTS.COMMENT_COUNT
3014
+ * @permissionScope Manage Comments
3015
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
3016
+ * @applicableIdentity APP
3017
+ * @fqn wix.comments.ng.v1.CommentsNg.CountComments
3018
+ */
3019
+ export declare function countComments(appId: string, options?: CountCommentsOptions): Promise<CountCommentsResponse & CountCommentsResponseNonNullableFields>;
3020
+ export interface CountCommentsOptions {
3021
+ /** Filter to identify the comments that need to be counted. */
3022
+ filter?: Record<string, any> | null;
3023
+ }
3024
+ /**
3025
+ * Lists published comments and replies from a specified resource, such as a blog post.
3026
+ * @param appId - ID of the app from which the comments are listed.
3027
+ * @public
3028
+ * @documentationMaturity preview
3029
+ * @requiredField appId
3030
+ * @requiredField options.contextId
3031
+ * @requiredField options.resourceId
3032
+ * @permissionId WIX_COMMENTS.COMMENT_LIST
3033
+ * @permissionScope Read Comments
3034
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
3035
+ * @permissionScope Manage Comments
3036
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
3037
+ * @applicableIdentity APP
3038
+ * @fqn wix.comments.ng.v1.CommentsNg.ListCommentsByResource
3039
+ */
3040
+ export declare function listCommentsByResource(appId: string, options?: ListCommentsByResourceOptions): Promise<ListCommentsByResourceResponse & ListCommentsByResourceResponseNonNullableFields>;
3041
+ export interface ListCommentsByResourceOptions {
3042
+ /**
3043
+ * ID of the specific context the comment is in response to.
3044
+ *
3045
+ * Within some Wix apps, the `contextId` will be the same as the `resourceId`. For example in Wix Forum, the `forumPostId` is used as both the `contextId` and the `resourceId`.
3046
+ */
3047
+ contextId: string;
3048
+ /** Reserved for internal use. */
3049
+ contextType?: string;
3050
+ /**
3051
+ * ID of the specific resource that the comment is in response to.
3052
+ *
3053
+ * Within some Wix apps, the `resourceId` will be the same as the `contextId`. For example in Wix Forum, the `forumPostId` is used as both the `resourceId` and the `contextId`.
3054
+ */
3055
+ resourceId: string;
3056
+ /** Comment sort. Is ignored if `cursorPaging.cursor` is defined. */
3057
+ commentSort?: CommentSort;
3058
+ /** Reply sort. Is ignored if `cursorPaging.cursor` is defined. */
3059
+ replySort?: ReplySort;
3060
+ /** Cursor paging. */
3061
+ cursorPaging?: ListCommentsByResourceCursorPaging;
3062
+ }
3063
+ /**
3064
+ * Returns a thread of a comment or a reply.
3065
+ *
3066
+ * If you request a comment thread, the method returns a single comment with cursors. With cursors (`pagingMetadata.cursors.next` or `pagingMetadata.cursors.prev`) you can load replies by calling the List Comments by Resource method.
3067
+ *
3068
+ * 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.
3069
+ * @param commentId - Comment ID.
3070
+ * @public
3071
+ * @documentationMaturity preview
3072
+ * @requiredField commentId
3073
+ * @permissionId WIX_COMMENTS.COMMENT_THREAD
3074
+ * @permissionScope Read Comments
3075
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
3076
+ * @permissionScope Manage Comments
3077
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
3078
+ * @applicableIdentity APP
3079
+ * @fqn wix.comments.ng.v1.CommentsNg.GetCommentThread
3080
+ */
3081
+ export declare function getCommentThread(commentId: string, options?: GetCommentThreadOptions): Promise<GetCommentThreadResponse & GetCommentThreadResponseNonNullableFields>;
3082
+ export interface GetCommentThreadOptions {
3083
+ /**
3084
+ * App ID.
3085
+ * @deprecated App ID.
3086
+ * @targetRemovalDate 2024-11-01
3087
+ */
3088
+ appId?: string;
3089
+ /** Comment sorting. */
3090
+ commentSort?: CommentSort;
3091
+ /** Reply sorting. */
3092
+ replySort?: ReplySort;
3093
+ }
3094
+ /**
3095
+ * Publishes multiple comments with the `HIDDEN` status. The comment status becomes `PUBLISHED`.
3096
+ * @param appId - ID of the app where to publish the comment.
3097
+ * @public
3098
+ * @documentationMaturity preview
3099
+ * @requiredField appId
3100
+ * @requiredField options
3101
+ * @requiredField options.filter
3102
+ * @permissionId WIX_COMMENTS.BULK_COMMENT_PUBLISH
3103
+ * @fqn wix.comments.ng.v1.CommentsNg.BulkPublishComment
3104
+ */
3105
+ export declare function bulkPublishComment(appId: string, options: BulkPublishCommentOptions): Promise<BulkPublishCommentResponse & BulkPublishCommentResponseNonNullableFields>;
3106
+ export interface BulkPublishCommentOptions {
3107
+ /** Filter to identify the comments that need to be published. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
3108
+ filter: Record<string, any> | null;
3109
+ }
3110
+ /**
3111
+ * Hides multiple comments. The comment status becomes `HIDDEN`.
3112
+ * @param appId - ID of the app where to hide the comments.
3113
+ * @public
3114
+ * @documentationMaturity preview
3115
+ * @requiredField appId
3116
+ * @requiredField options
3117
+ * @requiredField options.filter
3118
+ * @permissionId WIX_COMMENTS.BULK_COMMENT_HIDE
3119
+ * @fqn wix.comments.ng.v1.CommentsNg.BulkHideComment
3120
+ */
3121
+ export declare function bulkHideComment(appId: string, options: BulkHideCommentOptions): Promise<BulkHideCommentResponse & BulkHideCommentResponseNonNullableFields>;
3122
+ export interface BulkHideCommentOptions {
3123
+ /** Filter to identify the comments that need to be hidden. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
3124
+ filter: Record<string, any> | null;
3125
+ }
3126
+ /**
3127
+ * Deletes multiple comments.
3128
+ * @param appId - ID of the app where to delete the comments.
3129
+ * @public
3130
+ * @documentationMaturity preview
3131
+ * @requiredField appId
3132
+ * @requiredField options
3133
+ * @requiredField options.filter
3134
+ * @permissionId WIX_COMMENTS.BULK_COMMENT_DELETE
3135
+ * @fqn wix.comments.ng.v1.CommentsNg.BulkDeleteComment
3136
+ */
3137
+ export declare function bulkDeleteComment(appId: string, options: BulkDeleteCommentOptions): Promise<BulkDeleteCommentResponse & BulkDeleteCommentResponseNonNullableFields>;
3138
+ export interface BulkDeleteCommentOptions {
3139
+ /** Filter to identify the comments that need to be deleted. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
3140
+ filter: Record<string, any> | null;
3141
+ }
3142
+ /**
3143
+ * Moderates the draft content of multiple comments.
3144
+ * @param appId - ID of the app where to moderate the comments.
3145
+ * @public
3146
+ * @documentationMaturity preview
3147
+ * @requiredField appId
3148
+ * @requiredField options
3149
+ * @requiredField options.draftContentAction
3150
+ * @requiredField options.filter
3151
+ * @permissionId WIX_COMMENTS.BULK_COMMENT_MODERATE_DRAFT_CONTENT
3152
+ * @fqn wix.comments.ng.v1.CommentsNg.BulkModerateDraftContent
3153
+ */
3154
+ export declare function bulkModerateDraftContent(appId: string, options: BulkModerateDraftContentOptions): Promise<BulkModerateDraftContentResponse & BulkModerateDraftContentResponseNonNullableFields>;
3155
+ export interface BulkModerateDraftContentOptions {
3156
+ /** Filter to identify the comment content that needs to be moderated. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
3157
+ filter: Record<string, any> | null;
3158
+ /** Action to do regarding draft content */
3159
+ draftContentAction: Action;
3160
+ }
3161
+ /**
3162
+ * Moves multiple comments to another resource.
3163
+ * @param appId - ID of the app from which to move the comments.
3164
+ * @public
3165
+ * @documentationMaturity preview
3166
+ * @requiredField appId
3167
+ * @requiredField options.destination.contextId
3168
+ * @requiredField options.destination.resourceId
3169
+ * @requiredField options.filter
3170
+ * @permissionId WIX_COMMENTS.BULK_COMMENT_MOVE
3171
+ * @fqn wix.comments.ng.v1.CommentsNg.BulkMoveCommentByFilter
3172
+ */
3173
+ export declare function bulkMoveCommentByFilter(appId: string, options?: BulkMoveCommentByFilterOptions): Promise<BulkMoveCommentByFilterResponse & BulkMoveCommentByFilterResponseNonNullableFields>;
3174
+ export interface BulkMoveCommentByFilterOptions {
3175
+ /** Filter to identify the comments that need to be moved. Each key corresponds to an option name, and its values correspond to the choices for this option. For example, {`"resourceId"`: `"64ad407e0bf87891bba7de3a"`, `"parentComment.id"`: `"726cb137-a9c3-408b-9cc2-2b64c6be8a95"`}. */
3176
+ filter: Record<string, any> | null;
3177
+ /** Where to move the comment. */
3178
+ destination?: Destination;
3179
+ }
3180
+ export {};