@wix/auto_sdk_comments_comments 1.0.7 → 1.0.8

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